:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --ink: #f6f1e4;
  --muted: #c2bba9;
  --page: #11110f;
  --panel: #1a1916;
  --line: #3a362b;
  --accent: #ffd22d;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .24em; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(100% - 52px, 1120px); margin-inline: auto; }
.site-header { background: #151411; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: 75px; }
.brand { display: inline-flex; min-width: 0; flex: none; }
.brand img { width: clamp(130px, 24vw, 178px); height: auto; display: block; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { min-height: 74px; padding-block: 16px; flex-wrap: wrap; }
address { font-style: normal; }

.main { padding-block: clamp(40px, 7vw, 86px); }
.main-auth { max-width: 510px; }
.intro { margin-bottom: clamp(24px, 4vw, 34px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.header-game-actions { justify-content: flex-end; text-align: right; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 6.6vw, 4.4rem); letter-spacing: -.055em; line-height: 1; font-weight: 780; }
.main-auth h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.07rem, 2.4vw, 1.3rem); line-height: 1.25; letter-spacing: -.018em; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-profile { grid-column: 1 / -1; }
.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 22px;
  margin: 12px 0 0;
}
.profile-details > div { min-width: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.profile-details dt { color: var(--muted); font-size: .84rem; }
.profile-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 680; }
.profile-details dd.muted { font-weight: 400; }
.panel { min-width: 0; padding: clamp(18px, 3vw, 27px); border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.panel > .muted { margin-top: 12px; }
.games { grid-column: span 2; }
.visits {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-color: #665424;
  background: linear-gradient(144deg, #322a16 0%, #211d13 66%);
}
.value { color: var(--accent); font-size: clamp(2.8rem, 6vw, 4.3rem); font-weight: 780; letter-spacing: -.07em; line-height: .95; }
.value, .date-tile, .amount { font-variant-numeric: tabular-nums; }
.games-list, .account-list { list-style: none; padding: 0; margin: 15px 0 0; }
.games-list li, .account-list li { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.games-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.games-list li:last-child { padding-bottom: 0; }
.date-tile { width: 83px; flex: 0 0 83px; padding: 7px 4px; border-radius: 7px; background: #302717; text-align: center; color: var(--accent); display: grid; gap: 2px; font-weight: 750; }
.date-tile small { color: #e7d9ad; font-weight: 540; font-size: .72rem; }
.account-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; align-items: baseline; }
.account-list li:last-child { padding-bottom: 0; }
.amount { color: var(--accent); font-weight: 740; }
.account-action { margin-top: 14px; text-align: center; }
.account-action-note { font-size: .86rem; }
.deposit-dialog {
  width: min(440px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: clamp(14px, 4vw, 23px);
  border: 1px solid #86672b;
  border-radius: 13px;
  background: var(--panel);
  color: var(--ink);
}
.deposit-dialog::backdrop { background: #000b; }
.deposit-heading, .deposit-custom-row { display: flex; align-items: center; gap: 10px; }
.deposit-heading { justify-content: space-between; }
.deposit-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.deposit-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.deposit-presets[hidden] { display: none; }
.deposit-presets .button { padding-inline: 4px; font-size: .9rem; white-space: nowrap; }
.deposit-custom { border-top: 1px solid var(--line); padding-top: 14px; }
.deposit-custom label { display: block; margin-bottom: 7px; font-weight: 650; }
.deposit-custom input[type=number] {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #777060;
  border-radius: 8px;
  background: #13120f;
  color: inherit;
  font: inherit;
}
.deposit-custom .muted { margin-top: 8px; font-size: .86rem; }
.deposit-dialog:has([data-deposit-checkout]:not([hidden])) { width: min(640px, 100% - 32px); }
[data-deposit-checkout] iframe { display: block; width: 100%; height: min(60vh, 560px); border: 0; margin: 12px 0; }
[data-deposit-message]:not(:empty) { margin-top: 12px; }
.state { grid-column: 1 / -1; font-size: .86rem; }

.entry { border-top: 3px solid var(--accent); }
.entry form > label { display: block; margin-top: 18px; font-weight: 650; }
.entry input[type=tel] { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 10px 13px; border: 1px solid #777060; border-radius: 8px; background: #13120f; color: inherit; }
.entry .consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; color: var(--muted); font-size: .875rem; line-height: 1.5; font-weight: 450; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0; accent-color: var(--accent); }
.error { margin-bottom: 14px; padding: 12px 15px; border: 1px solid #97603f; border-radius: 8px; background: #3b261c; color: #ffddcb; }
.button, .plain { min-height: 44px; cursor: pointer; border-radius: 8px; font-weight: 720; line-height: 1.25; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; border: 1px solid transparent; background: var(--accent); color: #211903; text-decoration: none; }
.button:hover { background: #ffe066; }
.entry .button, .entry .subtle { margin-top: 15px; }
.entry .button { width: 100%; }
.button-secondary { background: transparent; color: var(--accent); border-color: #867231; }
.button-secondary:hover { background: #302717; }
.plain { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 8px 0; background: transparent; color: var(--accent); text-underline-offset: .24em; text-decoration: underline; }
.subtle { color: var(--muted); }
.call-button { justify-content: space-between; flex-wrap: wrap; }
.call-button span:last-child { font-variant-numeric: tabular-nums; }
.call-button[aria-disabled=true] { cursor: default; }
.preview-bar { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 4px 14px; color: #eadbb2; background: #342a16; font-size: .82rem; }
.preview-bar div { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-bar a { min-height: 37px; display: inline-flex; align-items: center; }
.preview-bar a[aria-current=page] { color: var(--ink); text-decoration-thickness: 2px; }

@media (max-width: 780px) {
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .intro .game-actions { width: 100%; }
  .intro .game-actions .button { flex: 1 1 auto; padding-inline: 11px; }
  .header-game-actions { column-gap: 10px; font-size: .86rem; }
  .header-game-actions .plain { min-height: 36px; padding-block: 4px; }
  .games-list li { gap: 11px; }
  .date-tile { width: 75px; flex-basis: 75px; }
}
