*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#101b1b;color:#f7f3df;font:16px/1.45 system-ui,sans-serif}header{height:54px;background:#111c1d;display:flex;align-items:center;justify-content:space-between;padding:0 max(3vw,env(safe-area-inset-left));border-bottom:1px solid #364341}header b{font:italic 800 16px Georgia;letter-spacing:.12em;color:#e0cb95}a{color:inherit;text-decoration:none}header a{padding:10px}header span,small,#progress,#legend{font-size:13px;letter-spacing:.07em}main{display:grid;grid-template-columns:1.35fr 1fr;min-height:calc(100svh - 54px)}.felt{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 18px;background:radial-gradient(ellipse at 50% 15%,#397465,#1e5046 55%,#123a35);border-right:8px solid #45362a}.felt:before{content:"";position:absolute;inset:4%;border:2px solid #cfbe833c;border-radius:39%;z-index:-1}.tableTitle{text-align:center;color:#e5d3a0}.tableTitle h1{font:700 clamp(26px,4vw,54px)/1.1 Georgia,serif;letter-spacing:.15em;margin:4px 0 12px}.tableTitle small{letter-spacing:.3em}#scene{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;gap:clamp(8px,2vw,30px);width:100%;margin:16px 0}.pile{text-align:center;min-width:18%}.pile.base{width:100%}.chipholder{display:flex;align-items:flex-end;justify-content:center;gap:4px;height:66px}.stack{position:relative;width:clamp(36px,5.4vw,72px);height:100%;filter:drop-shadow(1px 4px 2px #092b2ba8)}.chip{position:absolute;bottom:calc(var(--n)*5px);left:0;width:100%;height:24px;border-radius:50%;background:repeating-conic-gradient(var(--ink) 0deg 36deg,#f8ebc9 36deg 50deg,var(--ink) 50deg 60deg);box-shadow:0 4px 0 var(--edge),0 6px 0 #152724;display:grid;place-items:center}.chip:after{content:attr(data-face);border-radius:50%;width:70%;height:76%;line-height:16px;background:var(--ink);border:1px solid #fff8;color:white;font:bold 12px/17px Georgia}.caption{display:block;margin-top:9px;color:#e1e9d8;font-size:14px}.pile strong{display:block;font:700 22px/1.2 Georgia;color:#fff6d8}#legend{color:#e0d8b7;margin-top:12px;text-align:center}.console{align-self:center;padding:clamp(16px,4vw,60px);max-width:660px;width:100%}#progress{color:#d1b77d}h2{font-size:clamp(22px,3vw,40px);line-height:1.2;margin:12px 0}p{margin:10px 0;color:#d0dbd3}#answers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}button,.action{font:inherit;color:#fbf5e1;border:1px solid #71867c;border-radius:8px;background:#263734;min-height:45px;cursor:pointer;padding:9px 12px}button:hover:enabled,button:focus-visible{background:#3c5049;border-color:#e8c882}button:disabled{opacity:.65}.right,.primary{background:#dec185!important;color:#142821!important}.wrong{border-color:#e2a39b}#feedback{color:#ecd096}#actions{display:flex;flex-wrap:wrap;gap:8px}.action{display:inline-flex;align-items:center}#feedback:empty{margin:0}#answers:empty{display:none}
@media(max-height:520px) and (orientation:landscape){header{height:36px}main{min-height:calc(100svh - 36px);grid-template-columns:1.06fr 1fr}.felt{padding:8px}.tableTitle h1{font-size:24px;margin:0}.tableTitle small{font-size:10px}#scene{margin:4px 0;gap:6px 16px}.chipholder{height:45px}.caption{margin-top:6px;font-size:12px}.pile strong{font-size:17px}#legend{margin-top:4px;font-size:12px}.console{padding:12px max(16px,env(safe-area-inset-right)) 12px 14px}h2{font-size:22px;margin:6px 0}p{font-size:14px;margin:6px 0}#answers{margin-top:9px}.chip{height:20px}.chip:after{font-size:10px;line-height:13px}}
@media(orientation:portrait) and (max-width:700px){main{display:block}.felt{border:0;border-bottom:5px solid #45362a}.console{margin:auto}}
