/* All visible surface artwork is generated raster art. Labels remain accessible live text. */
:root { --ink:#f4ead7;--muted:#b1bdc4;--gold:#e0c28a;background:#07121f; }
button,select { border:8px solid transparent;border-image:var(--ui-button-teal) 24 fill / 8px / 0 stretch;background:none;border-radius:9px;padding:5px 14px;transition:filter .16s,transform .16s;color:#f5ead5; }
button:hover { background:none;filter:brightness(1.17); }
button:active:not(:disabled) { transform:translateY(1px);filter:brightness(.92); }
button.primary { border-color:transparent;border-image-source:var(--ui-button-gold);background:none;color:#182632;text-shadow:0 1px #f9e5ac66; }
button.primary:hover,button.secondary,button.text-button { background:none; }
button.secondary { border-color:transparent; }
button.text-button { border-color:transparent;border-image:var(--ui-button-teal) 24 fill / 6px / 0 stretch;min-height:44px;color:#e5c68a; }
button:disabled { filter:grayscale(.7);opacity:.45; }
.topbar { background-image:var(--ui-panel);background-size:100% 100%;border:0;padding-block:3px; }
.brand,.brand:hover { border:0;border-image:none;background:none;filter:none;font:0/0 serif;width:124px;height:48px;position:relative; }
.brand::before { content:'';display:block;position:absolute;inset:0;background:var(--ui-title) center/contain no-repeat; }
.brand span { display:none; }
.topbar nav button { border:6px solid transparent;border-image:var(--ui-button-teal) 24 fill / 6px / 0 stretch;background:none;min-height:44px;padding:2px 10px;display:flex;align-items:center;gap:3px;color:#e8d5b0; }
button[data-do=settings]::before,button[data-do=mute]::before,button[data-do=review]::before,.menu-icon,.collection-badge,.rotation-icon { content:'';display:inline-block;flex:0 0 auto;width:26px;height:26px;background-image:var(--ui-icons);background-size:300% 300%;background-repeat:no-repeat; }
button[data-do=settings]::before { background-position:50% 0; }
button[data-do=mute]::before { background-position:100% 0; }
button[data-do=review]::before { background-position:0 50%; }
#home { background:var(--ui-cover) center/cover no-repeat; }
.home-copy { width:39%;padding:clamp(20px,4vh,46px) 0 60px 4.8%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center; }
.home-copy h1 { width:min(100%,440px);margin:14px 0 12px;line-height:0;letter-spacing:0; }
.cover-logo { display:block;width:100%;height:auto; }
.home-copy>.eyebrow { font-size:9px;letter-spacing:.19em; }
.home-copy .intro { font:clamp(16px,1.65vw,24px)/1.4 Georgia,serif;color:#f1e5ce;text-shadow:0 2px 8px #000; }
.home-actions { width:min(330px,95%);gap:10px;margin-top:24px; }
.home-actions button { min-height:52px;font-size:12px;align-items:center;gap:10px;padding:7px 16px;text-transform:none;letter-spacing:.04em; }
.home-actions .menu-label { flex:1;opacity:1; }
.home-actions .menu-icon { width:30px;height:30px;opacity:1; }
.home-actions button::before { content:'';display:inline-block;flex:0 0 auto;width:28px;height:28px;background:var(--ui-icons) 100% 50%/300% 300%; }
.home-actions button[data-do=nights]::before { background-position:50% 50%; }
.home-actions button[data-do=learn]::before { background-position:0 50%; }
.menu-icon.seat { background-position:100% 50%; }
.menu-icon.nights { background-position:50% 50%; }
.menu-icon.learn { background-position:0 50%; }
.home-copy .disclaimer { font-size:8px;color:#bfbeaf;letter-spacing:.08em;max-width:96%; }
.home-footer { background:var(--ui-panel) center/100% 100%;border:0;padding:3px 4.8%;color:#c3c3b4; }
.home-footer button { border:6px solid transparent;border-image:var(--ui-button-teal) 24 fill / 6px / 0 stretch;padding:0 14px;min-height:44px; }
#controls { background:var(--ui-panel) center/100% 100%;border:0;padding-top:12px; }
.seat { border:7px solid transparent;border-image:var(--ui-button-teal) 24 fill / 7px / 0 stretch;background:none;box-shadow:0 7px 18px #0005;padding:3px 10px; }
.seat.acting { border-image-source:var(--ui-button-gold);color:#122e35;box-shadow:0 0 20px #d4ad6f55; }
.seat.acting .seat-title b,.seat.acting small { color:#173b45; }
.pot-label { background:var(--ui-button-teal) center/100% 100%;padding:3px 18px;color:#e1c891; }
.card { background:var(--ui-card-face) center/100% 100%;border:0;border-radius:5px;padding:6px 7px;color:#162d43; }
.card.back,[data-back] .card.back { background:var(--ui-card-back) center/100% 100%;border:0;font-size:0;color:transparent; }
[data-back=ren] .card.back { filter:hue-rotate(35deg); }
[data-back=haru] .card.back { filter:hue-rotate(165deg); }
[data-back=sena] .card.back { filter:hue-rotate(-20deg); }
[data-back=mira] .card.back { filter:hue-rotate(85deg); }
[data-back=kai] .card.back { filter:hue-rotate(140deg); }
[data-back=nami] .card.back { filter:hue-rotate(-55deg); }
.card.best { outline:2px solid #f4ca6c;outline-offset:1px; }
.card.red { color:#9f3144; }
.decision-heading .text-button { min-height:44px;padding:0 10px; }
dialog { background:#081624;border:18px solid transparent;border-image:var(--ui-panel) 60 fill / 18px / 0 stretch;border-radius:4px;padding:20px 28px;box-shadow:0 25px 100px #000b; }
.close { width:44px;height:44px;min-width:44px;min-height:44px;padding:0;right:8px;top:8px;border:0;border-image:none;background:none;font-size:0; }
.close::before { content:'';display:block;width:32px;height:32px;margin:auto;background:var(--ui-icons) 0 100%/300% 300%; }
.close:hover { background:none; }
.cast-card,.cast-card.selected { border:10px solid transparent;border-image:var(--ui-panel) 60 fill / 10px / 0 stretch;background:none;padding:0 12px 12px; }
.cast-card.selected { border-image-source:var(--ui-button-gold);border-image-slice:24; }
.cast-card.selected b { color:#ffe4a9; }
.cast-card.selected small { color:#c9d2d5; }
.cast-card img { height:160px; }
.selection-mark { background:var(--ui-button-teal) center/100% 100%;border:0;border-radius:0;color:#e6cc97; }
.selected .selection-mark { background:var(--ui-button-teal) center/100% 100%;color:#ffe1a0; }
.night-list button { background:none;padding:8px 16px;gap:18px;min-height:90px; }
.night-portrait { width:80px;height:80px;object-fit:contain;object-position:top;mask-image:linear-gradient(#000 75%,transparent); }
.night-number { font-size:24px; }
.collection-grid article,.review-players article,.feedback,.pot-review { border:10px solid transparent;border-image:var(--ui-panel) 60 fill / 10px / 0 stretch;background:none;padding:14px; }
.collection-portrait { width:100%;height:170px;object-fit:contain;object-position:center top;mask-image:linear-gradient(#000 75%,transparent); }
.collection-badge { width:32px;height:32px;background-position:50% 50%;vertical-align:middle; }
.collection-badge.locked { filter:grayscale(1);opacity:.25; }
.settings-grid label { border-bottom:1px solid #d0b77a33;padding-bottom:10px; }
input[type=range] { appearance:none;background:transparent; }
input[type=range]::-webkit-slider-runnable-track { height:7px;border-radius:5px;background:var(--ui-button-teal) center/100% 100%; }
input[type=range]::-webkit-slider-thumb { appearance:none;width:22px;height:22px;margin-top:-7px;border:0;border-radius:50%;background:var(--ui-button-gold) center/100% 100%;box-shadow:0 2px 4px #0008; }
input[type=range]::-moz-range-track { height:7px;background:var(--ui-button-teal) center/100% 100%; }
input[type=range]::-moz-range-thumb { width:22px;height:22px;border:0;border-radius:50%;background:var(--ui-button-gold) center/100% 100%; }
input[type=checkbox] { appearance:none;width:28px;height:28px;flex-shrink:0;background:var(--ui-button-teal) center/100% 100%;border-radius:4px; }
input[type=checkbox]:checked { background:var(--ui-icons) 50% 100%/300% 300%; }
.check-label { min-height:44px; }
.rotation { background:var(--ui-panel) center/100% 100%; }
.rotation-icon { width:90px;height:90px;background-position:100% 100%;font-size:0; }
.correct { filter:brightness(1.25);border-image-source:var(--ui-button-gold);color:#152f2c; }
.incorrect { filter:sepia(.5); }
.standings p { background:var(--ui-button-teal) center/100% 100%;border:0;margin-top:8px;padding:14px 18px; }
@media(max-width:1000px),(max-height:650px) {
 .home-copy { width:40%;padding:10px 0 48px 4%; }
 .home-copy h1 { width:90%;margin:6px 0; }
 .home-actions { margin-top:12px;gap:6px; }
 .home-actions button { min-height:44px;padding:3px 10px;font-size:10px; }
 .home-copy .intro { font-size:16px; }
 .home-copy>.eyebrow { font-size:7px; }
 .home-copy .disclaimer { font-size:6px;margin-top:10px; }
 .brand { width:92px;height:38px; }
 .topbar nav button::before { width:22px;height:22px; }
 .topbar nav button { padding:0 6px; }
 .seat { border-width:5px;border-image-width:5px;padding:1px 5px; }
 .night-portrait { width:54px;height:54px; }
 dialog { border-width:12px;border-image-width:12px;padding:16px; }
}
@media(orientation:landscape) and (max-height:520px) {
 .home-copy { justify-content:flex-start;width:40%;padding:6px 0 44px 4%; }
 .home-copy h1 { width:180px;max-width:85%;height:60px;margin:0; }
 .cover-logo { width:100%;height:100%;object-fit:contain;object-position:left; }
 .home-copy>.eyebrow,.home-copy .intro,.home-copy .disclaimer { display:none; }
 .home-actions { margin-top:4px;gap:5px;width:94%;display:flex;flex-direction:column; }
 .home-actions button { min-height:44px;height:44px;width:100%;white-space:nowrap;font-size:12px; }
 .home-actions .menu-icon { width:24px;height:24px; }
 .home-footer { padding:1px 4%; }
 .home-footer>div>span { display:none; }
 #controls { padding:8px 12px; }
 .pot-label { padding:2px 10px; }
 .decision-heading .text-button { font-size:8px; }
 .cast-card img { height:100px; }
}
@media(max-width:650px) and (orientation:portrait) {
 #home { background-position:62% center; }
 .home-copy { width:100%;padding:28px 6% 64px;justify-content:center;background:#06142688; }
 .home-copy h1 { width:300px;max-width:82%; }
 .home-actions { width:90%; }
 .home-copy .intro { font-size:22px; }
 .home-copy .disclaimer { font-size:8px; }
 .topbar nav button::before { display:none; }
}
