#play { --gold:#f3ce73; --cyan:#82e8f9; --red:#ff7c8b; position:fixed; inset:0; overflow:auto; isolation:isolate; background:#081323; color:#f4f3eb; font-family:var(--font-sans); }
#play .pit-art { position:absolute; inset:-80px -22px -90px; z-index:-1; background:linear-gradient(#081323,#08132300 22%,#08132300 65%,#081323),url('./pit.webp') center 52%/auto 920px no-repeat; pointer-events:none; }
#play .game-frame { width:min(100%,480px); min-height:100svh; margin:auto; padding:calc(12px + env(safe-area-inset-top)) 22px calc(12px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; }
#play .game-header { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #b18a40; padding:10px 0 14px; }
#play .eyebrow,#play small { color:#a7b3c5; font-size:12px; }
#play h1 { color:var(--gold); font-size:30px; margin:3px 0 0; letter-spacing:1px; text-shadow:0 2px 16px #e3a63f44; }
#play #sound { color:var(--gold); background:#081323cc; border:1px solid #91703d; border-radius:10px; min-width:64px; min-height:44px; font-size:12px; }
#play .team-strip { display:flex; align-items:center; gap:8px; border:1px solid #b7995066; border-radius:12px; padding:8px 12px; background:#070e20b8; font-size:14px; }
#play .team-strip img:first-child { width:34px; height:34px; object-fit:contain; }
#play .team-strip div { flex:1; }
#play .team-strip small { display:block; margin-top:2px; }
#play #rank-icon { width:58px; height:36px; object-fit:contain; }
#play #rank-name { color:#f5d995; font-size:12px; }
#play .score-strip { display:flex; align-items:center; justify-content:space-between; padding:10px 2px; font-variant-numeric:tabular-nums; }
#play .score-strip small { display:block; }
#play .score-strip strong { color:var(--gold); font-size:32px; text-shadow:0 0 16px #ecb94a33; }
#play .score-strip div:last-child { text-align:right; }
#play .score-strip b { color:#fff0b7; font-size:23px; }
#play em { font-style:normal; font-size:16px; }
#play .count-strip { display:flex; justify-content:space-between; align-items:center; font-size:12px; margin:0 0 10px; }
#play .count-strip span:first-child { border:1px solid #82e8f977; border-radius:16px; color:var(--cyan); padding:4px 12px; }
#play .count-strip span:last-child { color:var(--red); }
#play .health-panel { border:1px solid #b7995066; border-radius:12px; padding:10px 12px; background:#070e20df; }
#play .health-heading { display:flex; justify-content:space-between; align-items:center; font-size:14px; }
#play .health-heading strong { color:#ffeca1; font-size:18px; font-variant-numeric:tabular-nums; }
#play .health-heading small { font-size:12px; }
#play #health-track { position:relative; height:14px; margin:11px 0; border:1px solid #ffadb177; border-radius:4px; background:#42273677; }
#play #health-fill { height:100%; background:linear-gradient(90deg,#e84969,#ff8e92); transform-origin:left; border-radius:3px; }
#play #kill-line { position:absolute; left:12.5%; top:-5px; bottom:-5px; width:2px; background:#ffe29a; box-shadow:0 0 8px #ffdc72; }
#play .health-meta { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:#b8c9db; }
#play .health-meta b { color:var(--gold); }
#play .battlefield { position:relative; min-height:205px; flex:1; }
#play .battle-fx { position:absolute; width:100%; height:100%; inset:0; overflow:visible; pointer-events:none; }
#play .battle-fx path { fill:none; stroke-width:4; stroke-linecap:round; opacity:0; stroke-dasharray:12 8; }
#play #ally-beam { stroke:var(--cyan); }
#play #enemy-beam { stroke:var(--red); }
#play #smite-beam { fill:#ffe298; stroke:#fff6d1; stroke-dasharray:none; stroke-width:2; }
#play #impact { fill:#ffdf7a55; stroke:#fff0ad; stroke-width:3; opacity:0; transform-origin:225px 130px; }
#play .combatant { position:absolute; bottom:16px; display:flex; flex-direction:column; align-items:center; width:110px; font-size:11px; text-shadow:0 2px 5px #000; }
#play .combatant svg { width:54px; height:62px; fill:#0c3249; stroke:var(--cyan); stroke-width:1.8; filter:drop-shadow(0 0 6px #41c9ee66); }
#play .combatant .weapon { fill:#e1fbff; }
#play .ally { left:0; color:var(--cyan); }
#play .enemy { right:0; color:var(--red); }
#play .enemy svg { fill:#431d34; stroke:var(--red); filter:drop-shadow(0 0 6px #ec446455); }
#play .combatant span { margin-top:4px; color:#c1cedd; }
#play .combatant b { font-size:13px; margin:3px 0; }
#play .cast-track { width:84px; height:5px; border-radius:3px; background:#162639; border:1px solid currentColor; overflow:hidden; }
#play .cast-track i { display:block; height:100%; background:currentColor; transform-origin:left; transform:scaleX(0); }
#play #round-result { position:absolute; top:20%; left:0; right:0; margin:auto; width:90%; text-align:center; padding:18px 12px; border-top:1px solid #e6bf5e88; border-bottom:1px solid #e6bf5e88; background:linear-gradient(90deg,#07132200,#071322f0 20%,#071322f0 80%,#07132200); }
#play #round-result strong { display:block; font-size:30px; color:var(--gold); text-shadow:0 0 15px #c99639; }
#play #round-result span { display:block; font-size:13px; color:#e9edf7; margin-top:6px; }
#play #round-result[data-win=false] strong { color:var(--red); text-shadow:none; }
#play .bottom-panel { text-align:center; }
#play #lesson { font-size:12px; line-height:1.6; color:#d5e4f1; margin:6px 0; min-height:38px; }
#play #flags { display:flex; justify-content:center; gap:3px; min-height:27px; margin:3px 0 10px; }
#play .flag { position:relative; flex:0 0 16px; height:22px; border-left:1px solid #ddbc70; }
#play .flag img { width:14px; height:17px; object-fit:contain; border:1px solid #b79950; background:#102c47; }
#play .flag.lost { border-color:#758398; opacity:.65; color:var(--red); font-size:16px; line-height:17px; }
#play #smite { width:128px; height:128px; border:4px solid #fbd976; border-radius:50%; outline:1px solid #8f6933; outline-offset:5px; background:radial-gradient(circle at 50% 20%,#523c1c,#211b11 75%); box-shadow:inset 0 0 0 3px #8d6633,0 0 26px #bf963322; color:#ffdf88; display:flex; flex-direction:column; justify-content:center; align-items:center; margin:6px auto 10px; padding:0; touch-action:manipulation; -webkit-touch-callout:none; }
#play #smite svg { width:40px; height:46px; fill:#ffdc73; }
#play #smite strong { font-size:21px; }
#play #smite small { font-size:10px; color:#cbbd96; }
#play #smite:active:not(:disabled) { transform:scale(.96); }
#play #smite:disabled { opacity:.6; filter:saturate(.5); }
#play .one-shot { color:#a4b4c6; font-size:11px; margin:0; }
@media(hover:hover) and (pointer:fine) { #play #smite:hover:not(:disabled) { box-shadow:inset 0 0 0 3px #8d6633,0 0 26px #e9bd5266; } #play #sound:hover { background:#26303c; } }
@media(min-width:700px) { #play { background:radial-gradient(ellipse at center,#102239,#050d19 75%); } #play .game-frame { border-left:1px solid #8c6b3222; border-right:1px solid #8c6b3222; } }
@media(max-height:740px) { #play .game-frame { padding-top:calc(6px + env(safe-area-inset-top)); padding-left:18px; padding-right:18px; } #play .game-header { padding:4px 0 7px; } #play h1 { font-size:25px; } #play .score-strip { padding:6px 2px; } #play .score-strip strong { font-size:27px; } #play .team-strip { padding:5px 10px; } #play .battlefield { min-height:170px; } #play #smite { width:108px; height:108px; } #play #smite svg { width:33px; height:37px; } #play #lesson { min-height:32px; font-size:11px; } #play #flags { margin-bottom:6px; } }
@media(max-height:680px) and (orientation:portrait) {
  #play .game-frame { height:100dvh; min-height:560px; line-height:1.35; padding:calc(6px + env(safe-area-inset-top)) 14px calc(6px + env(safe-area-inset-bottom)); }
  #play .eyebrow { display:none; } #play .game-header { padding:0 0 4px; } #play h1 { font-size:24px; margin:0; }
  #play .team-strip { padding:3px 8px; } #play .team-strip img:first-child { width:28px; height:28px; } #play #rank-icon { width:48px; height:28px; }
  #play .team-strip small { font-size:10px; } #play .score-strip { padding:4px 2px; } #play .score-strip strong { font-size:24px; }
  #play .score-strip small { font-size:10px; } #play .count-strip { margin-bottom:6px; } #play .count-strip span:first-child { padding:2px 10px; }
  #play .health-panel { padding:8px 10px; } #play #health-track { height:12px; margin:8px 0; }
  #play .pit-art { left:-14px; right:-14px; }
  #play .battlefield { min-height:90px; } #play .combatant { bottom:4px; width:88px; } #play .combatant svg { width:36px; height:42px; }
  #play .combatant span { font-size:10px; margin-top:2px; } #play .combatant b { font-size:11px; margin:2px 0; }
  #play #lesson { min-height:30px; margin:3px 0; font-size:10.5px; } #play #flags { min-height:20px; margin:2px 0 6px; }
  #play #smite { width:88px; height:88px; margin:4px auto 8px; } #play #smite svg { width:26px; height:30px; } #play #smite strong { font-size:18px; } #play #smite small { font-size:9px; }
  #play .one-shot { font-size:10px; } #play #round-result { padding:8px; top:0; } #play #round-result strong { font-size:23px; }
}
@media(orientation:landscape) and (max-height:540px) {
  #play .game-frame { width:min(100%,780px); height:100dvh; min-height:360px; display:grid; grid-template-columns:1fr 200px; grid-template-rows:auto auto auto auto 1fr; column-gap:20px; padding:8px 16px; }
  #play .game-header { grid-column:1; grid-row:1; padding:0; } #play .eyebrow { display:none; } #play h1 { margin:0; font-size:22px; }
  #play .team-strip { grid-column:1; grid-row:2; padding:2px 8px; } #play .team-strip img:first-child { width:26px; height:26px; } #play .team-strip small { display:none; }
  #play .score-strip { grid-column:1; grid-row:3; padding:2px; } #play .score-strip strong { font-size:23px; } #play .score-strip small { font-size:10px; }
  #play .count-strip { grid-column:1; grid-row:4; margin:0; } #play .health-panel { grid-column:1; grid-row:5; align-self:start; margin-top:5px; padding:7px 10px; }
  #play .battlefield { grid-column:2; grid-row:1/4; min-height:140px; } #play .combatant { width:85px; bottom:0; } #play .combatant svg { width:32px; height:38px; }
  #play .pit-art { inset:-25px -10px -30px; background-size:auto,auto 500px; }
  #play .bottom-panel { grid-column:2; grid-row:4/6; } #play #lesson { font-size:10px; min-height:30px; margin:0; } #play #flags { min-height:18px; gap:1px; margin:2px 0; }
  #play .flag { flex-basis:11px; height:17px; } #play .flag img { width:10px; height:13px; } #play #smite { width:88px; height:88px; margin:8px auto; } #play #smite svg { width:26px; height:30px; } #play .one-shot { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { #play #smite:active:not(:disabled) { transform:none; } }
