:root {
  --wood-dark: #381f12;
  --wood-mid: #57361c;
  --wood-panel: #472b17;
  --wood-trim: #734824;
  --play-orange: #db7a29;
  --play-orange-hover: #f29438;
  --text-cream: #faf2dc;
  --text-muted: #d1c2a8;
  --ember-gold: #ffd147;
  --input-bg: #1f140d;
  --input-field-bg: #f0e6d1;
  --input-field-text: #2e1a0a;
  --profile-green: #59b861;
  --danger: #c44a4a;
  --admin-badge: #5eb8ff;
  --shadow: rgba(0, 0, 0, 0.45);
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-cream);
  background: #120a06;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 5, 3, 0.55) 0%, rgba(8, 5, 3, 0.15) 42%, rgba(8, 5, 3, 0.35) 100%),
    url("/images/menu/bg-island.webp?v=35") center center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 209, 71, 0.14), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(219, 122, 41, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.35) 100%);
}

a {
  color: var(--ember-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 20px 0 56px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 28px;
}

/* Game-menu style: logo as hero brand, hub icons as the primary nav */
.site-header--hub {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 36px);
  padding-top: clamp(8px, 2vw, 20px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

.site-header--hub .brand-lockup {
  align-items: center;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-logo {
  width: min(340px, 72vw);
  filter: drop-shadow(0 10px 18px var(--shadow));
}

.site-header--hub .brand-logo {
  width: min(480px, 78vw);
}

.brand-tagline {
  margin: 0;
  padding-left: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-header--hub .brand-tagline {
  padding-left: 0;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.slice-panel__content .muted,
.slice-panel__content .panel-eyebrow {
  color: #6a4a2e;
}

.slice-panel__content h2,
.slice-panel__content h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 0 rgba(255, 248, 230, 0.55),
    0 2px 3px rgba(40, 20, 8, 0.28);
}

.slice-panel__content h2 {
  font-size: clamp(1.1rem, 0.95rem + 1vw, 1.35rem);
  color: #5c3210;
  line-height: 1.25;
}

.panel-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slice-panel__content h3 {
  font-size: clamp(1rem, 0.92rem + 0.6vw, 1.1rem);
  color: #3a2412;
}

.slice-panel__content a {
  color: #8a4a12;
}

.slice-panel__content a:hover {
  color: #b35a10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }

  .brand-lockup {
    align-items: center;
  }
}

.intro-copy {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.feature-card {
  margin: 0;
  padding: 4px 0 8px;
  min-height: 0;
  border: none;
  border-bottom: 1px solid rgba(115, 72, 36, 0.35);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.feature-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-card strong {
  display: inline;
  margin-right: 0.35em;
  color: var(--ember-gold);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.platform-strip {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.platform-pill {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  color: inherit;
}

.platform-pill + .platform-pill::before {
  content: " · ";
  color: rgba(209, 194, 168, 0.55);
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--wood-trim);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--input-field-bg);
  color: var(--input-field-text);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 209, 71, 0.45);
  outline-offset: 1px;
}

.btn-row,
.slice-row {
  margin-top: 14px;
}

button,
.btn {
  appearance: none;
}

.slice-btn.is-active .slice-btn__label {
  color: var(--ember-gold);
}

.btn-danger {
  background: var(--danger);
  border-radius: 10px;
  padding: 11px 16px;
  filter: none;
}

.btn-green {
  background: var(--profile-green);
  color: #102212;
  border-radius: 10px;
  padding: 11px 16px;
  filter: none;
}

.status {
  min-height: 1.4rem;
  margin-top: 10px;
  font-size: 0.92rem;
}

.status.error {
  color: #9a2020;
}

.status.ok {
  color: #1f6b38;
}

.news-section {
  margin-top: 26px;
}

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

.slice-card h3 {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
  color: var(--ember-gold);
}

.slice-card p {
  margin: 0;
  color: var(--text-cream);
  font-size: 0.94rem;
  line-height: 1.45;
}

.slice-card time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.account-avatar {
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7ed086, #2f7a38 70%);
  border: 2px solid rgba(255, 209, 71, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.slice-banner strong {
  color: var(--profile-green);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-stack .slice-btn--play {
  width: 100%;
  max-width: 22rem;
  align-self: center;
}


.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--wood-trim);
  background: rgba(0, 0, 0, 0.18);
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(115, 72, 36, 0.45);
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: rgba(0, 0, 0, 0.28);
  color: var(--ember-gold);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

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

.admin-brand img {
  width: 120px;
  filter: drop-shadow(0 6px 12px var(--shadow));
}

.admin-brand h1 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--ember-gold);
}

.hidden {
  display: none !important;
}

.chat-admin-badge {
  color: var(--admin-badge);
  font-weight: 800;
}

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.news-article h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: #3a2412;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.news-body p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: #3a2412;
  font-size: 1.02rem;
}

.news-hero-logo {
  width: min(280px, 60vw);
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 18px var(--shadow));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consent-stack {
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.consent-row input {
  margin-top: 3px;
}

.verify-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-copy h1,
.legal-copy h2 {
  font-family: var(--font-display);
  color: #3a2412;
}

.legal-copy h1 {
  margin: 0 0 12px;
}

.legal-copy h2 {
  margin: 22px 0 8px;
  font-size: 1.15rem;
}

.legal-copy p,
.legal-copy li {
  color: #3a2412;
}

.legal-entity {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(115, 72, 36, 0.45);
}

.legal-entity p {
  margin: 0;
  color: var(--text-cream);
  line-height: 1.55;
}

.legal-copy ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

/* ── Account dashboard ─────────────────────────────────────────── */

.shell--account {
  width: min(1080px, 94vw);
}

.account-main {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.account-dashboard {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.account-hero__grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
}

@media (min-width: 720px) {
  .account-hero__grid {
    grid-template-columns: 1fr auto;
  }
}

.account-hero__profile {
  display: flex;
  gap: clamp(14px, 3vw, 20px);
  align-items: center;
  min-width: 0;
}

.account-hero__identity {
  min-width: 0;
}

.account-hero__identity h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #3a2412;
}

.account-hero__email {
  margin: 0;
  font-size: 1rem;
  color: #8a4a12;
  word-break: break-word;
}

.account-hero__meta {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.account-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-avatar--lg {
  width: clamp(64px, 14vw, 84px);
  height: clamp(64px, 14vw, 84px);
  font-size: clamp(2rem, 6vw, 2.6rem);
}

.account-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.account-badge--ready {
  background: rgba(31, 107, 56, 0.12);
  color: #1f6b38;
  border: 1px solid rgba(31, 107, 56, 0.35);
}

.account-badge--warn {
  background: rgba(138, 58, 16, 0.1);
  color: #8a3a10;
  border: 1px solid rgba(138, 58, 16, 0.35);
}

.account-grid {
  display: grid;
  gap: clamp(14px, 2.5vw, 20px);
}

@media (min-width: 760px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card--wide,
  .account-card--commerce {
    grid-column: 1 / -1;
  }
}

.account-card .slice-panel__body {
  min-height: 100%;
}

.account-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #4a2a0e;
}

.account-card__note {
  margin: 8px 0 0;
  font-size: 0.86rem;
}

.account-stat-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(80, 48, 20, 0.18);
}

.account-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-stat dt {
  margin: 0;
  color: #6a4a2e;
  font-size: 0.92rem;
}

.account-stat dd {
  margin: 0;
  color: #3a2412;
  font-weight: 700;
  font-size: 1.05rem;
}

.account-checklist {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.account-check {
  position: relative;
  padding-left: 1.4rem;
  color: #6a4a2e;
}

.account-check::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #6a4a2e;
}

.account-check--ok {
  color: #1f6b38;
}

.account-check--ok::before {
  content: "✓";
  color: #1f6b38;
}

.account-check--pending::before {
  content: "○";
  color: #8a3a10;
}

.account-pref-row {
  margin-bottom: 10px;
}

.account-commerce-placeholder {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .account-commerce-placeholder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.account-commerce-tile {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(115, 72, 36, 0.55);
}

.account-commerce-tile strong {
  color: var(--text-cream);
}

#account-email-preview {
  color: #8a4a12;
  word-break: break-word;
}

/* —— v34 home / contrast / mobile-first overrides —— */

.shell {
  width: min(720px, 94vw);
  margin: 0 auto;
  padding: 16px 0 48px;
}

.shell--account {
  width: min(820px, 94vw);
}

.site-header,
.site-header--hub {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-lockup,
.site-header--hub .brand-lockup {
  align-items: center;
}

.brand-logo,
.site-header--hub .brand-logo {
  width: min(300px, 78vw);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-cta {
  margin-top: 4px;
}

.intro-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #3a2412;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.4);
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #3a2412;
  font-size: 0.96rem;
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.35);
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.feature-list strong {
  color: #4a2a0e;
  font-family: var(--font-display);
}

.platform-line {
  margin: 0;
  color: #6a4a2e;
  font-size: 0.9rem;
}

.feature-card strong {
  color: #4a2a0e;
}

.slice-panel__content,
.slice-panel__content h1,
.slice-panel__content h2,
.slice-panel__content h3,
.account-hero__email,
.account-stat dd,
.account-stat dt {
  color: #3a2412;
}

.slice-panel__content h1,
.slice-panel__content h2,
.slice-panel__content h3,
.news-item h3,
.account-hero__identity h1,
.account-card h2,
.legal-copy h1,
.legal-copy h2 {
  text-shadow:
    0 1px 0 rgba(255, 248, 230, 0.6),
    0 2px 3px rgba(40, 20, 8, 0.28);
}

.slice-panel__content .muted,
.slice-panel__content .panel-eyebrow,
.panel-eyebrow,
.muted,
.account-hero__meta,
.account-card__note {
  color: #6a4a2e !important;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.4);
}

.slice-panel__content .status.error {
  color: #9a2020;
}

.slice-panel__content .status.ok {
  color: #1f6b38;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: 14px 0;
  border-top: 1px solid rgba(80, 48, 20, 0.18);
}

.news-item:first-child {
  border-top: none;
  padding-top: 4px;
}

.news-item time {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a4a2e;
}

.news-item h3 {
  margin: 0 0 6px !important;
  font-size: 1.05rem !important;
  color: #4a2a0e !important;
}

.news-item p {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #3a2412;
}

.news-item__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8a4a12 !important;
}

.auth-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 10px;
}

.auth-mode-tabs > .slice-btn--play {
  flex: 0 1 auto;
  width: auto;
  min-width: 7.5rem;
  max-width: 11rem;
  min-height: 2.55rem;
  padding: 0.4rem 1.15rem;
  font-size: 0.72rem;
}

.auth-mode-tab {
  appearance: none;
  cursor: pointer;
}

/* Inactive login/register tab: same pill art, slightly quieter */
.auth-mode-tab.slice-btn--play:not(.is-active) {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(0.94);
  opacity: 0.88;
}

.auth-mode-tab.slice-btn--play.is-active {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.32)) brightness(1.04);
}

.auth-mode-tab.slice-btn--play:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.32)) brightness(1.08);
  color: #2a1608;
}

/* Compact auth CTAs — avoid full-width stretched pills */
#account-login .btn-row.slice-row,
#account-dashboard .btn-row.slice-row {
  justify-content: center;
  align-items: center;
}

#account-login .btn-row > .slice-btn--play,
#account-dashboard .btn-row > .slice-btn--play,
#account-login #btn-auth-submit,
#account-dashboard .slice-btn--play {
  flex: 0 1 auto;
  width: auto;
  min-width: 8.5rem;
  max-width: 14rem;
  min-height: 2.65rem;
  padding: 0.45rem 1.35rem;
  font-size: 0.78rem;
}

.field label,
.consent-row {
  color: #3a2412;
}

.account-commerce-tile {
  background: rgba(80, 48, 20, 0.08);
  border-color: rgba(80, 48, 20, 0.25);
}

.account-commerce-tile strong {
  color: #4a2a0e;
}

.account-badge--ready {
  color: #1f6b38;
}

.account-badge--warn {
  color: #8a3a10;
}

@media (min-width: 840px) {
  .shell {
    width: min(980px, 92vw);
  }

  .shell--account {
    width: min(1080px, 92vw);
  }

  .brand-logo,
  .site-header--hub .brand-logo {
    width: min(460px, 48vw);
  }

  .home-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
  }
}

