/* NEON PAR — teal "turf glow" with hot-pink highlights. The WebGL canvas is the game; the DOM is a
   light HUD and overlays. Animate only transform/opacity. */
.screen.gp { padding: 0; overflow: hidden; background: #04060f; }
.gp-canvas, .gp-aim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.gp-canvas {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.gp-aim { pointer-events: none; }

/* ---- HUD ---- */
.gp-hud { position: absolute; inset: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.gp-hud button { pointer-events: auto; }

.gp-hole {
  position: absolute;
  top: calc(var(--safe-t) + 12px);
  left: calc(var(--safe-l) + 12px);
  right: calc(var(--safe-r) + 132px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gp-hole-n {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 9px 5px;
  background: rgba(4, 10, 18, 0.72);
  border: 1px solid rgba(47, 245, 210, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.gp-hole-n small { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: #8fe9d8; }
.gp-hole-n b { font-family: var(--font-num); font-size: 24px; line-height: 1; font-weight: 700; color: #fff; text-shadow: 0 0 12px rgba(47, 245, 210, 0.6); }
.gp-hole-n .gp-of { letter-spacing: 0.04em; color: #9fb5c9; }
.gp-hole-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-shadow: 0 1px 6px #000; }
.gp-hole-name { font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: 0.1em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-hole-par { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #ff9bcb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gp-strokes {
  position: absolute;
  top: calc(var(--safe-t) + 10px);
  right: calc(var(--safe-r) + 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  line-height: 1;
  text-shadow: 0 1px 8px #000;
}
.gp-strokes small { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; color: #8fe9d8; }
.gp-strokes b { font-family: var(--font-num); font-size: 30px; font-weight: 700; color: #fff; margin: 2px 0 1px; text-shadow: 0 0 14px rgba(255, 79, 163, 0.65); }
.gp-strokes .gp-max { color: #9fb5c9; letter-spacing: 0.12em; }

.gp-board {
  position: absolute;
  top: calc(var(--safe-t) + 62px);
  left: calc(var(--safe-l) + 10px);
  width: min(44vw, 176px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gpb-row {
  display: grid;
  grid-template-columns: 8px 1fr auto 30px;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--font-num);
  font-size: 12px;
  color: rgba(225, 240, 248, 0.86);
  background: linear-gradient(90deg, rgba(4, 10, 20, 0.66), rgba(4, 10, 20, 0.12));
  border-left: 2px solid var(--c);
}
.gpb-row.is-me { color: #fff; background: linear-gradient(90deg, rgba(47, 245, 210, 0.3), rgba(255, 79, 163, 0.06)); }
.gpb-row.is-off { opacity: 0.5; }
.gpb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.gpb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }
.gpb-s { font-weight: 700; }
.gpb-row.is-done .gpb-s { color: #7ffbe4; }
.gpb-tp { text-align: right; font-weight: 700; color: #ffb3d6; }

.gp-cd {
  position: absolute;
  top: calc(var(--safe-t) + 166px);
  right: calc(var(--safe-r) + 12px);
  padding: 6px 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(255, 79, 163, 0.22);
  border: 1px solid #ff4fa3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.gp-cd.is-on { opacity: 1; transform: none; }
.gp-cd.is-urgent { background: rgba(255, 51, 85, 0.4); border-color: #ff3355; }

.gp-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 96px);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  color: #d9fff7;
  background: rgba(4, 10, 18, 0.66);
  border: 1px solid rgba(47, 245, 210, 0.3);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gp-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* power-up slot (bottom left) and sabotage (bottom right) */
.gp-pu, .gp-sab, .gp-ballbtn {
  position: absolute;
  bottom: calc(var(--safe-b) + 18px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s var(--ease), opacity 0.2s;
}
.gp-pu:active, .gp-sab:active, .gp-ballbtn:active { transform: scale(0.93); }
.gp-pu {
  left: calc(var(--safe-l) + 14px);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 14px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(6, 12, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.gp-pu canvas { width: 40px; height: 40px; }
.gp-pu.is-armed { border-color: #fff; background: rgba(47, 245, 210, 0.24); box-shadow: 0 0 18px rgba(47, 245, 210, 0.5); }
.gp-pu.is-armed span::after { content: ' · ARMED'; color: #7ffbe4; }
.gp-sab {
  right: calc(var(--safe-r) + 14px);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.5), rgba(124, 30, 90, 0.7));
  border: 1px solid #ff4fa3;
  box-shadow: 0 0 16px rgba(255, 79, 163, 0.45);
  animation: gp-sab-in 0.5s var(--ease-back) both;
}
.gp-sab i { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--sab-icon) center / contain no-repeat; mask: var(--sab-icon) center / contain no-repeat; }
.gp-sab { --sab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.5 6.5L21 9l-5 4.6L17.5 21 12 17.3 6.5 21 8 13.6 3 9l6.5-.5z' fill='black'/%3E%3C/svg%3E"); }
@keyframes gp-sab-in { from { opacity: 0; transform: translateY(14px) scale(0.9); } }
.gp-ballbtn {
  right: calc(var(--safe-r) + 12px);
  top: calc(var(--safe-t) + 112px); /* under the gear and the chat button */
  bottom: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(6, 12, 24, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.gp-pu[hidden], .gp-sab[hidden], .gp-ballbtn[hidden] { display: none; }

/* banner (score names, pick-ups, out of bounds) */
.gp-banner {
  position: absolute;
  left: 0; right: 0;
  top: 30%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 9vw, 40px);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 18px rgba(47, 245, 210, 0.75), 0 2px 0 #000;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.gp-banner.is-on { opacity: 1; transform: none; }
.gp-banner.is-birdie { color: #7ffbe4; }
.gp-banner.is-eagle { color: #ffd27a; text-shadow: 0 0 22px rgba(255, 182, 39, 0.9), 0 2px 0 #000; font-size: clamp(30px, 11vw, 48px); }
.gp-banner.is-warn { color: #ffb3d6; text-shadow: 0 0 18px rgba(255, 79, 163, 0.8), 0 2px 0 #000; font-size: clamp(20px, 6.5vw, 30px); }
.gp-banner.is-pick, .gp-banner.is-dim, .gp-banner.is-par { font-size: clamp(18px, 6vw, 26px); }
.gp-banner.is-dim { color: #d6e2f0; text-shadow: 0 2px 10px #000; }

/* sabotage alert */
.gp-alert {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-t) + 112px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px 10px 12px;
  background: rgba(40, 4, 26, 0.92);
  border: 1px solid #ff4fa3;
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.5);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.25s, transform 0.35s var(--ease-back);
}
.gp-alert.is-on { opacity: 1; transform: translate(-50%, 0); }
.gp-alert b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: 0.1em; color: #ff8cc4; }
.gp-alert span { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #fff; }
.gp-alert i, .gp-sab-kind i { flex: none; width: 30px; height: 30px; background: #ff4fa3; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sk-fog { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h13M6 12h15M3 16h12M8 20h10' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sk-wobble { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12c2.5-6 5-6 7.5 0s5 6 7.5 0 3.5-4 5-2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sk-shake { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='4' width='10' height='16' rx='2' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M3 8v8M21 8v8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* fog sabotage: a big vignette that follows your ball (moved with transform), the cup pin stays on top */
.gp-fog {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.gp-fog::before {
  content: '';
  position: absolute;
  left: -150vmax; top: -150vmax;
  width: 300vmax; height: 300vmax;
  background: radial-gradient(circle at 50% 50%, rgba(30, 14, 46, 0) 0, rgba(30, 14, 46, 0) 70px, rgba(34, 18, 52, 0.86) 190px, rgba(26, 12, 40, 0.97) 340px);
}
.gp.sab-fog .gp-fog { opacity: 1; }
.gp-cup-pin {
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.gp.sab-fog .gp-cup-pin { opacity: 1; }
.gp-cup-pin i {
  position: absolute;
  left: -9px; top: -9px;
  width: 18px; height: 18px;
  border: 3px solid #ff4fa3;
  border-radius: 50%;
  box-shadow: 0 0 14px #ff4fa3;
}
.gp-cup-pin span {
  position: absolute;
  left: 0; top: -32px;
  transform: translateX(-50%);
  padding: 2px 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #fff;
  background: #c2186f;
}

/* ghost name tags */
.gp-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gp-tag {
  position: absolute;
  left: 0; top: 0;
  padding: 2px 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  background: rgba(4, 8, 16, 0.62);
  border-bottom: 2px solid var(--c);
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

/* ---- overlays ---- */
.gp-over { position: absolute; inset: 0; pointer-events: none; }
.gp-over button, .gp-over .panel-full, .gp-over .gp-card { pointer-events: auto; }
.gp[data-phase='final'] .gp-over { background: rgba(3, 5, 12, 0.86); overflow-y: auto; pointer-events: auto; padding: calc(var(--safe-t) + 14px) calc(var(--safe-r) + var(--gutter)) calc(var(--safe-b) + 18px) calc(var(--safe-l) + var(--gutter)); }
.gp[data-phase='final'] .gp-hud, .gp[data-phase='card'] .gp-hud > :not(.gp-hole) { display: none; }

/* zone title card */
.gp-zone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(ellipse at 50% 50%, rgba(4, 8, 16, 0.55), rgba(2, 3, 8, 0.92) 70%);
  animation: gp-fade 0.35s both;
}
.gp-zone.out, .gp-par.out { opacity: 0; transition: opacity 0.35s; }
@keyframes gp-fade { from { opacity: 0; } }
.gp-zone-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.4em; color: #8fe9d8; animation: gp-rise 0.6s var(--ease) both; }
.gp-zone-name {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 10.5vw, 52px);
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 24px var(--zc, #2ff5d2);
  animation: gp-rise 0.7s 0.1s var(--ease) both;
}
.gp-zone-line { width: min(70vw, 260px); height: 2px; background: linear-gradient(90deg, transparent, var(--zc, #2ff5d2), transparent); transform-origin: center; animation: gp-line 0.8s 0.25s var(--ease) both; }
.gp-zone-sub { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: #c8d6e6; animation: gp-rise 0.6s 0.35s var(--ease) both; }
.gp-zone[data-zone='rooftops'] { --zc: #2ff5d2; }
.gp-zone[data-zone='cyber'] { --zc: #36e6ff; }
.gp-zone[data-zone='arcade'] { --zc: #ff2bd6; }
@keyframes gp-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes gp-line { from { transform: scaleX(0); } }

/* par card (over the flyover) */
.gp-par {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 36px);
  width: min(calc(100% - 32px), 340px);
  transform: translateX(-50%);
  padding: 14px 18px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'top par' 'name par' 'tip tip' 'skip skip';
  column-gap: 12px;
  row-gap: 4px;
  background: linear-gradient(160deg, rgba(6, 22, 26, 0.92), rgba(18, 6, 22, 0.92));
  border: 1px solid rgba(47, 245, 210, 0.5);
  box-shadow: 0 0 30px rgba(47, 245, 210, 0.18);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  animation: gp-card-in 0.5s var(--ease) both;
}
@keyframes gp-card-in { from { opacity: 0; transform: translate(-50%, 18px); } }
.gp-par.out { transform: translate(-50%, 0); }
.gp-par-top { grid-area: top; display: flex; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #8fe9d8; }
.gp-par-top span + span { color: #9fb5c9; }
.gp-par-name { grid-area: name; font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: 0.05em; color: #fff; line-height: 1.1; }
.gp-par-par { grid-area: par; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.gp-par-par small { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: #ff9bcb; }
.gp-par-par b { font-family: var(--font-num); font-size: 40px; line-height: 1; font-weight: 700; color: #ff4fa3; text-shadow: 0 0 16px rgba(255, 79, 163, 0.6); }
.gp-par-tip { grid-area: tip; margin-top: 6px; font-size: 14px; line-height: 1.35; color: #d3e3ee; }
.gp-par-skip { grid-area: skip; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: #8c9fb8; }

/* scorecard between holes */
.gp-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 20px), 480px);
  max-height: calc(100% - var(--safe-t) - var(--safe-b) - 100px);
  overflow-y: auto;
  transform: translate(-50%, -46%);
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(170deg, rgba(5, 16, 22, 0.95), rgba(14, 5, 20, 0.95));
  border: 1px solid rgba(47, 245, 210, 0.45);
  box-shadow: 0 0 40px rgba(47, 245, 210, 0.15);
  animation: gp-card-up 0.45s var(--ease) both;
}
@keyframes gp-card-up { from { opacity: 0; transform: translate(-50%, -40%); } }
.gc-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: #8fe9d8; text-align: center; }
.gc-title { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.06em; color: #fff; text-align: center; text-shadow: 0 0 18px rgba(255, 79, 163, 0.55); }
.gc-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.gc-line { display: grid; grid-template-columns: 24px 1fr auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 4px 6px; background: rgba(255, 255, 255, 0.04); border-left: 2px solid var(--c); }
.gc-line .avatar { grid-row: span 2; }
.gc-name { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.gc-what { grid-column: 2; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: #9fb5c9; }
.gc-line b { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-num); font-size: 20px; color: #fff; }
.gc-line.is-best { background: rgba(47, 245, 210, 0.12); }
.gc-line.is-best .gc-what { color: #7ffbe4; }
.gc-legend { display: flex; justify-content: center; gap: 12px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: #9fb5c9; }
.gc-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; }
.gs-l-ace::before { background: #ffb627; border-radius: 50%; }
.gs-l-eagle::before { border: 2px double #7ffbe4; border-radius: 50%; }
.gs-l-birdie::before { border: 1px solid #7ffbe4; border-radius: 50%; }
.gs-l-bogey::before { border: 1px solid #ff8cc4; }
.gc-next { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: #ffb3d6; text-align: center; }
.gc-timer { height: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.gc-timer i { display: block; height: 100%; background: linear-gradient(90deg, #2ff5d2, #ff4fa3); transform-origin: left; animation: gc-drain linear both; }
@keyframes gc-drain { to { transform: scaleX(0); } }

/* the golf scorecard table (between holes + final) */
.gs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gs { width: 100%; border-collapse: collapse; font-family: var(--font-num); font-size: 12px; color: #e6f1f8; }
.gs th, .gs td { height: 26px; padding: 0 1px; text-align: center; font-weight: 700; }
.gs thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: #8fe9d8; border-bottom: 1px solid rgba(47, 245, 210, 0.3); }
.gs .gs-par td, .gs .gs-par th { color: #9fb5c9; font-size: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gs .gs-name { text-align: left; padding-left: 4px; max-width: 74px; width: 74px; }
.gs tbody .gs-name span { display: block; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-ui); font-size: 11px; color: #fff; border-left: 2px solid var(--c); padding-left: 5px; }
.gs tbody tr.is-me { background: rgba(47, 245, 210, 0.08); }
.gs td span { display: inline-grid; place-items: center; width: 21px; height: 21px; }
.gs .gs-birdie span { border: 1px solid #7ffbe4; border-radius: 50%; color: #7ffbe4; }
.gs .gs-eagle span { border: 3px double #7ffbe4; border-radius: 50%; color: #7ffbe4; }
.gs .gs-ace span { background: #ffb627; border-radius: 50%; color: #1c1000; }
.gs .gs-bogey span { border: 1px solid #ff8cc4; color: #ffb3d6; }
.gs .gs-dbl span { border: 3px double #ff8cc4; color: #ffb3d6; }
.gs .gs-tot { width: 42px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.gs td.gs-tot b { display: block; font-size: 14px; color: #fff; line-height: 1.1; }
.gs td.gs-tot small { display: block; font-size: 10px; color: #ffb3d6; }

/* final extras */
.gf-extra { display: flex; flex-direction: column; gap: 14px; }
.gf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gf-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(47, 245, 210, 0.22); text-align: center; }
.gf-stat b { font-family: var(--font-num); font-size: 20px; color: #fff; }
.gf-stat small { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: #9fb5c9; line-height: 1.3; }

/* ---- ACE cinematic ---- */
.gp-ace { position: absolute; inset: 0; pointer-events: auto; animation: gp-fade 0.3s both; }
.gp-ace.out { opacity: 0; transition: opacity 0.3s; }
.gp-ace-bars::before, .gp-ace-bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 11vh;
  background: #000;
  animation: gp-bar 0.45s var(--ease) both;
}
.gp-ace-bars::before { top: 0; transform-origin: top; }
.gp-ace-bars::after { bottom: 0; transform-origin: bottom; }
@keyframes gp-bar { from { transform: scaleY(0); } }
.gp-ace-card { position: absolute; left: 0; right: 0; top: 16vh; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gp-ace-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.34em; color: #ffd27a; animation: gp-rise 0.5s 0.2s var(--ease) both; }
.gp-ace-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 26vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 30px var(--c), 0 0 60px rgba(255, 79, 163, 0.6), 0 4px 0 #000;
  animation: gp-slam 0.6s 0.25s var(--ease-back) both;
}
@keyframes gp-slam { from { opacity: 0; transform: scale(1.8); } }
.gp-ace.is-hit .gp-ace-title { animation: gp-hit 0.5s var(--ease) both; }
@keyframes gp-hit { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.gp-ace-who { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--c); animation: gp-rise 0.5s 0.45s var(--ease) both; }
.gp-ace-who span { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: 0.08em; color: #fff; }
.gp-ace-sub { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; color: #7ffbe4; animation: gp-rise 0.5s 0.55s var(--ease) both; }
.gp-ace-skip {
  position: absolute;
  right: calc(var(--safe-r) + 14px);
  bottom: calc(11vh + 12px);
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---- sabotage sheet ---- */
.gp-sab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gp-sab-target {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--c);
  overflow: hidden;
}
.gp-sab-target span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-sab-target[aria-checked='true'] { background: rgba(255, 79, 163, 0.18); border-color: #ff4fa3; }
.gp-sab-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gp-sab-kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 96px;
  padding: 10px 6px;
  color: var(--text);
  background: rgba(255, 79, 163, 0.1);
  border: 1px solid rgba(255, 79, 163, 0.55);
  transition: opacity 0.2s, transform 0.12s;
}
.gp-sab-kind:active { transform: scale(0.95); }
.gp-sab-kind:disabled { opacity: 0.4; }
.gp-sab-kind b { font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: 0.1em; }
.gp-sab-kind small { font-size: 11px; line-height: 1.25; color: var(--text-dim); text-align: center; }

/* ---- ball customization (lobby + in-game) ---- */
.gb-ball {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0, color-mix(in srgb, var(--c) 40%, #fff) 18%, var(--c) 52%, color-mix(in srgb, var(--c) 45%, #000) 100%);
  box-shadow: 0 0 calc(var(--s) * 0.35) var(--c);
}
.gb-ball.gb-chrome {
  background: radial-gradient(circle at 34% 28%, #fff 0, #fff 8%, color-mix(in srgb, var(--c) 30%, #cfd6e6) 26%, #4a5266 52%, color-mix(in srgb, var(--c) 50%, #e6ecf6) 74%, #2a2f3c 100%);
  box-shadow: 0 0 calc(var(--s) * 0.18) color-mix(in srgb, var(--c) 60%, transparent);
}
.gb-ball.gb-glass {
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.2) 22%, color-mix(in srgb, var(--c) 35%, transparent) 55%, color-mix(in srgb, var(--c) 75%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--c) 70%, #fff);
  box-shadow: 0 0 calc(var(--s) * 0.25) color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 calc(var(--s) * 0.2) color-mix(in srgb, var(--c) 60%, transparent);
}
.gb-sheet .sheet-title { margin: 0; }
.gb-preview { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; background: radial-gradient(ellipse at 50% 70%, rgba(47, 245, 210, 0.16), transparent 70%); }
.gb-preview .gb-ball { z-index: 1; }
.gb-trail { position: absolute; left: 50%; top: 50%; width: 130px; height: 20px; margin: -10px 0 0 -150px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.gb-trail i { display: block; background: var(--c); }
.gb-trail.gt-ribbon { gap: 0; }
.gb-trail.gt-ribbon i { height: 14px; flex: 1; opacity: 0.2; }
.gb-trail.gt-ribbon i:nth-child(2) { opacity: 0.35; height: 16px; }
.gb-trail.gt-ribbon i:nth-child(3) { opacity: 0.5; height: 18px; }
.gb-trail.gt-ribbon i:nth-child(4) { opacity: 0.7; height: 20px; }
.gb-trail.gt-ribbon i:nth-child(5) { opacity: 0.85; height: 22px; }
.gb-trail.gt-sparks i { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 8px var(--c); }
.gb-trail.gt-sparks i:nth-child(odd) { transform: translateY(-7px); }
.gb-trail.gt-sparks i:nth-child(3n) { transform: translateY(6px); }
.gb-trail.gt-pixels i { width: 9px; height: 9px; }
.gb-trail.gt-pixels i:nth-child(1) { opacity: 0.25; width: 5px; height: 5px; }
.gb-trail.gt-pixels i:nth-child(2) { opacity: 0.4; width: 6px; height: 6px; }
.gb-trail.gt-pixels i:nth-child(3) { opacity: 0.6; width: 7px; height: 7px; }
.gb-trail.gt-pixels i:nth-child(4) { opacity: 0.8; width: 8px; height: 8px; }
.gb-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.gb-color { aspect-ratio: 1; min-height: 34px; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); transition: transform 0.12s; }
.gb-color[aria-checked='true'] { border-color: #fff; transform: scale(1.08); }
.gb-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gb-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
}
.gb-opt[aria-checked='true'] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.gb-tr-icon { width: 22px; height: 10px; background: linear-gradient(90deg, transparent, currentColor); }
.gb-tr-icon.gti-sparks { background: radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 0 / 6px 5px; }
.gb-tr-icon.gti-pixels { background: linear-gradient(90deg, transparent 0 20%, currentColor 20% 35%, transparent 35% 50%, currentColor 50% 70%, transparent 70% 78%, currentColor 78%); height: 7px; }
.gb-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-dim); }


.gp-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--text-dim); }
.gp-error b { font-family: var(--font-display); color: #fff; letter-spacing: 0.1em; }

@media (prefers-reduced-motion: reduce) {
  .gp-zone, .gp-zone *, .gp-par, .gp-card, .gp-ace, .gp-ace *, .gp-sab { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  .gc-timer i { animation: none; }
}
.gp-tags.is-hidden { opacity: 0; }
.gs { table-layout: fixed; }

/* the ACE cinematic owns the screen */
.gp.is-ace .gp-hud { opacity: 0; transition: opacity 0.3s; }
.gp-ace-sub, .gp-ace-kicker { text-shadow: 0 2px 8px #000, 0 0 2px #000; }
.gf-stat b { font-size: clamp(14px, 4.6vw, 20px); white-space: nowrap; }
.gpb-more { padding: 2px 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #b7c6d8; text-shadow: 0 1px 4px #000; }
