.post-list-panel .card-head {
  min-height: var(--rg-post-card-head-height);
  padding-left: 18px;
  padding-right: 18px;
}

.post-list-panel .post-list {
  margin-top: var(--rg-post-list-gap);
  padding: var(--rg-post-list-padding);
}

.post-list-panel .post-row:first-child .post-row-link {
  padding-top: var(--rg-post-list-first-padding);
}

.post-list-panel .post-row:last-child .post-row-link {
  padding-bottom: var(--rg-post-list-first-padding);
}

.post-row-meta,
.post-detail-meta {
  gap: var(--rg-post-meta-gap);
}

.post-row-meta > *::before,
.post-detail-meta > *::before {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rg-ui-icon-gold) 24%, transparent);
}

.account-status-grid,
.account-link-list,
.gallery-grid {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.post-row,
.front-list-row,
.restricted-block,
.history-draw-row {
  border-color: var(--rg-ui-row-line);
}

.post-row h3,
.front-list-row strong,
.restricted-block h3,
.front-list-row span,
.front-list-row p,
.front-list-row small,
.restricted-block > p,
.restricted-body p {
  color: #3d1405;
}

.post-row h3 {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.post-row h3[data-ui-icon]::before {
  color: var(--rg-ui-post-title-marker);
  content: attr(data-ui-icon);
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.post-detail-head .back-link {
  background: var(--rg-ui-dark-control);
  border-color: color-mix(in srgb, var(--rg-action-gold-border) 82%, transparent);
  color: var(--rg-ui-gold-text);
}

.post-detail-head .back-link[data-ui-icon]::before {
  content: attr(data-ui-icon);
  font-size: 18px;
  line-height: 1;
  margin-right: 4px;
}

.post-detail-head .access-badge {
  background: linear-gradient(180deg, #fff7c4, #ffca4b);
  border-color: rgba(255, 237, 160, 0.78);
  color: #8a0000;
}

.post-detail-head .post-detail-meta,
.post-detail-head .post-detail-meta time {
  color: var(--rg-ui-gold-text);
}

.post-detail-head .post-detail-meta > * {
  color: var(--rg-ui-gold-text);
}

.post-detail-head .post-tags span {
  background: rgba(255, 248, 214, 0.94);
  border-color: rgba(255, 220, 112, 0.76);
  color: var(--rg-ui-tag-text);
}

.post-detail .forum-stat-strip-detail {
  background: rgba(255, 248, 232, 0.96);
  border-color: var(--rg-ui-line-gold);
}

.post-detail .forum-purchase-count {
  color: var(--rg-ui-reward-text);
}

.post-content-block {
  border-top: 0;
  margin-top: 16px;
  padding: 0;
}

.post-detail-head + .post-content-block,
.post-detail-head + .post-lead-block + .post-content-block {
  margin-top: 0;
}

.post-content-block + .post-content-block {
  border-top: 1px solid rgba(255, 210, 103, 0.44);
  margin-top: var(--rg-post-detail-block-gap);
  padding-top: var(--rg-post-detail-block-padding);
}

.post-section-head {
  color: var(--rg-ui-gold-text);
  margin-bottom: 10px;
}

.post-section-head[data-ui-icon]::before {
  color: var(--rg-ui-icon-gold);
  text-shadow: 0 0 10px var(--rg-ui-icon-glow);
}

.post-section-head span {
  background: var(--rg-ui-dark-pill);
  border: 1px solid color-mix(in srgb, var(--rg-ui-icon-gold) 50%, transparent);
  border-radius: 8px;
  color: var(--rg-ui-gold-text);
  padding: 5px 9px;
}

.post-detail .content-block-list {
  gap: var(--rg-post-content-gap);
  padding: var(--rg-post-content-padding);
}

.post-detail .content-block-list > .empty-copy {
  color: var(--rg-ui-post-copy);
  margin: 0;
}

.draw-ball-list,
.history-ball-list {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.draw-ball {
  align-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.66), transparent 18%), var(--wave-ball-bg);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    inset -7px -10px 16px rgba(0, 0, 0, 0.22),
    inset 5px 7px 12px rgba(255, 255, 255, 0.26),
    0 0 22px rgba(255, 210, 90, 0.22);
  display: grid;
  grid-template-columns: 1fr;
  height: 64px;
  justify-items: center;
  min-height: 64px;
  padding: 0;
  position: relative;
  width: 64px;
}

.draw-ball::before {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  height: 12px;
  left: 14px;
  pointer-events: none;
  position: absolute;
  top: 10px;
  width: 18px;
  z-index: 1;
}

.number-ball {
  border-radius: 50%;
  filter: saturate(1.08) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.24));
  position: relative;
  width: 100%;
  z-index: 2;
}

.wave-red {
  --wave-ball-bg: linear-gradient(135deg, #ff2e2a, #9b0000);
}

.wave-blue {
  --wave-ball-bg: linear-gradient(135deg, #2b78d6, #0b337c);
}

.wave-green {
  --wave-ball-bg: linear-gradient(135deg, #159945, #0b5c1e);
}

.draw-ball-special {
  border-color: rgba(255, 226, 132, 0.78);
  box-shadow:
    inset -7px -10px 16px rgba(0, 0, 0, 0.24),
    inset 5px 7px 12px rgba(255, 255, 255, 0.28),
    0 0 26px rgba(255, 210, 90, 0.34);
}

body.home-content-index {
  --home-ball-min-height: 58px;
  --home-ball-size: 58px;
  --home-draw-gap: 12px;
  --home-draw-pad-x: 18px;
  --home-draw-pad-y: 14px;
  --home-max-width: 1120px;
}

body.home-content-index .home-draw-panel .draw-ball {
  background: radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.66), transparent 18%), var(--wave-ball-bg);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    inset -7px -10px 16px rgba(0, 0, 0, 0.22),
    inset 5px 7px 12px rgba(255, 255, 255, 0.26),
    0 0 22px rgba(255, 210, 90, 0.22);
  grid-template-columns: 1fr;
  height: var(--home-ball-size);
  min-height: var(--home-ball-min-height);
  padding: 0;
  width: var(--home-ball-size);
}

body.home-content-index .home-draw-panel .number-ball {
  width: 100%;
}

.history-ball {
  background: var(--rg-ui-ivory-panel);
  border-color: var(--rg-ui-line-gold);
  border-radius: 10px;
}

.history-ball img {
  border-radius: 50%;
  filter: saturate(1.08) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.gallery-card,
.account-metric,
.account-link-list a,
.forum-stat,
.issue-prediction-body,
.issue-buyer-summary,
.issue-buyer-list li {
  background: #fffdf5;
  border-color: var(--rg-ui-line-gold);
}

.restricted-block {
  background: var(--rg-ui-ivory-panel);
  border: 1px solid var(--rg-ui-line-gold);
  border-radius: 10px;
  margin: 10px 0;
  padding: 12px;
}

.restricted-block:first-child {
  padding-top: 12px;
}

.issue-highlight {
  background: linear-gradient(180deg, #fff9e4, #ffe7a8);
  border-color: #f0c25d;
  box-shadow: inset 4px 0 0 #e32612;
}

.issue-highlight-main strong,
.issue-highlight-main p,
.issue-highlight-main .issue-draw-values {
  color: #341205;
}

.issue-highlight-main span,
.issue-highlight-status span {
  color: #8b4711;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.post-filter-bar input,
.post-filter-bar select,
.point-ledger-filter select {
  background: #270000;
  border-color: rgba(255, 212, 106, 0.48);
  color: #ffeec1;
}

.auth-form label span,
.post-filter-bar label span,
.point-ledger-filter label span {
  color: #ffe6a5;
}

.account-metric strong,
.account-link-list strong,
.forum-stat b {
  color: var(--rg-ui-reward-text);
}

@media (max-width: 640px) {
  .site-header,
  .brand-stage {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 0;
    width: 100%;
  }

  .site-header-inner {
    min-height: 54px;
  }

  .site-nav {
    max-width: 74vw;
  }

  .site-nav a {
    min-height: 44px;
    min-width: 64px;
    padding: 7px 8px;
  }

  .mobile-bottom-nav {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  .brand-stage {
    padding: 12px 10px;
  }

  .brand-stage::before,
  .brand-stage::after {
    font-size: 50px;
    top: 24px;
  }

  .brand-stage::before {
    left: 12px;
  }

  .brand-stage::after {
    right: 12px;
  }

  .brand-stage h1 {
    font-size: 42px;
    letter-spacing: 2px;
  }

  body.home-content-index {
    --home-ball-min-height: 43px;
    --home-ball-size: 43px;
    --home-draw-gap: 8px;
    --home-draw-pad-x: 12px;
    --home-draw-pad-y: 12px;
  }

  .draw-ball {
    height: 43px;
    min-height: 43px;
    width: 43px;
  }

  .draw-ball-list,
  .history-ball-list {
    gap: 8px;
  }

  .draw-ball-list {
    flex-wrap: nowrap;
    gap: 3px;
  }

  body.home-content-index .home-draw-panel .draw-ball-list {
    flex-wrap: nowrap;
    gap: 3px;
  }

  .draw-ball-list {
    flex-wrap: nowrap;
    gap: clamp(1px, 0.8vw, 5px);
  }

  .section-heading,
  .draw-strip-head,
  .post-detail-head,
  .account-workflow-head {
    margin-left: -12px;
    margin-right: -12px;
  }

  .content-heading {
    margin: 0 0 10px;
  }
}

@media (max-width: 340px) {
  body.home-content-index {
    --home-ball-min-height: 39px;
    --home-ball-size: 39px;
    --home-draw-gap: 6px;
  }

  .draw-ball {
    height: 39px;
    min-height: 39px;
    width: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* Red-gold layout layer: real dev pages now use the red-gold HTML shell, not only colors. */
.shell.site-shell {
  background: linear-gradient(180deg, rgba(118, 0, 0, 0.91), rgba(60, 0, 0, 0.97));
  border: 1px solid rgba(255, 213, 104, 0.55);
  border-radius: 18px;
  box-shadow:
    0 0 0 3px rgba(98, 0, 0, 0.4),
    0 22px 80px rgba(0, 0, 0, 0.5);
  margin: 18px auto 26px;
  overflow: hidden;
  position: relative;
  width: min(1180px, calc(100% - 32px));
}

.shell.site-shell::before {
  border-radius: 18px;
  box-shadow: inset 0 0 70px rgba(255, 191, 64, 0.18);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.shell.site-shell > * {
  position: relative;
  z-index: 1;
}

.shell.site-shell .topline {
  background: linear-gradient(90deg, #2b0000, #690000, #320000);
  border-bottom: 1px solid rgba(255, 209, 96, 0.35);
  color: #ffe8a3;
  height: 40px;
  max-width: none;
  padding: 0 22px;
}

.shell.site-shell .topline-actions {
  gap: 18px;
}

.shell.site-shell .topline a {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 30px;
  padding: 0 4px;
}

.hero.brand-stage {
  align-items: stretch;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 215, 92, 0.24), transparent 22rem),
    linear-gradient(180deg, #7b0301 0%, #4d0100 100%);
  border: 0;
  border-bottom: 1px solid rgba(255, 211, 106, 0.45);
  box-shadow: none;
  color: #fff3b7;
  display: grid;
  gap: 16px;
  grid-template-columns: 220px minmax(0, 1fr) 230px;
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding: 20px 22px 16px;
  width: auto;
}

.hero .dragon {
  color: rgba(255, 212, 100, 0.2);
  filter: drop-shadow(0 0 18px rgba(255, 180, 55, 0.32));
  font-family: serif;
  font-size: 82px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 10px;
  z-index: 0;
}

.hero .dragon.left {
  left: 260px;
  transform: scaleX(-1) rotate(-6deg);
}

.hero .dragon.right {
  right: 260px;
  transform: rotate(-6deg);
}

.hero.brand-stage::before,
.hero.brand-stage::after {
  content: none;
}

.panel,
.entry,
.benefit {
  position: relative;
  z-index: 1;
}

.panel {
  background: linear-gradient(180deg, rgba(85, 0, 0, 0.94), rgba(39, 0, 0, 0.94));
  border: 1px solid rgba(255, 205, 88, 0.65);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255, 47, 14, 0.18), inset 0 0 24px rgba(255, 176, 65, 0.08);
}

.entry {
  padding: 14px;
}

.panel-title {
  align-items: center;
  color: #ffe08a;
  display: flex;
  font-size: 17px;
  font-weight: 1000;
  gap: 8px;
  margin-bottom: 12px;
}

.entry-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.btn {
  align-items: center;
  background: linear-gradient(180deg, #fff4bd, #ffbf35);
  border: 0;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(0, 0, 0, 0.28);
  color: #7a0000;
  display: inline-flex;
  font-weight: 1000;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  text-align: center;
}

.btn.red {
  background: linear-gradient(180deg, #ff5b2d, #ba0805);
  color: #fff;
}

.hero .brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  min-height: 170px;
  min-width: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.brand-top {
  align-items: center;
  background: rgba(42, 0, 0, 0.45);
  border: 1px solid rgba(255, 220, 120, 0.55);
  border-radius: 999px;
  color: #ffe79b;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 4px 13px;
}

.brand-title {
  background: linear-gradient(180deg, #fff7be 0%, #ffd65c 38%, #d68115 72%, #fff1a4 100%);
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 1000;
  letter-spacing: 8px;
  line-height: 1.34;
  margin: 8px 0 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-bottom: 6px;
  text-shadow: 0 3px 0 rgba(108, 14, 0, 0.65), 0 0 28px rgba(255, 220, 105, 0.42);
}

.brand-stage h1.brand-title {
  line-height: 1.14;
  padding-bottom: 10px;
}

.domain {
  align-items: center;
  background: linear-gradient(180deg, #f52b10, #a70000);
  border: 1px solid rgba(255, 226, 132, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 190, 60, 0.38);
  color: #ffe487;
  display: inline-flex;
  font-size: 22px;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: 2px;
  margin-top: 4px;
  min-height: 42px;
  min-width: min(360px, 100%);
  padding: 0 18px;
}

.hero .brand-sub {
  border-left: 0;
  color: #fff3b7;
  font-size: 16px;
  font-weight: 900;
  margin-top: 10px;
  padding-left: 0;
  white-space: normal;
}

.benefit {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
}

.gift {
  background: linear-gradient(180deg, #d40a05, #720000);
  border: 1px solid rgba(255, 213, 100, 0.48);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(255, 194, 70, 0.12);
  color: #fff3c0;
  display: grid;
  place-items: center;
  padding: 12px 6px;
  text-align: center;
}

.gift-icon {
  color: #ffe287;
  font-size: 30px;
  line-height: 1;
}

.gift strong {
  color: #ffe287;
  display: block;
  margin-top: 5px;
}

.gift small {
  color: #fff3c0;
  font-weight: 800;
}

.nav.site-nav {
  background: rgba(255, 214, 109, 0.28);
  border: 0;
  border-bottom: 1px solid rgba(255, 225, 140, 0.25);
  border-radius: 0;
  border-top: 1px solid rgba(255, 225, 140, 0.25);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: stretch;
  max-width: none;
  overflow: visible;
  width: 100%;
}

.nav.site-nav a {
  align-items: center;
  background: linear-gradient(180deg, #bb130c, #790100);
  border-radius: 0;
  color: #ffe7a0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 1000;
  gap: 4px;
  justify-content: center;
  line-height: 1.15;
  min-height: 58px;
  min-width: 0;
  padding: 6px 8px;
  text-align: center;
}

.nav.site-nav a::before {
  font-size: 22px;
  line-height: 1;
}

.nav.site-nav a[data-nav-key="home"]::before {
  content: var(--rg-icon-home);
}

.nav.site-nav a[data-nav-key="draws"]::before {
  content: var(--rg-icon-draws);
}

.nav.site-nav a[data-nav-key="gallery"]::before {
  content: var(--rg-icon-gallery);
}

.nav.site-nav a[data-nav-key="posts"]::before {
  content: var(--rg-icon-posts);
}

.nav.site-nav a[data-nav-key="me"]::before {
  content: var(--rg-icon-me);
}

.nav.site-nav a:hover,
.nav.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, #fff0a5, #db850f);
  color: #7a0000;
}

.site-shell .main {
  padding: 14px 18px 22px;
}

.site-shell .content-shell,
.site-shell .post-detail-shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

.site-shell .home-content-shell {
  display: grid;
  gap: 14px;
}

.home-main {
  display: grid;
  gap: 14px;
}

.grid-top,
.content,
.data-grid {
  display: grid;
  gap: 14px;
}

.grid-top {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.92fr);
}

.content {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
}

.data-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.page-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.draws-main > .page-grid {
  grid-template-columns: minmax(0, 1fr);
}

.draw-card,
.notice,
.hot-card,
.rank-card,
.data-card,
.promo,
.page-card,
.table-card {
  background: linear-gradient(180deg, rgba(124, 2, 1, 0.95), rgba(67, 0, 0, 0.96));
  border: 1px solid rgba(255, 210, 103, 0.62);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(120, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.rank-card,
.data-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.page-card.auth-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.page-card.auth-panel .auth-copy h2,
.page-card.auth-panel .auth-copy p,
.page-card.auth-panel .auth-switch {
  color: #fff0c3;
}

.page-card.auth-panel .auth-copy .kicker,
.page-card.auth-panel .auth-form label span {
  color: #ffe08a;
}

.contact-shell {
  display: grid;
  gap: 14px;
}

.contact-hero-card {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  padding: 18px;
}

.contact-hero-copy {
  align-content: start;
  display: grid;
  gap: 10px;
}

.contact-hero-copy h2,
.contact-safe-note h2 {
  color: #fff2b8;
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
}

.contact-hero-copy p,
.contact-safe-note p,
.contact-channel-card p,
.contact-route-card small {
  color: #fff0c3;
  line-height: 1.65;
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.contact-actions a,
.contact-channel-card a,
.contact-channel-card button {
  align-items: center;
  border: 1px solid rgba(255, 231, 158, 0.72);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  min-height: var(--tap-size);
  padding: 8px 12px;
}

.contact-actions a:first-child,
.contact-channel-card a,
.contact-channel-card button {
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  color: #6b0702;
}

.contact-actions a:last-child {
  color: #fff0b8;
}

.contact-channel-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-channel-card {
  background: rgba(255, 248, 222, 0.08);
  border: 1px solid rgba(255, 210, 103, 0.36);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 12px;
}

.contact-channel-icon,
.contact-route-card span {
  align-items: center;
  background: radial-gradient(circle at 50% 28%, #fff4bd, var(--rg-gold-500));
  border: 1px solid rgba(255, 246, 191, 0.58);
  border-radius: 50%;
  color: #6f0900;
  display: inline-flex;
  font-size: 20px;
  font-weight: 1000;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.contact-channel-card h3 {
  color: #ffe89d;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.contact-channel-card .contact-channel-value {
  color: #fff8dd;
  font-size: 17px;
  font-weight: 950;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.contact-channel-card a,
.contact-channel-card button {
  margin-top: 10px;
}

.contact-route-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-route-card {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.contact-route-card strong {
  color: #6f0900;
  font-size: 17px;
  line-height: 1.25;
}

.contact-route-card small {
  color: var(--muted);
}

.contact-route-card:hover,
.contact-route-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--gold));
  transform: translateY(-1px);
}

.contact-safe-note {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-head {
  align-items: center;
  background: linear-gradient(180deg, #ca170d, #8c0300);
  border-bottom: 1px solid rgba(255, 210, 104, 0.45);
  color: var(--rg-ui-gold-text);
  display: flex;
  font-size: 18px;
  font-weight: 1000;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
}

.card-head .more,
.link-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #ffe8b3;
  display: inline-flex;
  font-size: 13px;
  font-weight: 1000;
  justify-content: center;
  min-height: 30px;
  padding: 0 6px;
  white-space: nowrap;
}

.draw-detail-panel .card-head {
  font-size: 22px;
  min-height: 58px;
  padding-left: 26px;
  padding-right: 26px;
}

.draw-body {
  padding: 18px 18px 14px;
}

body.home-content-index .grid-top .draw-card .draw-body {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px 28px;
}

.draw-detail-panel .draw-body {
  display: grid;
  gap: 18px;
  padding: 22px 28px 26px;
}

.draw-card .draw-detail-head {
  border-bottom-color: rgba(255, 210, 104, 0.45);
}

.draw-detail-panel .draw-detail-head {
  align-items: end;
  gap: 24px;
  padding-bottom: 16px;
}

.draw-detail-panel .kicker {
  font-size: 15px;
  font-weight: 1000;
  margin: 0 0 6px;
}

.draw-detail-panel .draw-detail-head h2 {
  font-size: 40px;
  line-height: 1.28;
  padding-bottom: 2px;
}

.draw-detail-panel .draw-meta {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, max-content);
}

.draw-detail-panel .draw-meta div {
  border-left: 4px solid #d99d18;
  min-width: 96px;
  padding-left: 14px;
}

.draw-detail-panel .draw-meta dt {
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.2;
}

.draw-detail-panel .draw-meta dd {
  font-size: 18px;
  line-height: 1.25;
  margin-top: 5px;
  white-space: nowrap;
}

.draw-card .draw-detail-head h2,
.draw-card .draw-meta dd {
  color: #fff3b4;
}

.draw-card .draw-meta dt,
.draw-card .kicker {
  color: #ffe08a;
}

.draw-card .draw-attribute-grid {
  margin-top: 12px;
}

.draw-detail-panel .draw-ball-list-detail {
  align-items: start;
  display: grid;
  gap: 12px 14px;
  grid-template-columns: repeat(6, minmax(74px, 1fr)) 30px minmax(74px, 1fr);
  justify-content: stretch;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.draw-detail-panel .draw-ball-list-detail .num.draw-ball {
  justify-self: center;
  min-height: 94px;
  width: 100%;
}

.draw-detail-panel .draw-ball-list-detail .ball {
  font-size: 34px;
  height: 72px;
  width: 72px;
}

.draw-detail-panel .draw-ball-list-detail .ball::before {
  height: 13px;
  left: 16px;
  top: 11px;
  width: 19px;
}

.draw-detail-panel .draw-ball-list-detail .num-label {
  color: #fff0bd;
  font-size: 15px;
  line-height: 1.15;
  text-shadow: 0 2px 5px rgba(50, 0, 0, 0.42);
}

.draw-detail-panel .draw-ball-list-detail .draw-ball-plus {
  align-self: start;
  font-size: 32px;
  justify-self: center;
  line-height: 72px;
  margin: 0;
  min-height: 94px;
  text-shadow: 0 3px 10px rgba(55, 0, 0, 0.48);
}

.draw-detail-panel .draw-attribute-grid {
  gap: 10px;
  margin-top: 0;
}

.draw-detail-panel .draw-attribute-item {
  background: linear-gradient(180deg, #fffaf0 0%, #f0e3d4 100%);
  border-color: color-mix(in srgb, var(--wave-color) 38%, #e6bf70);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 5px 14px rgba(38, 0, 0, 0.18);
  min-height: 86px;
  padding: 12px 10px;
}

.draw-detail-panel .draw-attribute-item strong {
  font-size: 22px;
}

.draw-detail-panel .draw-attribute-item span {
  color: #2f0f03;
  font-size: 14px;
}

.draw-detail-panel .draw-attribute-item small {
  color: #6f4a17;
  font-size: 12px;
  font-weight: 850;
}

.table-card .draw-history-list,
.table-card .draw-history-loader {
  background: var(--rg-ivory-050);
  color: #3c1605;
  padding-left: 14px;
  padding-right: 14px;
}

.table-card.gallery-panel .gallery-grid {
  background: var(--rg-ivory-050);
  padding: 14px;
}

.card-body {
  padding: 14px;
}

.mini-note {
  color: #fff0c3;
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
}

.issue {
  align-items: center;
  color: #fff2bd;
  display: flex;
  font-size: 26px;
  font-weight: 1000;
  gap: 14px;
}

body.home-content-index .grid-top .draw-card .issue {
  justify-content: center;
  width: 100%;
}

.status {
  background: #18a453;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  padding: 4px 9px;
}

.balls {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 18px 0 0;
}

body.home-content-index .draw-card .draw-ball-list {
  gap: 18px 20px;
  justify-content: center;
  margin-top: 0;
  max-width: 760px;
  width: 100%;
}

body.home-content-index .draw-card .ball {
  height: var(--home-ball-size);
  width: var(--home-ball-size);
}

.countdown {
  align-items: center;
  color: #ffeab0;
  display: flex;
  font-size: 17px;
  font-weight: 1000;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
}

.timebox {
  background: #1b0000;
  border: 1px solid rgba(255, 215, 116, 0.45);
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.24);
  color: #fff;
  font-size: 22px;
  padding: 3px 10px;
}

.notice {
  padding-bottom: 8px;
}

.notice ul {
  color: #fff0c3;
  font-weight: 800;
  line-height: 1.9;
  margin: 12px 17px 10px 34px;
  padding: 0;
}

.notice .bonus {
  display: grid;
  gap: 8px;
  margin: 10px 18px 0;
}

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

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
  background: #270000;
  border: 1px solid rgba(255, 212, 106, 0.48);
  border-radius: 8px;
  color: #ffeec1;
  min-height: 40px;
  padding: 0 12px;
}

.toolbar button,
.toolbar .filter-reset {
  align-items: center;
  background: linear-gradient(180deg, #fff2a9, #d98813);
  border: 0;
  border-radius: 9px;
  color: #7c0000;
  display: inline-flex;
  font-weight: 1000;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

.q {
  align-items: center;
  background: linear-gradient(180deg, #b70805, #690000);
  border: 1px solid rgba(255, 206, 94, 0.55);
  border-radius: 12px;
  box-shadow: inset 0 0 16px rgba(255, 176, 58, 0.12), 0 8px 16px rgba(0, 0, 0, 0.2);
  color: #ffe9ae;
  display: flex;
  flex-direction: column;
  font-weight: 1000;
  justify-content: center;
  min-height: 80px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.q:hover,
.q:focus-visible {
  box-shadow: 0 0 22px rgba(255, 207, 85, 0.36);
  transform: translateY(-3px);
}

.q i {
  color: #ffe287;
  font-size: 28px;
  font-style: normal;
  margin-bottom: 5px;
}

.hot-list,
.rank-list,
.zodiac-mini,
.data-lines {
  background: var(--rg-ivory-050);
  color: #3c1605;
  min-height: 0;
}

.hot-card .post-list {
  background: var(--rg-ivory-050);
  padding: 0 14px;
}

.row {
  align-items: center;
  border-bottom: 1px solid #ead6ad;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 52px;
  padding: 8px 14px;
}

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

.tag {
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  padding: 5px 7px;
  white-space: nowrap;
}

.row .post-card-label {
  justify-self: start;
}

.row .post-card-label.pink {
  background: #fff1bf;
  border-color: color-mix(in srgb, #e052b7 28%, var(--line));
  color: #7a0000;
}

.row .post-card-label.blue {
  background: #eef6ff;
  border-color: color-mix(in srgb, #2498d8 26%, var(--line));
  color: #114a76;
}

.row .post-card-label.purple {
  background: #f3efff;
  border-color: color-mix(in srgb, #6956d9 28%, var(--line));
  color: #432e9e;
}

.row .post-card-label.orange {
  background: #fff1d8;
  border-color: color-mix(in srgb, #d9780c 30%, var(--line));
  color: #8a4200;
}

.row .post-card-label.green {
  background: #effaf3;
  border-color: color-mix(in srgb, #2fac6c 30%, var(--line));
  color: #1f7448;
}

.tag.pink {
  background: #e052b7;
}

.tag.blue {
  background: #2498d8;
}

.tag.purple {
  background: #6956d9;
}

.tag.orange {
  background: #d9780c;
}

.tag.green {
  background: #2fac6c;
}

.title {
  color: #2d0c00;
  font-size: 17px;
  font-weight: 1000;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat {
  color: #b10000;
  font-weight: 1000;
  white-space: nowrap;
}

.rank-list {
  padding: 9px 12px;
}

.rank {
  align-items: center;
  background: transparent;
  border-bottom: 1px dashed #e2c88e;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 42px;
  text-align: left;
  width: 100%;
}

.rank:last-child {
  border-bottom: 0;
}

.rank-no {
  background: #f4c86b;
  border-radius: 50%;
  color: #7c0000;
  display: grid;
  font-weight: 1000;
  height: 26px;
  place-items: center;
  width: 26px;
}

.rank:nth-child(1) .rank-no {
  background: #ffba27;
}

.rank:nth-child(2) .rank-no {
  background: #e7e1d2;
}

.rank:nth-child(3) .rank-no {
  background: #e86436;
  color: #fff;
}

.rank strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank span:last-child {
  color: #d00600;
  font-weight: 1000;
}

.zodiac-mini {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 12px;
}

.zmini {
  align-items: center;
  background: #fffdf5;
  border: 1px solid var(--rg-ui-line-gold);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  font-weight: 1000;
  justify-content: center;
  min-height: 74px;
  min-width: 0;
  text-align: center;
}

.zmini i {
  font-size: 24px;
  font-style: normal;
}

.nums {
  color: #9d3b17;
  font-size: 11px;
  margin-top: 3px;
}

.data-lines {
  align-content: center;
  display: grid;
  padding: 14px 18px;
}

.data-line {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px minmax(0, 1fr);
  font-weight: 1000;
  margin: 9px 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 5px;
  color: #fff;
  display: grid;
  font-size: 13px;
  font-weight: 1000;
  height: 26px;
  min-width: 28px;
  place-items: center;
}

.chip.r {
  background: #e8472f;
}

.chip.b {
  background: #4c63d8;
}

.chip.g {
  background: #30a96d;
}

.promo {
  align-items: center;
  background: linear-gradient(90deg, #850000, #e02508, #8a0000);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 80px;
  padding: 10px 24px;
  position: relative;
}

.promo::before {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 220, 99, 0.28), transparent 12rem),
    radial-gradient(circle at 75% 50%, rgba(255, 210, 99, 0.2), transparent 10rem);
  content: "";
  inset: 0;
  position: absolute;
}

.promo > * {
  position: relative;
}

.promo .badge {
  background: linear-gradient(180deg, #fff7c4, #ffba2e);
  border-radius: 50%;
  color: #a50000;
  display: grid;
  font-weight: 1000;
  height: 66px;
  place-items: center;
  text-align: center;
  width: 66px;
}

.promo h2 {
  color: #ffe35d;
  font-family: var(--font-body);
  font-size: 28px;
  line-height: 1.26;
  margin: 0;
  padding-bottom: 2px;
  text-shadow: 0 2px 0 #7a0000;
}

.float-nav {
  display: grid;
  gap: 14px;
  position: fixed;
  right: 28px;
  top: 36%;
  z-index: 80;
}

.float-nav a {
  align-items: center;
  background: linear-gradient(180deg, #ff3a18, #960000);
  border: 2px solid #ffc95d;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 78, 20, 0.38), inset 0 0 12px rgba(255, 210, 90, 0.18);
  color: #ffe59b;
  display: grid;
  font-size: 12px;
  font-weight: 1000;
  gap: 2px;
  height: var(--rg-float-nav-size);
  justify-items: center;
  line-height: 1.1;
  padding: 8px;
  text-align: center;
  width: var(--rg-float-nav-size);
}

.float-nav a::before {
  content: attr(data-ui-icon);
  display: block;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1320px) and (min-width: 961px) {
  .float-nav {
    gap: 10px;
    right: 6px;
  }

  .float-nav a {
    font-size: 11px;
    height: var(--rg-float-nav-size-compact);
    padding: 6px;
    width: var(--rg-float-nav-size-compact);
  }

  .float-nav a::before {
    font-size: 18px;
  }
}

@media (max-width: 960px) {
  :root {
    --rg-post-filter-padding: 10px;
    --rg-post-list-gap: 10px;
    --rg-post-list-padding: 6px 10px;
    --rg-post-content-padding: 8px 10px;
  }

  .shell.site-shell {
    border: 0;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  .shell.site-shell::before {
    border-radius: 0;
  }

  .shell.site-shell .topline {
    font-size: 11px;
    height: 31px;
    justify-content: center;
    overflow: hidden;
    padding: 0 10px;
    white-space: nowrap;
  }

  .shell.site-shell .topline > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shell.site-shell .topline-actions {
    display: none;
  }

  .hero.brand-stage {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 8px 10px 10px;
  }

  .entry,
  .benefit {
    display: none;
  }

  .hero .dragon {
    color: rgba(255, 212, 100, 0.16);
    font-size: 50px;
    top: 24px;
  }

  .hero .dragon.left {
    left: 12px;
  }

  .hero .dragon.right {
    right: 12px;
  }

  .hero .brand {
    min-height: 96px;
  }

  .brand-top {
    font-size: 11px;
    padding: 3px 9px;
  }

  .brand-title {
    font-size: 42px;
    letter-spacing: 3px;
    margin: 3px 0;
  }

  .domain {
    font-size: 17px;
    min-height: 30px;
    min-width: 0;
    width: min(245px, 100%);
  }

  .hero .brand-sub {
    font-size: 12px;
    margin-top: 4px;
  }

  .nav.site-nav {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    scrollbar-width: none;
  }

  .nav.site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav.site-nav a {
    font-size: 11px;
    gap: 2px;
    min-height: 54px;
    padding: 4px;
  }

  body.home-content-index .nav.site-nav a {
    justify-content: center;
    min-height: 54px;
    min-width: 0;
    padding: 0 8px;
  }

  .site-shell .main {
    padding: 10px 10px 74px;
  }

  .home-main {
    gap: 10px;
  }

  .grid-top,
  .content,
  .data-grid,
  .page-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .contact-hero-card,
  .contact-route-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-card {
    gap: 12px;
    padding: 12px;
  }

  .contact-route-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .contact-route-card small {
    grid-column: 1 / -1;
  }

  .post-filter-bar {
    grid-template-columns: 1fr;
    padding: var(--rg-post-filter-padding);
  }

  .post-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
  }

  .post-filter-bar button,
  .post-filter-actions .filter-reset {
    width: 100%;
  }

  .post-list-panel .post-list {
    margin-top: var(--rg-post-list-gap);
    padding: var(--rg-post-list-padding);
  }

  .post-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .post-section-head[data-ui-icon] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .post-section-head[data-ui-icon] span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .post-detail .content-block-list {
    padding: var(--rg-post-content-padding);
  }

  .card-head {
    font-size: 16px;
    min-height: 38px;
  }

  .draw-body {
    padding: 12px;
  }

  body.home-content-index .grid-top .draw-card .draw-body {
    gap: 10px;
    padding: 12px;
  }

  .issue {
    font-size: 18px;
    justify-content: space-between;
  }

  body.home-content-index .grid-top .draw-card .issue {
    justify-content: space-between;
  }

  .balls {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
  }

  body.home-content-index .draw-card .draw-ball-list {
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: center;
    max-width: none;
  }

  .countdown {
    font-size: 13px;
    margin-top: 10px;
  }

  .timebox {
    font-size: 18px;
    padding: 2px 8px;
  }

  .notice ul {
    font-size: 13px;
    line-height: 1.7;
    margin: 8px 12px 8px 28px;
  }

  .notice .bonus {
    display: none;
  }

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

  .q {
    border-radius: 10px;
    font-size: 12px;
    min-height: 62px;
  }

  .q i {
    font-size: 24px;
  }

  .row {
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 45px;
    padding: 7px 10px;
  }

  .title {
    font-size: 14px;
  }

  .stat {
    font-size: 13px;
  }

  .tag {
    font-size: 11px;
    padding: 4px 6px;
  }

  .rank-list {
    padding: 7px 10px;
  }

  .rank {
    min-height: 37px;
  }

  .rank strong {
    font-size: 14px;
  }

  .zodiac-mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px;
  }

  .data-lines {
    padding: 11px;
  }

  .data-line {
    grid-template-columns: 40px minmax(0, 1fr);
    margin: 7px 0;
  }

  .chip {
    font-size: 12px;
    height: 23px;
    min-width: 24px;
  }

  .promo {
    display: none;
  }

  .float-nav {
    display: none;
  }

  .mobile-bottom.mobile-bottom-nav {
    background: linear-gradient(180deg, #b90606, #730000);
    border-top: 1px solid rgba(255, 214, 104, 0.55);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.34);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
  }

  .mobile-bottom.mobile-bottom-nav a {
    color: #ffe7a0;
    font-size: 12px;
    font-weight: 1000;
  }

  .mobile-bottom.mobile-bottom-nav a span {
    font-size: 22px;
  }

  .mobile-bottom.mobile-bottom-nav a[aria-current="page"] {
    background: linear-gradient(180deg, #e51b0e, #9b0000);
    border-radius: 16px 16px 0 0;
    color: #fff6b8;
  }
}

/* Red-gold number balls: text-based gradient balls with zodiac/element labels. */
.draw-ball-list,
.history-ball-list {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.num.draw-ball,
.history-ball.num {
  align-items: center;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ffeebc;
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
  grid-template-columns: 1fr;
  height: auto;
  justify-items: center;
  line-height: 1.15;
  min-height: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: auto;
}

.num.draw-ball::before,
.history-ball.num::before {
  content: none;
}

.ball {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    inset -7px -10px 16px rgba(0, 0, 0, 0.22),
    inset 5px 7px 12px rgba(255, 255, 255, 0.26),
    0 0 22px rgba(255, 210, 90, 0.22);
  color: #fff;
  display: grid;
  font-size: 30px;
  font-weight: 1000;
  height: 64px;
  justify-items: center;
  line-height: 1;
  position: relative;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  width: 64px;
}

.ball::before {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  height: 12px;
  left: 14px;
  pointer-events: none;
  position: absolute;
  top: 10px;
  width: 18px;
}

.ball.green {
  background: linear-gradient(135deg, #159945, #0b5c1e);
}

.ball.blue {
  background: linear-gradient(135deg, #2b78d6, #0b337c);
}

.ball.red {
  background: linear-gradient(135deg, #ff2e2a, #9b0000);
}

.num-label {
  color: #ffeebc;
  display: block;
  font-weight: 900;
  white-space: nowrap;
}

.draw-ball-plus,
.history-ball-plus {
  align-self: center;
  color: #fff8c3;
  font-size: 30px;
  font-weight: 1000;
  list-style: none;
  margin-top: 18px;
}

body.home-content-index .home-draw-panel .draw-ball {
  min-height: 0;
}

body.home-content-index .home-draw-panel .ball {
  height: var(--home-ball-size);
  width: var(--home-ball-size);
}

.history-ball-list {
  gap: 10px;
}

.history-ball .ball {
  color: #fff;
  font-size: 18px;
  height: 36px;
  text-shadow:
    0 1px 0 rgba(80, 0, 0, 0.52),
    0 2px 6px rgba(0, 0, 0, 0.62);
  width: 36px;
}

.history-ball .ball::before {
  height: 7px;
  left: 8px;
  top: 6px;
  width: 10px;
}

.history-ball .num-label {
  color: #6f0900;
  font-size: 11px;
  text-shadow: none;
}

@media (max-width: 960px) {
  .draw-ball-list,
  .history-ball-list {
    gap: 8px;
  }

  .draw-ball-list {
    flex-wrap: nowrap;
    gap: 3px;
  }

  body.home-content-index .home-draw-panel .draw-ball-list {
    flex-wrap: nowrap;
    gap: 3px;
  }

  .ball {
    font-size: 20px;
    height: 43px;
    width: 43px;
  }

  body.home-content-index .home-draw-panel .ball {
    height: var(--home-ball-size);
    width: var(--home-ball-size);
  }

  .ball::before {
    height: 8px;
    left: 10px;
    top: 7px;
    width: 12px;
  }

  .num.draw-ball,
  .history-ball.num {
    font-size: 11px;
    gap: 4px;
  }

  .draw-ball-plus,
  .history-ball-plus {
    font-size: 22px;
    margin-top: 10px;
  }

  .history-ball .ball {
    font-size: 16px;
    height: 32px;
    width: 32px;
  }

  .draw-detail-panel .card-head {
    font-size: 18px;
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .draw-detail-panel .draw-body {
    gap: 12px;
    padding: 14px 12px 16px;
  }

  .draw-detail-panel .draw-detail-head {
    align-items: start;
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
  }

  .draw-detail-panel .kicker {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .draw-detail-panel .draw-detail-head h2 {
    font-size: 26px;
  }

  .draw-detail-panel .draw-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .draw-detail-panel .draw-meta div {
    min-width: 0;
    padding-left: 8px;
  }

  .draw-detail-panel .draw-meta dt {
    display: block;
    font-size: 10px;
  }

  .draw-detail-panel .draw-meta dd {
    font-size: 12px;
  }

  .draw-detail-panel .draw-ball-list-detail {
    gap: 4px;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 18px minmax(0, 1fr);
  }

  .draw-detail-panel .draw-ball-list-detail .num.draw-ball {
    min-height: 62px;
  }

  .draw-detail-panel .draw-ball-list-detail .ball {
    font-size: 20px;
    height: 42px;
    width: 42px;
  }

  .draw-detail-panel .draw-ball-list-detail .ball::before {
    height: 8px;
    left: 10px;
    top: 7px;
    width: 12px;
  }

  .draw-detail-panel .draw-ball-list-detail .num-label {
    font-size: 10px;
  }

  .draw-detail-panel .draw-ball-list-detail .draw-ball-plus {
    font-size: 22px;
    line-height: 42px;
    min-height: 62px;
  }

  .draw-detail-panel .draw-attribute-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .draw-detail-panel .draw-attribute-item {
    min-height: 72px;
    padding: 9px 6px;
  }

  .draw-detail-panel .draw-attribute-item strong {
    font-size: 18px;
  }

  .draw-detail-panel .draw-attribute-item span {
    font-size: 12px;
  }

  .draw-detail-panel .draw-attribute-item small {
    font-size: 10px;
  }
}

/* History draw rows keep all six main numbers, plus sign, and special number on one stable line. */
.draw-history-list .history-ball-list {
  align-items: start;
  display: grid;
  gap: 6px 9px;
  grid-template-columns: repeat(6, minmax(34px, 38px)) auto minmax(34px, 38px);
  justify-content: center;
  width: 100%;
}

.draw-history-list .history-ball.num {
  justify-self: center;
  width: 100%;
}

.draw-history-list .history-ball .ball {
  font-size: 18px;
  height: 38px;
  max-width: 100%;
  width: 38px;
}

.draw-history-list .history-ball .ball::before {
  height: 7px;
  left: 8px;
  top: 6px;
  width: 10px;
}

.draw-history-list .history-ball .num-label {
  font-size: 11px;
  line-height: 1.1;
}

.draw-history-list .history-ball-plus {
  justify-self: center;
  margin-top: 9px;
  text-shadow: 0 1px 5px rgba(112, 0, 0, 0.32);
}

@media (max-width: 480px) {
  .draw-detail-panel .draw-detail-head h2 {
    font-size: 24px;
  }

  .draw-detail-panel .draw-meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .draw-detail-panel .draw-meta div {
    border-left-width: 3px;
    padding-left: 6px;
  }

  .draw-detail-panel .draw-meta dd {
    font-size: 11px;
  }

  .draw-detail-panel .draw-ball-list-detail {
    gap: 3px;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 16px minmax(0, 1fr);
  }

  .draw-detail-panel .draw-ball-list-detail .ball {
    font-size: 18px;
    height: 38px;
    width: 38px;
  }

  .draw-detail-panel .draw-ball-list-detail .draw-ball-plus {
    font-size: 18px;
    line-height: 38px;
  }

  .draw-history-list .history-ball-list {
    gap: 3px;
    grid-template-columns: repeat(6, minmax(0, 28px)) auto minmax(0, 28px);
  }

  .draw-history-list .history-ball .ball {
    font-size: 13px;
    height: 28px;
    width: 28px;
  }

  .draw-history-list .history-ball .ball::before {
    height: 5px;
    left: 6px;
    top: 5px;
    width: 8px;
  }

  .draw-history-list .history-ball .num-label {
    font-size: 9px;
  }

  .draw-history-list .history-ball-plus {
    font-size: 16px;
    margin-top: 5px;
  }
}

/* Final red-gold theme polish for admin and focused account flows. */
.auth-shell,
.support-shell,
.account-shell {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, var(--shell-max-width));
}

.auth-shell {
  --shell-max-width: 760px;
}

.support-shell {
  --shell-max-width: 880px;
}

.account-shell {
  --shell-max-width: 920px;
}

.account-settings-nav {
  background: linear-gradient(180deg, rgba(124, 2, 1, 0.92), rgba(67, 0, 0, 0.94));
  border: 1px solid rgba(255, 210, 103, 0.55);
  border-radius: 12px;
  padding: 8px;
}

.account-settings-nav a {
  background: rgba(255, 235, 178, 0.08);
  border-color: rgba(255, 210, 103, 0.42);
  color: #ffe6a5;
}

.account-settings-nav a.is-active,
.account-settings-nav a:hover {
  color: #6d0700;
}

.account-settings-panel .session-row {
  border-color: rgba(255, 210, 103, 0.32);
}

.account-settings-panel .session-row strong {
  color: var(--rg-ui-gold-text);
}

.account-settings-panel .session-row span,
.account-settings-panel .session-row small {
  color: #fff0c3;
}

.account-settings-panel .session-row button {
  background: rgba(255, 232, 163, 0.08);
  border-color: rgba(255, 210, 103, 0.62);
  color: #ffe6a5;
}

.account-settings-panel .session-row button:not(:disabled):hover {
  background: linear-gradient(180deg, #fff2a9, #d98813);
  color: #7c0000;
}

.account-settings-panel .session-row button:disabled {
  border-color: rgba(255, 210, 103, 0.24);
  color: rgba(255, 240, 195, 0.62);
}

.admin-source-layout > .admin-panel {
  min-width: 0;
}

.admin-source-table {
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-source-table::-webkit-scrollbar {
  height: 8px;
}

.admin-source-table::-webkit-scrollbar-thumb {
  background: rgba(160, 92, 20, 0.42);
  border-radius: 999px;
}

.admin-source-row {
  min-width: 850px;
}

.admin-source-row > span,
.admin-source-row time,
.admin-source-row-head span {
  color: #5f2c10;
  font-weight: 800;
}

.admin-source-row > span:last-child,
.admin-source-error span,
.admin-source-error time {
  color: #7a3e14;
}

.admin-source-row .admin-status {
  color: #fff7d6;
}

.admin-source-row .admin-source-health-ok {
  background: linear-gradient(180deg, #21a866, #087346);
  border-color: rgba(6, 98, 58, 0.64);
  color: #fff7d6;
}

.admin-source-row .admin-source-health-failed {
  background: linear-gradient(180deg, #d73b2e, #8d0b05);
  border-color: rgba(141, 11, 5, 0.64);
  color: #fff7d6;
}

.admin-draw-numbers {
  align-items: center;
  gap: 6px;
  grid-template-columns: repeat(7, 34px);
}

@media (min-width: 901px) {
  .admin-draw-row {
    grid-template-columns: minmax(140px, 1fr) 88px minmax(250px, 0.9fr) 70px 58px 82px 58px;
  }
}

.admin-draw-numbers li.admin-draw-ball {
  background: transparent;
  border: 0;
  border-radius: 50%;
  min-height: 34px;
  padding: 0;
}

.admin-draw-numbers .ball {
  font-size: 15px;
  height: 34px;
  width: 34px;
}

.admin-draw-numbers .ball::before {
  height: 6px;
  left: 8px;
  top: 6px;
  width: 9px;
}

@media (max-width: 900px) {
  .admin-contact-layout,
  .admin-share-layout,
  .admin-notification-layout,
  .admin-points-recharge-layout {
    grid-template-columns: 1fr;
  }

  .admin-contact-channel-row,
  .admin-points-tier-row {
    grid-template-columns: 54px repeat(2, minmax(0, 1fr));
  }

  .admin-contact-row-wide {
    grid-column: 1 / -1;
  }

  .admin-contact-channel-row > button {
    grid-column: 1 / -1;
  }

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

  .admin-source-table {
    overflow-x: visible;
  }

  .admin-source-row {
    min-width: 0;
  }

  .admin-draw-numbers {
    grid-template-columns: repeat(7, 30px);
  }

  .admin-draw-numbers li.admin-draw-ball {
    min-height: 30px;
  }

  .admin-draw-numbers .ball {
    font-size: 13px;
    height: 30px;
    width: 30px;
  }
}

@media (max-width: 640px) {
  .admin-contact-toolbar {
    align-items: stretch;
    display: grid;
  }

  .admin-contact-channel-row,
  .admin-notification-form,
  .admin-points-tier-row,
  .admin-points-recharge-form,
  .admin-points-recharge-actions {
    grid-template-columns: 1fr;
  }

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

  .admin-page .site-header-inner {
    align-items: stretch;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .admin-page .brand {
    justify-content: center;
  }

  .admin-page .site-nav {
    max-width: 100%;
    width: 100%;
  }

  .admin-page .site-nav a {
    flex: 0 0 auto;
    min-width: 72px;
  }

  .site-shell .main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .auth-shell,
  .support-shell,
  .account-shell {
    width: 100%;
  }
}
