/* Frame Dojo / dojo identity. Shared public-page presentation only. */
:root { --max:1160px; }
.nav { background:rgba(11,17,29,.97); border-bottom-color:#364153; }
.nav .wrap { min-height:76px; }
.nav .logo { flex:none; }
.brand-wordmark { display:block; width:132px; height:50px; object-fit:contain; image-rendering:auto; }
.nav .links { gap:22px; }
.nav .langs, .btn.small { border-radius:3px; }
.nav .links > a[aria-current] { text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:7px; }
.btn { border-radius:3px; transition:background .15s,border-color .15s,box-shadow .15s; }
.btn.primary { background:var(--accent); box-shadow:3px 3px 0 #891b24; }
.btn.primary:hover { background:#f74747; box-shadow:1px 1px 0 #891b24; }
.btn.ghost { background:var(--bg2); border-color:#465267; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:2px solid var(--text); outline-offset:4px; }
.hero { position:relative; isolation:isolate; padding:44px 0 46px; overflow:hidden; background:radial-gradient(ellipse at 88% 8%,rgba(255,43,43,.08),transparent 52%),var(--bg2); }
.hero::before { content:''; position:absolute; z-index:-1; right:0; top:20px; width:210px; height:140px; background-image:radial-gradient(var(--line) 1px,transparent 1px); background-size:9px 9px; mask-image:linear-gradient(135deg,transparent,#000); opacity:.65; pointer-events:none; }
.hero .wrap { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:58px; }
.hero .eyebrow { line-height:1.5; color:var(--text); display:flex; align-items:center; gap:12px; }
.hero .eyebrow::before { content:''; width:29px; height:7px; background:var(--accent); transform:skewX(-28deg); flex:none; }
.hero h1 { font-weight:850; font-size:clamp(38px,4.6vw,60px); line-height:1.06; letter-spacing:-.035em; }
.hero p.lead { font-size:17px; line-height:1.7; }
.hero .heroside { min-width:0; }
.brand-live-preview { width:min(100%,480px); margin:0 auto; padding:0 12px 12px; position:relative; }
.brand-live-preview .clip { margin-bottom:18px; }
.brand-live-preview .clip video { border-radius:2px; box-shadow:0 18px 45px rgba(0,0,0,.3); }
.brand-live-preview .clip .pill { border-radius:3px; font-size:12px; padding:8px 11px; }
.brand-live-preview .clip .seqbox { border-radius:3px; }
.brand-live-preview .clip .keys { gap:1px; }
.brand-live-preview .clip .k { width:18px; font-size:10px; }
.brand-live-preview .clip .k.w { width:auto; }
.brand-live-preview .clip .plus { font-size:11px; padding:0; }
.hero .cta.pick select { border-radius:3px; border-color:#465267; }
.eyebrow { color:var(--accent); }
section.block { padding:54px 0; }
h2.title { font-weight:850; letter-spacing:-.025em; position:relative; padding-left:20px; }
h2.title::before { content:''; position:absolute; left:0; top:.18em; width:7px; height:.8em; background:var(--accent); }
.step, .feature, .game, .gcard, .char, .charcard, .character-guide, .guide-route, .guide-paths a, .guide-basics article { border-radius:3px; }
.step, .feature { background:var(--panel); border-top:3px solid #39465b; }
.step .n { color:var(--accent); }
.gcard { border-bottom:3px solid #39465b; }
.gcard:hover { border-bottom-color:var(--accent); }
.gcard .glogo { background:radial-gradient(ellipse at center,rgba(238,240,244,.04),transparent 70%),var(--bg2); }
.gcard .gactions .btn { font-size:12px; }
.gfilter button { border-radius:3px; }
.guide-head { border-left:3px solid var(--accent); padding-left:22px; }
.guide-paths a { border-top:3px solid #39465b; }
.guide-paths a:hover { border-top-color:var(--accent); }
.char { transition:border-color .15s,background .15s; }
.char:hover, .char:focus-visible { transform:none; border-color:var(--accent); background:var(--panel2); }
.char-portrait { border-radius:2px; }
.charcard { top:92px; max-height:calc(100vh - 108px); border-top:3px solid var(--accent); }
.charcard .art { border-radius:2px; }
.character-guide { border-top:3px solid #465267; }
.character-guide-nav a { border-radius:3px; }
.guide-route { border-left:3px solid var(--accent); }
.toc a { border-radius:3px; }
.moves { border-radius:3px; }
.site { border-top:3px solid var(--line); }
.brand-footer { display:flex; align-items:center; gap:20px; margin-bottom:22px; }
.brand-footer > img:first-child { padding-right:12px; border-right:1px solid #465267; box-sizing:content-box; }
.brand-footer .brand-wordmark { width:116px; height:44px; }
@media (max-width:1000px) and (min-width:901px) {
 .nav .links { gap:14px; }
 .hero .wrap { gap:30px; }
}
@media (max-width:900px) {
 .nav .wrap { padding-top:8px; padding-bottom:8px; }
 .nav .links { gap:8px 12px; }
 .charcard { position:static; max-height:none; }
 .hero .wrap { grid-template-columns:1fr; gap:26px; }
 .hero .heroside { display:block; }
 .brand-live-preview { width:min(100%,480px); margin-top:4px; }
 .hero h1 { font-size:clamp(38px,7vw,58px); }
 .hero p.lead { max-width:46em; }
}
@media (max-width:600px) {
 .nav .wrap { min-height:68px; padding-inline:16px; gap:12px; }
 .nav .logo .brand-wordmark { width:105px; height:40px; }
 .nav .links { gap:8px; }
 .hero { padding:20px 0 36px; }
 .hero .wrap { gap:24px; }
 .hero .eyebrow { font-size:10px; letter-spacing:.13em; }
 .hero p.lead { font-size:16px; line-height:1.65; }
 .brand-live-preview .clip .k { width:clamp(15px,4.2vw,22px); }
 .brand-live-preview .clip .k.w { width:auto; }
 .brand-footer { gap:16px; }
 .guide-head { padding-left:14px; }
 section.block { padding:40px 0; }
}
@media (prefers-reduced-motion:reduce) { .btn, .char { transition:none; } }

/* Guide-led homepage: useful reading before the practice tools. */
.block[id], .movesec[id], .character-guide[id], .character-guide [id] { scroll-margin-top:96px; }
p.sub { color:#aeb8c8; }
.step p, .feature p { color:#d1d6df; line-height:1.65; }
footer.site, footer.site a { color:#b2bccd; }
.hero .note { color:#adb7c7; }
.guide-previews { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.guide-preview { min-width:0; padding:22px; background:var(--panel); border:1px solid var(--line); border-top:3px solid #465267; display:flex; flex-direction:column; }
.guide-preview header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.guide-preview header img { object-fit:contain; image-rendering:pixelated; flex:none; }
.guide-preview header .eyebrow { margin:0 0 5px; font-size:10px; }
.guide-preview h3 { margin:0; font-size:20px; line-height:1.25; }
.guide-preview h3 a { color:var(--text); text-decoration:none; }
.guide-preview h3 a:hover { text-decoration:underline; text-decoration-color:var(--accent); }
.guide-preview h4 { margin:0 0 10px; font-size:18px; line-height:1.4; }
.guide-preview > p { margin:0 0 22px; color:#d1d6df; font-size:15px; line-height:1.7; }
.guide-read { margin-top:auto; color:var(--text); font-weight:750; text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:5px; }
@media (max-width:900px) {
 .guide-previews { grid-template-columns:1fr; gap:18px; }
 .guide-preview header { margin-bottom:14px; }
}
@media (max-width:600px) {
 .guide-preview { padding:20px; }
 /* Give the two overlays separate rows so long inputs cannot cover Show me. */
 .brand-live-preview .clip { margin-bottom:0; }
 .brand-live-preview .clip figcaption { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:-10px; }
 .brand-live-preview .clip .fakeshow { position:relative; left:0; bottom:auto; }
 .brand-live-preview .clip .seqbox { position:static; align-self:flex-end; max-width:100%; }
 .brand-live-preview .clip .keys { flex-wrap:wrap; row-gap:5px; }
}

/* About shares the site chrome and the homepage's quiet atmospheric detail. */
.about-page { position:relative; isolation:isolate; padding:36px 0 60px; background:radial-gradient(ellipse 850px 530px at 88% 0,rgba(255,43,43,.08),transparent 72%),var(--bg2); }
.about-page::before { content:''; position:absolute; z-index:-1; top:20px; right:0; width:210px; height:140px; background-image:radial-gradient(var(--line) 1px,transparent 1px); background-size:9px 9px; mask-image:linear-gradient(135deg,transparent,#000); opacity:.65; pointer-events:none; }
.about-content { max-width:800px; overflow-wrap:anywhere; }
.about-brand { width:min(100%,480px); margin:0 auto 26px; }
.about-brand img { display:block; width:100%; height:auto; }
.about-title { font-size:clamp(28px,4vw,40px); line-height:1.2; margin:0 0 28px; text-align:center; letter-spacing:-.025em; }
.about-content > section { padding:22px 26px; margin-top:18px; border:1px solid var(--line); border-top:3px solid #39465b; background:var(--panel); }
.about-content h2 { margin:0 0 12px; font-size:20px; line-height:1.3; }
.about-content p, .about-content li { color:#d1d6df; }
.about-content p:last-child { margin-bottom:0; }
.about-content ul { padding-left:22px; }
.about-content li { margin:10px 0; }
.about-content .dim { font-size:14px; color:#aeb8c8; }
@media (max-width:600px) {
 .about-page { padding:24px 0 40px; }
 .about-brand { width:min(100%,300px); margin-bottom:20px; }
 .about-content > section { padding:20px; }
}
