@font-face{font-family:Wald;src:url('assets/wald-serif.otf') format('opentype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--bone:#e9d7ad;--muted:#aea385;--gold:#c5a56a;--gold-bright:#e9c781;--ink:#151d17;--line:#ac916548;--red:#8e3026;--serif:Wald,Georgia,'Times New Roman',serif;--ui:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{background:#111811;color:var(--bone);font-family:var(--ui);font-size:14px;-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:2px solid var(--gold-bright);outline-offset:5px}
button{-webkit-appearance:none;appearance:none}
[hidden]{display:none!important}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#table{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:0;overflow:hidden;background-image:linear-gradient(90deg,#0e16182b,#121c1133),url('assets/woodland-table.png');background-position:center;background-size:cover}
#table:before{content:'';position:absolute;inset:12px;border:1px solid #b5976245;pointer-events:none;z-index:8;clip-path:polygon(0 0,27% 0,27% 1px,73% 1px,73% 0,100% 0,100% 100%,73% 100%,73% calc(100% - 1px),27% calc(100% - 1px),27% 100%,0 100%)}
.table-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 30%,#040b0880 100%);pointer-events:none;z-index:-1}
.table-candles {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: max(100%, 150dvh);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.table-candles canvas {
  position: absolute;
  display: block;
}
.candle-reflection {
  will-change: opacity;
}
.topbar{height:98px;margin:0 auto;padding:0 48px;width:100%;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:10;gap:24px}
.wordmark{display:flex;align-items:center;gap:12px;font:15px var(--serif);letter-spacing:3px;white-space:nowrap}
.wordmark small{display:block;color:var(--gold);font:8px var(--ui);letter-spacing:6.4px;margin-top:7px}
.brand-sigil{width:34px;height:34px;color:var(--gold);stroke-width:1}
.header-motto{font-size:8px;letter-spacing:3px;color:#b9ab8f;display:flex;gap:16px;align-items:center;margin-left:-65px}
.header-motto>span{width:32px;height:1px;background:var(--line)}
.topbar-tools{display:flex;gap:10px}
.icon-button{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#11191294;border:1px solid var(--line);border-radius:3px;padding:7px;color:var(--gold);transition:background .15s,color .15s}
.icon-button:hover:not(:disabled){background:#413924;color:#f9dfaa;border-color:var(--gold)}
.icon-button:disabled{opacity:.38}
.screen{position:absolute;inset:98px 0 0}
#start{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr 60px;align-items:center;max-width:1250px;margin:auto;padding:0 40px;gap:0 70px}
.home-art{position:relative;min-width:0;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:690px}
.engraved-orbit{position:absolute;inset:10% -8%;border:1px solid #b2995d20;border-radius:50%;aspect-ratio:1;pointer-events:none;display:grid;place-items:center}
.engraved-orbit:before{content:'';position:absolute;inset:15px;border:1px dashed #c5a66b26;border-radius:50%}
.engraved-orbit .icon{width:90%;height:90%;stroke-width:.15;color:#c5a66b1a}
.art-kicker{font-size:8px;letter-spacing:3px;text-align:center;color:var(--muted);position:absolute;top:8%;white-space:nowrap}
.hero-cards{position:relative;height:380px;width:100%;margin-top:20px}
.hero-cards .card{position:absolute;top:50%;left:50%;width:204px;height:284px;transform-origin:50% 80%;box-shadow:0 18px 28px #0009,0 0 0 1px #332619}
.hero-cards .card:nth-child(1){transform:translate(-93%,-47%) rotate(-17deg)}
.hero-cards .card:nth-child(2){transform:translate(0%,-44%) rotate(17deg);filter:brightness(.86)}
.hero-cards .card:nth-child(3){width:224px;height:311px;transform:translate(-49%,-54%) rotate(-3deg)}
.wax-seal{position:absolute;width:90px;height:90px;left:50%;top:calc(50% + 116px);transform:translateX(-50%) rotate(-8deg);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:47% 51% 46% 53%;border:4px double #b56348;background:radial-gradient(circle at 36% 26%,#ad4c36,#72251e 65%,#491911);color:#e9b797;text-shadow:0 2px #401b13;box-shadow:0 5px 8px #000a,inset 0 0 0 6px #641f1999,inset 0 0 9px #e1804a77;z-index:3}
.wax-seal:before{content:'';position:absolute;inset:10px;border:1px solid #d2885d88;border-radius:50%}
.wax-seal>span{font:35px var(--serif);line-height:1}
.wax-seal small{font-size:7px;letter-spacing:2px;margin-top:4px}
.art-caption{display:flex;gap:28px;position:absolute;bottom:4%;font:20px Georgia,serif;color:#a48b5f}
.art-caption span:nth-child(even){color:#ae5a43}
.home-content{position:relative;width:100%;max-width:430px;padding:15px 0 30px}
.home-eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:3px;color:var(--gold);margin-bottom:23px}
.tiny-star{font-size:23px;line-height:10px}
h1{font:clamp(48px,5vw,70px)/1.05 var(--serif);letter-spacing:-2px;margin:0;color:#f2e3c0;text-shadow:0 3px 25px #0008}
h1>span{display:block;font:italic 26px/1.4 var(--serif);letter-spacing:.1px;color:#c4ac7c;margin-top:18px}
.home-intro{font:14px/1.8 var(--ui);color:var(--muted);margin:20px 0 29px}
.setup>label{display:block;font-size:8px;letter-spacing:2.5px;color:var(--gold);margin-bottom:10px}
.opponent-choice{display:flex;align-items:center;gap:12px;padding:13px 12px;background:#121b16c4;border:1px solid #a8945d55;border-top-color:#bba06d88;box-shadow:inset 0 1px 8px #0005}
.portrait{background-image:url('assets/woodcuts.png');background-size:200% 200%;border:1px solid #9f8752;box-shadow:inset 0 0 15px #1d180966}
.fox{background-position:left bottom}
.opponent-seal{width:45px;height:48px;flex-shrink:0;clip-path:polygon(10% 0,90% 0,100% 10%,100% 90%,90% 100%,10% 100%,0 90%,0 10%)}
.opponent-copy strong{display:block;font:21px var(--serif);letter-spacing:.5px}
.opponent-copy>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}
.stepper{margin-left:auto;display:flex;gap:6px;align-items:center}
.stepper button{display:grid;place-items:center;width:28px;height:34px;border:0;background:transparent;color:var(--gold);padding:5px}
.stepper button:hover{background:#9f864b22;color:var(--bone)}
.stepper .icon{width:16px;height:16px}
#difficulty{font-size:10px;font-weight:bold;letter-spacing:1.3px;min-width:59px;text-align:center}
.gold{border:1px solid #d3b478;border-bottom:3px solid #67502b;color:#1a2017;background:linear-gradient(110deg,#c7a86e,#e4ca91 50%,#c3a068);padding:14px 26px;font:700 12px var(--ui);letter-spacing:1.5px;box-shadow:inset 0 0 0 3px #5d482b40,0 5px 20px #0004;text-shadow:0 1px #ffeabb66;border-radius:2px;transition:filter .18s,transform .18s}
.gold:hover{filter:brightness(1.1);transform:translateY(-1px)}
.gold:active{transform:translateY(1px)}
.big{display:flex;align-items:center;justify-content:center;gap:17px;width:100%;min-height:61px;margin-top:15px;position:relative}
.big .icon{width:26px;height:26px;stroke-width:1}
.button-arrow{position:absolute;right:23px;font-size:23px;font-weight:400}
.start-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px}
.start-note{font-size:10px;color:var(--muted);margin:0;letter-spacing:.4px}
.start-note>span{margin:0 5px;color:var(--gold)}
.language-switch{display:flex;align-items:center;gap:6px;font-size:9px;color:#7c775f}
.language-switch button{background:none;border:0;font-size:10px;letter-spacing:1px;color:#a79c81;padding:7px 4px}
.language-switch button[aria-pressed=true]{color:#f0d19a;text-decoration:underline;text-underline-offset:5px}
.home-footer{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:28px;align-self:start;padding-top:12px;border-top:1px solid #aa8f553d;color:#bfa77e;font-size:9px;letter-spacing:2.2px}
.home-footer .icon{width:15px;height:15px;stroke-width:1}
.card{position:relative;display:block;border:0;padding:0;background:#d2b783;border-radius:6px;aspect-ratio:226/314;flex-shrink:0;box-shadow:0 4px 7px #0008,0 1px 0 1px #382d1b;user-select:none;container-type:inline-size;overflow:hidden;text-align:left;line-height:1}
.card-face{display:block;position:absolute;inset:0;color:#242a25;background:radial-gradient(ellipse at center,#e4cfa2 20%,#cbb17c 100%);box-shadow:inset 0 0 12px #775a2c5c;border:1px solid #e2cda4;border-radius:6px;overflow:hidden}
.card-face:before{content:'';position:absolute;inset:4.1%;border:1px solid #493d2a77;border-radius:2px;z-index:2;pointer-events:none}
.card-face[data-suit=H],.card-face[data-suit=D]{color:#912c24}
.card-index{position:absolute;top:6%;left:8%;z-index:3;display:flex;flex-direction:column;align-items:center;line-height:.96;font-family:Georgia,serif;text-shadow:0 1px #f5dfb380}
.card-index b{font-size:25cqw;font-weight:bold;letter-spacing:-1px}
.card-index i{font-size:24cqw;font-style:normal;line-height:1.05}
.court-art{position:absolute;left:21%;top:12%;width:76%;aspect-ratio:1;overflow:hidden;mix-blend-mode:multiply;filter:contrast(1.12) saturate(.7);transform:translateY(11%)}
.court-art img{position:absolute;width:200%!important;height:200%!important;max-width:none;object-fit:fill;display:block;pointer-events:none}
.court-K img{left:0;top:0}
.court-Q img{left:-100%;top:0}
.court-J img{left:0;top:-100%}
.court-A img{left:-100%;top:-100%}
.card-footer{position:absolute;bottom:7%;left:9%;right:8%;display:flex;align-items:flex-end;justify-content:space-between}
.card-points{font:18cqw/1 var(--serif);color:#675431;border-top:1px solid #88704a66;padding-top:4%;display:flex;gap:2cqw;align-items:center}
.card-points small{font-size:10cqw}
.card-suit{font:27cqw/1 Georgia,serif}
.card-ornament{position:absolute;right:9%;top:6%;font-size:14cqw;color:#8c7045}
.pip-grid{position:absolute;inset:10% 15% 24% 33%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,1fr);gap:1%;align-items:center;justify-items:center}
.pip-grid i{font:19cqw/.9 Georgia,serif;font-style:normal}
.pip-image{position:absolute;left:8%;bottom:31%;width:15%;height:auto}
.card.back{border:3px solid #ae925e;background:#242f25;box-shadow:0 3px 5px #0009,0 0 0 1px #292a18;overflow:hidden}
.card-back{position:absolute;inset:3px;border:1px solid #aa8b4e99;background:repeating-linear-gradient(45deg,transparent 0 4px,#b69c6020 4px 5px),repeating-linear-gradient(-45deg,transparent 0 4px,#b69c601a 4px 5px),#203025;box-shadow:inset 0 0 20px #09150f;display:grid;place-items:center}
.card-back:before{content:'';position:absolute;inset:6%;border:1px solid #b6a06666;clip-path:polygon(0 10%,10% 0,90% 0,100% 10%,100% 90%,90% 100%,10% 100%,0 90%)}
.back-sigil{position:absolute;width:68%;height:77%;fill:none;stroke:#d2b573;stroke-width:1.1;filter:drop-shadow(0 1px #000)}
.back-top,.back-bottom{position:absolute;top:4%;font:11cqw Georgia,serif;color:#b4a06b}
.back-bottom{top:auto;bottom:4%}
#game{--hc:clamp(86px,15.5dvh,146px);--ac:clamp(58px,10.6dvh,96px);--tc:clamp(79px,12.8dvh,118px);--sc:clamp(60px,9.4dvh,86px);display:grid;grid-template-rows:minmax(110px,.94fr) minmax(148px,1.12fr) 40px minmax(174px,1.23fr) 88px;max-width:1220px;margin:0 auto;padding:0 36px 20px;gap:0}
.opponent-zone{position:relative;display:flex;justify-content:center;align-items:center;min-height:0}
.opponent{position:absolute;left:16px;top:50%;transform:translateY(-50%);display:flex;gap:12px;align-items:center;min-width:150px}
.avatar{width:54px;height:64px;border-radius:3px}
.opponent strong{display:block;font:25px var(--serif);line-height:1.1;color:#e0c696;margin-top:7px}
.opponent .mini-label{font-size:7px;letter-spacing:1.8px;color:#ae9567}
#ai-status{display:block;font-size:10px;color:#b5ac91;margin-top:5px}
.round-plaque{position:absolute;right:30px;display:grid;grid-template-columns:25px auto;grid-template-rows:auto auto;gap:4px 13px;align-items:center;color:#c4ae7b}
.round-plaque .icon{grid-row:1/-1;width:22px;height:22px;stroke-width:1}
.round-plaque>span{font-size:8px;letter-spacing:2px}
.round-plaque b{font:28px var(--serif);line-height:1}
.hand{display:flex;justify-content:center;align-items:center;position:relative;min-height:0}
.ai-hand{padding:15px 0 7px}
.ai-hand .card{width:var(--ac);height:calc(var(--ac)*314/226);margin-left:-19px;transform:rotate(var(--r));transform-origin:50% 90%}
.ai-hand .card:first-child{margin-left:0}
.play-zone{position:relative;display:grid;grid-template-columns:1fr 1.55fr 1fr;align-items:center;justify-items:center;width:100%;max-width:1040px;margin:0 auto;min-height:0}
.stock-area{position:relative;width:calc(var(--sc)*2.25);display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;padding-top:7px}
.zone-caption,.trump-caption{font-size:8px;letter-spacing:2.5px;color:#ba9f6b}
#stock-cards{position:relative;width:100%;height:calc(var(--sc)*1.39 + 9px);flex-shrink:0}
#stock-cards .card{position:absolute;top:0;left:0;width:var(--sc);height:calc(var(--sc)*314/226);box-shadow:2px 2px #ab8d59,4px 4px #293125,5px 5px #a48c5f,7px 7px 8px #0009;z-index:1}
#stock-cards .card.turnup{left:calc(var(--sc)*.9);top:calc(var(--sc)*.15);transform:rotate(90deg);z-index:0;box-shadow:0 4px 8px #0008}
#stock-label{font-size:10px;color:#b6aa89;text-align:center;line-height:1.3;min-height:15px;white-space:normal}
.duel-area{position:relative;width:calc(var(--tc)*2 + 29px);height:calc(var(--tc)*1.39 + 12px)}
.trick-slots{position:absolute;inset:0;display:flex;gap:13px;align-items:center;justify-content:center;pointer-events:none}
.trick-slots>span{width:var(--tc);height:calc(var(--tc)*1.39);border:1px solid #b89a6047;outline:1px solid #b89a6017;outline-offset:4px;border-radius:5px;display:grid;place-items:center;transform:rotate(-4deg);background:#151c1617}
.trick-slots>span+span{transform:rotate(4deg)}
.trick-slots .icon{width:37px;height:37px;color:#b2975e44;stroke-width:.75}
.trick{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,var(--tc));align-items:center;justify-content:center;gap:13px}
.trick .card{width:var(--tc);height:calc(var(--tc)*314/226);transform:rotate(-4deg);z-index:1}
.trick .card+.card{transform:rotate(4deg)}
.trump-info{width:145px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:5px;position:relative;padding:8px 10px;border-top:1px solid #ad925147;border-bottom:1px solid #ad925147}
.trump-info:before,.trump-info:after{content:'◆';position:absolute;font-size:5px;color:#a48955;top:-4px;left:-2px}
.trump-info:after{left:auto;right:-2px}
.trump-info>div{display:flex;align-items:center;flex-direction:column;gap:6px}
.trump-info>div>span{font-size:8px;letter-spacing:2px;color:#c9bb94}
#trump{font:53px/1 Georgia,serif;color:#ddc896;text-shadow:0 1px 12px #dabe8044}
.trump-info[data-suit=H] #trump,.trump-info[data-suit=D] #trump{color:#d58e68;text-shadow:0 1px 15px #ad2f2933}
#trump-name{font:21px var(--serif);color:#e8d2a2;line-height:1}
.trump-rule{font:16px/1 var(--serif);color:#9c865b}
.turn-line{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;max-width:560px;width:100%;margin:0 auto}
.turn-line:before,.turn-line:after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#ad92514a);min-width:15px}
.turn-line:after{transform:rotate(180deg)}
.turn-gem{width:6px;height:6px;background:#8e886c;transform:rotate(45deg);flex-shrink:0}
#game[data-turn=you] .turn-gem{background:#e3bb70;box-shadow:0 0 12px #dfba7566}
#message{font:14px/1.3 var(--serif);text-align:center;color:#dacba8;max-width:88%;padding:4px 0}
#game[data-turn=you] #message{color:#f0d49b}
.your-hand-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;position:relative;padding-bottom:13px}
.hand-caption{font-size:7px;letter-spacing:2.3px;color:#c4ab7c;margin:4px 0 13px;z-index:1}
.my-hand{height:calc(var(--hc)*1.39);align-items:center;padding-top:0;isolation:isolate}
.my-hand .card{width:var(--hc);height:calc(var(--hc)*314/226);margin-left:-16px;transform:translateY(var(--y)) rotate(var(--r));transform-origin:50% 85%;outline:1px solid #cfb9805c;outline-offset:0;transition:transform .2s,filter .2s,box-shadow .2s!important}
.my-hand .card:first-child{margin-left:0}
#game[data-turn=you] .my-hand .card:not(:disabled){box-shadow:0 4px 9px #0008,0 0 0 1px #dfba75,0 0 16px #cca15c18}
#game .my-hand .card:hover:not(:disabled),#game .my-hand .card:focus-visible{transform:translateY(-19px) rotate(0deg);z-index:6;filter:brightness(1.08);box-shadow:0 12px 18px #0008,0 0 0 2px #ffe0a0}
#game .my-hand .card.eligible{box-shadow:0 0 0 3px #ffe1a0,0 0 25px #ecc98555}
#game .my-hand .card.unplayable{filter:brightness(.62) saturate(.5)}
.game-bar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #b39a624f;padding:11px 0 0;margin:9px 0 0;min-height:0}
.game-bar:before{content:'';position:absolute;inset:0 -18px -20px;z-index:-1;background:linear-gradient(#0e1814de,#0d1613f5);border-top:1px solid #d4b97d12}
.bar-summary{display:flex;align-items:center;gap:20px;min-width:0;flex:1}
.player-panel{display:flex;align-items:center;gap:18px;min-width:145px}
.player-stats strong{display:block;color:#d9bb7d;font-size:10px;letter-spacing:2px}
#my-tricks{font-size:10px;color:#aba288;display:block;margin-top:6px;white-space:nowrap}
.eyes{min-width:110px}
.eyes>div:first-child{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.eyes b{font:34px/1 var(--serif);color:#e4d0a6}
.eyes span{font-size:8px;letter-spacing:1px;color:#a39675}
.score-track{height:3px;width:100%;background:#9d89502b;margin-top:7px}
.score-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#8c713b,#eac880);transition:width .55s ease;box-shadow:0 0 5px #d2ae5b22}
.near-win .eyes b{color:#f7d589;text-shadow:0 0 18px #d5a34944}
.scoreboard{display:flex;align-items:center;position:relative;gap:11px;padding:16px 16px 3px;border-left:1px solid var(--line);margin-left:auto}
.score-title{position:absolute;top:0;left:16px;font-size:7px;letter-spacing:1.3px;color:#a29068}
#round{display:none}
.scoreboard>div:not(.score-title){display:flex;align-items:baseline;gap:6px}
.scoreboard>div>span{font-size:9px;color:#c4b38d}
.scoreboard b{font:27px/1 var(--serif);color:#dfc99c}
.score-divider{color:#7b735d}
.actions{display:flex;gap:8px;align-items:center}
.small-button{background:#202a20b8;border:1px solid #ad915556;box-shadow:inset 0 0 0 2px #080f0a4d;padding:10px 17px;color:#d5bd8e;border-radius:2px;font-size:12px;transition:background .15s,border .15s;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.small-button:hover:not(:disabled){background:#53462966;border-color:#d3b672}
.small-button:disabled{opacity:.43}
.small-button.active{color:#f6daa3;border-color:#edc87f;background:#725a3066}
.actions .small-button{min-width:109px;min-height:55px;text-align:left}
.actions .small-button>span{display:flex;flex-direction:column;gap:4px}
.actions .small-button b{font-size:11px;letter-spacing:.2px;font-weight:normal;color:#ebd6a7}
.actions .small-button>span>span{font-size:9px;color:#b9a682}
.actions .icon{width:21px;height:21px;stroke-width:1.4}
dialog{width:min(92vw,500px);padding:30px;color:var(--bone);border:1px solid #b59a62;background:radial-gradient(ellipse at top,#303728,#141f19 75%);border-radius:3px;box-shadow:0 20px 100px #000b,inset 0 0 0 5px #a78c4d15;max-height:88dvh;scrollbar-color:#82734d #141e17}
dialog::backdrop{background:#030b08c7;backdrop-filter:blur(6px)}
.modal-sigil{display:flex;justify-content:center;margin:0 0 16px;color:#b99c61}
.modal-sigil .icon{width:34px;height:34px;stroke-width:.8}
dialog h2{font:30px/1.2 var(--serif);text-align:center;margin:0 0 20px;color:#ecd6a7;font-weight:400}
dialog p,dialog li{font-size:13px;line-height:1.75;color:#c3b99e}
dialog li{padding-bottom:8px}
dialog ul{padding-left:17px}
dialog .gold{margin-top:12px;padding:14px 22px}
dialog .small-button{margin-left:12px;padding:13px 20px}
dialog .result{font:57px var(--serif);text-align:center;color:#f0d198;letter-spacing:5px;margin:18px 0}
dialog .result+p{text-align:center;font-size:10px;letter-spacing:2px;text-transform:uppercase}
.rules-link{color:#dbc18a;text-underline-offset:3px}
.last-cards{display:flex;justify-content:center;gap:20px;margin:20px 0}
.last-cards .card{width:120px;height:calc(120px*314/226)}
@media(min-width:1500px){#start{max-width:1340px;gap:0 110px}.home-art{max-height:700px}.hero-cards .card{width:228px;height:317px}.hero-cards .card:nth-child(3){width:250px;height:347px}.home-content{max-width:465px}h1{font-size:77px}.home-intro{font-size:15px}.wax-seal{top:calc(50% + 133px)}#game{max-width:1320px}}
@media(max-height:780px) and (min-width:801px){.topbar{height:78px}.screen{top:78px}#start{grid-template-rows:1fr 45px}.home-content{padding:0 0 12px}.home-eyebrow{margin-bottom:15px}h1{font-size:56px}h1>span{font-size:22px;margin-top:10px}.home-intro{font-size:12px;margin:14px 0 20px}.hero-cards{height:320px}.hero-cards .card{width:174px;height:242px}.hero-cards .card:nth-child(3){width:194px;height:270px}.wax-seal{width:76px;height:76px;top:calc(50% + 100px)}.wax-seal>span{font-size:30px}.home-footer{padding-top:8px}.big{min-height:54px}.art-kicker{top:4%}#game{grid-template-rows:minmax(100px,.9fr) minmax(135px,1.1fr) 32px minmax(155px,1.2fr) 78px;padding-bottom:14px}.hand-caption{margin:0 0 8px}.your-hand-zone{padding-bottom:11px}.opponent{left:0}.round-plaque{right:16px}.bar-summary{gap:14px}.game-bar{gap:16px}.actions .small-button{min-width:98px;padding:9px 12px}.trump-caption{font-size:7px}}
@media(max-width:1050px) and (min-width:801px){#start{gap:0 35px;padding:0 38px}.hero-cards .card{width:165px;height:229px}.hero-cards .card:nth-child(3){width:185px;height:257px}.art-kicker{font-size:7px;letter-spacing:2px}.header-motto{font-size:7px;letter-spacing:2px}.topbar{padding:0 32px}#game{padding-left:24px;padding-right:24px}.avatar{width:40px;height:49px}.opponent{gap:8px;left:0}.opponent strong{font-size:21px}.opponent .mini-label{display:none}.round-plaque{right:8px;gap:4px 8px}.bar-summary{gap:12px}.player-panel{gap:11px;min-width:125px}.eyes{min-width:93px}.scoreboard{padding-left:11px;gap:6px}.score-title{left:11px}.actions .small-button{min-width:89px;padding:9px 10px;gap:7px}.game-bar{gap:12px}.actions .icon{width:18px}.trump-info{width:116px}}
@media(max-width:800px){.topbar{height:74px;padding:0 25px;gap:12px}.wordmark{font-size:12px;letter-spacing:2.3px;gap:9px}.wordmark small{font-size:7px;letter-spacing:4.8px;margin-top:4px}.brand-sigil{width:29px;height:29px}.header-motto{display:none}.topbar-tools{gap:8px}.icon-button{width:34px;height:34px}.icon-button .icon{width:18px;height:18px}.screen{top:74px}#start{grid-template-columns:1fr;grid-template-rows:minmax(185px,1fr) auto 40px;gap:0;padding:0 30px;max-width:550px}.home-art{height:100%;min-height:0;max-height:330px}.engraved-orbit{inset:0 10%;margin:auto;height:100%;width:auto}.art-kicker{top:0;font-size:7px;letter-spacing:2px}.hero-cards{height:100%;margin:15px 0 0;min-height:0}.hero-cards .card{width:clamp(96px,17vh,155px);height:auto;aspect-ratio:226/314}.hero-cards .card:nth-child(3){width:clamp(109px,18.8vh,173px);height:auto}.wax-seal{width:58px;height:58px;top:auto;bottom:4px;border-width:3px}.wax-seal:before{inset:6px}.wax-seal>span{font-size:25px}.wax-seal small{font-size:5px;letter-spacing:1.5px;margin-top:2px}.art-caption{display:none}.home-content{max-width:none;padding:18px 0 14px}.home-eyebrow{font-size:8px;letter-spacing:2px;justify-content:center;margin-bottom:12px}h1{font-size:51px;text-align:center;letter-spacing:-1.5px}h1>span{font-size:19px;line-height:1.3;margin-top:9px}h1 br{display:none}h1 br:after{content:' '}.home-intro{text-align:center;font-size:11px;line-height:1.55;margin:12px 0 19px}.setup>label{font-size:7px;margin-bottom:8px}.opponent-choice{padding:9px 10px;gap:10px}.opponent-seal{width:38px;height:43px}.opponent-copy strong{font-size:19px}.opponent-copy>span{font-size:9px}.big{min-height:53px;margin-top:12px;font-size:11px;letter-spacing:2px}.big .icon{width:23px;height:23px}.start-bottom{margin-top:8px}.home-footer{gap:18px;font-size:7px;letter-spacing:1.3px;padding-top:12px}.home-footer .icon{width:11px;height:11px}#table:before{inset:9px}#game{--hc:clamp(82px,17.6vw,117px);--ac:clamp(55px,11.8vw,82px);--tc:clamp(76px,15.8vw,108px);--sc:clamp(48px,10vw,70px);padding:0 22px max(17px,env(safe-area-inset-bottom));grid-template-rows:minmax(130px,.95fr) minmax(160px,1.1fr) 38px minmax(160px,1.1fr) 125px}.opponent-zone{flex-direction:column;gap:7px;padding:0 0 7px}.opponent{position:static;transform:none;gap:6px;min-width:0}.opponent>div:last-child{display:flex;align-items:center;gap:8px}.avatar{width:25px;height:28px}.opponent strong{font-size:16px;margin:0}.opponent .mini-label{display:none}#ai-status{font-size:9px;margin:0}.ai-hand{padding:3px 0 0}.ai-hand .card{margin-left:-16px}.round-plaque{right:2px;top:0;grid-template-columns:1fr;text-align:center;gap:3px}.round-plaque .icon{display:none}.round-plaque>span{font-size:6px;letter-spacing:1.4px}.round-plaque b{font-size:19px}.play-zone{grid-template-columns:1fr 1.6fr .85fr;gap:5px}.stock-area{gap:9px;padding:0}.zone-caption,.trump-caption{font-size:6px;letter-spacing:1.1px}#stock-label{font-size:8px;max-width:100px}.trump-info{width:75px;padding:7px 2px;gap:5px}.trump-info>div{gap:5px}.trump-info>div>span{font-size:7px;letter-spacing:1.4px}#trump{font-size:37px}#trump-name{font-size:17px}.trump-caption{display:none}.trump-rule{font-size:13px}.duel-area{width:calc(var(--tc)*2 + 13px)}.trick,.trick-slots{gap:6px}.trick-slots .icon{width:28px;height:28px}.turn-line{gap:7px}#message{font-size:13px;max-width:88%}.turn-gem{width:5px;height:5px}.my-hand .card{margin-left:-13px;--r:0deg!important;--y:0px!important;transform:none}.hand-caption{margin:3px 0 10px;font-size:6px}.your-hand-zone{padding:0 0 10px}.game-bar{flex-direction:column;align-items:stretch;justify-content:center;gap:11px;padding-top:9px;margin-top:4px}.game-bar:before{inset:0 -22px -20px}.bar-summary{flex:none;justify-content:space-between;gap:10px}.player-panel{min-width:0;gap:12px}.eyes{min-width:95px}.eyes b{font-size:29px}.eyes span{font-size:7px;letter-spacing:.5px}.player-stats strong{font-size:9px}#my-tricks{font-size:8px}.scoreboard{margin:0;padding:13px 0 0 12px;gap:6px}.score-title{font-size:6px;left:12px}.scoreboard b{font-size:23px}.scoreboard>div>span{font-size:8px}.score-track{margin-top:5px}.actions{gap:8px}.actions .small-button{flex:1;min-width:0;min-height:42px;padding:7px;gap:8px}.actions .small-button>span{gap:2px}.actions .small-button b{font-size:10px}.actions .small-button>span>span{font-size:8px}.actions .icon{width:18px;height:18px}.home,.last{width:30px;height:32px;padding:6px;flex-shrink:0}}
@media(max-width:520px){.topbar{padding:0 21px;height:66px}.screen{top:66px}#start{padding:0 28px;grid-template-rows:minmax(175px,1fr) auto 35px}.home-content{padding-top:15px}h1{font-size:46px}h1>span{font-size:18px}.home-intro{font-size:10px;margin-bottom:17px}.art-kicker{font-size:6px;letter-spacing:1.7px}.hero-cards .card{width:clamp(100px,15.7dvh,142px)}.hero-cards .card:nth-child(3){width:clamp(112px,17.3dvh,156px)}.wax-seal{bottom:0}.home-footer{gap:14px;padding-top:9px;font-size:6px}#game{--hc:clamp(74px,22.6vw,112px);--ac:clamp(51px,14.8vw,73px);--tc:clamp(65px,18vw,90px);--sc:clamp(41px,10.7vw,53px);padding-left:15px;padding-right:15px;grid-template-rows:minmax(117px,.95fr) minmax(128px,1.07fr) 40px minmax(146px,1.07fr) 124px}.opponent-zone{gap:10px}.ai-hand .card{margin-left:-11px}.play-zone{grid-template-columns:1fr 1.65fr .75fr;gap:4px}.stock-area{width:calc(var(--sc)*1.95)}#stock-cards .card.turnup{left:calc(var(--sc)*.77)}.trump-info{width:63px}.trump-info>div>span{font-size:6px;letter-spacing:1px}#trump-name{font-size:16px}#trump{font-size:33px}.trump-rule{display:none}.trick-slots>span{outline-offset:2px}.zone-caption{font-size:6px;letter-spacing:.8px}#stock-label{font-size:7px;max-width:77px;min-height:18px;line-height:1.4}.my-hand .card{margin-left:calc(var(--hc)*-.24)}.your-hand-zone{padding-bottom:8px}.hand-caption{margin-bottom:13px}.bar-summary{gap:7px}.player-panel{gap:9px}.eyes{min-width:81px}.eyes b{font-size:28px}.eyes span{font-size:6px}.scoreboard{gap:5px;padding-left:9px}.score-title{left:9px;font-size:5px}.scoreboard b{font-size:22px}.scoreboard>div>span{font-size:7px}.scoreboard>div:not(.score-title){gap:4px}.actions .small-button{gap:6px}.game-bar:before{left:-15px;right:-15px}dialog{padding:25px 22px}dialog h2{font-size:27px}dialog .small-button{margin-left:9px;padding:13px 15px}}
@media(max-width:800px) and (max-height:720px) and (min-height:501px){#start{grid-template-rows:minmax(130px,1fr) auto 28px}.art-kicker{display:none}.hero-cards .card{width:95px}.hero-cards .card:nth-child(3){width:108px}.hero-cards{margin-top:0}.wax-seal{width:49px;height:49px;bottom:-3px}.wax-seal>span{font-size:22px}.wax-seal small{font-size:4px}.home-content{padding:9px 0}.home-eyebrow{font-size:7px;margin-bottom:8px}h1{font-size:39px}h1>span{font-size:16px;margin-top:6px}.home-intro{font-size:10px;line-height:1.4;margin:9px 0 13px}.setup>label{margin-bottom:6px}.opponent-choice{padding:7px 9px}.opponent-seal{width:32px;height:34px}.big{min-height:45px;margin-top:9px}.start-bottom{margin-top:4px}.home-footer{padding-top:6px}#game{--hc:clamp(76px,22vw,105px);--ac:50px;--tc:clamp(61px,15.8vw,79px);--sc:40px;grid-template-rows:minmax(101px,1fr) minmax(108px,1fr) 32px minmax(145px,1fr) 115px;padding-bottom:12px}.opponent-zone{gap:7px;padding-bottom:0}.round-plaque{top:4px}.hand-caption{margin-bottom:9px}.game-bar{gap:8px}.actions .small-button{min-height:37px}.trump-info{gap:4px;padding:5px 2px}#trump{font-size:29px}.zone-caption{display:none}.stock-area{gap:6px}#message{font-size:12px}}
@media(max-height:610px) and (min-width:801px){.topbar{height:58px}.screen{top:58px}#start{grid-template-rows:1fr 28px;gap:0 60px;max-width:1050px}.home-content{padding:0 0 8px}.home-eyebrow{font-size:7px;margin-bottom:10px}h1{font-size:43px}h1>span{font-size:17px;margin-top:8px}h1 br{display:none}.home-intro{font-size:10px;margin:10px 0 14px}.setup>label{font-size:7px;margin-bottom:6px}.opponent-choice{padding:7px 10px}.opponent-seal{width:32px;height:35px}.opponent-copy strong{font-size:18px}.opponent-copy>span{font-size:9px}.big{min-height:43px;margin-top:10px}.start-bottom{margin-top:7px}.home-footer{padding-top:7px;font-size:7px}.hero-cards .card{width:142px;height:198px}.hero-cards .card:nth-child(3){width:159px;height:221px}.wax-seal{width:65px;height:65px;top:calc(50% + 76px)}.art-kicker{font-size:6px;top:3%}.art-caption{bottom:0}#game{--hc:80px;--ac:48px;--tc:67px;--sc:50px;grid-template-rows:minmax(73px,1fr) minmax(101px,1fr) 28px minmax(125px,1fr) 62px;padding-bottom:8px}.opponent strong{font-size:19px}.avatar{width:34px;height:42px}.hand-caption{font-size:6px;margin:0 0 7px}.round-plaque b{font-size:23px}.trump-info{width:108px;gap:2px;padding:5px}#trump{font-size:30px}#trump-name{font-size:17px}.trump-caption,.trump-rule{display:none}#stock-label{font-size:8px}.zone-caption{font-size:6px}.stock-area{gap:5px}.eyes b{font-size:28px}.actions .small-button{min-height:42px}.your-hand-zone{padding-bottom:9px}.game-bar{padding-top:7px;margin-top:3px}#message{font-size:12px}}
@media(max-height:500px) and (orientation:landscape){.topbar{height:48px;padding:0 22px}.screen{top:48px}.wordmark{font-size:10px;letter-spacing:2px}.wordmark small{font-size:5px;letter-spacing:4.4px}.brand-sigil{width:23px;height:23px}.topbar .icon-button{width:29px;height:29px}#start{max-width:850px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 24px;padding:0 40px;gap:0 35px}.home-art{height:100%;max-height:none}.art-kicker,.home-intro{display:none}.home-content{padding:0 0 3px}.home-eyebrow{font-size:6px;margin-bottom:6px;justify-content:flex-start}h1{text-align:left;font-size:36px}h1>span{font-size:14px;margin-top:7px}h1 br{display:none}.hero-cards .card{width:113px;height:auto}.hero-cards .card:nth-child(3){width:130px;height:auto}.hero-cards{margin:0;height:100%}.wax-seal{width:50px;height:50px;top:calc(50% + 62px);bottom:auto}.wax-seal>span{font-size:22px}.wax-seal small{font-size:4px}.setup{margin-top:14px}.setup>label{font-size:6px;margin-bottom:5px}.opponent-choice{padding:6px 8px}.opponent-seal{width:29px;height:32px}.opponent-copy strong{font-size:16px}.opponent-copy>span{font-size:7px}.stepper{gap:0}#difficulty{font-size:8px;min-width:45px}.stepper button{width:23px;height:25px}.big{min-height:39px;margin-top:9px;font-size:9px}.big .icon{width:19px;height:19px}.button-arrow{font-size:19px}.start-bottom{margin-top:2px}.start-note,.language-switch button{font-size:8px}.home-footer{font-size:6px;padding-top:6px;gap:18px}.home-footer .icon{width:9px;height:9px}#game{--hc:72px;--ac:46px;--tc:70px;--sc:46px;grid-template-columns:1fr 1fr;grid-template-rows:minmax(94px,1fr) minmax(115px,1fr) 61px;padding:0 22px 10px;gap:0 20px;max-width:1100px}.opponent-zone{grid-column:1;grid-row:1;flex-direction:row;padding:0;justify-content:flex-end}.opponent{position:static;transform:none;margin-right:auto;min-width:0;gap:5px}.opponent>div:last-child{display:block}.opponent strong{font-size:16px}.opponent .mini-label{display:none}.avatar{width:27px;height:33px}#ai-status{font-size:8px;margin-top:4px}.ai-hand{padding:0}.ai-hand .card{margin-left:-13px}.round-plaque{display:none}.play-zone{grid-column:2;grid-row:1/3;align-self:center;height:170px;grid-template-columns:1fr 1.6fr .65fr;gap:5px}.stock-area{width:calc(var(--sc)*1.9)}.zone-caption{display:none}#stock-label{font-size:7px}.duel-area{width:calc(var(--tc)*2 + 12px)}.trump-info{width:45px;padding:7px 1px}.trump-info>div>span{font-size:5px;letter-spacing:.4px}#trump{font-size:28px}#trump-name{font-size:13px}.trump-caption,.trump-rule{display:none}.turn-line{position:absolute;left:26px;top:36%;width:calc(50% - 44px);height:25px}.turn-line:before,.turn-line:after{min-width:3px}#message{font-size:10px}.your-hand-zone{grid-column:1;grid-row:2;padding:18px 0 0;align-self:center}.hand-caption{display:none}.my-hand .card{margin-left:-15px;--r:0deg!important;--y:0px!important;transform:none}.game-bar{grid-row:3;grid-column:1/-1;flex-direction:row;margin:5px 0 0;padding:5px 0 0;gap:14px}.bar-summary{gap:10px;flex:1}.player-panel{gap:9px;min-width:0}.eyes{min-width:77px}.eyes b{font-size:25px}.eyes span{font-size:6px}.player-stats strong{font-size:8px}#my-tricks{font-size:7px}.score-track{margin-top:4px}.scoreboard{gap:6px;padding:11px 0 0 10px}.score-title{font-size:5px;left:10px}.scoreboard b{font-size:20px}.scoreboard>div>span{font-size:7px}.actions{gap:5px}.actions .small-button{min-width:82px;min-height:39px;padding:5px 7px;gap:6px}.actions .small-button b{font-size:9px}.actions .small-button>span>span{font-size:7px}.actions .icon{width:17px;height:17px}.home,.last{width:28px;height:28px}.game-bar:before{bottom:-10px}}
@media(max-height:380px) and (orientation:landscape){#game{--hc:62px;--ac:37px;--tc:58px;--sc:38px;grid-template-rows:minmax(68px,1fr) minmax(95px,1fr) 57px}.play-zone{height:145px}.your-hand-zone{padding-top:15px}.turn-line{top:31%}.hero-cards .card{width:91px}.hero-cards .card:nth-child(3){width:106px}.wax-seal{top:calc(50% + 49px)}h1{font-size:30px}h1>span{font-size:12px}.setup{margin-top:8px}.big{min-height:34px;margin-top:7px}.home-eyebrow{display:none}}
@media(max-width:355px) and (orientation:portrait){#start{padding:0 23px}.topbar{padding:0 17px}.opponent-choice{gap:7px}.opponent-copy>span{font-size:8px}#difficulty{min-width:48px;font-size:9px}.stepper{gap:0}#game{padding-left:12px;padding-right:12px;--hc:66px;--tc:57px;--sc:36px}.bar-summary{gap:5px}.player-panel{gap:6px}.eyes{min-width:73px}.scoreboard{gap:3px;padding-left:6px}.scoreboard b{font-size:20px}.score-title{left:6px}.scoreboard>div>span{font-size:6px}.home,.last{width:27px;height:29px}.trump-info{width:52px}#message{font-size:11px}.actions .small-button{gap:4px}.actions .small-button b{font-size:9px}.actions .icon{width:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.card-face:after{content:'';position:absolute;inset:0;background:url('assets/paper-grain.svg');opacity:.18;mix-blend-mode:multiply;pointer-events:none;z-index:4}
.court-art{mask-image:linear-gradient(to right,transparent,#000 5% 95%,transparent),linear-gradient(to bottom,transparent,#000 5% 95%,transparent);mask-composite:intersect}
@media(max-width:520px) and (orientation:portrait){.actions .small-button b{font-size:11px}.actions .small-button>span>span{font-size:9px}.eyes span{font-size:7px}.scoreboard>div>span{font-size:8px}.score-title{font-size:6px}#my-tricks{font-size:9px}#ai-status{font-size:10px}}
@media(max-height:620px) and (max-width:800px) and (orientation:portrait){#game{--hc:clamp(66px,20.5vw,80px);--ac:45px;grid-template-rows:minmax(101px,1fr) minmax(108px,1fr) 32px minmax(126px,1fr) 115px}}
@media(max-width:355px) and (orientation:portrait){.eyes span{font-size:6px}.scoreboard>div>span{font-size:7px}.score-title{font-size:5px}.actions .small-button b{font-size:10px}.actions .small-button>span>span{font-size:8px}}
