.cribbage-shuffle{position:relative;width:100%;margin:0 auto;pointer-events:none}.cribbage-shuffle-canvas,.cribbage-shuffle-fallback{position:absolute;inset:0;width:100%;height:100%}.cribbage-shuffle-canvas{display:block;visibility:hidden}.cribbage-shuffle[data-animated=true] .cribbage-shuffle-canvas{visibility:visible}.cribbage-shuffle[data-animated=true] .cribbage-shuffle-fallback{visibility:hidden}.cribbage-shuffle-fallback img{position:absolute;width:var(--hero-width);height:auto;left:calc(50% + var(--hero-x));top:calc(50% + var(--hero-y));transform:translate(-50%,-50%) rotate(var(--hero-rotation));border-radius:5%;box-shadow:0 5px 10px #041b1855}@media(prefers-reduced-motion:reduce){.cribbage-shuffle[data-animated=true] .cribbage-shuffle-canvas{visibility:hidden}.cribbage-shuffle[data-animated=true] .cribbage-shuffle-fallback{visibility:visible}}.score-center{position:absolute;inset:0 max(76px,24%);display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:3}.score-center .round-number{transition:opacity .18s ease}.score-center[data-scoring=true] .round-number{opacity:0;transition:none}.score-announcement-region{width:100%}.score-announcement{color:#cde3b8;text-align:center}.score-announcement[data-player=opponent]{color:#f2a18d}.score-award{display:flex;flex-direction:column;align-items:center;gap:4px}.score-award-pop{position:relative;flex:0 0 auto;isolation:isolate}.score-award-total{position:relative;display:block;font:38px/1 var(--serif);letter-spacing:-.8px;font-variant-numeric:tabular-nums;text-shadow:0 2px 12px #b8d4a43d;will-change:transform,opacity}.score-announcement[data-player=opponent] .score-award-total{text-shadow:0 2px 12px #f2a18d3d}.score-award-burst{position:absolute;z-index:-1;top:calc(50% - 25px);left:calc(50% - 25px);width:50px;height:50px;opacity:0;pointer-events:none}.score-award-burst:before{content:"";position:absolute;inset:7px;border:1px solid currentColor;border-radius:50%;opacity:.5}.score-award-burst i{position:absolute;left:24px;top:0;width:2px;height:6px;border-radius:2px;background:currentColor;transform-origin:1px 25px}.score-award-burst i:nth-child(2){transform:rotate(60deg)}.score-award-burst i:nth-child(3){transform:rotate(120deg)}.score-award-burst i:nth-child(4){transform:rotate(180deg)}.score-award-burst i:nth-child(5){transform:rotate(240deg)}.score-award-burst i:nth-child(6){transform:rotate(300deg)}.score-award-items{list-style:none;margin:0;padding:0;font-size:11px;line-height:1.35;color:#d8e3cf}.score-award-items li{text-wrap:balance}.score-announcement[data-items="3"] .score-award{flex-direction:row;justify-content:center;gap:8px}.score-announcement[data-items="3"] .score-award-items{text-align:left}@media(max-width:375px){.score-center{inset-inline:70px}.score-award-total{font-size:32px}.score-award-items{font-size:10px}}@media(max-height:620px)and (max-width:650px){.score-award-total{font-size:28px}.score-award{gap:3px}.score-award-items{font-size:10px;line-height:1.3}}@media(prefers-reduced-motion:reduce){.score-award-total{will-change:auto}.score-award-total:before{content:attr(data-direction);position:absolute;right:calc(100% + 4px);top:50%;transform:translateY(-50%);font:14px/1 sans-serif}}.score-numbers strong{display:inline-block}.peg-board--exact{padding:0 1px}.peg-board--exact svg{display:block;width:100%;height:auto}.peg-board--exact .peg-lane[data-lane=you]{color:#bdd5a8}.peg-board--exact .peg-lane[data-lane=opponent]{color:#ee8974}.peg-board--exact .peg-halo{fill:none;stroke:currentColor;stroke-width:.6;opacity:.3}.peg-board--exact .peg-previous{fill:#153e32;stroke:currentColor;stroke-width:1.1}.peg-board--exact .peg-current{fill:currentColor;stroke:#082b21;stroke-width:1.1}.peg-board--exact .peg-highlight{fill:#fff8dd;opacity:.8}.cut-deck{--cut-card-width: 80px;--cut-deck-height: calc(var(--cut-card-width) * 1.4 + 40px);position:relative;isolation:isolate;width:100%;height:var(--cut-deck-height);user-select:none;-webkit-user-select:none}.cut-deck-spread{position:absolute;inset:20px 4px;pointer-events:none}.cut-deck-card{position:absolute;left:calc(var(--cut-position) * (100% - var(--cut-card-width)));top:0;width:var(--cut-card-width)}.cut-deck-lift{transform:translateZ(0);transition:transform .18s cubic-bezier(.2,.8,.2,1)}.cut-deck-card[data-selected=true] .cut-deck-lift{transform:translate3d(0,-16px,0)}.cut-deck-card .playing-card{--card-width: var(--cut-card-width);box-shadow:-1px 0 2px #041b1840,0 4px 7px #041b1840}.cut-deck-card[data-selected=true] .playing-card{box-shadow:0 0 0 3px #bdd5a8,0 6px 10px #041b1855}.cut-deck:has(.cut-deck-control:focus-visible) .cut-deck-card[data-selected=true] .playing-card{outline:2px solid #fffdee;outline-offset:5px}.cut-deck[data-selection=none]:has(.cut-deck-control:focus-visible) .cut-deck-spread{outline:2px solid #fffdee;outline-offset:5px}.cut-deck>.cut-deck-control{position:absolute;inset:0 4px;z-index:1;width:calc(100% - 8px);height:var(--cut-deck-height);margin:0;padding:0 calc((var(--cut-card-width) - 1px) / 2);border:0;border-radius:0;background:transparent;box-shadow:none;opacity:0;appearance:none;-webkit-appearance:none;cursor:ew-resize;touch-action:pan-y}.cut-deck-control::-webkit-slider-runnable-track{width:100%;height:100%;background:transparent;border:0}.cut-deck-control::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:1px;height:var(--cut-deck-height);border:0;background:transparent}.cut-deck-control::-moz-range-track{width:100%;height:100%;background:transparent;border:0}.cut-deck-control::-moz-range-thumb{width:1px;height:var(--cut-deck-height);border:0;background:transparent}.cut-deck>.cut-deck-control:disabled{cursor:default}@media(max-width:650px){.cut-deck{--cut-card-width: 72px}}@media(max-width:375px){.cut-deck{--cut-card-width: 68px}}@media(prefers-reduced-motion:reduce){.cut-deck-lift{transition:none}}.card-motion-layer{position:absolute;inset:0;z-index:12;pointer-events:none}.card-flight{position:absolute;left:0;top:0;visibility:hidden;transform-origin:0 0;border-radius:5%;box-shadow:0 5px 10px #041b1855;pointer-events:none;will-change:transform}.card-flight img{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:inherit}.card-motion-hidden{visibility:hidden!important}.table-deck{position:absolute;left:0;top:calc(50% - 32px);visibility:hidden;pointer-events:none}.table-deck .playing-card{--card-width: 44px}[data-dealing=true] .table-deck{visibility:visible}@media(prefers-reduced-motion:reduce){.card-motion-layer{display:none}}.table-birthday{isolation:isolate}.birthday{position:relative;display:grid;place-items:center;flex:1;min-height:300px;padding:24px 0;text-align:center}.birthday:before{content:"";position:absolute;inset:0 -22px;z-index:-1;background:radial-gradient(ellipse at 50% 48%,#cda55228,transparent 67%)}.birthday-message{position:relative;z-index:2;min-width:0;width:100%;overflow-wrap:anywhere;animation:birthday-arrive .7s cubic-bezier(.18,.8,.25,1) both}.birthday-stars{font-size:21px;letter-spacing:20px;padding-left:20px;color:#ffe8a1;margin-bottom:20px}.birthday-stars span{font-size:32px;display:inline-block;transform:translateY(-9px)}.birthday h1{margin:0;font-family:var(--serif);font-weight:400}.birthday h1>span{display:block;font-size:clamp(25px,6.6vw,39px);line-height:1.25;color:#fff3d2}.birthday h1>strong{display:block;font-size:clamp(68px,17vw,104px);line-height:1.13;font-weight:400;font-style:italic;letter-spacing:-4px;color:#ffd777;text-shadow:0 3px 0 #9a5d4826,0 0 38px #ffd77730}.birthday-cake{display:block;width:190px;height:auto;margin:16px auto 8px;filter:drop-shadow(0 8px 15px #061e1944)}.birthday-flame{animation:birthday-flicker .85s ease-in-out infinite alternate}.birthday-result{margin:15px 0 0;font-size:15px;color:#eee7ce}.birthday-confetti{position:fixed;inset:0;z-index:25;pointer-events:none;overflow:hidden}.birthday-confetti i{position:absolute;left:var(--x);top:-18px;width:6px;height:12px;background:var(--color);border-radius:1px;animation:birthday-fall var(--duration) var(--delay) linear infinite}.birthday-confetti i:nth-child(3n){width:8px;height:8px;border-radius:50%}.birthday-confetti i:nth-child(5n){height:20px;width:4px}.birthday-balloons{position:absolute;width:92px;height:140px;top:3%;pointer-events:none;animation:birthday-float 4s ease-in-out infinite alternate}.birthday-balloons-left{left:-12px;transform:rotate(-13deg)}.birthday-balloons-right{right:-12px;transform:rotate(13deg);animation-delay:-2s}.birthday-balloons i{position:absolute;top:18px;left:3px;width:42px;height:53px;border-radius:50% 50% 47% 47%;background:radial-gradient(circle at 28% 25%,#ffc2d0,#ee829a 58%);box-shadow:inset -5px -5px 10px #95395d25}.birthday-balloons i:after{content:"";position:absolute;top:100%;left:50%;height:69px;width:18px;border-left:1px solid #e2dab880;border-radius:50%}.birthday-balloons i:nth-child(2){top:0;left:34px;background:radial-gradient(circle at 28% 25%,#fff0bb,#eec270 65%)}.birthday-balloons i:nth-child(3){top:42px;left:40px;background:radial-gradient(circle at 28% 25%,#d9f9ed,#8acfb6 65%)}@keyframes birthday-arrive{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:none}}@keyframes birthday-fall{0%{transform:translate3d(0,-20px,0) rotate(0)}to{transform:translate3d(var(--drift),105dvh,0) rotate(var(--spin))}}@keyframes birthday-flicker{0%{transform:scaleX(.9);opacity:.85}to{transform:scale(1.05,1.12);opacity:1}}@keyframes birthday-float{0%{translate:0 0}to{translate:0 -12px}}@media(max-height:700px){.birthday{padding:16px 0;min-height:260px}.birthday-stars{margin-bottom:5px}.birthday-cake{width:145px;margin-block:6px}.birthday-result{margin-top:6px}.birthday-balloons{scale:.8;top:0}}@media(prefers-reduced-motion:reduce){.birthday-confetti i{animation:none;top:calc(var(--x) * .85);transform:rotate(var(--spin));opacity:.7}}.default-outro{position:relative;display:flex;flex-direction:column;align-items:center;flex:1;min-height:0;min-width:0;width:100%;isolation:isolate}.default-outro[data-has-summary=false]{justify-content:center}.outro-hero{position:relative;z-index:2;flex-shrink:0;display:flex;flex-direction:column;align-items:center;width:100%;padding:12px 0 18px}.default-outro[data-has-summary=true] .outro-hero{animation:outro-hero-rise .7s .85s cubic-bezier(.2,.75,.25,1) both}.outro-winner-badge{position:relative;width:88px;height:88px;display:grid;place-items:center;flex-shrink:0;color:#eed69a;margin-bottom:12px;transform-origin:center;animation:outro-badge-flight .72s cubic-bezier(.18,.8,.24,1) both}.outro-medallion{position:absolute;inset:0;width:100%;height:100%}.default-outro .game-result{max-width:24ch;font-size:clamp(25px,6.7vw,36px);line-height:1.15;text-wrap:balance;overflow-wrap:anywhere;animation:outro-line-in .5s .36s ease both}.outro-final-score{margin-top:7px;font-size:17px;font-variant-numeric:tabular-nums;color:#d3dfc7;animation:outro-line-in .5s .42s ease both}.outro-final-score>span{display:flex;align-items:center;gap:10px}.outro-final-score>span>span{color:#92b49b}.outro-scroll{position:relative;flex:1;min-height:0;width:min(100%,410px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7e9a8255 transparent;padding:0 4px 8px}.outro-stats{margin:0;font-variant-numeric:tabular-nums}.outro-stat{position:relative;border-top:1px solid #d6e3c621}.outro-stats[data-ready=true] .outro-stat{animation:outro-line-in .52s var(--stat-delay) ease both}.outro-stat dt{font-size:12px;font-weight:400;color:#c2d2bd}.outro-stat dd{margin:0}.outro-stat-simple{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:39px}.outro-stat-simple dd{font-size:16px;font-weight:500}.outro-stat-highlight{min-height:148px;padding-top:10px;padding-bottom:8px}.outro-highlight-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-height:23px;margin-top:1px}.outro-highlight-heading>span{font-size:11px;color:#a7c2ab;min-width:0;overflow-wrap:anywhere}.outro-highlight-heading>strong{font-size:20px;font-weight:500;color:#f4f1df;white-space:nowrap}.outro-highlight-heading>strong>span{font-size:11px;color:#b8ceb5;font-weight:400}.outro-best-hand{display:flex;align-items:flex-start;gap:15px;padding-top:4px}.outro-hand-cards{display:flex;gap:4px}.outro-best-hand .playing-card,.outro-pegging-cards .playing-card{--card-width: 44px;box-shadow:0 2px 5px #041b1850}.outro-starter{display:flex;flex-direction:column;align-items:center;gap:4px}.outro-starter>span{font-size:10px;color:#b8ceb5}.outro-pegging-cards{display:flex;height:76px;padding-top:3px}.outro-pegging-card{position:relative;padding-top:0}.outro-pegging-card+.outro-pegging-card{margin-left:-18px}.outro-pegging-card[data-near=true]{padding-top:9px}.outro-placeholder{display:block;width:48px;height:13px;border-radius:4px;background:#d3dfc31b}.outro-stats[data-ready=false]{opacity:.3}.outro-summary-status{position:absolute;inset:0;min-height:100px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;align-content:center;gap:10px;padding:12px;color:#d5dfc9;font-size:12px;text-align:center;background:linear-gradient(transparent,#12382bee 38%,#12382bee 62%,transparent)}.outro-summary-status button{min-height:44px;min-width:64px;padding:10px 16px;border:1px solid #e4eac44d;border-radius:9px;color:#f4f1df;background:#e1e8c70b}.outro-loading{animation:outro-spin 1s linear infinite}.outro-confetti{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}.outro-confetti i{position:absolute;top:-12px;left:var(--piece-x);width:4px;height:8px;background:var(--piece-color);border-radius:1px;opacity:0;animation:outro-confetti-fall 2.6s var(--piece-delay) cubic-bezier(.12,.55,.5,1) both}.outro-confetti i:nth-child(3n){width:5px;height:5px;border-radius:50%}@keyframes outro-badge-flight{0%{transform:translate3d(var(--outro-origin-x),var(--outro-origin-y),0) scale(.55);opacity:.65}to{transform:translateZ(0) scale(1);opacity:1}}@keyframes outro-line-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes outro-hero-rise{0%{transform:translateY(var(--outro-center-offset, 0px))}to{transform:translateY(0)}}@keyframes outro-confetti-fall{0%{opacity:0;transform:translateZ(0) rotate(0)}12%{opacity:.9}to{opacity:0;transform:translate3d(var(--piece-drift),420px,0) rotate(var(--piece-rotation))}}@keyframes outro-spin{to{transform:rotate(360deg)}}@media(max-height:700px){.outro-hero{padding-top:4px;padding-bottom:12px}.outro-winner-badge{width:68px;height:68px;margin-bottom:7px}.outro-winner-badge>svg:not(.outro-medallion){width:29px;height:29px}.default-outro .game-result{font-size:25px}}@media(prefers-reduced-motion:reduce){.outro-winner-badge,.default-outro[data-has-summary=true] .outro-hero,.default-outro .game-result,.outro-final-score,.outro-stats[data-ready=true] .outro-stat,.outro-loading{animation:none;transform:none;opacity:1}.outro-confetti{display:none}}.invite-actions{flex-shrink:0;width:100%}.invite-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.invite-action-buttons button{min-width:0;gap:8px;padding-inline:14px}.invite-action-buttons button span{flex:initial}.invite-action-buttons svg{flex-shrink:0}.invite-error{display:block;margin-top:10px;color:#efc3b7;text-align:center;font-size:13px}.hand-grades.hand-grade-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,360px);min-height:64px;flex-shrink:0}.hand-grade-slot{min-width:0;height:64px}.hand-grades.hand-grade-controls .hand-grade-button{--grade-edge: #d98376;--grade-value: #f4b2a5;--grade-fill-start: #602d30;--grade-fill-end: #402225;position:relative;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;gap:3px;width:100%;height:64px;min-height:64px;padding:7px 8px;border:2px solid transparent;border-radius:15px;background:linear-gradient(145deg,var(--grade-fill-start),var(--grade-fill-end)) padding-box,linear-gradient(var(--grade-edge),var(--grade-edge)) border-box;color:#f1f1df;box-shadow:inset 0 1px #f8f5d91a,0 3px 8px #041e1929;font-size:15px;line-height:1.1;transition:filter .14s ease,transform .14s ease;animation:hand-grade-enter .22s ease-out both}.hand-grades .hand-grade-button[data-grade-tone=green]{--grade-edge: #93c38b;--grade-value: #c0e5ab;--grade-fill-start: #1c4334;--grade-fill-end: #0d3026}.hand-grades .hand-grade-button[data-grade-tone=orange]{--grade-edge: #d5a064;--grade-value: #f4c68c;--grade-fill-start: #633f25;--grade-fill-end: #432e21}.hand-grades .hand-grade-button[data-grade-tone=rainbow]{--grade-value: #fff3ce;background:linear-gradient(145deg,#244835,#12372b) padding-box,conic-gradient(from 40deg,#e4a6db,#eea18e,#eed78f,#addc9c,#8cd4cb,#a8b8e8,#e4a6db) border-box;box-shadow:inset 0 1px #fff9de26,0 3px 10px #041e1929,0 0 14px #d4dc9f12}.hand-grade-label{white-space:nowrap;font-size:15px;font-weight:550;letter-spacing:-.15px}.hand-grade-button .hand-grade-value{display:block;color:var(--grade-value);font-size:25px;font-weight:650;line-height:1;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.hand-grade-controls .hand-grade-button.hand-grade-retry{--grade-edge: #9fb6a373;--grade-fill-start: #1c4334;--grade-fill-end: #0d3026;color:#d6e0ce;font-size:15px;line-height:1.35}.hand-grade-button:focus-visible{outline:3px solid #fff8da;outline-offset:3px}.hand-grade-button:active{transform:translateY(1px)}@media(hover:hover){.hand-grades .hand-grade-button:hover{filter:brightness(1.12)}}@keyframes hand-grade-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.hand-grades.hand-grade-controls .hand-grade-button{animation:none;transition:none}.hand-grade-button:active{transform:none}}.hand-celebration{position:relative;isolation:isolate;height:84px;margin:0 0 14px;pointer-events:none}.count-result .hand-celebration h1{position:relative;z-index:1;height:100%;display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0}.hand-celebration-owner{max-width:calc(100% - 106px);font:23px/1.12 var(--serif);text-wrap:balance;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.hand-celebration-score{position:relative;display:flex;flex:0 0 82px;height:82px;flex-direction:column;align-items:center;justify-content:center;color:#273a27;transform:rotate(6deg);filter:drop-shadow(0 4px 5px #021e1b40);animation:hand-award-in .6s cubic-bezier(.2,.85,.28,1.16) both}.hand-celebration-score:before{content:"";position:absolute;z-index:-1;inset:0;background:#efd995;clip-path:polygon(50% 0%,58% 8%,69% 4%,74% 15%,86% 14%,86% 27%,97% 32%,92% 43%,100% 50%,92% 58%,97% 69%,85% 74%,86% 86%,73% 86%,68% 97%,57% 92%,50% 100%,42% 92%,31% 97%,26% 85%,14% 86%,14% 73%,3% 68%,8% 57%,0% 50%,8% 42%,3% 31%,15% 26%,14% 14%,27% 14%,32% 3%,43% 8%)}.hand-celebration-score:after{content:"";position:absolute;inset:10px;border:1px solid #5965404d;border-radius:50%}.count-result .hand-celebration h1 strong{font:43px/.9 var(--serif);letter-spacing:-1.5px}.hand-celebration-score>span{margin-top:5px;font:8px/1 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:650;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}.hand-celebration-badges{position:absolute;inset:0;z-index:0;pointer-events:none}.hand-sticker{position:absolute;left:var(--sticker-x);top:var(--sticker-y);width:var(--sticker-size);height:var(--sticker-size);display:grid;place-items:center;transform:translate(-50%,-50%) rotate(var(--sticker-rotation));animation:hand-sticker-in .53s var(--sticker-delay) cubic-bezier(.18,.86,.26,1.3) both}.hand-sticker svg{width:100%;height:100%}.hand-sticker-gold{color:#ecd58f}.hand-sticker-coral{color:#f6ad91}.hand-sticker-lilac{color:#c9b9e6}.hand-sticker-bang{border:1px solid currentColor;border-radius:5px;font:bold 19px/1 var(--serif);background:#133d30;box-shadow:0 2px 4px #06261c35}.hand-celebration[data-tier=rainbow] .hand-celebration-score:before{background:linear-gradient(135deg,#f4d4ae,#ecdea5 48%,#c9dab4)}.hand-celebration:is([data-tier=trophy],[data-tier=perfect]){height:105px}.count-result .hand-celebration:is([data-tier=trophy],[data-tier=perfect]) h1{align-items:flex-start;padding-top:7px}.hand-celebration:is([data-tier=trophy],[data-tier=perfect]) .hand-celebration-owner{display:block;white-space:nowrap;text-overflow:ellipsis;text-wrap:nowrap}.hand-celebration:is([data-tier=trophy],[data-tier=perfect]) .hand-celebration-score{margin-top:5px;background:transparent}.hand-celebration[data-tier=perfect] .hand-celebration-score:before{background:linear-gradient(135deg,#fff4c9,#f2d184 60%,#dfb976)}.hand-celebration[data-tier=perfect] .hand-celebration-score>span{margin-top:3px;white-space:normal;text-align:center}.hand-celebration-logo{position:absolute;z-index:1;left:12px;bottom:1px;width:104px;pointer-events:none;animation:hand-logo-in .55s .24s ease-out both}.hand-celebration-logo .cribbage-shuffle{width:100%}.hand-trophy{position:absolute;color:#efd58f}.hand-trophy-left{left:-17px;bottom:4px;transform:rotate(-14deg)}.hand-trophy-right{right:-12px;bottom:20px;transform:rotate(17deg)}.hand-celebration-edge{position:fixed;z-index:30;inset:0;padding:4px;border-radius:22px;pointer-events:none;overflow:hidden;isolation:isolate;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:hand-edge-in .85s ease-out both}.hand-celebration-edge>div{position:absolute;left:calc(50% - 72.5vmax);top:calc(50% - 72.5vmax);width:145vmax;height:145vmax;background:conic-gradient(from 15deg,#eaa985,#f1d78c,#b5d79b,#85cab8,#a3bce8,#c8a7df,#efb1bc,#eaa985);animation:hand-edge-turn 8s linear infinite}.hand-celebration-edge:is([data-tier=trophy],[data-tier=perfect]){padding:5px}.hand-celebration[data-playing=false] *,.hand-celebration[data-playing=false] *:before{animation-play-state:paused}.hand-celebration[data-active=false] .hand-celebration-badges{visibility:hidden}@keyframes hand-sticker-in{0%{opacity:0;transform:translate(-50%,-50%) rotate(calc(var(--sticker-rotation) - 24deg)) scale(.2)}to{opacity:1;transform:translate(-50%,-50%) rotate(var(--sticker-rotation)) scale(1)}}@keyframes hand-award-in{0%{opacity:0;transform:rotate(-12deg) scale(.7)}to{opacity:1;transform:rotate(6deg) scale(1)}}@keyframes hand-logo-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes hand-edge-in{0%{opacity:0}to{opacity:1}}@keyframes hand-edge-turn{to{transform:rotate(360deg)}}@media(max-height:740px)and (max-width:650px){.hand-celebration{height:72px;margin-bottom:12px}.hand-celebration-score{flex-basis:72px;height:72px}.count-result .hand-celebration h1 strong{font-size:36px}.hand-celebration:is([data-tier=trophy],[data-tier=perfect]){height:92px}.hand-celebration-logo{width:88px;bottom:0}}@media(max-height:620px)and (max-width:650px){.hand-celebration{height:62px;margin-bottom:12px}.hand-celebration-score{flex-basis:64px;height:64px}.hand-celebration-owner{font-size:21px}.hand-celebration:is([data-tier=trophy],[data-tier=perfect]){height:76px}.hand-celebration-logo{width:76px;bottom:0}.hand-sticker{width:calc(var(--sticker-size) * .8);height:calc(var(--sticker-size) * .8)}}@media(prefers-reduced-motion:reduce){.hand-celebration *,.hand-celebration-edge,.hand-celebration-edge>div{animation:none}.hand-celebration-score{transform:rotate(6deg)}}.analysis-score{display:inline-flex;align-items:baseline;gap:3px;color:var(--analysis-score-color, #b1c5ba);font-variant-numeric:tabular-nums;white-space:nowrap}.analysis-score>strong{font-size:28px;font-weight:600;line-height:1}.analysis-score>span{font-size:13px;color:#b1c5ba}.analysis-score-compact{gap:0;font-size:inherit}.analysis-score-compact>strong{font-size:inherit;line-height:inherit;font-weight:600}.hand-analysis{--analysis-top: max(12px, var(--analysis-safe-top, env(safe-area-inset-top, 0px)));--analysis-bottom: max(12px, var(--analysis-safe-bottom, env(safe-area-inset-bottom, 0px)));position:fixed;inset:0;color:#f4f1df;background:var(--analysis-background);width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:var(--analysis-top) env(safe-area-inset-right) var(--analysis-bottom) env(safe-area-inset-left);border:0;overflow:hidden;box-sizing:border-box}.hand-analysis[open]{display:flex;flex-direction:column}.hand-analysis::backdrop{background:#031b15b8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.analysis-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid #b7cbb326;flex-shrink:0}.analysis-header p{margin:0 0 2px;color:#bfd0be;font-size:11px;overflow-wrap:anywhere}.analysis-header h2{font-family:var(--serif);font-size:23px;line-height:1.15;font-weight:400;letter-spacing:-.4px;margin:0}.analysis-close{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;color:#f4f1df;background:#ecf3d90a;border:1px solid #b7cbb333;border-radius:50%}.analysis-close:hover{background:#ecf3d918}.analysis-scroll{position:relative;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:10px 12px 12px;scrollbar-width:thin;scrollbar-color:#577566 transparent}.analysis-label{display:block;font-size:10px;color:#bfd0be;line-height:1.1}.analysis-verdict{display:flex;align-items:center;gap:10px;min-height:40px;padding-bottom:7px}.analysis-verdict-context{display:flex;flex-direction:column;gap:3px}.analysis-verdict-context strong{font-size:12px;font-weight:500}.analysis-verdict-context span{font-size:11px;color:#bfd0be;font-variant-numeric:tabular-nums}.analysis-formula{font-size:11px;line-height:1.4;color:#bfd0be;margin:3px 0 9px}.analysis-options,.analysis-decisions{list-style:none;margin:0;padding:0;display:grid;gap:6px}.analysis-option,.analysis-decision{padding:8px 10px;background:#ffffff04;border:1px solid #c9ddc321;border-radius:10px}.analysis-option[data-actual=true]{border-color:#c3d7a58c;background:#c3d7a50b}.analysis-option-heading,.analysis-option-rank{display:flex;align-items:center;gap:6px}.analysis-option-heading{justify-content:space-between;min-height:20px}.analysis-rank{font-variant-numeric:tabular-nums;font-size:12px;color:#aac0b0}.analysis-choice{font-size:10px;font-weight:500;line-height:1.2;border-radius:3px;padding:2px 4px;background:#d6e2bd;color:#173b2b;white-space:nowrap}.analysis-best{font-size:10px;color:#ccdfb7}.analysis-expected{display:flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums}.analysis-expected strong{font-size:18px;line-height:1;font-weight:500;letter-spacing:-.3px}.analysis-expected>span{font-size:10px;color:#bfd0be}.analysis-discard-cards{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:5px 0 6px}.analysis-cards{display:flex;gap:3px;margin-top:3px}.analysis-cards .playing-card{--card-width: 32px;box-shadow:0 1px 3px #001c1455}.analysis-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding-top:5px;margin:0;border-top:1px solid #b7cbb31a}.analysis-stats dt{color:#bfd0be;font-size:10px;line-height:1.1;white-space:nowrap}.analysis-stats dd{font-size:13px;line-height:1.2;font-variant-numeric:tabular-nums;margin:2px 0 0}.analysis-stats>div:nth-last-child(-n+2){text-align:right}.analysis-model{margin-top:8px;font-size:12px;color:#bfd0be;line-height:1.6}.analysis-model summary{padding:12px 0;cursor:pointer;color:#e2e8d6;min-height:44px}.analysis-model p{margin:4px 0 10px}.analysis-model ul{padding-left:17px;margin:0}.analysis-model li+li{margin-top:6px}.analysis-decision-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:24px}.analysis-decision-heading h3{margin:0;font-size:13px;font-weight:500}.analysis-decision-heading h3 span{margin-left:10px;font-size:11px;font-weight:400;color:#bfd0be}.analysis-sequence{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0}.analysis-sequence span{min-width:26px;text-align:center;padding:2px 3px;color:#e2e8d6;font-family:var(--serif);font-size:14px;border:1px solid #b7cbb32e;border-radius:3px}.analysis-sequence .red-suit{color:#eea193}.analysis-alternatives{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;margin-top:7px}.analysis-alternatives th{font-weight:400;text-align:left}.analysis-alternatives thead th{font-size:10px;padding:0 6px 5px;color:#bfd0be}.analysis-alternatives thead th:first-child{padding-left:0}.analysis-alternatives th:not(:first-child),.analysis-alternatives td{text-align:right}.analysis-alternatives td{font-size:13px;padding:3px 6px}.analysis-alternatives td:last-child,.analysis-alternatives th:last-child{padding-right:0}.analysis-alternatives tbody th{padding:3px 0}.analysis-alternatives tbody tr{border-top:1px solid #b7cbb319}.analysis-alternatives tbody tr[data-actual=true]{background:#c3d7a509}.analysis-alternative-card{display:flex;align-items:center;gap:6px}.analysis-alternative-tags{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.analysis-alternative-card .playing-card{--card-width: 23px;box-shadow:0 1px 3px #001c1455}.analysis-go{width:23px;height:32.2px;display:grid;place-items:center;color:#e2e8d6;font-size:12px}.analysis-decision-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;color:#bfd0be;margin-top:5px;font-size:10px}.analysis-empty{padding:20px 0;color:#bfd0be;text-align:center;font-size:14px}.analysis-status{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}.analysis-status p{font-size:15px;margin:0}.analysis-status>span{max-width:280px;font-size:13px;color:#bfd0be;line-height:1.5}.analysis-retry{min-height:44px;min-width:100px;border-radius:10px;background:#f4f1df;color:#153e32;padding:10px 24px}.analysis-spinner{color:#c9dfb3;animation:analysis-spin 1.2s linear infinite}@keyframes analysis-spin{to{transform:rotate(360deg)}}@media(min-width:700px){.hand-analysis{width:min(640px,calc(100% - 40px));height:min(900px,calc(100dvh - 40px));margin:auto;border:1px solid #b7cbb333;border-radius:18px;box-shadow:0 24px 100px #00150bbb}.analysis-header,.analysis-scroll{padding-inline:18px}.analysis-discard-cards{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){.analysis-spinner{animation:none}}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f4f1df;background:var(--edge-top-background);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--canvas: #f7f5ef;--pine: #183e35;--sage: #bdd5a8;--ink: #f4f1df;--muted: #b1c5b8;--line: #dce0d7;--coral: #c45648;--card: #fffcf5;--serif: Georgia, "Times New Roman", serif;--felt-background: #153e32;--analysis-background: #10382d;--edge-top-background: var(--felt-background);--edge-bottom-background: var(--felt-background);--edge-top-height: max(12px, env(safe-area-inset-top, 0px));--edge-bottom-height: max(12px, env(safe-area-inset-bottom, 0px))}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--edge-bottom-background);isolation:isolate}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(to bottom,var(--edge-top-background) var(--edge-top-height),transparent calc(var(--edge-top-height) + 36px)),linear-gradient(to top,var(--edge-bottom-background) var(--edge-bottom-height),transparent calc(var(--edge-bottom-height) + 36px)),radial-gradient(ellipse at 50% 40%,#22573b22,#071e1b80),linear-gradient(#163e3266,#163e3266),url(/art/felt.webp) center / 680px}.browser-edge{pointer-events:none}.browser-edge:after{content:"";position:fixed;left:0;right:0;z-index:10;pointer-events:none}.edge-top:after{top:0;height:var(--edge-top-height);background:var(--edge-top-background)}.edge-bottom:after{bottom:0;height:var(--edge-bottom-height);background:var(--edge-bottom-background)}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit;touch-action:manipulation}button,input,a{-webkit-tap-highlight-color:transparent}button,a,input{outline-offset:5px}:focus-visible{outline:2px solid #c7dda7}button:disabled{cursor:default}a{color:inherit}input{width:100%;height:56px;border:1px solid #eff7dd38;border-radius:13px;background:#05261e50;padding:0 16px;color:var(--ink);font-size:16px;box-shadow:inset 0 1px 3px #001b1a25}input:focus{border-color:#ccddbe}input::placeholder{color:#9fb7a7}.app-shell{--page-gutter: 32px;max-width:1100px;min-height:100svh;min-height:100dvh;margin:auto;padding:max(10px,env(safe-area-inset-top)) max(var(--page-gutter),env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(var(--page-gutter),env(safe-area-inset-left));display:flex;flex-direction:column}.app-header{height:76px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:20;flex-shrink:0}.brand-button{background:none;padding:0;min-height:44px;text-align:left}.brand{display:inline-flex;gap:11px;align-items:center;font-family:var(--serif);font-size:27px;letter-spacing:-.7px;font-weight:500}.brand-mark{display:grid;grid-template-columns:repeat(2,8px);gap:3px}.brand-mark i{width:8px;height:8px;background:#efedda;border-radius:2px}.brand-mark i:nth-child(2n){background:#9abb96}.header-actions{display:flex;align-items:center;position:relative}.icon-button{width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:transparent;flex-shrink:0}.icon-button:hover{background:#ffffff12}.menu-button{background:#09291f50;box-shadow:inset 0 0 0 1px #efffde20,0 2px 5px #09201b15}.text-button{min-height:44px;background:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:4px 0;font-size:14px;color:#d3dfcb;text-underline-offset:4px}.text-button:hover{color:#fff;text-decoration:underline}.menu-dismiss{position:fixed;inset:0;background:transparent;z-index:21;cursor:default}.menu{z-index:22;position:absolute;top:52px;right:0;width:232px;background:#163b30;border:1px solid #e8f3d92b;border-radius:17px;padding:8px;box-shadow:0 15px 40px #061c1b70}.menu button{background:transparent;display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:14px 12px;border-radius:10px;font-size:14px}.menu button:hover{background:#ffffff0d}.menu-name{color:var(--muted);font-size:12px;padding:12px;border-bottom:1px solid #e2eddb26;margin-bottom:4px;overflow-wrap:anywhere}.primary-button,.secondary-button{width:100%;min-height:56px;padding:14px 20px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:12px;background:#f2f0de;color:#183e35;font-size:16px;font-weight:550;box-shadow:inset 0 1px #ffffffb3,0 3px 8px #09251d20;transition:background .15s,transform .15s}.primary-button span,.secondary-button span{flex:1;text-align:center}.primary-button:hover:not(:disabled){background:#fffdee}.primary-button:active:not(:disabled),.secondary-button:active:not(:disabled){transform:scale(.987)}.primary-button:disabled{background:#e6ecda20;color:#d5dfc9a6;box-shadow:inset 0 0 0 1px #f4f7e11a}.secondary-button{background:#0c302548;color:var(--ink);border:1px solid #d8e9cd3d;box-shadow:none}.secondary-button:hover:not(:disabled){background:#c9e2b519}.secondary-button:disabled{opacity:.5}.nickname-form{display:flex;flex-direction:column;gap:14px}.nickname-form label,.join-form label{font-size:14px;font-weight:500}.form-note{font-size:12px;line-height:1.6;text-align:center;color:#788479;margin:2px 0}.lobby{width:100%;max-width:350px;margin:auto;padding:35px 0 60px}.lobby-cards{margin-bottom:52px}.lobby h1{margin:0 0 10px;text-align:center;font:29px/1.2 var(--serif);letter-spacing:-.7px}.lobby h1 label{font:inherit}.play-options{display:flex;flex-direction:column;gap:13px}.play-options button span{text-align:left}.join-link{margin-top:6px}.join-form{display:flex;flex-direction:column;gap:9px;margin-top:8px}.join-input-row{display:flex;gap:9px}.join-input-row input{min-width:0;letter-spacing:2px}.join-input-row .primary-button{width:100px}.resume-button{display:flex;align-items:center;gap:12px;padding:16px 20px;color:#e3ebd9;background:#cee5ba16;border:1px solid #d8e9cd30;border-radius:14px;min-height:56px;font-size:16px}.resume-button span{flex:1;text-align:left}.game-layout{--hand-card-width: 91px;--hand-card-step: 55px;--hand-zone-height: 154px;--played-width: var(--hand-card-width);--pegging-controls-height: 84px;--starter-gap: 20px;--played-offset: 20px;--pegging-zone-height: calc(var(--pegging-controls-height) + var(--played-width) * 1.4);position:relative;width:100%;max-width:560px;margin:0 auto;flex:1;display:flex;flex-direction:column}.scoreboard{position:relative;display:flex;flex-direction:column;gap:16px;margin:6px 0 16px;flex-shrink:0}.score-row{position:relative;display:flex;justify-content:space-between;align-items:center;padding:0 4px}.player-score{max-width:43%}.opponent-score{text-align:right}.opponent-score .score-name{justify-content:flex-end}.score-name{font-size:13px;color:#d1decd;display:flex;align-items:center;gap:6px;min-height:22px}.player-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:125px}.score-dot{width:6px;height:6px;border-radius:50%;background:#bdd5a8;flex-shrink:0}.score-dot.coral{background:#ee8974}.dealer-marker{border:1px solid #d9e5c850;border-radius:50%;width:16px;height:16px;flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;font-size:9px}.score-numbers strong{font:48px/1 var(--serif);letter-spacing:-1.8px;font-variant-numeric:tabular-nums}.round-number{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#b5cab7;font-size:11px;white-space:nowrap}.peg-board{padding:0 1px}.peg-board svg{display:block;width:100%;height:auto}.table{position:relative;display:flex;flex-direction:column;flex:1;min-height:380px;padding:0}.opponent-zone{height:var(--hand-zone-height);flex-shrink:0;position:relative}.opponent-area,.player-zone .hand-area{display:flex;justify-content:center;width:100%;padding:0}.opponent-area .card-fan,.player-zone .card-fan{--card-width: var(--hand-card-width);--card-step: var(--hand-card-step);height:var(--hand-zone-height);width:min(100%,calc(var(--card-width) + max(0,var(--hand-count) - 1) * var(--card-step) + 26px))}.player-zone{height:var(--hand-zone-height);flex-shrink:0;position:relative}.crib,.starter{display:flex;flex-direction:column;align-items:center;gap:9px}.crib{position:absolute;left:0;top:20px;z-index:2;width:44px;align-items:flex-start}.crib-owned-by-you{top:calc(100% - 86px)}.crib-owned-by-opponent.crib-full-hand{top:var(--hand-zone-height)}.crib-owned-by-you.crib-full-hand{top:calc(100% - var(--hand-zone-height) - 90px)}.crib>span,.starter>span{color:#c1d1bc;font-size:11px}.crib>span{max-width:100%;line-height:1.3}.crib>span>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.starter .card-small{--card-width: var(--played-width)}.crib-stack{position:relative;border-radius:6px;box-shadow:2px 3px #bbc3a6,3px 5px #061f1b75}.crib-stack .card-small{--card-width: 44px}.crib-empty{width:44px;height:64px;border:1px solid #daebc62e;box-shadow:inset 0 0 0 3px #123728}.table-middle{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:var(--pegging-zone-height);padding:0}.hand-area{width:100%;padding-top:20px;flex-shrink:0}.cut-area{width:100%}.round-summary{height:100%;display:flex;align-items:center;justify-content:flex-end;padding-left:88px}.round-summary h1{font:28px/1.2 var(--serif);margin:0;text-align:right;overflow-wrap:anywhere}.table-action{position:sticky;bottom:max(8px,env(safe-area-inset-bottom));z-index:6;width:min(100%,clamp(224px,76%,320px));margin:10px 0 0 auto;min-height:72px;padding:12px 18px;font-size:18px;line-height:1.2;font-weight:500;flex-shrink:0}.table-action.settling-play{visibility:hidden}.table-action.awaiting-turn{background:#07281e66;border:1px solid #e3ead020;color:#c6d8bc;box-shadow:none;font-size:15px}.table-action.awaiting-turn>span:not(.turn-pulse){flex:initial;min-width:0;overflow-wrap:anywhere}.turn-pulse{flex:0 0 5px!important;width:5px;height:5px;background:#bdd5a8;border-radius:50%;animation:breathe .7s infinite alternate}.pegging-area{width:100%}.pegging-cards{display:grid;grid-template-columns:var(--played-width) minmax(0,1fr);align-items:center;column-gap:var(--starter-gap);min-height:var(--pegging-zone-height)}.starter-column{grid-column:1;grid-row:1;align-self:center;display:flex;flex-direction:column;align-items:center;gap:15px}.running-count{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:46px}.running-count>span{color:#c4d5bb;font-size:10px}.running-count strong{font:32px/.95 var(--serif);animation:score-in .2s ease-out;min-width:33px;text-align:center}.played-cards{--played-step: min(34px, calc((100% - var(--played-width)) / var(--played-intervals)));--played-spread: min( calc(max(0, var(--played-count) - 1)*34px) , calc(100% - var(--played-width)));position:relative;grid-column:2;grid-row:1;height:calc(var(--played-width) * 1.4 + var(--played-offset));min-width:0}.played-cards .card-small{--card-width: var(--played-width)}.played-card{position:absolute;left:calc((100% - var(--played-width) - var(--played-spread)) / 2 + var(--played-index) * var(--played-step));top:0;transition:filter .2s ease}.played-card-complete{filter:brightness(.58) saturate(.35)}.played-by-you{top:var(--played-offset)}.counting-layout{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:30px;flex:1;padding:24px 0 38px}.app-shell:has(>.game-layout.is-counting){height:100dvh;overflow:hidden}.game-layout.is-counting{min-height:0}.game-layout.is-counting>.table{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#bdd5a83d transparent}.is-counting .counting-layout{flex:1 0 auto}.game-layout.is-counting>.table-action{position:static}.counting-cards{width:100%;max-width:440px;display:grid;grid-template-columns:var(--played-width) minmax(0,1fr);align-items:center;gap:var(--starter-gap)}.counting-cards .hand-area{width:100%;padding:0}.counting-cards .card-fan{--card-step: 43px;height:var(--hand-zone-height)}.counting-cards .starter{margin-top:16px}.count-result{width:100%;max-width:310px;padding:0 12px}.count-result h1{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 12px;font:24px/1.2 var(--serif)}.count-result h1 span{overflow-wrap:anywhere}.count-result h1 strong{font-size:38px;font-weight:400;font-variant-numeric:tabular-nums}.score-details{font-size:13px}.score-details>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px solid #dce7c926}.score-details span{color:#c3d3bf}.score-details strong{font-variant-numeric:tabular-nums;font-weight:500}.game-result{font:30px/1.2 var(--serif);text-align:center;margin:0;overflow-wrap:anywhere}.waiting-code{display:flex;flex-direction:column;align-items:center;gap:12px;margin:auto;padding:30px 0;width:100%}.waiting-cards{width:100%;margin-bottom:30px}.waiting-code h1{font:28px/1.2 var(--serif);margin:0 0 16px}.waiting-code>span{color:#b8d0b8;font-size:12px}.waiting-code strong{letter-spacing:4px;font-size:31px;font-weight:400;font-variant-numeric:tabular-nums}.waiting-code input{max-width:350px;margin-top:16px;font-size:12px;height:44px;text-align:center}.card-fan{--card-width: 91px;--card-step: 55px;--selection-lift: 18px;position:relative;isolation:isolate;width:100%;height:154px}.playing-card{display:block;position:relative;width:var(--card-width, 91px);height:calc(var(--card-width, 91px) * 1.4);padding:0;background:transparent;border-radius:calc(var(--card-width, 91px) * .05);border:0;box-shadow:0 5px 10px #041b1855;flex-shrink:0;transition:filter .15s}.card-slot{position:absolute;left:calc(50% - var(--card-width) / 2);top:8px;width:var(--card-width);z-index:var(--card-index);pointer-events:none;transform:translate3d(calc(var(--fan-x) * var(--card-step)),var(--fan-y),0)}.card-lift{transform:translateZ(0);transition:transform .18s cubic-bezier(.2,.8,.2,1);will-change:transform}.card-lift[data-selected=true]{transform:translate3d(0,calc(-1 * var(--selection-lift)),0)}.card-slot .playing-card{pointer-events:auto;transform:rotate(var(--fan-rotation));transform-origin:50% 120%}.fan-opponent .card-slot{top:auto;bottom:8px}.fan-opponent .card-slot .playing-card{transform-origin:50% -20%}.card-slot .playing-card.selected{box-shadow:0 0 0 3px #bdd5a8,0 8px 12px #061b2133}.card-art{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.playing-card:disabled{filter:saturate(.85) brightness(.94)}.card-small{--card-width: 54px}.fan-small{--card-width: 54px;--card-step: 33px;height:91px}.error-banner{display:flex;gap:10px;align-items:center;padding:8px 12px;background:#f6e7de;border:1px solid #e8c5b4;border-radius:12px;color:#8c3f29;font-size:13px;margin:0 auto 14px;max-width:650px}.error-banner>span{flex:1}.error-banner svg{flex-shrink:0}.connection-note{position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%);z-index:7;white-space:nowrap;pointer-events:none;color:#d8d2b8;font-size:10px;line-height:1}.scoreboard:has(>.connection-note) .round-number{visibility:hidden}.waiting-connection-note{position:absolute;top:0;left:50%;transform:translate(-50%);color:#d8d2b8;font-size:12px}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:65vh}.loading-dot{width:12px;height:12px;border-radius:50%;background:#8ca393;animation:breathe 1s infinite alternate}.sheet{border:0;border-radius:24px;background:var(--canvas);color:var(--pine);max-width:510px;width:calc(100% - 32px);max-height:85dvh;padding:0;box-shadow:0 24px 100px #10271e33}.sheet::backdrop{background:#14271f75;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.sheet-content{padding:25px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.sheet-heading h2{font:27px/1.1 var(--serif);margin:0;letter-spacing:-.5px}.help-content p{font-size:14px;line-height:1.7;color:#6d7d6f;margin:7px 0 21px}.help-content h3{margin:22px 0 6px;font-size:15px;font-weight:600}.scoring-guide{font-size:13px;line-height:1.5;padding:12px 0;margin:0}.scoring-guide>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid var(--line)}.scoring-guide dd{margin:0;white-space:nowrap;font-weight:600}.help-content .muted{font-size:12px}.source-link{font-size:12px;text-underline-offset:4px;line-height:1.5}.history-list{list-style:none;padding:0;margin:0}.history-list li{display:flex;gap:15px;justify-content:space-between;font-size:13px;line-height:1.5;padding:12px 0;border-bottom:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sheet{--muted: #6f8077}.sheet .primary-button{background:var(--pine);color:var(--canvas)}.sheet .primary-button:disabled{opacity:.5}.sheet .icon-button:hover{background:#173e3510}.sheet input{color:var(--pine);background:#fffdf8;border-color:#ccd4c8}@keyframes breathe{0%{opacity:.4;transform:scale(.8)}to{opacity:1;transform:scale(1.1)}}@keyframes score-in{0%{transform:scale(.9);opacity:.5}to{transform:scale(1);opacity:1}}@media(min-width:800px){.game-layout{max-width:580px}.table{min-height:410px}.scoreboard{margin-top:4px}.lobby{max-width:360px}}@media(max-width:650px){.game-layout{--hand-card-width: 80px;--hand-card-step: 47px;--hand-zone-height: 148px;--starter-gap: 18px}.app-shell{--page-gutter: 22px;padding-top:max(2px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.app-header{height:64px}.brand{font-size:23px;gap:10px}.brand-mark{display:none}.menu-button{width:40px;height:40px}.lobby{padding:28px 3px 35px}.lobby-cards{margin-bottom:40px}.scoreboard{gap:13px;margin:7px 0 16px}.score-name{font-size:12px;min-height:20px}.score-numbers strong{font-size:43px}.player-name{max-width:100px}.peg-board svg{height:auto}.table{min-height:0}.table-action{margin-top:6px;font-size:17px}.card-fan{--card-width: 80px;--card-step: 47px;--selection-lift: 16px;height:148px}.fan-small{--card-width: 48px;--card-step: 25px;height:80px}.card-small{--card-width: 43px}.counting-cards .card-fan{--card-step: 40px}.counting-layout{padding:20px 0 30px;gap:22px}.count-result{max-width:285px}.count-result h1{font-size:23px}.error-banner{font-size:12px;padding:6px 10px}.sheet{border-radius:22px}.sheet-content{padding:23px 20px}.sheet-heading h2{font-size:25px}}@media(max-width:375px){.game-layout{--hand-card-width: 72px;--hand-card-step: 42px;--hand-zone-height: 136px}.app-shell{--page-gutter: 16px}.brand{font-size:22px}.card-fan{--card-width: 72px;--card-step: 42px;height:136px}.fan-small{--card-width: 40px;--card-step: 21px;height:75px}.counting-cards .card-fan{--card-step: 35px}}@media(max-height:740px)and (max-width:650px){.game-layout{--hand-card-width: 68px;--hand-card-step: 43px;--hand-zone-height: 126px;--pegging-controls-height: 82px}.app-header{height:52px}.scoreboard{margin-bottom:9px;gap:9px}.score-numbers strong{font-size:38px}.running-count{height:44px}.running-count strong{font-size:30px}.hand-area{padding-top:14px}.counting-layout{padding-block:16px;gap:16px}.lobby-cards{margin-bottom:28px}}@media(max-width:350px){.game-layout{--hand-card-width: 66px;--hand-card-step: 37px;--hand-zone-height: 118px;--starter-gap: 14px}.card-fan{--card-width: 66px;--card-step: 37px;height:118px}.fan-small{--card-width: 38px;--card-step: 20px;height:72px}.counting-cards .card-fan{--card-step: 33px}.lobby h1{font-size:26px}}@media(max-height:620px)and (max-width:650px){.game-layout{--hand-card-width: 56px;--hand-card-step: 35px;--hand-zone-height: 102px;--pegging-controls-height: 58px;--played-offset: 16px}.app-header{height:44px}.scoreboard{gap:6px;margin:2px 0 6px}.score-numbers strong{font-size:32px}.score-name{min-height:18px}.peg-board svg{max-height:22px}.table-action{min-height:64px;font-size:16px}.crib-owned-by-opponent:not(.crib-full-hand){top:0}.crib>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.starter-column{gap:8px}.starter-column .starter{gap:5px}.running-count{height:37px}.counting-layout{padding-block:8px;gap:10px}.counting-cards .starter{margin-top:0;gap:5px}.score-details>div{padding-block:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.app-shell:has(>.game-layout.showing-outro){height:100dvh;overflow:hidden}.game-layout.showing-outro{min-height:0}.showing-outro>.scoreboard,.showing-outro>.table{animation:table-outro-fade .65s ease-out both;pointer-events:none}.outro-stage{position:absolute;inset:0 0 118px;z-index:4;isolation:isolate;overflow:hidden;display:flex;flex-direction:column}.outro-stage-birthday{overflow-y:auto;overscroll-behavior-y:contain}.showing-outro>.rematch-actions{animation:outro-action-in .5s 1.7s ease-out both}.outro-action-spacer{height:82px;flex-shrink:0}.rematch-actions{position:absolute;inset:auto 0 0;z-index:6}.rematch-status{height:32px;display:flex;align-items:center;justify-content:flex-end;color:#c5d6bd;font-size:12px;line-height:16px}.rematch-status>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rematch-buttons{display:grid;grid-template-columns:minmax(88px,1fr) minmax(0,2fr);gap:10px}.rematch-new{min-width:0;min-height:72px;padding:10px;font-size:14px;border:1px solid #d8e9cd35;border-radius:14px;color:#d8e2ce;background:#0c302538}.rematch-new:hover:not(:disabled){background:#c9e2b519}.rematch-new:disabled{opacity:.5}.rematch-actions .table-action{position:static;width:100%;min-width:0;min-height:72px;margin:0;padding:12px;font-size:17px}@media(max-width:650px){.outro-action-spacer{height:78px}}@media(max-height:620px)and (max-width:650px){.outro-action-spacer{height:70px}.rematch-new,.rematch-actions .table-action{min-height:64px}}@keyframes table-outro-fade{to{opacity:0}}@keyframes outro-action-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.showing-outro>.scoreboard,.showing-outro>.table{animation:none;opacity:0}.showing-outro>.rematch-actions{animation:none}}
