:root {
  color-scheme: light;
  --bg: #edf2f7;
  --panel: #ffffff;
  --panel-soft: #f5f8fc;
  --line: #d8e2ee;
  --text: #203249;
  --muted: #587391;
  --accent: #1b4c86;
  --accent-strong: #103b72;
  --danger: #b84d4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #e8edf4 100%);
  color: var(--text);
}

.fixed-layout-body {
  overflow-x: hidden;
}

.fixed-layout-body,
.fixed-scale-root {
  --content-max-width: 1380px;
  --page-top-spacing: 20px;
  --page-bottom-spacing: 32px;
  --stage-padding-block: 22px;
  --stage-padding-inline: 24px;
  --stage-title-min: 36px;
  --stage-title-max: 52px;
  --stage-title-fluid: 5.2vw;
  --stage-copy-fr: 1.2fr;
  --stage-panel-min-width: 320px;
  --stage-panel-max-width: 520px;
  --card-radius: 18px;
  --card-shadow-blur: 40px;
  --card-shadow-alpha: 0.08;
  --section-gap: 24px;
}

.fixed-scale-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

.fixed-scale-root {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  transform-origin: top center;
  will-change: transform;
}

.fixed-scale-root.native-width-mode {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  transform: none;
  zoom: 1;
}

.fixed-scale-root.native-width-mode .page {
  padding: 18px 14px 40px;
}

.fixed-scale-root.native-width-mode .home-stage,
.fixed-scale-root.native-width-mode .game-stage {
  gap: 16px;
  padding: 20px 18px;
}

.fixed-scale-root.native-width-mode .home-stage-panel,
.fixed-scale-root.native-width-mode .game-stage-panel,
.fixed-scale-root.native-width-mode .game-stage-stack {
  gap: 12px;
}

.fixed-scale-root.native-width-mode .home-mainnav {
  gap: 8px;
  flex-wrap: wrap;
}

.fixed-scale-root.native-width-mode .site-language-switch {
  width: auto;
  min-width: 118px;
  max-width: 168px;
  justify-content: flex-start;
  order: 2;
  margin-left: auto;
}

.fixed-scale-root.native-width-mode .home-nav-trigger,
.fixed-scale-root.native-width-mode .game-subnav-inner a,
.fixed-scale-root.native-width-mode .game-toolbar-links a {
  min-height: 34px;
  padding-left: 12px;
  padding-right: 12px;
}

.fixed-scale-root.native-width-mode .game-subnav-inner,
.fixed-scale-root.native-width-mode .game-toolbar-links {
  gap: 8px;
}

.fixed-scale-root.native-width-mode .home-utility-links,
.fixed-scale-root.native-width-mode .home-utilitybar-inner {
  gap: 10px;
}

.fixed-scale-root.native-width-mode .table-wrap {
  margin: 0 -2px;
}

.fixed-scale-root.native-width-mode table {
  min-width: 480px;
}

.fixed-scale-root.native-width-mode th,
.fixed-scale-root.native-width-mode td {
  font-size: 13px;
}

code {
  font-family: Consolas, monospace;
}

.page {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--page-top-spacing) 20px var(--page-bottom-spacing);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: var(--section-gap);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

h1,
h2 {
  margin: 0;
}

.subtext,
.muted {
  color: var(--muted);
}

.hero-tag {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 76, 134, 0.08);
  color: var(--accent);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: var(--section-gap);
}

.hero-grid {
  align-items: stretch;
}

.stats-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 14px var(--card-shadow-blur) rgba(15, 37, 66, var(--card-shadow-alpha));
}

.fixed-scale-root.compact-mode .card,
.fixed-scale-root.compact-mode .home-stage-panel,
.fixed-scale-root.compact-mode .game-toolbar {
  padding: 18px;
}

.fixed-scale-root.compact-mode .home-stage,
.fixed-scale-root.compact-mode .game-stage {
  gap: 18px;
}

.fixed-scale-root.compact-mode .home-stage,
.fixed-scale-root.compact-mode .game-stage,
.fixed-scale-root.compact-mode .home-results-shell {
  grid-template-columns: 1fr;
}

.fixed-scale-root.compact-mode .home-quicklinks,
.fixed-scale-root.compact-mode .game-overview-grid,
.fixed-scale-root.compact-mode .game-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixed-scale-root.compact-mode .home-site-footer-main,
.fixed-scale-root.compact-mode .home-site-footer-meta,
.fixed-scale-root.compact-mode .game-toolbar {
  flex-direction: column;
  align-items: stretch;
}

.fixed-scale-root.compact-mode .home-site-footer-partner-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixed-scale-root.compact-mode .home-utilitybar-inner,
.fixed-scale-root.compact-mode .home-sitebar-inner {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.fixed-scale-root.compact-mode .home-utility-links,
.fixed-scale-root.compact-mode .home-utility-tools {
  flex-wrap: wrap;
}

.fixed-scale-root.compact-mode .home-brand {
  flex: 1 0 100%;
}

.fixed-scale-root.compact-mode .home-mainnav {
  justify-content: flex-start;
  gap: 12px;
}

.fixed-scale-root.compact-mode .game-subnav-inner {
  gap: 12px;
}

.fixed-scale-root.compact-mode .home-results-legend {
  display: none;
}

.fixed-scale-root.compact-mode .home-results-header {
  align-items: start;
}

.fixed-scale-root.compact-mode .site-language-switch {
  align-self: auto;
  width: auto;
  min-width: 88px;
  max-width: 156px;
  margin-left: auto;
  padding: 0;
}

.fixed-scale-root.compact-mode .site-language-switch span {
  display: none;
}

.fixed-scale-root.compact-mode .home-quicklink-card strong {
  font-size: 20px;
}

.fixed-scale-root.compact-mode .home-nav-trigger,
.fixed-scale-root.compact-mode .game-toolbar-links a,
.fixed-scale-root.compact-mode th,
.fixed-scale-root.compact-mode td,
.fixed-scale-root.compact-mode .muted,
.fixed-scale-root.compact-mode .home-note {
  font-size: 15px;
}

.fixed-scale-root.compact-mode .home-lead,
.fixed-scale-root.compact-mode .game-stage .subtext,
.fixed-scale-root.compact-mode .admin-hero .subtext {
  font-size: 18px;
  line-height: 1.6;
}

.fixed-scale-root.compact-mode .home-featured-name,
.fixed-scale-root.compact-mode .countdown {
  font-size: 32px;
}

.fixed-scale-root.compact-mode .site-language-switch select,
.fixed-scale-root.compact-mode .home-cta,
.fixed-scale-root.compact-mode .game-toolbar-links a {
  min-height: 30px;
}

.fixed-scale-root.compact-mode .site-language-switch select {
  height: 30px;
  padding: 0 24px 0 10px;
  font-size: 12px;
}

.fixed-scale-root.compact-mode .home-nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: min(320px, calc(100vw - 80px));
  margin-top: 8px;
  padding: 0;
  border-width: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: none;
  grid-template-columns: 1fr;
  max-height: 0;
  overflow: hidden;
}

.fixed-scale-root.compact-mode .home-nav-item:hover .home-nav-panel,
.fixed-scale-root.compact-mode .home-nav-item:focus-within .home-nav-panel {
  padding: 18px;
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
}

.fixed-scale-root.compact-mode .home-nav-item {
  width: auto;
  flex: 0 0 auto;
}

.fixed-scale-root.compact-mode .home-nav-trigger {
  width: auto;
  justify-content: center;
}

.fixed-scale-root.compact-mode .home-app-grid,
.fixed-scale-root.compact-mode .home-feature-grid,
.fixed-scale-root.compact-mode .home-generator-grid {
  grid-template-columns: 1fr;
}

.fixed-scale-root.compact-mode .home-lottery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hidden {
  display: none !important;
}

.full-span {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.issue-line,
.meta-row,
.next-line {
  margin-top: 14px;
}

.balls,
.mini-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.balls {
  margin-top: 18px;
}

.ball,
.mini-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd85f 0%, #efb000 100%);
  color: #173253;
}

.ball {
  width: 50px;
  height: 50px;
  font-size: 28px;
}

.mini-ball {
  width: 24px;
  height: 24px;
  font-size: 15px;
}

.meta-row {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.countdown-wrap {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.countdown {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.api-list {
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 76, 134, 0.08);
  border: 1px solid rgba(27, 76, 134, 0.18);
  color: var(--accent);
  font-size: 13px;
}

.link-tag {
  text-decoration: none;
}

.home-game-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-game-card:hover {
  border-color: rgba(27, 76, 134, 0.4);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.digit-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 14px;
}

.stat-key {
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.dragon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dragon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--section-gap);
}

.admin-dashboard {
  margin-top: var(--section-gap);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.08);
}

.admin-kpi-card strong {
  font-size: 28px;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
}

.admin-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  margin-top: 20px;
}

.admin-page {
  max-width: var(--content-max-width);
  padding-top: var(--page-top-spacing);
  padding-bottom: var(--page-bottom-spacing);
}

.admin-body {
  font-family: "Source Sans 3", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #edf2f7 0%, #e8edf4 100%);
  color: #203249;
}

.admin-hero {
  align-items: center;
  padding: var(--stage-padding-block) var(--stage-padding-inline);
  border-radius: 24px;
  background: linear-gradient(135deg, #12457f 0%, #0d2d58 100%);
  color: #ffffff;
  box-shadow: 0 20px 56px rgba(12, 42, 82, 0.22);
}

.admin-hero-tools {
  display: grid;
  align-self: center;
  justify-items: end;
  gap: 12px;
}

.admin-hero h1 {
  font-family: "Spectral", "Times New Roman", serif;
  color: #ffffff;
  font-size: clamp(var(--stage-title-min), var(--stage-title-fluid), var(--stage-title-max));
}

.admin-hero .eyebrow,
.admin-hero .subtext,
.admin-hero .hero-tag {
  color: rgba(255, 255, 255, 0.84);
}

.admin-hero .hero-tag {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.admin-language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 156px;
  min-height: 42px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  gap: 10px;
}

.admin-language-switch::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.admin-language-switch span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-language-switch select {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.admin-language-switch option {
  color: #173253;
}

.admin-summary-card,
.admin-card,
.admin-toolbar-card,
.admin-alerts-card,
.admin-kpi-card {
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.08);
}

.admin-card h2,
.admin-summary-card h2 {
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-draw-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 18px;
}

.admin-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd85f 0%, #efb000 100%);
  color: #173253;
  font-size: 16px;
  font-weight: 700;
}

.admin-empty-draw {
  color: #6b839d;
}

.admin-status-tag.is-running {
  background: #edf3fb;
  border-color: #d5e0ed;
  color: #33506f;
}

.admin-status-tag.is-paused {
  background: #fff1f1;
  border-color: #f2c4c4;
  color: #b84d4d;
}

.admin-meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid #dfe7f0;
}

.admin-actions,
.admin-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-inline {
  margin-top: 12px;
  align-items: center;
}

.admin-alerts-list {
  display: grid;
  gap: 12px;
}

.admin-alert-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f8fc;
  border: 1px solid #dfe7f0;
}

.admin-alert-item {
  align-items: center;
}

.admin-alert-item.is-warning {
  background: #fff7ea;
  border-color: #f2dcc0;
}

.admin-alert-item.is-critical {
  background: #fff1f1;
  border-color: #f2c4c4;
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid #c8d6e6;
  background: #f7fbff;
  color: #24466d;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input {
  min-width: 120px;
  border: 1px solid #ccd8e7;
  background: #ffffff;
  color: #203249;
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-login-page {
  max-width: 760px;
}

.admin-login-card {
  margin-top: var(--section-gap);
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.08);
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-login-field {
  display: grid;
  gap: 8px;
  color: #33506f;
  font-weight: 700;
}

.admin-login-field input {
  min-width: 0;
  min-height: 44px;
}

.admin-login-message {
  min-height: 24px;
  margin: 18px 0 0;
}

.admin-login-message.is-error {
  color: #b84d4d;
}

.member-auth-page {
  max-width: 760px;
}

.member-auth-hero {
  align-items: center;
}

.member-auth-card {
  margin-top: var(--section-gap);
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.08);
}

.member-auth-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1b4c86;
  font-weight: 700;
  cursor: pointer;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.member-profile-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #d8e2ee;
}

.member-profile-item span {
  color: #607b99;
  font-size: 13px;
}

.member-profile-item strong {
  color: #123b73;
  font-size: 18px;
}

@media (max-width: 1200px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-secondary-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.dragon-count {
  color: var(--accent);
  font-weight: 700;
}

.error-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ffd5d5;
}

@media (max-width: 960px) {
  .grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .admin-hero-tools {
    width: 100%;
    justify-items: stretch;
  }

  .admin-language-switch {
    width: 100%;
  }

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

  .admin-grid,
  .admin-meta {
    grid-template-columns: 1fr;
  }
}

body.home-body {
  font-family: "Source Sans 3", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #eef3f8 0%, #e4ebf3 100%);
  color: #203249;
}

.home-utilitybar {
  background:
    linear-gradient(180deg, rgba(8, 36, 67, 0.98) 0%, rgba(7, 31, 58, 0.96) 100%),
    radial-gradient(circle at left center, rgba(255, 216, 95, 0.16), transparent 36%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.home-utilitybar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 46px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-utility-links,
.home-utility-links a {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-utility-links a,
.home-utility-note {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-utility-link {
  position: relative;
  padding: 0 0 0 14px;
}

.home-utility-link-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-utility-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd85f 0%, #efb000 100%);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 216, 95, 0.1);
}

.home-utility-link:hover,
.home-utility-link:focus-visible {
  color: #ffffff;
}

.home-utility-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-search-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-search-inline-input {
  min-width: 220px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 100%);
  color: #ffffff;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-search-inline-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.home-sitebar {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(18, 60, 115, 0.97) 0%, rgba(10, 45, 89, 0.96) 100%),
    radial-gradient(circle at top right, rgba(255, 216, 95, 0.2), transparent 28%);
  box-shadow: 0 16px 36px rgba(8, 28, 54, 0.24);
  backdrop-filter: blur(12px);
}

.home-sitebar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 22px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-brand,
.home-nav-trigger {
  color: #ffffff;
  text-decoration: none;
}

.home-brand {
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 20px rgba(2, 15, 33, 0.22);
}

.home-app-zone {
  margin-top: 18px;
}

.home-app-card,
.home-feature-card {
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%),
    radial-gradient(circle at top right, rgba(255, 216, 95, 0.1), transparent 34%);
  border: 1px solid rgba(24, 66, 109, 0.08);
  box-shadow: 0 18px 42px rgba(15, 38, 67, 0.09);
}

.home-app-grid,
.home-feature-grid,
.home-lottery-grid,
.home-generator-grid {
  display: grid;
  gap: 16px;
}

.home-app-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.home-app-grid div {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
  border: 1px solid rgba(20, 67, 111, 0.07);
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.home-feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4d6784;
  display: grid;
  gap: 10px;
}

.home-lottery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.home-lottery-grid a,
.home-generator-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faff 0%, #edf3fb 100%);
  color: #21476c;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(20, 67, 111, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-lottery-grid a:hover,
.home-generator-grid span:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 56, 97, 0.1);
}

.home-generator-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.home-mainnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.home-nav-item {
  position: relative;
}

.home-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0.92;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-nav-trigger:hover,
.home-nav-item:focus-within .home-nav-trigger {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(8, 25, 48, 0.16);
  transform: translateY(-1px);
}

.home-nav-item-menu .home-nav-trigger {
  padding-right: 30px;
}

.home-nav-item-menu .home-nav-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-nav-item-menu:hover .home-nav-trigger::after,
.home-nav-item-menu:focus-within .home-nav-trigger::after {
  transform: translateY(-35%) rotate(225deg);
  border-color: #ffffff;
}

.home-nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 420px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%),
    radial-gradient(circle at top left, rgba(18, 60, 115, 0.07), transparent 40%);
  box-shadow: 0 28px 58px rgba(7, 28, 53, 0.22);
  border: 1px solid rgba(14, 41, 76, 0.08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.home-nav-panel-feature {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14, 57, 104, 0.96) 0%, rgba(14, 73, 128, 0.92) 58%, rgba(255, 216, 95, 0.2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-nav-panel-heading {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-nav-panel-feature strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.home-nav-panel-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.home-nav-sublink {
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #24476f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid rgba(29, 73, 124, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.home-nav-sublink:hover {
  color: #0a4a8a;
  background: #ffffff;
  border-color: rgba(17, 71, 131, 0.16);
  transform: translateY(-1px);
}

.home-stage {
  position: relative;
  overflow: hidden;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 216, 95, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 66, 122, 0.06) 0%, rgba(15, 66, 122, 0) 100%);
  pointer-events: none;
}

.home-nav-item:hover .home-nav-panel,
.home-nav-item:focus-within .home-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 112px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-language-switch:hover {
  border-color: transparent;
  box-shadow: none;
}

.site-language-switch::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.site-language-switch span {
  display: none;
  white-space: nowrap;
  opacity: 0.88;
}

.site-language-switch select {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0 30px 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 38px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.site-language-switch option {
  color: #173253;
}

.home-shell {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--page-top-spacing) 22px var(--page-bottom-spacing);
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, var(--stage-copy-fr)) minmax(var(--stage-panel-min-width), var(--stage-panel-max-width));
  gap: 22px;
  padding: var(--stage-padding-block) var(--stage-padding-inline);
  border-radius: 26px;
  background: linear-gradient(135deg, #114279 0%, #0c2d57 60%, #082443 100%);
  box-shadow: 0 26px 64px rgba(12, 42, 82, 0.24);
}

.home-stage-copy {
  color: #ffffff;
}

.home-kicker,
.home-section-kicker,
.home-card-code,
.home-panel-topline {
  margin: 0 0 10px;
  color: #ffd154;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 700;
}

.home-stage h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: clamp(var(--stage-title-min), var(--stage-title-fluid), var(--stage-title-max));
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.home-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.home-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd85e 0%, #f6b800 100%);
  color: #173253;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 38, 69, 0.2);
}

.home-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.home-stage-panel {
  align-self: stretch;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 254, 0.98) 100%);
  color: #203249;
}

.home-stage-warning {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f3f7fb;
  border: 1px solid #d8e2ee;
}

.home-stage-warning strong {
  display: block;
  color: #173d6d;
  font-size: 15px;
}

.home-stage-warning p {
  margin: 8px 0 0;
  color: #5e7895;
  font-size: 15px;
  line-height: 1.6;
}

.home-featured-name {
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
}

.home-featured-issue {
  margin-top: 6px;
  color: #56708f;
  font-size: 16px;
}

.home-featured-balls,
.home-card-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.home-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd85f 0%, #efb000 100%);
  color: #173253;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-featured-meta span,
.home-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf3fb;
  border: 1px solid #d5e0ed;
  color: #33506f;
  font-size: 13px;
  font-weight: 700;
}

.home-status-pill.is-paused {
  color: #b84d4d;
  background: #fff1f1;
  border-color: #f2c4c4;
}

.home-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.home-quicklinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.home-quicklink-card {
  display: block;
  padding: 18px 18px 20px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  border: 1px solid #d8e2ee;
  color: inherit;
  box-shadow: 0 16px 34px rgba(15, 37, 66, 0.06);
}

.home-quicklink-card span {
  display: block;
  color: #6681a0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-quicklink-card strong {
  display: block;
  margin-top: 8px;
  color: #173d6d;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
}

.home-ribbon-item {
  padding: 20px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 30px rgba(15, 37, 66, 0.06);
}

.home-ribbon-label {
  display: block;
  color: #6f87a3;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-ribbon-item strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  color: #123b73;
}

.home-search:not(.home-search-inline-input) {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #ccd8e7;
  background: #ffffff;
  color: #203249;
  outline: none;
}

.home-search::placeholder {
  color: #8ba0b8;
}

.home-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-results-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 380px);
  gap: 20px;
  align-items: start;
}

.home-results-board {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 250, 255, 0.92) 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.06);
  margin-bottom: var(--section-gap);
}

.home-promo-grid {
  display: grid;
  gap: 18px;
}

.home-promo-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 34px rgba(15, 37, 66, 0.06);
}

.home-promo-card h3 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 30px;
}

.home-promo-card p {
  margin: 12px 0 0;
  color: #607b99;
  font-size: 16px;
  line-height: 1.7;
}

.home-promo-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #123b73;
  font-weight: 700;
  text-decoration: none;
}

.home-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8e2ee;
  margin-bottom: 18px;
}

.home-results-title {
  margin: 6px 0 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.home-results-legend {
  display: grid;
  grid-template-columns: 140px 1fr 140px 120px 110px;
  gap: 10px;
  color: #6f87a3;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-salon-card {
  display: block;
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 38px rgba(15, 37, 66, 0.08);
  border-top: 5px solid #1f5da5;
  opacity: 0;
  transform: translateY(18px);
  animation: salonRise 0.55s ease forwards;
}

.home-salon-card-amber {
  border-top-color: #1f5da5;
}

.home-salon-card-crimson {
  border-top-color: #f2b400;
}

.home-salon-card-ivory {
  border-top-color: #7a98bb;
}

.home-salon-card-emerald {
  border-top-color: #2f7c8b;
}

.home-salon-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 22px 44px rgba(15, 37, 66, 0.12);
}

.home-card-headline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.home-card-headline h3 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 31px;
}

.home-card-subline {
  margin-top: 8px;
  color: #6b839d;
  font-size: 15px;
}

.home-card-code {
  margin-bottom: 8px;
  color: #6481a4;
}

.home-card-primary {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.home-card-issue span,
.home-card-grid span {
  display: block;
  color: #6f87a3;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-card-issue strong {
  display: block;
  margin-top: 8px;
  color: #123b73;
  font-size: 36px;
  font-family: "Spectral", "Times New Roman", serif;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.home-card-grid div {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f8fc;
  border: 1px solid #dfe7f0;
}

.home-result-row {
  position: relative;
}

.home-card-grid strong {
  display: block;
  margin-top: 8px;
  color: #2a4564;
  font-size: 16px;
}

.home-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.home-story-grid.portal-primary-grid-wide {
  grid-template-columns: 1fr;
}

.home-story-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 12px 34px rgba(15, 37, 66, 0.06);
}

.home-story-card h2 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 32px;
}

.home-story-card-wide {
  grid-column: 1 / -1;
}

.home-story-lead {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  border: 1px solid #dce6f0;
}

.home-story-lead strong {
  display: block;
  color: #173d6d;
  font-size: 18px;
}

.home-story-lead p {
  margin: 8px 0 0;
  color: #617c99;
  line-height: 1.7;
}

.home-service-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.home-service-item {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f6f9fc;
  border: 1px solid #dde6ef;
  color: inherit;
  text-decoration: none;
}

.home-service-item strong,
.home-news-item strong,
.home-protocol-list strong {
  display: block;
  color: #23456e;
  font-size: 18px;
}

.home-service-item span,
.home-news-item p,
.home-protocol-list p,
.home-editorial-text {
  display: block;
  margin-top: 8px;
  color: #637d99;
  font-size: 16px;
  line-height: 1.7;
}

.home-protocol-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.home-protocol-list div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f6f9fc;
  border: 1px solid #dde6ef;
}

.home-protocol-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd85f 0%, #efb000 100%);
  color: #173253;
  font-size: 15px;
  font-weight: 800;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.home-news-item {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
  border: 1px solid #dde6ef;
}

.home-site-footer {
  margin-top: 32px;
  padding: 28px 30px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f325f 0%, #082443 100%);
  color: rgba(255, 255, 255, 0.86);
}

.home-site-footer-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-site-footer-brand,
.home-site-footer-links,
.home-site-footer-partners {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.home-footer-logo {
  flex: 0 0 auto;
  color: #ffffff;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.1;
}

.home-site-footer-brand p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.home-site-footer-partners {
  flex-wrap: wrap;
}

.home-site-footer-partners strong {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.home-site-footer-partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.home-site-footer-partner-strip {
  justify-content: flex-start;
}

.home-site-footer-partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.home-site-footer-partner-badge {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.home-site-footer-partner-logo-image {
  width: auto;
  height: 30px;
  flex: 0 0 auto;
  max-width: none;
  max-height: 30px;
  object-fit: contain;
  object-position: center;
}

.home-site-footer-partner-name {
  display: none;
}

.home-site-footer-partner-card[data-brand="euro-millions"] .home-site-footer-partner-logo-image,
.home-site-footer-partner-card[data-brand="apple-app-store"] .home-site-footer-partner-logo-image,
.home-site-footer-partner-card[data-brand="google-play"] .home-site-footer-partner-logo-image {
  max-height: 32px;
}

.home-site-footer-partner-card[data-brand="x"] .home-site-footer-partner-logo-image {
  max-height: 20px;
}

.home-site-footer-partner-card[data-brand="instagram"] .home-site-footer-partner-logo-image,
.home-site-footer-partner-card[data-brand="facebook"] .home-site-footer-partner-logo-image {
  max-height: 24px;
}

.home-site-footer-links,
.home-site-footer-legal {
  flex-wrap: wrap;
  gap: 14px 18px;
}

.home-site-footer-links a,
.home-site-footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
}

.home-site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.game-stage {
  display: grid;
  grid-template-columns: minmax(0, var(--stage-copy-fr)) minmax(var(--stage-panel-min-width), var(--stage-panel-max-width));
  gap: 18px;
  padding: var(--stage-padding-block) var(--stage-padding-inline);
  border-radius: 24px;
  background: linear-gradient(135deg, #12457f 0%, #0d2d58 100%);
  box-shadow: 0 20px 56px rgba(12, 42, 82, 0.22);
  margin-bottom: var(--section-gap);
}

.game-subnav {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid #d8e2ee;
  box-shadow: 0 4px 16px rgba(15, 37, 66, 0.05);
}

.game-subnav-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.game-subnav-inner a {
  color: #33506f;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.game-stage-copy {
  color: #ffffff;
}

.game-stage-copy h1 {
  margin: 0;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.game-stage .eyebrow {
  color: #ffd154;
  font-weight: 700;
  font-size: 11px;
}

.game-stage .subtext {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.65;
}

.game-stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.game-stage .hero-tag {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 8px 12px;
}

.game-stage-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.card-head h2 {
  font-size: 24px;
}

.game-stage .muted,
.game-stage .issue-line,
.game-stage .next-line,
.game-stage .meta-row,
.game-stage .tag {
  font-size: 15px;
}

.game-stage-stack {
  display: grid;
  gap: 12px;
}

.game-stage-support {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.game-stage-support h2 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 26px;
}

.game-stage-support p {
  margin: 12px 0 0;
  color: #617c99;
  line-height: 1.7;
}

.game-stage-support a {
  display: inline-flex;
  margin-top: 16px;
  color: #123b73;
  text-decoration: none;
  font-weight: 700;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 var(--section-gap);
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.05);
}

.game-toolbar-label {
  color: #1b4c86;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.game-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-toolbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #edf3fb;
  border: 1px solid #d5e0ed;
  color: #33506f;
  font-weight: 700;
  font-size: 15px;
}

.game-results-overview {
  margin: 0 0 var(--section-gap);
  padding: 20px 22px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 34px rgba(15, 37, 66, 0.06);
}

.game-section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.portal-stage {
  margin-bottom: 18px;
}

.portal-stage .game-stage-panel {
  grid-template-columns: 1fr;
  gap: 0;
}

.portal-story-card .home-story-lead {
  margin-top: 12px;
  padding: 14px 16px;
}

.portal-tool-card {
  padding: 20px;
}

.portal-stat-toolbar {
  display: grid;
  gap: 18px;
  padding: 18px 22px 22px;
  border-radius: 10px;
  border: 1px solid #d8e2ee;
  background: #ffffff;
  box-shadow: none;
}

.portal-stat-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #d8e2ee;
  background: #f8fbff;
}

.portal-stat-summary-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-right: 1px solid #d8e2ee;
}

.portal-stat-summary-item:last-child {
  border-right: 0;
}

.portal-stat-summary-item span {
  color: #607b99;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-stat-summary-item strong {
  color: #123b73;
  font-size: 22px;
  font-family: "Spectral", "Times New Roman", serif;
}

.portal-stat-directory {
  display: grid;
  gap: 14px;
}

.portal-stat-directory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.portal-stat-directory-table th,
.portal-stat-directory-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #d8e2ee;
  text-align: left;
  color: #33506f;
  font-size: 14px;
  vertical-align: middle;
}

.portal-stat-directory-table th {
  background: #f5f8fc;
  color: #607b99;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-stat-directory-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-stat-directory-link {
  color: #1b4c86;
  text-decoration: none;
  font-weight: 700;
}

.portal-stat-archive {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: none;
  overflow: hidden;
}

.portal-stat-archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid #d8e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portal-stat-coverage-grid,
.portal-stat-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-stat-module-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.portal-stat-coverage-item span,
.portal-stat-module-head p,
.portal-stat-empty {
  color: #607b99;
  font-size: 13px;
}

.portal-stat-coverage-item strong {
  display: block;
  margin-top: 6px;
  color: #123b73;
  font-size: 22px;
  font-family: "Spectral", "Times New Roman", serif;
}

.portal-stat-module {
  display: grid;
  gap: 14px;
  padding: 20px 24px;
  background: #ffffff;
  border: 0;
  border-top: 1px solid #d8e2ee;
  border-radius: 0;
}

.portal-stat-module-wide {
  margin-top: 0;
}

.portal-stat-module-head h3 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 24px;
}

.portal-stat-module-head p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.portal-number-stat-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-stat-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e2ee;
  background: #ffffff;
}

.portal-stat-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.portal-stat-combo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.portal-stat-summary-table th,
.portal-stat-summary-table td,
.portal-stat-combo-table th,
.portal-stat-combo-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #d8e2ee;
  text-align: left;
  color: #33506f;
  font-size: 14px;
  vertical-align: middle;
}

.portal-stat-summary-table thead th,
.portal-stat-combo-table thead th {
  background: #f5f8fc;
  color: #607b99;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-stat-summary-table tbody th {
  width: 220px;
  color: #123b73;
  font-weight: 700;
  background: #fbfdff;
}

.portal-stat-summary-table tbody tr:last-child th,
.portal-stat-summary-table tbody tr:last-child td,
.portal-stat-combo-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-number-stat-table th,
.portal-number-stat-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #d8e2ee;
  text-align: left;
  color: #33506f;
  font-size: 14px;
}

.portal-number-stat-table th {
  color: #607b99;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-number-stat-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-stat-archive .home-story-lead {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.portal-number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a4f8d 0%, #123c70 100%);
  color: #ffffff;
  font-weight: 700;
}

.portal-stat-frequency-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.portal-frequency-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  padding: 6px 0 4px;
}

.portal-frequency-bar {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.portal-frequency-bar-label {
  color: #607b99;
  font-size: 12px;
}

.portal-frequency-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 8px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  border: 1px solid #d8e2ee;
}

.portal-frequency-bar-fill {
  display: block;
  width: 22px;
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a4f8d 0%, #123c70 100%);
  box-shadow: 0 8px 18px rgba(18, 60, 112, 0.18);
}

.portal-stat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.portal-result-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.06);
}

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

.portal-result-card h3 {
  margin: 10px 0 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 28px;
}

.portal-result-card .mini-balls {
  margin-top: 14px;
}

.portal-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portal-result-meta span {
  display: block;
  color: #607b99;
  font-size: 13px;
}

.portal-result-meta strong {
  display: block;
  margin-top: 6px;
  color: #123b73;
  font-size: 17px;
}

.portal-result-link {
  display: inline-flex;
  margin-top: 14px;
  color: #1b4c86;
  font-weight: 700;
}

.portal-millionaire-card {
  display: grid;
  gap: 18px;
}

.page.page-wide-millionaire {
  max-width: 1480px;
}

.portal-millionaire-stage {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  border: 1px solid #d8e2ee;
}

.portal-millionaire-head,
.portal-millionaire-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.portal-millionaire-head h2,
.portal-millionaire-breakdown h3,
.portal-millionaire-result-main h3 {
  margin: 6px 0 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
}

.portal-millionaire-date,
.portal-millionaire-country,
.portal-millionaire-copy,
.portal-millionaire-current-meta span,
.portal-millionaire-history-table th,
.portal-millionaire-history-table td,
.portal-millionaire-note-list span {
  color: #607b99;
  font-size: 14px;
}

.portal-millionaire-result-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.portal-millionaire-result-main {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e2ee;
}

.portal-millionaire-current-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-millionaire-current-meta div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #d8e2ee;
}

.portal-millionaire-current-meta strong,
.portal-millionaire-history-table td strong {
  display: block;
  margin-top: 6px;
  color: #123b73;
  font-size: 17px;
}

.portal-millionaire-code-panel {
  margin: 0 auto 36px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 2px dashed #d8e2ee;
  max-width: 400px;
}

.portal-millionaire-code-panel p,
.portal-millionaire-code-panel span {
  display: block;
  color: #607b99;
  font-size: 13px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-millionaire-code-panel strong {
  display: block;
  margin-top: 10px;
  color: #123b73;
  font-size: 36px;
  font-family: "Spectral", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.portal-millionaire-note-block {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e2ee;
}

.portal-millionaire-breakdown {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e2ee;
}

.portal-millionaire-section-head {
  align-items: flex-end;
}

.portal-millionaire-history-table-wrap,
.portal-millionaire-footnotes,
.portal-millionaire-note-list,
.portal-millionaire-claim-list {
  margin-top: 16px;
}

.portal-millionaire-history-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #d8e2ee;
  background: #ffffff;
}

.portal-millionaire-history-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.portal-millionaire-history-table th,
.portal-millionaire-history-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #d8e2ee;
  text-align: center;
  vertical-align: middle;
}

.portal-millionaire-history-table tbody tr {
  transition: background-color 0.2s ease;
}

.portal-millionaire-history-table tbody tr:hover {
  background-color: #f8fbff;
}

.portal-millionaire-history-table th {
  background: #f5f8fc;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-millionaire-history-table td {
  color: #33506f;
}

.portal-millionaire-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-millionaire-footnotes {
  display: grid;
  gap: 12px;
}

.portal-millionaire-note-block {
  padding-top: 14px;
  padding-bottom: 14px;
}

.portal-millionaire-note-list,
.portal-millionaire-claim-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.portal-millionaire-note-list {
  margin-bottom: 0;
}

.portal-millionaire-note-list li,
.portal-millionaire-claim-item {
  color: #33506f;
  line-height: 1.7;
}

.portal-millionaire-note-list strong {
  display: inline;
  color: #123b73;
  margin-right: 8px;
}

.portal-millionaire-claim-list {
  padding-left: 22px;
}

.portal-millionaire-mini-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-millionaire-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #edf3fb;
  border: 1px solid #d5e0ed;
  color: #1b4c86;
  font-weight: 700;
}

.portal-millionaire-empty {
  padding: 18px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #d8e2ee;
  color: #607b99;
}

.portal-news-release-card {
  display: grid;
  gap: 14px;
}

.portal-news-card-head,
.portal-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portal-news-card-head {
  justify-content: space-between;
}

.portal-news-date,
.portal-news-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf3fb;
  border: 1px solid #d5e0ed;
  color: #33506f;
  font-size: 13px;
  font-weight: 700;
}

.portal-news-release-card .home-story-lead {
  margin-top: 0;
}

.portal-news-release-card .home-story-lead strong {
  line-height: 1.7;
}

.portal-news-highlight-list {
  margin: 0;
  padding-left: 20px;
  color: #4f6b88;
  line-height: 1.8;
}

.portal-news-highlight-list li + li {
  margin-top: 8px;
}

.portal-news-source-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #123b73;
  font-weight: 700;
  text-decoration: none;
}

.portal-news-source-link-card strong {
  line-height: 1.5;
}

.portal-news-stat-grid {
  margin-top: 18px;
}

.portal-news-source-list {
  margin-top: 18px;
}

.portal-bullet-list,
.portal-faq-list,
.portal-stat-grid,
.portal-timeline-list,
.portal-link-list {
  margin-top: 16px;
}

.portal-bullet-list {
  margin-bottom: 0;
  padding-left: 20px;
  color: #4f6b88;
  line-height: 1.8;
}

.portal-bullet-list li + li {
  margin-top: 8px;
}

.portal-faq-list,
.portal-timeline-list,
.portal-link-list {
  display: grid;
  gap: 12px;
}

.portal-faq-item,
.portal-timeline-item,
.portal-stat-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #d8e2ee;
}

.portal-faq-item strong,
.portal-timeline-item span,
.portal-stat-item strong {
  color: #123b73;
}

.portal-faq-item p,
.portal-timeline-item p,
.portal-stat-item p {
  margin: 8px 0 0;
  color: #607b99;
  line-height: 1.7;
}

.portal-structured-card-full {
  grid-column: 1 / -1;
}

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

.portal-stat-item span {
  display: block;
  color: #607b99;
  font-size: 13px;
}

.portal-stat-item strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.portal-checker-form {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 16px;
}

.portal-checker-form select,
.portal-checker-form input,
.portal-checker-form button {
  min-height: 42px;
  border-radius: 14px;
}

.portal-checker-form select {
  padding: 0 36px 0 16px;
  border: 1px solid #d8e2ee;
  background: #ffffff url('data:image/svg+xml;charset=US-ASCII,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23607b99" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 12px center;
  background-size: 10px;
  color: #123b73;
  font-size: 15px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 37, 66, 0.02);
}

.portal-checker-form select:hover {
  border-color: #1b4c86;
  background-color: #f8fbff;
}

.portal-checker-form select:focus {
  outline: none;
  border-color: #1b4c86;
  box-shadow: 0 0 0 3px rgba(27, 76, 134, 0.15);
}

.portal-checker-form input {
  padding: 0 16px;
  border: 1px solid #d8e2ee;
  background: #ffffff;
  color: #123b73;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 37, 66, 0.02);
}

.portal-checker-form input:hover {
  border-color: #1b4c86;
}

.portal-checker-form input:focus {
  outline: none;
  border-color: #1b4c86;
  box-shadow: 0 0 0 3px rgba(27, 76, 134, 0.15);
}

/* Information Centre Styles */
.portal-info-centre {
  padding: 24px;
}

.portal-info-hero {
  display: grid;
  grid-template-columns: 1.5fr 320px;
  gap: 24px;
  margin-bottom: 24px;
}

.portal-info-hero-main {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  border: 1px solid #d8e2ee;
}

.portal-info-hero-main h2 {
  margin: 8px 0 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 32px;
}

.portal-info-hero-lead {
  margin-top: 10px;
  color: #607b99;
  font-size: 15px;
  line-height: 1.6;
}

.portal-info-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.portal-info-hero-stats {
  display: grid;
  gap: 12px;
}

.portal-info-stat-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 8px 24px rgba(15, 37, 66, 0.05);
  text-align: center;
}

.portal-info-stat-value {
  display: block;
  color: #123b73;
  font-size: 36px;
  font-weight: 700;
  font-family: "Spectral", "Times New Roman", serif;
}

.portal-info-stat-label {
  display: block;
  margin-top: 6px;
  color: #607b99;
  font-size: 13px;
}

.portal-info-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.portal-info-game-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-info-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 37, 66, 0.08);
}

.portal-info-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-info-game-header strong {
  color: #123b73;
  font-size: 20px;
  font-family: "Spectral", "Times New Roman", serif;
}

.portal-info-game-issue {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-info-game-issue span {
  color: #607b99;
  font-size: 13px;
}

.portal-info-game-issue strong {
  color: #123b73;
  font-size: 18px;
  font-weight: 700;
}

.portal-info-game-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid #e1e8f0;
}

.portal-info-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #e1e8f0;
  color: #607b99;
  font-size: 12px;
}

.portal-info-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d8e2ee;
  text-align: center;
}

.portal-info-footer-desc {
  color: #607b99;
  font-size: 14px;
  margin-bottom: 12px;
}

.portal-info-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-info-footer-links a {
  color: #1b4c86;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.portal-info-footer-links a:hover {
  text-decoration: underline;
}

.portal-info-footer-divider {
  color: #c5d1e0;
}

.portal-link-secondary {
  background: #f5f8fc;
  border-color: #d5e0ed;
  color: #587391;
}

.portal-link-secondary:hover {
  background: #edf3fb;
  border-color: #c5d1e0;
}

@media (max-width: 1200px) {
  .portal-stat-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-stat-summary-item:nth-child(2n) {
    border-right: 0;
  }

  .portal-stat-summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e2ee;
  }

  .portal-stat-coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-frequency-chart {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .portal-stat-frequency-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .portal-info-hero {
    grid-template-columns: 1fr;
  }

  .portal-info-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .portal-stat-summary-strip {
    grid-template-columns: 1fr;
  }

  .portal-stat-summary-item {
    border-right: 0;
    border-bottom: 1px solid #d8e2ee;
  }

  .portal-stat-summary-item:last-child {
    border-bottom: 0;
  }

  .portal-stat-coverage-grid,
  .portal-stat-module-grid,
  .portal-frequency-chart,
  .portal-stat-frequency-grid {
    grid-template-columns: 1fr;
  }

  .portal-stat-archive-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-info-games {
    grid-template-columns: 1fr;
  }

  .portal-info-hero-stats {
    grid-template-columns: 1fr;
  }
}

.portal-checker-form button {
  padding: 0 18px;
  border: 1px solid rgba(20, 67, 111, 0.1);
  background: linear-gradient(180deg, #1a4f8d 0%, #123c70 100%);
  color: #ffffff;
  font-weight: 700;
}

.game-section-heading .eyebrow {
  margin: 0;
  color: #1b4c86;
}

.game-section-heading h2 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 30px;
}

.game-section-heading p {
  margin: 0;
  max-width: 760px;
  color: #607b99;
  line-height: 1.7;
}

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

.game-overview-card {
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 26px rgba(15, 37, 66, 0.05);
}

.game-overview-card .eyebrow {
  margin-bottom: 10px;
}

.game-overview-card h3 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 24px;
}

.game-overview-card p {
  margin: 12px 0 0;
  color: #607b99;
  line-height: 1.7;
}

.game-overview-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #123b73;
  text-decoration: none;
  font-weight: 700;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--section-gap);
}

.game-info-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d8e2ee;
  box-shadow: 0 14px 32px rgba(15, 37, 66, 0.06);
}

.game-info-card h2 {
  margin: 0;
  color: #123b73;
  font-family: "Spectral", "Times New Roman", serif;
  font-size: 24px;
}

.game-info-card p {
  margin: 12px 0 0;
  color: #607b99;
  line-height: 1.7;
}

.game-info-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #123b73;
  text-decoration: none;
  font-weight: 700;
}

.game-site-footer {
  margin-top: 30px;
}

@keyframes salonRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .home-stage,
  .game-stage,
  .home-results-shell,
  .home-games-grid,
  .home-ribbon,
  .home-story-grid,
  .home-news-grid,
  .home-quicklinks,
  .portal-millionaire-stage,
  .portal-millionaire-result-strip,
  .game-overview-grid,
  .game-info-grid {
    grid-template-columns: 1fr;
  }

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

  .home-results-legend {
    display: none;
  }

  .home-topstrip-inner,
  .home-sitebar-inner,
  .home-site-footer-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .game-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .game-subnav-inner {
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .home-topstrip-links {
    flex-wrap: wrap;
  }

  .home-brand {
    font-size: 24px;
  }


  .home-mainnav {
    justify-content: space-between;
  }

  .portal-millionaire-current-meta,
  .portal-millionaire-history-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-shell {
    padding: 18px 14px 56px;
  }

  .game-stage {
    padding: 20px;
  }

  .home-sitebar-inner {
    min-height: auto;
    padding: 14px;
  }

  .home-brand {
    font-size: 24px;
  }

  .home-stage {
    padding: 22px;
  }

  .home-stage h1 {
    font-size: 42px;
  }

  .home-featured-name {
    font-size: 28px;
  }

  .home-card-primary,
  .home-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Center title and description */
.portal-millionaire-center {
  text-align: center;
  padding: 20px;
}
.portal-millionaire-center h2 {
  font-size: 32px;
  margin-bottom: 8px;
}
.portal-millionaire-center p {
  color: #607b99;
  font-size: 16px;
  margin-bottom: 24px;
}

/* Enlarge and center winning numbers */
.portal-millionaire-balls-lg {
  justify-content: center;
  margin: 24px 0 32px;
  gap: 14px;
}
.portal-millionaire-balls-lg .mini-ball {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
/* Style star-ball distinctly */
.portal-millionaire-balls-lg .star-ball {
  background: linear-gradient(180deg, #ff9a9e 0%, #ff5252 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

/* Stats grid */
.portal-millionaire-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d8e2ee;
}

.portal-millionaire-stat-item {
  padding: 16px;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #d8e2ee;
}

.portal-millionaire-stat-item span {
  display: block;
  color: #607b99;
  font-size: 13px;
}

.portal-millionaire-stat-item strong {
  display: block;
  margin-top: 8px;
  color: #123b73;
  font-size: 18px;
}

@media (max-width: 768px) {
  .portal-millionaire-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .portal-millionaire-stats-grid {
    grid-template-columns: 1fr;
  }
}
