:root {
  --ink: #071b2b;
  --ink-soft: #0f2d42;
  --paper: #f4f0e5;
  --white: #ffffff;
  --cyan: #78e8ff;
  --lime: #dff45b;
  --coral: #ff7f68;
  --muted: #7e98a7;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--white);
  background: var(--ink);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(120, 232, 255, 0.13), transparent 42%),
    var(--ink);
  overscroll-behavior: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
  min-height: 100dvh;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
body.modal-open { overflow: hidden; }

.app-shell {
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ranking-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(223, 244, 91, 0.28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(223, 244, 91, 0.07);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 5px solid var(--lime);
  box-shadow: 0 0 20px rgba(223, 244, 91, 0.45);
}

.sensor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b6cad4;
  font-size: 11px;
  font-weight: 700;
}

.sensor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78909b;
}

.sensor-chip[data-state="ready"] { color: var(--lime); border-color: rgba(223, 244, 91, 0.3); }
.sensor-chip[data-state="ready"] .sensor-dot { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.sensor-chip[data-state="blocked"] .sensor-dot { background: var(--coral); }

.scoreboard {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  gap: 9px;
  margin: 21px 0 14px;
}

.score-main, .score-item {
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.score-main {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  border-color: rgba(223, 244, 91, 0.34);
  background: linear-gradient(140deg, rgba(223, 244, 91, 0.14), rgba(255, 255, 255, 0.035));
}

.score-main strong {
  font-size: 42px;
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.score-label, .score-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.score-main .score-label { margin-bottom: 2px; }

.score-item strong {
  display: block;
  margin-top: 11px;
  font-size: 24px;
  line-height: 1;
}

.arena {
  position: relative;
  height: min(61dvh, 610px);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(120, 232, 255, 0.19);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(6, 29, 44, 0.02), rgba(6, 29, 44, 0.78)),
    linear-gradient(150deg, #17465e, #0a263a 64%, #071b2b);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.arena::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  transform: translateX(-100%);
}

.arena[data-state="success"]::after { animation: shine 520ms ease; }

.arena-lights {
  position: absolute;
  inset: -30% -20% auto;
  height: 52%;
  background: radial-gradient(ellipse, rgba(120, 232, 255, 0.22), transparent 58%);
  filter: blur(18px);
}

.court {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 39%;
  bottom: -15%;
  border: 2px solid rgba(120, 232, 255, 0.34);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(120, 232, 255, 0.22) 50%, transparent 50.3%),
    linear-gradient(180deg, rgba(58, 137, 160, 0.17), rgba(34, 103, 119, 0.04));
}

.court-line { position: absolute; background: rgba(120, 232, 255, 0.3); }
.line-center { top: 0; bottom: 0; left: 50%; width: 1px; }
.line-service { left: 14%; right: 14%; top: 42%; height: 1px; }
.line-left { left: 26%; top: 0; bottom: 0; width: 1px; transform: rotate(11deg); transform-origin: top; }
.line-right { right: 26%; top: 0; bottom: 0; width: 1px; transform: rotate(-11deg); transform-origin: top; }

.net {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 12%;
  height: 19%;
  border-top: 4px solid #ecf7f7;
  border-bottom: 1px solid rgba(236, 247, 247, 0.4);
  background:
    repeating-linear-gradient(90deg, rgba(236, 247, 247, 0.25) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(236, 247, 247, 0.2) 0 1px, transparent 1px 12px);
  transform: perspective(300px) rotateX(4deg);
}

.opponent {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 50%;
  width: 82px;
  height: 120px;
  transform: translateX(-50%) scale(0.74);
  transform-origin: bottom;
  opacity: 0.92;
}

.opponent-head {
  position: absolute;
  left: 31px;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--cyan);
}

.opponent-body {
  position: absolute;
  left: 23px;
  top: 28px;
  width: 40px;
  height: 72px;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), #2b91ae);
  box-shadow: 0 0 28px rgba(120, 232, 255, 0.22);
}

.opponent-racket {
  position: absolute;
  left: 58px;
  top: 28px;
  width: 52px;
  height: 2px;
  background: #c6f5ff;
  transform: rotate(-35deg);
  transform-origin: left;
}

.opponent-racket::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -14px;
  width: 26px;
  height: 31px;
  border: 2px solid #c6f5ff;
  border-radius: 50%;
}

.arena[data-state="return"] .opponent { animation: opponentHit 360ms ease; }

.sound-cue {
  position: absolute;
  z-index: 7;
  top: 21%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.sound-cue[data-side="left"] { left: 26%; }
.sound-cue[data-side="right"] { left: 74%; }
.sound-cue b { position: relative; z-index: 2; font-size: 18px; letter-spacing: 0.04em; }
.sound-cue.active { animation: pingBurst 520ms ease-out; }

.sound-wave {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.sound-cue.active .wave-one { animation: soundWave 520ms ease-out; }
.sound-cue.active .wave-two { animation: soundWave 520ms 80ms ease-out; }

.shuttle {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 54%;
  width: 42px;
  height: 62px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(28deg);
}

.shuttle-head {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 19px;
  height: 16px;
  border-radius: 50% 50% 42% 42%;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.shuttle-feathers {
  position: absolute;
  left: 3px;
  top: 0;
  width: 36px;
  height: 50px;
  clip-path: polygon(28% 100%, 0 0, 100% 0, 72% 100%);
  background: repeating-linear-gradient(90deg, var(--white) 0 3px, transparent 3px 8px);
}

.shuttle.incoming[data-side="left"] { animation: shuttleInLeft 1s cubic-bezier(.16,.76,.22,1) forwards; }
.shuttle.incoming[data-side="right"] { animation: shuttleInRight 1s cubic-bezier(.16,.76,.22,1) forwards; }
.shuttle.returning[data-side="left"] { animation: shuttleOutLeft 520ms ease-in forwards; }
.shuttle.returning[data-side="right"] { animation: shuttleOutRight 520ms ease-in forwards; }

.game-copy {
  position: absolute;
  z-index: 10;
  left: 24px;
  right: 24px;
  top: 52%;
  text-align: center;
  pointer-events: none;
}

.game-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.game-copy strong {
  display: block;
  font-size: clamp(24px, 7vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.game-copy > span:last-child {
  display: block;
  margin-top: 10px;
  color: #a8c1cd;
  font-size: 12px;
}

.arena[data-state="return"] .game-copy strong { color: var(--lime); }
.arena[data-state="gameover"] .game-copy { opacity: 0.18; }

.deadline {
  position: absolute;
  z-index: 11;
  left: 16%;
  right: 16%;
  top: 68%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.deadline.active { opacity: 1; }
.deadline span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--lime));
  transform: scaleX(1);
  transform-origin: left;
}

.swing-hint {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: min(82%, 320px);
  min-height: 64px;
  padding: 12px 20px;
  border: 1px solid rgba(223, 244, 91, 0.34);
  border-radius: 22px;
  color: var(--lime);
  background: rgba(223, 244, 91, 0.08);
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.swing-icon { font-size: 29px; font-weight: 900; }
.swing-hint > span:last-child { font-size: 14px; font-weight: 900; }

.result-card {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  width: min(84%, 360px);
  max-height: calc(100% - 30px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(7, 27, 43, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -52%);
  backdrop-filter: blur(18px);
}

.result-card[hidden] { display: none; }
.result-card::-webkit-scrollbar { display: none; }
.result-card { scrollbar-width: none; }
.result-label { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; }
.result-card > strong { display: block; margin: 8px 0 5px; color: var(--lime); font-size: 44px; letter-spacing: -0.06em; }
.result-card > p { margin: 0 0 13px; color: #b1c6d0; font-size: 12px; line-height: 1.55; }
.result-card button, .start-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
  cursor: pointer;
}

.ranking-form {
  margin: 15px 0 10px;
  text-align: left;
}

.ranking-form[hidden] { display: none; }
.ranking-form label {
  display: block;
  margin-bottom: 7px;
  color: #9db4c0;
  font-size: 10px;
  font-weight: 800;
}

.nickname-row { display: grid; grid-template-columns: 1fr 68px; gap: 7px; }
.nickname-row input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.nickname-row input::placeholder { color: #688290; }
.nickname-row button { min-height: 44px; border-radius: 13px; }
.nickname-row button:disabled { opacity: 0.55; }

.result-card .ranking-status {
  min-height: 18px;
  margin: 8px 0 12px;
  color: #91aab6;
  font-size: 10px;
  line-height: 1.5;
}

.result-actions { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 8px; }
.result-actions button { min-height: 46px; }
.result-actions .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c9dce5;
  background: rgba(255, 255, 255, 0.06);
}

.status-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 98px;
  gap: 10px;
  margin-top: 13px;
}

.status-block, .reaction-box {
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.status-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.status-head span, .reaction-box span { color: var(--muted); }
.status-head b { color: var(--white); }
.level-track, .motion-track {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}
.level-track span, .motion-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.motion-track span { background: var(--lime); }
.reaction-box span { display: block; font-size: 9px; }
.reaction-box strong { display: block; margin-top: 11px; font-size: 18px; }

.guide {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.guide > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 232, 255, 0.36);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.guide p { margin: 0; color: #a9bec9; font-size: 12px; line-height: 1.5; }
.guide b { color: var(--white); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px 4px;
  color: #78909f;
  font-size: 10px;
}

footer button {
  border: 0;
  color: #a5c1ce;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(3, 14, 23, 0.77);
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.intro.closed { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-card {
  width: min(100%, 520px);
  padding: 30px 25px max(25px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background: #0d2a3e;
  box-shadow: var(--shadow);
}

.intro-tag { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: 0.16em; }
.intro h1 { margin: 13px 0 17px; font-size: clamp(36px, 10vw, 54px); line-height: 1.02; letter-spacing: -0.065em; }
.intro p { margin: 0; color: #a9c1cc; font-size: 14px; line-height: 1.72; }
.intro-info { display: grid; gap: 7px; margin: 20px 0; color: #d5e4ea; font-size: 12px; }
.start-button { font-size: 15px; }
.start-button:disabled { opacity: 0.6; }
.intro-ranking-button {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  color: #c8dce5;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.intro-error { margin: 0 0 14px !important; padding: 12px 13px; border: 1px solid rgba(255, 127, 104, 0.28); border-radius: 13px; color: #ffd5cd !important; background: rgba(255, 127, 104, 0.08); font-size: 11px !important; line-height: 1.55 !important; }
.intro-error[hidden] { display: none; }
.intro small { display: block; margin-top: 14px; color: #6f8b99; font-size: 9px; line-height: 1.5; text-align: center; }

.ranking-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(3, 14, 23, 0.82);
  backdrop-filter: blur(16px);
}

.ranking-modal[hidden] { display: none; }
.ranking-card {
  width: min(100%, 520px);
  max-height: min(78dvh, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background: #0d2a3e;
  box-shadow: var(--shadow);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px 16px;
}
.ranking-head span { color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: 0.16em; }
.ranking-head h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -0.045em; }
.ranking-head button {
  min-width: 52px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #bfd3dc;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.prize-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 0 15px 14px;
}
.prize-guide div {
  padding: 10px 8px;
  border: 1px solid rgba(223, 244, 91, 0.17);
  border-radius: 13px;
  background: rgba(223, 244, 91, 0.055);
  text-align: center;
}
.prize-guide strong { display: block; color: var(--lime); font-size: 11px; }
.prize-guide span { display: block; margin-top: 4px; color: #c7d8df; font-size: 9px; }

.ranking-list {
  min-height: 210px;
  max-height: 42dvh;
  overflow-y: auto;
  padding: 0 15px;
  scrollbar-color: rgba(120, 232, 255, 0.45) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}
.ranking-list::-webkit-scrollbar { width: 5px; }
.ranking-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.ranking-list::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(120, 232, 255, 0.45); }
.ranking-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.ranking-row.podium { border-color: rgba(223, 244, 91, 0.15); }
.ranking-position { color: #6f8c9a; font-size: 15px; font-variant-numeric: tabular-nums; }
.ranking-row.podium .ranking-position { color: var(--lime); }
.ranking-player { min-width: 0; }
.ranking-player b {
  display: block;
  overflow: hidden;
  color: #eaf3f6;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-player span { display: block; margin-top: 4px; color: #718d9b; font-size: 9px; }
.ranking-player .ranking-prize {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.ranking-score { color: var(--white); font-size: 17px; }
.ranking-row.podium .ranking-score { color: var(--lime); }
.ranking-empty {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 0;
  padding: 30px;
  color: #8ea7b3;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.ranking-empty.error { color: #ffc6ba; }
.ranking-more {
  margin: 0;
  padding: 14px 8px;
  color: #668491;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
.ranking-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.ranking-foot span { max-width: 280px; color: #698693; font-size: 9px; line-height: 1.5; }
.ranking-foot button {
  flex: 0 0 auto;
  border: 0;
  color: var(--cyan);
  background: none;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.ranking-foot button:disabled { opacity: 0.45; }

@keyframes pingBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  24% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes soundWave {
  from { opacity: 0.9; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.65); }
}

@keyframes opponentHit {
  0%, 100% { transform: translateX(-50%) scale(0.74); }
  45% { transform: translateX(-50%) scale(0.74) rotate(-9deg); }
}

@keyframes shuttleInLeft {
  0% { opacity: 0.2; transform: translate(-190px, -230px) scale(0.35) rotate(190deg); }
  100% { opacity: 1; transform: translate(-50%, 130px) scale(1.35) rotate(28deg); }
}

@keyframes shuttleInRight {
  0% { opacity: 0.2; transform: translate(145px, -230px) scale(0.35) rotate(-150deg); }
  100% { opacity: 1; transform: translate(-50%, 130px) scale(1.35) rotate(28deg); }
}

@keyframes shuttleOutLeft {
  0% { opacity: 1; transform: translate(-50%, 130px) scale(1.35) rotate(28deg); }
  100% { opacity: 0; transform: translate(-160px, -250px) scale(0.3) rotate(210deg); }
}

@keyframes shuttleOutRight {
  0% { opacity: 1; transform: translate(-50%, 130px) scale(1.35) rotate(28deg); }
  100% { opacity: 0; transform: translate(140px, -250px) scale(0.3) rotate(-190deg); }
}

@keyframes shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (min-width: 720px) {
  .intro { place-items: center; }
  .intro-card { padding: 38px; }
  .ranking-modal { place-items: center; }
}

@media (max-width: 390px) {
  .sensor-chip { padding-inline: 8px; }
  .ranking-button { padding-inline: 9px; }
}

@media (max-height: 760px) {
  .arena { min-height: 430px; height: 57dvh; }
  .game-copy { top: 49%; }
  .guide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
