.g-page{padding:clamp(1.45rem,3.3vw,3rem) 0 2rem;--g-gold:#f0c46a;--g-rule:#3c4964;--g-dark:#101a31}
.game-title{margin-bottom:1.45rem}.game-title h1{font-size:clamp(2.6rem,5.1vw,5.45rem);letter-spacing:-.034em;margin:.45rem 0}.game-title p{color:#c6cee1;font-size:1.03rem}
.g-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(245px,1fr);align-items:start;gap:clamp(1rem,2.3vw,2.3rem)}
.g-board{min-width:0;border:1px solid #53617b;border-radius:12px;overflow:hidden;background:#101b32}
.g-scene{position:relative;isolation:isolate;overflow:hidden;width:100%;aspect-ratio:1.57;background:#122137;container-type:inline-size}
.g-felt,.g-dealer-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.g-scene::before{content:'';position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,#07122630,transparent 35%,transparent 86%,#08112455);pointer-events:none}
.g-stock,.g-pile{position:absolute;z-index:2;top:51%;transform:translate(-50%,-50%);width:10%;aspect-ratio:75/105;border-radius:8%/6%;padding:0}
.g-stock{left:32%;background:#c9c4b8;box-shadow:0 2px 0 #d9d4c6,0 4px 0 #797d8a,0 6px 0 #b5af9c,0 8px 0 #4e5262,1px 12px 10px #0007;transform:translate(-50%,-50%) rotate(-7deg);transition:left .2s,top .2s}
.g-scene.is-dealing .g-stock{left:58%;top:32%}
.g-stock:disabled{cursor:default}.g-stock:not(:disabled){outline:2px solid var(--g-gold);outline-offset:3px}
.g-stock img,.g-pile img,.g-flying,.g-botfan img,.g-handcard img{width:100%;height:100%;display:block;object-fit:fill;border-radius:8%/5.75%}
.g-stock.g-empty{background:#0b152633;box-shadow:none;border:1px dashed #b6bfd5}.g-stock.g-empty img{visibility:hidden}
.g-stockcount{position:absolute;right:-8px;bottom:-6px;background:#101b30;border:1px solid #ab9461;border-radius:1rem;color:#ffe4a0;min-width:25px;padding:1px 5px;text-align:center;font-size:.81rem;font-weight:bold}
.g-pile{left:53%;width:13%;transform:translate(-50%,-50%) rotate(5deg)}.g-pile img{box-shadow:1px 4px 8px #0008}
.g-botcount{position:absolute;top:3%;right:2%;z-index:2;background:#091122ce;border:1px solid #ffffff3b;border-radius:15px;padding:.18rem .62rem;font-weight:bold;font-size:.8rem}
.g-botfan{position:absolute;left:50%;top:22%;width:11%;aspect-ratio:75/105;transform:translate(-50%,-50%);z-index:2}
.g-botfan img{position:absolute;inset:0;transform-origin:50% 95%;box-shadow:0 0 0 1px #a19a82,0 2px 3px #0006}
.g-hand{position:absolute;left:3%;right:3%;bottom:2.5%;height:31%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#bca16b70 transparent;z-index:3;overscroll-behavior-x:contain}
.g-handinner{display:flex;align-items:flex-end;justify-content:center;min-width:100%;padding:4px 8px 7px;width:max-content;height:100%;margin:auto}
.g-handcard{--cw:clamp(52px,11cqw,97px);position:relative;flex:0 0 var(--cw);width:var(--cw);aspect-ratio:75/105;padding:0;border-radius:8%/5.75%;background:#fff;margin-left:calc(-1 * var(--cw) * .28);transform:translateY(3%) rotate(var(--angle,0deg));transform-origin:50% 92%;box-shadow:-1px 1px 4px #0008;transition:transform .16s,box-shadow .16s}
.g-handcard:first-child{margin-left:0}.g-handcard img{aspect-ratio:75/105}.g-handcard[data-legal="false"] img{filter:brightness(.77)}.g-handcard[data-legal="true"]::after{content:'';height:4px;background:var(--g-gold);border-radius:8px;position:absolute;bottom:2px;left:11%;right:11%}
.g-handcard[aria-pressed=true],.g-handcard:focus-visible{z-index:2;transform:translateY(-3%) rotate(0);box-shadow:0 0 0 2px #fff,0 0 0 4px #b58b3f}
.g-motion{pointer-events:none;position:absolute;inset:0;z-index:6}.g-flying{position:absolute;width:12%;height:auto;aspect-ratio:75/105;transform-origin:50% 50%;box-shadow:1px 2px 5px #0007}
.g-start{position:absolute;left:55%;top:52%;transform:translate(-50%,-50%);z-index:5;white-space:nowrap;background:var(--g-gold);color:#15203a;border-color:#ffc866;box-shadow:0 3px 18px #0008}.g-start:hover{background:#ffe0a2}
.g-bar{display:flex;justify-content:space-between;align-items:center;padding:.7rem 1rem;gap:.45rem;font-size:.85rem;border-top:1px solid #43516c}.g-bar>span{display:inline-flex;align-items:center;gap:.4rem}.g-bar .icon,.g-dominance{color:var(--g-gold)}.g-dominance{font-weight:bold;letter-spacing:.03em}
.g-side{border-top:2px solid #d5aa5a;padding:.92rem .05rem 0;min-width:0}.g-status h2,.g-result h2,.g-selection h3{margin:.5rem 0;font-family:var(--display);line-height:1;text-transform:uppercase}.g-status h2{font-size:clamp(2rem,3.3vw,3.2rem)}.g-status p,.g-rules p,.g-history li{color:#c8d1e4}.g-status p{min-height:3em}.g-selection{display:flex;align-items:center;gap:.9rem;margin:1.15rem 0}.g-selection img{width:clamp(58px,6.2vw,86px);aspect-ratio:75/105;border-radius:7%/5%}.g-selection h3{font-size:1.5rem}.g-selection small,.g-selection span{font-size:.84rem}.g-selection small{color:var(--g-gold);font-weight:bold}.g-controls{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}.g-controls .btn:disabled{opacity:.5}
.g-quick{border-top:1px solid var(--g-rule);padding-top:.75rem;margin:.5rem 0 0}
.g-quick h3{margin:0 0 .45rem;font-size:1.04rem;color:var(--g-gold)}
.g-quick ul{list-style:disc;padding:0 0 0 1.15rem;margin:0;color:#e3e8f4;font-size:1rem;line-height:1.35}
.g-quick li+li{margin-top:.32rem}.g-quick li::marker{color:var(--g-gold)}
.g-history{margin-top:1rem;font-size:.91rem}.g-history summary{font-weight:bold;text-decoration:underline;text-underline-offset:3px}.g-history ol{padding-left:1.3rem}.g-rules{margin-top:1.35rem}.g-rules p{padding:0 0 .7rem}.g-rules summary{min-height:48px}
.g-result{position:absolute;inset:0;background:#081226cc;display:grid;place-items:center;z-index:8;padding:1rem;text-align:center}.g-result>div{max-width:27rem;padding:1.3rem;background:#111c33ee;border:1px solid #9a7a48;border-radius:7px;box-shadow:0 12px 42px #0006}.g-result h2{font-size:clamp(1.7rem,3vw,2.8rem)}.g-result p{margin:.65rem 0 .85rem}.g-replay{display:block;color:white;text-decoration:underline;text-underline-offset:3px;padding:.5rem;min-height:40px;margin:.25rem auto 0}
@media(max-width:850px){.g-layout{grid-template-columns:1fr}.g-side{padding:.75rem 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem .6rem;align-items:center}.g-status{grid-column:1/-1}.g-status h2{font-size:1.8rem}.g-status p{min-height:0}.g-selection{margin:.4rem 0}.g-selection img{width:55px}.g-selection h3{font-size:1.2rem}.g-controls{margin:.3rem 0}.g-quick,.g-history{grid-column:1/-1}.g-controls:empty{display:none}.g-rules{margin-top:.8rem}.g-side:has(.g-selection[hidden]) .g-controls{grid-column:1/-1}}
@media(max-width:600px){.g-page{width:95%;padding-top:1.1rem}.game-title{margin:0 .2rem .85rem}.game-title h1{font-size:clamp(2.35rem,9vw,3.8rem)}.game-title p{font-size:.92rem;line-height:1.35}.g-layout{gap:.65rem}.g-scene{aspect-ratio:1.22}.g-pile{width:16%}.g-stock{width:12.5%;left:29%}.g-botfan{width:13%;top:21%}.g-hand{height:31%;bottom:1.5%;left:1%;right:1%}.g-handcard{--cw:clamp(52px,15cqw,75px);margin-left:calc(-1 * var(--cw) * .26)}.g-botcount,.g-bar{font-size:.77rem}.g-bar{padding:.48rem .65rem}.g-start{font-size:.83rem;padding:.75rem;left:61%}.g-result>div{padding:.76rem}.g-result p{font-size:.94rem}.g-controls .btn{font-size:.85rem;padding:.65rem .7rem}.g-status .eyebrow{display:none}.g-status h2{margin:.1rem 0 .3rem}.g-handcard{touch-action:pan-x pan-y}}

/* Preserve the printed card proportions as the selected technique takes focus. */
.g-selection{display:flex;flex-wrap:wrap;gap:.65rem 1rem}
.g-selection img{width:clamp(122px,13.1vw,181px);height:auto;flex:none}
.g-selection>div{flex:1 1 10rem;min-width:0}
.g-selection h3{font-size:3.18rem;line-height:1.02;overflow-wrap:anywhere}
.g-handcard{touch-action:manipulation}
@media(max-width:850px){
  .g-selection{grid-column:1/-1}
  .g-selection img{width:118px}
  .g-selection h3{font-size:2.56rem}
  .g-play{display:none}
}
@media(pointer:coarse){.g-play{display:none}}
@media(max-width:600px){
  .g-scene{aspect-ratio:.96}
  .g-felt,.g-dealer-motion{object-fit:cover;object-position:center}
  .g-hand{height:33%;left:0;right:0}
  .g-handcard{--cw:clamp(58px,19cqw,99px);margin-left:calc(-.34 * var(--cw))}
  .g-handcard:first-child{margin-left:0}
  .g-stock{width:16%;left:26%}.g-pile{width:21%;left:54%}.g-botfan{width:16%;top:19%}
  .g-flying{width:17%}
}
