﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --energy: 0.25;
  --bg-a: #030712;
  --bg-b: #0a1230;
  --text-main: #e2e8f0;
  --panel: rgba(4, 15, 34, 0.56);
  --panel-border: rgba(56, 189, 248, 0.14);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.24);
  --ink-dim: rgba(148, 163, 184, 0.7);
  --ink-faint: rgba(148, 163, 184, 0.42);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.7) rgba(15, 23, 42, 0.5);
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 191, 36, 0.08), transparent 42%),
    radial-gradient(circle at 16% 28%, rgba(20, 184, 166, 0.1), transparent 36%),
    linear-gradient(160deg, var(--bg-a), var(--bg-b));
}

.app-bg {
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  transform: translateZ(0);
  transition: opacity 0.5s ease;
}

.orb-a {
  width: 44vw;
  height: 44vw;
  background: #0ea5e9;
  left: -12vw;
  top: -8vw;
  animation: driftA 12s ease-in-out infinite alternate;
}

.orb-b {
  width: 38vw;
  height: 38vw;
  background: #34d399;
  right: -12vw;
  bottom: -8vw;
  animation: driftB 14s ease-in-out infinite alternate;
}

.orb-c {
  width: 30vw;
  height: 30vw;
  background: #f59e0b;
  left: 40vw;
  top: 35vh;
  animation: driftC 10s ease-in-out infinite alternate;
}

.glass-panel,
.glass-sub {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-radius: 1.1rem;
}

.game-shell {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12),
    inset 0 0 0 1px rgba(15, 23, 42, 0.45),
    0 24px 90px rgba(2, 6, 23, 0.55);
}

footer {
  position: relative;
  z-index: 30;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 1rem;
}

.arena-kicker {
  letter-spacing: 0.24em;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.05rem;
  flex-wrap: wrap;
}

.brand-logo {
  width: clamp(58px, 8.5vw, 82px);
  height: auto;
  border-radius: 0.8rem;
  filter: drop-shadow(0 10px 24px rgba(2, 6, 23, 0.55));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-copy h1 {
  margin: 0.05rem 0 0;
  line-height: 1.02;
}

.tutorial-kicker {
  letter-spacing: 0.2em;
}

.play-panel {
  min-height: 360px;
  position: relative;
}

.dice-canvas {
  height: 280px;
}

.board-wrap {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(2, 6, 23, 0.65),
    inset 0 -40px 80px rgba(2, 6, 23, 0.45);
  background:
    radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
}

.scorecard-shell {
  border: none;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05), 0 14px 34px rgba(2, 6, 23, 0.22);
}

.control-btn,
.accent-btn,
.player-pill,
.die-chip,
.score-row {
  transition: transform 0.18s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.control-btn,
.accent-btn {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.45rem 0.72rem;
  font-size: 0.86rem;
  background: rgba(9, 20, 45, 0.78);
  color: #dbeafe;
}

.control-btn:hover,
.accent-btn:hover,
.score-row:hover,
.die-chip:hover {
  transform: translateY(-1px);
}

.accent-btn {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.45), rgba(34, 211, 238, 0.24));
  color: #f8fafc;
}

.control-btn:disabled,
.accent-btn:disabled,
.score-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-btn {
  border: none;
  background: transparent;
  color: #bfdbfe;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.link-btn:hover {
  color: #e0f2fe;
  text-decoration-color: #e0f2fe;
}

.link-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.player-pill {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-size: 0.86rem;
  background: rgba(2, 132, 199, 0.18);
}

.player-pill.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.34rem;
  max-height: none;
  overflow: visible;
  padding-right: 0.2rem;
}

.score-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.score-col {
  display: grid;
  gap: 0.3rem;
}

.score-group-title {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
  padding: 0.3rem 0.2rem 0.15rem;
  color: color-mix(in oklab, var(--accent) 35%, #f8fafc);
}

.score-summary {
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 0.68rem;
  padding: 0.42rem 0.58rem;
  font-size: 0.83rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.22rem;
}

.score-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.24rem;
}

.score-totals div {
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 0.55rem;
  padding: 0.26rem 0.36rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.06);
  padding: 0.42rem 0.58rem;
  background: rgba(8, 20, 46, 0.62);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.22);
  text-align: left;
}

.score-row.suggested {
  border-color: rgba(34, 197, 94, 0.65);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.16));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 10px 18px rgba(34, 197, 94, 0.1);
}

.score-row.locked {
  opacity: 0.36;
  filter: saturate(0.7);
}

.score-row.scored {
  opacity: 0.48;
  filter: saturate(0.7);
  background: rgba(10, 20, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.04);
}

.score-row.ghost {
  border-color: rgba(56, 189, 248, 0.22);
}

.score-row.ghost-zero {
  border-color: rgba(148, 163, 184, 0.18);
}

.score-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.score-name {
  font-size: 0.93rem;
}

.score-help {
  margin-top: 0.08rem;
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  max-width: 19ch;
}

.score-value {
  font-size: 1.08rem;
  min-width: 3.1rem;
  text-align: right;
}

.score-value.final {
  color: #e2e8f0;
  font-weight: 800;
}

.score-value.preview-positive {
  color: rgba(56, 189, 248, 0.98);
  font-weight: 700;
}

.score-value.preview-zero {
  color: rgba(148, 163, 184, 0.62);
  font-weight: 700;
}

.score-value.hint {
  color: rgba(148, 163, 184, 0.3);
  font-weight: 700;
}

.score-value.empty {
  color: rgba(148, 163, 184, 0.52);
  font-weight: 600;
}

.score-row.selectable .score-value {
  opacity: 1;
}

.score-row.selectable:hover {
  transform: translateY(-1px) scale(1.012);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.26), 0 10px 20px rgba(2, 132, 199, 0.2);
}

.score-row.selectable {
  opacity: 1;
  background: linear-gradient(100deg, rgba(14, 165, 233, 0.08), rgba(34, 211, 238, 0.02) 42%, rgba(8, 20, 46, 0.72));
}

.score-row.selectable .score-name {
  color: #e2e8f0;
}

.score-row.selectable .score-help {
  color: rgba(186, 210, 233, 0.8);
}

.die-pips {
  display: flex;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  min-height: 2.95rem;
  margin: 0.3rem auto 0.15rem;
  padding: 0;
  text-align: center;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}

.dice-values-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  width: 100%;
  margin: 0 auto;
}

.dice-values-row.rolling .die-chip {
  transform: none;
}

.die-chip {
  width: 2.62rem;
  height: 2.62rem;
  min-width: 2.62rem;
  border-radius: 0.55rem;
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.92) 0%, rgba(203, 213, 225, 0.9) 92%);
  box-shadow: 0 8px 14px rgba(2, 6, 23, 0.34), inset 0 -2px 6px rgba(30, 41, 59, 0.15);
  border: 1px solid rgba(203, 213, 225, 0.3);
  padding: 0;
  color: #0f172a;
}

.die-chip:hover {
  transform: translateY(-1px) scale(1.03);
}

.die-chip:disabled {
  cursor: default;
}

.die-pip-value {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0.01em;
  min-width: 0.6rem;
}

.die-chip.held {
  background: linear-gradient(160deg, #dcfce7 0%, #86efac 90%);
  border-color: rgba(34, 197, 94, 0.44);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.18), 0 8px 12px rgba(2, 6, 23, 0.28), inset 0 -2px 5px rgba(21, 128, 61, 0.14);
  color: #064e3b;
}

.die-chip.rolling-pending {
  opacity: 0.26;
  filter: saturate(0.6);
}

.risk-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.risk-track {
  width: 100%;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.2);
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
  transition: width 0.35s ease;
}

.tutorial-coach {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(3, 18, 40, 0.56);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  animation: coachFade 250ms ease;
  max-width: min(90vw, 430px);
  margin: 0.2rem auto 0;
  text-align: center;
  justify-content: center;
}

.coach-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.66);
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: min(92vw, 600px);
  padding: 1rem;
  border-radius: 1rem;
}

.winner-banner {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  z-index: 45;
  background: rgba(34, 197, 94, 0.24);
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.victory-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(4px);
}

.victory-card {
  width: min(92vw, 560px);
  border-radius: 1.1rem;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(circle at 20% 18%, rgba(56, 189, 248, 0.22), transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(45, 212, 191, 0.2), transparent 44%),
    rgba(6, 18, 40, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.victory-title {
  margin: 0 0 0.8rem;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 800;
}

.champion-block {
  border-radius: 1rem;
  padding: 0.9rem 0.8rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.36);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.champ-crown {
  font-size: 0.85rem;
  color: #fde68a;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.champ-name {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.champ-score {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #a5f3fc;
}

.victory-ranks {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.34rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  border-radius: 0.7rem;
  padding: 0.44rem 0.58rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.rank-pos {
  font-weight: 800;
  color: #93c5fd;
}

.rank-name {
  font-weight: 700;
}

.rank-score {
  font-weight: 800;
  color: #e2e8f0;
}

.victory-new-game {
  margin: 0.82rem auto 0;
  display: block;
  min-width: 10.8rem;
}

.runtime-notice {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 132, 199, 0.2);
  border-radius: 0.7rem;
  font-size: 0.86rem;
  padding: 0.45rem 0.65rem;
}

.runtime-notice.error {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(127, 29, 29, 0.35);
}

.score-pick-notice {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 3.2rem;
  z-index: 12;
  pointer-events: none;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(3, 105, 161, 0.22);
  border-radius: 0.68rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.score-pick-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.roll-fab {
  position: sticky;
  bottom: 0.8rem;
  z-index: 18;
  margin: 0 auto;
  display: block;
  border: 1px solid rgba(186, 230, 253, 0.7);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.9rem 2.1rem;
  min-width: 13rem;
  min-height: 3.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background:
    radial-gradient(circle at 22% 20%, rgba(224, 242, 254, 0.35), transparent 42%),
    linear-gradient(145deg, #0ea5e9 8%, #06b6d4 52%, #2dd4bf 100%);
  box-shadow:
    0 14px 30px rgba(2, 132, 199, 0.45),
    inset 0 -2px 8px rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.roll-fab:hover {
  transform: translateY(-1px) scale(1.015);
  filter: brightness(1.02);
}

.roll-fab:active {
  transform: translateY(1px) scale(0.99);
}

.roll-fab:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.roll-fab[data-state='score'] {
  background:
    radial-gradient(circle at 22% 20%, rgba(254, 249, 195, 0.32), transparent 42%),
    linear-gradient(145deg, #0284c7 8%, #0891b2 52%, #0f766e 100%);
}

.roll-fab[data-state='waiting'] {
  background:
    radial-gradient(circle at 22% 20%, rgba(226, 232, 240, 0.25), transparent 42%),
    linear-gradient(145deg, #1d4ed8 8%, #0f766e 52%, #0f766e 100%);
  opacity: 0.85;
}

.start-modal {
  width: min(92vw, 520px);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
}

.player-count-buttons {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(8, 20, 46, 0.58);
  border-radius: 999px;
  padding: 0.32rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.player-count-btn {
  border: none;
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  transition: transform 160ms ease, background-color 200ms ease, color 200ms ease;
}

.player-count-btn:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.2);
  color: #f0f9ff;
}

.player-count-btn.active {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.82), rgba(34, 211, 238, 0.72));
  color: #082f49;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 6px 12px rgba(2, 132, 199, 0.35);
}

.turn-info {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.turn-player {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.turn-rolls {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  color: #93c5fd;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(14, 165, 233, 0.18);
}

.player-name-input {
  width: 100%;
  border: none;
  border-radius: 0.62rem;
  padding: 0.45rem 0.6rem;
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

.player-name-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.58), 0 0 0 2px rgba(34, 211, 238, 0.22);
}

.hidden {
  display: none !important;
}

.guided-target {
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.22);
}

.roll-fab.guided-target {
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.42),
    0 0 22px rgba(34, 197, 94, 0.24),
    0 14px 30px rgba(2, 132, 199, 0.45),
    inset 0 -2px 8px rgba(255, 255, 255, 0.22);
}

.player-switch {
  animation-duration: 980ms;
  animation-timing-function: cubic-bezier(0.2, 0.72, 0.22, 1);
  animation-fill-mode: both;
}

.tutorial-tip {
  display: block;
  text-align: center;
  margin: 0.2rem auto 0;
  opacity: 0.92;
  width: 100%;
}

.player-switch.switch-forward {
  animation-name: playerSwitchForward;
}

.player-switch.switch-backward {
  animation-name: playerSwitchBackward;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(14, 116, 144, 0.9));
  border: 2px solid rgba(15, 23, 42, 0.55);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(6, 182, 212, 0.95));
}

@media (max-width: 1023px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .play-panel {
    min-height: 340px;
  }

  .dice-canvas {
    height: 270px;
  }

  .score-columns {
    grid-template-columns: 1fr;
  }

  .score-totals {
    grid-template-columns: 1fr;
  }

  .score-grid {
    max-height: 320px;
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .orb-a,
  .orb-b,
  .orb-c {
    width: 70vw;
    height: 70vw;
  }

  .score-grid {
    max-height: 240px;
  }

  .play-panel {
    min-height: 300px;
  }

  .dice-canvas {
    height: 210px;
  }

  .roll-fab {
    width: calc(100% - 1rem);
    max-width: 23rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .score-pick-notice {
    left: 0.65rem;
    right: 0.65rem;
    top: 2.95rem;
    font-size: 0.8rem;
  }
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(20px, -12px, 0);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-18px, 18px, 0);
  }
}

@keyframes driftC {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(12px, -16px, 0);
  }
}

@keyframes playerSwitch {
  from {
    transform: translateY(8px);
    opacity: 0.35;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes playerSwitchForward {
  from {
    transform: translateX(28px);
    opacity: 0.12;
    filter: blur(3px);
  }
  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes playerSwitchBackward {
  from {
    transform: translateX(-28px);
    opacity: 0.12;
    filter: blur(3px);
  }
  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes coachFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
