:root {
  color-scheme: light;
  --field: #073b32;
  --field-soft: #0d4b3a;
  --ink: #171a16;
  --muted: #6d736a;
  --paper: #fcfbf7;
  --mist: #edf1ec;
  --line: #cbd4ca;
  --blue: #2454a6;
  --cinnabar: #d64a2f;
  --gold: #c49a2c;
  --lime: #9bd35a;
  --shadow: 0 16px 34px rgba(16, 26, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 0 46%, rgba(255, 255, 255, 0.42), transparent 18%),
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(180deg, rgba(7, 59, 50, 0.78), rgba(237, 241, 236, 0.95) 360px),
    repeating-linear-gradient(90deg, rgba(8, 104, 58, 0.18) 0 72px, rgba(255, 255, 255, 0.24) 72px 144px),
    #dfe8df;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

.stadium-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.22) 42%, transparent 54%),
    linear-gradient(245deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 43%, transparent 56%);
  opacity: 0.58;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: min(390px, 28vw);
  aspect-ratio: 2 / 3;
  background: url("/assets/mascot-luloo-kick.png?v=20260706-server-4") center / contain no-repeat;
  opacity: 0.38;
  filter: saturate(1.12);
}

body::before {
  left: -74px;
  top: 330px;
}

body::after {
  right: -76px;
  top: 650px;
  transform: scaleX(-1);
}

h1,
h2,
p {
  margin: 0;
}

.terminal-head,
.layout,
.footer,
.game-overlay {
  position: relative;
  z-index: 1;
}

.star-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px clamp(14px, 3vw, 38px);
  border-bottom: 1px solid rgba(255, 244, 191, 0.54);
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 244, 191, 0.30), transparent 28%),
    linear-gradient(90deg, rgba(214, 74, 47, 0.36), rgba(196, 154, 44, 0.34)),
    var(--field);
  box-shadow: 0 14px 30px rgba(7, 59, 50, 0.24);
  color: #fffdf2;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 900;
  text-align: center;
}

.star-banner::before {
  content: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 32px;
  border: 1px solid rgba(255, 244, 191, 0.76);
  border-radius: 999px;
  background: rgba(255, 244, 191, 0.14);
  color: #fff4bf;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.star-banner span {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.star-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: #fff4bf;
  color: var(--field);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.star-banner .star-cta {
  background: #ffe26b;
  color: #173d31;
}

.star-banner a:hover,
.star-banner a:focus-visible {
  background: #fff;
  color: var(--cinnabar);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .star-banner {
    align-items: stretch;
    min-height: auto;
    padding: 10px 14px;
    text-align: left;
  }

  .star-banner::before {
    min-width: 52px;
    height: 30px;
  }

  .star-banner span {
    flex: 1 1 220px;
  }

  .star-banner a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.terminal-head {
  display: grid;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 48px) 18px;
  background:
    radial-gradient(circle at 100% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(7, 59, 50, 0.96), rgba(13, 75, 58, 0.88));
  border-radius: 0 0 22px 22px;
  box-shadow: 0 20px 46px rgba(7, 59, 50, 0.22);
  color: #fff;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mascot {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

.head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
}

.brand-block h1 {
  max-width: 720px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  font-weight: 900;
}

.brand-lockup h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.head-copy {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.compact-help {
  max-width: 260px;
}

.head-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(62px, 1fr));
  min-height: 36px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.head-actions button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.head-actions button:last-child {
  border-right: 0;
}

.head-actions button.active {
  background: #fff;
  color: var(--field);
}

.football-art {
  width: 100%;
  max-height: 170px;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-head .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  color: #f4f7ee;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.layout {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px clamp(12px, 3vw, 32px) 34px;
}

.primary-dashboard {
  margin-bottom: 18px;
}

.reference-grid {
  display: grid;
  grid-template-columns: 240px minmax(300px, 0.82fr) minmax(390px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.reference-grid > .today-panel,
.reference-grid > .tomorrow-panel,
.reference-grid > .community-panel,
.reference-grid > .slip-panel {
  margin-bottom: 0;
}

.reference-grid > .today-panel,
.reference-grid > .tomorrow-panel {
  min-height: 270px;
}

.reference-grid > .slip-panel {
  grid-column: span 2;
}

.reference-grid > .community-panel {
  grid-column: span 1;
}

.game-entry-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  align-self: start;
  gap: 16px;
  min-height: 142px;
  height: 176px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(255, 226, 107, 0.48);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 226, 107, 0.42), transparent 28%),
    linear-gradient(135deg, #093d32, #0f6b4a);
  color: #fffdf2;
}

.game-entry-panel::after {
  content: "⚽";
  position: absolute;
  right: 86px;
  bottom: -24px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 96px;
}

.game-entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.game-entry-copy h2 {
  font-size: 24px;
}

.game-entry-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.game-launch,
.game-primary,
.game-close {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.game-launch {
  position: relative;
  z-index: 1;
  justify-self: end;
  min-width: 94px;
  min-height: 44px;
  padding: 0 18px;
  background: #ffe26b;
  color: #103b30;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.panel.game-entry-panel {
  border-color: rgba(255, 226, 107, 0.48);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 226, 107, 0.42), transparent 28%),
    linear-gradient(135deg, #093d32, #0f6b4a);
  color: #fffdf2;
}

.forecast-board {
  display: grid;
  grid-template-columns: 240px minmax(300px, 0.78fr) minmax(360px, 1fr);
  gap: 16px;
  margin-top: 0;
  margin-bottom: 18px;
}

.date-ticket,
.track-card,
.recommend-rail,
.panel,
.daily-card,
.slip-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.date-ticket {
  position: relative;
  min-height: 176px;
  padding: 22px 18px;
  overflow: hidden;
}

.date-ticket::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: repeating-linear-gradient(
    to bottom,
    var(--cinnabar) 0 14px,
    transparent 14px 22px
  );
}

.date-ticket strong {
  display: block;
  margin: 18px 0 8px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1;
  white-space: nowrap;
}

.date-ticket span {
  color: var(--muted);
  font-size: 14px;
}

.track-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 176px;
  padding: 18px;
}

.track-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.track-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.recommend-rail {
  overflow: hidden;
}

.rail-head,
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.rail-head h2,
.panel-head h2 {
  font-size: 18px;
}

.rail-head p,
.panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.recommend-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--line);
}

.recommend-card:last-child {
  border-bottom: 0;
}

.ticket-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--field);
  color: #fff;
  font-weight: 900;
}

.recommend-card strong,
.market-card strong,
.team-line {
  overflow-wrap: anywhere;
}

.recommend-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.risk-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.risk-dot.低,
.risk-dot.low {
  background: var(--field);
}

.risk-dot.高,
.risk-dot.high {
  background: var(--cinnabar);
}

.ticket-metric {
  text-align: right;
}

.ticket-metric span {
  display: block;
  color: var(--cinnabar);
  font-size: 22px;
  font-weight: 900;
}

.ticket-metric em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.daily-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.today-panel,
.tomorrow-panel {
  margin-bottom: 20px;
}

.daily-card {
  overflow: hidden;
  box-shadow: none;
}

.daily-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.daily-card-head h2 {
  margin-top: 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.daily-card-head h2 span {
  color: inherit;
}

.daily-card-head h2 small {
  color: var(--cinnabar);
  font-size: 0.56em;
}

.match-date,
.handicap,
.track-badge,
.market-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.handicap,
.track-badge {
  align-self: start;
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.track-badge {
  border-color: rgba(36, 84, 166, 0.35);
  background: rgba(36, 84, 166, 0.08);
  color: var(--blue);
}

.card-subhead,
.market-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.card-subhead span,
.market-title span {
  color: var(--muted);
  font-size: 13px;
}

.baseline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.baseline {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.baseline:last-child {
  border-right: 0;
}

.baseline span {
  color: var(--muted);
  font-size: 13px;
}

.baseline strong {
  display: block;
  margin: 4px 0 10px;
  font-size: 22px;
}

.bar-track,
.mini-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e7dd;
}

.bar-fill,
.mini-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.home-fill {
  background: var(--field);
}

.draw-fill {
  background: var(--gold);
}

.away-fill {
  background: var(--cinnabar);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.market-card {
  min-height: 112px;
  padding: 14px;
  border-right: 1px dashed var(--line);
  background: #fff;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.market-card:last-child {
  border-right: 0;
}

.market-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 18px;
}

.market-card p {
  color: var(--muted);
  font-size: 13px;
}

.market-card em {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.market-card.selected {
  background: #f4f8ef;
  box-shadow: inset 0 0 0 2px var(--lime);
}

.prediction-market-title strong {
  font-size: 16px;
}

.prediction-market-grid .market-card {
  min-height: 126px;
}

.match-community {
  display: grid;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: #fbfcf8;
}

.community-topline,
.shootout-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-topline strong {
  font-size: 16px;
}

.community-topline span,
.community-top p,
.community-dock-card p {
  color: var(--muted);
  font-size: 12px;
}

.community-top,
.community-dock {
  display: grid;
  gap: 8px;
}

.community-pick {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.community-pick .rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--field);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.community-pick strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.community-pick p {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.like-prediction,
.community-form button,
.shootout-controls button {
  min-height: 32px;
  border: 1px solid rgba(36, 84, 166, 0.28);
  border-radius: 8px;
  background: rgba(36, 84, 166, 0.08);
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.community-form {
  display: grid;
  grid-template-columns: 92px minmax(150px, 1fr) minmax(120px, 0.8fr) 72px;
  gap: 8px;
}

.community-form input,
.community-form select {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.community-panel,
.shootout-panel {
  margin-bottom: 20px;
}

.community-dock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 16px 16px;
  background: #fff;
}

.community-dock-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.community-dock-card > strong {
  overflow-wrap: anywhere;
}

.shootout-field {
  position: relative;
  height: 280px;
  margin: 16px;
  overflow: hidden;
  border: 1px solid rgba(7, 59, 50, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 49%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.14) 51%),
    repeating-linear-gradient(90deg, rgba(7, 59, 50, 0.18) 0 72px, rgba(255, 255, 255, 0.08) 72px 144px),
    linear-gradient(180deg, #0e6b4c, #0a4e3b);
  cursor: crosshair;
}

.goal-mouth {
  position: absolute;
  left: 22%;
  top: 8%;
  width: 56%;
  height: 34%;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.20);
}

.keeper {
  position: absolute;
  left: 47%;
  top: 28%;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(196, 154, 44, 0.14);
}

.target-ring {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 42px;
  height: 42px;
  border: 2px dashed rgba(255, 244, 191, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ball {
  position: absolute;
  left: 50%;
  top: 84%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  transition: left 280ms ease, top 280ms ease, transform 280ms ease;
}

.ball.scored {
  transform: translate(-50%, -50%) scale(1.12);
}

.ball.missed {
  filter: grayscale(0.5);
}

.shootout-controls {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prediction-market.unavailable {
  background: #f3f5f1;
  color: var(--muted);
}

.prediction-market.unavailable em {
  color: var(--cinnabar);
}

.select-market {
  width: 100%;
  height: 32px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--field);
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.market-card.selected .select-market {
  border-color: var(--field);
  background: var(--field);
  color: #fff;
}

.select-market:hover,
.open-slip:hover,
.market-tab:hover,
.segmented button:hover,
.head-actions button:hover,
.bet-option:hover,
.remove-selection:hover {
  transform: translateY(-1px);
}

.select-market:focus-visible,
.open-slip:focus-visible,
.market-tab:focus-visible,
.segmented button:focus-visible,
.head-actions button:focus-visible,
.bet-option:focus-visible,
.remove-selection:focus-visible,
.match-select select:focus-visible,
.stake-input input:focus-visible,
.odds-input:focus-visible,
.search input:focus-visible {
  outline: 3px solid rgba(196, 154, 44, 0.34);
  outline-offset: 2px;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  margin-right: 0.28em;
  font-size: 0.92em;
}

.tomorrow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  background: #fff;
}

.tomorrow-card {
  display: grid;
  gap: 14px;
  min-height: 146px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tomorrow-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.tomorrow-card h3 small {
  color: var(--cinnabar);
  font-size: 0.62em;
}

.tomorrow-pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.tomorrow-pick span {
  color: var(--muted);
  font-size: 12px;
}

.tomorrow-pick strong {
  color: var(--blue);
  font-size: 18px;
  text-align: right;
}

.tomorrow-grid .daily-card {
  min-width: 0;
}

.tomorrow-grid .daily-card-head h2 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.14;
}

.tomorrow-grid .daily-card-head,
.tomorrow-grid .card-subhead {
  min-height: 96px;
}

.open-slip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(36, 84, 166, 0.35);
  border-radius: 6px;
  background: rgba(36, 84, 166, 0.08);
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.result-score {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 86px;
}

.result-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-score strong {
  font-size: 30px;
  line-height: 1;
}

.result-score em {
  max-width: 220px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.review-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.review-line span {
  color: var(--muted);
}

.review-line strong {
  color: var(--cinnabar);
}

.review-line.hit strong {
  color: var(--field);
}

.review-market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: #fff;
}

.review-market {
  min-height: 118px;
  padding: 12px 14px;
  border-right: 1px dashed var(--line);
}

.review-market:last-child {
  border-right: 0;
}

.review-market span,
.review-market p,
.review-market em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.review-market strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 15px;
}

.review-market.hit em {
  color: var(--field);
  font-weight: 900;
}

.review-market.miss em {
  color: var(--cinnabar);
  font-weight: 900;
}

.slip-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.slip-head h2 {
  font-size: 22px;
}

.stake-input {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stake-input input,
.odds-input {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.stake-input input {
  width: 96px;
}

.slip-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: 0;
  background: #fff;
}

.betting-workspace {
  display: grid;
  gap: 0;
  align-content: start;
  border-right: 1px solid var(--line);
}

.bet-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.match-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.match-select select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.market-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.market-tab {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.market-tab:last-child {
  border-right: 0;
}

.market-tab.active {
  background: var(--field);
  color: #fff;
}

.option-grid {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.option-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.option-list.score-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bet-option {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.bet-option strong {
  font-size: 17px;
}

.bet-option span,
.bet-option em,
.bet-option small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.bet-option.selected {
  border-color: var(--field);
  background: #eef6e8;
  box-shadow: inset 0 0 0 2px var(--lime);
}

.selected-list {
  display: grid;
  align-content: start;
  min-height: 132px;
  border-right: 0;
}

.selected-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--line);
}

.selected-item strong {
  display: block;
  margin-bottom: 4px;
}

.selected-item p,
.selected-item label span {
  color: var(--muted);
  font-size: 12px;
}

.selected-item label {
  display: grid;
  gap: 5px;
}

.remove-selection {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--cinnabar);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.remove-selection:hover {
  border-color: rgba(214, 74, 47, 0.45);
  background: rgba(214, 74, 47, 0.08);
}

.slip-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper);
}

.slip-summary div {
  min-height: 76px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.slip-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.slip-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.slip-mode-cell {
  grid-column: 1 / -1;
}

.positive {
  color: var(--field);
}

.negative {
  color: var(--cinnabar);
}

.slip-note {
  padding: 10px 18px 14px;
  color: var(--muted);
  font-size: 12px;
  background: var(--paper);
}

.terminal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 16px;
}

.toolbar-title {
  display: grid;
  gap: 2px;
}

.toolbar-title .eyebrow {
  margin-bottom: 0;
}

.toolbar-title strong {
  font-size: 18px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--blue);
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search input {
  width: min(320px, 48vw);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.match-list {
  display: grid;
}

.match-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.teams {
  display: grid;
  gap: 8px;
}

.team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.score {
  min-width: 48px;
  color: var(--muted);
  text-align: right;
}

.prob-bars {
  display: grid;
  gap: 8px;
}

.bar-line {
  display: grid;
  grid-template-columns: 54px 1fr 48px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.champion-list {
  display: grid;
  padding: 8px 0;
  background: #fff;
}

.champion-row {
  display: grid;
  grid-template-columns: 32px minmax(110px, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.prob {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
}

.history-cell {
  min-height: 96px;
  padding: 14px;
  border-right: 1px dashed var(--line);
}

.history-cell:last-child {
  border-right: 0;
}

.history-cell span,
.history-cell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.history-cell strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.mini-fill {
  background: var(--blue);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px) 28px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state,
.error {
  padding: 24px;
  color: var(--cinnabar);
}

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

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 244, 191, 0.18), transparent 24%),
    rgba(4, 28, 24, 0.86);
  backdrop-filter: blur(10px);
}

.game-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(780px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 18px;
  background: #061c18;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, #0b3e32, #124f3e);
  color: #fff;
}

.game-topbar h2 {
  font-size: 22px;
}

.game-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 0;
}

.game-stage {
  position: relative;
  min-height: 420px;
  background: #071f1a;
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #0d4b3a, #082b25);
  color: #fff;
  font-weight: 900;
}

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

.game-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #f8f8f2;
}

.game-status-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.game-status-card strong {
  font-size: 30px;
}

.game-status-card span,
.game-status-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.game-field,
.control-pack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.game-field input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.role-picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.role-picks button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.role-picks button:last-child {
  border-right: 0;
}

.role-picks button.active {
  background: var(--field);
  color: #fff;
}

.game-primary {
  min-height: 44px;
  padding: 0 16px;
  background: var(--field);
  color: #fff;
}

.game-primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.kick-button {
  background: var(--cinnabar);
}

.control-pack {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.control-pack[hidden] {
  display: none;
}

.control-pack input[type="range"] {
  accent-color: var(--field);
}

@media (max-width: 1120px) {
  .forecast-board,
  .reference-grid,
  .dashboard-grid,
  .head-grid,
  .slip-body,
  .tomorrow-grid,
  .bet-controls,
  .community-dock {
    grid-template-columns: 1fr;
  }

  .reference-grid > .slip-panel,
  .reference-grid > .community-panel {
    grid-column: auto;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .football-art {
    max-width: 520px;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .recommend-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1280px) {
  body::before,
  body::after {
    opacity: 0.18;
  }
}

@media (max-width: 780px) {
  body::before,
  body::after {
    display: none;
  }

  .terminal-toolbar,
  .hero-main,
  .footer,
  .slip-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-head {
    border-radius: 0;
  }

  .brand-mascot {
    width: 58px;
    height: 58px;
  }

  .game-overlay {
    padding: 0;
  }

  .game-shell {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .game-stage {
    min-height: 330px;
  }

  .baseline-grid,
  .market-grid,
  .review-market-grid,
  .history-grid,
  .option-list,
  .option-list.score-options,
  .community-form {
    grid-template-columns: 1fr;
  }

  .baseline,
  .market-card,
  .history-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .daily-card-head,
  .card-subhead,
  .market-title,
  .match-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .selected-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .betting-workspace {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-tabs {
    grid-template-columns: 1fr;
  }

  .market-tab {
    min-height: 38px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .selected-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .selected-item label {
    grid-column: 2;
  }

  .community-pick {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .like-prediction {
    grid-column: 2;
    justify-self: start;
  }

  .shootout-field {
    height: 220px;
    margin: 12px;
  }
}

@media (max-width: 520px) {
  .layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-block h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .football-art {
    display: none;
  }

  .date-ticket strong {
    font-size: 26px;
  }

  .daily-card-head,
  .baseline,
  .market-card,
  .match-row,
  .panel-head,
  .slip-head,
  .selected-item {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search input {
    width: min(280px, 72vw);
  }

  .slip-summary {
    grid-template-columns: 1fr;
  }
}

/* Reference dashboard remake */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #f5f7f3 0 46%, #0e6a42 46% 100%);
}

body::before,
body::after {
  display: none;
}

.field-grass,
.stadium-lights {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.field-grass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 28%, rgba(255, 255, 255, 0.62) 40%, rgba(255, 255, 255, 0) 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 90px, rgba(7, 59, 50, 0.18) 90px 180px),
    linear-gradient(180deg, #dfe9de 0 42%, #16834f 42% 100%);
}

.field-grass::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(255, 255, 255, 0.28), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 9px);
  opacity: 0.58;
}

.stadium-lights {
  background:
    radial-gradient(ellipse at 8% 30%, rgba(255, 255, 255, 0.82), transparent 13%),
    radial-gradient(ellipse at 92% 30%, rgba(255, 255, 255, 0.72), transparent 13%),
    linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.48) 28%, transparent 42%),
    linear-gradient(240deg, transparent 0 18%, rgba(255, 255, 255, 0.42) 28%, transparent 42%);
  filter: blur(0.2px);
  opacity: 0.9;
}

.reference-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  min-height: 680px;
  margin: 14px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0 64%, rgba(255, 255, 255, 0.10) 64%),
    linear-gradient(180deg, rgba(245, 248, 244, 0.96), rgba(245, 248, 244, 0.74) 56%, rgba(20, 118, 72, 0.34) 56%),
    #f7f8f4;
  box-shadow: 0 24px 70px rgba(7, 59, 50, 0.22);
}

.reference-shell .star-banner {
  position: relative;
  top: auto;
  z-index: 5;
  min-height: 34px;
  padding: 5px 14px;
  border-bottom: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #0b372d, #163f30);
  box-shadow: none;
  font-size: 14px;
}

.reference-shell .star-banner a {
  min-height: 24px;
  padding: 3px 10px;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
}

.luloo-dashboard {
  position: relative;
  z-index: 2;
  padding: 14px clamp(64px, 7vw, 84px) 20px;
}

.dashboard-mascot {
  position: absolute;
  z-index: 1;
  bottom: 58px;
  width: clamp(150px, 15vw, 190px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(7, 59, 50, 0.24));
}

.dashboard-mascot-left {
  left: 38px;
}

.dashboard-mascot-right {
  right: 36px;
  transform: scaleX(-1);
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(292px, 0.86fr) minmax(390px, 1.1fr) auto minmax(144px, auto);
  gap: 10px;
  align-items: center;
  min-height: 76px;
}

.brand-lockup {
  gap: 10px;
}

.brand-mascot {
  width: 70px;
  height: 70px;
}

.brand-lockup h1 {
  color: var(--field);
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.top-capsules {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 12px;
  align-items: center;
}

.top-capsules .pill {
  min-height: 50px;
  justify-content: center;
  border: 1px solid rgba(7, 59, 50, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(7, 59, 50, 0.08);
  color: #0c1f18;
  font-size: 14px;
  font-weight: 950;
}

.top-capsules .pill:nth-child(n + 5) {
  display: none;
}

.head-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, 36px);
  min-height: 32px;
  margin: 0;
  border-color: rgba(7, 59, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.head-actions button {
  min-width: 0;
  padding: 0;
  color: var(--field);
  font-size: 12px;
  font-weight: 950;
}

.head-actions button.active {
  background: var(--field);
  color: #fff;
}

.reference-grid {
  display: grid;
  grid-template-columns: 170px minmax(250px, 310px) minmax(360px, 1fr);
  grid-template-rows: 150px 232px 230px;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}

.date-ticket,
.track-card,
.recommend-rail,
.panel,
.daily-card,
.slip-panel {
  border-color: rgba(7, 59, 50, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 26px rgba(7, 59, 50, 0.10);
}

.date-ticket {
  min-height: 0;
  padding: 18px 16px 14px;
}

.date-ticket strong {
  margin: 14px 0 8px;
  color: var(--field);
  font-size: 36px;
}

.date-ticket span {
  font-weight: 800;
  line-height: 1.45;
}

.track-card {
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.track-card h2 {
  font-size: 20px;
}

.track-card p:not(.eyebrow) {
  display: none;
}

.track-card .segmented {
  min-height: 44px;
  margin-top: 8px;
}

.track-card .segmented button.active {
  background: var(--field);
}

.game-entry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  height: auto;
  margin-top: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 226, 107, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #0a3c32, #157347);
  color: #fffdf2;
}

.game-entry-panel::after {
  content: none;
}

.game-entry-copy {
  gap: 2px;
}

.game-entry-copy h2 {
  font-size: 14px;
}

.game-launch {
  min-width: 58px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}

.recommend-rail {
  grid-column: 3;
  overflow: hidden;
}

.rail-head,
.panel-head {
  min-height: 48px;
  padding: 12px 14px;
}

.rail-head h2,
.panel-head h2 {
  font-size: 17px;
}

.recommend-card {
  grid-template-columns: 28px minmax(0, 1fr) 66px;
  min-height: 34px;
  padding: 6px 14px;
}

.ticket-rank {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.recommend-card strong {
  font-size: 13px;
}

.recommend-card p,
.ticket-metric em {
  display: none;
}

.ticket-metric span {
  font-size: 16px;
}

.review-card-main {
  grid-column: 1 / 3;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

.pending-card-main {
  grid-column: 3;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

.calculator-panel {
  grid-column: 1 / 4;
  grid-row: 3;
  overflow: hidden;
}

.review-card-main .daily-grid,
.pending-card-main .tomorrow-grid {
  gap: 0;
  height: calc(100% - 49px);
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.review-card-main .daily-card:nth-child(n + 2) {
  display: none;
}

.review-card-main .daily-card,
.pending-card-main .daily-card {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.review-card-main .daily-card-head,
.pending-card-main .daily-card-head {
  min-height: 58px;
  padding: 8px 14px;
}

.review-card-main .daily-card-head h2,
.pending-card-main .daily-card-head h2 {
  margin-top: 3px;
  font-size: 20px;
}

.result-score strong {
  font-size: 25px;
}

.result-score em {
  display: none;
}

.review-line {
  padding: 9px 14px;
}

.review-line span {
  font-size: 13px;
}

.baseline-grid {
  min-height: 55px;
}

.baseline {
  padding: 7px 14px;
}

.baseline strong {
  margin: 2px 0 7px;
  font-size: 17px;
}

.bar-track {
  height: 7px;
}

.review-market-grid,
.market-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.review-market {
  min-height: 45px;
  padding: 6px 9px;
}

.review-market strong {
  margin: 3px 0;
  font-size: 12px;
}

.review-market p {
  display: none;
}

.review-market em {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(214, 74, 47, 0.10);
}

.review-market.hit em {
  background: rgba(7, 59, 50, 0.12);
}

.pending-card-main .card-subhead,
.pending-card-main .market-title {
  display: none;
}

.pending-card-main .daily-card-head {
  min-height: 62px;
}

.pending-card-main .baseline-grid {
  border-top: 1px solid var(--line);
}

.pending-card-main .prediction-market-grid .market-card {
  min-height: 58px;
  padding: 7px 9px;
}

.pending-card-main .market-card strong {
  margin: 4px 0;
  font-size: 12px;
}

.pending-card-main .market-card p,
.pending-card-main .market-card em {
  font-size: 11px;
}

.pending-card-main .market-card em {
  display: none;
}

.pending-card-main .match-community {
  display: none;
}

.slip-head {
  min-height: 42px;
  padding: 8px 14px;
}

.slip-head h2 {
  font-size: 18px;
}

.slip-body {
  grid-template-columns: minmax(0, 1fr) 320px;
  height: 188px;
  overflow: hidden;
}

.bet-controls {
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  padding: 8px 14px;
}

.match-select select,
.market-tabs {
  min-height: 38px;
}

.option-grid {
  max-height: 82px;
  padding: 8px 14px;
  overflow: auto;
}

.option-head {
  display: none;
}

.option-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.option-list.score-options {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.bet-option {
  min-height: 48px;
  padding: 8px 10px;
}

.bet-option strong {
  font-size: 14px;
}

.bet-option small {
  display: none;
}

.selected-list {
  display: none;
}

.selected-item {
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  padding: 8px 12px;
}

.selected-item p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slip-summary div {
  min-height: 62px;
  padding: 7px 12px;
}

.calculator-panel .slip-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.slip-summary strong {
  margin-top: 3px;
  font-size: 17px;
}

.slip-mode-cell {
  display: none;
}

.slip-note {
  display: none;
}

.secondary-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto 28px;
}

.terminal-toolbar {
  padding: 0 2px;
}

.community-panel {
  margin-bottom: 16px;
}

.game-overlay {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 226, 107, 0.18), transparent 26%),
    rgba(4, 28, 24, 0.92);
}

.game-shell {
  width: min(1280px, 100%);
  height: min(820px, 100%);
  border-radius: 18px;
  background: #08251e;
}

.game-stage {
  background: #0a3127;
}

.game-canvas {
  background: #0a3127;
}

/* Readability overrides: content must not be clipped on real data. */
.reference-shell {
  width: min(1480px, calc(100vw - 32px));
  min-height: auto;
  overflow: visible;
}

.luloo-dashboard {
  padding: 14px clamp(72px, 6vw, 110px) 28px;
}

.reference-grid {
  grid-template-columns: minmax(210px, 0.55fr) minmax(360px, 0.95fr) minmax(520px, 1.2fr);
  grid-template-rows: auto auto auto;
  align-items: start;
}

.date-ticket,
.track-card,
.recommend-rail,
.review-card-main,
.pending-card-main,
.calculator-panel,
.review-card-main .daily-grid,
.pending-card-main .tomorrow-grid,
.review-card-main .daily-card,
.pending-card-main .daily-card,
.slip-body,
.option-grid {
  height: auto;
  max-height: none;
  overflow: visible;
}

.review-card-main,
.pending-card-main,
.calculator-panel {
  min-height: auto;
}

.review-card-main .daily-card-head,
.pending-card-main .daily-card-head {
  min-height: 72px;
}

.review-card-main .daily-card-head h2,
.pending-card-main .daily-card-head h2 {
  font-size: 23px;
  line-height: 1.18;
}

.baseline-grid {
  min-height: 74px;
}

.baseline {
  padding: 10px 14px;
}

.review-market {
  min-height: 76px;
  padding: 9px 10px;
}

.review-market p,
.review-market em {
  display: block;
}

.pending-card-main .prediction-market-grid .market-card {
  min-height: 86px;
  padding: 10px 12px;
}

.pending-card-main .market-card strong {
  font-size: 14px;
}

.pending-card-main .market-card p,
.pending-card-main .market-card em {
  display: block;
  font-size: 12px;
}

.slip-body {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.calculator-panel .bet-controls {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.calculator-panel .market-tabs {
  width: 100%;
}

.option-grid {
  min-height: 124px;
}

.option-list {
  grid-template-columns: repeat(4, minmax(112px, 1fr));
}

.option-list.score-options {
  grid-template-columns: repeat(6, minmax(96px, 1fr));
}

.bet-option {
  min-height: 70px;
}

.selected-list {
  display: grid;
  max-height: none;
  overflow: visible;
}

.calculator-panel .slip-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slip-summary div {
  min-height: 66px;
}

.slip-mode-cell {
  display: block;
}

@media (max-width: 1120px) {
  .reference-shell {
    border-radius: 0;
    width: 100%;
    margin-top: 0;
  }

  .luloo-dashboard {
    padding: 14px;
  }

  .dashboard-mascot {
    display: none;
  }

  .dashboard-head,
  .reference-grid,
  .slip-body,
  .bet-controls,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .top-capsules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommend-rail,
  .review-card-main,
  .pending-card-main,
  .calculator-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .reference-grid {
    grid-template-rows: auto;
  }

  .review-card-main .daily-grid,
  .pending-card-main .tomorrow-grid {
    height: auto;
    overflow: visible;
  }

  .option-list,
  .option-list.score-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .reference-shell .star-banner {
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .reference-shell .star-banner a {
    flex: 1 1 92px;
    justify-content: center;
  }

  .brand-lockup h1 {
    font-size: 30px;
  }

  .brand-mascot {
    width: 54px;
    height: 54px;
  }

  .top-capsules {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .top-capsules .pill {
    min-height: 42px;
    font-size: 12px;
  }

  .baseline-grid,
  .review-market-grid,
  .market-grid,
  .history-grid,
  .community-dock {
    grid-template-columns: 1fr;
  }

  .slip-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-stage {
    min-height: 48vh;
  }
}
