:root{--bg: #eee3d1;--card: #fffaf0;--ink: #302a23;--ink-soft: #655a4b;--line: rgba(98, 72, 44, .2);--accent: #315e42;--accent-soft: rgba(76, 115, 79, .12);--highlight: rgba(201, 155, 82, .42);--tape-coral: #ecd0b8;--tape-mustard: rgba(201, 155, 82, .62);--tape-mint: rgba(122, 163, 128, .6);--kraft: #d5b888;--felt-1: #487a57;--felt-2: #346145;--felt-3: #284d38;--wood: #8b603e;--wood-light: #c99a66;--control-edge: #897254;--hand: "Caveat", "Bradley Hand", cursive;font-family:Plus Jakarta Sans,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background-color:var(--bg);background-image:radial-gradient(ellipse at 18% 0%,#fff8e8,#fff8e800 65%),linear-gradient(110deg,#e9dcc6,#f3eadb 52%,#e3d3ba);min-height:100dvh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}button{font:inherit;font-weight:700;cursor:pointer;border-radius:10px;border:2px solid var(--control-edge);background:var(--card);color:var(--ink);padding:.6rem 1rem;min-height:44px;box-shadow:0 2px 3px #4b301821;transition:transform .1s ease,box-shadow .1s ease}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 7px #4b30182e}button:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 2px #4b301829}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:disabled{cursor:default;opacity:.85}button.primary{background:var(--accent);border-color:var(--accent);color:#fffaf0}button.link{background:none;border:none;box-shadow:none;color:var(--accent);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--highlight);text-underline-offset:4px;padding:.4rem .35rem;min-height:44px}button.link:hover{transform:none;box-shadow:none;text-decoration-color:currentColor}input,select{font:inherit;padding:.6rem .75rem;border-radius:10px;border:2px solid var(--control-edge);background:#fffdf7;color:var(--ink);min-height:44px;caret-color:var(--accent)}input::placeholder{color:var(--ink-soft);opacity:1}::selection{background:#d5dfc7;color:var(--ink)}html{scrollbar-color:#9b8260 var(--bg)}.muted{color:var(--ink-soft)}.small{font-size:.875rem}.home-card,.panel{position:relative;background:var(--card);border:0;border-radius:12px;box-shadow:0 14px 32px -16px #4b301861}.home,.lobby{display:grid;place-items:center;min-height:100dvh;padding:4.5rem max(16px,env(safe-area-inset-left)) 1.5rem}.home-card{width:min(440px,100%);padding:1.8rem 1.6rem 1.4rem;display:grid;gap:.9rem}.home-card h1{margin:0;font-size:2.6rem;letter-spacing:-.02em}.home-card label{display:grid;gap:.35rem;font-weight:700}.home-tera{position:absolute;right:8px;top:-58px;width:112px;height:112px;transform:rotate(5deg)}.home-suits{display:flex;gap:.45rem}.tagline{margin:0;color:var(--ink-soft);font-family:var(--hand);font-size:1.45rem;line-height:1.1;max-width:16em}.join-row{display:grid;grid-template-columns:1fr auto;gap:.5rem}.join-row input{text-transform:uppercase;letter-spacing:.2em;min-width:0}.join-row input::placeholder{text-transform:none;letter-spacing:normal}.home-links{display:flex;justify-content:space-between;flex-wrap:wrap}.code-box{display:flex;align-items:center;gap:.8rem}.code{font-size:2.2rem;font-weight:800;letter-spacing:.22em;background:var(--highlight);padding:0 .3rem}.seats{display:grid;gap:.45rem}.seat-row{display:flex;justify-content:space-between;text-align:left;font-weight:600}.seat-row .role{color:var(--ink-soft)}.seat-row.open{border-style:dashed;background:var(--accent-soft)}.settings{display:grid;gap:.5rem}.settings .check{display:flex;align-items:center;gap:.5rem;font-weight:500}.game{--hand-card: clamp(46px, 11vw, 74px);display:grid;grid-template-rows:auto minmax(190px,1fr) auto auto auto;gap:0;width:100%;max-width:1440px;min-width:0;height:100dvh;min-height:620px;margin:0 auto;padding:0 max(10px,env(safe-area-inset-left))}.game>*{min-width:0}.bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:10px 0 2px}.bar-left{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.bar-left b{font-size:1.2rem;letter-spacing:-.02em}.mode-badge{display:inline-flex;align-items:center;gap:4px;background:#dce4cc;padding:3px 8px;border-radius:6px;font-size:.875rem;font-weight:600}.mode-badge svg{flex:none}.slate{background:#30382e;color:#fff5df;border:4px solid var(--wood);border-radius:5px;padding:4px 10px;display:grid;grid-template-columns:auto auto;gap:0 14px;font-family:var(--hand);font-size:1.1rem;box-shadow:0 2px 4px #4b301826}.slate:before{display:none}.slate div{display:flex;gap:5px;align-items:baseline}.slate b{font-size:1.4rem;line-height:1;font-variant-numeric:tabular-nums}.slate .small{grid-column:1 / -1;color:#e5decc;font-size:.875rem}.bar-right{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.bar-right button.link{min-height:44px;padding:4px 6px;font-size:.875rem}.table-wrap{display:grid;min-height:0;min-width:0;padding:24px 20px 30px}.felt{position:relative;width:100%;max-width:1360px;min-width:0;min-height:170px;justify-self:center;border:10px solid var(--wood);border-radius:16px;background:radial-gradient(ellipse at 38% 24%,var(--felt-1),var(--felt-2) 65%,var(--felt-3));box-shadow:inset 0 0 0 2px var(--wood-light),inset 0 3px 24px #1424183d,0 12px 24px -13px #4b301885,0 2px 3px #4b301833}.felt:after{content:"";position:absolute;top:10px;right:10px;bottom:10px;left:10px;border-radius:6px;border:1px solid rgba(230,223,186,.3);pointer-events:none}.plate{position:absolute;display:grid;justify-items:center;gap:3px;z-index:2;max-width:104px}.avatar{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:1rem;background:var(--card);border:2px solid #64533c;box-shadow:0 2px 4px #271e1138}.team-us .avatar{background:#f5dfaf}.team-them .avatar{background:#dde6da}.bot-face{font-size:1.1rem}.plate.active .avatar{outline:3px solid #f5cf75;outline-offset:3px}.badge{position:absolute;top:-7px;right:-8px;color:#c98a1d}.tape{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:700;padding:2px 7px;border-radius:3px;color:var(--ink)}.team-us .tape{background:#f3d9a4}.team-them .tape{background:#dde6da}.plate.active .tape{outline:2px solid #f5cf75;outline-offset:1px}.plate-bottom{bottom:-23px;left:50%;transform:translate(-50%)}.plate-top{top:-23px;left:50%;transform:translate(-50%)}.plate-left{left:-18px;top:50%;transform:translateY(-50%)}.plate-right{right:-18px;top:50%;transform:translateY(-50%)}.plate-bottom .tape{order:-1}.backs{display:flex}.back{width:17px;height:26px;margin-left:-10px;display:block}.back:first-child{margin-left:0}.plate-left .backs,.plate-right .backs{flex-direction:column}.plate-left .back,.plate-right .back{margin-left:0;margin-top:-20px}.plate-left .back:first-child,.plate-right .back:first-child{margin-top:0}.card{display:inline-block;width:62px;aspect-ratio:70 / 105;filter:drop-shadow(0 3px 3px rgba(31,35,40,.3));transition:transform .15s ease}.card-svg{width:100%;height:100%;display:block}.trick{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.slot{position:absolute;left:50%;top:50%}.slot .card{width:clamp(44px,7vw,62px)}.slot-bottom{transform:translate(-50%,-12%)}.slot-top{transform:translate(-50%,-108%)}.slot-left{transform:translate(-140%,-60%) rotate(-7deg)}.slot-right{transform:translate(40%,-60%) rotate(7deg)}.fly-bottom>.card{animation:fly-bottom .35s ease-out both}.fly-top>.card{animation:fly-top .35s ease-out both}.fly-left>.card{animation:fly-left .35s ease-out both}.fly-right>.card{animation:fly-right .35s ease-out both}@keyframes fly-bottom{0%{transform:translateY(160px) rotate(8deg);opacity:0}}@keyframes fly-top{0%{transform:translateY(-160px) rotate(-8deg);opacity:0}}@keyframes fly-left{0%{transform:translate(-200px) rotate(-14deg);opacity:0}}@keyframes fly-right{0%{transform:translate(200px) rotate(14deg);opacity:0}}.sweep-bottom>.card{animation:sweep-bottom .9s ease-in .6s both}.sweep-top>.card{animation:sweep-top .9s ease-in .6s both}.sweep-left>.card{animation:sweep-left .9s ease-in .6s both}.sweep-right>.card{animation:sweep-right .9s ease-in .6s both}@keyframes sweep-bottom{to{transform:translateY(150px) scale(.6);opacity:0}}@keyframes sweep-top{to{transform:translateY(-150px) scale(.6);opacity:0}}@keyframes sweep-left{to{transform:translate(-220px) scale(.6);opacity:0}}@keyframes sweep-right{to{transform:translate(220px) scale(.6);opacity:0}}.trick-caption{position:absolute;left:50%;bottom:14%;transform:translate(-50%);max-width:80%;background:#f3d9a4;color:var(--ink);padding:3px 8px;border-radius:4px;font-family:var(--hand);font-size:1.1rem;text-align:center;z-index:3}.coach{display:flex;align-items:center;justify-content:center;gap:8px;padding:2px 0 4px;min-width:0}.coach img{width:64px;height:64px;flex:none}@keyframes bob{50%{transform:translateY(-4px) rotate(-2deg)}}.bubble{min-width:0;max-width:640px;padding:8px 12px;background:var(--card);border:1px solid rgba(137,114,84,.32);border-radius:12px;display:grid;gap:3px;font-size:.9rem;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.bubble .hint{color:var(--accent)}.bubble .muted{font-weight:400}.gloss{opacity:.75;font-weight:400}.walk{font-weight:400}.choose{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:6px 0;position:relative;z-index:4}.choose button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:7px 9px;font-size:.875rem;line-height:1.2;box-shadow:0 2px 4px #1f23281f}.choose button svg{flex:none}.choose .push{background:var(--tape-coral)}.hand{display:grid;grid-template-columns:repeat(var(--hand-columns, 8),minmax(0,1fr)) var(--hand-card);width:min(100%,calc(var(--hand-count, 9) * var(--hand-card) + (var(--hand-count, 9) - 1) * 8px));justify-self:center;align-self:end;padding:16px 0 12px}.hand:empty{display:none}.hand .card{display:block;width:var(--hand-card);min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:7px;background:none;box-shadow:none;opacity:1}.hand .card.playable{cursor:pointer;transform:translateY(-7px)}.hand .card.playable:hover:not(:disabled){transform:translateY(-14px);box-shadow:none}.hand .card.playable:focus-visible{outline:3px solid #c78a1f;outline-offset:3px;transform:translateY(-14px)}.hand .card.blocked{filter:grayscale(.7) brightness(.85) drop-shadow(0 2px 2px rgba(31,35,40,.2))}.hand .card.deal{animation:deal .45s cubic-bezier(.2,.8,.3,1.2) both}@keyframes deal{0%{transform:translateY(60px) rotate(-8deg) scale(.8);opacity:0}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#362c1e80;display:grid;place-items:center;padding:1.5rem 1rem;z-index:10}.panel{padding:1.5rem 1.6rem 1.3rem;width:min(460px,100%);max-height:90dvh;overflow:auto;display:grid;gap:.75rem}.panel h2{margin:0;font-family:var(--hand);font-size:2.2rem;line-height:1}.panel-tera{width:110px;height:110px;justify-self:center}.panel.rules{width:min(680px,100%);line-height:1.55}.panel.rules h2{font-family:inherit;font-size:1.5rem}.panel.rules h3{margin:.8rem 0 0}.panel.rules table{border-collapse:collapse;font-size:.92rem}.panel.rules td,.panel.rules th{border-bottom:1px solid var(--line);padding:.25rem .5rem;text-align:left}.panel .close{justify-self:end}.note{color:var(--ink-soft);font-size:.9rem}.score-table{border-collapse:collapse}.score-table td,.score-table th{padding:.3rem .6rem;text-align:right;border-bottom:1px solid var(--line)}.score-table td:first-child,.score-table th:first-child{text-align:left}.score-table .sum td{font-family:var(--hand);font-size:1.6rem;border-bottom:none}.toast{position:fixed;left:50%;bottom:1.2rem;transform:translate(-50%);background:var(--ink);color:var(--bg);padding:.6rem 1.1rem;border-radius:999px;z-index:20;font-weight:600}.narrow-only{display:none}.lang-button{white-space:nowrap}.menu-panel{width:min(360px,100%);gap:.7rem}.menu-panel h2{font-family:inherit;font-size:1.25rem;line-height:1.25}.choices{display:grid;gap:8px}.choice{display:flex;align-items:center;gap:8px;text-align:left;min-height:48px;font-size:1rem}.choice .tick{width:1.1em;flex:none;color:var(--accent)}.choice.current{background:var(--accent-soft);border-color:var(--accent)}.menu-help{margin:0;font-size:.875rem}@media (min-width: 760px){.bar{grid-template-columns:minmax(0,1fr) auto auto;padding-bottom:8px}.bar-right{grid-column:auto}}@media (max-width: 560px){.game{--hand-card: 48px;padding-inline:8px}.game{grid-template-rows:auto minmax(150px,1fr) auto auto auto;min-height:560px}.bar{grid-template-columns:minmax(0,1fr);gap:2px 8px;padding:6px 0 0}.bar-left b,.bar-left.no-mode{display:none}.bar-right{justify-content:space-between;flex-wrap:nowrap;gap:4px}.bar-right button.link{white-space:nowrap;flex:none}.wide-only{display:none!important}.narrow-only{display:inline-block}.mode-badge{padding:2px 6px;font-size:.875rem}.table-wrap{padding:23px 14px 28px}.felt{border-width:8px;border-radius:12px;min-height:96px}.avatar{width:32px;height:32px;font-size:.9rem}.tape{max-width:92px;font-size:.875rem;padding:2px 5px}.plate-left{left:-16px}.plate-right{right:-16px}.back{width:14px;height:21px;margin-left:-9px}.plate-left .back,.plate-right .back{margin-top:-16px}.bubble{font-size:.875rem;padding:7px 9px}.slate{font-size:.9rem;gap:0 9px;padding:3px 7px;border-width:3px}.slate b{font-size:1.2rem}.slate .small{font-size:.875rem}.choose{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;padding:4px 0}.choose button{grid-column:span 3;flex-direction:column;gap:1px;padding:4px 3px;font-size:.875rem;line-height:1.15;min-height:48px}.choose .plain{grid-column:span 4}.choose.no-push .plain{grid-column:span 6}.hand{width:min(100%,264px);grid-template-columns:repeat(5,minmax(0,1fr));gap:7px 6px;padding-top:9px;padding-bottom:10px}.hand .card{width:100%;transform:none}.hand .card.playable:hover:not(:disabled),.hand .card.playable:focus-visible{transform:translateY(-3px)}.hand.fan{width:min(100%,calc(var(--hand-count, 9) * 40px + 8px));grid-template-columns:repeat(var(--hand-columns, 8),minmax(0,1fr)) var(--hand-card);gap:0;padding-top:6px;padding-bottom:8px}.hand.fan .card{width:var(--hand-card)}}@media (max-width: 560px) and (max-height: 700px){.coach .tera{display:none}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.avatar.drawn{padding:2px;overflow:visible}.avatar svg{display:block}.badge svg{display:block}.steps{padding-left:1.2rem;display:grid;gap:.45rem;margin:0}.steps li::marker{font-family:var(--hand);font-size:1.4rem;font-weight:700;color:var(--accent)}.coach img{animation:none;transform-origin:50% 90%}.act-bob{animation:bob 3s ease-in-out infinite!important}.act-wave{animation:wave 1s ease-in-out infinite!important}.act-jump{animation:jump .7s cubic-bezier(.3,1.6,.5,1) 2!important}.act-droop{animation:droop 1.2s ease-out both!important}.act-shake{animation:shake .45s linear 2!important}.act-peek{animation:peek 1.6s ease-in-out infinite!important}.home-tera{animation:wave 2.4s ease-in-out infinite;transform-origin:50% 90%}@keyframes wave{0%,to{transform:rotate(-5deg)}50%{transform:rotate(6deg) translateY(-3px)}}@keyframes jump{0%,to{transform:translateY(0) scale(1)}30%{transform:translateY(-22px) scale(.95,1.06)}70%{transform:translateY(0) scale(1.06,.94)}}@keyframes droop{to{transform:rotate(-8deg) translateY(4px) scale(.96);filter:saturate(.7)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-6px) rotate(-4deg)}75%{transform:translate(6px) rotate(4deg)}}@keyframes peek{0%,to{transform:translate(0) rotate(0)}50%{transform:translate(8px) rotate(5deg)}}.cases{padding-left:1.1rem;display:grid;gap:.4rem;margin:0}.tera{position:relative;display:inline-block;width:var(--s);height:var(--s);flex:none}.tera-move{position:absolute;top:0;right:0;bottom:0;left:0;display:block;transform-origin:50% 92%}.tera img{width:100%;height:100%;display:block;animation:none!important}.tera-prop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.coach .tera{margin-bottom:0}.tera.home-tera{position:absolute;right:8px;top:-62px;animation:none;transform:none}.tera.panel-tera{justify-self:center}.act-nod{animation:nod 1.4s ease-in-out infinite}.act-tilt{animation:tilt 2.2s ease-in-out infinite}.act-sway{animation:wave 1.6s ease-in-out infinite}.act-spin{animation:spin 1.1s cubic-bezier(.3,1.4,.5,1) 2}.tera-move.act-bob{animation:bob 3s ease-in-out infinite}.tera-move.act-jump{animation:jump .7s cubic-bezier(.3,1.6,.5,1) 3}.tera-move.act-droop{animation:droop 1.2s ease-out both}@keyframes nod{0%,to{transform:rotate(0) translateY(0)}50%{transform:rotate(3deg) translateY(3px)}}@keyframes tilt{0%,to{transform:rotate(-6deg)}50%{transform:rotate(7deg)}}@keyframes spin{0%{transform:rotate(0) translateY(0)}50%{transform:rotate(180deg) translateY(-18px)}to{transform:rotate(360deg) translateY(0)}}.p-fly1,.p-fly2,.p-fly3{animation:pfly 1.2s ease-out infinite}.p-fly2{animation-delay:.2s}.p-fly3{animation-delay:.4s}@keyframes pfly{0%{transform:translate(-14px,14px) scale(.6);opacity:0}30%{opacity:1}to{transform:translate(18px,-22px) rotate(30deg);opacity:0}}.p-pop{animation:ppop 1.3s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}@keyframes ppop{0%,to{transform:scale(.85)}50%{transform:scale(1.12) translateY(-2px)}}.p-twinkle{animation:ptwinkle .9s ease-in-out infinite}@keyframes ptwinkle{0%,to{opacity:.3}50%{opacity:1}}.p-rain{animation:prain .8s linear infinite}@keyframes prain{0%{transform:translateY(-3px);opacity:1}to{transform:translateY(7px);opacity:0}}.p-float{animation:pfloat 1.8s ease-in-out infinite}@keyframes pfloat{0%{transform:translateY(8px);opacity:0}40%{opacity:1}to{transform:translateY(-12px);opacity:0}}.p-confetti{animation:pconf 1.2s ease-in infinite}@keyframes pconf{0%{transform:translateY(-10px);opacity:1}to{transform:translateY(46px) rotate(12deg);opacity:0}}.p-write{animation:pwrite .7s ease-in-out infinite}@keyframes pwrite{50%{transform:translate(5px,-3px)}}.p-dot1,.p-dot2,.p-dot3{animation:pdot 1.2s ease-in-out infinite}.p-dot2{animation-delay:.2s}.p-dot3{animation-delay:.4s}@keyframes pdot{0%,to{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}.p-sway{animation:tilt 2s ease-in-out infinite;transform-box:fill-box;transform-origin:0 100%}.gallery{max-width:900px;margin:0 auto;padding:2rem 16px}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1.2rem}.gallery figure{margin:0;padding:1.4rem .6rem .6rem;display:grid;justify-items:center;gap:.4rem;background:var(--card);border:1px solid var(--line)}.gallery figcaption{font-family:var(--hand);font-size:1.3rem}.coach .tera{--s: 64px !important}@media (max-width: 560px){.coach .tera{--s: 52px !important}}.home,.lobby{--stub-deco: clamp(130px, 17vw, 250px);position:relative;isolation:isolate;overflow-x:clip;padding-bottom:max(2.3rem,env(safe-area-inset-bottom));background-color:#c68b4b;background-image:radial-gradient(ellipse 90% 80% at 50% 40%,#0000 48%,#2e130385),radial-gradient(ellipse 52% 46% at 50% 36%,#ffe6a8ad,#ffe6a800 76%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='480'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.0025' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .15 0 0 0 0 .03 1.5 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='360' height='480' filter='url(%23n)'/%3E%3C/svg%3E"),linear-gradient(#1609028c,#16090200 30px),repeating-linear-gradient(90deg,#6e4327 0,#6e4327 56px,#3d2211 56px,#3d2211 58px,#805230 58px,#805230 59px),linear-gradient(#c99356 0,#c99356 3px,#5b3519 3px,#5b3519 4px,#8d5c32 4px,#8d5c32 11px,#34200f 11px,#34200f 12px),repeating-linear-gradient(90deg,#ffdc9600 0,#ffdc9600 76px,#ffdc961c 76px,#ffdc961c 152px,#60300e1a 152px,#60300e1a 228px),repeating-linear-gradient(90deg,#60300e1a 0,#60300e1a 76px,#ffdc9600 76px,#ffdc9600 304px,#ffdc9614 304px,#ffdc9614 380px,#ffdc9600 380px,#ffdc9600 456px),repeating-linear-gradient(90deg,#0000 0,#0000 75px,#50280c6b 75px,#50280c6b 76px,#ffe4b033 76px,#ffe4b033 77px);background-size:100% 100%,100% 100%,360px 480px,100% 96px,100% 96px,100% 12px,auto,auto,auto;background-position:0 0,0 0,0 0,0 100%,0 100%,0 calc(100% - 96px),0 0,0 0,0 0;background-repeat:no-repeat,no-repeat,repeat,no-repeat,no-repeat,no-repeat,repeat,repeat,repeat}.home:before,.lobby:before{content:"";position:absolute;z-index:0;left:0;right:0;top:0;height:30px;pointer-events:none;background-color:#fffaf0;background-image:repeating-linear-gradient(90deg,#c8202e80 0,#c8202e80 8px,#c8202e00 8px,#c8202e00 16px),repeating-linear-gradient(0deg,#c8202e80 0,#c8202e80 8px,#c8202e00 8px,#c8202e00 16px);box-shadow:inset 0 5px #3a2210,inset 0 -3px #78121a59;-webkit-mask:linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat,radial-gradient(circle at 50% 0,#000 9px,transparent 9.6px) 0 100% / 20px 9px repeat-x;mask:linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat,radial-gradient(circle at 50% 0,#000 9px,transparent 9.6px) 0 100% / 20px 9px repeat-x}.home:after,.lobby:after{content:none}.home .home-card,.lobby .home-card{background:var(--card);border-radius:10px;box-shadow:inset 0 0 0 6px var(--card),inset 0 0 0 7px #8b603e52,0 2px 5px #16090266}.home .home-card:before,.lobby .home-card:before{content:"";position:absolute;z-index:-1;top:-22px;right:-22px;bottom:-24px;left:-22px;border-radius:22px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .16 0 0 0 0 .09 0 0 0 1.6 -.62'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),radial-gradient(ellipse at 38% 24%,var(--felt-1),var(--felt-2) 65%,var(--felt-3));box-shadow:inset 0 0 0 3px #274b37,inset 0 0 0 5px #e8e0ba52,0 22px 34px -12px #1e0d029e,0 3px 6px #1e0d0266;transform:rotate(-.6deg)}.home .home-card h1:after,.lobby .home-card h1:after{content:"";display:inline-block;width:.5em;height:.5em;margin-left:.35em;vertical-align:.08em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='3' fill='%23d52b1e'/%3E%3Cpath d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;filter:drop-shadow(0 1px 1px rgba(40,18,4,.35))}@media (min-width: 800px){.home:before,.lobby:before{left:max(8px,calc(50% - 300px - var(--stub-deco)));right:auto;top:max(52px,calc(50% - 290px));width:var(--stub-deco);height:auto;aspect-ratio:240 / 330;box-shadow:none;-webkit-mask:none;mask:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 330'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fc6ea'/%3E%3Cstop offset='.7' stop-color='%23d7ecf2'/%3E%3Cstop offset='1' stop-color='%23f3efdc'/%3E%3C/linearGradient%3E%3ClinearGradient id='fr' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%238f5b2e'/%3E%3Cstop offset='1' stop-color='%2374461f'/%3E%3C/linearGradient%3E%3ClinearGradient id='cur' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='.18'/%3E%3Cstop offset='.25' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff' stop-opacity='.12'/%3E%3Cstop offset='.75' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.18'/%3E%3C/linearGradient%3E%3Cpattern id='g' width='14' height='14' patternUnits='userSpaceOnUse'%3E%3Crect width='14' height='14' fill='%23fffaf0'/%3E%3Crect width='7' height='14' fill='%23c8202e' fill-opacity='.5'/%3E%3Crect width='14' height='7' fill='%23c8202e' fill-opacity='.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect x='4' y='34' width='232' height='288' rx='5' fill='%235b3519'/%3E%3Crect x='8' y='38' width='224' height='280' rx='4' fill='url(%23fr)'/%3E%3Crect x='18' y='48' width='204' height='254' fill='%234a2a12'/%3E%3Cg%3E%3Crect x='22' y='52' width='196' height='246' fill='url(%23sky)'/%3E%3Cellipse cx='70' cy='92' rx='26' ry='7' fill='%23fff' fill-opacity='.85'/%3E%3Cellipse cx='88' cy='86' rx='18' ry='7' fill='%23fff' fill-opacity='.85'/%3E%3Cellipse cx='176' cy='118' rx='22' ry='6' fill='%23fff' fill-opacity='.7'/%3E%3Cpath d='M22 218 L58 168 L76 188 L118 118 L146 172 L168 150 L218 212 L218 298 L22 298 Z' fill='%23a9bfd4'/%3E%3Cpath d='M118 118 L102 148 L111 144 L119 156 L127 143 L136 150 L146 172 L150 160 Z' fill='%23fff'/%3E%3Cpath d='M58 168 L47 184 L55 181 L62 190 L69 180 L76 188 Z' fill='%23fff'/%3E%3Cpath d='M168 150 L156 168 L164 165 L170 174 L177 164 L186 170 L190 176 Z' fill='%23fff'/%3E%3Cpath d='M22 240 L52 212 L84 238 L124 200 L170 236 L218 214 L218 298 L22 298 Z' fill='%237d9db4'/%3E%3Cpath d='M22 262 Q70 236 118 258 T218 248 L218 298 L22 298 Z' fill='%2376a255'/%3E%3Cpath d='M22 280 Q90 262 150 276 T218 270 L218 298 L22 298 Z' fill='%235f8f45'/%3E%3Cg fill='%232f5a3a'%3E%3Cpath d='M40 276 L48 248 L56 276 Z'/%3E%3Cpath d='M52 280 L59 256 L66 280 Z'/%3E%3Cpath d='M196 272 L204 244 L212 272 Z'/%3E%3C/g%3E%3Crect x='122' y='256' width='26' height='15' fill='%238a5a34'/%3E%3Cpath d='M118 257 L135 244 L152 257 Z' fill='%236b2f22'/%3E%3Crect x='131' y='262' width='6' height='9' fill='%23f2d58c'/%3E%3C/g%3E%3Crect x='117' y='52' width='6' height='246' fill='%238a5a2f'/%3E%3Crect x='22' y='172' width='196' height='6' fill='%238a5a2f'/%3E%3Crect x='117' y='52' width='1.5' height='246' fill='%23c18a50' fill-opacity='.7'/%3E%3Crect x='22' y='172' width='196' height='1.5' fill='%23c18a50' fill-opacity='.7'/%3E%3Crect x='0' y='300' width='240' height='14' rx='3' fill='%239a6633'/%3E%3Crect x='0' y='300' width='240' height='3' fill='%23c9955a'/%3E%3Crect x='0' y='313' width='240' height='5' fill='%234a2a12' fill-opacity='.5'/%3E%3Crect x='150' y='286' width='64' height='15' rx='2' fill='%237a4524'/%3E%3Crect x='150' y='286' width='64' height='3' fill='%23a8703a'/%3E%3Cg fill='%234f8a3c'%3E%3Ccircle cx='158' cy='284' r='7'/%3E%3Ccircle cx='172' cy='281' r='8'/%3E%3Ccircle cx='186' cy='282' r='8'/%3E%3Ccircle cx='201' cy='284' r='7'/%3E%3C/g%3E%3Cg fill='%23d3202d'%3E%3Ccircle cx='160' cy='279' r='3.6'/%3E%3Ccircle cx='168' cy='274' r='3.6'/%3E%3Ccircle cx='176' cy='277' r='3.6'/%3E%3Ccircle cx='184' cy='273' r='3.6'/%3E%3Ccircle cx='193' cy='277' r='3.6'/%3E%3Ccircle cx='201' cy='280' r='3.6'/%3E%3C/g%3E%3Cpath d='M12 46 L46 46 Q41 104 34 172 Q40 230 43 304 L12 304 Z' fill='url(%23g)'/%3E%3Cpath d='M12 46 L46 46 Q41 104 34 172 Q40 230 43 304 L12 304 Z' fill='url(%23cur)'/%3E%3Cpath d='M228 46 L194 46 Q199 104 206 172 Q200 230 197 304 L228 304 Z' fill='url(%23g)'/%3E%3Cpath d='M228 46 L194 46 Q199 104 206 172 Q200 230 197 304 L228 304 Z' fill='url(%23cur)'/%3E%3Cg stroke='%237a1219' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M24 172 L38 172'/%3E%3Cpath d='M202 172 L216 172'/%3E%3C/g%3E%3Crect x='2' y='4' width='236' height='6' rx='3' fill='%233a2210'/%3E%3Ccircle cx='4' cy='7' r='5' fill='%23b9873f'/%3E%3Ccircle cx='236' cy='7' r='5' fill='%23b9873f'/%3E%3Cpath d='M6 10 L234 10 L234 40 Q222 54 210 40 Q198 54 186 40 Q174 54 162 40 Q150 54 138 40 Q126 54 114 40 Q102 54 90 40 Q78 54 66 40 Q54 54 42 40 Q30 54 18 40 L6 40 Z' fill='url(%23g)'/%3E%3Cpath d='M6 10 L234 10 L234 14 L6 14 Z' fill='%23000' fill-opacity='.12'/%3E%3C/svg%3E") center / 100% 100% no-repeat;filter:drop-shadow(0 10px 10px rgba(30,13,2,.45))}.home:after,.lobby:after{content:"";position:absolute;z-index:0;pointer-events:none;right:max(8px,calc(50% - 300px - var(--stub-deco) * .82));top:max(130px,calc(50% - 170px));width:calc(var(--stub-deco) * .82);aspect-ratio:200 / 250;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cdefs%3E%3ClinearGradient id='sl' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233a443e'/%3E%3Cstop offset='1' stop-color='%23232a26'/%3E%3C/linearGradient%3E%3ClinearGradient id='fw' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239a6633'/%3E%3Cstop offset='1' stop-color='%236f4220'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M100 6 L36 44 M100 6 L164 44' stroke='%23d8c9a8' stroke-width='2' fill='none'/%3E%3Ccircle cx='100' cy='6' r='4' fill='%233a2210'/%3E%3Crect x='6' y='38' width='188' height='198' rx='7' fill='url(%23fw)'/%3E%3Crect x='6' y='38' width='188' height='4' rx='2' fill='%23c9955a' fill-opacity='.7'/%3E%3Crect x='18' y='50' width='164' height='160' rx='2' fill='url(%23sl)'/%3E%3Crect x='18' y='50' width='164' height='160' rx='2' fill='none' stroke='%2314181a' stroke-opacity='.7' stroke-width='2'/%3E%3Cg fill='%23fff' fill-opacity='.07'%3E%3Cellipse cx='60' cy='80' rx='44' ry='18'/%3E%3Cellipse cx='140' cy='150' rx='46' ry='22'/%3E%3Cellipse cx='84' cy='186' rx='40' ry='10'/%3E%3C/g%3E%3Cg stroke='%23f6f1e3' stroke-opacity='.92' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'%3E%3Cpath d='M100 58 L100 202'/%3E%3Cpath d='M26 76 Q60 74 92 77'/%3E%3Cpath d='M108 76 Q140 78 174 75'/%3E%3Cpath d='M34 94 L52 94 L34 112 L52 112'/%3E%3Cpath d='M60 94 L78 94 L60 112 L78 112'/%3E%3Cpath d='M34 124 L52 124 L34 142 L52 142'/%3E%3Cpath d='M60 124 L78 124 L60 142 L78 142'/%3E%3Cpath d='M34 154 L52 154 L34 172 L52 172'/%3E%3Cpath d='M60 154 L78 154 L60 172 L78 172'/%3E%3Cpath d='M34 184 L52 184 L34 202 L52 202'/%3E%3Cpath d='M84 184 L84 202'/%3E%3Cpath d='M90 184 L90 202'/%3E%3Cpath d='M114 94 L132 94 L114 112 L132 112'/%3E%3Cpath d='M140 94 L158 94 L140 112 L158 112'/%3E%3Cpath d='M114 124 L132 124 L114 142 L132 142'/%3E%3Cpath d='M140 124 L158 124 L140 142 L158 142'/%3E%3Cpath d='M114 154 L132 154 L114 172 L132 172'/%3E%3Cpath d='M140 154 L140 172'/%3E%3Cpath d='M146 154 L146 172'/%3E%3Cpath d='M152 154 L152 172'/%3E%3C/g%3E%3Crect x='4' y='222' width='192' height='24' rx='4' fill='%237a4524'/%3E%3Crect x='4' y='222' width='192' height='4' rx='2' fill='%23b27d45'/%3E%3Crect x='30' y='215' width='24' height='7' rx='3' fill='%23f3ecd8'/%3E%3Crect x='148' y='213' width='28' height='9' rx='4' fill='%23d9b94a'/%3E%3C/svg%3E") center / 100% 100% no-repeat;filter:drop-shadow(0 10px 10px rgba(30,13,2,.45));transform:rotate(1.6deg);transform-origin:50% 0}}@media (max-width: 499px){.home .home-card:before,.lobby .home-card:before{top:-12px;right:-12px;bottom:-14px;left:-12px;border-radius:16px;transform:none}}.slate .round-pts{grid-column:1 / -1}.claim{justify-self:start;margin-top:4px;background:var(--accent);border-color:var(--accent);color:#fffaf0}.panel-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}.panel-actions .link{min-height:44px}.round-note{margin:0;font-size:1rem}.level{display:grid;gap:.3rem;font-weight:700}.level select{min-height:44px;font:inherit;font-size:1rem}.last-trick{width:min(420px,100%)}.last-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.last-list li{display:flex;align-items:center;gap:10px;font-size:1rem}.last-list .card{width:44px;flex:none}.bar-right button.link:disabled{opacity:.45}@media (max-height: 820px){.home,.lobby{padding-top:3.4rem;padding-bottom:.8rem}.home .home-card,.lobby .home-card{gap:.55rem;padding-top:1.1rem;padding-bottom:.9rem}.home-card h1{font-size:2.1rem}.home-suits{display:none}.home .tera.home-tera{--s: 84px !important;top:-46px}}@media (max-height: 680px){.home .home-card .tagline{display:none}.home .home-card button{min-height:44px;padding-block:.45rem}}.home-card .tutorial-entry{min-height:48px;background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.tutorial{width:100%;padding:20px max(12px,env(safe-area-inset-left)) 28px}.tutorial-sheet{width:min(640px,100%);margin:0 auto;padding:clamp(16px,4vw,28px);background:var(--card);border-radius:12px;box-shadow:0 14px 32px -16px #4b301861;overflow-wrap:anywhere}.tutorial-sheet>*,.tutorial-content>*{min-width:0}.tutorial button,.tutorial button.link{min-height:48px}.tutorial-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.tutorial-top p{margin:0;color:var(--ink-soft);font-size:.9rem}.tutorial-heading-row{display:flex;align-items:center;gap:12px;margin:8px 0 12px}.tutorial-heading-row .tera{flex:none}.tutorial h1{margin:0;font-size:clamp(1.4rem,5vw,2rem);line-height:1.2;letter-spacing:-.02em}.tutorial h1:focus{outline:none}.tutorial-content{line-height:1.5}.tutorial-content p{margin:12px 0}.tutorial-seats{display:grid;grid-template:repeat(3,auto) / minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:8px;margin:20px auto;max-width:440px;text-align:center;font-size:.9rem}.tutorial-partner{grid-area:1 / 2}.tutorial-you{grid-area:3 / 2}.tutorial-partner,.tutorial-you{background:#f3d9a4;padding:8px;border-radius:8px;font-weight:700}.tutorial-opponent-a{grid-area:2 / 1}.tutorial-opponent-b{grid-area:2 / 3}.tutorial-opponent-a,.tutorial-opponent-b{padding:8px 2px;background:#dde6da;border-radius:8px}.tutorial-team{grid-area:2 / 2;color:var(--accent);font-weight:700;padding:12px 4px}.tutorial-suits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;margin:24px 0}.tutorial figure{margin:0;display:grid;justify-items:center;gap:8px;text-align:center}.tutorial figcaption{font-size:.9rem}.tutorial-mode{padding:12px 0;border-bottom:1px solid var(--line)}.tutorial-mode h2{font-size:1.1rem;margin:0}.tutorial-mode p{margin:6px 0 8px}.tutorial-ranks{display:flex;gap:12px;justify-content:center;margin-top:12px}.tutorial-ranks figure{width:min(28%,92px)}.tutorial-card-art{display:block;width:70px;max-width:100%;aspect-ratio:70 / 105;filter:drop-shadow(0 2px 2px rgba(31,35,40,.2))}.tutorial-lead{margin:16px 0!important}.tutorial-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tutorial-choices button{display:grid;justify-items:center;align-content:start;gap:12px;padding:12px 8px;font-size:.9rem;line-height:1.4}.tutorial-choices .tutorial-card-art{width:80px}.tutorial-feedback{padding:12px;background:var(--accent-soft);border-left:3px solid var(--accent);border-radius:4px}.tutorial-feedback:focus{outline:none}.tutorial-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;margin-top:24px}.tutorial-navigation button{padding-inline:10px}.tutorial-links{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:12px;font-size:.875rem}@media (min-width: 600px){.tutorial{padding-top:36px}.tutorial-suits{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-reduced-motion: reduce){.tutorial *,.tutorial *:before,.tutorial *:after{animation:none!important;transition:none!important}}
