:root {
  color-scheme: dark;
  --stage-w: min(100vw, 430px);
  --stage-h: min(100dvh, 932px);
  --ink: #f8fbff;
  --muted: rgba(232, 244, 255, .72);
  --gold: #9fffe0;
  --amber: #41d0a4;
  --teal: #3ee7d1;
  --lime: #80f2a8;
  --red: #ff5d5d;
  --blue: #64d7ff;
  --panel: rgba(5, 18, 35, .78);
  --panel-strong: rgba(5, 14, 29, .92);
  --line: rgba(166, 221, 255, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@keyframes promptFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

@keyframes callPop {
  0% { opacity: .64; transform: translateY(5px) scale(.98); }
  65% { opacity: 1; transform: translateY(-1px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loadingPulse {
  0%, 100% { opacity: .78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes loadingShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(69, 180, 255, .2), transparent 34%),
    linear-gradient(180deg, #071a2f, #030810 72%, #05060a);
}

body {
  display: grid;
  place-items: center;
}

button {
  font: inherit;
}

.penalty-page {
  position: relative;
  width: var(--stage-w);
  height: 100vh;
  height: var(--stage-h);
  min-height: min(640px, 100dvh);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 13%, rgba(255, 183, 63, .16), transparent 22%),
    radial-gradient(circle at 16% 18%, rgba(61, 225, 208, .14), transparent 24%),
    linear-gradient(180deg, #07192b, #061522 54%, #03100c);
  isolation: isolate;
  touch-action: manipulation;
}

#penaltyCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.penalty-page[data-phase="loading"] > :not(.loading-screen) {
  visibility: hidden;
}

.loading-screen {
  --load-progress: 0%;
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: max(34px, env(safe-area-inset-top)) 28px max(34px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 36%, rgba(62, 231, 209, .15), transparent 30%),
    linear-gradient(180deg, rgba(8, 30, 47, .98), rgba(4, 12, 24, .99));
  color: #fff8df;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.loading-screen[hidden] {
  display: none;
}

.penalty-page[data-assets="ready"] .loading-screen {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loading-mark {
  display: grid;
  gap: 4px;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .66);
}

.loading-mark span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
}

.loading-mark strong {
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
}

.loading-goal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 330px);
  height: 176px;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid rgba(241, 250, 255, .88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    rgba(4, 16, 31, .72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    0 18px 38px rgba(0, 0, 0, .36);
}

.loading-goal::before {
  position: absolute;
  inset: 20% 14% 0;
  border: 3px solid rgba(235, 247, 255, .34);
  border-bottom: 0;
  content: "";
}

.loading-goal::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(235, 247, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 247, 255, .2) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  opacity: .48;
}

.loading-goal span {
  position: relative;
  z-index: 1;
  border-right: 2px solid rgba(235, 247, 255, .4);
  border-bottom: 2px solid rgba(235, 247, 255, .4);
  background: rgba(100, 215, 255, .04);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.loading-goal span:nth-child(3n) {
  border-right: 0;
}

.loading-goal span:nth-child(n + 4) {
  border-bottom: 0;
}

.loading-goal span.is-lit {
  background: rgba(255, 212, 95, .18);
  box-shadow: inset 0 0 24px rgba(255, 212, 95, .22);
}

.loading-glove {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: auto;
  opacity: .18;
  transform: translate(-50%, -50%) scale(.9);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
  transition: opacity 220ms ease, transform 220ms ease;
}

.penalty-page[data-assets="ready"] .loading-glove {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loading-track {
  position: relative;
  width: min(100%, 320px);
  height: 42px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(166, 221, 255, .22);
  border-radius: 999px;
  background: rgba(5, 14, 29, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.loading-fill {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: var(--load-progress);
  max-width: calc(100% - 8px);
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #3ee7d1, #fff0a8 62%, #ffad33);
  transition: width 180ms ease;
}

.loading-fill::after {
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  content: "";
  animation: loadingShine 1250ms linear infinite;
}

.loading-ball {
  position: absolute;
  left: calc(var(--load-progress) - 16px);
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .42));
  transition: left 180ms ease;
}

.loading-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 26px;
  color: rgba(248, 252, 255, .9);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.loading-copy strong {
  color: var(--gold);
  font-size: 18px;
  animation: loadingPulse 1100ms ease-in-out infinite;
}

.entry-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 30, 47, .98), rgba(4, 13, 26, .98) 56%, rgba(2, 8, 17, .98)),
    #071a2f;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.entry-screen::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 50% 28%, rgba(62, 231, 209, .14), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .42));
  background-size: 44px 44px, 44px 44px, auto, auto;
  content: "";
  pointer-events: none;
}

.penalty-page:not([data-phase="entry"]) .entry-screen {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.entry-screen:focus-visible {
  outline: 3px solid rgba(128, 242, 168, .88);
  outline-offset: -8px;
}

.live-chip {
  position: absolute;
  z-index: 3;
  left: 20px;
  top: max(76px, calc(env(safe-area-inset-top) + 62px));
  padding: 6px 10px;
  border: 1px solid rgba(255, 232, 138, .62);
  border-radius: 999px;
  color: #1b1400;
  background: linear-gradient(180deg, #fff0a8, #f6a02d);
  box-shadow: 0 9px 20px rgba(2, 9, 22, .28);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .09em;
}

.entry-title {
  position: absolute;
  z-index: 4;
  left: 22px;
  right: 22px;
  top: max(118px, calc(env(safe-area-inset-top) + 106px));
  color: #fff8df;
  text-shadow: 0 4px 16px rgba(3, 8, 18, .72);
}

.entry-title strong {
  display: block;
  max-width: 7em;
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 1000;
  line-height: .9;
  letter-spacing: 0;
}

.entry-title em {
  display: block;
  max-width: 16em;
  margin-top: 12px;
  color: rgba(248, 252, 255, .94);
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.38;
}

.entry-preview {
  position: absolute;
  z-index: 4;
  left: 28px;
  right: 28px;
  top: max(318px, calc(env(safe-area-inset-top) + 304px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 188px;
  border: 5px solid rgba(240, 250, 255, .9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)),
    rgba(4, 16, 31, .66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 18px 42px rgba(0, 0, 0, .34);
}

.entry-preview::before {
  position: absolute;
  inset: 20% 14% -1px;
  border: 3px solid rgba(235, 247, 255, .42);
  border-bottom: 0;
  content: "";
}

.entry-preview span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-right: 2px solid rgba(235, 247, 255, .45);
  border-bottom: 2px solid rgba(235, 247, 255, .45);
  color: rgba(248, 252, 255, .9);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.28;
  text-align: center;
}

.entry-preview span:nth-child(3n) {
  border-right: 0;
}

.entry-preview span:nth-child(n + 4) {
  border-bottom: 0;
}

.entry-preview strong {
  color: var(--gold);
  font-size: 20px;
}

.entry-prompt {
  position: absolute;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 24px));
  z-index: 4;
  padding: 9px 15px;
  border: 1px solid rgba(255, 232, 125, .62);
  border-radius: 999px;
  color: #141000;
  background: linear-gradient(180deg, #fff0a8, #f6a02d);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .26);
  font-size: 15px;
  font-weight: 1000;
  white-space: nowrap;
  animation: promptFloat 1450ms ease-in-out infinite;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.home-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(4, 13, 27, .62);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

.home-button img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.match-title {
  min-width: 0;
  padding-top: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .62);
}

.match-title span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.match-title h1 {
  margin: 1px 0 0;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(128, 242, 168, .34);
  border-radius: 999px;
  background: rgba(4, 13, 27, .68);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .26);
  font-size: 16px;
  font-weight: 1000;
}

.score-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .38) 44%, transparent 46% 54%, rgba(255, 255, 255, .38) 56%),
    radial-gradient(circle at 35% 28%, #e8fff5, #80f2a8 48%, #198f65 100%);
  box-shadow: 0 0 12px rgba(128, 242, 168, .42);
}

.match-hud {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.match-hud div {
  min-width: 0;
  padding: 7px 7px;
  border: 1px solid rgba(166, 221, 255, .22);
  border-radius: 8px;
  background: rgba(5, 18, 35, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.match-hud span {
  display: block;
  color: rgba(219, 238, 255, .64);
  font-size: 10px;
  font-weight: 850;
}

.match-hud strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.penalty-page[data-streak="active"] .match-hud div:last-child {
  border-color: rgba(128, 242, 168, .5);
  background:
    radial-gradient(circle at 50% 0, rgba(128, 242, 168, .16), transparent 70%),
    rgba(5, 18, 35, .64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 18px rgba(128, 242, 168, .18);
}

.penalty-page[data-streak="active"] #streakHud {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(128, 242, 168, .38);
}

.match-call {
  position: absolute;
  z-index: 9;
  left: 18px;
  right: 18px;
  top: max(128px, calc(env(safe-area-inset-top) + 120px));
  min-height: 39px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(128, 242, 168, .24);
  border-radius: 8px;
  color: #eafff7;
  background: rgba(5, 14, 29, .48);
  box-shadow: 0 9px 20px rgba(0, 0, 0, .18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.match-call.is-pulsing {
  animation: callPop 420ms ease both;
}

.control-dock {
  position: absolute;
  z-index: 12;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(166, 221, 255, .26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(128, 242, 168, .09), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(6, 24, 42, .94), rgba(4, 14, 28, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 -14px 32px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
  transition: transform 260ms ease;
}

.penalty-page[data-dock="collapsed"] .control-dock {
  transform: translateY(calc(100% - 58px));
}

.penalty-page[data-phase="shooting"] .match-hud {
  opacity: .68;
  transform: translateY(-3px) scale(.97);
}

.penalty-page[data-phase="shooting"] .match-call {
  top: max(118px, calc(env(safe-area-inset-top) + 108px));
  min-height: 32px;
  padding: 7px 12px;
  border-color: rgba(128, 242, 168, .34);
  background: rgba(3, 9, 19, .34);
  font-size: 13px;
}

.penalty-page[data-phase="shooting"] .control-dock {
  opacity: .72;
  transform: translateY(calc(100% - 44px));
}

.penalty-page[data-phase="result"] .control-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(112%);
}

.dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dock-kicker {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .11em;
}

.dock-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1;
}

.dock-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.dock-toggle span {
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(-2px) rotate(225deg);
  transition: transform 220ms ease;
}

.penalty-page[data-dock="collapsed"] .dock-toggle span {
  transform: translateY(3px) rotate(45deg);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.market-grid button,
.stake-picker button,
.start-button,
.replay-button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.market-grid button {
  min-width: 0;
  min-height: 58px;
  padding: 8px 5px;
  border: 1px solid rgba(166, 221, 255, .24);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)),
    rgba(11, 35, 48, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 8px 16px rgba(0, 0, 0, .12);
}

.market-grid button[aria-checked="true"] {
  border-color: rgba(128, 242, 168, .78);
  color: #031711;
  background: linear-gradient(180deg, #d9fff0, #80f2a8 58%, #2ba97e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 10px 20px rgba(58, 214, 157, .24);
}

.market-grid span,
.market-grid strong,
.market-grid em {
  display: block;
}

.market-grid span {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
}

.market-grid strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1;
}

.market-grid em {
  margin-top: 4px;
  color: currentColor;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.16;
  opacity: .72;
}

.stake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stake-picker {
  display: flex;
  gap: 6px;
}

.stake-picker button {
  min-width: 56px;
  height: 32px;
  border: 1px solid rgba(166, 221, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-weight: 1000;
}

.stake-picker button.is-active {
  border-color: rgba(62, 231, 209, .72);
  color: #052113;
  background: linear-gradient(180deg, #b6fff5, #3ee7d1);
}

.ticket-preview {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(62, 231, 209, .09), rgba(128, 242, 168, .07)),
    rgba(255, 255, 255, .07);
}

.ticket-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-preview span {
  font-size: 14px;
  font-weight: 1000;
}

.ticket-preview strong {
  color: #9fffe0;
  font-size: 14px;
}

.ticket-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.28;
}

.dock-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.start-button,
.replay-button {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 1000;
}

.start-button {
  color: #031711;
  background: linear-gradient(180deg, #d9fff0, #80f2a8 58%, #2ba97e);
  box-shadow: 0 10px 22px rgba(58, 214, 157, .28);
}

.start-button:disabled {
  color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.result-modal {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: end center;
  padding: 18px 12px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .72));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.result-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.result-card {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(128, 242, 168, .32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(128, 242, 168, .18), transparent 38%),
    linear-gradient(180deg, rgba(11, 30, 48, .96), rgba(2, 9, 21, .96)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 18px 44px rgba(0, 0, 0, .42);
}

.result-modal[aria-hidden="false"] .result-card {
  animation: resultIn 300ms ease both;
}

.result-kicker {
  display: block;
  color: #9fffe0;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .1em;
}

.result-card h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.result-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.36;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.result-stats span {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.result-stats em,
.result-stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-stats em {
  color: rgba(225, 241, 255, .64);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.result-stats strong {
  margin-top: 3px;
  font-size: 15px;
}

.replay-button {
  width: 100%;
  margin-top: 14px;
  color: #141000;
  background: linear-gradient(180deg, #fff2a0, #f0a22e);
}

@media (max-height: 720px) {
  .match-hud {
    top: max(58px, calc(env(safe-area-inset-top) + 50px));
  }

  .match-call {
    top: max(111px, calc(env(safe-area-inset-top) + 104px));
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .control-dock {
    gap: 7px;
    padding: 10px;
  }

  .market-grid button {
    min-height: 50px;
    padding: 7px 4px;
  }

  .market-grid em {
    display: none;
  }

  .ticket-preview {
    display: none;
  }
}

@media (max-width: 360px) {
  .market-grid {
    gap: 5px;
  }

  .market-grid button {
    min-height: 62px;
  }

  .market-grid span {
    font-size: 11px;
  }

  .market-grid strong {
    font-size: 12px;
  }

  .stake-picker button {
    min-width: 48px;
  }
}
