@font-face{font-family:Baloo;src:url('/fonts/baloo2.ttf') format('truetype');font-weight:400 800;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{color-scheme:dark;--bg:#130d20;--surface:#21152f;--raised:#2d1c40;--text:#fff9eb;--muted:#bcafcd;--line:#473157;--accent:#ffce45;--accent-ink:#291437;--purple:#a66aef;--mint:#72dfc0;--danger:#ff9ba9;--paper:#fff9e9;--paper-ink:#2d1641;--paper-muted:#78647e;--headline-accent:#ffce45;--shadow:0 16px 38px -15px #07010c8c}
[data-theme=light]{color-scheme:light;--bg:#f1edfa;--surface:#fffcff;--raised:#e9dff4;--text:#321b49;--muted:#6c5a7f;--line:#d6c6e4;--purple:#7e3bc0;--mint:#258566;--danger:#ad3458;--headline-accent:#9b5200;--shadow:0 16px 36px -20px #5725843d}
*{box-sizing:border-box}html{min-width:0;scrollbar-color:var(--line) var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:500 1rem/1.6 Manrope,sans-serif}body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 78% 12%,#7b33c11d,transparent 56%)}::selection{background:var(--accent);color:var(--accent-ink)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-underline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3,.brand,.target,.timer,.mini-brand,.score-number{font-family:Baloo,sans-serif}h1,h2,h3{line-height:1.12;font-weight:800;text-wrap:balance}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--purple);outline-offset:4px}input,textarea{caret-color:var(--purple)}.ui-icon{width:26px;height:26px;flex:none;vertical-align:middle}.ui-icon.plain{width:19px;height:19px}.game-art{display:block;object-fit:contain;width:100px;height:100px;flex:none}.theme-art{display:inline-grid;place-items:center;flex:none;width:64px;height:64px}.theme-art::before{content:'';display:block;width:var(--art-w,100%);height:var(--art-h,100%);background:url('/art/categories.webp') var(--bg-x) var(--bg-y)/var(--bg-size) no-repeat}
.topbar,.footer,main{max-width:1140px;margin-left:auto;margin-right:auto}.topbar{height:88px;padding:0 6px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:35px;line-height:1;letter-spacing:-.025em;white-space:nowrap}.brand img{width:58px;height:58px;object-fit:contain}.brand b{color:var(--headline-accent);font-weight:800}.brand-bang{display:inline-block;transform:rotate(9deg)}nav{display:flex;align-items:center;gap:25px}.nav-help{display:flex;align-items:center;gap:7px}.nav-help .ui-icon{width:23px;height:23px}.text-button{border:0;background:none;color:var(--muted);font-size:.875rem;font-weight:750;padding:10px 0;display:inline-flex;align-items:center;justify-content:center;gap:7px}.text-button:hover{color:var(--text)}.text-button .ui-icon{width:21px;height:21px}.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--raised);border:1px solid var(--line);flex:none}.icon-button:hover{border-color:var(--purple)}.theme-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:24px;background:var(--surface);font-size:.8rem;font-weight:750}.theme-button:hover{border-color:var(--purple)}.theme-button .ui-icon{width:18px;height:18px}main{min-height:calc(100svh - 175px);padding:0 6px}.footer{min-height:78px;padding:18px 6px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.8rem;gap:18px}.footer .text-button{font-size:.8rem}.footer-mark{display:flex;align-items:center;gap:10px}.footer-mark img{height:30px;width:30px;object-fit:contain;filter:saturate(.8)}
.home{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(300px,.88fr);gap:94px;align-items:center;padding:38px 0 35px}.intro h1{font-size:clamp(3rem,4.7vw,4rem);letter-spacing:-.025em;line-height:1.02;font-weight:800}.intro h1 span{color:var(--headline-accent)}.intro>p{max-width:480px;color:var(--muted);margin:16px 0 24px;font-size:.95rem;line-height:1.7}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-switch button{position:relative;display:flex;align-items:center;gap:7px;min-width:0;text-align:left;border:2px solid var(--line);border-radius:17px;background:var(--surface);padding:14px 10px 14px 7px;min-height:111px;transition:border-color .15s,background .15s,transform .15s}.mode-switch button:hover{transform:translateY(-2px);border-color:var(--purple)}.mode-switch .game-art{width:76px;height:76px}.mode-switch strong{display:block;color:var(--text);font-family:Baloo,sans-serif;font-weight:800;font-size:1.35rem;line-height:1.15;white-space:nowrap}.mode-switch small{display:block;color:var(--muted);font-size:.75rem;line-height:1.5;margin-top:7px;font-weight:550}.mode-switch button[aria-pressed=true]{border-color:var(--accent);background:#3a284321}.mode-switch button[aria-pressed=true] strong{color:var(--accent)}[data-theme=light] .mode-switch button[aria-pressed=true]{background:#fff2c8}[data-theme=light] .mode-switch button[aria-pressed=true] strong{color:#7c4800}.mode-tick{position:absolute;top:-10px;right:9px;display:none;width:23px;height:23px}.mode-tick .ui-icon{width:23px;height:23px}.mode-switch button[aria-pressed=true] .mode-tick{display:block}.mode-description{margin:11px 0 19px;color:var(--muted);font-size:.8rem;min-height:22px}
.settings-line{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:.8rem;font-weight:650;min-width:0}.field>span{display:flex;align-items:center;gap:7px}.field .ui-icon{width:21px;height:21px}.field input,.field select{font-size:.875rem}select,input,textarea{min-width:0;width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 13px;background:var(--surface);color:var(--text);font-weight:650;line-height:1.5}input::placeholder{color:var(--muted);font-weight:450}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239c85b1' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}select:hover,input:hover{border-color:var(--purple)}.theme-toggle{display:flex;align-items:center;gap:8px;justify-content:space-between;background:transparent;width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;margin:16px 0;color:var(--text);font-size:.85rem;font-weight:750;text-align:left}.theme-toggle>span:first-child{display:flex;align-items:center;gap:7px}.theme-toggle #deck-count{margin-left:auto;font-size:.75rem;font-weight:550;color:var(--muted);text-align:right}.theme-toggle .ui-icon{width:23px;height:23px}.theme-toggle>.ui-icon{width:15px;height:15px}.theme-toggle:hover{border-color:var(--purple);background:var(--surface)}
.primary,.secondary,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 20px;border-radius:13px;border:1px solid transparent;font-weight:800;text-decoration:none;font-size:.9rem;transition:filter .15s,transform .15s}.primary{background:var(--accent);color:var(--accent-ink);border-color:#ffe382;box-shadow:inset 0 1px 0 #fff7bb,0 7px 18px #0002}.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}.secondary{background:var(--raised);border-color:var(--line);color:var(--text)}.secondary:hover{border-color:var(--purple)}.danger-button{background:var(--surface);border-color:var(--line);color:var(--danger)}.start-button{width:100%;min-height:57px;font-family:Baloo,sans-serif;font-size:1.4rem;line-height:1;font-weight:800}.start-button .ui-icon{width:27px;height:27px}.start-note{display:flex;align-items:center;justify-content:center;gap:21px;margin-top:13px;color:var(--muted);font-size:.75rem}.start-note>span{display:flex;align-items:center;gap:6px}.start-note .ui-icon{width:16px;height:16px}.resume{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:3px 16px;margin:22px 0 -8px;font-size:.85rem;color:var(--muted)}.resume>span{display:flex;align-items:center;gap:8px}.resume .ui-icon{height:20px;width:20px}.resume .text-button{color:var(--headline-accent)}.team-settings{padding:0 0 15px}.team-inputs{display:grid;gap:9px}.team-input{display:flex;gap:8px}.team-input .icon-button{height:44px}.team-options{margin-top:15px}.check{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.8rem;margin:13px 0;font-weight:550}.check input{width:17px;height:17px;accent-color:var(--purple);flex:none}.check .ui-icon{width:20px;height:20px}
.demo{width:100%;max-width:360px;justify-self:center;padding:0 5px}.demo-intro{text-align:center;font-family:Baloo,sans-serif;color:var(--text);font-size:1.15rem;line-height:1.2;margin-bottom:20px;display:flex;align-items:center;justify-content:center;gap:8px}.demo-spark{width:17px;height:17px;background:var(--accent);clip-path:polygon(50% 0,64% 34%,100% 50%,64% 65%,50% 100%,35% 65%,0 50%,35% 34%);transform:rotate(13deg)}.demo-stack{position:relative;isolation:isolate}.demo-stack::before,.demo-stack::after{content:'';position:absolute;inset:8px -10px -8px 6px;border-radius:23px;z-index:-1;border:2px solid #573a77;background:#7745ac;transform:rotate(7deg)}.demo-stack::after{inset:3px 1px -3px -7px;background:#3e255b;transform:rotate(-4deg)}.demo .playing-card{transform:rotate(1.5deg)}.demo-footer{margin-top:25px;display:flex;flex-direction:column;align-items:center;gap:1px}.demo-footer .text-button{padding:7px 0;color:var(--headline-accent);font-size:.85rem}.demo-footer>span{font-size:.75rem;color:var(--muted)}
.playing-card{position:relative;overflow:hidden;background:var(--paper);color:var(--paper-ink);border:2px solid #38204c;border-radius:23px;box-shadow:0 20px 40px -20px #0008}.card-head{position:relative;min-height:142px;padding:17px 25px 22px;background:#ffd34c;border-bottom:1px solid #b38a2f55}.card-category{display:flex;gap:8px;align-items:center;max-width:80%}.card-category .theme-art{width:37px;height:37px}.category-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.7rem;color:#62441e;font-weight:800;line-height:1.3}.category-line>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.target{font-size:2.55rem;font-weight:800;line-height:1.05;letter-spacing:-.01em;margin-top:8px;overflow-wrap:anywhere}.card-body{padding:19px 26px 15px}.forbidden-label{display:flex;align-items:center;gap:7px;color:#7b3c99;font-size:.7rem;letter-spacing:.08em;font-weight:850;text-transform:uppercase}.forbidden-label .ui-icon{width:22px;height:22px}.forbidden-list{list-style:none;margin:9px 0 0;padding:0}.forbidden-list li{display:flex;align-items:center;gap:13px;padding:8px 0;font-size:1.16rem;line-height:1.4;font-weight:750;border-bottom:1px solid #e8ddc8;overflow-wrap:anywhere}.forbidden-list li::before{content:'';width:6px;height:6px;border-radius:50%;background:#d8a93a;flex:none}.forbidden-list li:last-child{border-bottom:0}.card-bottom{padding:1px 26px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.65rem;font-weight:650;color:var(--paper-muted)}.mini-brand{font-size:1.05rem;font-weight:800;color:#7d41aa;line-height:1}
.theme-library{margin:8px 0 32px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;scroll-margin-top:20px}.theme-library>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;list-style:none;cursor:pointer;padding:18px 24px}.theme-library>summary::-webkit-details-marker{display:none}.theme-library>summary>span{display:flex;align-items:center;gap:15px}.theme-library>summary .theme-art{width:53px;height:53px}.theme-library summary strong{display:block;font-family:Baloo,sans-serif;font-size:1.45rem;font-weight:750;line-height:1.2}.theme-library summary small{display:block;color:var(--muted);font-size:.8rem;margin-top:4px}.theme-library[open]>summary{border-bottom:1px solid var(--line)}.theme-library[open]>summary>.ui-icon{transform:rotate(180deg)}.theme-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 24px}.theme-toolbar p{color:var(--muted);font-size:.8rem}.theme-toolbar .text-button{font-size:.8rem;color:var(--headline-accent)}.categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 24px 20px}.theme-tile{position:relative;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:9px 10px 9px 5px;min-height:84px;cursor:pointer}.theme-tile input{position:absolute;opacity:0;width:1px;height:1px}.theme-tile .theme-art{width:61px;height:61px}.theme-tile strong{display:block;font-size:.8rem;line-height:1.4;font-weight:750}.theme-tile small{display:block;color:var(--muted);font-size:.7rem;margin-top:4px}.theme-tile:hover{border-color:var(--purple)}.theme-tile:has(input:checked){border-color:var(--accent);background:var(--raised)}.theme-tile:has(input:focus-visible){outline:3px solid var(--purple);outline-offset:2px}.theme-tick{display:none;position:absolute;right:5px;top:5px}.theme-tick .ui-icon{height:18px;width:18px}.theme-tile:has(input:checked) .theme-tick{display:block}.theme-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px 22px}.theme-bottom .secondary{font-size:.8rem;min-height:43px}
.in-game .footer{display:none}.in-game main{min-height:0}.in-game .topbar{height:72px}.in-game .brand{font-size:30px}.in-game .brand img{width:48px;height:48px}.game-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 14px}.game-header>div{display:flex;align-items:center;gap:13px}.game-header .secondary{min-height:40px;padding:8px 13px;font-size:.8rem}.game-title{font-family:Baloo,sans-serif;font-size:1.15rem;font-weight:750;line-height:1.2}.game-meta{font-size:.75rem;color:var(--muted);margin-top:2px}.game-layout{display:grid;grid-template-columns:minmax(160px,1fr) minmax(300px,400px) minmax(180px,1fr);gap:40px;max-width:1050px;margin:auto;padding:0 0 25px;align-items:start}.game-center{min-width:0}.game-side{padding-top:68px}.game-side:first-child{text-align:center;padding-right:6px}.side-illustration{width:106px;height:106px;margin:0 auto 12px;object-fit:contain}.game-side h2{font-size:1.45rem;margin-bottom:13px}.game-side:first-child h2{color:var(--headline-accent)}.game-side p{font-size:.8rem;line-height:1.75;color:var(--muted)}.game-side .little-rule{padding-top:17px;margin-top:20px;border-top:1px solid var(--line)}.game-side:last-child{padding:21px 18px;margin-top:58px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.game-side:last-child h2{font-size:1.3rem}.counter{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:10px 0;font-size:.8rem;color:var(--muted)}.counter strong{color:var(--text);font-family:Baloo,sans-serif;font-size:1.35rem;line-height:1.1;font-weight:750;font-variant-numeric:tabular-nums}.timer-bar{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:12px;min-height:43px}.timer-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:13px;padding:6px 12px;background:var(--surface)}.timer-pill>.ui-icon{height:25px;width:25px}.timer{font-size:1.7rem;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}.timer.low{color:var(--danger)}.timer-label{font-size:.75rem;color:var(--muted)}.clock-control{display:flex;align-items:center;gap:8px}.clock-control .icon-button{width:39px;height:39px;border-radius:12px}.clock-control .ui-icon{width:24px;height:24px}.game-actions{display:grid;grid-template-columns:1fr 1fr 1.36fr;gap:8px;margin-top:13px}.game-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:58px;padding:12px 8px;border:1px solid transparent;border-radius:13px;font-family:Baloo,sans-serif;font-size:1.2rem;font-weight:750;line-height:1.1;transition:filter .15s,transform .15s}.game-actions button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.05)}.game-actions .ui-icon{width:27px;height:27px}.action-forbidden{background:#ff9aa5;color:#48172d;box-shadow:inset 0 1px 0 #ffd1d8}.action-skip{background:#402655;color:#f6e8ff;border-color:#664682!important}.action-correct{background:#ffd34c;color:#2d1641;box-shadow:inset 0 1px 0 #fff1ac}.under-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:3px}.under-actions button{font-size:.75rem}.under-actions .ui-icon{height:18px;width:18px}.game-card-wrap{position:relative}.hidden-card .card-content{visibility:hidden}.privacy-cover{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:26px;border:2px solid #644386;border-radius:23px;background:var(--surface)}.privacy-cover h2{font-size:2.3rem}.privacy-cover p{color:var(--muted);font-size:.9rem}.privacy-cover .large-mark{margin:0;background:transparent;width:92px;height:92px}.privacy-cover .large-mark .ui-icon{height:75px;width:75px}.privacy-cover .primary{min-width:170px}.score-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.score-name{font-size:.8rem;overflow-wrap:anywhere;line-height:1.5}.score-tools{display:flex;align-items:center;gap:7px}.score-tools button{display:inline-grid;place-items:center;width:29px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--raised);font-size:1.1rem}.score-number{font-size:1.55rem;line-height:1;min-width:23px;text-align:center;font-weight:750;font-variant-numeric:tabular-nums}.score-row.active .score-name{color:var(--headline-accent);font-weight:750}.score-form{margin-top:10px}.score-form .field{font-size:.75rem}.score-form input{font-size:.8rem;padding:9px 10px}.score-form .text-button{font-size:.75rem}.mobile-score{display:none}.state-screen{max-width:600px;text-align:center;margin:auto;padding:45px 0 60px}.state-screen h1{font-size:clamp(2.5rem,4vw,3.6rem);color:var(--headline-accent)}.state-screen>p,.state-summary>p{max-width:450px;color:var(--muted);margin:17px auto 25px;font-size:.95rem}.large-mark{display:inline-grid;place-items:center;width:100px;height:100px;margin-bottom:21px}.large-mark .ui-icon{width:82px;height:82px}.state-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:25px}.state-actions .primary{min-width:220px}.results{margin:20px 0;text-align:left;padding:0 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.results .score-row:last-child{border:0}.results .score-name{font-size:1rem}.results .score-tools button{width:36px;height:38px}.turn-stats{display:flex;justify-content:center;gap:38px;margin:27px 0}.turn-stats div{display:flex;flex-direction:column;color:var(--muted);font-size:.8rem}.turn-stats strong{font-family:Baloo,sans-serif;color:var(--text);font-size:2.8rem;line-height:1.1;font-weight:750}.event-list{max-height:230px;overflow:auto;margin:23px 0;text-align:left}.event{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.85rem}.event span:last-child{color:var(--muted)}
dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:22px;width:min(92vw,590px);max-height:85svh;padding:27px;box-shadow:0 25px 80px #0006}dialog::backdrop{background:#0c0616cf}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.dialog-top h2{font-size:2rem;color:var(--headline-accent)}dialog p,dialog li{color:var(--muted);font-size:.9rem;line-height:1.75}dialog p{margin:12px 0}dialog li{padding:6px 0}dialog h3{font-size:1.4rem;margin:24px 0 8px}dialog strong{color:var(--text)}.notice{display:none;position:fixed;z-index:20;left:50%;bottom:23px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:13px 18px;border:1px solid #eddaaa;border-radius:12px;background:var(--paper);color:var(--paper-ink);font-size:.85rem;box-shadow:0 7px 27px #0005}.notice.show{display:block}.skip-link{position:fixed;top:-100px;left:16px;z-index:25;background:var(--accent);color:var(--accent-ink);padding:12px 17px;border-radius:10px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.new-card{animation:deal .25s cubic-bezier(.16,1,.3,1)}@keyframes deal{from{transform:translateY(8px) rotate(-1deg);filter:brightness(.92)}to{transform:translateY(0) rotate(0);filter:brightness(1)}}
@media(max-width:1220px){.topbar,.footer,main{margin-left:34px;margin-right:34px}.home{gap:64px}}
@media(max-width:1050px){.home{gap:40px;grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr)}.intro h1{font-size:3.25rem}.mode-switch{gap:8px}.mode-switch button{flex-direction:column;text-align:center;gap:0;padding:5px 7px 12px}.mode-switch .game-art{width:77px;height:69px}.mode-switch strong{font-size:1.25rem}.mode-switch small{margin-top:4px}.demo{max-width:315px}.demo .target{font-size:2.35rem}.demo .card-head{padding:14px 22px 20px;min-height:126px}.demo .card-body{padding:17px 22px 12px}.demo .forbidden-list li{padding:7px 0}.demo .card-bottom{padding-left:22px;padding-right:22px}.categories{grid-template-columns:repeat(3,minmax(0,1fr))}.game-layout{grid-template-columns:minmax(300px,400px) 220px;justify-content:center;gap:32px}.game-side:first-child{display:none}.game-center{grid-column:1;grid-row:1}.game-side:last-child{grid-column:2}.settings-line{gap:10px}.field input,.field select{font-size:.8rem}}
@media(max-width:760px){.topbar,.footer,main{margin-left:20px;margin-right:20px;padding-left:0;padding-right:0}.topbar{height:76px}.brand{font-size:29px;gap:6px}.brand img{width:49px;height:49px}nav{gap:14px}.nav-help .ui-icon{display:none}.nav-help{font-size:.8rem}.theme-button{width:37px;height:37px;min-height:37px;padding:0;justify-content:center}.theme-button span{display:none}.home{display:block;padding:29px 0 25px}.intro h1{font-size:2.9rem;line-height:1.02;text-align:center}.intro>p{text-align:center;font-size:.875rem;margin:14px auto 23px;line-height:1.65;max-width:390px}.mode-switch{gap:11px}.mode-switch button{flex-direction:column;text-align:center;padding:7px 7px 13px;gap:1px;min-height:142px;border-radius:16px}.mode-switch .game-art{width:90px;height:71px}.mode-switch strong{font-size:1.35rem}.mode-switch small{font-size:.72rem;line-height:1.4;margin-top:5px}.mode-description{font-size:.75rem;text-align:center;min-height:20px;margin:12px 0 18px}.demo{display:none}.settings-line{gap:11px}.field{font-size:.75rem}.field input,.field select{font-size:.8rem;padding:11px 11px;padding-right:26px}.field .ui-icon{width:20px;height:20px}.theme-toggle{margin:14px 0;font-size:.8rem;padding:11px 10px}.theme-toggle #deck-count{font-size:.7rem}.theme-toggle .ui-icon{width:20px;height:20px}.theme-toggle>.ui-icon{width:13px;height:13px}.start-button{font-size:1.35rem;min-height:56px}.start-note{gap:15px;font-size:.65rem;margin-top:11px}.start-note .ui-icon{width:15px;height:15px}.resume{margin:17px 0 -6px;padding:2px 11px;font-size:.75rem}.resume>span{gap:5px}.resume .text-button{font-size:.75rem;white-space:nowrap}.theme-library{margin:0 0 25px;border-radius:16px}.theme-library>summary{padding:13px 16px;gap:13px}.theme-library>summary>span{gap:10px}.theme-library>summary .theme-art{width:43px;height:43px}.theme-library summary strong{font-size:1.2rem}.theme-library summary small{font-size:.7rem}.theme-toolbar{padding:10px 15px;align-items:start}.theme-toolbar p{font-size:.7rem}.theme-toolbar .text-button{font-size:.7rem;padding-top:0;max-width:110px;text-align:right}.categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 15px}.theme-tile{gap:4px;min-height:89px;padding:10px 6px;flex-direction:column;text-align:center}.theme-tile .theme-art{width:61px;height:61px}.theme-tile strong{font-size:.75rem}.theme-tile small{font-size:.65rem}.theme-bottom{padding:0 15px 16px;flex-direction:column;align-items:stretch;gap:3px}.theme-bottom .check{font-size:.7rem;justify-content:center}.theme-bottom .secondary{width:100%}.footer{font-size:.7rem;min-height:66px}.footer .text-button{font-size:.7rem}.footer-mark{gap:7px}.footer-mark img{width:25px;height:25px}.in-game .topbar{height:65px}.in-game .brand{font-size:27px}.in-game .brand img{width:42px;height:42px}.game-header{padding:13px 0 11px}.game-header>div{gap:10px}.game-header .secondary{font-size:.7rem;padding:8px 10px;min-height:37px}.game-title{font-size:1rem}.game-meta{font-size:.65rem}.game-header>.icon-button{height:37px;width:37px}.game-layout{display:block;padding:0 0 15px}.game-side{display:none}.game-center{max-width:410px;margin:auto}.timer-bar{min-height:40px;margin-bottom:10px}.timer-pill{padding:6px 10px;gap:6px}.timer-pill>.ui-icon{width:22px;height:22px}.timer{font-size:1.55rem}.timer-label{font-size:.65rem}.clock-control .icon-button{width:37px;height:37px}.game-actions{margin-top:12px;gap:7px}.game-actions button{flex-direction:column;gap:2px;padding:9px 5px;min-height:61px;font-size:1.15rem}.game-actions .ui-icon{height:25px;width:25px}.under-actions button{font-size:.7rem}.card-head{min-height:120px;padding:13px 22px 18px}.card-category .theme-art{width:31px;height:31px}.category-line{font-size:.65rem}.target{font-size:2.3rem;margin-top:8px}.card-body{padding:16px 22px 12px}.forbidden-label{font-size:.65rem}.forbidden-list{margin-top:8px}.forbidden-list li{padding:7px 0;font-size:1.15rem}.card-bottom{padding:0 22px 15px;font-size:.6rem}.mini-brand{font-size:1rem}.mobile-score{display:block;border-top:1px solid var(--line);margin-top:10px}.mobile-score>summary{padding:13px 0;cursor:pointer;font-size:.8rem;color:var(--muted)}.mobile-score .score-content{padding-bottom:20px}.mobile-score h2{font-size:1.4rem;margin:10px 0}.mobile-score p{font-size:.8rem;color:var(--muted)}.score-tools button{width:42px;height:43px}.mobile-score .score-name{font-size:.9rem}.state-screen{padding:28px 0 45px}.state-screen h1{font-size:2.5rem}.state-screen>p,.state-summary>p{font-size:.85rem}.large-mark{width:85px;height:85px;margin-bottom:16px}.large-mark .ui-icon{width:78px;height:78px}.state-actions{flex-direction:column;align-items:stretch}.state-actions button{width:100%}.results{padding:0 12px}.results .score-name{font-size:.85rem}.turn-stats{gap:31px}.event{font-size:.75rem}.privacy-cover h2{font-size:2.1rem}.privacy-cover p{font-size:.85rem}.privacy-cover .primary{min-height:46px}}
@media(max-width:370px){.topbar,.footer,main{margin-left:15px;margin-right:15px}.brand{font-size:26px;gap:4px}.brand img{width:43px;height:43px}nav{gap:10px}.nav-help{font-size:.7rem}.intro h1{font-size:2.6rem}.intro>p{font-size:.8rem}.mode-switch strong{font-size:1.2rem}.mode-switch small{font-size:.65rem}.mode-switch button{min-height:134px}.mode-switch .game-art{height:64px;width:78px}.field input,.field select{font-size:.7rem}.theme-toggle{gap:5px}.theme-toggle>span:first-child{gap:4px}.theme-toggle #deck-count{font-size:.6rem}.start-note{font-size:.6rem;gap:9px}.category-line{font-size:.6rem}.game-title{font-size:.9rem}.game-meta{font-size:.6rem}.game-header .secondary{font-size:.65rem}.timer-label{font-size:.6rem}.target{font-size:2rem}}
@media(min-width:761px) and (max-height:810px){.in-game .topbar{height:61px}.game-header{padding:11px 0}.game-layout{padding-bottom:10px}.timer-bar{margin-bottom:9px}.in-game .card-head{min-height:108px;padding:12px 23px 16px}.in-game .card-category .theme-art{width:30px;height:30px}.in-game .target{font-size:2.3rem;margin-top:5px}.in-game .card-body{padding:14px 24px 9px}.in-game .forbidden-list{margin-top:6px}.in-game .forbidden-list li{padding:5px 0;line-height:1.35}.in-game .card-bottom{padding:0 24px 13px}.game-actions button{min-height:53px}.game-side{padding-top:58px}.game-side:last-child{margin-top:49px}}
@media(max-width:760px) and (max-height:760px){.in-game .topbar{height:57px}.game-header{padding:9px 0}.timer-bar{margin-bottom:8px}.in-game .card-head{min-height:98px;padding:9px 20px 13px}.in-game .target{font-size:2.1rem;margin-top:5px}.in-game .card-category .theme-art{width:27px;height:27px}.in-game .card-body{padding:11px 20px 8px}.in-game .forbidden-list{margin-top:6px}.in-game .forbidden-list li{padding:5px 0;font-size:1.05rem}.in-game .card-bottom{padding:0 20px 12px}.game-actions button{min-height:55px;font-size:1.05rem}.game-actions .ui-icon{width:23px;height:23px}.mobile-score{margin-top:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.loading-art{min-height:60svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted);font-family:Baloo,sans-serif;font-size:1.4rem}.loading-art img{width:120px;height:120px;object-fit:contain}

.large-mark>.game-art{width:105px;height:105px}.large-mark>.theme-art{width:90px;height:90px}.category-line{font-size:.75rem}.field{font-size:.875rem}.theme-tile strong{font-size:.875rem}
@media(max-width:760px){.category-line{font-size:.7rem}.field{font-size:.8rem}.theme-tile strong{font-size:.8rem}}

.game-header>div,.game-header>div>div{min-width:0}.game-header .secondary{flex:none}.game-title,.state-screen h1{overflow-wrap:anywhere}

@media(max-width:760px){.field{font-size:.875rem}.field select{font-size:.875rem}.field input{font-size:1rem}.theme-tile strong{font-size:.875rem}}

.round-review{max-width:380px;margin:30px auto 38px;text-align:left}.review-heading{text-align:center;margin-bottom:22px}.review-heading h2{font-size:1.5rem}.review-heading p{color:var(--muted);font-size:.8rem;margin-top:7px}.review-deck{position:relative;isolation:isolate;display:grid;margin:0 12px}.review-back{position:absolute;inset:5px 0 0;border:2px solid #7746a9;border-radius:22px;background:#3f225e;z-index:0}.back-one{transform:rotate(4deg) translate(5px,4px)}.back-two{transform:rotate(-5deg) translate(-5px,7px);background:#2d1944}.review-card{grid-area:1 / 1;min-width:0;align-self:start;position:relative;touch-action:pan-y;cursor:grab;outline-offset:8px;user-select:none;-webkit-user-select:none}.review-front{z-index:3}.review-under{z-index:1;transform:translate(8px,8px) rotate(4deg) scale(.98);pointer-events:none}.review-card:focus-visible{outline:3px solid var(--accent);border-radius:22px}.review-card:active{cursor:grabbing}.review-card .playing-card{box-shadow:0 10px 25px #0003}.review-card .target{font-size:2.4rem}.review-card .category-line{font-size:.65rem}.review-result{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.85rem;font-weight:800;margin-top:18px;color:var(--mint)}.review-result.skip{color:var(--muted)}.review-result.forbidden{color:var(--danger)}.review-result .ui-icon{width:23px;height:23px}.review-position{text-align:center;margin:16px 0 0;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}.review-empty{color:var(--muted);margin:25px 0}.state-actions.final-actions{display:flex;flex-direction:column;align-items:stretch;max-width:380px;margin:0 auto;gap:12px}.final-actions .text-button{align-self:center;width:auto}.state-screen{overflow-x:clip}@media(max-width:370px){.review-card .target{font-size:2rem}.round-review{margin-left:0;margin-right:0}.review-deck{margin:0 7px}}

@media(min-width:761px){.state-screen:has(.round-review){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);grid-template-rows:auto auto;column-gap:64px;max-width:980px;align-items:center;padding-top:38px}.state-screen:has(.round-review) .state-summary{grid-column:1;grid-row:1;align-self:end}.state-screen:has(.round-review) .round-review{grid-column:2;grid-row:1 / 3;width:100%;margin:0}.state-screen:has(.round-review) .state-actions{grid-column:1;grid-row:2;align-self:start;margin-top:18px;width:100%}.state-screen:has(.round-review) .large-mark{margin-bottom:16px}.state-screen:has(.round-review) .turn-stats{margin-bottom:12px}}
