@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fffef9;
  --ink: #161610;
  --black: #171711;
  --yellow: #ffdc20;
  --muted: #6b685e;
  --line: #dfdbcc;
  --font-title: Nunito, "Arial Rounded MT Bold", Arial, sans-serif;
  --font-body: "Golos Text", Arial, sans-serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font: 500 15px/1.45 var(--font-body);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}
::selection { background: var(--black); color: var(--yellow); }

.site-header {
  background: linear-gradient(#fff, #fffdf0);
  border-bottom: 1px solid #e9dfbd;
  box-shadow: 0 4px 14px #5a39120a;
}
.header-inner {
  width: min(100% - 80px, 1136px);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: block;
  flex: 0 1 240px;
  min-width: 0;
  text-decoration: none;
}
.brand img { display: block; width: 100%; height: auto; }
.header-account {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}
.header-balance {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 9px;
  border: 1px solid #bc8b29;
  border-radius: 14px;
  background: linear-gradient(155deg, #fff8cf, #ffe283);
  box-shadow: inset 0 1px 1px #fffdfa, 0 2px 0 #ae782c, 0 4px 7px #69491e25;
  white-space: nowrap;
  color: var(--ink);
  text-align: left;
}
.header-balance:hover { background: linear-gradient(155deg, #fffbed, #ffd955); }
.header-balance:active { transform: translateY(1px); }
.header-coins {
  width: 22px;
  height: 29px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 2px 1px #74511239);
}
.header-balance-label { display: block; margin-bottom: 1px; font-size: 10px; font-weight: 750; line-height: 1; }
.header-balance strong { display: block; font: 1000 19px/1 var(--font-title); font-variant-numeric: tabular-nums; }
.header-balance strong small { font: 800 10px/1 var(--font-code); }
.profile-button, .black-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.profile-button {
  background: linear-gradient(#fff, #fff4cc);
  border: 1px solid #27200c;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--ink), 0 5px 8px #59430e24;
  border-radius: 15px;
  padding: 0 16px;
  min-height: 43px;
  font: 950 16px/1 var(--font-title);
}
.profile-button:hover { background: linear-gradient(#fff5ae, #ffdf50); }
.profile-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.page-shell { width: min(100% - 80px, 1136px); margin-inline: auto; padding: 33px 0 60px; }
.page-content { display: grid; min-width: 0; gap: 29px; }
.page-columns { display: grid; min-width: 0; }
.ad-sidebar { display: none; }
.has-sides { width: min(100% - 64px, 1460px); }
.has-sides { --sidebar-width: 155px; }
.has-sides .page-columns { grid-template-columns: var(--left-track, 0px) minmax(0, 1fr) var(--right-track, 0px); }
.has-left { --left-track: calc(var(--sidebar-width) + 15px); }
.has-right { --right-track: calc(var(--sidebar-width) + 15px); }
.has-sides .page-content { grid-column: 2; }
.has-sides .ad-sidebar { display: grid; gap: 15px; align-content: start; }
.ad-left { grid-column: 1; margin-right: 15px; }
.ad-right { grid-column: 3; margin-left: 15px; }
.ad-slot {
  --ad-height: 86px;
  position: relative;
  margin: 0;
  height: var(--ad-height);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  isolation: isolate;
  overflow: hidden;
}
.ad-top { --ad-height: 105px; margin-bottom: 20px; }
.ad-sidebar .ad-slot { --ad-height: 242px; }
.ad-sidebar:empty { display: none; }
.ad-label {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 5px;
  display: inline-block;
  border-radius: 3px;
  padding: 2px 5px;
  pointer-events: none;
  color: var(--ink);
  background: var(--paper);
  font: 700 10px/1.3 var(--font-body);
}
.ad-media, .ad-media img {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ad-mobile { display: none; }

.feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "title art" "roll art";
  align-items: center;
  row-gap: 14px;
  min-height: 475px;
  padding: 26px 40px 30px;
  background: radial-gradient(ellipse at 72% 30%, #fff39e, #ffdf42 53%, #ffcd27);
  border: 2px solid #3d2b0d;
  border-radius: 31px;
  box-shadow: inset 0 0 0 4px #ffe979, inset 0 5px 14px #fff5b3a8,
    inset 0 -12px 20px #d38f2349, 0 7px 0 #a36513, 0 9px 0 var(--ink), 0 17px 27px #79520e3d;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border: 1px solid #fff5ab99;
  border-radius: 23px;
  pointer-events: none;
}
.feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  z-index: -1;
  width: 53%;
  height: 64%;
  opacity: .26;
  background-image: radial-gradient(#493313 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: linear-gradient(132deg, transparent 15%, black);
  pointer-events: none;
}
.feature-title {
  position: relative;
  grid-area: title;
  z-index: 2;
  width: min(100%, 426px);
  margin: 0;
}
.feature-title img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 3px #88541128);
}
.feature-art {
  position: relative;
  grid-area: art;
  width: 100%;
  height: 100%;
  min-height: 374px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.feature-art img {
  z-index: 1;
  position: absolute;
  width: min(117%, 605px);
  height: auto;
  max-width: none;
  right: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  filter: drop-shadow(4px 15px 8px #6d430351);
}
.art-rings {
  position: absolute;
  border: 2px solid #fff4a975;
  width: min(79%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #fff9b1, #ffe769 58%, #eaa525 100%);
  box-shadow: inset 0 3px 12px #fff3b2, inset 0 -13px 24px #be791a52,
    0 3px 8px #a36a293d, 0 0 0 16px #ffeca380, 0 0 0 17px #d5a33b46,
    0 0 0 37px #fff09a6b, 0 0 0 38px #bd831b35;
}
.art-plinth {
  position: absolute;
  inset: auto 4% 4.5% 13%;
  height: 13%;
  border-radius: 50%;
  background: linear-gradient(#ffef9bce, #f5b622a1);
  box-shadow: inset 0 2px 3px #fff8c0, 0 6px 0 #d19224a6, 0 13px 14px #a56f2e5e;
}

.roll-widget {
  grid-area: roll;
  z-index: 2;
  align-self: start;
  display: grid;
  min-width: 0;
  width: min(100%, 432px);
  align-content: start;
  gap: 12px;
}
.scoreboard {
  --led: #ffe352;
  --led-shadow: #ffc83b9e;
  --led-off: #382f15;
  padding: 11px 13px;
  background: linear-gradient(#4d4331, #29251b 35%, #16140f 86%);
  border: 1px solid #15140e;
  border-radius: 20px;
  box-shadow: inset 0 1px 1px #ab9064, inset 0 0 0 3px #100e0a,
    inset 0 0 0 5px #74633d, 0 5px 0 #271b12, 0 9px 11px #8a5c114f;
  overflow: hidden;
}
.digit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.digit {
  border: 1px solid #504522;
  border-radius: 10px;
  height: 81px;
  overflow: hidden;
  background: linear-gradient(#1a190f 5%, #302711 55%, #19170e 100%);
  box-shadow: inset 0 2px 10px #0f0d08;
}
.segment-digit { height: 79px; display: block; position: relative; width: min(63%, 43px); margin: 0 auto; filter: drop-shadow(0 0 5px var(--led-shadow)); }
.segment { position: absolute; display: block; background: var(--led-off); }
.segment.lit { background: var(--led); }
.segment-a, .segment-d, .segment-g {
  inset-inline: 3px;
  height: 7px;
  clip-path: polygon(11% 0, 89% 0, 100% 50%, 89% 100%, 11% 100%, 0 50%);
}
.segment-a { top: 8px; }
.segment-g { top: 36px; }
.segment-d { bottom: 8px; }
.segment-b, .segment-c, .segment-e, .segment-f {
  height: 25px;
  width: 7px;
  clip-path: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%);
}
.segment-b, .segment-c { right: 0; }
.segment-f, .segment-e { left: 0; }
.segment-b, .segment-f { top: 12px; }
.segment-c, .segment-e { bottom: 12px; }
.reel { animation: spin-reel 470ms linear infinite; will-change: transform; }
.reel-landed { animation: land-reel 140ms ease-out; }
@keyframes spin-reel { to { transform: translateY(-90.9091%); } }
@keyframes land-reel { from { transform: translateY(-24%); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
.scoreboard-win {
  --led: #fff1a0;
  --led-shadow: #ffdd42;
  box-shadow: inset 0 0 0 3px #d29120, inset 0 0 0 5px #271d0d, 0 0 20px #fff7a6;
  border-color: #9a6815;
}

.black-button {
  background: var(--black);
  color: #fff;
  border: 2px solid var(--black);
  border-radius: 9px;
  padding: 0 14px;
  min-height: 53px;
}
.black-button svg { flex: none; color: var(--yellow); }
.black-button:hover:not(:disabled) { background: #353023; }
.black-button:disabled { opacity: .84; }
.roll-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 6px 12px;
  border: 2px solid #211a11;
  border-radius: 18px;
  color: #20180a;
  background: linear-gradient(180deg, #fffdfa 5%, #fff4c4 59%, #ffd65b 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 #e4b5358c,
    0 5px 0 #251b0e, 0 10px 15px #6d430e55;
  font: 1000 26px/1.1 var(--font-title);
  transition: transform .15s ease, box-shadow .15s ease;
}
.roll-button:not(.cooling) { text-transform: uppercase; letter-spacing: .075em; }
.roll-word {
  display: inline-flex;
  align-items: center;
  gap: .02em;
  line-height: 1.12;
}
.roll-button[data-label="status"] .roll-word { display: none; }
.roll-letter {
  display: block;
  height: 1.16em;
  padding-inline: .01em;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.roll-letter-strip, .roll-letter-strip > span { display: grid; }
.roll-letter-strip > span { place-items: center; height: 1.16em; }
@media (prefers-reduced-motion: no-preference) {
  .roll-button[data-label="roll"] .roll-letter-strip { animation: roll-letter-down 2.15s infinite both; }
  .roll-letter:nth-child(2) .roll-letter-strip { animation-delay: -.38s; }
  .roll-letter:nth-child(3) .roll-letter-strip { animation-delay: -.76s; }
  .roll-letter:nth-child(4) .roll-letter-strip { animation-delay: -1.14s; }
}
@keyframes roll-letter-down {
  0%, 50% { transform: translateY(-50%); animation-timing-function: cubic-bezier(.38, .05, .22, 1); }
  73%, 100% { transform: translateY(0); }
}
.roll-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff 10%, #ffefb0 65%, #ffcd4d 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 #e0ad348c,
    0 7px 0 #251b0e, 0 12px 17px #6d430e62;
}
.roll-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 #e4b5358c,
    0 2px 0 #251b0e, 0 4px 7px #6d430e42;
}
.roll-button[data-ready="true"]:not(:focus-visible)::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid #fff9dd;
  border-radius: inherit;
  box-shadow: 0 0 12px 3px #fff4ae, 0 0 22px 5px #ffcc4aa8;
  opacity: .4;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .roll-button[data-ready="true"]:not(:focus-visible)::after {
    animation: roll-ready-glow 2.2s ease-in-out infinite;
  }
}
@keyframes roll-ready-glow {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}
.roll-bolt {
  width: 24px;
  height: 30px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 1px 1px #73501c65);
}
.roll-button:disabled:not(.cooling) { opacity: .78; }
.roll-button.cooling {
  color: #59432a;
  border-color: #a57930;
  background: #fff0b9;
  box-shadow: inset 0 1px 0 #fff8db, 0 2px 0 #b4883b;
  font-size: 16px;
}
.roll-button.cooling svg { flex: none; }
.roll-button strong { color: #342310; font: 750 17px/1 var(--font-code); }
.roll-result, .feature-error {
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 8px;
  padding: 5px 8px;
  background: #fff7cd;
  text-align: center;
  font-size: 14px;
}
.roll-result b { font-family: var(--font-code); }
.result-jackpot { background: #fff; }
.result-jackpot > strong { display: inline-flex; align-items: center; gap: 4px; }
.feature-error { font-weight: 700; }

.payouts {
  width: min(100%, 420px);
  min-width: 0;
  justify-self: center;
  padding: 14px 15px 12px;
  border: 1px solid #e5d8b9;
  border-radius: 17px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff 46%);
  box-shadow: 0 3px 0 #e9dfc8, 0 8px 17px #67491213;
}
.payout-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.payout-trophy {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #5e3e152f);
  flex: none;
}
.entry-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.profile-header h2 {
  font: 1000 clamp(23px, 3.1vw, 38px)/1.05 var(--font-title);
  letter-spacing: -.045em;
}
.payout-heading h2 {
  font: 1000 25px/1.05 var(--font-title);
  letter-spacing: -.035em;
}
.payout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}
.payout-table tbody :is(th, td) {
  padding: 6px 10px;
  border-block: 1px solid #eee5d3;
  background: #fffaf0;
  white-space: nowrap;
}
.payout-table tbody th {
  text-align: left;
  border-left: 1px solid #eee5d3;
  border-radius: 8px 0 0 8px;
}
.payout-table tbody td {
  text-align: right;
  border-right: 1px solid #eee5d3;
  border-radius: 0 8px 8px 0;
  color: #281d0d;
  font: 1000 16px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
}
.payout-table small { color: #675537; font: 800 10px/1 var(--font-code); }
.payout-table code { color: #402e12; font: 750 14px/1 var(--font-code); letter-spacing: .09em; }
.payout-table .payout-jackpot :is(th, td) { border-color: #e4bc5e; background: #ffe8a1; }
.payout-jackpot th span { margin-left: 8px; color: #5c3b12; font: 950 12px/1 var(--font-title); }
.payout-others th { color: #655536; font-size: 12px; font-weight: 750; line-height: 1.2; }

.profile {
  color: var(--ink);
  width: min(100% - 32px, 540px);
  max-height: min(90dvh, 870px);
  border: 2px solid var(--ink);
  border-radius: 17px;
  padding: 0;
  background: #fff;
  box-shadow: 7px 7px 0 var(--black);
  overflow: auto;
}
.profile::backdrop { background: #0d0c0ac4; }
body:has(.profile[open]) { overflow: hidden; }
.profile-inner { display: grid; gap: 15px; padding: 21px 23px; }
.profile-header { display: flex; align-items: start; justify-content: space-between; gap: 11px; }
.profile-header > div { min-width: 0; }
.profile-header p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; font-size: 13px; }
.icon-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.icon-button:hover { background: var(--yellow); }
.wallet-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(155deg, #fff3a9, #ffda32 72%);
  border: 1px solid #745417;
  border-radius: 15px;
  box-shadow: inset 0 2px 1px #fff1aa, 0 3px 0 #604216, 0 6px 7px #88702029;
}
.wallet-coins {
  width: 43px;
  height: 49px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 3px 3px #684c1540);
}
.wallet-amount { min-width: 0; flex: 1; }
.wallet-card span { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 13px; font-weight: 750; }
.wallet-card strong { display: block; font: 1000 clamp(22px, 5vw, 34px)/1 var(--font-title); letter-spacing: -.055em; overflow-wrap: anywhere; }
.wallet-card strong small { font: 800 .48em/1 var(--font-code); letter-spacing: 0; white-space: nowrap; }
.quick-withdraw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--black);
  border: 1.5px solid var(--black);
  min-height: 37px;
  border-radius: 6px;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 790;
}
.quick-withdraw:disabled { background: #343023; color: #fff3d3; opacity: .7; }
.withdraw-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
  padding: 11px;
  background: #fff9e4;
  border: 1px solid #e5d48c;
  border-radius: 8px;
}
.withdraw-heading, .withdraw-form .black-button, .withdraw-form .message { grid-column: 1 / -1; }
.withdraw-heading h3 { font-size: 16px; font-weight: 850; }
.withdraw-heading p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.withdraw-form label { display: grid; align-content: start; gap: 3px; font-size: 12px; font-weight: 770; }
.withdraw-form input {
  width: 100%;
  min-width: 0;
  height: 39px;
  border-radius: 5px;
  border: 1px solid #a69b79;
  padding: 0 7px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1 var(--font-code);
}
.withdraw-form .black-button { min-height: 40px; font-size: 14px; }
.withdraw-notice, .message { font-size: 13px; font-weight: 720; }
.withdraw-notice { background: #fff0b7; border-radius: 6px; padding: 7px 9px; }
.history-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #f4f0e1;
  border: 1px solid #d9d1b6;
  padding: 3px;
  border-radius: 7px;
}
.history-switch button {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 35px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 750;
}
.history-switch button[aria-pressed="true"] { border-color: var(--ink); background: var(--yellow); }
.history-content { min-height: 65px; }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li {
  min-height: 57px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.entry-icon { width: 31px; height: 31px; border-color: #d1bc69; background: #fff0ae; border-radius: 6px; }
.entry-info { min-width: 0; }
.entry-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-info time { display: block; font-size: 11px; color: var(--muted); }
.entry-amount { font: 750 14px/1.2 var(--font-code); white-space: nowrap; }
.entry-amount small { font-size: 10px; }
.history-empty { padding-block: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.history-empty button, .history-more {
  display: block;
  margin: 8px auto 0;
  border: 1px solid var(--ink);
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font-weight: 720;
  font-size: 13px;
}
.history-more:hover, .history-empty button:hover { background: #fff0ad; }
.sign-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: center;
  color: #4d493f;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.sign-out:hover { text-decoration: underline; }

@media (max-width: 1180px) {
  .has-sides { --sidebar-width: 112px; }
  .feature { padding-inline: 32px; }
}
@media (max-width: 920px) {
  .header-inner, .page-shell, .has-sides { width: min(100% - 45px, 1136px); }
  .feature { min-height: 408px; padding: 27px 26px; }
  .feature-art { min-height: 290px; }
  .has-sides .page-columns { display: block; }
  .has-sides .ad-sidebar { display: none; }
  .site-with-sticky { padding-bottom: calc(102px + env(safe-area-inset-bottom)); }
  .ad-mobile {
    --ad-height: 50px;
    display: block;
    position: fixed;
    z-index: 8;
    inset: auto 8px calc(6px + env(safe-area-inset-bottom)) 8px;
    max-width: 670px;
    margin-inline: auto;
    box-shadow: 0 2px 14px #16161045;
  }
  .ad-close {
    position: absolute;
    z-index: 3;
    right: 5px;
    top: 5px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--yellow);
    color: var(--ink);
    font: 850 25px/1 var(--font-body);
  }
}
@media (max-width: 620px) {
  .header-inner, .page-shell, .has-sides { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { flex-basis: min(46vw, 195px); }
  .header-account { gap: 6px; }
  .header-balance { min-height: 36px; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 11px; }
  .header-coins { width: 17px; height: 23px; }
  .header-balance-label { font-size: 9px; }
  .header-balance strong { font-size: 15px; }
  .header-balance strong small { font-size: 9px; }
  .profile-button { min-height: 36px; padding: 0 9px; gap: 5px; font-size: 13px; }
  .profile-button svg { width: 16px; }
  .page-shell { padding-top: 21px; padding-bottom: 37px; }
  .page-content { gap: 22px; }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "title" "art" "roll";
    min-height: 0;
    gap: 4px;
    justify-items: center;
    padding: 11px 13px 16px;
    border-radius: 21px;
    box-shadow: inset 0 0 0 3px #ffe984, inset 0 -6px 12px #d28d1f57,
      0 4px 0 #a36513, 0 6px 0 var(--ink), 0 10px 13px #79520e36;
  }
  .feature::before { inset: 6px; border-radius: 15px; }
  .feature-title { width: min(78%, 312px); }
  .feature-art { height: clamp(128px, 39vw, 211px); min-height: 0; }
  .art-plinth { inset: auto 27% 3% 24%; }
  .feature-art img {
    width: min(74%, 294px);
    max-height: 113%;
    object-fit: contain;
    right: auto;
    transform: translateY(-50%) rotate(-3deg);
  }
  .art-rings {
    width: clamp(116px, 34vw, 177px);
    box-shadow: 0 0 0 12px #ffe95683, 0 0 0 13px #ad78032d,
      0 0 0 30px #ffe85664, 0 0 0 31px #ad78032b;
  }
  .roll-widget { width: min(100%, 410px); gap: 10px; }
  .scoreboard { padding: 9px; border-radius: 14px; }
  .digit-row { gap: 6px; }
  .digit { height: 67px; }
  .segment-digit { height: 65px; width: min(64%, 37px); }
  .segment-a, .segment-d, .segment-g { height: 6px; }
  .segment-a { top: 7px; }
  .segment-g { top: 29px; }
  .segment-d { bottom: 7px; }
  .segment-b, .segment-c, .segment-e, .segment-f { width: 6px; height: 20px; }
  .segment-b, .segment-f { top: 10px; }
  .segment-c, .segment-e { bottom: 10px; }
  .roll-button { min-height: 52px; border-radius: 14px; font-size: 22px; }
  .roll-button.cooling { font-size: 14px; }
  .roll-button strong { font-size: 14px; }
  .roll-bolt { width: 19px; height: 25px; }
  .payouts { padding: 11px 10px 9px; }
  .payout-table tbody :is(th, td) { padding-inline: 8px; }
  .profile-inner { padding: 15px 12px; gap: 12px; }
  .wallet-card { padding: 10px; gap: 7px; }
  .wallet-coins { width: 34px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel, .reel-landed { animation: none; }
  .roll-button { transition: none; }
}

.page-content { container-type: inline-size; }
.ad-slot { --ad-height: 74px; }
.ad-top { --ad-height: 110px; }
.ad-sidebar .ad-slot { --ad-height: 212px; }
.ad-network:not(.ad-mobile) {
  display: grid;
  grid-template-rows: 16px minmax(0, 1fr);
}
.ad-network > .ad-label {
  position: static;
  justify-self: start;
}
.ad-frame {
  display: grid;
  place-items: center;
  border: 1px dashed #a39c86;
  border-radius: 9px;
  background: #fcfbf5;
}
.ad-frame .ad-label {
  position: static;
  padding: 0;
  color: #665e4a;
  background: transparent;
  font: 750 10px/1.3 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ad-frame.ad-mobile { display: none; }
.withdraw-minimum { color: var(--muted); font-size: 12px; margin-top: -4px; }
.history-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.referral-panel { display: grid; gap: 9px; }
.referral-panel > p { color: #4d493f; font-size: 13px; }
.referral-panel .referral-copy-status { font-weight: 750; }
.referral-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.referral-share input {
  min-width: 0;
  height: 39px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #fffdf4;
  font: 500 13px/1 var(--font-code);
}
.referral-share button { min-height: 39px; padding: 0 7px; gap: 5px; border-radius: 6px; font-size: 12px; }
.referral-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.referral-stats div { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fffdf4; }
.referral-stats dt { font-size: 12px; color: var(--muted); }
.referral-stats dd { margin: 0; font: 800 17px/1.4 var(--font-code); }
.referral-stats small { font-size: 11px; }

@media (max-width: 920px) {
  .ad-frame.ad-mobile { display: grid; }
  .ad-mobile { --ad-height: 84px; }
  .ad-network.ad-mobile {
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr);
  }
  .ad-network.ad-mobile > .ad-label { align-self: center; }
  .ad-network.ad-mobile .ad-close { top: 2px; height: 28px; }
}
@media (max-width: 620px) {
  .ad-top { --ad-height: 68px; margin-bottom: 14px; }
  .ad-slot:not(.ad-top, .ad-mobile) { --ad-height: 63px; }
  .history-switch button { gap: 3px; font-size: 12px; }
  .history-switch button svg { flex: none; width: 13px; }
}
@media (max-width: 390px) {
  .profile-button { width: 36px; padding: 0; border-radius: 11px; }
  .profile-label { display: none; }
}
@media (max-width: 360px) {
  .history-switch button svg { display: none; }
}

/* Account, privacy and administration */
.account-page, .legal-page, .admin-page {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
  padding: 24px 0 28px;
}
.legal-page { max-width: 680px; }
.admin-page { max-width: 1060px; }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  color: #503c20;
  font-weight: 750;
  text-decoration: none;
}
.page-back:hover { text-decoration: underline; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  border: 1px solid #9c7127;
  border-radius: 25px;
  box-shadow: 0 4px 0 #39280f, 0 12px 23px #704d1533;
  background: #fffdf6;
  overflow: hidden;
}
.auth-side {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: radial-gradient(ellipse at 55% 33%, #fff4ae, #ffe05c 61%, #edab23);
  box-shadow: inset 0 0 0 3px #fff4a477, inset 0 -4px 18px #bd762333;
}
.auth-logo, .auth-mascot { height: auto; object-fit: contain; }
.auth-logo { width: min(94%, 249px); }
.auth-mascot {
  width: min(100%, 354px);
  filter: drop-shadow(0 9px 8px #925b294d);
}
.auth-card { padding: clamp(17px, 4vw, 34px); min-width: 0; }
.auth-card-heading, .admin-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.auth-card-heading svg, .admin-heading svg { color: #704709; flex: none; }
.auth-card-heading h1, .legal-card h1, .admin-heading h1 {
  font: 1000 clamp(25px, 5vw, 38px)/1.05 var(--font-title);
  letter-spacing: -.045em;
}
.account-form, .recovery-receipt { display: grid; gap: 12px; }
.form-note, .recovery-receipt p { color: #584827; font-size: 14px; }
.account-form > label, .account-password, .password-line { display: grid; min-width: 0; gap: 4px; }
.account-form > label, .account-password > label { font-size: 13px; font-weight: 800; }
.account-form label small { font-weight: 500; color: var(--muted); }
.account-form input:not([type="checkbox"]), .account-form select,
.recovery-code-line input, .admin-search input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #ceb973;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font: 550 16px/1.2 var(--font-body);
}
.password-line { grid-template-columns: minmax(0, 1fr) 43px; }
.password-line button, .recovery-code-line button {
  display: grid;
  place-items: center;
  min-height: 42px;
  background: #fff3c5;
  border: 1px solid #d3b968;
  color: #553914;
  border-radius: 8px;
}
.account-consent {
  display: grid;
  gap: 5px;
  background: #fff4cb;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #efdc9f;
  font-size: 13px;
}
.account-consent label { display: flex; align-items: start; gap: 6px; cursor: pointer; }
.account-consent input { accent-color: #4c330d; width: 17px; height: 17px; flex: none; margin: 1px 0 0; }
.account-consent a { justify-self: start; margin-left: 23px; }
.account-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
  padding: 8px 12px;
  min-height: 43px;
  border: 1.5px solid #31200d;
  border-radius: 11px;
  background: linear-gradient(#fff4b2, #ffd843);
  box-shadow: inset 0 1px 0 #fff9e0, 0 3px 0 #33240f;
  color: #25190b;
  font: 1000 16px/1.15 var(--font-title);
}
.account-submit:hover:not(:disabled) { background: linear-gradient(#fff5c0, #ffd126); }
.account-submit:disabled { opacity: .66; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 750;
}
.auth-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.auth-entry .account-submit { min-width: 156px; }
.auth-entry-login {
  display: inline-grid;
  place-items: center;
  min-height: 39px;
  padding-inline: 12px;
  border-radius: 8px;
  background: #fff5d8;
  border: 1px solid #b88b3c;
  font-weight: 850;
  text-decoration: none;
}
.auth-entry-login:hover { background: #fff9e7; }
.recovery-code-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 5px; }
.recovery-code-line input { font-family: var(--font-code); font-size: 12px; }
.form-error { color: #7d170f; font-size: 13px; font-weight: 800; }
.profile-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.profile-links .sign-out { border: 0; background: none; padding: 4px; }
.privacy-footer {
  margin: 0 auto;
  padding: 7px 12px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 15px;
  color: #645638;
  font-size: 12px;
}
.text-control { padding: 0; border: 0; color: inherit; background: none; text-decoration: underline; }
.legal-card, .admin-data {
  padding: 19px;
  border: 1px solid #ddc58b;
  border-radius: 15px;
  background: #fffdf6;
  box-shadow: 0 3px 0 #eddfba;
}
.legal-card { display: grid; gap: 11px; }
.legal-card h2 { font: 950 20px/1.1 var(--font-title); margin-top: 6px; scroll-margin-top: 18px; }
.legal-card ul { margin: 0; padding-left: 22px; }
.legal-notice { padding: 9px; border-radius: 7px; background: #fff3cb; }
.legal-version { font-size: 12px; color: var(--muted); }
.legal-card .text-control { justify-self: start; }
.legal-card code { font-size: 12px; overflow-wrap: anywhere; }

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 13px;
}
.admin-summary > div {
  min-width: 0;
  padding: 11px 9px;
  background: linear-gradient(#fff9df, #ffebaa);
  border: 1px solid #e3c573;
  border-radius: 9px;
}
.admin-summary dt { font-size: 12px; color: #634f29; }
.admin-summary dd { margin: 3px 0 0; font: 1000 clamp(16px, 3vw, 24px)/1.04 var(--font-title); overflow-wrap: anywhere; }
.admin-summary small { font-size: 11px; color: #645229; }
.admin-controls {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-tabs a, .admin-search button {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 5px 8px;
  border: 1px solid #e2d1a2;
  border-radius: 6px;
  text-decoration: none;
  color: #342512;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 780;
}
.admin-tabs a[aria-current="page"], .admin-search button { background: #ffe179; border-color: #b18a3e; }
.admin-search { display: flex; gap: 4px; max-width: 250px; }
.admin-search input:not([type="hidden"]) { min-height: 35px; font-size: 13px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 350px; font-size: 13px; }
.admin-table :is(th, td) { padding: 8px; border-bottom: 1px solid #eddeba; text-align: left; }
.admin-table thead { background: #fff0bf; }
.admin-table tbody tr:nth-child(even) { background: #fffaf0; }
.admin-table td:last-child { white-space: nowrap; }
.admin-table .admin-empty { padding: 16px; color: var(--muted); }
.admin-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 10px; gap: 7px; font-size: 12px; }
.admin-pagination a { display: flex; gap: 3px; align-items: center; }
.admin-pagination a:last-child { justify-self: end; }

.cookie-notice {
  position: fixed;
  z-index: 15;
  bottom: max(12px, env(safe-area-inset-bottom));
  inset-inline: 12px;
  margin-inline: auto;
  width: min(calc(100% - 24px), 790px);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #39270e;
  background: linear-gradient(155deg, #fffdf0, #fff3c6);
  border: 1px solid #be9b48;
  border-radius: 12px;
  box-shadow: 0 3px 0 #493313, 0 7px 20px #3a2a174b;
}
.cookie-copy { display: flex; align-items: start; gap: 7px; }
.cookie-copy > svg { flex: none; color: #815008; }
.cookie-copy h2 { font: 950 16px/1.12 var(--font-title); margin-bottom: 3px; }
.cookie-copy p { font-size: 12px; }
.cookie-actions { display: flex; flex: none; gap: 5px; }
.cookie-actions button {
  border: 1px solid #b6974d;
  border-radius: 7px;
  min-height: 36px;
  background: #fff9e3;
  color: #402d12;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 7px;
}
.cookie-actions button:hover { background: #ffe98f; }
.cookie-actions button:last-child { background: #ffe17c; }

@media (max-width: 680px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-side { grid-template-columns: minmax(0, 1fr) 95px; align-items: center; gap: 8px; padding: 8px 11px; }
  .auth-logo { width: min(100%, 210px); }
  .auth-mascot { width: 100%; max-height: 83px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-data, .legal-card { padding: 12px; }
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 6px; }
  .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.cookie-notice) .ad-mobile { visibility: hidden; }
  body:has(.cookie-notice) { padding-bottom: 116px; }
}

[hidden] { display: none !important; }
.header-auth { gap: 7px; }
.auth-puff {
  display: inline-flex;
  min-height: 43px;
  min-width: 81px;
  align-items: center;
  justify-content: center;
  padding: 1px 16px 3px;
  color: #2c1c06;
  background: url("/brand/auth-puff.png") center / 100% 122% no-repeat;
  border-radius: 16px;
  font: 1000 16px/1 var(--font-title);
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px #fff3a980;
  transition: filter .18s ease, transform .18s ease;
}
.auth-puff:hover { filter: brightness(1.08) saturate(1.08); transform: translateY(-2px); }
.auth-puff:active { transform: translateY(1px); }
.auth-login { filter: saturate(.76) brightness(1.07); }
.prompt-dialog { max-width: 440px; }
.prompt-dialog .header-auth { flex-wrap: wrap; }
.profile-button .mobile-profile-label { display: none; }
.roll-captcha, .signup-captcha { min-height: 68px; min-width: 0; }
.withdraw-form .black-button { align-self: end; }
.withdraw-requirement { grid-column: 1 / -1; }
.withdraw-requirement { font-size: 13px; color: #6c4712; }
.recent-rolls .payout-heading { padding-bottom: 4px; }
.ad-frame.ad-mobile { display: none; }
.entry-address { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.office-title { justify-content: space-between; margin-bottom: 14px; }
.office-login { max-width: 440px; margin-top: clamp(24px, 8vw, 100px); }
.ad-settings { display: grid; gap: 14px; }
.ad-settings-row {
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) auto;
  align-items: end;
  gap: 8px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.ad-settings-row > :is(h2, .form-error) { grid-column: 1 / -1; }
.ad-settings-row h2 { font: 800 15px/1.2 var(--font-title); }
.ad-settings-row > button {
  min-height: 42px;
  padding-inline: 10px;
  border: 1px solid #b18a3e;
  border-radius: 8px;
  background: #ffe179;
  text-decoration: none;
}
.member-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.member-details div { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff9e8; }
.member-details dt { font-size: 12px; color: var(--muted); }
.member-details dd { margin: 0; overflow-wrap: anywhere; }
.member-details small { display: block; }
.admin-table .member-event { min-width: 220px; white-space: normal; }
.member-event code { overflow-wrap: anywhere; }
.member-event > :is(code, small, span) { display: block; }
.payment-form { margin-top: 7px; display: flex; gap: 5px; align-items: end; flex-wrap: wrap; }
.payment-form label { display: grid; }
.payment-form input { max-width: 100%; }
.payment-form button { border: 1px solid #ae8b3d; border-radius: 5px; padding: 4px 6px; background: #fff1ba; }
.admin-data > .admin-tabs { margin-bottom: 9px; }
@media (max-width: 920px) {
  .ad-frame.ad-mobile { display: block; }
  body:has(.cookie-notice) .ad-mobile { visibility: hidden; }
}
@media (max-width: 680px) {
  .cookie-actions { display: flex; justify-content: end; }
  .cookie-actions button { min-width: 90px; }
  .ad-settings-row { grid-template-columns: 1fr; }
  .ad-settings-row > button { justify-self: start; }
}
@media (max-width: 420px) {
  .auth-puff { min-width: 58px; min-height: 38px; padding-inline: 10px; font-size: 13px; }
  .header-auth { gap: 3px; }
  .profile-button .mobile-profile-label { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-puff { transition: none; }
}
