:root{color-scheme:dark;--s-bg:#10291f;--s-panel:#1e4030;--s-ink:#f2ead0;--s-muted:#c1c9ad;--s-gold:#dbc58c;--s-line:#bfa67170;--s-height:100dvh;font-family:Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 40% 0,#244b35,transparent 65%),var(--s-bg);color:var(--s-ink)}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #f2d991;outline-offset:3px}button[hidden],[hidden]{display:none!important}button:disabled{opacity:.38}button:not(:disabled):active{filter:brightness(1.12)}
.snops-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;min-height:68px;border-bottom:1px solid var(--s-line);background:#102a23}.snops-navigation>a{display:grid;place-items:center;min-height:44px;padding:10px 14px;border-radius:14px;background:#f0e3b9;color:#214430;text-decoration:none;font-weight:700}.snops-navigation>span{font:22px Georgia,serif}
.snops-app{max-width:760px;margin:auto;padding:14px 12px 24px}.primary,.secondary{border:1px solid #e4cf93;border-radius:15px;min-height:48px;padding:12px 16px;font-weight:700;font-size:16px;width:100%}.primary{background:linear-gradient(135deg,#f2dfa6,#d7bc76);color:#24422f;box-shadow:inset 0 1px #fffae0,0 3px 0 #867447}.secondary{background:#294d38;color:var(--s-ink);border-color:var(--s-line)}.quiet{border:0;background:transparent;color:var(--s-gold);min-height:44px;padding:10px 6px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.eyebrow{font-size:10px;letter-spacing:1.6px;line-height:1.4;font-weight:700;color:var(--s-gold);margin:0}h1,h2,p{margin-top:0}
.welcome{overflow:hidden;border:1px solid #bca677;border-radius:19px;box-shadow:0 5px 0 #76623f,0 14px 30px #05160e66;background:#19382b}.welcome-art{position:relative;min-height:280px;aspect-ratio:1.6;background:#3c3021}.welcome-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:25% center}.welcome-art::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#112c23,transparent 55%),linear-gradient(90deg,transparent 25%,#0b2017a0)}.welcome-title{position:absolute;left:51%;right:14px;bottom:28px;z-index:1;text-shadow:0 2px 9px #07170f}.welcome-title h1{font:italic 52px/1 Georgia,serif;letter-spacing:-2px;color:#f3d896;margin:8px 0 12px}.welcome-title>p:last-child{font-size:14px;line-height:1.6;margin:0;color:#fff0d0}.welcome-title .eyebrow{font-size:8px;letter-spacing:1px}.welcome-copy{padding:20px}.welcome-copy>p:first-child{font-size:14px;line-height:1.65;color:var(--s-muted);margin:0 0 14px}.welcome-features{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--s-gold);margin:0 0 22px}.welcome-copy>.secondary{margin-top:10px}.welcome-copy>.quiet{display:block;margin:auto}.resume-copy{font-size:12px;line-height:1.5;text-align:center;margin:14px 0 0;color:var(--s-muted)}.host-note{text-align:center;font:italic 18px/1.5 Georgia,serif;margin:22px 0 0;color:var(--s-gold)}.host-note>span{display:block;font:11px Arial,sans-serif;margin-top:4px;color:var(--s-muted)}
body.is-playing .snops-app{height:var(--s-height);min-height:500px;padding:8px 10px max(8px,env(safe-area-inset-bottom,0px))}.game{height:100%;display:grid;grid-template-rows:46px minmax(190px,1fr) auto 48px 32px;gap:7px}.game-header{display:flex;align-items:stretch;gap:6px;min-width:0}.match-score{display:flex;align-items:center;justify-content:space-between;gap:7px;flex:1;min-width:0;padding:5px 8px;border:1px solid var(--s-line);border-radius:12px;background:#254634}.match-score>span{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:5px}.match-score strong{font:29px/.9 Georgia,serif;color:#f4dfab}.match-score>div{text-align:center;white-space:nowrap}.match-score small,.match-score b{display:block;font-size:8px;line-height:1.7;letter-spacing:.5px;color:var(--s-muted);font-weight:400}.match-score b{color:var(--s-gold)}.header-tools{display:flex;gap:4px}.header-tools>button{display:grid;place-items:center;width:44px;min-height:44px;padding:3px;border:1px solid var(--s-line);border-radius:11px;background:#2a4c38;font-size:11px}.header-tools>button:last-child{font:25px Georgia,serif}.header-tools>button>span{font-size:21px}
.card-table{display:grid;grid-template-rows:36px 28px minmax(100px,1fr) 27px;min-height:0;padding:8px 9px 4px;border:6px solid #76502a;border-top-color:#b58d52;border-right-color:#936c3b;border-radius:23px;background:radial-gradient(ellipse at 45% 30%,#315d3c,#1c432e 75%);box-shadow:inset 0 0 0 1px #ceb37180,inset 0 0 0 6px #a18a3a19,0 4px 0 #493724,0 8px 14px #05180e55;position:relative}.card-table::after{content:'';position:absolute;inset:5px;border:1px solid #dcc68a30;border-radius:13px;pointer-events:none}.host-area{display:flex;gap:7px;align-items:center;min-width:0}.host-seal{display:grid;place-items:center;width:31px;height:31px;flex:none;border:1px solid var(--s-line);border-radius:50%;font:italic 23px Georgia,serif;color:#e7cb87;background:#173324}.host-area>div:nth-child(2){min-width:0;flex:1}.host-area>div:nth-child(2)>strong{display:block;font:17px/1.1 Georgia,serif;white-space:nowrap}.host-area>div:nth-child(2)>small{font-size:8px;color:var(--s-muted);display:block;margin-top:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.host-points{text-align:right;display:flex;flex-direction:column;gap:2px;font-size:8px;color:var(--s-muted)}.host-points>strong{font-size:17px;font-weight:400;color:#f0dfb3}.host-points strong>small{font-size:9px;color:var(--s-muted)}.host-hand{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 0}.card-back{width:17px;height:24px;border:1px solid #c9b27a;border-radius:3px;background:repeating-linear-gradient(45deg,#b9a26920 0 1px,transparent 1px 4px),#244331;box-shadow:inset 0 0 0 2px #244331,inset 0 0 0 3px #c3a56c66}.host-hand .playing-card{width:22px;height:30px;box-shadow:none;border-radius:3px}.host-hand .playing-card .card-corner{font-size:7px;left:2px;top:1px;gap:0}.host-hand .playing-card .card-corner svg{width:6px;height:6px}.host-hand .playing-card .card-corner.bottom{right:2px;bottom:1px;left:auto;top:auto}.host-hand .playing-card .card-face{inset:6px}.host-hand .playing-card .card-face .court{width:12px}.host-hand .playing-card .card-face .suit{width:9px}.host-hand .playing-card .card-pip{width:3px}
.play-area{display:flex;align-items:center;justify-content:center;gap:18px;min-height:0}.stock-area{width:70px;flex:none;text-align:center}.stock-cards{position:relative;height:92px;width:70px;display:flex;align-items:center;justify-content:center}.stock-cards>.playing-card{--card-w:58px;width:58px;height:82px;transform:rotate(-6deg);margin-left:-8px}.stock-cards>.stock-back{position:absolute;top:3px;right:-1px;width:42px;height:75px;border:2px solid #dccb9d;border-radius:5px;background:repeating-linear-gradient(45deg,#c4ab6630 0 1px,transparent 1px 5px),#294730;box-shadow:inset 0 0 0 3px #294730,inset 0 0 0 4px #c4ab6688,2px 3px 0 #baaa85;display:grid;place-items:center;color:#dfc986;font:20px Georgia,serif}.stock-back::after{content:'✧';border:1px solid #c9b07488;padding:6px 4px}.stock-cards.is-closed>.stock-back{width:54px;height:82px;right:7px;top:5px;transform:rotate(5deg)}.stock-cards.is-closed>.stock-back::after{content:'×';font:25px Georgia,serif}.stock-empty{width:48px;height:65px;display:grid;place-items:center;border:1px dashed #c3b48677;border-radius:7px;color:#d4c28d}.stock-empty svg{width:25px;height:28px}.stock-area>span{display:block;font-size:9px;line-height:1.3;color:#d5ccab;margin-top:3px}.trick-area{min-width:0;max-width:190px;flex:1}.trick-area>p{font-size:9px;text-align:center;color:#e7d7ad;line-height:1.3;margin:0 0 7px;min-height:12px}.trick{display:flex;align-items:center;justify-content:center;gap:9px}.card-slot{display:grid;align-items:center;justify-content:center;min-width:0;width:76px;height:106px;position:relative;border:1px dashed #d9c48a66;border-radius:9px}.card-slot:empty::after{content:attr(data-label);font:italic 12px Georgia,serif;color:#d1cba68c}.card-slot:not(:empty){border-color:transparent}.card-slot .playing-card{width:72px;height:102px}.card-slot.is-winner>.playing-card{outline:2px solid #f4d488;outline-offset:2px}.card-slot.is-last>.playing-card{opacity:.89}.table-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border-top:1px solid #c4af6d33;margin-top:3px;font-size:8px;color:var(--s-muted)}.trump-label{display:flex;align-items:center;gap:5px;white-space:nowrap}.trump-label svg{width:13px;height:14px}.trump-label .suit{color:#e8cb88}.table-meta>span:last-child{text-align:right;max-width:65%;line-height:1.3}
.hand-area{min-width:0}.hand-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:26px;margin-bottom:5px}.hand-heading h2{font:20px/1.2 Georgia,serif;margin:0;color:#efe2bd}.hand-heading>span{font-size:11px;color:var(--s-muted);text-align:right}.hand-heading strong{font-size:15px;color:#efda9f}.hand-heading small{display:block;font-size:9px;line-height:1.4;color:#ddc17b}.hand-heading small:empty{display:none}.your-hand{display:flex;align-items:flex-end;justify-content:center;gap:5px;min-height:82px}.playing-card{position:relative;display:block;flex:none;overflow:hidden;width:var(--card-w,70px);height:calc(var(--card-w,70px)*1.42);border:1px solid #c9b17d;border-radius:7px;background:linear-gradient(135deg,#fffcf0,#eee2bd);color:#26392f;box-shadow:inset 0 0 0 3px #fcf6e4,0 3px 0 #a59166,0 4px 6px #06190f66;padding:0;--suit-ink:#293a2f}.playing-card.red{--suit-ink:#a23c2e}.card-corner{position:absolute;left:5px;top:4px;display:flex;flex-direction:column;align-items:center;gap:1px;font:bold 18px/1 Georgia,serif;color:var(--suit-ink);z-index:2}.card-corner svg{display:block;width:11px;height:12px}.card-corner.bottom{left:auto;top:auto;right:5px;bottom:4px;transform:rotate(180deg)}.suit{display:block;fill:currentColor;color:var(--suit-ink)}.card-face{position:absolute;inset:21px 15px;display:grid;place-items:center;color:var(--suit-ink)}.card-face>.suit{width:30px;height:35px;filter:drop-shadow(0 1px 0 #fff5)}.card-face>.court{height:100%;width:100%;max-width:39px;overflow:visible;color:var(--suit-ink)}.card-ten{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(5,1fr);gap:1px 8px;width:100%;height:100%;align-items:center;justify-items:center}.card-pip{width:9px;height:10px}.playing-card[data-rank="T"] .card-face{inset:14px 16px}.your-hand>.playing-card{--card-w:min(76px,calc((100vw - 42px)/5));transition:transform .12s,border-color .12s,filter .12s}.your-hand>.playing-card:not(:disabled){border-color:#efd79b;outline:1px solid #ddbc6a80;outline-offset:1px}.your-hand>.playing-card:disabled{opacity:.5;filter:saturate(.6)}.your-hand>.playing-card.is-meld{outline:2px solid #f7d06e;transform:translateY(-4px)}.your-hand>.playing-card:focus-visible{outline:3px solid #f6db8f;outline-offset:3px;z-index:2}.your-hand>.playing-card:not(:disabled):active{transform:translateY(-5px)}
.actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:4px 2px;min-height:44px;border:1px solid var(--s-line);border-radius:11px;background:linear-gradient(145deg,#34543b,#1b3b2b);box-shadow:inset 0 1px #fcf0bf15;color:#e4d4a8}.actions>button>strong{font:20px/1 Georgia,serif}.actions>button>span{font-size:9px;line-height:1.1;white-space:nowrap}.actions>#meld>strong{font-size:16px}.actions>button[aria-pressed="true"]{border-color:#efcf7e;background:#58633b;color:#fff0bd}.actions>.claim.is-ready{color:#21412b;background:linear-gradient(135deg,#f1dba0,#d5b86f);border-color:#f2d88e;box-shadow:inset 0 1px #fff0c6,0 2px 0 #857244}.message{margin:0;text-align:center;align-self:center;font-size:11px;line-height:1.4;color:#e0d5ad;overflow-wrap:anywhere}.message:focus{outline:none}.message.is-good{color:#f2d48a}
.game.is-finished{grid-template-rows:46px minmax(180px,1fr) auto}.game.is-finished .card-table{grid-template-rows:36px 34px minmax(100px,1fr) 27px}.result{border:1px solid var(--s-line);border-radius:16px;padding:10px 12px;text-align:center;background:linear-gradient(130deg,#30513a,#18392a)}.result>.eyebrow{font-size:8px}.result h2{font:27px/1.1 Georgia,serif;margin:4px 0 6px;color:#f4dfac}.result>p:not(.eyebrow){font-size:11px;line-height:1.4;color:#cbd2b6;margin:0}.result>p.result-equation{font-size:17px;color:#f4dc9e;margin:7px 0 9px}.result>.primary{min-height:44px;font-size:15px;padding:10px}.result>.result-ledger{min-height:48px;margin-top:8px;padding:11px 12px;font-size:14px;line-height:1.35;border-radius:12px;background:linear-gradient(135deg,#34543d,#203f2e);border-color:#a79d70;color:#f2dfad;text-decoration:none}.save-warning{font-size:12px;color:#f2d198;line-height:1.5;padding:12px;border:1px solid var(--s-line);border-radius:10px;background:#283e2c}
.game-dialog{width:calc(100% - 26px);max-width:540px;max-height:calc(100dvh - 35px);overflow:auto;padding:0;border:1px solid #c4ac74;border-radius:19px;background:#18392b;color:#ede4c8;box-shadow:0 18px 70px #020f0bcc}.game-dialog::backdrop{background:#06130de0;backdrop-filter:blur(5px)}.dialog-content{padding:22px 18px}.dialog-content>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.dialog-content h2{font:30px/1.15 Georgia,serif;margin:4px 0 16px;color:#f2ddb0}.dialog-content>header h2{margin-bottom:0}.close-dialog{width:44px;height:44px;border:1px solid var(--s-line);border-radius:50%;background:#2b4c37;font:27px/1 Georgia,serif;flex:none}.dialog-content p{font-size:13px;line-height:1.65;color:var(--s-muted)}.rules{padding-left:21px;font-size:13px;line-height:1.7;color:#d2d8bf}.rules>li+li{margin-top:12px}.rules strong{color:#f0dda8}.help-note{font-size:11px!important;line-height:1.7!important}.dialog-content>.quiet{display:block;margin:4px auto 0}.dialog-actions{display:flex;gap:10px}.dialog-actions>*{flex:1}.ledger-player+.ledger-player{border-top:1px solid var(--s-line);margin-top:20px;padding-top:18px}.ledger-player h3{font:22px Georgia,serif;color:#f1d9a0;margin:0 0 8px}.ledger-player ol{padding-left:20px;font-size:12px;line-height:1.6;color:#d9ddc4}.ledger-player li{margin-bottom:7px}.ledger-total{padding:12px;border:1px solid var(--s-line);border-radius:12px;color:#f0d99e!important;background:#294733}
@media(min-width:600px){.snops-app{padding-top:24px}.welcome-art{min-height:340px;aspect-ratio:1.9}.welcome-title h1{font-size:74px}.welcome-title>p:last-child{font-size:17px}.welcome-copy{padding:24px 30px}.welcome-features{font-size:13px}.welcome-copy>p:first-child{font-size:16px}.game{gap:10px;grid-template-rows:52px minmax(215px,1fr) auto 50px 32px}.game-header{gap:10px}.header-tools>button{width:48px}.match-score{padding:7px 16px}.match-score>span{font-size:14px}.match-score strong{font-size:33px}.match-score small,.match-score b{font-size:9px}.card-table{padding:11px 18px 7px;border-width:8px;grid-template-rows:42px 32px minmax(120px,1fr) 30px}.host-area>div:nth-child(2)>strong{font-size:22px}.host-area>div:nth-child(2)>small{font-size:11px}.host-points>strong{font-size:21px}.host-hand .card-back{height:27px;width:19px}.play-area{gap:35px}.trick-area{max-width:225px}.trick{gap:15px}.card-slot{width:86px;height:120px}.card-slot .playing-card{width:82px;height:116px}.stock-cards{transform:scale(1.1)}.your-hand>.playing-card{--card-w:80px}.hand-heading h2{font-size:24px}.hand-heading>span{font-size:13px}.actions>button>span{font-size:11px}.message{font-size:12px}.table-meta{font-size:10px}.result h2{font-size:31px}.result>p:not(.eyebrow){font-size:13px}.result>p.result-equation{font-size:20px}}
@media(max-width:359px){body.is-playing .snops-app{padding-left:7px;padding-right:7px}.game{gap:6px;grid-template-rows:44px minmax(187px,1fr) auto 46px 33px}.match-score{gap:4px;padding:4px 6px}.match-score>span{font-size:9px;gap:3px}.match-score strong{font-size:26px}.match-score small,.match-score b{font-size:7px;letter-spacing:0}.header-tools>button{width:44px;font-size:10px}.header-tools{gap:3px}.card-table{padding-left:6px;padding-right:6px;border-width:5px}.host-area>div:nth-child(2)>strong{font-size:15px}.host-area>div:nth-child(2)>small{max-width:148px;font-size:7px}.host-points>strong{font-size:15px}.play-area{gap:9px}.stock-area{width:59px}.stock-cards{width:59px;transform:scale(.92)}.trick-area{max-width:165px}.card-slot{width:67px;height:95px}.card-slot .playing-card{width:64px;height:91px}.trick{gap:8px}.trick-area>p{font-size:8px}.your-hand{gap:4px;min-height:75px}.your-hand>.playing-card{--card-w:calc((100vw - 37px)/5)}.card-corner{font-size:16px;left:4px;top:3px}.card-corner.bottom{right:4px;bottom:3px}.card-face{inset:18px 13px}.card-face>.suit{width:23px;height:29px}.card-pip{width:7px;height:8px}.hand-heading h2{font-size:18px}.hand-heading>span{font-size:10px}.actions>button>span{font-size:8px}.message{font-size:10px}.result h2{font-size:24px}.result>p:not(.eyebrow){font-size:10px}.result>p.result-equation{font-size:16px}.game.is-finished{grid-template-rows:44px minmax(185px,1fr) auto}.table-meta{font-size:7px}.dialog-content{padding:20px 14px}.welcome-title h1{font-size:45px}.welcome-art{min-height:250px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
