@font-face {
  font-family: "Pokemon Solid";
  src: url("/pokemon/Pokemon%20Solid.ttf") format("truetype");
}

:root {
  --yellow: #ffcb05;
  --blue: #2858b8;
  --blue-dark: #12285f;
  --ink: #080715;
  --panel: rgba(7, 8, 25, 0.94);
  --border: rgba(255, 203, 5, 0.72);
  --text: #f7f9ff;
  --muted: #b8c5dd;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 960px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

.game-world-body {
  background:
    linear-gradient(135deg, rgba(3, 5, 18, 0.96), rgba(20, 10, 43, 0.9)),
    url("/pokemon/pokeslots/pokemon-banner.png") center / cover no-repeat;
}

.game-world-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.game-world-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(310px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 9px 18px;
  border-bottom: 2px solid var(--border);
  background: rgba(4, 3, 18, 0.96);
}

.game-world-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.game-world-brand img {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
}

.machine-header small,
.leaderboard-modal-header small,
.drink-header small,
.signin-card > small {
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-world-brand h1 {
  margin: 1px 0 0;
  color: var(--yellow);
  font-family: "Pokemon Solid", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px var(--blue);
  text-shadow: 3px 3px 0 var(--blue-dark);
}

.game-world-token {
  min-width: 0;
  justify-self: end;
  width: min(690px, 100%);
  display: grid;
  grid-template-columns: 42px minmax(145px, 1fr) minmax(185px, auto) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 203, 5, 0.12), rgba(40, 88, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.game-world-token[hidden] { display: none; }

.game-world-token img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 203, 5, 0.55);
  border-radius: 10px;
  object-fit: cover;
  background: rgba(4, 3, 18, 0.9);
}

.game-world-token small {
  display: block;
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-world-token strong {
  display: block;
  overflow: hidden;
  color: white;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-world-token button,
.game-world-token a,
.game-world-nav-button,
.machine-close,
.machine-spin,
.signin-card button,
.roulette-picks button {
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(16, 18, 45, 0.9);
  color: white;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.game-world-token button,
.game-world-token a,
.game-world-nav-button {
  padding: 8px 10px;
  text-decoration: none;
  font-size: 0.72rem;
}

.game-world-nav-button {
  justify-self: end;
  min-height: 48px;
  padding-inline: 14px;
  background: rgba(16, 18, 45, 0.94);
}

.game-world-token a {
  background: var(--yellow);
  color: #080715;
}

.game-world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 340px);
  gap: 10px;
  min-height: 0;
  padding: 10px;
}

.game-canvas-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--border);
  background: #080715;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

#game-canvas {
  display: block;
  width: min(100%, calc((100vh - 112px) * 1.8182));
  max-height: 100%;
  aspect-ratio: 640 / 352;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #101a2e;
}

.interaction-prompt,
.room-message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--border);
  background: rgba(3, 4, 16, 0.93);
  color: white;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.interaction-prompt {
  bottom: 36px;
  min-width: 270px;
  padding: 11px 18px;
  color: var(--yellow);
  animation: prompt-pulse 1.1s steps(2, end) infinite;
}

.room-message {
  top: 18px;
  max-width: 75%;
  padding: 8px 13px;
  color: #dce8ff;
  font-size: 0.78rem;
}

@keyframes prompt-pulse { 50% { transform: translateX(-50%) translateY(-2px); } }

.game-world-sidebar {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.world-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 203, 5, 0.4);
  background: var(--panel);
}

.world-panel h2 {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 1rem;
  text-transform: uppercase;
}

.world-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.wallet-token-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 203, 5, 0.48);
  background: linear-gradient(135deg, rgba(40, 88, 184, 0.2), rgba(255, 203, 5, 0.08));
}

.wallet-token-card[hidden] { display: none; }

.world-wallet-holds {
  display: block;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 203, 5, 0.42);
  border-radius: 8px;
  background: rgba(2, 4, 15, 0.5);
}

.world-wallet-holds span {
  color: var(--yellow);
  font-size: 0.58rem;
}

.world-wallet-holds strong {
  max-width: 230px;
  overflow: hidden;
  color: white;
  font-size: 0.86rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-token-card img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 203, 5, 0.55);
  border-radius: 10px;
  object-fit: cover;
  background: #050817;
}

.wallet-token-card span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-token-card strong {
  display: block;
  overflow: visible;
  color: white;
  font-size: 0.98rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
  white-space: normal;
}

.game-world-token .world-wallet-holds span {
  color: var(--yellow);
  font-size: 0.58rem;
}

.game-world-token .world-wallet-holds strong {
  max-width: 230px;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.05;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.currency-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 203, 5, 0.46);
  background: linear-gradient(135deg, rgba(255, 203, 5, 0.08), rgba(40, 88, 184, 0.08));
}

.currency-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: white;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.currency-card-head img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 203, 5, 0.5);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(4, 3, 18, 0.9);
}

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

.pokedollar-card .currency-values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.currency-values div,
.player-stat-grid div {
  min-width: 0;
  padding: 8px 8px;
  border: 1px solid rgba(255, 203, 5, 0.34);
  background: rgba(2, 4, 15, 0.56);
}

.currency-values span,
.player-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.currency-values strong,
.player-stat-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--yellow);
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-pay-card .currency-values strong {
  color: #8dd7ff;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.player-stat-grid--compact div:last-child {
  grid-column: 1 / -1;
}

.pokedollar-stat strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pokedollar-stat strong::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: url("/pokedollar.svg") center / contain no-repeat;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

kbd {
  padding: 4px 7px;
  border: 1px solid #60718e;
  border-bottom-width: 3px;
  border-radius: 4px;
  background: #17223a;
  color: white;
  font-family: monospace;
}

.world-leaderboard { display: grid; gap: 6px; color: var(--muted); }

.world-leaderboard-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 38, 68, 0.6);
  font-size: 0.8rem;
}

.world-leaderboard-row strong { overflow: hidden; text-overflow: ellipsis; }
.world-leaderboard-row em { color: var(--yellow); font-style: normal; }

.world-leaderboard--modal {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.world-leaderboard--modal .world-leaderboard-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 13px 14px;
  border-color: rgba(255, 203, 5, 0.38);
  border-radius: 10px;
  background: rgba(28, 38, 68, 0.82);
  color: white;
  font-size: 0.96rem;
}

.modal-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(1, 2, 10, 0.78);
  backdrop-filter: blur(5px);
}

.modal-layer[hidden],
.machine-game[hidden] { display: none; }

.signin-card,
.machine-modal,
.leaderboard-modal {
  border: 3px solid var(--yellow);
  background:
    linear-gradient(145deg, rgba(15, 24, 52, 0.98), rgba(6, 5, 25, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(40, 88, 184, 0.65);
}

.signin-card {
  width: min(100%, 530px);
  padding: 30px;
  text-align: center;
}

.machine-modal {
  width: min(1280px, 94vw);
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.leaderboard-modal {
  width: min(760px, 94vw);
  max-height: calc(100vh - 32px);
  padding: 20px;
}

.signin-card > img { width: 64px; height: 64px; image-rendering: pixelated; }

.signin-card h2,
.machine-header h2,
.leaderboard-modal-header h2 {
  margin: 4px 0 8px;
  color: var(--yellow);
  font-family: "Pokemon Solid", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px var(--blue);
}

.signin-card p { color: var(--muted); }
.signin-card form { display: grid; gap: 12px; margin-top: 20px; text-align: left; }
.signin-card label { display: grid; gap: 6px; color: #dce7fc; font-weight: 900; }

.signin-card input {
  width: 100%;
  border: 1px solid rgba(255, 203, 5, 0.55);
  border-radius: 6px;
  padding: 13px;
  background: rgba(1, 2, 12, 0.82);
  color: white;
}

.signin-card button,
.machine-spin {
  min-height: 54px;
  background: var(--yellow);
  color: #090716;
}

.form-message { margin-top: 14px; color: var(--muted); font-size: 0.86rem; }
.form-message.is-error { color: #ff9da6; }

.machine-layer { background: rgba(2, 3, 12, 0.68); }
.machine-modal { position: relative; padding: 16px 20px 18px; }

.machine-header,
.leaderboard-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.machine-header h2,
.leaderboard-modal-header h2 { font-size: 1.65rem; }
.machine-close { width: 42px; height: 42px; }
.machine-close:disabled { opacity: 0.4; cursor: not-allowed; }

.machine-body {
  min-height: 0;
  display: grid;
  gap: 16px;
}

.machine-playfield,
.machine-actions {
  min-width: 0;
  min-height: 0;
}

.machine-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.machine-layer.is-roulette .machine-body {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  align-items: center;
}

.machine-layer.is-roulette .machine-actions {
  align-content: center;
}

.machine-layer.is-slots .machine-body {
  grid-template-rows: minmax(0, auto) auto;
}

.machine-layer.is-slots .machine-actions {
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.15fr) minmax(220px, 0.75fr);
  align-items: stretch;
  gap: 10px;
}

.machine-layer.is-slots .coin-bet-panel,
.machine-layer.is-slots .machine-result,
.machine-layer.is-slots .machine-spin {
  min-height: 82px;
}

.machine-layer.is-slots .machine-help {
  grid-column: 1 / -1;
  margin: 0;
}

.machine-layer:not(.is-roulette) .roulette-picks {
  display: none;
}

.coin-bet-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 203, 5, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 27, 58, 0.9), rgba(4, 7, 21, 0.95));
}

.coin-bet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #dce7fc;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coin-bet-head strong {
  color: var(--yellow);
  text-align: right;
}

.coin-bet-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.coin-bet-chips button {
  min-height: 42px;
  padding: 8px 6px;
  border: 2px solid rgba(255, 203, 5, 0.72);
  border-radius: 10px;
  background: #0b1024;
  color: white;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.coin-bet-chips button.is-active {
  background: var(--yellow);
  color: #090716;
  box-shadow: 0 0 0 2px rgba(255, 203, 5, 0.18);
}

.coin-bet-chips button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.prototype-slot-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 7px solid var(--yellow);
  background: #0b1125;
}

.prototype-reel {
  position: relative;
  height: clamp(250px, calc(100vh - 500px), 360px);
  min-height: 240px;
  overflow: hidden;
  border: 3px solid #d19f14;
  background: radial-gradient(circle, #26375d, #070b18);
}

.prototype-reel::before,
.prototype-reel::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: none;
}

.prototype-reel::before {
  top: 0;
  background: linear-gradient(#050817, rgba(5, 8, 23, 0));
}

.prototype-reel::after {
  bottom: 0;
  background: linear-gradient(rgba(5, 8, 23, 0), #050817);
}

.prototype-reel-strip {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  display: grid;
  gap: 8px;
  transform: translateY(calc(-50% + var(--reel-nudge, 0px)));
  transition: transform 120ms linear;
}

.prototype-reel-strip img {
  width: 100%;
  height: clamp(110px, calc((100vh - 520px) / 2.2), 165px);
  min-height: 108px;
  object-fit: contain;
  opacity: 0.72;
  filter: saturate(0.95) brightness(0.9);
}

.prototype-reel-strip img.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
}

.prototype-slot-board.is-spinning .prototype-reel-strip {
  animation: reel-roll 160ms linear infinite;
}

.prototype-slot-board.is-spinning img {
  filter: blur(1.8px) brightness(1.2);
}

@keyframes reel-roll {
  0% { transform: translateY(calc(-50% - 42px)); }
  100% { transform: translateY(calc(-50% + 42px)); }
}

.prototype-roulette-wrap {
  --roulette-size: min(650px, calc(100vh - 145px), calc(94vw - 450px));
  position: relative;
  width: var(--roulette-size);
  height: var(--roulette-size);
  margin: 0 auto;
}

.prototype-roulette-wheel {
  position: absolute;
  inset: 0;
  border: 10px solid #f4d164;
  border-radius: 50%;
  background: var(--prototype-roulette-gradient, conic-gradient(#d92d44 0 20deg, #1d2333 20deg 40deg));
  box-shadow: inset 0 0 0 10px rgba(4, 6, 18, 0.55);
  transition: transform 4.6s cubic-bezier(0.15, 0.78, 0.17, 1);
}

.prototype-roulette-pockets { position: absolute; inset: 0; border-radius: 50%; }

.prototype-pocket {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(26px, calc(var(--roulette-size) * 0.08), 34px);
  height: clamp(26px, calc(var(--roulette-size) * 0.08), 34px);
  margin: calc(clamp(26px, calc(var(--roulette-size) * 0.08), 34px) / -2);
  transform: rotate(var(--angle)) translateY(calc(var(--roulette-size) * -0.39));
}

.prototype-pocket img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transform: rotate(calc(var(--angle) * -1));
}

.prototype-roulette-hub {
  position: absolute;
  inset: 38%;
  border: 7px solid #11182a;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 20%, #dd3946 21% 52%, white 53% 66%, #11182a 67%);
}

.prototype-ball-track {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 4.2s cubic-bezier(0.18, 0.72, 0.2, 1);
}

.prototype-ball-track span {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px white;
}

.roulette-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roulette-picks button { min-height: 58px; }
.roulette-picks button:first-child.is-active { background: #d92d44; }
.roulette-picks button:last-child.is-active { background: #111827; border-color: #b7c4df; }

.machine-result {
  min-height: 72px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px;
  border: 2px solid rgba(255, 203, 5, 0.45);
  background: rgba(2, 3, 13, 0.82);
  color: var(--yellow);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.machine-result.is-win { border-color: #43d17a; color: #b8ffd0; }
.machine-result.is-loss { border-color: #e95263; color: #ffd1d5; }

.roulette-result-card {
  width: 100%;
  display: grid;
  gap: 8px;
}

.roulette-result-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 203, 5, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.roulette-result-row span {
  color: #aebce0;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
}

.roulette-result-row strong {
  min-width: 0;
  color: #ffffff;
  font-size: clamp(0.86rem, 1.35vw, 1.08rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.roulette-result-row.is-red strong { color: #ffd9df; }
.roulette-result-row.is-black strong { color: #e4ecff; }
.roulette-result-row.is-bonus strong { color: #ffe29a; }
.roulette-result-row.is-coin strong { color: var(--yellow); }
.roulette-result-row.is-win {
  border-color: rgba(67, 209, 122, 0.65);
  background: rgba(67, 209, 122, 0.12);
}
.roulette-result-row.is-loss {
  border-color: rgba(233, 82, 99, 0.72);
  background: rgba(233, 82, 99, 0.12);
}

.slots-result-card {
  width: 100%;
  display: grid;
  gap: 8px;
  align-content: center;
}

.slots-result-card > strong {
  color: #ffffff;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1;
}

.slots-result-card > strong span {
  color: var(--yellow);
}

.slots-result-card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.slots-result-card > div span {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255, 203, 5, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #aebce0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slots-result-card b {
  display: block;
  margin-top: 2px;
  color: var(--yellow);
  font-size: 0.82rem;
  line-height: 1;
}

.machine-spin { width: 100%; min-height: 64px; }
.machine-spin:disabled { opacity: 0.5; cursor: not-allowed; }
.machine-help { margin: 0; color: var(--muted); text-align: center; font-size: 0.82rem; }

.drink-layer { background: rgba(2, 3, 12, 0.68); }

.drink-modal {
  width: min(760px, 94vw);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 2px solid var(--yellow);
  background: linear-gradient(135deg, #12162f, #060819 72%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.drink-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.drink-header h2 {
  margin: 2px 0 0;
  color: var(--yellow);
  font-family: "Pokemon Solid", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px var(--blue);
  text-shadow: 4px 4px 0 var(--blue-dark);
}

.drink-message {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}

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

.drink-option {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(255, 203, 5, 0.62);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(40, 88, 184, 0.34), rgba(5, 8, 23, 0.94));
  color: white;
  text-align: left;
  cursor: pointer;
}

.drink-option strong {
  color: var(--yellow);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.drink-option span {
  color: var(--muted);
  line-height: 1.3;
}

.drink-option em {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #090817;
  font-style: normal;
  font-weight: 1000;
}

.drink-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.drink-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed rgba(255, 203, 5, 0.6);
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 980px) {
  .game-world-header {
    grid-template-columns: 1fr;
  }

  .game-world-token { justify-self: stretch; width: 100%; }
  .game-world-nav-button { justify-self: stretch; width: 100%; }

  .machine-modal {
    width: min(100%, 94vw);
    overflow-y: auto;
  }

  .machine-layer.is-roulette .machine-body {
    grid-template-columns: 1fr;
  }

  .machine-layer.is-slots .machine-actions {
    grid-template-columns: 1fr;
  }

  .machine-layer.is-slots .machine-help {
    grid-column: auto;
  }

  .prototype-roulette-wrap {
    --roulette-size: min(430px, 54vh, 82vw);
  }

  .drink-options {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 981px) {
  .game-world-header { min-height: 74px; padding-block: 7px; }
  .game-world-brand img { width: 38px; height: 38px; }
  .game-world-layout { padding: 8px; gap: 8px; }
  .machine-modal { padding: 12px 16px; }
  .machine-header { margin-bottom: 8px; }
  .machine-header h2 { font-size: 1.35rem; }
  .prototype-reel { height: 250px; min-height: 230px; }
  .prototype-reel-strip img { height: 118px; min-height: 118px; }
  .prototype-roulette-wrap { --roulette-size: min(520px, calc(100vh - 120px), calc(94vw - 430px)); }
  .roulette-picks button { min-height: 48px; }
  .machine-result { min-height: 56px; }
  .machine-spin { min-height: 54px; }
}

@media (max-width: 980px) and (max-height: 720px) {
  .machine-modal { padding: 12px; }
  .machine-header { margin-bottom: 8px; }
  .machine-header h2 { font-size: 1.35rem; }
  .prototype-reel { height: 230px; min-height: 210px; }
  .prototype-reel-strip img { height: 108px; min-height: 108px; }
  .machine-result { min-height: 54px; }
  .machine-spin { min-height: 54px; }
}
