/* Rink Golems. Shares the studio palette with the other Golems games. */
:root {
  --bg: #0b1410; --panel: #12201a; --panel2: #182b22; --line: #2a4436;
  --text: #eef5f0; --muted: #8fa89a; --accent: #ffd23f; --accent2: #3ee08f;
  --danger: #ff5a5f; --home: #7a5cff; --home-d: #5a3fd6; --away: #c0262d; --away-d: #9e1e24;
  --ice: #cfe4f2;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.h { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }

/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud .stickzone { pointer-events: auto; }
.sb { position: absolute; top: calc(10px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch;
  background: rgba(8, 14, 11, .88); border: 1px solid #ffffff22; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 20px #0008; font-weight: 800; }
.sb .tm { display: flex; align-items: center; gap: 7px; padding: 5px 10px; }
.sb .tm .ab { font-size: 13px; letter-spacing: .06em; }
.sb .tm .sc { font-size: 22px; font-weight: 900; min-width: 20px; text-align: center; }
.sb .home { background: linear-gradient(90deg, var(--home), var(--home-d)); }
.sb .away { background: linear-gradient(90deg, var(--away-d), var(--away)); }
.sb .mid { white-space: nowrap; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2px 11px; font-size: 10px; color: var(--muted); min-width: 82px; }
.sb .mid b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.pause { position: absolute; top: calc(12px + var(--sat)); right: calc(12px + var(--sar)); width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid #ffffff2a; background: rgba(8, 14, 11, .8); font-weight: 900;
  display: grid; place-items: center; font-size: 13px; }
.sit { position: absolute; top: calc(62px + var(--sat)); left: 50%; transform: translateX(-50%); background: var(--accent);
  color: #1a1400; font-weight: 900; font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.sit.hot { background: var(--danger); color: #fff; }
.tip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(96px + var(--sat));
  background: rgba(8, 14, 11, .9); border: 1px solid #ffffff22; border-left: 4px solid var(--accent);
  padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; width: max-content; }
.radar { position: absolute; top: calc(12px + var(--sat)); left: calc(12px + var(--sal));
  border: 1px solid #ffffff22; border-radius: 8px; overflow: hidden; background: rgba(8, 14, 11, .7); }
.radar canvas { display: block; width: 180px; height: 80px; }
.stam { position: absolute; left: calc(14px + var(--sal)); bottom: calc(10px + var(--sab)); width: 128px;
  font-size: 9px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.stam .bar { height: 6px; border-radius: 99px; background: #ffffff1c; overflow: hidden; margin-top: 3px; }
.stam .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); width: 100%; }
body.desk .stam { bottom: calc(34px + var(--sab)); }
.keys { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--sab));
  font-size: 11px; color: var(--muted); background: rgba(8, 14, 11, .72); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.keys b { color: var(--accent); }

/* touch controls */
.stickzone { position: absolute; left: 0; bottom: 0; width: 46vw; max-width: 260px; height: 250px; touch-action: none; }
.stick { position: absolute; left: calc(28px + var(--sal)); bottom: calc(46px + var(--sab)); width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, #ffffff14, #ffffff08); border: 2px solid #ffffff30; }
.knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffffcc, #ffffff66); box-shadow: 0 4px 12px #0007; }
.btns { position: absolute; right: calc(18px + var(--sar)); bottom: calc(30px + var(--sab)); width: 190px; height: 180px; pointer-events: none; }
.tb { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900;
  text-align: center; border: 2px solid #ffffff55; box-shadow: 0 6px 16px #0008; letter-spacing: .02em;
  touch-action: none; pointer-events: auto; transition: transform .06s; }
.tb.down { transform: scale(.93); filter: brightness(1.15); }
.tb.a { right: 0; bottom: 0; width: 104px; height: 104px; background: radial-gradient(circle at 35% 30%, #ffe57a, #f0b400); color: #2a1e00; font-size: 15px; }
.tb.b { right: 112px; bottom: 8px; width: 70px; height: 70px; background: radial-gradient(circle at 35% 30%, #7af0b4, #1fb46d); color: #00230f; font-size: 11px; }
.tb.s { right: 24px; bottom: 116px; width: 62px; height: 62px; background: radial-gradient(circle at 35% 30%, #8fb3ff, #3a64d8); color: #fff; font-size: 10px; }
.tb.a.def { background: radial-gradient(circle at 35% 30%, #ff9a9d, #e0353b); color: #fff; }

.banner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.banner .big { font-size: clamp(34px, 11vw, 76px); color: var(--accent); text-shadow: 0 6px 24px #000a; }
.banner .small { font-size: 15px; color: var(--text); font-weight: 800; margin-top: 4px; }

/* ------------------------------------------------------------ screens */
.screen { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  padding: calc(18px + var(--sat)) 16px calc(26px + var(--sab)); }
.screen.sheet { background: rgba(6, 11, 9, .9); backdrop-filter: blur(4px); display: grid; place-items: center; }
.wrap { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.wrap.narrow { max-width: 380px; width: 100%; }
.logo { text-align: center; line-height: .92; margin: 6px 0 2px; }
.logo .t1 { font-size: clamp(30px, 10vw, 46px); color: var(--text); }
.logo .t2 { font-size: clamp(34px, 12vw, 56px); color: var(--accent); }
.logo .sub { font-size: 11px; letter-spacing: .3em; color: var(--muted); margin-top: 6px; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.lbl { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.card .lbl:not(:first-child) { margin-top: 14px; }
.teams { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.team { border: 1px solid var(--line); background: var(--panel2); border-radius: 9px; padding: 7px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 900; }
.team i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid; display: block; }
.team.on { border-color: var(--accent); background: #2a2616; }
.vs { margin-top: 10px; }
.vs .h { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.player { display: flex; gap: 12px; align-items: flex-start; }
.jersey { width: 62px; height: 62px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 26px; font-weight: 900; font-style: italic; box-shadow: inset 0 -3px 0 #0004; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 7px; }
.inp { flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 10px; font-weight: 800; letter-spacing: .04em; }
.inp.num { width: 58px; flex: none; text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--panel2); border-radius: 99px; padding: 7px 12px; font-size: 12px; font-weight: 800; }
.pill.on { border-color: var(--accent); background: #2a2616; color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.opts { display: flex; flex-wrap: wrap; gap: 7px; }
.opt { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel2);
  border-radius: 9px; padding: 8px 11px; font-size: 12px; font-weight: 800; }
.opt i { width: 15px; height: 15px; border-radius: 4px; border: 2px solid var(--line); display: block; }
.opt.on i { background: var(--accent2); border-color: var(--accent2); }
.btn { border-radius: 11px; padding: 13px; font-weight: 800; text-align: center; border: 1px solid var(--line); background: var(--panel2); width: 100%; }
.btn.go { background: linear-gradient(180deg, var(--accent), #e0a800); color: #231a00; border: 0; font-size: 17px; }
.btn.ghost { margin-top: 8px; color: var(--muted); }
.ttl { font-size: 22px; text-align: center; margin-bottom: 12px; }
.bigscore { font-size: 30px; text-align: center; color: var(--accent); margin-bottom: 12px; }
.stats { margin-bottom: 14px; }
.srow { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--line); font-size: 12px; }
.srow span { text-align: center; color: var(--muted); }
.srow b { text-align: center; font-size: 14px; }
.foot { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0 2px; }
.foot a { color: var(--muted); }

@media (min-width: 760px) and (orientation: landscape) {
  .keys { bottom: calc(8px + var(--sab)); }
}

/* Studio credit and link back to the games page, the same on every Game Golem Studios title screen */
.ggs-foot { text-align: center; font-size: 11px; margin-top: 12px; }
.ggs-foot a { color: var(--muted); text-underline-offset: 2px; }
