.sleigh-game { max-width: 1040px; margin: 0 auto 2rem; --night:#11283b; --cream:#fff6da; --gold:#ffd98c; }
.sleigh-heading { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin:.6rem 0 1rem; }
.sleigh-heading h1 { margin:.12em 0 0; font-size:clamp(2.25rem,5.7vw,4.25rem); line-height:.96; }
.sleigh-heading .kicker { color:#a03238; }
.sleigh-game button { touch-action:manipulation; font:inherit; font-weight:750; cursor:pointer; }
.sleigh-game button:focus-visible,.sleigh-stage:focus-visible { outline:3px solid #b76416; outline-offset:3px; }
.sleigh-game [hidden] { display:none !important; }
.sleigh-sound { flex:none; border:1px solid #adbaa9; background:#fffaf0; color:#214537; border-radius:24px; min-height:42px; padding:.45em .9em; }
.sleigh-sound[aria-pressed="true"] { background:#22483d; color:white; }
.sleigh-stage { position:relative; isolation:isolate; width:100%; height:clamp(340px,57vw,555px); overflow:hidden; border-radius:18px; background:linear-gradient(#102741,#335779); box-shadow:0 3px 0 #132b38; }
.sleigh-stage canvas { width:100%; height:100%; display:block; }
.sleigh-hud { position:absolute; top:10px; left:10px; right:10px; display:flex; align-items:flex-start; gap:5px; pointer-events:none; }
.sleigh-hud span,.sleigh-hud button { padding:.42rem .72rem; color:var(--cream); background:#102638f0; border:1px solid #aecad844; border-radius:9px; }
.sleigh-hud span { display:grid; gap:.04em; font:bold .68rem/1.1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.065em; }
.sleigh-hud strong { font:bold 1.12rem/1.2 system-ui,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:0; }
.sleigh-hud button { pointer-events:auto; margin-left:auto; min-height:40px; font-size:.87rem; }
.sleigh-aim { position:absolute; left:50%; top:11px; transform:translateX(-50%); color:#fff2d2; background:#183535eb; border:1px solid #e5c683ac; border-radius:25px; padding:6px 12px; line-height:1.25; font-size:.9rem; white-space:nowrap; pointer-events:none; }
.sleigh-aim span { color:#ffe594; }
.sleigh-aim[data-gate="true"] { color:#effff8; background:#174838f2; border-color:#98e7be; }
.sleigh-aim[data-gate="true"] span { color:#b0ffd3; }
.sleigh-aim[data-ready="true"] { background:#ffe59c; color:#27352b; border-color:#fff0bd; }
.sleigh-aim[data-ready="true"] span { color:#73431c; }
.sleigh-panel { position:absolute; bottom:clamp(12px,3vw,28px); left:clamp(12px,3vw,28px); max-width:365px; width:calc(100% - 24px); padding:clamp(14px,2.3vw,24px); background:#112638f2; color:var(--cream); border:1px solid #e3cc984d; border-radius:14px; box-shadow:0 .3rem 1rem #06131e30; }
.sleigh-panel p { margin:0; color:#e2ebec; line-height:1.32; }
.sleigh-panel [data-eyebrow] { color:var(--gold); font:bold .72rem/1.1 system-ui,sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.sleigh-panel h2 { color:var(--cream); font-size:clamp(1.65rem,3.2vw,2.5rem); line-height:1; margin:.28em 0 .2em; }
.sleigh-panel .sleigh-brief { margin-top:.55rem; color:#ffe49a; font-weight:700; font-size:.86rem; }
.sleigh-stage:not([data-phase="ready"]) .sleigh-brief,.sleigh-brief span:nth-child(2) { display:none; }
@media(pointer:coarse){ .sleigh-brief span:first-child { display:none; } .sleigh-brief span:nth-child(2) { display:inline; } }
.sleigh-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.8rem; }
.sleigh-launch,.sleigh-secondary { min-height:42px; padding:.5em 1em; border:0; border-radius:8px; }
.sleigh-launch { background:#ffdf90; color:#30240e; }
.sleigh-secondary { background:transparent; border:1px solid #adbfbd; color:var(--cream); }
.sleigh-panel label { display:block; line-height:1.3; margin-top:.6rem; }
.sleigh-panel textarea { display:block; width:100%; color:#142737; }
.sleigh-controls { display:grid; grid-template-columns:1fr 1.3fr 1fr; gap:7px; margin-top:10px; }
.sleigh-stage[data-phase="ready"] + .sleigh-controls { display:none; }
.sleigh-controls button { min-height:49px; border:1px solid #c3cbbf; border-radius:10px; color:#233e36; background:#fffaf0; }
.sleigh-controls [data-drop] { background:#963e35; color:#fff8e8; border-color:#873228; }
.sleigh-controls [data-drop][data-ready="true"]:enabled { color:#372916; background:#ffdc80; border-color:#ac7024; box-shadow:inset 0 0 0 2px #fff0b0; }
.sleigh-stage { scroll-margin-top:5px; }
.sleigh-stage[data-flying="true"] canvas { touch-action:pan-y; }
.sleigh-controls b { font-size:.8em; }
.sleigh-controls button:disabled { opacity:.57; cursor:default; }
.sleigh-game button:active:enabled { filter:brightness(.93); }
.sleigh-log { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem 1rem; flex-wrap:wrap; margin:.7rem 0 1rem; }
.sleigh-log p { margin:0; }
.sleigh-log [data-best] { font-size:.88rem; color:#50645a; }
.sleigh-rules { padding:.8rem 1rem; border:1px solid #dadbc9; border-radius:9px; max-width:78ch; background:#fffaf0; }
.sleigh-rules summary { cursor:pointer; font-weight:700; }
.sleigh-rules p { margin:.6rem 0 .1rem; }
@media(max-width:940px){ .sleigh-aim { top:59px; } }
@media(max-width:680px){
  .sleigh-stage { height:clamp(300px,60svh,490px); border-radius:12px; }
  .sleigh-hud { left:6px; right:6px; top:6px; gap:3px; }
  .sleigh-hud span { padding:5px 6px; font-size:.62rem; }
  .sleigh-hud strong { font-size:.95rem; }
  .sleigh-aim { top:53px; font-size:.8rem; padding:4px 9px; }
  .sleigh-panel { padding:12px 14px; }
  .sleigh-panel p { font-size:.9rem; }
  .sleigh-controls button { min-height:46px; }
  .sleigh-stage[data-phase="ready"] { height:auto; }
  .sleigh-stage[data-phase="ready"] canvas { height:clamp(180px,35svh,300px); }
  .sleigh-stage[data-phase="ready"] .sleigh-panel { position:static; display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 12px; width:100%; max-width:none; border:0; border-radius:0; box-shadow:none; padding:12px; }
  .sleigh-stage[data-phase="ready"] [data-eyebrow] { display:none; }
  .sleigh-stage[data-phase="ready"] .sleigh-panel h2 { font-size:1.4rem; margin:0; }
  .sleigh-stage[data-phase="ready"] [data-panel-copy] { grid-column:1 / -1; grid-row:2; }
  .sleigh-stage[data-phase="ready"] .sleigh-brief { grid-column:1 / -1; margin:0; }
  .sleigh-stage[data-phase="ready"] .sleigh-actions { grid-column:2; grid-row:1; margin:0; }
}
@media(max-width:380px){ .sleigh-heading { align-items:flex-start; }.sleigh-heading h1 { font-size:2.1rem; }.sleigh-sound { font-size:.8rem!important; padding:.4em .6em; } }
@media(max-width:420px){
  .sleigh-hud { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) 44px; left:4px; right:4px; gap:2px; }
  .sleigh-hud span { padding:4px 2px; justify-content:center; text-align:center; font-size:10px; }
  .sleigh-hud strong { font-size:14px; }
  .sleigh-hud button { width:44px; height:44px; padding:0; font-size:0; }
  .sleigh-hud button::before { content:'Ⅱ'; font:bold 19px/1 system-ui,sans-serif; }
}
