@font-face{font-family:Golos;src:url('./fonts/golos-text-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Golos;src:url('./fonts/golos-text-500.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Golos;src:url('./fonts/golos-text-600.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Golos;src:url('./fonts/golos-text-700.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:Unbounded;src:url('./fonts/unbounded-600.ttf') format('truetype');font-weight:600;font-display:swap}
:root{color-scheme:dark;--table:#20252e;--paper:#f2eddf;--lime:#d3e68b;--muted:#a7adb8;--ink:#242b30;--font:Golos,'Helvetica Neue',sans-serif;--display:Unbounded,Golos,sans-serif;--ease:cubic-bezier(.16,1,.3,1);--card-w:360px;--card-h:500px}
*{box-sizing:border-box}html{min-width:320px;background:var(--table);scrollbar-color:#6d7582 #20252e}body{margin:0;font-family:var(--font);color:var(--paper);font-size:16px;background:radial-gradient(ellipse at 44% 42%,#343c49 0%,#272e39 34%,#20252e 75%);min-height:100svh}button,input{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button, a,input{touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:5px}button{border:0}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}::selection{color:var(--table);background:var(--lime)}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-header{height:110px;display:flex;justify-content:space-between;align-items:center;padding:0 56px;max-width:1760px;margin:0 auto}.identity{display:flex;gap:18px;align-items:center}.wordmark{font-family:var(--display);font-size:22px;letter-spacing:-.035em;display:flex;align-items:center;gap:8px}.brand-star{color:var(--lime);width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none}.identity-sub{font-size:14px;color:var(--muted);padding-left:18px;border-left:1px solid #5c6470}.table-tools{display:flex;gap:17px;align-items:center}.tool{display:flex;gap:10px;align-items:center;background:none;font-size:14px;color:#c0c5ce;min-height:44px;padding:10px 12px;border-radius:8px;transition:color .18s,background .18s}.tool:hover{color:var(--paper);background:#ffffff08}.icon-only{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:none;border-radius:50%}.table{position:relative;min-height:570px;height:calc(100svh - 190px);max-height:1000px;max-width:1600px;margin:0 auto;isolation:isolate}.table-orbit{position:absolute;left:calc(50% - 25px);top:50%;width:680px;height:440px;transform:translate(-50%,-50%) rotate(-16deg);border:1px solid #aab5c20c;border-radius:50%;pointer-events:none;z-index:-1}.table-orbit:after{content:'';position:absolute;inset:-55px -65px;border:1px solid #aab5c207;border-radius:50%}.deck-area{position:absolute;left:calc(50% - 60px);top:48%;width:310px;height:440px;transform:translate(-50%,-50%);transition:transform .65s var(--ease),opacity .5s;z-index:1;perspective:1000px}.deck{position:relative;width:100%;height:100%;transform:rotate(-8deg);filter:drop-shadow(12px 25px 20px #080b1066)}.deck-layer,.deck-back{position:absolute;inset:0;border-radius:15px}.deck-layer{background:#e3dccb;box-shadow:0 2px 1px #181c2280,inset 0 -2px 2px #ada58e}.layer-4{transform:translate(10px,15px) rotate(4deg);background:#acb999}.layer-3{transform:translate(5px,10px) rotate(1deg)}.layer-2{transform:translate(1px,5px) rotate(-1deg)}.deck-back,.card-turn-back{overflow:hidden;background:#2e3d3c;color:var(--lime);box-shadow:inset 0 0 0 1px #75917a, inset 0 0 0 7px #2e3d3c,inset 0 0 0 8px #75917a}.back-pattern{position:absolute;inset:0;width:100%;height:100%;opacity:.34}.back-frame{position:absolute;inset:22px;border:1px solid #d3e68b5c;border-radius:8px}.deck-title{position:absolute;left:36px;top:95px;font-family:var(--display);font-weight:600;font-size:73px;line-height:1.1;letter-spacing:-.04em;transform:rotate(-2deg)}.deck-title>span{display:block;background:#2e3d3c;padding:0 4px 7px}.deck-flower{display:block;width:64px;height:64px;margin:25px auto 0;stroke:var(--lime);stroke-width:7;stroke-linecap:round;transform:rotate(12deg)}.deck-edition{position:absolute;bottom:39px;left:0;right:0;text-align:center;font-size:14px;letter-spacing:.04em;background:#2e3d3c;padding:8px 0}.deck-caption{position:absolute;left:-30px;right:-30px;top:calc(100% + 38px);margin:0;text-align:center;font-size:14px;color:#b1b7c2}.table.has-card .deck-area{transform:translate(calc(-50% - 150px),-48%) scale(.86) rotate(-7deg);opacity:.32}.table.has-card .deck-caption{opacity:0}.active-stage{width:600px;position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:grid;grid-template-columns:var(--card-w) 150px;align-items:center;gap:54px;z-index:3;pointer-events:none}.card-motion{width:var(--card-w);height:var(--card-h);perspective:1300px;pointer-events:auto;filter:drop-shadow(10px 25px 22px #0a0e1659)}.turning-card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateY(0deg)}.task-card{--card-color:#dfcfab;color:var(--ink);background:var(--paper);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;height:100%;border-radius:15px;padding:32px 28px 22px;isolation:isolate;outline:none;overflow:hidden}.task-card:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(130deg,#ffffff50,transparent 45%,#c1b69c20)}.task-card:after{content:'';position:absolute;left:0;right:0;top:0;height:7px;background:var(--card-color)}.task-card[data-face='6']{background:var(--lime)}.task-card[data-face='6']:after{background:#80944d}.active-stage .task-card{backface-visibility:hidden;transform:translateZ(1px)}.card-turn-back{position:absolute;inset:0;border-radius:15px;transform:rotateY(180deg);backface-visibility:hidden;display:grid;place-items:center;font-family:var(--display);font-size:30px}.card-turn-back>span{background:#2e3d3c;padding:20px;z-index:1}.card-close{position:absolute;top:13px;right:12px;color:#5b615c;width:38px;height:38px}.card-close:hover{background:#242b300c;color:var(--ink)}.task-card button:focus-visible{outline-color:#3a5544;outline-offset:3px}.face-mark{display:grid;place-items:center;width:46px;height:46px;color:var(--ink);flex-shrink:0;margin-bottom:16px}.pip-grid{display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);width:100%;height:100%;gap:4px;padding:8px;border:1.5px solid currentColor;border-radius:10px}.pip{border-radius:50%;background:currentColor;box-shadow:inset 0 1px 2px #0002}.mechanic-name{font-size:16px;font-weight:500;line-height:1.3;text-align:center;margin:0;max-width:240px}.task-text{font-size:37px;line-height:1.12;font-weight:600;letter-spacing:-.035em;overflow-wrap:anywhere;text-wrap:balance;text-align:center;margin:auto 0;width:100%;padding:25px 0}.task-text.medium{font-size:31px}.task-text.long{font-size:27px;line-height:1.18}.task-text.special{font-size:26px;line-height:1.22;letter-spacing:-.025em}.task-text.special.long{font-size:23px;line-height:1.25}.task-hint{font-size:14px;line-height:1.45;max-width:260px;text-align:center;color:#5e6258;margin:0 0 23px;text-wrap:balance}.task-card[data-face='6'] .task-hint{color:#485632}.card-actions{display:flex;justify-content:center;width:100%;border-top:1px solid #242b301c;padding-top:16px;gap:22px}.card-action{display:flex;gap:7px;align-items:center;color:#4d564d;background:none;font-size:14px;min-height:30px;padding:3px 0;white-space:nowrap}.card-action svg{width:17px;height:17px}.card-action:hover{color:#1d382a}.card-action[aria-pressed='true']{color:#203f2b;font-weight:600}.card-action[aria-pressed='true'] svg{fill:#203f2b;stroke:#203f2b}.timer{pointer-events:auto;align-self:start;margin-top:72px;position:relative;width:150px}.timer-caption{color:#bfc5cd;font-size:14px}.timer-digits{font-variant-numeric:tabular-nums;letter-spacing:-.04em;font-size:46px;line-height:1.2;font-weight:400;margin:13px 0 15px}.timer-track{height:3px;width:136px;border-radius:3px;background:#ffffff17;overflow:hidden}.timer-track>div{height:100%;width:100%;background:var(--lime);transform-origin:left;transition:transform .16s linear,background .2s}.timer-action{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:23px;width:110px;height:40px;border-radius:6px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:500}.timer-action:hover{background:white}.timer-action svg{width:16px;height:16px;fill:currentColor}.timer-action:disabled{opacity:.55}.timer-reset{position:absolute;right:-3px;top:132px;background:none;display:grid;place-items:center;width:38px;height:38px;color:#b2bac6}.timer-reset:hover{color:var(--paper)}.timer-state{font-size:13px;color:#a9b1bd;display:block;margin-top:14px;line-height:1.5}.timer.urgent .timer-digits{color:#f0b38f}.timer.urgent .timer-track>div{background:#f0b38f}.timer.expired .timer-digits,.timer.expired .timer-caption{color:#ffd0b0}.timer.expired .timer-state{color:#ffd0b0;font-weight:500}.timer.expired .timer-track{height:5px;background:#f0b38f}.table.time-up .card-motion{filter:drop-shadow(0 0 2px #f3ac7b) drop-shadow(10px 25px 22px #0a0e1659)}.table.time-up .task-card:after{background:#b24f28;height:9px}.dice-zone{position:absolute;left:calc(50% + 245px);top:calc(48% + 112px);width:170px;z-index:4;text-align:center}.dice-button{position:relative;display:block;width:150px;height:135px;margin:0 auto;background:none;border-radius:25px;perspective:650px;outline-offset:8px;transition:filter .2s}.dice-button:not(:disabled):hover{filter:brightness(1.08)}.dice-button:focus-visible{outline-offset:8px}.dice-button:disabled{opacity:1}.dice-flight{position:absolute;left:33px;top:17px;width:84px;height:84px;transform-style:preserve-3d}.dice-cube{position:relative;display:block;width:84px;height:84px;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(-22deg) rotateZ(8deg)}.dice-face{position:absolute;inset:0;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:8px;padding:17px;border-radius:12px;color:#303634;background:#eee8d8;box-shadow:inset 0 0 0 1px #c9c0aa,inset 2px 3px 5px #ffffffa1,inset -3px -4px 7px #998f7445;backface-visibility:hidden}.dice-face .pip{box-shadow:inset 0 2px 3px #050909a1,0 1px 1px #fff7;background:#39433b}.dice-face[data-value='1']{transform:translateZ(42px)}.dice-face[data-value='2']{transform:rotateX(90deg) translateZ(42px);background:#f9f3e5}.dice-face[data-value='3']{transform:rotateY(90deg) translateZ(42px);background:#d5cdbb}.dice-face[data-value='4']{transform:rotateY(-90deg) translateZ(42px);background:#e8decb}.dice-face[data-value='5']{transform:rotateX(-90deg) translateZ(42px);background:#c5bca5}.dice-face[data-value='6']{transform:rotateY(180deg) translateZ(42px);background:#ede4d3}.dice-shadow{position:absolute;width:104px;height:30px;border-radius:50%;background:#090c12;filter:blur(9px);opacity:.55;bottom:15px;left:27px;transform:rotate(-12deg)}.roll-cue{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-size:16px;font-weight:500}.roll-cue>span+span{color:#abb2be;font-size:13px;font-weight:400}.table.rolling .roll-cue{opacity:.65}.table-footer{height:80px;padding:0 56px;max-width:1760px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#989fac}.footer-mark{font-family:var(--display);font-size:21px;color:#78818e}.loading-message{position:absolute;bottom:12px;left:0;width:100%;text-align:center;color:#c5cbd3;font-size:14px}.panel-scrim{position:fixed;inset:0;background:#0a101a80;z-index:10;animation:scrim-in .22s both}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(460px,100%);z-index:11;background:#f2eddf;color:var(--ink);box-shadow:-18px 0 60px #070e1933;overflow:auto;overscroll-behavior:contain;animation:drawer-in .38s var(--ease) both;color-scheme:light;scrollbar-color:#b0b1a1 #f2eddf}.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:26px 28px 20px;position:sticky;top:0;background:#f2eddf;z-index:2}.drawer-header h1{font-size:27px;font-weight:500;letter-spacing:-.035em;margin:0}.panel-close:hover{background:#242b300b}.drawer button:focus-visible,.drawer input:focus-visible{outline-color:#526836}.drawer-tabs{display:flex;gap:24px;padding:0 28px;border-bottom:1px solid #242b3020}.drawer-tab{background:none;padding:12px 0 15px;color:#6b6e63;font-size:16px;border-bottom:2px solid transparent}.drawer-tab[aria-selected='true']{color:var(--ink);border-color:var(--ink)}.tab-count{font-size:12px;margin-left:6px}.history-list{list-style:none;padding:10px 28px;margin:0}.history-entry{width:100%;display:grid;grid-template-columns:33px 1fr;gap:14px;background:none;text-align:left;padding:20px 0;border-bottom:1px solid #242b3019}.history-entry:hover .entry-text{text-decoration:underline;text-underline-offset:4px}.history-entry .face-mark{width:30px;height:30px;margin:2px 0 0}.history-entry .pip-grid{padding:5px;gap:2px;border-radius:7px}.entry-meta{display:block;color:#686d61;font-size:13px;margin-bottom:7px}.entry-text{display:block;font-size:17px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}.entry-date{display:block;font-size:12px;color:#707367;margin-top:8px}.empty-state{padding:70px 28px}.empty-state>svg{width:40px;height:40px;fill:none;stroke:#75815f;stroke-width:1.4;margin-bottom:22px}.empty-state h2{font-size:23px;font-weight:500;letter-spacing:-.02em;margin:0 0 10px}.empty-state p{font-size:16px;color:#666c60;line-height:1.6;margin:0;max-width:310px}.history-note{font-size:13px;line-height:1.5;color:#6b7164;padding:16px 28px}.settings-body{padding:0 28px 36px}.setting-switch{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;padding:17px 0}.setting-label{font-size:16px;display:flex;align-items:center;gap:10px}.setting-label svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}.switch{appearance:none;flex-shrink:0;width:43px;height:25px;background:#c5c7b9;border-radius:20px;position:relative;cursor:pointer;margin:0;transition:background .2s}.switch:before{content:'';position:absolute;width:19px;height:19px;border-radius:50%;top:3px;left:3px;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.switch:checked{background:#536b3d}.switch:checked:before{transform:translateX(18px)}.settings-section{margin-top:28px}.settings-section h2{font-size:21px;letter-spacing:-.025em;font-weight:500;margin:0 0 8px}.settings-help{font-size:14px;line-height:1.55;color:#686e60;margin:0 0 23px}.duration-row{padding:17px 0;border-top:1px solid #242b301c}.duration-title{font-size:14px;font-weight:500;display:flex;align-items:center;gap:10px;margin:0 0 11px}.mini-face{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #939a84;border-radius:5px;font-variant-numeric:tabular-nums;font-size:13px}.duration-controls{display:flex;gap:6px;align-items:center}.preset{font-size:13px;padding:7px 10px;min-height:36px;border-radius:5px;color:#505b47;background:#e2e4d6}.preset:hover,.preset[aria-pressed='true']{background:#c8d79b;color:#2b3e22}.duration-input{width:66px;min-height:36px;margin-left:auto;border:1px solid #a8b198;border-radius:5px;background:#fcf8ef;color:var(--ink);font-size:14px;text-align:center;padding:6px 2px;font-variant-numeric:tabular-nums;caret-color:#466735}.input-unit{font-size:12px;color:#64705a}.duration-controls:has(input:disabled){opacity:.55}.settings-section .setting-switch{padding-top:0}.reset-deck{display:block;padding:13px 0;color:#994c35;background:none;font-size:14px;text-align:left;line-height:1.5}.reset-confirm{padding:18px;background:#eadac8;border-radius:8px;margin:10px 0}.reset-confirm p{font-size:14px;line-height:1.5;margin:0 0 15px}.reset-confirm div{display:flex;gap:16px}.reset-confirm button{padding:8px 12px;border-radius:5px;font-size:14px;background:#f8f0e4}.reset-confirm button:first-child{background:#85432f;color:white}.preview-layer{position:fixed;inset:0;background:#111722de;z-index:20;display:grid;place-items:center;padding:30px 20px;overflow:auto;animation:scrim-in .2s both}.preview-inner{width:var(--card-w);max-width:100%;height:auto}.preview-caption{font-size:14px;line-height:1.6;margin:0 0 18px;color:#e5e6de}.preview-caption span{display:block;font-size:13px;color:#acb4bf}.preview-inner .task-card{height:var(--card-h);box-shadow:12px 20px 50px #0003}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(500px,calc(100% - 32px));background:var(--paper);color:var(--ink);padding:14px 21px;box-shadow:0 7px 30px #0003;border-radius:8px;font-size:14px;line-height:1.5;z-index:30;animation:toast-in .25s var(--ease) both}.toast.persistent{padding-right:42px;cursor:pointer}.boot-error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:30px;background:var(--table);z-index:8}.boot-error p{max-width:360px;color:#b6beca;line-height:1.6}.boot-error button{background:var(--lime);color:var(--ink);padding:12px 24px;border-radius:7px;justify-self:center}.expired-pulse{animation:end-pulse .65s ease-out 1}
@keyframes drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes scrim-in{from{opacity:0}to{opacity:1}}@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@keyframes end-pulse{0%{outline:0 solid #e8aa7d99}65%{outline:12px solid #e8aa7d00}100%{outline:0 solid transparent}}
@media(min-width:801px) and (max-height:760px){:root{--card-w:320px;--card-h:440px}.table-header{height:86px}.table-footer{height:58px}.table{height:calc(100svh - 144px);min-height:470px}.deck-area{width:280px;height:398px;top:45%}.deck-title{font-size:64px;top:80px}.deck-flower{width:52px;height:52px;margin-top:16px}.deck-caption{top:calc(100% + 32px)}.active-stage{width:550px;gap:40px;top:47%}.task-card{padding:26px 24px 18px}.task-text{font-size:33px;padding:20px 0}.task-text.medium{font-size:28px}.task-text.long{font-size:25px}.task-text.special{font-size:24px}.task-text.special.long{font-size:21px}.face-mark{width:42px;height:42px;margin-bottom:13px}.task-hint{margin-bottom:18px}.dice-zone{left:calc(50% + 205px);top:calc(47% + 95px)}.timer{margin-top:58px}}
@media(max-width:1000px) and (min-width:801px){.identity-sub{display:none}.table-header,.table-footer{padding-left:32px;padding-right:32px}.dice-zone{left:calc(50% + 190px)}.active-stage{width:570px;gap:34px}.table.has-card .deck-area{transform:translate(calc(-50% - 110px),-48%) scale(.82) rotate(-7deg)}}
@media(max-width:800px){:root{--card-w:330px;--card-h:440px}.table-header{height:90px;padding:0 24px}.wordmark{font-size:19px}.identity-sub{display:none}.table-tools{gap:6px}.tool{padding:10px}.tool>span{display:none}.table{min-height:630px;height:calc(100svh - 150px);max-height:1000px}.table-orbit{width:90%;height:360px;left:50%;top:41%}.table-orbit:after{inset:-35px -10px}.deck-area{left:50%;top:40%;width:265px;height:376px}.deck-title{top:75px;font-size:61px;left:31px}.deck-flower{width:48px;height:48px;margin-top:17px}.deck-edition{bottom:30px}.deck-caption{font-size:13px;top:calc(100% + 34px)}.dice-zone{width:100%;left:auto;right:0;top:auto;bottom:20px;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:25px}.dice-button{width:112px;height:115px;margin:0;flex-shrink:0}.dice-flight{left:20px;top:21px;scale:.82;transform-origin:center}.dice-shadow{left:15px;bottom:0;width:95px;height:24px}.roll-cue{text-align:left;margin:0;gap:7px;font-size:17px}.roll-cue>span+span{font-size:13px}.table-footer{height:60px;padding:0 24px;font-size:11px;gap:20px}.footer-mark{font-size:18px}.active-stage{top:12px;left:50%;width:calc(100% - 40px);max-width:360px;transform:translateX(-50%);display:flex;flex-direction:column;gap:17px}.card-motion{width:100%}.table.has-card{min-height:700px;height:calc(100svh - 150px)}.table.has-card .deck-area{opacity:0;pointer-events:none}.task-card{padding:27px 25px 19px}.face-mark{width:42px;height:42px;margin-bottom:13px}.task-text{font-size:33px;padding:23px 0}.task-text.medium{font-size:29px}.task-text.long{font-size:25px}.task-text.special{font-size:24px}.task-text.special.long{font-size:21px}.task-hint{font-size:13px;margin-bottom:18px}.timer{margin:0;align-self:center;width:100%;height:91px;display:grid;grid-template-columns:1fr 112px 35px;grid-template-rows:17px 38px 15px;gap:4px 12px;align-items:center}.timer-caption{font-size:12px;grid-column:1;grid-row:1}.timer-digits{font-size:33px;margin:0;grid-column:1;grid-row:2}.timer-track{width:100%;grid-column:1;grid-row:3}.timer-action{margin:0;grid-column:2;grid-row:2;width:112px;height:38px}.timer-reset{position:static;grid-column:3;grid-row:2;width:35px;height:35px}.timer-state{grid-row:3;grid-column:2/4;font-size:12px;margin:0}.table.has-card .dice-zone{bottom:12px;gap:23px}.table.has-card .dice-button{height:105px}.table.has-card .roll-cue{font-size:15px}.preview-inner{width:330px}.drawer-header{padding-top:24px}.loading-message{bottom:0}.preview-caption{margin-bottom:12px}}
@media(max-width:370px){:root{--card-h:440px}.table-header{padding:0 16px}.wordmark{font-size:17px}.active-stage{width:calc(100% - 28px)}.task-card{padding-left:20px;padding-right:20px}.task-text.special.long{font-size:20px}.deck-area{width:245px;height:348px;top:38%}.deck-title{font-size:55px;top:67px}.deck-flower{width:44px;height:44px}.deck-edition{bottom:23px}.drawer-header,.settings-body{padding-left:20px;padding-right:20px}.preset{padding:7px 8px}.duration-controls{gap:5px}.duration-input{width:60px}.roll-cue{font-size:16px}.table-footer{padding:0 16px}.table-footer>span:first-child{max-width:230px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.dice-button:hover{filter:none}}

/* Ink differentiation is printed in the face mark; the paper stays continuous. */
.task-card:after{display:none}.task-card .face-mark{color:#4b513e}.task-card[data-face="1"] .face-mark{color:#775a29}.task-card[data-face="2"] .face-mark{color:#625c87}.task-card[data-face="3"] .face-mark{color:#3c684b}.task-card[data-face="4"] .face-mark{color:#895236}.task-card[data-face="5"] .face-mark{color:#3c657a}.task-card[data-face="6"] .face-mark{color:#384f22}.table.time-up .task-card{outline:3px solid #f3ac7b;outline-offset:4px}.table.time-up .card-motion{filter:drop-shadow(10px 25px 22px #0a0e1659)}
@media(max-width:800px){.table-orbit{width:70%;height:290px}.table-orbit:after{display:none}.table.has-card .deck-area{visibility:hidden}}
/* Table refinement requested in browser review. */
.table{height:calc(100svh - 110px)}
.task-text{overflow-wrap:normal;word-break:normal;hyphens:none}
.solid-die{transform:none!important;transform-style:flat}
.solid-die>.dice-face{display:none}
.die-render{position:absolute;left:-33px;top:-33px;width:150px;height:150px;pointer-events:none}
.card-actions{gap:15px;align-items:center}.bookmark-action{width:28px;justify-content:center}.bookmark-action svg{width:18px;height:18px}
.timer{margin-top:80px}.timer-digits{margin-top:0}.timer-reset{top:105px}
.timer-caption{display:block;font-size:14px;margin-bottom:12px;color:#ffd0b0}
.drawer{width:min(600px,100%)}
.duration-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.duration-title{display:flex;align-items:center;gap:10px;margin:0;min-width:0;font-size:14px;line-height:1.3}
.duration-title>span:last-child{max-width:155px}
.duration-title .face-mark{width:28px;height:28px;margin:0;flex-shrink:0}
.duration-title .pip-grid{padding:4px;gap:2px;border-radius:6px}
.duration-controls{gap:3px;flex-shrink:0}.preset{padding:7px 9px;min-width:35px}.input-unit{margin-left:5px;font-size:13px}
@media(min-width:801px) and (max-height:760px){.table{height:calc(100svh - 86px)}}
@media(max-width:800px){.table,.table.has-card{height:calc(100svh - 90px)}.dice-zone{width:112px;right:24px;bottom:34px}.table.has-card .dice-zone{bottom:28px}.timer{grid-template-rows:38px 16px;grid-template-columns:1fr 112px 35px;height:68px;margin:0}.timer-digits,.timer-action,.timer-reset{grid-row:1}.timer-track{grid-row:2;grid-column:1/4}.timer-caption{grid-row:1;grid-column:1/4;position:absolute;top:-22px;margin:0}.timer.expired{margin-top:22px}.duration-row{gap:8px}.duration-title{font-size:13px;gap:7px}.duration-title>span:last-child{max-width:136px}.preset{min-width:29px;padding:7px 6px;font-size:13px}.settings-body{padding-left:20px;padding-right:20px}.duration-controls{gap:2px}.input-unit{font-size:12px;margin-left:3px}}
@media(max-width:370px){.duration-title{gap:5px;font-size:12px}.duration-title>span:last-child{max-width:88px}.duration-title .face-mark{width:24px;height:24px}.preset{min-width:27px;padding:7px 5px}.input-unit{margin-left:2px}.settings-body{padding-left:15px;padding-right:15px}}
/* Second browser review: overhead tabletop and quieter, denser settings. */
.extra-layer{transform:translate(var(--dx),var(--dy)) rotate(var(--angle));background:linear-gradient(0deg,#cec6b4 0 2px,#ede7da 2px 4px,#d1c9b8 4px 5px,#e5ddce 5px)}
.dice-shadow{width:112px;height:60px;left:20px;bottom:19px;filter:blur(10px);opacity:.4}
.dice-cube:not(.solid-die){transform:rotateX(25deg) rotateY(-20deg) rotateZ(12deg)}
.drawer .duration-row{border:0;padding:14px 0}
.duration-title>span:last-child{max-width:none;white-space:nowrap}
.setting-switch:first-child{padding-top:8px;padding-bottom:8px}
.setting-switch:first-child .setting-label{font-size:15px;gap:9px;white-space:nowrap}
.reset-durations{background:none;color:#51663d;font-size:14px;padding:8px 0;margin-top:8px;min-height:38px;text-align:left;text-decoration:underline;text-decoration-color:#51663d55;text-underline-offset:4px}
.reset-durations:hover{color:#263b1b;text-decoration-color:currentColor}
.new-game-section .settings-help{margin-bottom:10px}
.new-game-section .reset-deck{padding:8px 0}
.reset-preserved{margin:2px 0 0;font-size:14px;line-height:1.5;color:#686e60}
.timer{display:grid;grid-template-columns:110px 110px;grid-template-rows:auto 3px 40px;gap:16px 12px;width:232px;height:auto}
.timer-digits{grid-column:1/-1;grid-row:1;margin:0;line-height:1.2}
.timer-track{grid-column:1/-1;grid-row:2;width:100%}
.timer-action,.timer-reset{position:static;grid-row:3;margin:0;display:flex;align-items:center;justify-content:center;gap:7px;width:110px;height:40px;border-radius:6px;font-size:14px}
.timer-action{grid-column:1}.timer-reset{grid-column:2;background:transparent;color:#b2bac6;transition:background .18s,color .18s}
.timer-reset:hover{background:#ffffff08;color:var(--paper)}
.timer-reset svg{width:17px;height:17px}
.timer-caption{position:absolute;top:-26px;grid-column:1/-1;grid-row:1;margin:0}
@media(max-width:800px){.timer{grid-template-columns:1fr 1fr;grid-template-rows:auto 3px 40px;gap:12px;width:100%;height:auto}.timer-digits{grid-column:1/-1;grid-row:1}.timer-track{grid-row:2}.timer-action,.timer-reset{grid-row:3;width:100%;height:40px}.timer.expired{margin-top:22px}.duration-title>span:last-child{max-width:none}.duration-title{font-size:12px;gap:6px}.duration-controls .preset{min-width:27px;padding:7px 5px}.duration-controls .input-unit{margin-left:3px}.drawer .duration-row{gap:8px}.setting-switch:first-child .setting-label{font-size:14px}.dice-shadow{left:9px;bottom:6px;width:100px;height:52px}}
@media(max-width:420px){.duration-row{display:grid!important;grid-template-columns:1fr auto;gap:6px!important}.duration-title>span:last-child{max-width:125px;white-space:normal}.setting-switch:first-child .setting-label{font-size:13px;gap:7px}.settings-body{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.timer-reset{transition:none}}
/* Third browser review: orthographic top view and minimal card actions. */
.timer-action>*,.timer-reset>*{pointer-events:none}
.card-actions{border:0;gap:30px;padding-top:16px}
.task-card[data-face='2'] .card-actions{margin-top:26px}
.turning-card .task-card{backface-visibility:hidden;transform:translateZ(1px)}
.preview-inner>.card-motion{width:100%;height:var(--card-h)}
.dice-face{border-radius:20px}
.dice-shadow{width:104px;height:104px;left:23px;bottom:8px;filter:blur(9px);opacity:.28}
@media(max-width:800px){.dice-shadow{width:86px;height:86px;left:15px;bottom:4px}}

/* Instructions are consolidated into the first mechanic heading. */
.task-card[data-face="1"] .mechanic-name{max-width:100%;text-wrap:balance}
/* Pointer-driven tabletop materials. Reveal/flip and tilt live on separate layers. */
.task-card{--tilt-x:0deg;--tilt-y:0deg;--light-x:50%;--light-y:50%;--light-angle:120deg;--light-opacity:.12;overflow:visible;transform-style:preserve-3d}
.turning-card .task-card{transform:translateZ(1px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}
.task-card:before{border-radius:inherit}
.task-card>.face-mark,.task-card>.mechanic-name,.task-card>.task-text,.task-card>.card-actions{position:relative;z-index:2}
.task-card>.card-close{z-index:4}
.card-light,.card-edge{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1}
.card-light{background:radial-gradient(ellipse at var(--light-x) var(--light-y),#fff9,transparent 65%);opacity:var(--light-opacity);mix-blend-mode:soft-light;transition:opacity .25s}
.card-edge{padding:1.5px;background:linear-gradient(var(--light-angle),#fff0 8%,#fff9 42%,#fff 50%,#fff2 60%,#fff0 85%);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:var(--light-opacity)}
.task-card[data-face='6']{background:linear-gradient(135deg,#f7e4ac 0%,#d4af59 25%,#f5da86 45%,#ba8931 70%,#e6c46f 100%);color:#302714;box-shadow:0 0 18px #e9b64066,0 0 42px #d39a262b;animation:gold-breathe 3.8s ease-in-out infinite}
.task-card[data-face='6']:before{background:linear-gradient(var(--light-angle),#8a591d22 10%,#fff4bb66 30%,#fff9dbaa 43%,#f5dc8c11 52%,#9b6b2522 67%,#fff4b766 90%);mix-blend-mode:soft-light}
.task-card[data-face='6'] .card-light{background:radial-gradient(ellipse at var(--light-x) var(--light-y),#fffbe3 0%,#fff0 65%);mix-blend-mode:overlay}
.task-card[data-face='6'] .card-edge{background:linear-gradient(var(--light-angle),#c38f2d 5%,#fff8c4 32%,#fff9dc 47%,#d5a13e 60%,#fff2a6 85%);opacity:.9;padding:2px}
.task-card[data-face='6'] .face-mark,.task-card[data-face='6'] .card-action{color:#514019}
.gold-particles{position:absolute;left:-50px;top:-50px;width:calc(100% + 100px);height:calc(100% + 100px);pointer-events:none;z-index:0}
@keyframes gold-breathe{0%,100%{box-shadow:0 0 14px #e9b64050,0 0 34px #d39a2620}50%{box-shadow:0 0 22px #ffda6970,0 0 48px #d39a2633}}
.discard-pile{position:fixed;left:-120px;top:58%;width:180px;height:250px;z-index:5;background:none;transform:translateY(-50%);border-radius:14px;padding:0;perspective:1000px}
.discard-sheets{position:absolute;inset:0;pointer-events:none}
.discard-sheet{position:absolute;inset:0;border-radius:11px;transform:translate(calc(var(--n)*2px),calc(var(--n)*-2px)) rotate(var(--r));background:#33483e;box-shadow:0 2px 1px #0b11184d,inset 0 0 0 1px #8a9e78,inset 0 0 0 5px #33483e,inset 0 0 0 6px #829773;transition:transform .4s var(--ease)}
.discard-sheet:after{content:'';position:absolute;inset:16px;border:1px solid #d3e68b44;border-radius:6px}
.discard-pile:hover .discard-sheet,.discard-pile:focus-visible .discard-sheet{transform:translate(calc(var(--n)*4px + 6px),calc(var(--n)*-8px)) rotate(calc(var(--r)*1.6))}
.discard-label{position:absolute;left:calc(100% + 26px);top:47%;color:var(--paper);font-size:14px;opacity:0;transform:translateX(-6px);transition:opacity .25s,transform .25s;pointer-events:none}
.discard-pile:hover .discard-label,.discard-pile:focus-visible .discard-label{opacity:1;transform:translateX(0)}
.discard-pile:focus-visible{outline-offset:8px}
.anticipating .dice-flight{animation:die-ready 1.25s ease-in-out infinite}
.anticipating .dice-shadow{animation:shadow-ready 1.25s ease-in-out infinite}
@keyframes die-ready{0%,100%{translate:0 0;rotate:0deg}15%{translate:0 -5px;rotate:-2deg}27%{translate:0 0;rotate:1.5deg}42%{translate:0 -3px;rotate:-1deg}57%,85%{translate:0 0;rotate:0deg}}
@keyframes shadow-ready{0%,100%{scale:1;opacity:.28}15%{scale:1.12;opacity:.18}27%{scale:1;opacity:.28}42%{scale:1.06;opacity:.22}57%,85%{scale:1;opacity:.28}}
@media(max-width:800px){.discard-pile{width:120px;height:170px;left:-80px;top:auto;bottom:35px;transform:none}.discard-label{left:calc(100% + 16px)}.discard-sheet{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.task-card[data-face='6']{animation:none}.gold-particles{display:none}.anticipating .dice-flight,.anticipating .dice-shadow{animation:none}.turning-card .task-card{transform:translateZ(1px)}.discard-sheet{transition:none}}
#game-surface{overflow-x:clip}
.preview-layer{overflow-x:hidden}
/* Every card in the draw deck has the same printed back. */
.deck-layer{overflow:hidden;background:#2e3d3c;box-shadow:0 2px 1px #181c2280,inset 0 -2px 1px #e4ddcd,inset 0 0 0 1px #7c9478}
.deck-layer .back-pattern{opacity:.34}
.layer-back-frame{position:absolute;inset:22px;border:1px solid #d3e68b5c;border-radius:8px}
.active-stage.discarding{z-index:6}
/* Discards are snapshots of the actual played cards, face up, newest on top. */
.discard-sheet{background:#f2eddf;color:#242b30;box-shadow:0 2px 2px #080b1059,inset 0 0 0 1px #d0c7b4;display:flex;align-items:center;flex-direction:column;padding:17px 14px;overflow:hidden}
.discard-sheet:after{display:none}
.discard-sheet[data-face='6']{background:linear-gradient(135deg,#f7e4ac,#d4af59 35%,#f5da86 60%,#c29236);color:#493711}
.discard-sheet .face-mark{width:28px;height:28px;flex-shrink:0;margin:0 0 10px;color:inherit}
.discard-sheet .pip-grid{padding:4px;gap:2px;border-radius:6px}
.discard-mechanic{font-size:9px;line-height:1.3;text-align:center}
.discard-word{font-size:17px;font-weight:600;letter-spacing:-.025em;line-height:1.15;text-align:center;overflow-wrap:anywhere;margin:auto 0;width:100%;text-wrap:balance}
@media(max-width:800px){.discard-sheet{padding:10px 8px}.discard-sheet .face-mark{width:21px;height:21px;margin-bottom:6px}.discard-sheet .pip-grid{padding:3px;gap:1.5px}.discard-mechanic{font-size:7px}.discard-word{font-size:12px}}
/* Gallery, second ticks and unified pill controls. */
*,*::before,*::after{-webkit-user-select:none;user-select:none}
button:not(.discard-pile):not(.dice-button){border-radius:999px!important}
.task-content{width:100%;margin:auto 0;padding:25px 0;position:relative;z-index:2}
.task-content .task-text{margin:0;padding:0}
.reverse-word{font-size:14px;font-weight:400;line-height:1.4;color:#69716c;text-align:center;margin:14px 0 0;overflow-wrap:anywhere}
.task-card .face-mark,.task-card[data-face] .face-mark{color:var(--ink)!important}
.timer{grid-template-rows:auto auto 40px}
.timer-track{height:auto!important;min-height:4px;overflow:visible;background:none!important;display:grid;grid-template-columns:repeat(var(--dot-columns,60),minmax(0,1fr));column-gap:1.5px;row-gap:4px;color:var(--lime)}
.timer-dot{width:100%;max-width:3.5px;aspect-ratio:1;justify-self:center;border-radius:50%;background:currentColor;opacity:.18}
.timer-dot.on{opacity:1}
.timer.urgent .timer-track,.timer.expired .timer-track{color:#f0b38f}
.preset{background:none!important;color:var(--ink)!important;border-radius:999px!important}
.preset:hover{background:#242b3010!important}
.preset[aria-pressed='true'],.preset[aria-pressed='true']:hover{background:var(--ink)!important;color:var(--paper)!important}
.settings-action,.new-game-section .settings-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 17px;border:1px solid #242b302b;border-radius:999px;background:none;color:var(--ink);font-size:14px;font-weight:500;text-decoration:none;line-height:1.4;margin-top:8px;transition:background .18s}
.settings-action:hover{background:#242b300c;color:var(--ink)}
.reset-preserved{margin-top:9px}
.history-gallery{position:fixed;inset:0;z-index:25;background:#171e28f5;display:flex;flex-direction:column;overflow:hidden}
.gallery-header{display:flex;align-items:center;justify-content:space-between;padding:25px 40px 8px;flex-shrink:0}
.gallery-header h1{font-size:27px;font-weight:500;letter-spacing:-.035em;margin:0}
.gallery-header button{color:var(--paper);background:none}
.gallery-header button:hover{background:#ffffff0d}
.history-rail{display:flex;align-items:center;gap:40px;overflow-x:auto;overflow-y:hidden;flex:1;min-height:0;padding:65px 64px 90px;overscroll-behavior:contain;scrollbar-color:#7d8b7b #252d36;outline:none}
.history-rail:focus-visible{outline:2px solid var(--lime);outline-offset:-6px}
.gallery-card{flex:0 0 var(--card-w);width:var(--card-w);height:var(--card-h);perspective:1300px}
.gallery-card .task-card{height:100%}
@media(max-width:800px){.timer{grid-template-rows:auto auto 40px}.gallery-header{padding:19px 20px 0}.history-rail{gap:24px;padding:55px 28px 75px}.gallery-card{flex-basis:min(var(--card-w),calc(100vw - 56px));width:min(var(--card-w),calc(100vw - 56px));height:var(--card-h)}}
.discard-reverse{display:block;color:#69716c;font-size:9px;line-height:1.3;margin-top:7px;font-weight:400;overflow-wrap:anywhere}
@media(max-width:800px){.discard-reverse{font-size:7px;margin-top:4px}}
.gallery-card .task-card[data-face='6']{animation-play-state:paused}
.gallery-card .task-card[data-face='6'].in-view{animation-play-state:running}
.face-mark{color:var(--ink)!important}

/* Printed title, quiet settings and tactile card play. */
.identity{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.identity-title{font:600 23px/1.1 Golos,sans-serif;letter-spacing:-.035em}
.identity .identity-sub{display:block;border:0;padding:0;margin:0;font-size:12px;line-height:1.35;color:var(--muted)}
.drawer,.drawer-header{background:#fff}
.drawer-header h1{font-weight:700}
.drawer button:focus-visible,.drawer input:focus-visible{outline-color:var(--ink)}
.switch:checked,.switch:checked:hover,.switch:checked:active{background:var(--ink)}
.setting-switch:first-child .setting-label{gap:10px}
.sound-mark{width:28px;height:28px;flex:0 0 28px;border:1.5px solid var(--ink);border-radius:6px;display:grid;place-items:center}
.setting-label .sound-mark svg{width:19px;height:19px;stroke-width:2}
.timer{row-gap:0}
.timer-track{margin-top:10.667px;margin-bottom:26.667px}
.discard-sheets{transition:transform .65s var(--ease),opacity .65s var(--ease);transform-origin:right center}
.table.has-card .discard-sheets{transform:scale(.82);opacity:.4}
.table.has-card .discard-pile:hover .discard-sheets,.table.has-card .discard-pile:focus-visible .discard-sheets{opacity:.65}
.card-motion,.turning-card{pointer-events:none}
.card-play{position:relative;width:100%;height:100%;transform-style:preserve-3d;pointer-events:none}
.card-play>.task-card{pointer-events:auto}
.card-play-back{position:absolute;inset:0;border-radius:15px;background:#2e3d3c;transform:rotateY(180deg);backface-visibility:hidden;box-shadow:inset 0 0 0 1px #7c9478,inset 0 0 0 8px #2e3d3c,inset 0 0 0 9px #d3e68b66;pointer-events:none;overflow:hidden}
.card-play-back svg{width:100%;height:100%;color:#d3e68b;opacity:.35}
.card-play-back:after{content:'эки\a воки';white-space:pre;position:absolute;inset:0;display:grid;place-content:center;color:var(--lime);font:600 57px/1.4 Unbounded,sans-serif;letter-spacing:-.04em;text-align:center}
@media(max-width:800px){.identity-title{font-size:20px}.identity .identity-sub{font-size:11px}.timer-track{margin-top:8px;margin-bottom:20px}.sound-mark{width:24px;height:24px;flex-basis:24px}.setting-label .sound-mark svg{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){.discard-sheets{transition:none}}

/* The hit target includes the air around the visible discard sheets. */
.discard-pile{left:0;width:120px;height:370px}
.discard-sheets{inset:auto;left:-120px;top:60px;width:180px;height:250px}
.settings-section:not(.new-game-section)>.settings-help{margin-bottom:14px}
@media(max-width:800px){.discard-pile{left:0;width:80px;height:250px;bottom:0}.discard-sheets{left:-80px;top:45px;width:120px;height:170px}}
