.game-shell:is(.theme-toss,.theme-glider,.theme-curling) {
  --toss-ink:#133d2c;
  --toss-muted:#425a4b;
  --toss-stage:#fff5e3;
  --toss-orange:#ec9c3d;
  --throwing-wood:repeating-linear-gradient(4deg,#73422030 0 1px,transparent 2px 6px,#ffde9c50 8px 9px,transparent 12px 19px),
    linear-gradient(140deg,#df9c53,#be7834 45%,#e7a55a 78%,#b77339);
  --throwing-felt:repeating-linear-gradient(123deg,#ffffff0b 0 1px,#00000006 1px 3px,transparent 4px 6px);
}
.page-game .game-shell:is(.theme-toss,.theme-glider,.theme-curling):has(.toss-console,.glider-room,.curling-room) {
  color:var(--toss-ink);
  background:radial-gradient(ellipse at 27% 30%,#fffaf0 0,transparent 73%),var(--toss-stage);
}
.page-game .game-shell:is(.theme-toss,.theme-glider,.theme-curling):has(.toss-console,.glider-room,.curling-room) .game-toolbar {
  background:transparent; color:var(--toss-ink); border-color:#b0b69d;
  backdrop-filter:blur(16px);
}
.game-shell:is(.theme-toss,.theme-glider,.theme-curling):has(.toss-console,.glider-room,.curling-room) .game-toolbar .button {
  color:var(--toss-ink); background:#fff9eb; border-color:#647f63;
}
.page-game .game-shell:is(.theme-glider,.theme-curling) .play :is(.glider-room,.curling-room) h2 { color:var(--toss-ink) }
.page-game .game-shell:is(.theme-glider,.theme-curling) .play :is(.glider-room,.curling-room) .session-banner .meta {
  color:var(--toss-muted); margin-inline:0; text-align:start;
}
.game-shell .play .glider-room {
  --landing-ink:var(--toss-ink); --landing-dim:var(--toss-muted); --landing-line:#abb59b;
}
.game-shell .play .curling-room {
  --curling-ink:var(--toss-ink); --curling-muted:var(--toss-muted); --curling-paper:var(--toss-stage);
}
.game-shell .play :is(.glider-room,.curling-room) .actions { flex-wrap:wrap }
.page-game .game-shell .play :is(.glider-room,.curling-room) .actions .button:not(.secondary) {
  min-height:44px; background:var(--toss-orange); border-color:#b7742d; color:#23321b;
}
.page-game .game-shell .play :is(.glider-room,.curling-room) .actions .button:not(.secondary):enabled:hover { background:#f4b461 }
.page-game .game-shell .play :is(.glider-room,.curling-room) .actions .button:not(.secondary):disabled {
  background:#ece2cc; border-color:#ab9d80; color:#435647; opacity:1;
}
.page-game .game-shell .play :is(.glider-room,.curling-room) .actions .button.secondary {
  min-height:44px; background:#fff8ea; border-color:#668171; color:var(--toss-ink);
}
.game-shell .play :is(.glider-target,.curling-target,.curling-push-lane) {
  border:clamp(.35rem,1vw,.8rem) solid transparent;
  border-radius:clamp(.7rem,1.5vw,1.2rem);
  background:var(--throwing-felt) padding-box,linear-gradient(#173e2a,#173e2a) padding-box,var(--throwing-wood) border-box;
  box-shadow:inset 0 0 0 2px #f3dfac70,0 .26rem 0 #7f4a26,0 .9rem 1.6rem -.7rem #63462c73;
}

.glider-target { width:min(100%,32rem) }
.glider-outside {
  background:var(--throwing-felt),#173e2a; color:#fff1cb;
}
.glider-outer { --ring-color:#2c563a; --ring-line:#e1d19d; color:#fff1cb }
.glider-middle { --ring-color:#dfbc77; --ring-line:#f4e3b1 }
.glider-center { --ring-color:#9d3c20; --ring-line:#f4e3b1; color:#fff6dd }
.glider-ring[aria-pressed="true"] { outline-color:#ffdb89; outline-offset:-3px }
.glider-ring:focus-visible,.curling-zone:focus-visible { outline:3px solid #ffce6c; outline-offset:-4px }
.glider-line:focus-visible,.curling-room button:not(.curling-zone):focus-visible { outline-color:#246044 }
.glider-paper-marker {
  position:absolute; pointer-events:none; z-index:1;
  inset:var(--landing-y,77%) auto auto var(--landing-x,87%);
  width:11%; aspect-ratio:1.25; transform:translate(-50%,-50%) rotate(-19deg);
  filter:drop-shadow(1px 3px 2px #152317a6);
}
.glider-paper-marker::before {
  content:""; display:block; width:100%; height:100%;
  clip-path:polygon(0 17%,100% 0,61% 94%,40% 58%,24% 78%,25% 48%);
  background:conic-gradient(from -13deg at 40% 58%,#fff9e8 0deg 45deg,#bba783 45deg 69deg,#eee6d0 69deg 110deg,#fff9eb 110deg 175deg,#c3ae8a 175deg 232deg,#fff3d9 232deg);
}
.glider-paper-marker[data-glider-landing-marker="outer"] { --landing-x:82%; --landing-y:60% }
.glider-paper-marker[data-glider-landing-marker="middle"] { --landing-x:72%; --landing-y:54% }
.glider-paper-marker[data-glider-landing-marker="center"] { --landing-x:57%; --landing-y:58%; width:7% }
.glider-paper-marker[data-glider-landing-marker="boundary-outer"] { --landing-x:88%; --landing-y:63% }
.glider-paper-marker[data-glider-landing-marker="boundary-middle"] { --landing-x:77%; --landing-y:59% }
.glider-paper-marker[data-glider-landing-marker="boundary-center"] { --landing-x:64%; --landing-y:55% }
.game-shell.wide .glider-target { width:min(100%,calc(100dvh - 190px),37rem) }
@media(max-width:810px) {
  .game-shell.wide .glider-target { width:min(100%,29rem) }
}

.curling-target { width:min(100%,31rem); isolation:isolate }
.curling-zone.zone-1 { background:#315c3d; border-color:#f1dfa7; color:#fff1cb }
.curling-zone.zone-2 { background:#dfbc77; border-color:#f1dfa7; color:#3c321b }
.curling-zone.zone-3 { background:#9d3c20; border-color:#f1dfa7; color:#fff6dd }
.curling-zone.zone-0 { background:#f5e5be; border-color:#efcf89; color:#294331 }
.curling-zone[aria-pressed=true] { box-shadow:inset 0 0 0 3px #fff9de }
.curling-room .curling-paper,.curling-room .curling-paper.team-b {
  background: url("paper-ball.webp") center / contain no-repeat;
  color:#143e29; border:0; box-shadow:none; font-weight:800;
  filter:drop-shadow(1px 3px 2px #283c2666);
  text-shadow:0 1px #fff9e9;
}
.curling-room .curling-paper.team-b { color:#85330f; filter:sepia(.3) drop-shadow(1px 3px 2px #283c2666) }
.curling-push-lane>span:last-child { color:#f8ecc3 }
.curling-zone-marker {
  position:absolute; pointer-events:none; z-index:1;
  left:var(--piece-x,89%); top:var(--piece-y,91%); width:11%;
  transform:translate(-50%,-50%);
}
.curling-zone-marker .curling-paper { width:100%; height:auto; aspect-ratio:1; font-size:clamp(.57rem,1.5vw,1rem) }
.curling-zone-marker[data-zone="1"] { --piece-x:83%; --piece-y:56% }
.curling-zone-marker[data-zone="2"] { --piece-x:71%; --piece-y:53% }
.curling-zone-marker[data-zone="3"] { --piece-x:61%; --piece-y:43%; width:8% }
