/* A Viennese coffeehouse. All cards, counters and labels remain live UI. */
*{box-sizing:border-box}
:root{color-scheme:dark;--cream:#fff0d2;--ink:#4c1224;--raspberry:#9b1240}
body{margin:0;background:#28150f;color:var(--cream);font:15px system-ui,sans-serif}
main{margin:auto;max-width:920px}a{color:#f5c8a7}
.sc-scene{--u:min(calc(100vw / 390),calc(100svh / 844));position:relative;width:calc(390 * var(--u));height:calc(844 * var(--u));margin:auto;background:#582a19 url('../assets/play/schnapsen/cafe.webp') center/100% 100% no-repeat;isolation:isolate;box-shadow:0 0 75px #0008}
h1{position:absolute;inset:calc(2 * var(--u)) calc(5 * var(--u)) auto;margin:0;height:calc(115 * var(--u));font:700 34px Georgia,serif}
h1 img{display:block;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 3px 2px #32100688)}
.hud{position:absolute;top:calc(121 * var(--u));left:calc(9 * var(--u));right:calc(9 * var(--u));height:calc(50 * var(--u));display:grid;grid-template-columns:1fr 1.2fr .62fr;gap:calc(4 * var(--u))}
.chip{background:url('../assets/play/schnapsen/button-cream.webp') center/100% 100% no-repeat;color:var(--ink);text-align:center;padding:calc(8 * var(--u)) calc(7 * var(--u));font:700 calc(10 * var(--u))/1.2 Georgia,serif;filter:drop-shadow(0 3px 2px #29100d80)}
.chip b{display:block;font-size:calc(21 * var(--u));font-variant-numeric:tabular-nums}.chip small{font-size:calc(13 * var(--u))}
#sc-status{position:absolute;top:calc(179 * var(--u));left:calc(7 * var(--u));right:calc(7 * var(--u));height:calc(48 * var(--u));margin:0;padding:calc(6 * var(--u)) calc(48 * var(--u)) calc(10 * var(--u));display:flex;justify-content:center;align-items:center;text-align:center;background:url('../assets/play/schnapsen/ribbon.webp') center/100% 100% no-repeat;color:#fff2d1;font-size:calc(11 * var(--u));font-weight:700;line-height:1.2;text-shadow:0 1px 2px #3b0719}
.table{position:absolute;left:0;right:0;top:calc(230 * var(--u));height:calc(442 * var(--u));padding:calc(19 * var(--u)) calc(24 * var(--u));background:url('../assets/play/schnapsen/table.webp') center/100% 100% no-repeat;border:0;border-radius:calc(35 * var(--u));touch-action:none;user-select:none;-webkit-user-select:none}
.table *{touch-action:none}
.label{display:flex;justify-content:space-between;align-items:center;gap:calc(4 * var(--u));height:calc(24 * var(--u));color:var(--cream);font-size:calc(10 * var(--u))}
.label b{font:700 calc(18 * var(--u)) Georgia,serif;text-shadow:0 2px 1px #3c0818}.label>span{font-weight:700;font-variant-numeric:tabular-nums;background:#fff0d2;color:var(--ink);padding:calc(3 * var(--u)) calc(7 * var(--u));border-radius:calc(7 * var(--u));box-shadow:0 2px 3px #3c081888}
.label{justify-content:center;gap:calc(10 * var(--u))}
#sc-status{flex-direction:column;gap:calc(1 * var(--u));padding:calc(4 * var(--u)) calc(43 * var(--u)) calc(8 * var(--u));font-size:calc(9 * var(--u))}
#sc-status strong{font:700 calc(19 * var(--u))/1 Georgia,serif;text-transform:uppercase}
#sc-status span{max-width:100%;line-height:1.1}
.hand{display:flex;justify-content:center;align-items:center;gap:calc(5 * var(--u));height:calc(101 * var(--u))}
.card{position:relative;flex:0 0 calc(64 * var(--u));width:calc(64 * var(--u));height:calc(96 * var(--u));min-height:0;padding:0;border:0;border-radius:calc(7 * var(--u));background:transparent url('../assets/play/schnapsen/card-face.webp') center/100% 100% no-repeat;color:#281e1c;font-family:Georgia,serif;text-align:left;box-shadow:0 calc(4 * var(--u)) calc(4 * var(--u)) #30061999}
.card[data-rank=J]{background-image:url('../assets/play/schnapsen/card-j.webp')}.card[data-rank=Q]{background-image:url('../assets/play/schnapsen/card-q.webp')}.card[data-rank=K]{background-image:url('../assets/play/schnapsen/card-k.webp')}
.card .rank{position:absolute;top:calc(4 * var(--u));left:calc(5 * var(--u));font-size:calc(24 * var(--u));font-weight:700;line-height:1;letter-spacing:-1px}
.card .suit{position:absolute;top:calc(29 * var(--u));left:calc(5 * var(--u));font-size:calc(20 * var(--u));line-height:1}
.card .points{position:absolute;right:calc(5 * var(--u));top:calc(6 * var(--u));font:bold calc(12 * var(--u)) Georgia,serif;color:#3c1820}
.card .key{position:absolute;right:calc(5 * var(--u));bottom:calc(4 * var(--u));padding:0 2px;border-radius:3px;background:#fff1d7da;color:#49252d;font:600 calc(9 * var(--u)) system-ui,sans-serif}
.card .pip{position:absolute;left:0;right:0;top:calc(40 * var(--u));text-align:center;font-size:calc(40 * var(--u));line-height:1;text-shadow:1px 2px 0 #fff7dd}
.card.red{color:#a50e35}.card.trump{outline:calc(2 * var(--u)) solid #efc46c;outline-offset:0}
.card.back{flex-basis:calc(42 * var(--u));width:calc(42 * var(--u));height:calc(63 * var(--u));background-image:url('../assets/play/schnapsen/card-back.webp');border:0;box-shadow:0 3px 3px #30061999}
#sc-cpu{height:calc(72 * var(--u));gap:calc(10 * var(--u))}
.card.selected{outline:calc(3 * var(--u)) solid #fff6d2;outline-offset:calc(2 * var(--u));transform:translateY(calc(-6 * var(--u)));box-shadow:0 0 calc(12 * var(--u)) #ffdfa0,0 6px 4px #30061999}
.card.marry:after{content:'M';position:absolute;left:calc(4 * var(--u));bottom:calc(4 * var(--u));border-radius:3px;background:#fff0d2;color:#6f2037;padding:0 2px;font:800 calc(10 * var(--u)) system-ui}
button.card:disabled{opacity:.52;filter:saturate(.65)}
.centre{height:calc(132 * var(--u));margin:calc(7 * var(--u)) 0 calc(3 * var(--u));display:grid;grid-template-columns:calc(76 * var(--u)) 1fr;gap:calc(10 * var(--u));align-items:center}
.talon{text-align:center;font-size:calc(9 * var(--u));line-height:1.35;color:#fff0d2}.talon .card{display:block;margin:auto;width:calc(57 * var(--u));height:calc(85 * var(--u))}.talon strong{display:block;font:700 calc(13 * var(--u)) Georgia,serif;margin-top:calc(4 * var(--u))}
.talon .card .rank{font-size:calc(21 * var(--u))}.talon .card .suit{top:calc(26 * var(--u));font-size:calc(17 * var(--u))}.talon .card .pip{top:calc(39 * var(--u));font-size:calc(32 * var(--u))}
.trick-wrap{min-width:0}.trick-title{text-align:center;font-size:calc(10 * var(--u));margin:0 0 calc(6 * var(--u));min-height:calc(12 * var(--u));font-weight:600}
.trick{display:flex;justify-content:center;gap:calc(20 * var(--u))}.slot{display:flex;flex-direction:column;align-items:center;gap:calc(4 * var(--u));font:700 calc(12 * var(--u)) Georgia,serif}.slot .card{flex:none}
.empty{border:calc(1.5 * var(--u)) solid #f5ddae90;background:#680e2955;box-shadow:inset 0 2px 6px #5a061b66;display:grid;place-items:center;color:#e8c5af55;font:calc(20 * var(--u)) Georgia,serif}
#sc-mode{font:600 calc(11 * var(--u))/1.3 Georgia,serif;color:var(--cream);text-align:center;margin:calc(9 * var(--u)) 0 0}
button{min-height:44px;border:0;background:transparent url('../assets/play/schnapsen/button-cream.webp') center/100% 100% no-repeat;border-radius:12px;color:var(--ink);font:700 calc(15 * var(--u)) Georgia,serif;padding:calc(8 * var(--u)) calc(20 * var(--u));cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default;filter:saturate(.75) brightness(.92)}button:focus-visible{outline:3px solid #fff8cf;outline-offset:3px}
.primary{position:absolute;top:calc(681 * var(--u));left:calc(22 * var(--u));width:calc(346 * var(--u));height:calc(55 * var(--u));background-image:url('../assets/play/schnapsen/button-raspberry.webp');color:#fff1d0;font-size:calc(21 * var(--u));text-shadow:0 2px 2px #4d0c21}
.options{position:absolute;top:calc(742 * var(--u));left:calc(22 * var(--u));right:calc(22 * var(--u));display:flex;gap:calc(8 * var(--u))}.options button{flex:1;min-width:0;height:calc(45 * var(--u));font-size:calc(12 * var(--u));padding:calc(7 * var(--u)) calc(18 * var(--u))}
.toolbar{position:absolute;top:calc(795 * var(--u));left:calc(62 * var(--u));right:calc(62 * var(--u));display:flex;gap:calc(8 * var(--u))}.toolbar button{flex:1;min-width:0;height:calc(42 * var(--u));font-size:calc(13 * var(--u));padding:calc(7 * var(--u)) calc(20 * var(--u))}
#sc-round{position:absolute;z-index:2;left:calc(27 * var(--u));right:calc(27 * var(--u));top:calc(386 * var(--u));padding:calc(15 * var(--u));border:2px solid #ebcaa1;border-radius:calc(12 * var(--u));background:#fff0d2;color:#5b1730;font-size:calc(13 * var(--u));line-height:1.4;box-shadow:0 5px 15px #2a061aaa}
#sc-over{position:absolute;inset:calc(15 * var(--u));z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(20 * var(--u));padding:calc(28 * var(--u));border-radius:calc(24 * var(--u));background:linear-gradient(#69152df5,#3f1c13fa);text-align:center;border:2px solid #f4dbad;box-shadow:0 5px 20px #260811}
#sc-over h2{margin:0;font:700 calc(32 * var(--u))/1.1 Georgia,serif;color:#fff1d0}#sc-over p{font-size:calc(15 * var(--u));line-height:1.5;margin:0}#sc-again{font-size:calc(18 * var(--u));min-width:calc(180 * var(--u));min-height:calc(52 * var(--u))}
[hidden],#sc-over[hidden]{display:none!important}
.sc-support{max-width:720px;margin:auto;padding:24px 20px 36px;color:#eedbcc;line-height:1.65}header{font-size:13px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;margin:0 0 6px}.intro{font:22px Georgia,serif;margin:0 0 15px}.hint{font-size:12px;color:#d6bda9}.rules h2{font:700 26px Georgia,serif;color:#fff0d2;margin:25px 0 12px}.rules li{margin:12px 0}.rules ul{padding-left:22px}.rules p{margin:12px 0}.rules b{color:#fff0d2}
h1{height:calc(105 * var(--u))}.hud{top:calc(112 * var(--u));height:calc(48 * var(--u))}
#sc-status{top:calc(163 * var(--u));height:calc(58 * var(--u));font-size:calc(11 * var(--u))}
#sc-status strong{font-size:calc(18 * var(--u))}#sc-status span{line-height:1.15}
.table{top:calc(222 * var(--u));height:calc(450 * var(--u))}
.label>span{font-size:calc(12 * var(--u))}.card .points{font-size:calc(13 * var(--u))}
.card .pip{top:calc(40 * var(--u));left:calc(7 * var(--u));right:auto;width:calc(50 * var(--u));height:calc(50 * var(--u));background:center/contain no-repeat;color:transparent;text-shadow:none;pointer-events:none}
.card[data-suit="0"] .pip{background-image:url('../assets/play/schnapsen/suit-0.webp')}.card[data-suit="1"] .pip{background-image:url('../assets/play/schnapsen/suit-1.webp')}.card[data-suit="2"] .pip{background-image:url('../assets/play/schnapsen/suit-2.webp')}.card[data-suit="3"] .pip{background-image:url('../assets/play/schnapsen/suit-3.webp')}
.talon .card .pip{top:calc(37 * var(--u));left:calc(6 * var(--u));width:calc(45 * var(--u));height:calc(44 * var(--u))}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.card.selected{transform:none}}
