:root{color:#f5f1df;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--gold:#f8d58a;--ivory:#fffaf1;background:#123f33;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(at 50% 5%,#28725a 0%,#174b3d 46%,#10392f 100%);min-width:320px;min-height:100dvh;margin:0}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.55}button:focus-visible{outline-offset:3px;outline:3px solid #ffd577}.shell{max-width:540px;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));flex-direction:column;gap:19px;margin:auto;display:flex;position:relative}header{justify-content:space-between;align-items:center;display:flex}.brand{letter-spacing:-.7px;align-items:center;gap:11px;font-size:23px;font-weight:800;display:flex}.brand small{letter-spacing:2px;color:#c5dbcf;margin-top:2px;font-size:8px;font-weight:600;display:block}.brand-mark{background:var(--gold);color:#174b3d;border-radius:8px;place-items:center;width:40px;height:44px;font-family:Georgia,serif;font-size:28px;display:grid;transform:rotate(-6deg);box-shadow:2px 3px #101e20}.level{border:1px solid #ffffff2d;border-radius:18px;padding:7px 12px;font-size:12px;font-weight:700}.scorebar{background:#05291f38;border:1px solid #e9f5e51c;border-radius:14px;justify-content:space-between;padding:14px 17px;display:flex}.scorebar span{color:#b3cfc1;letter-spacing:1.4px;font-size:10px;font-weight:700;display:block}.scorebar strong{margin-top:5px;font-size:30px;line-height:1.1;display:block}.scorebar small{color:#adcbba;font-size:17px}.deck-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.instructions{max-width:45%}.instructions strong{font-size:15px}.instructions small{color:#c6d9cb;margin-top:6px;font-size:12px;line-height:1.4;display:block}.deck{align-items:center;gap:8px;display:flex}.deck .card,.deck .empty-card{width:75px;height:101px}.card{background:var(--ivory);color:#303d34;aspect-ratio:3/4;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #dcccb0;border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;padding:6px;transition:transform .15s,box-shadow .15s;display:flex;position:relative;box-shadow:0 3px 6px #06181160}.card .word{overflow-wrap:anywhere;text-align:center;font-size:clamp(12px,3.4vw,17px);font-weight:700}.card img{object-fit:contain;pointer-events:none;width:60%;height:50%}.caption{text-align:center;font-size:11px;font-weight:650}.card.selected{z-index:2;outline:3px solid #f8c65e;transform:translateY(-5px);box-shadow:0 6px 15px #06281e90}.category{background:#fff1c9;border:1px solid #e0a94a}.category-tag{letter-spacing:.8px;color:#836219;font-size:8px;font-weight:800}.card.back{color:#fff;background-color:#225891;background-image:repeating-linear-gradient(45deg,#fff1 0 8px,#0000 8px 16px),repeating-linear-gradient(-45deg,#ffffff0c 0 8px,#0000 8px 16px);border:3px solid #cbe4f4}.stock span{font-size:27px;font-weight:800}.stock small{font-size:10px}.empty-card{color:#adc3b4;aspect-ratio:3/4;background:#163f3540;border:1.5px dashed #b2d0bd60;border-radius:9px;place-items:center;width:100%;font-size:11px;display:grid}.foundations{grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:10px;display:grid}.foundation{color:#d4e3d6;background:#113d3150;border:1.5px dashed #c7ddc28a;border-radius:11px;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:94px;padding:8px;display:flex}.foundation .plus{font-size:25px;font-weight:300}.foundation small{font-size:11px}.foundation.filled{color:#384337;background:#fff1c9;border:1px solid #e6b762;box-shadow:0 3px 5px #06181140}.foundation strong{font-size:17px}.progress-track{background:#d6c996;border-radius:2px;width:70%;height:4px}.progress-track i{background:#26764c;border-radius:2px;height:100%;transition:width .2s;display:block}.tableau{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:9px;min-height:230px;display:grid}.column{flex-direction:column;min-width:0;min-height:100px;display:flex}.column .card:not(:first-child){margin-top:-68%}.column .card:not(.hidden):not(:last-child){margin-bottom:40%}.column .hidden{pointer-events:none}.feedback{text-align:center;color:#d6e7dc;min-height:20px;font-size:13px}footer{justify-content:center;gap:12px;margin-top:auto;display:flex}.secondary,.primary{border:0;border-radius:11px;padding:13px 18px;font-weight:750}.secondary{color:#f1ede0;background:#fff1;border:1px solid #fff3}.primary{color:#174b3d;background:var(--gold);box-shadow:0 3px #b68131}.intro{text-align:center;margin:auto}.intro h1{font-family:Georgia,serif;font-size:40px}.overlay{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:10;background:#09281dc9;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.result{color:#214839;text-align:center;background:#fffaf0;border:1px solid #fce7b2;border-radius:22px;width:min(100%,360px);padding:28px 24px;box-shadow:0 20px 60px #0005}.result h1{margin:8px 0;font-family:Georgia,serif;font-size:35px}.result-icon{color:#be8b33;font-size:48px}.result p{color:#626b5e}.result button{width:100%;margin-top:12px;display:block}.result .secondary{color:#285744;background:#e9eee4;border-color:#6b8b77}@media (width>=500px){.shell{gap:23px;padding:30px}.tableau{gap:13px}.deck .card,.deck .empty-card{width:90px;height:120px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
