:root{--ink:#211b31;--paper:#faf9f6;--violet:#6041cc;--line:#d8d4dc;--mint:#b6e6d2;--peach:#ffc3a8;--lilac:#d4c1fa;--sky:#b9dff4;font-family:DM Sans,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible+.pack,a:focus-visible,#modal-category-search:focus-visible{outline:3px solid #08589e;outline-offset:3px}button:disabled{cursor:wait;opacity:.65}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.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}.defs{position:absolute;width:0;height:0;overflow:hidden}svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}header{border-bottom:1px solid var(--line);background:#fffefa}.header-inner,main,footer{max-width:1120px;margin-inline:auto;width:calc(100% - 64px)}.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between}.header-inner nav{display:flex;align-items:center;gap:clamp(8px,2vw,22px)}.header-inner a{color:var(--ink);text-decoration:none}.header-inner nav a{font-weight:650;font-size:.93rem}.header-inner a:hover{text-decoration:underline}.header-inner .back-link:hover{text-decoration:none;background:#f0edf7}.brand{display:flex;align-items:center;gap:10px;font-family:Archivo Black,DejaVu Sans,system-ui,sans-serif;font-weight:900;font-size:1.5rem;letter-spacing:-.05em}.brandmark{width:40px;height:40px;border-radius:10px;object-fit:cover;flex:none}.brand-dot{color:var(--violet)}main{margin-top:28px}body:not([data-screen=home]) main{margin-top:14px}body:not([data-screen=home]) footer{display:none}h2{font-size:clamp(1.45rem,2.8vw,2.05rem);margin:0;letter-spacing:-.055em;line-height:1.16}.help,.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px}.help{font-size:.92rem;font-weight:650;background:#fff;border:1px solid var(--line);border-radius:30px;padding:10px 16px;min-height:42px}.help:hover,.secondary:hover{background:#f0edf7}.primary,.secondary{font-size:1rem;line-height:1.25;font-weight:750;min-height:49px;border-radius:11px;padding:12px 24px;border:1.5px solid var(--ink);box-shadow:0 3px var(--ink)}.primary{background:var(--violet);color:#fff}.primary:hover{background:#4c31af}.secondary{background:#fff}.back-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 15px;border:1.5px solid var(--ink);border-radius:30px;background:#fff;box-shadow:0 2px var(--ink);color:var(--ink);font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap;flex:none}.back-link:hover{background:#f0edf7}footer{display:flex;align-items:center;justify-content:center;gap:7px;color:#68616c;font-size:.84rem;margin-block:24px}footer a{color:var(--violet);font-weight:700;text-decoration:none}footer a:hover{text-decoration:underline}.device{display:inline-block;border:1.5px solid currentColor;border-radius:3px;width:11px;height:15px;position:relative}.device:after{content:"";position:absolute;background:currentColor;bottom:1px;height:1px;width:3px;left:2.5px}dialog{width:min(425px,calc(100% - 32px));border:2px solid var(--ink);border-radius:20px;box-shadow:4px 5px var(--ink);padding:28px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#20182ea8}dialog p,dialog li{line-height:1.5}dialog ol{padding-left:1.25em}dialog li+li{margin-top:6px}dialog a{color:var(--violet)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{margin:0}.dialog-actions{display:flex;align-items:center;gap:14px;margin-top:22px}.sprite{aspect-ratio:1;background-size:800% 400%;background-repeat:no-repeat;border-radius:12px;box-shadow:0 2px 10px #211b311a}.clue-hint{text-align:center;font-size:clamp(1rem,2vw,1.4rem);font-weight:650;margin:12px auto}.clocks{display:flex;align-items:center;gap:14px}.clocks>div{flex:1;padding:12px 18px;border:2px solid #a59eae;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:#fff}.clock span{font-weight:700;overflow-wrap:anywhere}.clock strong{font-variant-numeric:tabular-nums;font-size:1.85rem;letter-spacing:-.055em}.clocks .active{box-shadow:0 3px var(--ink);background:#ffda57;border-color:var(--ink)}.match-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.meta-pill{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;border:1.5px solid var(--ink);font-size:.82rem;font-weight:750;line-height:1.2;background:#fff}.meta-stage{background:#ffda57}.meta-round{background:#eee8fc;color:#38216d}.meta-cat{background:var(--tint,#f3effc)}.meta-source{background:#faf9f6;border-color:#c5bed1;color:#544b66;font-weight:650}.pack-switch-row{display:flex;align-items:stretch;gap:8px;min-width:0}.pack-switch-card{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 10px;text-align:left;border:2px solid var(--ink);border-radius:14px;background:#f3effc;box-shadow:0 2px var(--ink)}.pack-switch-card:hover{background:#e8e0fa}.pack-chip-art{width:44px;height:44px;border-radius:9px;border:1.5px solid var(--ink);object-fit:cover;flex:none;background:#fff}.pack-chip-copy{display:grid;gap:2px;flex:1;min-width:0}.pack-chip-copy small{font-size:.74rem;font-weight:750;color:#5b516e}.pack-chip-copy strong{font-size:.96rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pack-change-pill{flex:none;font-size:.78rem;font-weight:750;padding:4px 9px;border-radius:20px;border:1.5px solid var(--ink);background:#fff}.pack-shuffle-btn{flex:none;border:2px solid var(--ink);border-radius:14px;padding:8px 12px;box-shadow:0 2px var(--ink);font-size:.86rem;background:#fff}.win-line{text-align:center;font-weight:750;font-size:1.12rem;overflow-wrap:anywhere;margin:18px 0 10px}.recap-table{width:100%;max-width:30rem;border-collapse:collapse;margin:14px auto;color:var(--ink);text-align:start;font-variant-numeric:tabular-nums}.recap-table caption{text-align:start;font-weight:750;margin-bottom:4px}.recap-table td,.recap-table th{padding:4px 10px;text-align:right;border-bottom:1px solid #211b3125}.recap-table th:first-child{text-align:start;overflow-wrap:anywhere}.recap-table thead th{font-size:.85rem;font-weight:600}#result{max-width:720px;margin:auto}.result-card{border:2px solid var(--ink);border-radius:20px;box-shadow:0 4px var(--ink);text-align:center;background:#fff3c5;padding:40px 22px}.result-card h1{margin:0;font-family:Archivo Black,DejaVu Sans,system-ui,sans-serif;font-weight:900;letter-spacing:-.085em;line-height:.98;font-size:clamp(2.4rem,6vw,4.3rem)}.badge-art{font-size:3.6rem;color:var(--violet)}.last-card{display:inline-flex;align-items:center;gap:14px;text-align:left;padding:12px 22px;background:#fffefa;border-radius:16px}.last-card span{font-size:.84rem;color:#66606e}.last-card strong{display:block;font-size:1.07rem;color:var(--ink)}.last-card .sprite{width:60px}.result-actions{display:flex;align-items:center;gap:14px;max-width:420px;margin:25px auto 0}.result-actions button{flex:1}#countdown{max-width:680px;margin:auto}.countdown-card{display:grid;gap:14px;width:100%;background:#fffefa;border:2px solid var(--ink);border-radius:22px;box-shadow:0 4px var(--ink);padding:clamp(16px,3.2vw,28px)}.countdown-top{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}.countdown-top-left{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.countdown-round{font-size:.86rem;font-weight:750;color:#472988}.countdown-time{background:#fff;flex:none}.countdown-center{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(150px,1fr);gap:14px;align-items:stretch}.countdown-cat-card{display:flex;align-items:center;gap:14px;text-align:left;padding:14px 16px;border:2px solid var(--ink);border-radius:18px;background:var(--tint,#ffda57);box-shadow:0 3px var(--ink);min-width:0}.countdown-cat-art{width:clamp(64px,12vw,84px);height:clamp(64px,12vw,84px);border-radius:14px;border:2px solid var(--ink);object-fit:cover;flex:none;background:#fff}.countdown-cat-copy{min-width:0;display:grid;gap:5px}.countdown-cat-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.countdown-group,.countdown-source{font-size:.74rem;padding:2px 9px}.countdown-group{background:#ffffffeb}.countdown-cat-copy h2{margin:0;font-family:Archivo Black,DejaVu Sans,system-ui,sans-serif;font-weight:900;font-size:clamp(1.25rem,3vw,1.72rem);letter-spacing:-.04em;line-height:1.08;overflow-wrap:anywhere}.countdown-cat-hint{margin:0;font-size:.82rem;font-weight:650;color:#2b233d;line-height:1.3}.countdown-dial-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;border:2px solid var(--ink);border-radius:18px;background:#f7f4fc}.countdown-dial-label{font-size:.8rem;font-weight:800;color:#472988}.countdown-dial{width:clamp(108px,18vw,136px);height:clamp(108px,18vw,136px);border-radius:50%;display:grid;place-items:center;background:#ffda57;border:3px solid var(--ink);box-shadow:0 4px var(--ink)}.countdown-dial span{font-family:Archivo Black,DejaVu Sans,system-ui,sans-serif;font-weight:900;font-size:clamp(3.3rem,8vw,4.8rem);line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}.countdown-dial span.pop{animation:countdown-pop .28s cubic-bezier(.22,1.4,.36,1)}@keyframes countdown-pop{0%{transform:scale(1.22);opacity:.45}to{transform:scale(1);opacity:1}}.countdown-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.countdown-player{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:11px 14px;border:2px solid #b7b0c4;border-radius:14px;background:#fff;text-align:left}.countdown-player.active{border-color:var(--ink);background:#ffda57;box-shadow:0 3px var(--ink)}.countdown-player-info{display:grid;gap:4px;justify-items:start;min-width:0}.countdown-player-info strong{font-size:clamp(.92rem,2vw,1.08rem);line-height:1.2;overflow-wrap:anywhere}.starter-tag{font-size:.72rem;font-weight:800;padding:2px 8px;border-radius:6px;background:var(--ink);color:#ffda57;line-height:1.25}.waiting-tag{font-size:.76rem;font-weight:650;color:#5b526d}.win-tracker{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}.win-dots{display:flex;gap:4px}.win-dots span{width:10px;height:10px;border-radius:50%;border:1.5px solid var(--ink);background:#fff}.win-dots span.filled{background:var(--violet)}.win-count{font-size:.76rem;font-weight:800;font-variant-numeric:tabular-nums}.starter-bolt{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#ffda57;display:grid;place-items:center;font-weight:900;font-size:.86rem;flex:none}.countdown-note{margin:0;text-align:center;color:#524a60;font-weight:650;font-size:.94rem;overflow-wrap:anywhere}.countdown-actions{display:flex;gap:10px;width:100%;flex-wrap:wrap}.countdown-actions button{flex:1 1 110px;min-width:0}.countdown-reroll{border:2px solid var(--ink);border-radius:11px;box-shadow:0 3px var(--ink);background:#ffda57;font-weight:750;min-height:49px;padding:10px 16px}.countdown-reroll:hover{background:#ffe384}@media(max-width:680px){.header-inner,main,footer{width:calc(100% - 32px)}.header-inner{height:60px}main{margin-top:18px}.brand{font-size:1.35rem}.help{padding:8px 12px}.clocks{gap:9px}.clocks>div{padding:10px}.clock strong{font-size:1.55rem}.result-card{padding:26px 16px}.result-card h1{font-size:clamp(2rem,7vw,3rem)}.badge-art{font-size:2.6rem}footer{margin-block:18px}}@media(max-width:580px){.countdown-center{grid-template-columns:1fr}.countdown-dial-box{flex-direction:row;justify-content:space-between;padding:12px 16px}.countdown-dial{width:76px;height:76px}.countdown-dial span{font-size:2.6rem}.countdown-dial-label{font-size:.92rem}}@media(max-width:520px){.pack-change-pill{display:none}}@media(max-width:445px){.header-inner,.header-inner nav{gap:10px}.header-inner .brand{gap:6px}.brandmark{width:34px;height:34px}}@media(max-width:365px){.clocks>div{flex-direction:column}.result-actions,.countdown-actions{flex-direction:column}}@media(prefers-reduced-motion:reduce){.countdown-dial span.pop{animation:none}}.credits{display:grid;gap:20px;overflow-wrap:anywhere}.credits-hero{background:#ffda57;border:2px solid var(--ink);border-radius:22px;box-shadow:0 4px var(--ink);padding:clamp(20px,3vw,32px);display:grid;gap:12px}.credits-hero h1{margin:0;font-size:clamp(2.2rem,5vw,3.6rem);font-family:Archivo Black,DejaVu Sans,system-ui,sans-serif;font-weight:900;letter-spacing:-.07em;line-height:1}.credits-hero h1 span{color:var(--violet)}.credits-hero p{margin:0;max-width:68ch;line-height:1.5;font-weight:500}.credits-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.credits-hero .help{border:1.5px solid var(--ink);box-shadow:0 2px var(--ink);text-decoration:none;color:var(--ink)}.credits-split{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:20px;align-items:stretch;margin-bottom:12px}.credits-master{display:grid;gap:8px;align-content:start;max-height:clamp(320px,54dvh,520px);overflow-y:auto;background:#fffefa;border:2px solid var(--ink);border-radius:20px;box-shadow:0 3px var(--ink);padding:12px}.credits-master a{display:flex;align-items:center;gap:10px;padding:8px 11px;border:2px solid #c5bed1;border-radius:13px;background:#fffefa;color:var(--ink);text-decoration:none;font-weight:700;font-size:.9rem}.credits-master a:hover{border-color:var(--ink);background:#f8f6fc}.credits-master a[aria-current=page]{border-color:var(--ink);background:#ffda57;box-shadow:0 3px var(--ink)}.credits-master img{width:34px;height:34px;border-radius:7px;border:1.5px solid var(--ink);object-fit:cover;flex:none}.credits-master span{min-width:0;overflow-wrap:anywhere}.credits-detail{min-width:0;position:relative}.credits-card{position:absolute;inset:0;display:flex;flex-direction:column;background:#fffefa;border:2px solid var(--ink);border-radius:20px;box-shadow:0 3px var(--ink);padding:clamp(16px,2.5vw,24px);scroll-margin-top:18px}.credits-card-head{flex:none;display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1.5px solid #e6e0ee;margin-bottom:12px}.credits-card-head img{width:40px;height:40px;border-radius:9px;border:1.5px solid var(--ink);object-fit:cover;flex:none}.credits-card-head h2{font-size:1.35rem;letter-spacing:-.04em}.credits-card ul{list-style:none;margin:0;padding:0 8px 0 0;display:grid;gap:10px;align-content:start;flex:1;min-height:0;overflow-y:auto}.credits-card li{padding-bottom:10px;border-bottom:1px solid #ece7f3;font-size:.9rem;line-height:1.45;scroll-margin-top:18px}.credits-card li:target{background:#fff4ce;padding:6px 8px;border-radius:8px}.credits-card a{color:var(--violet);font-weight:600}.credits-card p{margin:0;color:#4a415c;line-height:1.45}@media(max-width:760px){.credits-split{grid-template-columns:1fr}.credits-master{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.credits-card{position:static;height:clamp(320px,55dvh,460px)}}@media(max-width:440px){.credits-master{grid-template-columns:1fr}}
