/* 0.6 — scene wallpaper and themed functional surfaces. No decorative banners. */
[data-theme=sixseven]{--theme-art:url('/static/themes/sixseven.svg')}
.frame-sixseven{--frame-art:url('/static/frames/sixseven.svg')}
body[data-theme]:not(.public){background:var(--bg);background-image:linear-gradient(90deg,color-mix(in srgb,var(--bg) 27%,transparent),color-mix(in srgb,var(--bg) 8%,transparent)),var(--theme-art);background-position:center,center;background-size:cover,cover;background-attachment:fixed;background-repeat:no-repeat;min-height:100vh}
body[data-theme=light]:not(.public),body[data-theme=dark]:not(.public){background-image:linear-gradient(120deg,var(--bg),color-mix(in srgb,var(--accent) 10%,var(--bg)))}
body[data-theme=solstice]:not(.public),body[data-theme=polaris]:not(.public){background-image:linear-gradient(90deg,color-mix(in srgb,var(--bg) 14%,transparent),transparent),var(--theme-art);background-position:center,center;background-size:cover,cover;background-attachment:fixed}
body[data-theme]:not(.public) aside{background:color-mix(in srgb,var(--panel) 95%,var(--bg));padding:20px 14px;border-right:1px solid color-mix(in srgb,var(--accent) 37%,var(--panel));box-shadow:4px 0 24px #0001}
body[data-theme]:not(.public) aside nav{min-height:0;flex:1 0 auto}
body[data-theme]:not(.public) aside form{flex-shrink:0;position:relative;margin-top:12px}
body[data-theme]:not(.public) aside form button{width:100%}
body[data-theme]:not(.public) aside::before,body[data-theme]:not(.public) aside::after{content:none!important;display:none!important}
body[data-theme]:not(.public) .top.compact-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;margin:0 0 16px;padding:12px 18px;background:color-mix(in srgb,var(--panel) 91%,transparent);border:1px solid color-mix(in srgb,var(--accent) 38%,var(--panel));border-radius:14px;box-shadow:0 5px 16px #0001;outline:none}
.compact-header h1{font-size:clamp(24px,3vw,34px);line-height:1.13;margin:0;max-width:none!important}.compact-header .page-title{min-width:0}.compact-header .page-title>span{font-size:9px;letter-spacing:.13em;color:var(--ink);opacity:.78;margin:0 0 4px}.compact-header .theme-edition{margin:0;max-width:45%;text-align:right;font-size:10px;letter-spacing:.06em;color:var(--ink);opacity:.8;overflow-wrap:anywhere}
body[data-theme]:not(.public) .withnav{padding-top:22px}
body[data-theme]:not(.public) .card{background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid color-mix(in srgb,var(--accent) 32%,var(--panel));box-shadow:0 4px 20px #00000012}
body[data-theme]:not(.public) .card.metric{background:linear-gradient(150deg,color-mix(in srgb,var(--panel) 95%,transparent),color-mix(in srgb,var(--accent) 11%,var(--panel)))}
body[data-theme]:not(.public) nav a.active{background:color-mix(in srgb,var(--accent) 16%,var(--panel));color:var(--ink);box-shadow:inset 3px 0 var(--accent);border:1px solid color-mix(in srgb,var(--accent) 64%,var(--panel))}
body[data-theme]:not(.public) .card h2{color:var(--ink)}
/* Preserve explicit feedback status surfaces; no decorative color overrides on answers. */
body[data-theme]:not(.public) .question-card.wrong,body[data-theme]:not(.public) .question-card.incorrect,body[data-theme]:not(.public) .question-card.answer-wrong{border-color:#d45e61}
body[data-theme=solstice]:not(.public) .card,body[data-theme=polaris]:not(.public) .card{border-color:color-mix(in srgb,var(--signature-edge) 66%,var(--panel));box-shadow:0 5px 25px #0002,inset 0 0 0 1px color-mix(in srgb,var(--signature-edge) 16%,transparent)}
body[data-theme=solstice]:not(.public) .compact-header,body[data-theme=polaris]:not(.public) .compact-header{border-color:var(--signature-edge);box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--signature-edge) 14%,transparent),0 5px 18px #0002}
body[data-theme=solstice] .compact-header h1,body[data-theme=polaris] .compact-header h1{font-family:Georgia,serif;letter-spacing:-.02em;font-weight:600}
body[data-theme=solstice] .compact-header .theme-edition,body[data-theme=polaris] .compact-header .theme-edition{font-family:Georgia,serif;letter-spacing:.08em;font-weight:700}
/* The gaming themes each use a different visual language on real controls. */
body[data-theme=blockcraft]:not(.public) :is(.card,.compact-header,nav a,.button,button){border-radius:4px}
body[data-theme=blockcraft]:not(.public) .card{border-bottom:4px solid #6c9854;box-shadow:3px 4px 0 #294b3330}
body[data-theme=blockcraft] nav a.active{box-shadow:inset 4px 0 #76aa4d,2px 2px 0 #203e3530}
body[data-theme=spacecrew]:not(.public) .card{border-radius:20px;border-color:#6292b1;box-shadow:inset 0 0 0 3px #11192f7a,0 6px 18px #070d2270}
body[data-theme=spacecrew]:not(.public) .compact-header{border:2px solid #81e0db;border-radius:22px}
body[data-theme=spacecrew] :is(button,.button){border-radius:24px}
body[data-theme=blockcity]:not(.public) .card{border-radius:8px;box-shadow:4px 5px 0 #31577b28;border-left:4px solid #537dab}
body[data-theme=blockcity] :is(button,.button){border-radius:6px;box-shadow:0 3px 0 #26436442}
body[data-theme=neonfeed]:not(.public) .card{border-color:#55ebeb75;box-shadow:-2px 0 #5ce4e7,2px 0 #f55f91,0 5px 20px #0005;border-radius:13px}
body[data-theme=neonfeed]:not(.public) .compact-header{border-color:#5ce4e7;box-shadow:3px 3px #f55f91}
body[data-theme=neonfeed] nav a.active{box-shadow:inset 3px 0 #5ce4e7,inset -3px 0 #f55f91}
body[data-theme=sixseven]:not(.public) .card{border:2px solid #bca5e9;border-radius:22px;box-shadow:3px 4px 0 #8e6ab83d}
body[data-theme=sixseven]:not(.public) .compact-header{border:2px solid #a68ae0;box-shadow:3px 3px #ad98d477;border-radius:22px}
body[data-theme=sixseven] :is(button,.button){border-radius:24px}
body[data-theme=sixseven] nav a.active{box-shadow:inset 4px 0 #7952ba,inset -4px 0 #ef9f50}
/* Previews depict actual compact interface on the scene; no misleading separate hero. */
.scene-preview.themed-preview{height:180px;min-height:142px;grid-template-columns:24% 76%;background:var(--bg) var(--theme-art) center/cover no-repeat;display:grid;overflow:hidden;padding:0;isolation:isolate}
.scene-preview .mini-nav{background:color-mix(in srgb,var(--panel) 92%,transparent);margin:0;border-radius:0;padding:9px 5px;gap:7px;min-width:0;border-left:0}
.scene-preview .mini-content{margin:0;padding:10px!important;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:4px;background:none}
.scene-preview .mini-content>small,.scene-preview .mini-content>strong{background:var(--panel);padding:3px 6px;border-radius:5px;margin:0;max-width:100%;font-size:clamp(8px,1vw,12px);overflow-wrap:anywhere;opacity:1;color:var(--ink)}
.scene-preview .mini-content>small{font-size:7px;letter-spacing:.06em}.scene-preview .mini-panel{width:100%;max-width:100%;background:color-mix(in srgb,var(--panel) 94%,transparent);border-color:var(--accent);padding:5px;min-width:0}.scene-preview .mini-panel svg{height:24px}
.mini-chips{display:flex;gap:3px;width:100%}.mini-chips i{flex:1;font-size:8px;font-style:normal;text-align:center;padding:3px;background:var(--panel);color:var(--ink);border:1px solid var(--accent);border-radius:4px}
.theme-dialog .scene-preview{height:clamp(240px,45vw,470px);min-height:0}.theme-dialog .scene-preview .mini-content{padding:clamp(12px,4vw,36px)!important;gap:10px}.theme-dialog .scene-preview .mini-content>strong{font-size:clamp(14px,3vw,29px)}.theme-dialog .scene-preview .mini-panel svg{height:70px}.theme-dialog .scene-preview .mini-chips i{font-size:12px;padding:6px}
.rarity-signature:has(.signature-caption) .scene-preview{height:220px}
/* Gift popup: static celebration, readable, keyboard accessible, no overlay on photo. */
.gift-dialog{box-sizing:border-box;width:min(510px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c7b5de;border-radius:23px;background:#fff;color:#27344e;padding:0;box-shadow:0 20px 90px #070d3866;overscroll-behavior:contain}.gift-dialog::backdrop{background:#0b1528b8}.gift-dialog form{margin:0;padding:0 20px 20px}.gift-hero{text-align:center;padding:16px 0 10px}.gift-hero img{display:block;width:100%;max-width:300px;height:135px;object-fit:contain;margin:0 auto 4px}.gift-kicker{font-size:9px;font-weight:800;letter-spacing:.17em;color:#76649a}.gift-hero h2{font-size:clamp(23px,5vw,30px);margin:5px 0 4px;color:#27344e}.gift-dialog .gift-close{position:absolute;right:12px;top:12px;width:34px;height:34px;min-height:34px!important;padding:0;margin:0;font-size:23px;line-height:1;background:#f0edf8!important;color:#374060!important;border:1px solid #d5cbe4!important;border-radius:50%!important;z-index:2}.gift-rewards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:8px;margin:8px 0}.gift-reward{background:#f6f4fb;border:1px solid #ded5ee;border-radius:13px;padding:10px;display:grid;gap:4px;align-content:start;color:#27344e;min-width:0}.gift-reward>small{color:#66578c;font-size:10px;opacity:1}.gift-reward>strong{font-size:15px;overflow-wrap:anywhere}.gift-reward .scene-preview{height:138px;min-height:0}.gift-reward .previewframe{background:#e8eaf5;height:125px;min-height:125px}.gift-reward .previewframe .avatar{width:64px;height:64px}.gift-coins{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:92px;background:#fbf5df;border-color:#e4d7a1}.gift-coins>span{font-size:29px;color:#a88432}.gift-coins>strong{font-size:24px;color:#70541d}.gift-note{margin:12px 0;background:#f5f7fb;padding:12px 14px;border-left:3px solid #a293cf;border-radius:7px;color:#27344e}.gift-note small{font-weight:750;color:#66578c;opacity:1}.gift-note p{margin:5px 0 0}.gift-dialog .gift-thanks{width:100%;background:#514078!important;color:white!important;border:1px solid #514078!important;border-radius:12px!important;font-weight:750;min-height:44px;margin:8px 0 0}.gift-error{color:#a12738;font-size:13px;margin:6px 0}.gift-error[hidden]{display:none}
@media(max-width:850px){body[data-theme]:not(.public) aside{position:sticky;top:0;width:100%;height:auto;padding:8px 12px;display:block;background:var(--panel);border-right:0;border-bottom:1px solid color-mix(in srgb,var(--accent) 40%,var(--panel))}body[data-theme]:not(.public) aside form{position:absolute;right:12px;top:4px;margin:0}body[data-theme]:not(.public) aside form button{width:auto}body[data-theme]:not(.public) .withnav{padding-top:12px}.compact-header .theme-edition{font-size:8px;max-width:38%}.scene-preview.themed-preview{height:150px}.rarity-signature:has(.signature-caption) .scene-preview{height:180px}body[data-theme]:not(.public){background-position:center,right center;background-attachment:scroll;background-size:cover,auto 100vh}}
@media(max-width:480px){body[data-theme]:not(.public) .top.compact-header{padding:11px 12px;gap:6px}.compact-header h1{font-size:23px}.compact-header .theme-edition{font-size:8px;max-width:41%}.gift-dialog form{padding:0 13px 15px}.gift-hero img{height:110px}.gift-rewards{grid-template-columns:1fr}.scene-preview .mini-nav b{font-size:8px}}
/* Keep review correctness and action-required cards visually distinct across all themes. */
body[data-theme]:not(.public) .card.question-incorrect{border:1px solid #cc6267;background:color-mix(in srgb,var(--panel) 91%,#d64750);box-shadow:inset 4px 0 #c74a55,0 5px 16px #8e252b10}
body[data-theme]:not(.public) .card.question-correct{border:1px solid #72b598;background:color-mix(in srgb,var(--panel) 96%,#3eac78);box-shadow:inset 4px 0 #4e9e7d}
body[data-theme]:not(.public) .card.dashboard-alert{border-color:var(--alert);background:color-mix(in srgb,var(--panel) 92%,var(--alert));box-shadow:inset 4px 0 var(--alert),0 5px 20px #0001}
/* A real viewport-fixed wallpaper also remains visible on very long mobile pages. */
body[data-theme]:not(.public):has(.withnav){isolation:isolate;background:var(--bg)}
body[data-theme]:not(.public):has(.withnav)::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,color-mix(in srgb,var(--bg) 17%,transparent),transparent),var(--theme-art);background-position:center,right center;background-size:cover,cover;background-repeat:no-repeat}
body[data-theme=light]:not(.public):has(.withnav)::before,body[data-theme=dark]:not(.public):has(.withnav)::before{background:linear-gradient(120deg,var(--bg),color-mix(in srgb,var(--accent) 10%,var(--bg)))}
/* Let scenes show through the existing panels, retaining enough contrast for text. */
body[data-theme]:not(.public):is([data-theme=blockcraft],[data-theme=blockcity],[data-theme=sixseven],[data-theme=spacecrew],[data-theme=neonfeed],[data-theme=polaris],[data-theme=solstice]) .card:not(.question-incorrect):not(.question-correct):not(.dashboard-alert):not(.item){background-color:color-mix(in srgb,var(--panel) 87%,transparent)}
/* The portrait card uses the wallpaper as its own decorative surface on wide screens.
   No new section is created; its text stays on a solid, readable left side. */
body[data-theme]:not(.public):is([data-theme=blockcraft],[data-theme=blockcity],[data-theme=sixseven],[data-theme=spacecrew],[data-theme=neonfeed],[data-theme=polaris],[data-theme=solstice]) .card:not(.question-incorrect):not(.question-correct):not(.dashboard-alert):not(.item){background-color:color-mix(in srgb,var(--panel) 83%,transparent)}
@media(min-width:1050px){body[data-theme]:not(.public):is([data-theme=blockcraft],[data-theme=blockcity],[data-theme=sixseven],[data-theme=spacecrew],[data-theme=neonfeed],[data-theme=polaris],[data-theme=solstice]) .card.dashboard-identity{background-image:linear-gradient(90deg,var(--panel) 0%,var(--panel) 54%,color-mix(in srgb,var(--panel) 87%,transparent) 63%,transparent 100%),var(--theme-art);background-position:center,right 47%;background-size:cover,100% auto;background-repeat:no-repeat}.dashboard-identity .identity-copy{max-width:65%}}
.chart.empty-chart{min-height:0;height:auto;padding-bottom:10px}
