@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "Manrope";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/manrope-800-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/manrope-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "Unbounded";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/unbounded-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/unbounded-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #07143d;
  --bg-2: #0a1a4a;
  --panel: rgba(18, 43, 107, 0.88);
  --panel-solid: #122b6b;
  --card: #16306f;
  --ink: #f2f5ff;
  --ink-2: #c2d0f5;
  --muted: #8b9cd4;
  --blue: #2e5fff;
  --blue-2: #4a7dff;
  --cyan: #4ec2ff;
  --pink: #ff2e7e;
  --pink-2: #ff4e92;
  --gold: #ffc94a;
  --green: #36e2a5;
  --line: rgba(139, 156, 212, 0.2);
  --shadow: 0 24px 80px rgba(1, 8, 32, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(46, 95, 255, 0.32), transparent 42%),
    linear-gradient(155deg, #07143d 0%, #0a1a4a 48%, #08163f 100%);
  font-family: "Manrope", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  left: -180px;
  background: var(--pink);
}

.ambient-two {
  right: -160px;
  bottom: 10%;
  background: var(--blue-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(139, 156, 212, 0.14);
  background: rgba(7, 20, 61, 0.86);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand img {
  width: 126px;
  height: auto;
}

.brand-mode {
  padding: 6px 10px;
  border: 1px solid rgba(78, 194, 255, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(78, 194, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.header-stats {
  display: flex;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 43, 107, 0.6);
}

.header-stat {
  display: grid;
  min-width: 112px;
  padding: 2px 16px;
  text-align: center;
}

.header-stat + .header-stat {
  border-left: 1px solid var(--line);
}

.header-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-stat strong {
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
}

.attempts-stat strong {
  color: var(--gold);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(18, 43, 107, 0.34);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
}

.text-button:hover {
  border-color: rgba(78, 194, 255, 0.55);
  color: var(--ink);
  transform: translateY(-1px);
}

main,
footer {
  width: min(1400px, calc(100% - 36px));
  margin-inline: auto;
}

.intro-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: clamp(34px, 5vw, 70px) 4px 28px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--pink), #ff76ad 45%, var(--blue-2));
  background-clip: text;
  font-style: normal;
}

.intro-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

.daily-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 330px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 201, 74, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 201, 74, 0.11), rgba(255, 46, 126, 0.08));
}

.daily-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #1a1534;
  background: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.daily-card div {
  display: grid;
  gap: 3px;
}

.daily-card strong {
  font-size: 14px;
}

.daily-card div span {
  color: var(--muted);
  font-size: 12px;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(22, 48, 111, 0.88), rgba(13, 34, 91, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.picker-panel,
.board-panel {
  min-height: 546px;
  padding: clamp(18px, 2vw, 28px);
}

.panel-heading,
.panel-heading > div:first-child {
  display: flex;
  align-items: center;
}

.panel-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-heading > div:first-child {
  gap: 13px;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(78, 194, 255, 0.35);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(78, 194, 255, 0.09);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.step-number.pink {
  border-color: rgba(255, 46, 126, 0.35);
  color: var(--pink-2);
  background: rgba(255, 46, 126, 0.09);
}

.panel-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.16;
}

.picker-actions {
  display: flex;
  gap: 7px;
}

.mini-button,
.favorite-load {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: rgba(7, 20, 61, 0.34);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.mini-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.selected-hand {
  display: flex;
  align-items: center;
  min-height: 98px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(78, 194, 255, 0.18);
  border-radius: 18px;
  background: rgba(7, 20, 61, 0.32);
}

.selected-card,
.playing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 54px;
  height: 72px;
  padding: 7px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  color: #10162c;
  background: #f7f8ff;
  box-shadow: 0 8px 18px rgba(0, 5, 24, 0.22);
}

.selected-card.red,
.playing-card.red {
  color: #d3184e;
}

.selected-card > span:first-child,
.playing-card > span:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.selected-card > span:last-child,
.playing-card > span:last-child {
  align-self: flex-end;
  font-size: 23px;
  line-height: 1;
}

.selected-card.empty {
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(139, 156, 212, 0.45);
  color: var(--muted);
  background: rgba(22, 48, 111, 0.42);
  box-shadow: none;
}

.selected-card.empty span {
  font-size: 17px;
}

.selected-card.empty small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selected-plus {
  margin: 0 9px;
  color: var(--muted);
  font-size: 20px;
}

.hand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-left: 16px;
}

.hand-copy strong {
  font-size: 14px;
}

.hand-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.favorite-load {
  width: max-content;
  margin-top: 6px;
  border-color: rgba(255, 201, 74, 0.28);
  color: var(--gold);
}

.deck-picker {
  display: grid;
  gap: 8px;
}

.suit-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.suit-label {
  display: grid;
  width: 46px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(7, 20, 61, 0.38);
  font-size: 24px;
}

.suit-label.red {
  color: var(--pink-2);
}

.rank-cards {
  display: grid;
  grid-template-columns: repeat(13, minmax(31px, 1fr));
  gap: 5px;
}

.deck-card {
  position: relative;
  display: grid;
  min-width: 0;
  height: 50px;
  padding: 4px 2px;
  place-items: center;
  border: 1px solid rgba(139, 156, 212, 0.2);
  border-radius: 8px;
  color: #10162c;
  background: #f4f6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 5, 24, 0.16);
  touch-action: manipulation;
  transition: 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.deck-card.red {
  color: #d3184e;
}

.deck-card small {
  margin-top: -6px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.deck-card:hover {
  z-index: 2;
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 10px 20px rgba(0, 5, 24, 0.32);
}

.deck-card.selected {
  border-color: var(--gold);
  outline: 3px solid rgba(255, 201, 74, 0.2);
  transform: translateY(-4px);
}

.board-panel {
  display: flex;
  flex-direction: column;
}

.fair-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fair-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.board-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(74, 125, 255, 0.23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(46, 95, 255, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(7, 20, 61, 0.74), rgba(10, 26, 74, 0.9));
}

.board-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 194, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 194, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
}

.board-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 75%;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 46, 126, 0.16);
  filter: blur(55px);
}

.board-cards {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.7vw, 10px);
  padding: 28px 14px 20px;
}

.board-card {
  position: relative;
  display: flex;
  flex: 0 1 76px;
  flex-direction: column;
  justify-content: space-between;
  max-width: 76px;
  aspect-ratio: 0.72;
  padding: 9px;
  border-radius: 13px;
  color: #10162c;
  background: #f8f9ff;
  box-shadow: 0 13px 24px rgba(0, 5, 24, 0.32);
  transform-origin: 50% 100%;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 360ms ease, outline-color 360ms ease;
}

.board-card strong {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1;
}

.board-card i {
  align-self: flex-end;
  font-style: normal;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1;
}

.board-card.red {
  color: #d3184e;
}

.board-card.placeholder {
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(78, 194, 255, 0.18);
  color: rgba(194, 208, 245, 0.42);
  background:
    repeating-linear-gradient(45deg, rgba(74, 125, 255, 0.08) 0 8px, transparent 8px 16px),
    #0e225c;
  box-shadow: inset 0 0 0 4px rgba(7, 20, 61, 0.46);
}

.board-card.placeholder span {
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
}

.board-card.reveal {
  animation: cardReveal 540ms cubic-bezier(0.2, 0.7, 0.2, 1.15) both;
}

.board-card.best {
  outline: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 201, 74, 0.14), 0 20px 30px rgba(0, 5, 24, 0.4);
  transform: translateY(-14px);
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(-35px) rotateY(90deg) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.outcome-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.outcome-preview span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.outcome-preview strong {
  font-family: "Unbounded", sans-serif;
  font-size: 17px;
}

.spin-button,
.dialog-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 68px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(100deg, var(--pink), var(--pink-2) 40%, var(--blue));
  box-shadow: 0 14px 34px rgba(255, 46, 126, 0.27);
  cursor: pointer;
  transition: 180ms ease;
}

.spin-button:hover:not(:disabled),
.dialog-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 46, 126, 0.36);
}

.spin-button:disabled {
  color: rgba(242, 245, 255, 0.5);
  background: linear-gradient(100deg, #26386f, #243b7a);
  box-shadow: none;
  cursor: default;
}

.spin-icon {
  font-size: 30px;
  line-height: 1;
}

.spin-button > span:last-child {
  display: grid;
  text-align: left;
}

.spin-button strong {
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
}

.spin-button small {
  margin-top: 2px;
  color: rgba(242, 245, 255, 0.75);
  font-size: 10px;
}

.spin-button.spinning .spin-icon {
  animation: spinning 750ms linear infinite;
}

@keyframes spinning {
  to {
    transform: rotate(360deg);
  }
}

.legal-note {
  margin: 10px 10px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(34px, 5vw, 60px) 0 50px;
}

.rewards-section,
.history-section {
  min-width: 0;
  padding: 20px;
}

.compact-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 14px;
}

.compact-section-heading h2 {
  margin-bottom: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.wallet-summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 10px;
  min-width: 218px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 43, 107, 0.55);
}

.wallet-summary > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-summary strong {
  grid-column: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.wallet-summary strong b {
  color: var(--gold);
}

.wallet-summary button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  padding: 0 9px;
  border: 1px solid rgba(78, 194, 255, 0.28);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(78, 194, 255, 0.06);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.reward-card {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(22, 48, 111, 0.82), rgba(10, 26, 74, 0.78));
}

.reward-card.top {
  border-color: rgba(255, 201, 74, 0.32);
  background: linear-gradient(145deg, rgba(74, 51, 96, 0.92), rgba(22, 48, 111, 0.86));
}

.reward-card h3 span {
  margin-right: 7px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.reward-card h3 {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
}

.reward-card strong {
  color: var(--gold);
  font-size: 9px;
  line-height: 1.25;
}

.history-section {
  align-self: start;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(226px, 1fr) minmax(100px, 0.6fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 13px;
  border: 1px solid rgba(139, 156, 212, 0.14);
  border-radius: 14px;
  background: rgba(7, 20, 61, 0.3);
}

.history-cards {
  display: flex;
  gap: 3px;
}

.tiny-card {
  display: grid;
  width: 30px;
  height: 40px;
  padding: 2px;
  place-items: center;
  border-radius: 5px;
  color: #11172f;
  background: #f7f8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 900;
}

.tiny-card.red {
  color: #d3184e;
}

.history-hand {
  display: grid;
  gap: 2px;
}

.history-hand strong {
  font-size: 13px;
}

.history-hand span,
.history-time {
  color: var(--muted);
  font-size: 10px;
}

.history-reward {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.history-toggle {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(78, 194, 255, 0.25);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(78, 194, 255, 0.06);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.history-toggle[hidden] {
  display: none;
}

.empty-message {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer img {
  width: 88px;
  opacity: 0.84;
}

footer p {
  margin-bottom: 0;
}

.result-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(78, 194, 255, 0.28);
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 46, 126, 0.2), transparent 42%),
    #0e225c;
  box-shadow: 0 30px 100px rgba(0, 5, 24, 0.74);
  text-align: center;
}

.result-dialog::backdrop {
  background: rgba(2, 8, 30, 0.76);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(7, 20, 61, 0.6);
  font-size: 22px;
  cursor: pointer;
}

.result-kicker {
  margin: 6px 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.result-dialog h2 {
  margin-bottom: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
}

.result-hand-layout {
  display: grid;
  grid-template-columns: auto 20px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-bottom: 13px;
}

.result-card-group {
  display: grid;
  gap: 7px;
}

.result-card-group > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-hole-cards,
.result-board-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-height: 86px;
}

.result-board-cards .result-playing-card {
  width: min(58px, calc((100% - 20px) / 5));
}

.result-plus {
  align-self: center;
  padding-top: 20px;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
}

.result-playing-card {
  position: relative;
  display: flex;
  width: 58px;
  aspect-ratio: 0.72;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #10162c;
  background: #f8f9ff;
  box-shadow: 0 9px 18px rgba(0, 5, 24, 0.32);
  transition: transform 220ms ease;
}

.result-playing-card strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  line-height: 1;
}

.result-playing-card i {
  align-self: flex-end;
  font-style: normal;
  font-size: 29px;
  line-height: 1;
}

.result-playing-card.red {
  color: #d3184e;
}

.result-playing-card.winning {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(255, 201, 74, 0.16),
    0 9px 18px rgba(0, 5, 24, 0.32);
}

.result-playing-card.lifted {
  transform: translateY(-11px);
}

.result-best {
  margin: 0 0 13px !important;
  color: var(--gold) !important;
  font-size: 10px !important;
  font-weight: 800;
}

.result-best::before {
  content: "★ ";
}

.result-prize {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(255, 201, 74, 0.27);
  border-radius: 17px;
  background: rgba(255, 201, 74, 0.08);
}

.result-prize span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-prize strong {
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
}

.result-dialog > p:not(.result-kicker) {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}

.dialog-action {
  min-height: 52px;
  margin-top: 20px;
  font-weight: 800;
}

.drawer {
  position: fixed;
  z-index: 42;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #0b1d54;
  box-shadow: -24px 0 80px rgba(0, 5, 24, 0.54);
  transform: translateX(104%);
  transition: transform 240ms ease;
}

.drawer.open {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head p {
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.drawer-head h2 {
  margin-bottom: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
}

.drawer-head button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  background: transparent;
  font-size: 23px;
  cursor: pointer;
}

.rules-list {
  display: grid;
  gap: 22px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.rules-list li > span {
  color: var(--pink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.rules-list strong {
  font-size: 14px;
}

.rules-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.drawer-note {
  padding: 16px;
  border: 1px solid rgba(255, 201, 74, 0.22);
  border-radius: 14px;
  color: var(--ink-2);
  background: rgba(255, 201, 74, 0.06);
  font-size: 11px;
  line-height: 1.55;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2, 8, 30, 0.62);
  backdrop-filter: blur(5px);
}

.wallet-total {
  display: grid;
  gap: 3px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(255, 201, 74, 0.24);
  border-radius: 16px;
  background: rgba(255, 201, 74, 0.07);
}

.wallet-total span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-total strong {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
}

.coupon-list {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
}

.coupon {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 48, 111, 0.56);
}

.coupon span {
  color: var(--pink-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.coupon strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 1px solid rgba(78, 194, 255, 0.3);
  border-radius: 999px;
  color: var(--ink);
  background: #122b6b;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    display: none;
  }

  .play-layout {
    grid-template-columns: 1fr;
  }

  .picker-panel,
  .board-panel {
    min-height: 0;
  }

  .board-panel {
    min-height: 540px;
  }

  .activity-layout {
    grid-template-columns: 1fr;
  }

  .reward-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand img {
    width: 100px;
  }

  .brand-mode {
    display: none;
  }

  .header-stats {
    padding: 5px;
  }

  .header-stat {
    min-width: 74px;
    padding: 2px 8px;
  }

  .header-stat span {
    font-size: 8px;
  }

  .header-stat strong {
    font-size: 13px;
  }

  main,
  footer {
    width: min(100% - 20px, 1400px);
  }

  .intro-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .daily-card {
    min-width: 0;
  }

  .panel {
    border-radius: 20px;
  }

  .picker-panel,
  .board-panel {
    padding: 14px;
  }

  .panel-heading {
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .panel-heading h2 {
    font-size: 15px;
  }

  .picker-actions {
    flex-direction: column;
  }

  .mini-button {
    min-height: 30px;
    font-size: 9px;
  }

  .selected-hand {
    flex-wrap: wrap;
    min-height: 0;
  }

  .hand-copy {
    width: calc(100% - 145px);
    margin-left: 13px;
  }

  .suit-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
  }

  .suit-label {
    width: 34px;
    height: 42px;
    font-size: 19px;
  }

  .rank-cards {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 5px;
  }

  .deck-card {
    height: 50px;
    font-size: 13px;
  }

  .deck-card small {
    font-size: 13px;
  }

  .board-panel {
    min-height: 490px;
  }

  .fair-badge {
    max-width: 92px;
    line-height: 1.3;
  }

  .board-stage {
    min-height: 250px;
  }

  .board-cards {
    gap: 4px;
    padding-inline: 8px;
  }

  .board-card {
    padding: 6px;
    border-radius: 9px;
  }

  .spin-button {
    min-height: 62px;
  }

  .activity-layout {
    gap: 10px;
    padding: 28px 0 34px;
  }

  .rewards-section,
  .history-section {
    padding: 14px;
  }

  .compact-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .history-section .compact-section-heading {
    align-items: center;
    flex-direction: row;
  }

  .wallet-summary {
    width: 100%;
    min-width: 0;
  }

  .reward-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-card {
    min-height: 50px;
    padding: 8px;
  }

  .history-item {
    grid-template-columns: 1fr auto;
  }

  .history-cards {
    grid-column: 1 / -1;
  }

  .history-time {
    display: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .result-dialog {
    padding: 24px 14px 18px;
  }

  .result-dialog h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 10vw, 40px);
  }

  .result-hand-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-card-group > span {
    text-align: center;
  }

  .result-plus {
    display: none;
  }

  .result-hole-cards,
  .result-board-cards {
    min-height: 72px;
  }

  .result-playing-card {
    width: 52px;
    padding: 6px;
  }

  .result-playing-card strong {
    font-size: 20px;
  }

  .result-playing-card i {
    font-size: 27px;
  }

  .result-playing-card.lifted {
    transform: translateY(-8px);
  }

  .result-best {
    margin-bottom: 10px !important;
    font-size: 9px !important;
  }

  .result-prize {
    padding: 12px;
  }

  .dialog-action {
    min-height: 48px;
    margin-top: 14px;
  }
}

/* Кнопка запуска, прижатая к низу экрана на телефоне (пока основная кнопка за экраном) */
.spin-dock {
  display: none;
}

@media (max-width: 720px) {
  .spin-dock:not([hidden]) {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 30;
    display: flex;
    width: auto;
    min-height: 60px;
    margin: 0;
    box-shadow: 0 16px 40px rgba(6, 12, 40, 0.55), 0 10px 26px rgba(255, 46, 126, 0.3);
    animation: dock-in 220ms ease;
  }

  body.has-dock {
    padding-bottom: 86px;
  }

  body.has-dock .toast {
    bottom: 90px;
  }
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
