/* A restrained version of the reference: gold edges, small illustrations, quiet depth. */
html[data-screen=sections] .game-entry{background:linear-gradient(100deg,#462337 12%,#462337eb 58%,#532d41b8),url('assets/quest-world-v1.png') right center/cover;border-color:#c6879e!important;box-shadow:inset 0 1px 0 #f5bfa523,0 6px 22px #28142228;isolation:isolate;overflow:hidden}
.game-entry h1 em{color:#ffd197;font-style:normal}.game-entry .hero-mark{color:#ffd197;opacity:.55;text-shadow:0 0 28px #e8ac7d40}
.game-entry .entry-cta{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ffe0af;background:linear-gradient(140deg,#ffd99d,#efb477);color:#402434;box-shadow:0 3px 0 #995b42;padding:10px 16px;border-radius:12px;font-weight:750}
.play-mode-card{isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 100% 0,#bd668927,transparent 60%),linear-gradient(145deg,#67384d,#4b2b40)!important;border:1px solid #b98098!important;box-shadow:inset 0 1px 0 #ffdbc41a,0 4px 0 #342332,0 10px 20px #25152120!important}
.play-mode-card:nth-child(even){background:radial-gradient(ellipse at 100% 0,#e4a46e20,transparent 58%),linear-gradient(145deg,#653c4e,#4b2b40)!important}
.play-mode-card .mode-number{display:inline-grid;place-items:center;min-width:28px;min-height:28px;border:1px solid #bd7c96;border-radius:9px;background:linear-gradient(145deg,#a55171,#713d56);color:#fff5ea;box-shadow:inset 0 1px 0 #edbaca25}
.clubhouse-mark{position:absolute;right:17px;top:11px;width:65px;height:65px;pointer-events:none;opacity:.85;filter:drop-shadow(0 4px 5px #26162750)}.clubhouse-mark svg{width:100%;height:100%;display:block}
.play-mode-card .mode-icon{opacity:0;pointer-events:none}.play-mode-card h2{position:relative;z-index:1}.play-mode-card footer{color:#ffd29a;font-weight:700;letter-spacing:.01em}
.play-mode-card:hover,.play-mode-card:focus-visible{border-color:#ffd29a!important;box-shadow:inset 0 1px 0 #ffdbc42b,0 4px 0 #42283b,0 10px 24px #e8ac7d22!important}
.play-mode-card:active{transform:translateY(1px)}.play-mode-card:focus-visible,.game-entry:focus-visible,.arena-sections>summary:focus-visible{outline:3px solid #ffd29a;outline-offset:3px}
.arena-sections>summary{border-color:#bc8d77!important;box-shadow:inset 0 1px 0 #f7c99b15;color:#ffd29a!important}
.simple-shell .nav button.active{box-shadow:inset 0 1px 0 #ffd4e02b,0 3px 10px #24132025!important}
.main-section-card,.topic-box,.difficulty-card{box-shadow:inset 0 1px 0 #f6cfa51a,0 4px 0 #362431,0 8px 18px #29152b1f!important}
@media(max-width:800px){.clubhouse-mark{width:49px;height:49px;right:12px;top:10px}}
@media(max-width:540px){.clubhouse-mark{width:40px;height:40px;right:10px;top:8px;opacity:.8}.game-entry .entry-cta{padding:8px 12px;font-size:12px;margin-top:7px}.play-mode-card .mode-number{min-width:25px;min-height:25px;font-size:11px}.game-entry .eyebrow{font-size:9px;letter-spacing:.1em}}
@media(prefers-reduced-motion:reduce){.play-mode-card:active{transform:none}}
/* Names lead; illustrations and mathematical textures stay behind the reading surface. */
html[data-experience] body::before,html[data-theme=dark][data-experience] body::before{opacity:.04}
#ambient{opacity:.3}
html[data-screen=sections] .game-entry{background:linear-gradient(100deg,#452536fa 0%,#452536f5 55%,#4e2c40e8 100%),url('assets/quest-world-v1.png') right center/cover}
.instructor-section-heading,.quest-round-heading{background:linear-gradient(100deg,#452536fa,#4e2c40eb),url('assets/quest-world-v1.png') right center/cover}
.clubhouse-mark{width:42px;height:42px;top:10px;right:14px;opacity:.55;filter:none}
.play-mode-card .mode-number{position:relative;z-index:1}
html[data-screen=sections] .play-mode-card h2{font-size:22px;line-height:1.25;font-weight:750;color:#fffaf2;letter-spacing:-.015em;margin:14px 0 12px;text-wrap:balance;text-shadow:none}
.play-mode-card p,.play-mode-card .mode-meta small{color:#e7d3dc}.play-mode-card .mode-meta{border-top-color:#bc829866}.play-mode-card .mode-meta b{color:#fff3e7}
.play-mode-card:nth-child(1){border-color:#bd7c9c!important}.play-mode-card:nth-child(2){border-color:#9a8fba!important}.play-mode-card:nth-child(3){border-color:#7eaa9f!important}.play-mode-card:nth-child(4){border-color:#c69776!important}
.main-section-card .section-card-copy,.compact-section-cover .lesson-card-body{background:#503143}
.main-section-card .section-card-copy h2,.compact-section-cover .lesson-card-body h3,.topic-box h2,.subtopic-entry h3{color:#fffaf2;font-weight:750;line-height:1.25;letter-spacing:-.01em;text-shadow:none}
.topic-box h2{font-size:22px}.subtopic-entry h3{font-size:20px}
.main-section-card .section-illustration svg,.compact-section-cover .lesson-cover>.embedded-art{opacity:.65}
@media(max-width:540px){
 html[data-screen=sections] .play-mode-card h2{font-size:20px;line-height:1.25;margin:12px 0 10px}
 .clubhouse-mark{width:34px;height:34px;top:8px;right:10px;opacity:.5}
 .main-section-card .section-card-copy h2,.compact-section-cover .lesson-card-body h3{font-size:20px}
 .topic-box h2,.subtopic-entry h3{font-size:19px}
}

/* Company endorsement stays in navigation, away from question/action trays. */
.company-credit{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:0 0 auto;margin-top:auto;padding-top:16px;max-width:150px}
.company-credit>span{font-size:10px;color:#ead5db;line-height:1.2;letter-spacing:.02em}
.company-credit img{display:block;width:144px;height:64px;object-fit:contain;object-position:left center}
.marketing-footer .company-credit{margin-top:0;padding-top:0}
@media(max-width:800px){.simple-shell .sidebar>.company-credit{display:none}.simple-shell .sidebar .brand{max-width:100%}}
