:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #111;
  background: #eee;
  --orange: #f36b05;
  --red: #e50012;
  --line: #b7b7b7;
  --cell: #cfcfcf;
  --head: #b7b7b7;
  --muted: #777;
}

/* Homepage notice and announcement queue. */
.portal-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 18px auto 0;
  padding: 0 18px;
  max-width: 1320px;
  border: 1px solid rgba(190, 143, 54, 0.72);
  border-radius: 17px;
  overflow: hidden;
  color: #754b1f;
  background: rgba(255, 246, 226, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 26px rgba(116, 77, 19, 0.13);
  backdrop-filter: blur(8px);
}

.portal-notice[hidden] { display: none; }
.portal-notice-speaker { display: grid; flex: 0 0 auto; place-items: center; width: 26px; color: #a96827; }
.portal-notice-speaker svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.portal-notice-track { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.portal-notice-text { display: inline-block; min-width: 100%; margin: 0; padding-left: 100%; color: #754b1f; font-size: 16px; font-weight: 650; line-height: 54px; animation: portal-notice-marquee 19s linear infinite; }
.portal-notice:hover .portal-notice-text { animation-play-state: paused; }
.portal-notice-arrow { flex: 0 0 auto; color: #a96827; font-size: 34px; font-weight: 300; line-height: 1; }

@keyframes portal-notice-marquee { to { transform: translateX(-100%); } }

.portal-announcement-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8b970;
  border-radius: 22px;
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.portal-announcement-dialog::backdrop { background: rgba(2, 6, 19, 0.7); backdrop-filter: blur(2px); }
.portal-announcement-card { position: relative; display: flex; max-height: inherit; flex-direction: column; }
.portal-announcement-card header { padding: 22px 64px 20px 28px; color: #f2d58c; background: linear-gradient(135deg, #123a43, #1c5a62); text-align: center; }
.portal-announcement-card h2 { margin: 0; font-size: 29px; font-weight: 720; }
.portal-announcement-close-icon { position: absolute; top: 12px; right: 18px; width: 38px; height: 38px; padding: 0; border: 0; color: #f4d88f; background: transparent; font-size: 35px; line-height: 1; cursor: pointer; }
.portal-announcement-body { min-height: 180px; padding: 28px 34px 18px; overflow: auto; color: #2d2b29; font-size: 18px; line-height: 1.6; white-space: pre-wrap; text-align: center; }
.portal-announcement-divider { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 32px; color: #c9a25d; }
.portal-announcement-divider::before, .portal-announcement-divider::after { width: 42%; height: 1px; background: #ead9ae; content: ""; }
.portal-announcement-actions { display: flex; gap: 14px; padding: 22px 28px 26px; }
.portal-announcement-btn { min-height: 52px; flex: 1; border: 1px solid #c8a75d; border-radius: 12px; color: #f2d78f; background: linear-gradient(135deg, #12404a, #17636d); font-size: 19px; font-weight: 700; cursor: pointer; }
.portal-announcement-btn:hover, .portal-announcement-btn:focus-visible { filter: brightness(1.12); box-shadow: 0 0 18px rgba(232, 197, 111, 0.42); }

@media (max-width: 640px) {
  .portal-notice { min-height: 50px; margin: 12px 14px 0; padding: 0 13px; border-radius: 14px; }
  .portal-notice-text { font-size: 14px; line-height: 48px; }
  .portal-announcement-card header { padding: 18px 52px 17px 22px; }
  .portal-announcement-card h2 { font-size: 25px; }
  .portal-announcement-body { min-height: 145px; padding: 22px 24px 16px; font-size: 16px; }
  .portal-announcement-actions { padding: 18px 20px 22px; }
  .portal-announcement-btn { min-height: 48px; font-size: 16px; }
}

[hidden] { display: none !important; }

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f1eeee;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 8px 10px;
  outline: 0;
  background: #fff;
  color: #222;
}

.auth-page,
.portal-page,
.public-results-page,
.support-page,
.member-app,
.admin-app {
  display: none;
}

.auth-page.is-visible,
.portal-page.is-visible,
.public-results-page.is-visible,
.support-page.is-visible,
.member-app.is-visible,
.admin-app.is-visible {
  display: block;
}

.portal-page,
.public-results-page,
.support-page {
  min-height: 100vh;
  background: #0d1014;
  color: #f8fafc;
}

.portal-page {
  background: #d8c6a5;
  color: #30291f;
}

.portal-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #bda77e;
  background: #eee2cb;
}

.portal-header-main {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 150px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
}

.portal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 330px;
  height: 100px;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}

.portal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4)) drop-shadow(0 4px 10px rgba(124, 21, 15, 0.12));
}

.portal-auth-actions {
  display: flex;
  gap: 10px;
}

.portal-auth-actions button,
.portal-section-title button,
.portal-wallet-actions button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 7px 18px;
}

.portal-login,
.portal-member {
  background: #f8fafc;
  color: #15181f;
}

.portal-register,
.portal-wallet-actions button {
  border-color: #c9552b !important;
  background: #d96632;
  color: #fff;
}

.portal-nav {
  display: flex;
  min-height: 52px;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.portal-nav button {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #393126;
  font-weight: 700;
}

.portal-nav-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  color: #a62820;
  filter: drop-shadow(0 1px 0 #d7ad56);
  transition: transform 160ms ease, filter 160ms ease;
}

.portal-nav-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-nav-icon-fill {
  fill: #c79a3d;
  stroke: #a62820;
  stroke-width: 1;
}

.portal-nav button:hover,
.portal-nav button:focus-visible {
  border-color: #8b6828;
  color: #76551d;
}

.portal-nav button:hover .portal-nav-icon,
.portal-nav button:focus-visible .portal-nav-icon {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 0 5px rgba(202, 151, 47, 0.62));
}

.portal-nav b {
  font-weight: inherit;
}

.portal-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(280px, 0.85fr);
  gap: 24px;
}

.portal-carousel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #12161b;
}

.portal-carousel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 360ms ease;
}

.portal-carousel img.is-visible { opacity: 1; }

.portal-slide-copy {
  position: absolute;
  bottom: 52px;
  left: 42px;
  z-index: 1;
  display: grid;
  max-width: 390px;
  gap: 8px;
}

.portal-slide-copy span {
  color: #ebca7b;
  font-size: 13px;
}

.portal-slide-copy strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 34px;
}

.portal-slide-copy p {
  margin: 0;
  color: #e1e5ea;
}

.portal-dots {
  position: absolute;
  bottom: 18px;
  left: 42px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.portal-dots button {
  width: 20px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.portal-dots button.active {
  background: #e5b85a;
}

.portal-account {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
  min-height: 360px;
  border: 1px solid #c7b48f;
  border-top: 2px solid #c9a663;
  background: #f5ecdc;
  padding: 24px;
}

.portal-avatar {
  width: 84px;
  height: 84px;
  display: block;
  object-fit: cover;
  border: 3px solid #c9a663;
  border-radius: 50%;
  background: #f5ecdc;
  box-shadow: 0 6px 18px rgba(100, 71, 25, 0.2);
}

.portal-account p {
  margin: 0;
  color: #675c4b;
}

.portal-account p strong {
  color: #30291f;
}

.portal-account-identity {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.portal-account-identity span {
  display: flex;
  max-width: 100%;
  min-width: 0;
}

.portal-account-identity strong {
  display: block;
  margin-left: 4px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-total {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.portal-account-total span,
.portal-account-stats span {
  color: #8a6a2e;
  font-size: 12px;
}

.portal-account-total strong {
  color: #30291f;
  font-size: 24px;
}

.portal-account-stats {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #cdbb99;
  border-bottom: 1px solid #cdbb99;
}

.portal-account-stats div {
  display: grid;
  gap: 5px;
  padding: 13px 8px;
  text-align: center;
}

.portal-account-stats div + div {
  border-left: 1px solid #cdbb99;
}

.portal-wallet-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.portal-games-section {
  padding-top: 44px;
}

.portal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.portal-section-title span {
  font-size: 20px;
  font-weight: 700;
}

.portal-section-title button {
  background: transparent;
  color: #77571f;
}

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

.portal-game-card {
  display: grid;
  min-width: 0;
  min-height: 160px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 46%;
  border: 1px solid #c7b48f;
  border-radius: 6px;
  padding: 0;
  background: #f5ecdc;
  color: #30291f;
  text-align: left;
}

.portal-game-card > span {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 9px;
  padding: 20px;
}

.portal-game-card strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.portal-game-card em {
  color: #675c4b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.portal-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-game-card:hover {
  border-color: #9d7938;
  background: #fbf5ea;
  transform: translateY(-2px);
}

.portal-footer {
  display: grid;
  gap: 20px;
  border-top: 1px solid #bda77e;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  background: #eee2cb;
  color: #675c4b;
}

.portal-footer p {
  margin: 0;
  border-top: 1px solid #cdbb99;
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.75;
}

.footer-languages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; padding: 8px 0; }
.footer-languages button { border: 0; padding: 4px 2px; background: transparent; color: #4f473d; }
.footer-languages button:hover, .footer-languages button.active { color: #77571f; }
.footer-languages span { color: #9a896c; }
.portal-legal-text { color: #675c4b; font-size: 13px !important; }

.results-header {
  display: grid;
  min-height: 62px;
  align-items: center;
  grid-template-columns: 72px 1fr 96px;
  border-bottom: 1px solid rgba(212, 169, 79, 0.28);
  padding: 0 max(12px, calc((100% - 1180px) / 2));
  background: #080c12;
}

.results-header strong {
  text-align: center;
}

.results-header button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #f3d99a;
}

.results-header button:first-child {
  font-size: 32px;
}

.results-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 82px;
}

.results-intro span {
  color: #e1bd69;
  font-size: 13px;
}

.results-intro h1 {
  margin: 8px 0;
  font-size: 30px;
}

.results-intro p {
  margin: 0;
  color: #aeb7c4;
}

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

.public-result-card {
  overflow: hidden;
  border: 1px solid #303949;
  border-radius: 6px;
  background: #f5f6f8;
  color: #12151a;
}

.public-result-card > header {
  display: grid;
  align-items: center;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  min-height: 72px;
  background: #111927;
  color: #fff;
}

.public-result-card header img {
  width: 92px;
  height: 72px;
  object-fit: cover;
}

.public-result-card header div {
  display: grid;
  gap: 4px;
}

.public-result-card header span {
  color: #d8bd72;
  font-size: 11px;
}

.public-result-row {
  display: grid;
  min-height: 56px;
  align-items: center;
  grid-template-columns: 94px minmax(0, 1fr) 120px;
  gap: 8px;
  border-top: 1px solid #d9dde3;
  padding: 8px 12px;
}

.public-result-row > span {
  color: #df1326;
  font-size: 12px;
}

.public-result-row .balls {
  flex-wrap: wrap;
}

.public-result-row .ball {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.public-result-row time {
  color: #737b87;
  font-size: 10px;
  text-align: right;
}

.empty-results {
  margin: 0;
  padding: 26px;
  color: #777;
}

.support-page {
  min-height: 100vh;
  background: #eef1f5;
  color: #20242c;
}

.support-header {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: 74px 1fr 90px;
  border-bottom: 1px solid rgba(212, 169, 79, 0.32);
  padding: 0 max(10px, calc((100% - 920px) / 2));
  background: #080c12;
  color: #fff;
}

.support-header button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #f1d48d;
  font-size: 32px;
}

.support-header strong {
  text-align: center;
}

.support-header > span {
  color: #d8bd72;
  font-size: 12px;
  text-align: right;
}

.support-main {
  width: min(920px, 100%);
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 18px;
}

.support-chat-shell {
  display: grid;
  height: calc(100vh - 94px);
  min-height: 520px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d6dae0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 28, 39, 0.1);
}

.support-agent {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e3e6eb;
  padding: 10px 18px;
  background: #fff;
}

.support-agent-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #17243a;
  color: #f0d48f;
  font-weight: 700;
}

.support-agent-avatar.has-photo {
  border: 1px solid #d7ad61;
  background-color: #fbf1dc;
  background-position: center;
  background-size: cover;
  color: transparent;
}

.support-agent-avatar.is-brand-logo {
  width: 136px;
  height: 48px;
  flex-basis: 136px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.support-agent div {
  display: grid;
  gap: 5px;
}

.support-agent small {
  color: #7a828e;
}

.support-agent small i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: #18a66a;
}

.support-messages {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
  background: #f3f5f8;
}

.support-welcome-card {
  width: min(100%, 720px);
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid #d6b365;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 6px 18px rgba(61, 41, 23, 0.11);
}

.support-welcome-copy {
  padding: 16px 18px 18px;
}

.support-welcome-image-message {
  display: block;
  width: 100%;
  max-height: 340px;
  margin: 0 0 15px;
  border-radius: 8px;
  background: #f7edda;
  object-fit: cover;
  object-position: center;
}

.support-welcome-copy strong {
  color: #6e201f;
  font-size: 17px;
}

.support-welcome-copy p {
  margin: 7px 0 0;
  color: #4f473e;
  line-height: 1.55;
  white-space: pre-line;
}

.support-message {
  display: flex;
  max-width: 76%;
  flex-direction: column;
  gap: 5px;
}

.support-message-agent {
  align-self: flex-start;
  align-items: flex-start;
}

.support-message-player {
  align-self: flex-end;
  align-items: flex-end;
}

.support-bubble {
  border-radius: 4px 12px 12px 12px;
  padding: 11px 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 29, 42, 0.09);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-message-player .support-bubble {
  border-radius: 12px 4px 12px 12px;
  background: #d96632;
  color: #fff;
}

.support-message time {
  color: #9299a4;
  font-size: 10px;
}

.support-composer {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
  border-top: 1px solid #dde1e6;
  padding: 13px;
  background: #fff;
}

.support-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid #cfd4db;
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  outline: 0;
}

.support-composer textarea:focus {
  border-color: #c9552b;
}

.support-composer button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: #d96632;
  color: #fff;
  font-weight: 700;
}

.phone-page {
  width: min(750px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #f4f4f4;
}

.mobile-title {
  display: grid;
  height: 38px;
  align-items: center;
  grid-template-columns: 42px 1fr auto;
  padding: 0 4px;
  background:
    radial-gradient(circle at 58% 0%, rgba(54, 125, 255, 0.66), transparent 24%),
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.3), transparent 2px),
    linear-gradient(90deg, #060b17, #101629 52%, #070712);
  color: #fff;
}

.mobile-title strong {
  text-align: center;
  font-size: 16px;
}

.title-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.title-icons .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 20px;
  position: relative;
  color: #f4d88f;
  transition: filter 160ms ease, transform 160ms ease;
}

.title-icons .home-icon-btn {
  color: #f4d88f;
}

.title-icons .home-icon-btn img,
.member-profile-btn img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.title-icons .play-records-icon-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.title-icons .icon-btn:hover,
.title-icons .icon-btn:focus-visible {
  filter: drop-shadow(0 0 6px rgba(244, 216, 143, 0.76));
  transform: translateY(-1px);
}

.title-icon-tooltip {
  position: absolute;
  top: calc(100% + 5px);
  right: 50%;
  z-index: 30;
  padding: 4px 7px;
  border: 1px solid rgba(244, 216, 143, 0.62);
  border-radius: 4px;
  background: rgba(12, 15, 28, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #f4d88f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(50%, -3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.title-icons .icon-btn:hover .title-icon-tooltip,
.title-icons .icon-btn:focus-visible .title-icon-tooltip,
.title-icons .icon-btn:active .title-icon-tooltip {
  opacity: 1;
  transform: translate(50%, 0);
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.auth-phone {
  background:
    linear-gradient(rgba(15, 20, 36, 0.76), rgba(15, 20, 36, 0.9)),
    radial-gradient(circle at 50% 0, rgba(255, 210, 88, 0.32), transparent 45%),
    #0a1020;
  color: #fff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-tabs button {
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #ddd;
  font-weight: 700;
}

.auth-tabs button.is-active {
  border-color: var(--orange);
  color: #ffd37a;
}

.auth-form {
  display: none;
  gap: 10px;
  padding: 0 24px 28px;
}

.auth-form.is-visible {
  display: grid;
}

.input-row {
  display: grid;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-height: 48px;
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
}

.input-row input {
  border: 0;
  background: transparent;
}

.captcha-row {
  grid-template-columns: 28px minmax(0, 1fr) 72px;
}

.captcha-row b {
  color: #333;
  letter-spacing: 3px;
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  font-size: 13px;
}

.agree-row input {
  width: 18px;
  min-height: 18px;
}

.field-tip,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.orange-btn,
.plain-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
}

.orange-btn {
  border: 1px solid #d34200;
  background: var(--orange);
  color: #fff;
}

.plain-btn {
  border: 1px solid #bbb;
  background: #fff;
  color: #222;
}

.plain-btn:disabled,
.orange-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.full {
  width: 100%;
}

.small {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.home-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.home-top div {
  display: grid;
  gap: 4px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
}

.home-top span {
  color: #888;
  font-size: 12px;
}

.home-top strong {
  color: var(--red);
  font-size: 18px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 8px;
  background: #fff;
}

.home-actions button,
.game-card {
  border: 0;
  background: #fff;
  color: #333;
}

.home-actions button {
  min-height: 50px;
}

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

.game-card {
  display: grid;
  min-width: 0;
  height: 146px;
  grid-template-rows: 88px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #c7b48f;
  border-radius: 7px;
  padding: 0;
  background: #f5ecdc;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
  padding: 10px;
  color: #30291f;
}

.game-card strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

.game-card em {
  color: #675c4b;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: #9d7938;
  background: #fbf5ea;
  box-shadow: 0 7px 16px rgba(86, 63, 27, 0.15);
  transform: translateY(-2px);
}

.room-list {
  display: grid;
  gap: 12px;
  padding: 8px;
}

.room-card {
  display: grid;
  height: 196px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #211e1a;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.room-card p {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 7px 18px 7px 70px;
  background: linear-gradient(90deg, #171511, #29241d);
  color: #f3cf83;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  transition: color 180ms ease, background 180ms ease, text-shadow 180ms ease;
}

.room-card p::before {
  position: absolute;
  left: 20px;
  width: 32px;
  height: 2px;
  background: #e4b95d;
  box-shadow: 0 0 8px rgba(243, 207, 131, 0.45);
  content: "";
}

.room-card:hover,
.room-card:focus-visible,
.room-card:active {
  z-index: 1;
  transform: translateY(-3px);
  border-color: #e8c36d;
  box-shadow: 0 0 0 1px rgba(255, 233, 168, 0.75), 0 8px 24px rgba(232, 182, 76, 0.42);
  outline: 0;
}

.room-card:hover .room-art,
.room-card:focus-visible .room-art,
.room-card:active .room-art {
  filter: brightness(1.08) saturate(1.08);
}

.room-card:hover p,
.room-card:focus-visible p,
.room-card:active p {
  background: linear-gradient(90deg, #2a2116, #3b301d);
  color: #fff0bd;
  text-shadow: 0 0 12px rgba(243, 207, 131, 0.7);
}

.room-art {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, #d96bf5, #e94cd0);
}

.room-card.rose .room-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, #ff78b8, #f05b6b);
}

.room-card.lime .room-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, #d3e222, #a4d749);
}

.room-card.purple .room-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, #f597f4, #c62fea);
}

.room-art::after {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 96% 28%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 98% 34%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 95% 38%, #fff 0 2px, transparent 3px);
  content: "";
  opacity: 0.85;
}

.crown {
  position: absolute;
  left: 140px;
  top: 20px;
  width: 170px;
  height: 78px;
  transform: rotate(-12deg) skewX(-12deg);
  border-radius: 14px 14px 20px 20px;
  background: linear-gradient(#ffdf63, #f07a00 65%, #d64d00);
  box-shadow: 0 10px 0 #ffb21a inset, 0 4px 16px rgba(0, 0, 0, 0.2);
}

.crown::before {
  position: absolute;
  left: 18px;
  top: -36px;
  width: 128px;
  height: 52px;
  background:
    radial-gradient(circle at 10% 95%, #ffc327 0 8px, transparent 9px),
    radial-gradient(circle at 28% 80%, #ffc327 0 8px, transparent 9px),
    radial-gradient(circle at 48% 55%, #ffc327 0 9px, transparent 10px),
    radial-gradient(circle at 68% 78%, #ffc327 0 8px, transparent 9px),
    radial-gradient(circle at 88% 94%, #ffc327 0 8px, transparent 9px);
  content: "";
}

.lottery-ball {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #ff70b8 35%, #e1006d 72%);
  color: #111;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.lottery-ball::before {
  position: absolute;
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: #fff;
  content: "";
  z-index: 0;
}

.lottery-ball {
  z-index: 1;
}

.b1 {
  left: 52px;
  top: 70px;
  width: 64px;
  height: 64px;
  font-size: 30px;
}

.b2 {
  left: 26px;
  top: 52px;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 32% 28%, #fff, #7931d9 38%, #491187 72%);
}

.coin {
  position: absolute;
  width: 42px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(#ffe56d, #ffb300);
  box-shadow: 0 3px 0 #e68300;
}

.c1 {
  left: 72px;
  top: 18px;
  transform: rotate(32deg);
}

.c2 {
  right: 80px;
  top: 44px;
  transform: rotate(-24deg);
}

.c3 {
  right: 190px;
  top: 96px;
  transform: rotate(24deg);
}

/* Room artwork is intentionally image-led so each entry reads as its own venue. */
.room-art {
  background-color: #231e1a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 180ms ease;
}

.room-art--beginner { background-image: url("/assets/room-beginner.webp"); }
.room-art--intermediate { background-image: url("/assets/room-intermediate.webp"); }
.room-art--advanced { background-image: url("/assets/room-advanced.webp"); }
.room-art--vip { background-image: url("/assets/room-vip.webp"); }

.room-art::after,
.room-art .coin,
.room-art .crown,
.room-art .lottery-ball {
  display: none;
}

.room-brand {
  position: absolute;
  right: 12px;
  bottom: 9px;
  width: clamp(94px, 25vw, 154px);
  max-height: 54%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.48));
}

.play-view {
  padding-bottom: 78px;
}

.last-result {
  min-height: 86px;
  padding: 8px;
  background: #eee;
}

.result-line {
  display: grid;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr) 56px;
  gap: 6px;
}

.result-line > span,
.round-row > span {
  color: var(--red);
  font-size: 14px;
  white-space: nowrap;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ball,
.market-number {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px rgba(0, 0, 0, 0.35);
}

.ball.n1,
.market-number.n1 {
  background: #ffef00;
  color: #1d1d1d;
}

.ball.n2,
.market-number.n2 {
  background: #2da7ff;
}

.ball.n3,
.market-number.n3 {
  background: #252525;
}

.ball.n4,
.market-number.n4 {
  background: #ff8b21;
}

.ball.n5,
.market-number.n5 {
  background: #18e4bf;
  color: #111;
}

.ball.n6,
.market-number.n6 {
  background: #5967dc;
}

.ball.n7,
.market-number.n7 {
  background: #d8e8e8;
  color: #111;
}

.ball.n8,
.market-number.n8 {
  background: #ff6468;
}

.ball.n9,
.market-number.n9 {
  background: #e40017;
}

.ball.n10,
.market-number.n10 {
  background: #16eb37;
  color: #111;
}

.ball.lucky,
.ball.sum {
  border-radius: 50%;
  background: #ff8b21;
}

.ball.sum {
  background: #ffbf2d;
  color: #b40000;
}

.balance-mini {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  cursor: pointer;
}

.balance-money-avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(112, 70, 21, 0.18));
}

.result-summary {
  min-height: 22px;
  padding-top: 3px;
  color: #ff4a00;
  font-size: 13px;
}

.result-summary b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #ff9b20;
  color: #fff;
}

.round-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  background: #fff;
}

.round-row b {
  border-radius: 6px;
  padding: 3px 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}

.round-row em {
  color: #111;
  font-style: normal;
  font-weight: 700;
}

.round-row button {
  margin-left: 0;
  border: 0;
  background: transparent;
  color: #ff3e00;
}

.round-row .draw-sound-toggle {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  margin-left: 0;
  border: 1px solid var(--champagne-gold, #c99a3d);
  border-radius: 9px;
  background: #fffaf0;
  color: #9b6a1d;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(112, 76, 19, 0.12);
}

.round-row #historyToggle { margin-left: auto; }

.draw-sound-toggle:hover,
.draw-sound-toggle:focus-visible {
  background: #fff1cf;
  box-shadow: 0 0 0 2px rgba(201, 154, 61, 0.18), 0 4px 10px rgba(112, 76, 19, 0.16);
}

.draw-sound-toggle:active { transform: translateY(1px); }

.draw-sound-bell {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.draw-sound-off-x {
  position: absolute;
  right: 1px;
  bottom: -1px;
  display: none;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #fffaf0;
  border-radius: 50%;
  background: var(--champagne-wine, #a8171c);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 13px;
}

.draw-sound-toggle[data-enabled="false"] {
  background: #f3eee5;
  color: #817567;
}

.draw-sound-toggle[data-enabled="false"] .draw-sound-off-x { display: grid; }

.history-panel {
  display: none;
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid #ddd;
  background: #fff;
}

.history-panel.is-open {
  display: grid;
}

.history-panel article {
  display: grid;
  align-items: center;
  gap: 6px;
  grid-template-columns: 90px 1fr;
  padding: 7px 8px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.history-panel em {
  grid-column: 2;
  color: #ff4a00;
  font-style: normal;
}

.bet-table-wrap {
  --line: #cbb990;
  --cell: #f7f0e3;
  --head: #d8c6a5;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  background: #e8ddc9;
}

.play-tabs {
  display: grid;
  align-content: start;
}

.play-tabs button {
  min-height: 51px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #e8ddc9;
  color: #555;
  font-size: 30px;
}

.play-tabs button.is-active {
  background: #df5d00;
  color: #fff;
  font-weight: 700;
}

.odds-table {
  min-height: 700px;
  overflow: hidden;
}

.odds-table h3 {
  height: 31px;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--head);
  color: var(--red);
  font-size: 16px;
}

.odds-row {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.odds-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odds-row.nums {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.odds-cell {
  display: grid;
  min-height: 73px;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cell);
  color: #111;
}

.odds-cell strong {
  font-size: 16px;
  font-weight: 500;
}

.market-number {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.odds-cell strong .market-number {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px rgba(0, 0, 0, 0.35);
}

.odds-cell strong .market-number.n1,
.odds-cell strong .market-number.n5,
.odds-cell strong .market-number.n7,
.odds-cell strong .market-number.n10 {
  color: #111;
}

.odds-cell span {
  color: #8d7963;
  font-size: 13px;
}

.odds-cell.is-selected {
  background: #ffe2bc;
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.odds-cell.is-locked {
  background: #eee6d8;
  cursor: not-allowed;
}

.odds-cell.is-locked > span {
  color: #a89b87;
}

.play-status-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  min-height: 58px;
  transform: translate(-50%, -50%);
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.14);
  color: #514b45;
  font-size: 17px;
  pointer-events: none;
}

.play-status-notice[hidden] { display: none; }

.play-status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 2px solid #69d6b9;
  border-radius: 50%;
  color: #55cbae;
}

.play-status-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play-status-notice[data-kind="closed"] .play-status-icon {
  border-color: #8e8e8e;
  color: #666;
}

.play-status-notice .notice-lock,
.play-status-notice[data-kind="closed"] .notice-check { display: none; }
.play-status-notice[data-kind="closed"] .notice-lock { display: block; }

.bet-drawer {
  display: grid;
  gap: 0;
  padding: 0 28px 10px;
  background: #f27622;
  color: #fff;
}

.bet-drawer[hidden] { display: none; }

.drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
}

.drawer-head strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 18px;
  padding: 5px 18px;
  background: #8f1e16;
  font-weight: 500;
}

.drawer-head .drawer-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  padding: 0 4px;
}

.drawer-body {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 4px 0 0;
}

.bet-drawer.is-collapsed { padding-bottom: 0; }
.bet-drawer.is-collapsed .drawer-body { display: none; }

.selected-market,
.slip-total { display: none; }

.slip-item {
  display: grid;
  align-items: center;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 42px 90px 30px;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.slip-item input {
  min-height: 32px;
}

.slip-item button {
  border: 0;
  background: #eee;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.chip-row button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #68611d;
  color: #fff;
  padding: 0;
}

.amount-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
}

.amount-row input {
  width: 172px;
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  padding: 0 16px;
}

.drawer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slip-total {
  color: #fff;
  font-weight: 700;
}

.bet-drawer .orange-btn {
  width: 170px;
  min-height: 44px;
  margin: 0;
  border-radius: 22px;
  background: #38106f;
}

.drawer-reset {
  min-width: 110px;
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  background: #b9231f;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .play-status-notice { min-height: 52px; padding: 10px 14px; font-size: 14px; }
  .play-status-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .bet-drawer { padding: 0 14px 10px; }
  .drawer-title { font-size: 14px; }
  .drawer-head strong { font-size: 13px; padding: 5px 12px; }
  .chip-row button { width: 44px; height: 44px; }
  .drawer-actions { flex-wrap: wrap; gap: 8px; }
  .amount-row { width: 100%; justify-content: center; }
  .amount-row input { width: min(180px, 52vw); }
  .bet-drawer .orange-btn, .drawer-reset { min-height: 40px; }
  .bet-drawer .orange-btn { width: 132px; }
  .drawer-reset { min-width: 92px; }
}

.back-orange {
  position: fixed;
  right: max(48px, calc((100vw - 750px) / 2 + 74px));
  bottom: 4px;
  left: max(48px, calc((100vw - 750px) / 2 + 74px));
  z-index: 10;
  height: 36px;
  border: 1px solid #f04400;
  border-radius: 20px;
  background: #ff6908;
  color: #fff;
  font-weight: 700;
}

.panel {
  display: grid;
  gap: 10px;
  margin: 8px;
  padding: 12px;
  background: #fff;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.wallet-support-view {
  min-height: calc(100vh - 54px);
  padding: 8px;
  background: #f4f4f4;
}

.wallet-support-panel {
  min-height: min(520px, calc(100vh - 86px));
  align-content: center;
  gap: 34px;
  margin: 0;
  padding: 28px;
  border: 1px solid #ececec;
}

.wallet-support-panel h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
}

.wallet-support-panel .orange-btn {
  min-height: 58px;
  font-size: 20px;
}

.withdrawal-view {
  min-height: calc(100vh - 54px);
  padding: 14px;
  background: #f2f2f2;
}

.withdrawal-panel {
  width: min(760px, calc(100% - 16px));
  margin: 0 auto;
  padding: 0;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.withdrawal-panel-head {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid #e7e7e7;
}

.withdrawal-panel-head div { display: grid; gap: 3px; }
.withdrawal-panel-head span { color: #777; font-size: 13px; }
.withdrawal-panel-head h2 { margin: 0; font-size: 22px; }
.withdrawal-binding-head { justify-content: center; text-align: center; }
.withdrawal-edit { border: 1px solid #cbb990; padding: 8px 14px; background: #fffaf2; color: #9a572d; }

.withdrawal-form {
  display: grid;
  gap: 15px;
  padding: 22px;
  background: #f7f7f7;
}

.withdrawal-form label { display: grid; gap: 7px; color: #5e5e5e; font-size: 15px; }
.withdrawal-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 10px 13px;
  background: #fff;
  color: #252525;
}
.withdrawal-form input[readonly] { background: #e8e5e5; }

.withdrawal-primary {
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  background: #e95647;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.withdrawal-summary { margin: 0; color: #666; }
.withdrawal-review-note { margin: -2px 0 0; color: #a45120; font-size: 14px; }
.withdrawal-tips { display: grid; gap: 6px; padding: 26px 22px; color: #626262; }
.withdrawal-tips strong { color: #333; }
.withdrawal-tips p { margin: 0; line-height: 1.55; }
.withdrawal-history-section { padding: 20px 22px 24px; }
.withdrawal-history-section h3 { margin: 0 0 12px; }
.withdrawal-history { display: grid; gap: 10px; }
.withdrawal-history-item { display: grid; gap: 5px; border: 1px solid #e3e3e3; padding: 12px 14px; background: #fff; }
.withdrawal-history-item > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.withdrawal-history-item p { margin: 0; color: #666; }
.withdrawal-history-item time { color: #888; font-size: 12px; }
.withdrawal-status { color: #8c6d28; font-size: 13px; font-weight: 700; }
.withdrawal-status.status-completed { color: #207b48; }
.withdrawal-status.status-failed { color: #bd372e; }

@media (max-width: 560px) {
  .game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 9px;
  }

  .game-card {
    height: 170px;
    grid-template-rows: 106px minmax(0, 1fr);
  }

  .game-card-copy {
    gap: 4px;
    padding: 10px;
  }

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

  .withdrawal-view { padding: 8px 0 82px; }
  .withdrawal-panel { width: calc(100% - 16px); }
  .withdrawal-panel-head { padding: 12px 15px; }
  .withdrawal-form, .withdrawal-tips, .withdrawal-history-section { padding: 16px; }
  .withdrawal-history-item > div { align-items: flex-start; }
  .withdrawal-status { max-width: 58%; text-align: right; }
}

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

.activity-panel {
  gap: 16px;
}

.member-record-tabs,
.report-period-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 52px;
  border-bottom: 1px solid #dedede;
}

.member-record-tabs button,
.report-period-tabs button {
  min-width: 0;
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  color: #222;
  font-size: 17px;
  font-weight: 700;
}

.member-record-tabs button.is-active {
  border-bottom-color: #df7227;
  color: #d7631d;
}

.report-period-tabs {
  min-height: 44px;
  border: 1px solid #eadfcd;
  background: #faf6ef;
}

.report-period-tabs button {
  border-bottom-width: 3px;
  background: transparent;
  color: #725f48;
  font-size: 15px;
}

.report-period-tabs button.is-active {
  border-bottom-color: #df7227;
  color: #c95817;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #eadfcd;
  background: #faf6ef;
}

.report-summary div {
  display: grid;
  min-height: 76px;
  place-content: center;
  gap: 5px;
  text-align: center;
}

.report-summary div + div {
  border-left: 1px solid #ded0ba;
}

.report-summary span,
.report-row small {
  color: #796a58;
  font-size: 12px;
}

.report-summary strong {
  font-size: 22px;
}

.report-list {
  display: grid;
}

.report-row {
  display: grid;
  min-height: 72px;
  align-items: center;
  grid-template-columns: minmax(95px, 1.2fr) repeat(4, minmax(72px, 1fr));
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding: 10px 4px;
}

.report-row > span {
  display: grid;
  gap: 4px;
}

.report-positive {
  color: #d7631d;
}

.report-negative {
  color: #218556;
}

.report-zero {
  color: #555;
}

.order-summary {
  margin: 0 0 4px;
  border-bottom: 1px solid #ed6a50;
  padding: 10px 12px;
  background: #fff5a6;
  color: #333;
  font-size: 13px;
}

.order-summary b {
  margin-right: 8px;
  color: #d22e23;
}

.record-win { color: #e33525; }
.record-loss { color: #2f871e; }

.order-result-view {
  min-height: calc(100vh - 38px);
  padding: 0 0 74px;
  background: #fff;
}

.order-live-header {
  border-bottom: 1px solid #eee;
}

.order-live-header .last-result,
.order-live-header .round-row {
  padding-right: 16px;
  padding-left: 16px;
}

.order-live-header .round-row {
  grid-template-columns: auto auto 1fr auto;
}

.order-status-notice {
  position: fixed;
  z-index: 35;
}

.order-round-timeline {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px 16px 22px;
}

.order-system-message {
  width: max-content;
  max-width: 100%;
  margin: 0;
  border-radius: 24px;
  padding: 9px 20px;
  background: #f6f6f6;
  color: #3d352e;
  text-align: center;
}

.order-system-message span {
  margin-right: 4px;
  font-weight: 800;
}

.order-system-message.is-open span { color: #76e86b; }
.order-system-message.is-closed span { color: #ef7a68; }

.order-round-status {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  border-radius: 22px;
  padding: 9px 20px;
  background: #f6f6f6;
  color: #3d352e;
  text-align: center;
}

.order-round-status span {
  margin-right: 4px;
  color: #4cc8a5;
  font-weight: 800;
}

.order-result-list {
  display: grid;
  gap: 18px;
  padding: 0 18px 24px;
}

.order-empty {
  margin: 24px 0;
  color: #777;
  text-align: center;
}

.order-result-view > .back-orange {
  position: fixed;
  right: max(18px, calc((100vw - 760px) / 2 + 18px));
  bottom: 8px;
  left: max(18px, calc((100vw - 760px) / 2 + 18px));
  z-index: 20;
}

.order-result-list article {
  display: grid;
  align-items: start;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.order-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid #eee;
  border-radius: 50%;
  color: #918a80;
  font-weight: 800;
}

.order-result-list article > div:last-child {
  position: relative;
  display: grid;
  gap: 4px;
}

.order-result-list time {
  position: absolute;
  top: 0;
  right: 0;
  color: #777;
  font-size: 11px;
}

.order-result-list p {
  display: grid;
  min-height: 50px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  margin: 0;
  padding: 8px 12px;
  background: #ebd887;
}

.order-result-list p b {
  font-size: 24px;
  font-weight: 500;
}

.order-result-list p em {
  font-style: normal;
  font-size: 20px;
}

.history-page-view {
  min-height: calc(100vh - 38px);
  background: #f4f4f4;
}

.history-filter-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #ed6a50;
  padding: 10px 12px;
  background: #fff;
}

.history-filter-tabs button {
  border: 0;
  border-radius: 5px;
  padding: 6px 12px;
  background: transparent;
  color: #222;
  font-size: 16px;
}

.history-filter-tabs button.is-active {
  background: #ed5a4e;
  color: #fff;
}

.draw-history-list {
  display: grid;
  padding: 8px 12px 60px;
}

.draw-history-list article {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #ddd;
  padding: 9px 0;
}

.draw-history-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #73593e;
}

.draw-history-list time {
  color: #999;
  font-weight: 400;
}

.draw-history-list p {
  display: flex;
  gap: 5px;
  margin: 0;
}

.draw-history-list p span,
.draw-history-list p i,
.history-result-tag {
  border-radius: 2px;
  padding: 2px 8px;
  background: #eee;
  color: #49382b;
  font-style: normal;
  font-weight: 500;
}

.draw-history-list p i { background: #d9b654; color: #fff; }

.fund-flow-list,
.simple-money-list {
  display: grid;
}

.fund-flow-row,
.simple-money-list article {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #ddd;
  padding: 10px 4px;
}

.fund-flow-row > div,
.simple-money-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fund-flow-row p,
.simple-money-list p {
  margin: 0;
  color: #999;
  font-size: 12px;
}

.fund-flow-row time,
.simple-money-list time { color: #999; font-size: 12px; }
.flow-positive { color: #e42c20; }
.flow-negative { color: #2f9f2b; }

.account-hub-view {
  min-height: calc(100vh - 38px);
  padding-bottom: 62px;
  background:
    radial-gradient(circle at 52% 10%, rgba(38, 80, 151, 0.3), transparent 38%),
    linear-gradient(150deg, #050914, #121a35 62%, #070b18);
  color: #fff;
}

.account-hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 16px;
  grid-template-columns: 78px minmax(0, 1fr) 38px;
  margin: 14px 12px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(7, 10, 20, 0.94), rgba(27, 34, 57, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(72, 96, 153, 0.24), transparent 42%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.account-avatar {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(225, 187, 91, 0.76);
  background: linear-gradient(145deg, #fff7df, #d8c08e);
  color: #9d2721;
  box-shadow: 0 0 20px rgba(228, 190, 95, 0.2);
  font-size: 30px;
  font-weight: 800;
}

.avatar-settings {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(181, 139, 57, 0.34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 250, 238, 0.96), rgba(239, 222, 187, 0.72));
}

.avatar-settings-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.avatar-settings-heading h3,
.avatar-settings-heading span,
.avatar-save-status { margin: 0; }

.avatar-settings-heading span,
.avatar-save-status { color: #7c6746; font-size: 13px; }

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

.avatar-choice {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #e7d4aa;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.avatar-choice img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-choice:hover { transform: translateY(-2px); border-color: #c99a3d; }
.avatar-choice.is-selected { border-color: #a8171c; box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.32), 0 8px 18px rgba(117, 72, 24, 0.18); }
.avatar-choice.is-selected::after { position: absolute; right: 1px; bottom: 1px; display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #fff7e7; border-radius: 50%; background: #a8171c; color: white; content: "✓"; font-size: 13px; font-weight: 800; }
.avatar-save-status { min-height: 18px; text-align: center; }

.account-hero > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.28;
}

.account-hero > div:nth-child(2) > strong,
.account-hero > div:nth-child(2) > span:nth-child(2) {
  color: #f1cf62;
  font-weight: 600;
}

.account-hero > div:nth-child(2) > span:nth-child(3) {
  color: #cdbce7;
}

.account-hero > div:nth-child(2) > span:nth-child(4) {
  color: #fff;
  font-weight: 800;
}

.account-hero > div:nth-child(2) b {
  color: inherit;
  font-weight: inherit;
}

.account-settings-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
}

.account-hub-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.account-links {
  min-width: 0;
  grid-column: 1 / -1;
  border-radius: 0 28px 28px 0;
  padding: 18px;
  background: linear-gradient(135deg, #5d15dc, #522196);
}

.account-links h2 { margin: 0 0 18px; }

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

.account-link-grid button,
.account-promo {
  min-width: 0;
  min-height: 45px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-weight: 700;
}

.account-link-grid button {
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.account-link-grid button:hover,
.account-link-grid button:focus-visible {
  background: #ef7a29;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 219, 151, 0.72);
  outline: none;
}

.account-link-grid button:active {
  transform: translateY(1px);
}

.account-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  min-height: clamp(180px, 30vw, 420px);
  padding: clamp(14px, 2vw, 24px);
  background-color: #397f82;
  background-image: linear-gradient(180deg, rgba(5, 17, 30, 0.08), rgba(5, 17, 30, 0.02)), url("/assets/member-support.webp");
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-size: clamp(13px, 2vw, 22px);
  text-align: left;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.account-promo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 10, 22, 0.52) 0, rgba(3, 10, 22, 0.08) 34%, transparent 58%);
  content: "";
  pointer-events: none;
}

.account-promo span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  line-height: 1.25;
  text-wrap: balance;
}

.account-promo.deposit {
  background-color: #576783;
  background-image: linear-gradient(180deg, rgba(5, 12, 28, 0.08), rgba(5, 12, 28, 0.02)), url("/assets/member-deposit.webp");
}

.account-promo.withdraw {
  background-color: #805352;
  background-image: linear-gradient(180deg, rgba(31, 7, 7, 0.08), rgba(31, 7, 7, 0.02)), url("/assets/member-withdraw.webp");
}

.account-promo:hover,
.account-promo:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(255, 237, 197, 0.88), 0 0 28px rgba(255, 221, 158, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.account-promo:active {
  transform: translateY(0);
}

.profile-summary,
.settings-menu,
.password-form {
  margin: 12px;
}

.profile-summary > div {
  display: grid;
}

.profile-summary p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  margin: 0;
  padding: 12px 0;
}

.settings-menu,
.password-form { display: grid; gap: 10px; }

.settings-menu button,
.password-form input {
  min-height: 46px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
}

.bet-confirm-card { gap: 20px; padding: 22px; }
.bet-confirm-card p { padding: 18px 0; border-top: 1px solid #eee; }
.dialog-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.dialog-actions button { min-height: 42px; }

@media (max-width: 680px) {
  .account-hero {
    gap: 10px;
    grid-template-columns: 62px minmax(0, 1fr) 30px;
    margin: 8px 7px 0;
    padding: 14px 12px;
    border-radius: 14px;
  }
  .account-avatar { width: 56px; height: 56px; font-size: 24px; }
  .avatar-settings { padding: 16px 12px; }
  .avatar-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .account-hero > div:nth-child(2) { font-size: clamp(13px, 4vw, 16px); }
  .account-hub-grid { gap: 7px; padding: 10px; }
  .account-links { border-radius: 0 18px 18px 0; }
  .account-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-promo {
    min-height: 155px;
    padding: 10px 7px;
    background-position: center 46%;
    font-size: clamp(11px, 3.1vw, 14px);
  }
  .order-result-list time { position: static; }
  .order-result-list p { grid-template-columns: auto 1fr; }
  .order-result-list p em { grid-column: 1 / -1; }
}

.record-row {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.record-row span,
.record-row time {
  color: #666;
  font-size: 12px;
}

.stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.stat-grid div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f6f6f6;
}

.stat-grid span {
  color: #777;
  font-size: 12px;
}

.mobile-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ddd;
  background: #fff;
}

.mobile-tabbar button {
  display: grid;
  min-height: 50px;
  align-content: center;
  gap: 2px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #555;
}

.mobile-tabbar .portal-nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.mobile-tabbar span {
  font-size: 11px;
}

.mobile-tabbar button.is-active {
  color: var(--orange);
}

dialog {
  width: min(420px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 10px;
  border-radius: 6px;
  padding: 18px;
  background: #fff;
}

.dialog-card h2,
.dialog-card p {
  margin: 0;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.admin-app.is-visible {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #172033;
  color: #fff;
}

.admin-brand {
  padding: 8px 4px 14px;
  font-size: 20px;
}

.admin-nav-group {
  margin-top: 8px;
  color: #8fa2c8;
  font-size: 12px;
}

.admin-sidebar button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar button.is-active {
  border-color: #df4b36;
  background: #bf2b21;
}

.admin-main {
  padding: 12px;
  min-width: 0;
  background: #f2f3f5;
}

.admin-login {
  width: min(430px, 100%);
  margin: 60px auto;
}

#adminContent {
  display: none;
  gap: 12px;
}

#adminContent.is-visible {
  display: grid;
}

.admin-topbar,
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-topbar {
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 2px solid #bd2c21;
  background: #fff;
}

.admin-topbar div {
  display: grid;
  gap: 2px;
}

.admin-topbar span {
  color: #777;
  font-size: 12px;
}

.admin-workspace {
  min-width: 0;
}

.admin-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe2e7;
}

.admin-panel-head {
  min-height: 50px;
  padding: 8px 12px;
  border-bottom: 1px solid #e1e3e8;
  flex-wrap: wrap;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.admin-panel-head input,
.admin-panel-head select,
.admin-panel-head button {
  min-height: 32px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 9px 10px;
  border-right: 1px solid #e4e6ea;
  border-bottom: 1px solid #e4e6ea;
  text-align: left;
}

.admin-data-table th {
  background: #f3f4f6;
  color: #444;
}

.admin-data-table tbody tr:hover {
  background: #fff8f6;
}

.admin-data-table button {
  min-height: 28px;
  border: 1px solid #c9cdd4;
  background: #fff;
  color: #333;
}

.admin-data-table button:hover:not(:disabled) {
  border-color: #bd2c21;
  color: #bd2c21;
}

.admin-actions {
  display: flex;
  gap: 5px;
}

.admin-number {
  width: 76px;
  min-height: 28px;
}

.admin-settings-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  padding: 18px;
}

.admin-settings-form label {
  display: grid;
  gap: 6px;
}

.admin-settings-form input,
.admin-settings-form select {
  min-height: 38px;
}

.admin-settings-form .admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-settings-form .admin-check input {
  min-height: auto;
}

.admin-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff;
}

.admin-table {
  display: grid;
  gap: 6px;
}

.admin-row {
  display: grid;
  align-items: center;
  gap: 7px;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 0.8fr 0.8fr auto auto;
  padding: 8px;
  border: 1px solid #eee;
}

.admin-row span {
  color: #555;
  font-size: 12px;
}

.admin-row input {
  min-height: 30px;
}

@media (max-width: 780px) {
  .back-orange {
    bottom: 56px;
    z-index: 21;
  }

  .mobile-tabbar.is-visible {
    display: grid;
  }

  .portal-page,
  .public-results-page,
  .support-page,
  .member-app {
    padding-bottom: 50px;
  }

  .portal-header-main {
    width: calc(100% - 24px);
    min-height: 88px;
  }

  .portal-logo {
    width: 165px;
    height: 58px;
  }

  .portal-auth-actions button {
    min-height: 34px;
    padding: 5px 11px;
    font-size: 12px;
  }

  .portal-nav {
    min-height: 46px;
    gap: 0;
  }

  .portal-nav button {
    min-width: 0;
    flex: 1;
    gap: 4px;
    padding: 0 5px;
    font-size: 12px;
  }

  .portal-main {
    width: 100%;
    padding: 0 0 36px;
  }

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

  .portal-carousel,
  .portal-carousel img {
    min-height: 245px;
  }

  .portal-slide-copy {
    bottom: 38px;
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .portal-slide-copy strong {
    font-size: 25px;
  }

  .portal-dots {
    bottom: 14px;
    left: 20px;
  }

  .portal-account {
    min-height: auto;
    grid-template-columns: 72px 1fr;
    justify-items: stretch;
    gap: 10px 16px;
    padding: 18px 20px;
  }

  .portal-avatar {
    grid-row: 1 / 3;
    width: 68px;
    height: 68px;
  }

  .portal-account > p,
  .portal-account-total {
    justify-self: stretch;
    justify-items: start;
  }

  .portal-account-identity strong {
    max-width: calc(100vw - 180px);
  }

  .portal-account-total strong {
    font-size: 20px;
  }

  .portal-account-stats,
  .portal-wallet-actions {
    grid-column: 1 / -1;
  }

  .portal-games-section {
    padding: 30px 14px 0;
  }

  .portal-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portal-game-card {
    min-height: 184px;
    grid-template-columns: 1fr;
    grid-template-rows: 105px 1fr;
  }

  .portal-game-card > span {
    grid-row: 2;
    gap: 4px;
    padding: 12px;
  }

  .portal-game-card img {
    grid-row: 1;
  }

  .portal-game-card strong {
    font-size: 14px;
  }

  .portal-game-card em {
    font-size: 10px;
  }

  .portal-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 20px;
  }

  .portal-footer p {
    grid-column: auto;
  }

  .results-main {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .public-results-grid {
    grid-template-columns: 1fr;
  }

  .public-result-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .public-result-row time {
    display: none;
  }

  .support-page {
    padding-bottom: 0;
  }

  .support-main {
    min-height: calc(100vh - 58px);
    padding: 0;
  }

  .support-chat-shell {
    height: calc(100vh - 58px);
    min-height: 460px;
    border: 0;
    border-radius: 0;
  }

  .support-message {
    max-width: 88%;
  }

  .phone-page {
    width: 100%;
  }

  .bet-table-wrap {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .admin-app.is-visible {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-template-columns: repeat(14, max-content);
    overflow-x: auto;
  }

  .admin-nav-group,
  .admin-brand {
    display: none;
  }

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

@media (max-width: 520px) {
  .portal-header-main {
    min-height: 88px;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .portal-logo {
    top: 50%;
    left: calc(50% - 16px);
    width: min(145px, calc(100% - 205px));
    height: 51px;
    transform: translate(-50%, -50%);
  }

  .portal-auth-actions {
    position: absolute;
    top: calc(50% + 10px);
    right: -2px;
    gap: 6px;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .portal-auth-actions button {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .portal-nav button .portal-nav-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .portal-carousel,
  .portal-carousel img {
    min-height: 220px;
  }

  .portal-slide-copy p {
    font-size: 12px;
  }

  .play-tabs button {
    font-size: 28px;
  }

  .bet-table-wrap {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .odds-row.nums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .back-orange {
    right: 48px;
    left: 48px;
  }

  .member-record-tabs button {
    font-size: 15px;
  }

  .report-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
    padding: 14px 4px;
  }

  .report-row > strong {
    grid-column: 1 / -1;
    font-size: 16px;
  }
}

.admin-content-settings { grid-column: 1 / -1; padding: 18px; border: 1px solid #d8dde5; background: #fafbfd; }
.admin-content-settings h3 { margin: 0 0 12px; }
.announcement-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* Bright Flowing Gold homepage preview */
.portal-page {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: #ead4aa;
}

.portal-page::before,
.portal-page::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.portal-page::before {
  inset: 0;
  background: #ead4aa url("/assets/champagne-racetrack-bg-v1.png?v=2") center top / 100% auto repeat-y;
  opacity: 1;
  animation: racing-number-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

.portal-page::after {
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 250, 226, 0.08) 25%, rgba(255, 240, 184, 0.42) 52%, rgba(255, 252, 236, 0.1) 72%, transparent 100%);
  filter: blur(18px);
  opacity: 0.72;
  animation: racing-track-sweep 12s ease-in-out infinite;
  will-change: transform, opacity;
}

.portal-page > .portal-header,
.portal-page > .portal-main,
.portal-page > .portal-footer {
  position: relative;
  z-index: 1;
}

.portal-page > .portal-header {
  position: relative;
  z-index: 5;
}

.portal-racing-car {
  position: absolute;
  z-index: 0;
  width: clamp(100px, 10vw, 154px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(111, 76, 16, 0.18));
  will-change: transform;
}

.portal-racing-car-left {
  top: clamp(520px, 43vw, 620px);
  bottom: auto;
  left: clamp(-34px, -1vw, -12px);
  animation: racing-car-float-left 9s ease-in-out infinite alternate;
}

.portal-racing-car-right {
  top: clamp(520px, 43vw, 620px);
  right: clamp(-34px, -1vw, -12px);
  bottom: auto;
  animation: racing-car-float-right 10s ease-in-out infinite alternate;
}

.portal-lucky28-ball {
  position: absolute;
  z-index: 2;
  width: clamp(74px, 7vw, 104px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 7px 14px rgba(163, 125, 49, 0.12));
  animation: racing-ball-float 11s ease-in-out infinite alternate;
  will-change: transform;
}

.portal-lucky28-ball-left {
  top: 216px;
  left: clamp(-24px, -1vw, -8px);
}

.portal-lucky28-ball-right {
  top: 410px;
  right: clamp(-24px, -1vw, -8px);
  animation-delay: -4s;
}

.portal-page .portal-header,
.portal-page .portal-footer {
  background: rgba(242, 228, 199, 0.48);
  backdrop-filter: blur(5px);
}

/* Pearl-champagne header with a restrained 10-second logo meteor loop. */
.portal-page .portal-header {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #f7ecd6 0%, #fffaf0 42%, #f4e5ca 100%);
}

.portal-page .portal-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 32%, rgba(255, 255, 255, 0.98), transparent 43%), linear-gradient(120deg, transparent 8%, rgba(229, 191, 104, 0.18) 30%, transparent 47%, transparent 62%, rgba(229, 191, 104, 0.16) 82%, transparent 96%);
  content: "";
}

.portal-logo::before,
.portal-logo::after {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(204, 158, 65, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 222, 135, 0.18), inset 0 0 18px rgba(255, 250, 220, 0.52);
  opacity: 0;
  pointer-events: none;
  content: "";
  animation: logo-meteor-orbit 10s ease-in-out infinite;
}

.portal-logo::after {
  inset: -4px -54px;
  border-width: 2px 0 0;
  border-radius: 50%;
  filter: blur(1px);
  animation-delay: 0.28s;
}

@keyframes logo-meteor-orbit {
  0%, 72%, 100% { transform: rotate(-18deg) scale(0.94); opacity: 0; }
  76% { opacity: 0.15; }
  82% { transform: rotate(18deg) scale(1.03); opacity: 0.95; }
  88% { opacity: 0; }
}

.portal-header-main::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(520px, 52vw);
  height: 78px;
  transform: translate(-160%, -50%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 223, 143, 0.15) 28%, rgba(255, 248, 220, 0.72) 50%, rgba(205, 154, 61, 0.18) 72%, transparent);
  filter: blur(12px);
  pointer-events: none;
  content: "";
  animation: champagne-logo-sweep 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.portal-logo,
.portal-auth-actions {
  z-index: 1;
}

.portal-games-section {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portal-games-section::before {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: -42%;
  z-index: 2;
  width: 25%;
  transform: skewX(-14deg);
  background: linear-gradient(100deg, transparent, rgba(255, 244, 205, 0.54), transparent);
  opacity: 0;
  pointer-events: none;
  content: "";
  animation: champagne-games-sweep 12s ease-in-out infinite;
  will-change: transform, opacity;
}

.portal-game-card {
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-game-card:hover,
.portal-game-card:focus-visible {
  border-color: #c99a3d;
  box-shadow: 0 10px 26px rgba(123, 82, 16, 0.16), 0 0 0 1px rgba(255, 231, 165, 0.45);
  transform: translateY(-2px);
}

@keyframes racing-number-drift {
  from { transform: translate3d(-0.8%, -0.2%, 0) scale(1.018); opacity: 0.88; }
  to { transform: translate3d(0.8%, 0.2%, 0) scale(1.042); opacity: 0.98; }
}

@keyframes racing-track-sweep {
  0%, 14% { transform: translate3d(0, 0, 0) skewX(-15deg); opacity: 0; }
  24% { opacity: 0.68; }
  58%, 100% { transform: translate3d(430%, 0, 0) skewX(-15deg); opacity: 0; }
}

@keyframes racing-car-float-left {
  from { transform: rotate(-5deg) translate3d(0, 0, 0); }
  to { transform: rotate(-2deg) translate3d(7px, 3px, 0); }
}

@keyframes racing-car-float-right {
  from { transform: scaleX(-1) rotate(-4deg) translate3d(0, 0, 0); }
  to { transform: scaleX(-1) rotate(-1deg) translate3d(7px, 3px, 0); }
}

@keyframes racing-ball-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -5px, 0); }
}

@keyframes champagne-logo-sweep {
  0%, 30% { transform: translate(-160%, -50%) skewX(-18deg); opacity: 0; }
  40% { opacity: 0.8; }
  68%, 100% { transform: translate(60%, -50%) skewX(-18deg); opacity: 0; }
}

@keyframes champagne-games-sweep {
  0%, 34% { transform: translate3d(0, 0, 0) skewX(-14deg); opacity: 0; }
  42% { opacity: 0.68; }
  68%, 100% { transform: translate3d(570%, 0, 0) skewX(-14deg); opacity: 0; }
}

@media (max-width: 780px) {
  .portal-page {
    overflow-x: clip;
  }

  .portal-racing-car,
  .portal-lucky28-ball {
    display: none;
  }

  .portal-page::before {
    inset: -2% -12%;
    background-size: 100% auto;
    opacity: 0.82;
    animation-duration: 40s;
  }

  .portal-page::after,
  .portal-games-section::before {
    filter: none;
    opacity: 0.38;
  }

  .portal-header-main::after {
    width: 250px;
    height: 54px;
    filter: blur(7px);
  }

  .portal-nav button {
    overflow: hidden;
    white-space: nowrap;
  }

  .portal-slide-copy,
  .portal-slide-copy strong,
  .portal-slide-copy p {
    min-width: 0;
    max-width: calc(100vw - 40px);
    overflow-wrap: anywhere;
  }

  .portal-wallet-actions button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .portal-game-card > span,
  .portal-game-card img {
    min-width: 0;
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-page::before,
  .portal-page::after,
  .portal-header-main::after,
  .portal-games-section::before,
  .portal-racing-car,
  .portal-lucky28-ball {
    animation: none !important;
  }

  .portal-page::before {
    transform: none;
  }

  .portal-page::after,
  .portal-header-main::after,
  .portal-games-section::before {
    display: none;
  }

  .portal-game-card {
    transition: none;
  }
}
.announcement-locale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.announcement-locale-grid section { display: grid; gap: 8px; }
.announcement-locale-grid h4 { margin: 0; }
.announcement-locale-field, .notice-locale-grid label { display: grid; gap: 5px; color: #485260; font-size: 13px; }
.announcement-locale-field input, .announcement-locale-field textarea, .notice-locale-grid input { width: 100%; box-sizing: border-box; }
.announcement-editor-card { margin: 14px 0 0; padding: 14px; border: 1px solid #ccd4df; background: #fff; }
.announcement-editor-card legend { padding: 0 7px; font-weight: 700; }
.announcement-card-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.announcement-card-toolbar > label:not(.admin-check) { display: flex; align-items: center; gap: 6px; }
.announcement-card-toolbar input[type="number"] { width: 72px; }
.plain-btn.small { min-height: 30px; padding: 4px 8px; font-size: 13px; }
.plain-btn.danger { color: #b72f25; }

@media (max-width: 720px) {
  .announcement-locale-grid { grid-template-columns: 1fr; }
  .announcement-section-heading { align-items: flex-start; flex-direction: column; }
}

/* Champagne member experience — matched to the homepage */
.member-app,
.public-results-page,
.support-page {
  --champagne-ivory: #f4ead4;
  --champagne-card: #fbf5e9;
  --champagne-sand: #d8c6a5;
  --champagne-gold: #c99a3d;
  --champagne-caramel: #bfa071;
  --champagne-wine: #a8171c;
  --champagne-ink: #30281e;
  background-color: #ead4aa;
  background-image: url("/assets/champagne-stardust-bg-v1.png?v=1");
  background-position: center top;
  background-size: cover;
  color: var(--champagne-ink);
}

.member-app:has(#roomsView.is-visible),
.member-app:has(#accountView.is-visible),
.member-app:has(#playView.is-visible) {
  background-color: #fff;
  background-image: none;
}

.member-app .phone-page {
  background: rgba(244, 234, 212, 0.94);
  box-shadow: 0 0 0 1px rgba(153, 116, 48, 0.16), 0 18px 46px rgba(99, 69, 24, 0.12);
}

.member-app .mobile-title,
.results-header,
.support-header {
  border-bottom: 1px solid rgba(164, 121, 43, 0.42);
  background: rgba(249, 240, 220, 0.94);
  color: var(--champagne-ink);
  box-shadow: 0 2px 10px rgba(104, 74, 24, 0.06);
}

.member-app .mobile-title strong,
.results-header strong,
.support-header strong {
  color: var(--champagne-ink);
}

.member-app .icon-btn,
.member-app .title-icons .icon-btn,
.results-header button,
.support-header button,
.support-header > span {
  color: #a43a25;
}

/* Header quick actions use the same high-contrast wine-red line style as the homepage navigation. */
.member-app .title-icons .icon-btn,
.member-app .title-icons .home-icon-btn {
  color: #a43a25;
}

.member-app .title-icons .home-icon-btn img,
.member-app .title-icons .member-profile-btn img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(58%) saturate(1532%) hue-rotate(336deg) brightness(90%) contrast(89%);
}

.member-app .title-icons .icon-btn:hover,
.member-app .title-icons .icon-btn:focus-visible {
  filter: drop-shadow(0 0 5px rgba(164, 58, 37, 0.38));
}

/* Keep quick-action labels above the view beneath the title bar. */
.member-app .mobile-title {
  position: relative;
  z-index: 50;
  overflow: visible;
}

.member-app .title-icons {
  position: relative;
  z-index: 51;
}

.member-app .title-icons .icon-btn:hover,
.member-app .title-icons .icon-btn:focus-visible {
  z-index: 52;
}

.member-app .title-icons .title-icon-tooltip {
  z-index: 53;
  background: #30281e;
  color: #fffaf0;
  border-color: rgba(164, 58, 37, 0.72);
  box-shadow: 0 5px 14px rgba(48, 40, 30, 0.28);
}

.member-app .title-icons .game-lobby-icon-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.member-app .title-icons .game-lobby-icon-btn .portal-nav-icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Login and registration use the same champagne background system as member pages. */
.auth-phone {
  background-color: #f4ead4;
  background-image:
    linear-gradient(rgba(244, 234, 212, 0.64), rgba(244, 234, 212, 0.86)),
    url("/assets/champagne-stardust-bg-v1.png?v=1");
  background-position: center top;
  background-size: cover;
  color: #30281e;
}

.auth-phone .mobile-title {
  border-bottom: 1px solid rgba(164, 121, 43, 0.42);
  background: rgba(249, 240, 220, 0.94);
  color: #30281e;
  box-shadow: 0 2px 10px rgba(104, 74, 24, 0.06);
}

.auth-phone .auth-tabs {
  border-bottom-color: rgba(164, 121, 43, 0.36);
}

.auth-phone .auth-tabs button {
  color: #5b4931;
}

.auth-phone .auth-tabs button.is-active {
  border-color: #a8171c;
  color: #a8171c;
}

.auth-phone .field-tip,
.auth-phone .muted {
  color: #786548;
}

.auth-phone .agree-row {
  color: #493d2c;
}

.auth-phone .orange-btn {
  border-color: #a8171c;
  background: #a8171c;
  box-shadow: 0 5px 14px rgba(168, 23, 28, 0.16);
}

/* Support-page shortcuts replace the old text-only service label. */
.support-header {
  grid-template-columns: 74px 1fr auto;
  position: relative;
  z-index: 50;
  overflow: visible;
}

.support-quick-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 51;
}

.support-quick-action {
  display: grid;
  width: 38px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #a43a25;
  position: relative;
}

.support-quick-action > img,
.support-quick-action > svg {
  display: block;
  width: 22px;
  height: 22px;
}

.support-quick-action > img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(58%) saturate(1532%) hue-rotate(336deg) brightness(90%) contrast(89%);
}

.support-lobby-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.support-lobby-action .portal-nav-icon-fill {
  fill: currentColor;
  stroke: none;
}

.support-title-tooltip {
  position: absolute;
  top: calc(100% + 5px);
  right: 50%;
  z-index: 53;
  padding: 4px 7px;
  border: 1px solid rgba(164, 58, 37, 0.72);
  border-radius: 4px;
  background: #30281e;
  box-shadow: 0 5px 14px rgba(48, 40, 30, 0.28);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(50%, -3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.support-quick-action:hover,
.support-quick-action:focus-visible {
  filter: drop-shadow(0 0 5px rgba(164, 58, 37, 0.38));
  z-index: 52;
}

.support-quick-action:hover .support-title-tooltip,
.support-quick-action:focus-visible .support-title-tooltip {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 520px) {
  .support-agent-avatar.is-brand-logo {
    width: 126px;
    height: 46px;
    flex-basis: 126px;
  }
}

/* The game lobby expands on desktop instead of inheriting the narrow mobile member shell. */
@media (min-width: 961px) {
  .member-app .phone-page:has(#gamesView.is-visible) {
    width: min(1380px, calc(100vw - 88px));
  }

  .member-app #gamesView .game-list {
    gap: 16px;
    padding: 16px;
  }

  .member-app #gamesView .game-card {
    height: 286px;
    grid-template-rows: 202px minmax(0, 1fr);
    border-radius: 10px;
  }

  .member-app #gamesView .game-card-copy {
    gap: 7px;
    padding: 14px 16px;
  }

  .member-app #gamesView .game-card strong {
    font-size: 20px;
  }

  .member-app #gamesView .game-card em {
    font-size: 13px;
  }
}

.member-app #gamesView,
.member-app #roomsView,
.member-app #playView,
.member-app .account-hub-view {
  min-height: calc(100vh - 38px);
  background-color: rgba(244, 234, 212, 0.82);
  background-image: url("/assets/champagne-stardust-bg-v1.png?v=1");
  background-position: center top;
  background-size: cover;
}

.member-app .game-card {
  border-color: rgba(170, 128, 54, 0.46);
  background: rgba(251, 245, 233, 0.96);
  box-shadow: 0 5px 16px rgba(105, 74, 24, 0.08);
}

.member-app .game-card-copy,
.member-app .game-card strong {
  color: var(--champagne-ink);
}

.member-app .game-card em {
  color: #7b6b54;
}

.member-app .game-card:hover,
.member-app .game-card:focus-visible {
  border-color: var(--champagne-gold);
  background: #fffaf0;
  box-shadow: 0 9px 24px rgba(112, 76, 19, 0.16);
}

.member-app .room-card {
  border-color: rgba(167, 124, 46, 0.5);
  background: var(--champagne-card);
  box-shadow: 0 6px 18px rgba(93, 62, 18, 0.1);
}

.member-app .room-card p,
.member-app .room-card:hover p,
.member-app .room-card:focus-visible p,
.member-app .room-card:active p {
  background: linear-gradient(90deg, #ead9b8, #d8c6a5);
  color: #5b421e;
  text-shadow: none;
}

.member-app .room-card p::before {
  background: var(--champagne-gold);
  box-shadow: 0 0 8px rgba(201, 154, 61, 0.36);
}

.member-app .account-hub-view {
  color: var(--champagne-ink);
}

.member-app .account-hero {
  border-color: rgba(170, 128, 54, 0.38);
  background: rgba(251, 245, 233, 0.92);
  box-shadow: 0 9px 24px rgba(93, 62, 18, 0.11);
}

.member-app .account-hero > div:nth-child(2) > strong,
.member-app .account-hero > div:nth-child(2) > span:nth-child(2) {
  color: var(--champagne-wine);
}

.member-app .account-hero > div:nth-child(2) > span:nth-child(3) {
  color: #735e3d;
}

.member-app .account-hero > div:nth-child(2) > span:nth-child(4) {
  color: var(--champagne-ink);
}

.member-app .account-settings-btn {
  color: #8c641e;
}

.member-app .account-links {
  border: 1px solid rgba(164, 121, 43, 0.34);
  border-radius: 18px;
  background: rgba(216, 198, 165, 0.9);
}

.member-app .account-link-grid button {
  border: 1px solid rgba(170, 128, 54, 0.34);
  background: #fffaf0;
  color: var(--champagne-ink);
}

.member-app .account-link-grid button:hover,
.member-app .account-link-grid button:focus-visible {
  background: var(--champagne-wine);
  color: #fffaf0;
  box-shadow: 0 0 18px rgba(168, 23, 28, 0.22);
}

.member-app .account-promo {
  border: 1px solid rgba(170, 128, 54, 0.44);
  box-shadow: 0 6px 18px rgba(93, 62, 18, 0.1);
}

.member-app .account-promo:hover,
.member-app .account-promo:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 237, 197, 0.72), 0 10px 24px rgba(112, 76, 19, 0.18);
}

.member-app .last-result {
  background: rgba(244, 234, 212, 0.82);
}

.member-app .round-row,
.member-app .history-panel {
  border-color: rgba(170, 128, 54, 0.28);
  background: rgba(255, 250, 240, 0.95);
}

.member-app .round-row b {
  background: var(--champagne-wine);
}

.member-app .round-row button,
.member-app .result-line > span,
.member-app .round-row > span,
.member-app .balance-mini {
  color: var(--champagne-wine);
}

.member-app .bet-table-wrap {
  --line: #cbb990;
  --cell: #fbf5e9;
  --head: #d8c6a5;
  background: #e8ddc9;
}

.member-app .play-tabs button {
  background: #e8ddc9;
  color: #574a39;
}

.member-app .play-tabs button.is-active {
  background: #b9842f;
  color: #fffaf0;
}

.member-app .odds-cell {
  background: var(--cell);
  color: var(--champagne-ink);
}

.member-app .odds-cell.is-selected {
  background: #f3dfb7;
  outline-color: var(--champagne-wine);
}

.member-app .odds-cell.is-locked {
  background: #e7decd;
}

.public-results-page {
  color: var(--champagne-ink);
}

.results-intro span {
  color: #976b1f;
}

.results-intro h1 {
  color: var(--champagne-ink);
}

.results-intro p {
  color: #77684f;
}

.public-result-card {
  border-color: rgba(164, 121, 43, 0.38);
  background: rgba(251, 245, 233, 0.96);
  color: var(--champagne-ink);
  box-shadow: 0 7px 22px rgba(97, 65, 17, 0.1);
}

.public-result-card > header {
  border-bottom: 1px solid rgba(164, 121, 43, 0.32);
  background: #eee1c8;
  color: var(--champagne-ink);
}

.public-result-card header span {
  color: #91691f;
}

.public-result-row {
  border-color: rgba(164, 121, 43, 0.22);
  background: rgba(255, 250, 240, 0.82);
}

.support-page {
  color: var(--champagne-ink);
}

.support-chat-shell {
  border-color: rgba(164, 121, 43, 0.34);
  background: rgba(251, 245, 233, 0.96);
  box-shadow: 0 10px 30px rgba(97, 65, 17, 0.12);
}

.support-agent,
.support-composer {
  border-color: rgba(164, 121, 43, 0.22);
  background: rgba(255, 250, 240, 0.96);
}

.support-messages {
  background-color: rgba(244, 234, 212, 0.84);
  background-image: url("/assets/champagne-stardust-bg-v1.png?v=1");
  background-size: cover;
}

.support-bubble,
.support-welcome-card {
  border: 1px solid rgba(164, 121, 43, 0.3);
  background: #fffaf0;
}

.support-message-player .support-bubble,
.support-composer button {
  background: var(--champagne-wine);
  color: #fffaf0;
}

.support-composer textarea {
  border-color: rgba(164, 121, 43, 0.38);
  background: #fffdf7;
  color: var(--champagne-ink);
}

.support-composer textarea:focus {
  border-color: var(--champagne-gold);
}

.mobile-tabbar {
  border-top-color: rgba(164, 121, 43, 0.32);
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 -4px 16px rgba(98, 65, 16, 0.08);
}

.mobile-tabbar button {
  color: #6b604f;
}

.mobile-tabbar button.is-active {
  color: var(--champagne-wine);
}

@media (max-width: 780px) {
  .member-app,
  .public-results-page,
  .support-page {
    background-size: auto 100%;
  }

  .member-app .account-links {
    border-radius: 14px;
  }
}
