:root {
  color-scheme: dark;
  --bg: #080706;
  --surface: #12100d;
  --surface-2: #19150f;
  --surface-3: #221b12;
  --ink: #fff4d5;
  --muted: #b8aa82;
  --soft: #776c51;
  --gold: #f7d46b;
  --gold-deep: #a96f1d;
  --green: #9fbd5a;
  --green-deep: #4f6b2b;
  --line: rgba(247, 212, 107, 0.14);
  --line-strong: rgba(247, 212, 107, 0.34);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --inner: inset 0 1px 0 rgba(255, 244, 213, 0.08);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 4%, rgba(247, 212, 107, 0.14), transparent 30%),
    radial-gradient(circle at 16% 22%, rgba(159, 189, 90, 0.08), transparent 30%),
    linear-gradient(140deg, #080706 0%, #110c08 48%, #070706 100%);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button { color: inherit; }
h1, h2, p { margin: 0; }

h1, h2, p, strong, small, button {
  overflow-wrap: anywhere;
}

small, label, .status-pill {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.casino-shell {
  display: grid;
  grid-template-columns: clamp(208px, 15vw, 232px) minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100vw;
  height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid rgba(247, 212, 107, 0.1);
  background: rgba(8, 7, 6, 0.84);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.brand small, .brand strong { display: block; }
.brand strong {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.side-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  margin-top: 18px;
}

.side-wallet #connectBtn {
  grid-column: 1 / -1;
  width: 100%;
}

.side-wallet #switchBscBtn {
  grid-column: 1 / -1;
  width: 100%;
}

.side-wallet #switchBscBtn[hidden] {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d9cda9;
  cursor: pointer;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.nav-item span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 244, 213, 0.055);
  color: var(--soft);
  font-size: 11px;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(247, 212, 107, 0.28);
  background: rgba(247, 212, 107, 0.08);
  color: var(--ink);
}

.nav-item.active span {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #181006;
}

.side-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.035);
}

.side-card strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 850;
}

.side-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-main {
  min-width: 0;
  max-width: 100vw;
  padding: clamp(10px, 1.35vw, 18px) clamp(14px, 1.8vw, 28px) 28px;
}

main {
  width: min(100%, 1480px);
  max-width: 100%;
  margin: 0 auto;
}

.status-pill {
  max-width: 100%;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid rgba(159, 189, 90, 0.28);
  border-radius: 8px;
  background: rgba(38, 50, 23, 0.62);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn, .icon-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn:disabled,
.icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

body[data-launch="locked"] #connectBtn,
body[data-launch="locked"] #buyTicketBtn,
body[data-launch="locked"] #buyBatchBtn,
body[data-launch="locked"] #claimBtn {
  filter: grayscale(0.32);
}

body[data-launch="locked"] .number-button,
body[data-launch="locked"] .game-tile {
  cursor: not-allowed;
}

body[data-launch="locked"] .tag {
  border-color: rgba(247, 212, 107, 0.46);
  background: rgba(247, 212, 107, 0.13);
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  background: rgba(255, 244, 213, 0.055);
  box-shadow: var(--inner);
  min-width: 0;
}

.btn span,
.icon-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
}

.btn b { font-size: 14px; font-weight: 850; }
.btn:hover, .icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn-primary { border-color: rgba(247, 212, 107, 0.5); background: linear-gradient(180deg, #ffe38b 0%, #d5a23b 100%); color: #160f05; }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(169, 111, 29, 0.28); }
.btn-green { border-color: rgba(159, 189, 90, 0.46); background: linear-gradient(180deg, #a9c86a, #6d8a3c); color: #101907; }
.btn-ghost { background: rgba(255, 244, 213, 0.045); color: var(--ink); }
.full { width: 100%; }
.icon-btn { min-width: 38px; min-height: 38px; background: rgba(255, 244, 213, 0.045); color: var(--gold); }
.icon-btn.gold { border-color: rgba(247, 212, 107, 0.42); }

.view { display: none; }
.view.active { display: block; }

.lobby-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(232px, 340px);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: clamp(500px, 66vh, 720px);
  padding: clamp(30px, 4.4vw, 62px) clamp(26px, 4.6vw, 64px) 104px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 15, 9, 0.98), rgba(9, 8, 7, 0.72)),
    #120d08;
  box-shadow: var(--shadow);
}

.lobby-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 96px 24px;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 212, 107, 0.6), transparent);
}

.hero-art {
  position: absolute;
  right: clamp(54px, 14vw, 230px);
  bottom: 76px;
  z-index: 2;
  width: min(36vw, 500px);
  height: 76%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 24px 56px rgba(0, 0, 0, 0.44));
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 9, 6, 0.98) 0%, rgba(12, 9, 6, 0.82) 44%, rgba(12, 9, 6, 0.26) 78%),
    linear-gradient(180deg, rgba(247, 212, 107, 0.08), rgba(8, 7, 6, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(690px, 64vw);
  padding: 0;
}

.tag {
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(159, 189, 90, 0.34);
  border-radius: 8px;
  background: rgba(76, 98, 40, 0.18);
  color: #e5f1c7;
  font-size: 12px;
  font-weight: 850;
}

h1 {
  margin-top: 20px;
  font-size: clamp(50px, 6.4vw, 104px);
  line-height: 0.94;
  font-weight: 920;
}

.hero-copy p {
  max-width: min(620px, 58vw);
  margin-top: 18px;
  color: #e7d5a6;
  font-size: 17px;
  font-weight: 640;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-side {
  position: relative;
  z-index: 3;
  align-self: end;
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  width: min(100%, 238px);
  margin-bottom: 70px;
}

.hero-jackpot, .hero-round, .hero-timer {
  z-index: 3;
  border: 1px solid rgba(247, 212, 107, 0.26);
  border-radius: 8px;
  background: rgba(12, 10, 8, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--inner), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-jackpot {
  padding: 10px 11px;
}

.hero-timer {
  padding: 10px 11px;
}

.hero-round { padding: 9px 11px; }
.hero-jackpot strong, .hero-round strong, .hero-timer strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(247, 212, 107, 0.1);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.03);
}

.hero-metrics {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 4;
  margin-top: 0;
  background: rgba(8, 7, 6, 0.42);
  backdrop-filter: blur(18px);
}

.metric-card {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 7px;
  background: rgba(8, 7, 6, 0.34);
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.game-tile {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 20px 128px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(247, 212, 107, 0.12), rgba(255, 244, 213, 0.03)),
    rgba(18, 16, 13, 0.9);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--inner);
}

.game-tile::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 0;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(247, 212, 107, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 42% 34%, rgba(247, 212, 107, 0.18), transparent 44%),
    rgba(247, 212, 107, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 244, 213, 0.08), 0 18px 36px rgba(0, 0, 0, 0.24);
}

.game-tile img {
  position: absolute;
  right: 17px;
  bottom: 17px;
  z-index: 1;
  width: 102px;
  height: 102px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.game-tile span,
.game-tile strong,
.game-tile small {
  position: relative;
  z-index: 2;
}

.game-tile span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.game-tile strong { display: block; margin-top: 10px; color: var(--gold); font-size: 27px; font-weight: 900; }
.game-tile small { display: block; max-width: min(330px, 100%); margin-top: 9px; line-height: 1.55; text-transform: none; }
.game-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.game-tile:hover img { transform: translateY(-2px) scale(1.02); }

.room-layout, .draw-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(316px, 25vw, 360px);
  gap: 14px;
  align-items: start;
}

.play-table,
.bet-slip,
.draw-stage,
.draw-console {
  border: 1px solid rgba(247, 212, 107, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 213, 0.055), rgba(255, 244, 213, 0.018)),
    rgba(18, 16, 13, 0.9);
  box-shadow: var(--shadow);
}

.play-table, .draw-stage { padding: 18px; }
.bet-slip, .draw-console {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.lucky-draw-room-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(188px, 228px);
  align-items: stretch;
  gap: 12px;
  min-height: 132px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(247, 212, 107, 0.11), rgba(159, 189, 90, 0.065) 46%, rgba(8, 7, 6, 0.08)),
    rgba(8, 7, 6, 0.38);
}

.lucky-draw-room-hero img {
  display: none;
}

.room-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 560px;
}

.room-copy h2 {
  margin-top: 6px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  font-weight: 920;
  overflow-wrap: normal;
  word-break: keep-all;
}

.room-copy p {
  max-width: 500px;
  margin-top: 8px;
  color: #dfcfa6;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.room-prize {
  position: relative;
  right: auto;
  top: auto;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(247, 212, 107, 0.2);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.58);
  backdrop-filter: blur(14px);
}

.room-prize strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-prize span {
  display: block;
  margin-top: 4px;
  color: #e8f5c9;
  font-size: 15px;
  font-weight: 900;
}

.room-prize em,
#roundDrawAt,
#drawAtLabel {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.lucky-draw-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.lucky-draw-status-bar div,
.ticket-preview,
.ticket-rule,
.slip-section,
.slip-math div,
  .batch-box,
  .claim-card,
  .claim-history-card,
  .public-draw-card,
  .info-list div,
  .fallback-actions,
  .my-entry-card {
  border: 1px solid rgba(247, 212, 107, 0.1);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.32);
  box-shadow: var(--inner);
}

.lucky-draw-status-bar div { padding: 12px; }
.lucky-draw-status-bar strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--gold);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucky-draw-status-bar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.ticket-machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 8px;
  margin-bottom: 12px;
}

.ticket-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(247, 212, 107, 0.08), rgba(159, 189, 90, 0.04)),
    rgba(8, 7, 6, 0.34);
}

.preview-numbers {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.preview-numbers span {
  display: grid;
  place-items: center;
  width: clamp(50px, 5vw, 62px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 212, 107, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 244, 213, 0.2), transparent 34%),
    rgba(15, 12, 9, 0.78);
  color: var(--gold);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 920;
}

.preview-numbers span.filled {
  border-color: rgba(247, 212, 107, 0.8);
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 244, 213, 0.38), transparent 34%),
    linear-gradient(180deg, #ffe58f, #c8912f);
  color: #160f05;
}

.ticket-rule {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 13px;
  background: rgba(58, 73, 31, 0.18);
}

.ticket-rule strong {
  color: #e8f5c9;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.ticket-rule small { line-height: 1.45; text-transform: none; }

.number-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 13px);
  justify-items: center;
  width: min(100%, 620px);
  max-width: 620px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(247, 212, 107, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 213, 0.035), rgba(255, 244, 213, 0.012)),
    rgba(8, 7, 6, 0.3);
}

.number-button {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  justify-self: center;
  width: clamp(58px, 6.2vw, 76px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 212, 107, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 23%, rgba(255, 244, 213, 0.28), transparent 27%),
    linear-gradient(145deg, rgba(255, 244, 213, 0.1), rgba(8, 7, 6, 0.08)),
    #14100c;
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.76);
  box-shadow: var(--inner), 0 9px 20px rgba(0, 0, 0, 0.24);
}

.number-button::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: url("./assets/optimized/cute-ip.png") center 58% / 118% no-repeat;
  opacity: 0.26;
  filter: saturate(1.08) contrast(1.04);
}

.number-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.2), rgba(8, 7, 6, 0.62));
}

.number-button span {
  position: relative;
  z-index: 1;
}

.number-button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 212, 107, 0.52);
}

.number-button.selected {
  border-color: rgba(247, 212, 107, 0.92);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 213, 0.48), transparent 30%),
    linear-gradient(180deg, rgba(255, 229, 143, 0.7), rgba(200, 145, 47, 0.82)),
    linear-gradient(180deg, #ffe58f, #c8912f);
  color: #160f05;
  text-shadow: 0 1px 0 rgba(255, 244, 213, 0.42);
  box-shadow: 0 14px 30px rgba(169, 111, 29, 0.28);
}

.number-button.selected::before {
  opacity: 0.34;
}

.number-button.selected::after {
  background: linear-gradient(180deg, rgba(255, 229, 143, 0.1), rgba(200, 145, 47, 0.38));
}

.slip-title { margin-bottom: 12px; }
.slip-title strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-weight: 900;
}

.slip-section { padding: 14px; }
.slip-section strong {
  display: block;
  min-height: 28px;
  margin-top: 8px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.slip-math {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.slip-math div,
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
}

.slip-math strong,
.info-list strong {
  overflow: hidden;
  color: var(--gold);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-list strong[data-status="ok"] { color: #e8f5c9; }
.info-list strong[data-status="warn"] { color: #f5dc96; }
.info-list strong[data-status="error"] { color: #ffc0ae; }

.balance-hint {
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 212, 107, 0.12);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.28);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.balance-hint[data-status="ok"] {
  border-color: rgba(159, 189, 90, 0.28);
  background: rgba(58, 73, 31, 0.2);
  color: #e8f5c9;
}

.balance-hint[data-status="warn"] {
  border-color: rgba(247, 212, 107, 0.3);
  background: rgba(169, 111, 29, 0.14);
  color: #f5dc96;
}

.balance-hint[data-status="error"] {
  border-color: rgba(255, 118, 96, 0.34);
  background: rgba(100, 28, 18, 0.22);
  color: #ffc0ae;
}

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

.slip-actions .btn-primary { grid-column: 1 / -1; }

.batch-box {
  margin-top: 10px;
  padding: 13px;
}

.batch-top { display: flex; align-items: end; gap: 9px; }
label { display: grid; flex: 1; gap: 8px; }

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(247, 212, 107, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(8, 7, 6, 0.48);
  color: var(--ink);
  padding: 0 12px;
}

input:focus { border-color: var(--line-strong); }

.batch-list {
  display: grid;
  gap: 7px;
  min-height: 52px;
  max-height: 226px;
  margin: 11px 0;
  overflow: auto;
  padding-right: 3px;
}

.ticket-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(159, 189, 90, 0.28);
  border-radius: 8px;
  background: rgba(58, 73, 31, 0.2);
  color: #e8f5c9;
  font-size: 12px;
  font-weight: 850;
}

.draw-stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 16px;
  text-align: left;
}

.draw-copy {
  position: relative;
  z-index: 2;
}

.draw-stage h2 {
  margin-top: 6px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 920;
  line-height: 1;
}

.draw-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.55;
}

.draw-result-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(132px, 176px) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 188px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(247, 212, 107, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 62%, rgba(247, 212, 107, 0.12), transparent 28%),
    rgba(8, 7, 6, 0.34);
}

.my-entry-card {
  margin-top: 12px;
  padding: 13px;
}

.draw-visual {
  display: grid;
  place-items: end center;
  min-height: 156px;
  border: 1px solid rgba(247, 212, 107, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 62%, rgba(247, 212, 107, 0.16), transparent 42%),
    rgba(8, 7, 6, 0.26);
}

.entry-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.entry-card-head strong {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.my-round-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.my-round-entries > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.entry-combo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid rgba(159, 189, 90, 0.22);
  border-radius: 8px;
  background: rgba(58, 73, 31, 0.16);
}

.entry-balls {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.entry-balls span {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 212, 107, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 213, 0.24), transparent 30%),
    rgba(15, 12, 9, 0.78);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.entry-balls span::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: url("./assets/optimized/cute-ip.png") center 58% / 120% no-repeat;
  opacity: 0.18;
}

.entry-balls span {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.draw-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  order: 1;
  min-width: 0;
}

.draw-board > div {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 212, 107, 0.18);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.46);
  text-align: left;
}

.draw-board > div:first-child {
  border-color: rgba(159, 189, 90, 0.3);
  background: rgba(58, 73, 31, 0.2);
}

.draw-countdown-card strong {
  display: block;
  margin-top: 8px;
  color: #e8f5c9;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.draw-numbers {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 8px;
}

.draw-numbers span {
  display: grid;
  place-items: center;
  width: clamp(48px, 4.7vw, 62px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 212, 107, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 213, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 229, 143, 0.18), rgba(8, 7, 6, 0.72));
  color: rgba(255, 244, 213, 0.72);
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 920;
  line-height: 1;
  box-shadow: var(--inner), 0 12px 24px rgba(0, 0, 0, 0.26);
}

.draw-numbers span.filled {
  border-color: rgba(247, 212, 107, 0.86);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 213, 0.48), transparent 30%),
    linear-gradient(180deg, #ffe58f, #c8912f);
  color: #160f05;
}

.draw-stage img {
  position: relative;
  z-index: 1;
  width: min(100%, 158px);
  height: auto;
  max-height: 158px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.36));
}

.draw-console {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
}

.claim-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(247, 212, 107, 0.08), rgba(255, 244, 213, 0.02)),
    rgba(8, 7, 6, 0.32);
}

.claim-card > strong {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.info-list {
  display: grid;
  gap: 8px;
}

.claim-history-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.claim-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.claim-history-head strong {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.claim-history {
  display: grid;
  gap: 7px;
  max-height: 244px;
  overflow: auto;
  padding-right: 2px;
}

.claim-history > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.claim-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(247, 212, 107, 0.14);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.04);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.claim-history-item:hover {
  border-color: rgba(247, 212, 107, 0.34);
  background: rgba(247, 212, 107, 0.075);
}

.claim-history-item b,
.claim-history-item small {
  display: block;
}

.claim-history-item b {
  font-size: 14px;
  font-weight: 900;
}

.claim-history-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}

.claim-history-item strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.claim-history-item.claimed {
  opacity: 0.58;
}

.claim-history-item.claimed strong {
  color: var(--muted);
}

.participation-card {
  padding-top: 12px;
}

.participation-history {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.participation-history > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.public-draw-card {
  padding-top: 12px;
}

.public-draw-history {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.public-draw-history > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.public-draw-item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 244, 213, 0.12);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.035);
}

.public-draw-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.public-draw-top b,
.public-draw-top small {
  display: block;
}

.public-draw-top b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.public-draw-top small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.public-draw-top strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.public-winner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-winner-list span,
.public-winner-list a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(247, 212, 107, 0.13);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.28);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.public-winner-list a {
  color: var(--green);
}

.public-winner-list a:hover {
  border-color: rgba(45, 212, 154, 0.34);
  background: rgba(45, 212, 154, 0.08);
}

.history-more {
  margin-top: 2px;
  min-height: 36px;
}

.participation-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 244, 213, 0.12);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.035);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.participation-item:hover {
  border-color: rgba(247, 212, 107, 0.34);
  background: rgba(247, 212, 107, 0.07);
}

.participation-item.claimable {
  border-color: rgba(45, 212, 154, 0.38);
  background: rgba(45, 212, 154, 0.08);
}

.participation-item.claimed {
  opacity: 0.72;
}

.participation-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.participation-top b {
  font-size: 14px;
  font-weight: 900;
}

.participation-top small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.history-entry-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.history-combo {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 244, 213, 0.1);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.28);
}

.history-combo i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 244, 213, 0.08), rgba(255, 244, 213, 0.08)),
    url("./assets/optimized/cute-ip.png") center / 120% auto no-repeat;
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.history-entry-balls em {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.participation-item > strong {
  justify-self: start;
  font-size: 12px;
  font-weight: 900;
}

.participation-item > strong[data-status="claim"] {
  color: var(--green);
}

.participation-item > strong[data-status="ok"] {
  color: var(--gold);
}

.participation-item > strong[data-status="warn"] {
  color: var(--orange);
}

.participation-item > strong[data-status="muted"] {
  color: var(--muted);
}

.fallback-actions {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.fallback-actions p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(247, 212, 107, 0.32);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.94);
  color: var(--ink);
  padding: 13px 15px;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { transform: translateY(0); opacity: 1; }

.ops-config { display: none; }

@media (min-width: 1600px) {
  .lobby-hero {
    min-height: min(720px, calc(100vh - 160px));
  }
  .hero-art {
    right: clamp(120px, 16vw, 270px);
    width: min(32vw, 520px);
  }
  .game-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (max-width: 1360px) {
  .room-layout, .draw-room {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .hero-copy {
    max-width: min(620px, 62vw);
  }
  .hero-copy p {
    max-width: min(560px, 56vw);
  }
  .hero-art {
    right: clamp(38px, 11vw, 160px);
    width: min(34vw, 440px);
  }
  .hero-side {
    width: min(100%, 214px);
  }
}

@media (max-width: 1180px) {
  .casino-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    height: auto;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 212, 107, 0.1);
  }
  .brand { min-height: 42px; padding: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }
  .side-wallet {
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    margin-top: 8px;
  }
  .side-wallet #connectBtn {
    grid-column: 1 / -1;
  }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
  }
  .side-card { display: none; }
  .room-layout, .draw-room { grid-template-columns: 1fr; }
  .bet-slip, .draw-console { position: static; }
  .lobby-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    min-height: 560px;
    padding-bottom: 118px;
  }
  .hero-copy,
  .hero-copy p {
    max-width: 620px;
  }
  .hero-art {
    right: clamp(30px, 8vw, 110px);
    width: min(38vw, 380px);
    opacity: 0.36;
  }
  .hero-side {
    width: min(100%, 198px);
  }
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ticket-machine {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 900px) {
  .lobby-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 570px;
    padding: 28px 24px 122px;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-art {
    right: -10px;
    bottom: 102px;
    width: min(48vw, 340px);
    height: 58%;
    opacity: 0.24;
  }
  .hero-side {
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 0;
  }
  .hero-jackpot strong,
  .hero-round strong,
  .hero-timer strong {
    font-size: 16px;
  }
  .hero-metrics {
    display: none;
  }
  .lobby-hero::after {
    display: none;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .casino-shell {
    display: block;
  }
  .app-main { padding: 8px 10px 10px; }
  .sidebar { padding: 8px 10px 10px; }
  .brand {
    justify-content: flex-start;
    min-height: 36px;
  }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .side-wallet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
  }
  .side-wallet #connectBtn {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0 12px;
  }
  .status-pill {
    max-width: none;
    min-width: 0;
  }
  .btn { min-height: 36px; }
  .icon-btn { min-width: 34px; min-height: 34px; }
  .btn span, .icon-btn { width: 24px; height: 24px; }
  .btn b { font-size: 13px; }
  .side-nav { gap: 6px; }
  .nav-item {
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }
  .nav-item span { display: none; }

  .lobby-hero {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 24px 18px 20px;
  }
  .hero-copy {
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 0;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 9, 6, 0.98) 0%, rgba(12, 9, 6, 0.82) 48%, rgba(12, 9, 6, 0.12) 100%);
  }
  .hero-art {
    top: 72px;
    right: -20px;
    bottom: auto;
    transform: none;
    width: min(60vw, 280px);
    height: 270px;
    object-position: center center;
    opacity: 0.24;
  }
  .hero-side {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
    margin-bottom: 0;
    width: 100%;
  }
  .hero-jackpot, .hero-timer, .hero-round {
    padding: 9px 10px;
  }
  .hero-round { display: block; }
  .hero-jackpot strong, .hero-round strong, .hero-timer strong {
    font-size: 15px;
  }
  .hero-metrics { display: none; }
  .lobby-hero::after { display: none; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-copy p {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.62;
  }
  .hero-actions { margin-top: 20px; }

  .metric-row, .game-grid { grid-template-columns: 1fr; }
  .metric-row { padding: 8px; }
  .game-tile {
    min-height: 142px;
    padding: 18px 112px 18px 18px;
  }
  .game-tile::after {
    right: 12px;
    bottom: 13px;
    width: 90px;
    height: 90px;
  }
  .game-tile img {
    right: 13px;
    bottom: 14px;
    width: 88px;
    height: 88px;
  }
  .game-tile strong { font-size: 23px; }

  .play-table, .bet-slip, .draw-stage, .draw-console { padding: 16px; }
  .lucky-draw-room-hero {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 210px);
    min-height: 170px;
    padding: 16px;
  }
  .lucky-draw-room-hero img {
    right: 218px;
    bottom: -16px;
    width: 106px;
    height: 120px;
  }
  .room-copy { max-width: 410px; }
  .room-copy h2 { font-size: clamp(31px, 9vw, 42px); }
  .room-prize {
    grid-column: auto;
    width: auto;
    min-width: 0;
  }
  .lucky-draw-status-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .lucky-draw-status-bar div { padding: 10px 9px; }
  .lucky-draw-status-bar strong { font-size: 15px; }
  .ticket-machine { grid-template-columns: minmax(0, 1fr) 142px; }
  .ticket-preview { grid-template-columns: auto minmax(0, 1fr); }
  .preview-numbers { justify-content: flex-end; }
  .number-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
  }
  .number-button {
    width: min(100%, 62px);
    font-size: 16px;
  }
  .slip-actions { grid-template-columns: 1fr; }
  .draw-stage { min-height: auto; }
  .draw-result-card {
    grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
    min-height: 230px;
    margin-top: 16px;
    padding: 14px;
  }
  .draw-board { gap: 8px; }
  .draw-board > div { min-height: 84px; }
  .draw-numbers {
    gap: 8px;
    font-size: clamp(38px, 12vw, 62px);
  }
  .draw-numbers span {
    width: clamp(48px, 15vw, 66px);
  }
  .draw-stage img {
    width: min(100%, 190px);
    opacity: 0.54;
  }
}

@media (max-width: 520px) {
  .app-main {
    width: 100%;
    overflow: hidden;
    padding: 8px;
  }
  main { width: 100%; }
  .brand span {
    min-width: 0;
  }
  .side-wallet {
    grid-template-columns: 1fr 34px;
  }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .nav-item {
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0 2px;
    font-size: 12px;
  }
  .lobby-hero {
    padding: 20px 14px 16px;
  }
  .view.active,
  .room-layout,
  .draw-room,
  .play-table,
  .bet-slip,
  .draw-stage,
  .draw-console,
  .lucky-draw-room-hero,
  .ticket-machine,
  .number-board,
  .game-grid,
  .game-tile {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    overflow: hidden;
  }
  .hero-art {
    display: none;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 9, 6, 0.98) 0%, rgba(12, 9, 6, 0.9) 70%, rgba(12, 9, 6, 0.68) 100%),
      linear-gradient(180deg, rgba(247, 212, 107, 0.08), rgba(8, 7, 6, 0.18));
  }
  .tag {
    max-width: 100%;
    font-size: 11px;
  }
  h1 {
    font-size: clamp(38px, 12.8vw, 52px);
  }
  .hero-copy p {
    display: block;
    width: min(100%, calc(100vw - 54px));
    max-inline-size: calc(100vw - 54px);
    font-size: 14px;
    line-break: anywhere;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .game-tile {
    min-height: 136px;
    padding: 16px 70px 16px 16px;
  }
  .game-tile::after {
    right: 8px;
    width: 54px;
    height: 54px;
  }
  .game-tile img {
    right: 9px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
  .lucky-draw-room-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lucky-draw-room-hero img {
    display: none;
  }
  .room-copy {
    max-width: 100%;
  }
  .room-prize {
    width: auto;
  }
  .lucky-draw-status-bar {
    grid-template-columns: 1fr;
  }
  .preview-numbers span {
    width: clamp(48px, 17vw, 58px);
    font-size: clamp(27px, 10vw, 38px);
  }
  .number-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .number-button {
    width: min(100%, 58px);
    font-size: 15px;
  }
  .draw-board > div {
    padding: 12px;
  }
  .draw-stage,
  .draw-console,
  .draw-result-card,
  .draw-board,
  .draw-board > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .draw-stage {
    overflow: hidden;
  }
  .draw-result-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .draw-numbers span {
    width: clamp(46px, 18vw, 58px);
    font-size: clamp(26px, 10vw, 38px);
  }
  .draw-stage img {
    width: 138px;
    opacity: 0.4;
    margin: 0 auto;
  }
}

@media (max-width: 380px) {
  .brand strong { font-size: 14px; }
  .btn b { font-size: 12px; }
  .nav-item { font-size: 12px; }
  h1 { font-size: 40px; }
  .hero-copy p { font-size: 13px; }
  .game-tile strong { font-size: 21px; }
  .game-tile small { font-size: 10px; }
  .preview-numbers span,
  .draw-numbers span {
    width: 44px;
  }
}
