:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #070706;
  color: #f6f3eb;
  --bg: #070706;
  --text: #f6f3eb;
  --muted: #b6b0a4;
  --soft: #80796d;
  --line: rgba(246, 243, 235, 0.16);
  --paper: #f4f0e7;
  --paper-text: #131311;
  --paper-muted: #696456;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(246, 243, 235, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 243, 235, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
}

body::selection {
  background: var(--paper);
  color: var(--paper-text);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(246, 243, 235, 0.08);
  background: rgba(7, 7, 6, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 34px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  flex: 0 0 auto;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.secret-link {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 850;
  opacity: 0.34;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.secret-link:hover,
.secret-link:focus-visible {
  border-color: rgba(246, 243, 235, 0.18);
  color: var(--text);
  opacity: 1;
  outline: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 128px clamp(20px, 5vw, 72px) 86px;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(1120px, 100%);
}

.hero-text {
  min-width: 0;
}

.hero-photo {
  width: clamp(92px, 12vw, 138px);
  aspect-ratio: 1122 / 1402;
  margin: 22px 0 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
  text-wrap: pretty;
}

h1 {
  max-width: 8.6ch;
  font-size: clamp(4.4rem, 13vw, 11.5rem);
  font-weight: 850;
  line-height: 0.84;
  text-wrap: balance;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6.2vw, 6rem);
  font-weight: 820;
  line-height: 0.9;
  text-wrap: balance;
}

.tagline {
  max-width: 44rem;
  margin-top: 28px;
  color: var(--text);
  font-size: clamp(1.35rem, 3.1vw, 3rem);
  font-weight: 740;
  line-height: 1.08;
  text-wrap: balance;
}

.origin {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}

.hero-bio {
  max-width: 760px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.hero-bio .eyebrow {
  margin-bottom: 14px;
}

.hero-bio h2 {
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.hero-bio .copy {
  margin-top: 24px;
  color: var(--muted);
}

.hero-close {
  max-width: 680px;
  margin-top: 34px;
  color: var(--text);
  font-size: clamp(1.24rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.16;
  text-wrap: balance;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 8vw, 118px);
  align-items: start;
  padding: clamp(82px, 11vw, 142px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.copy {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  line-height: 1.62;
}

.copy p + p {
  margin-top: 24px;
}

.light {
  background: var(--paper);
  color: var(--paper-text);
}

.light .eyebrow,
.light .copy {
  color: var(--paper-muted);
}

.section-close {
  padding-top: 28px;
  border-top: 1px solid rgba(19, 19, 17, 0.16);
  color: var(--paper-text);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 780;
  line-height: 1.2;
  text-wrap: balance;
}

.direction-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.direction-list article {
  display: grid;
  grid-template-columns: minmax(160px, 0.46fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 820;
  letter-spacing: 0;
}

.direction-list p {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.5;
}

.progress-section {
  background:
    linear-gradient(180deg, rgba(246, 243, 235, 0.035), transparent 28%),
    var(--bg);
}

.progress-details {
  color: var(--muted);
}

.progress-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.progress-details summary::-webkit-details-marker {
  display: none;
}

.progress-details summary::after {
  content: "+";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  color: var(--soft);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 760;
}

.progress-details[open] summary::after {
  content: "-";
}

.progress-details summary span {
  grid-column: 1;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  font-weight: 820;
  line-height: 1.1;
}

.progress-details summary small {
  grid-column: 1;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 650;
  line-height: 1.45;
}

.progress-content {
  display: grid;
  gap: 0;
  padding-top: 8px;
}

.progress-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.progress-item p {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.56;
}

.contact {
  border-bottom: 0;
}

.roulette-section[hidden] {
  display: none;
}

.roulette-section {
  padding: clamp(82px, 11vw, 142px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(219, 35, 48, 0.12), transparent 28%),
    linear-gradient(135deg, #07150f, #060806 60%);
}

.roulette-shell {
  display: grid;
  gap: clamp(42px, 6vw, 90px);
}

.roulette-copy p:not(.eyebrow) {
  max-width: 36rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.58;
}

.roulette-game {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.roulette-stage {
  display: grid;
  gap: 20px;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
  padding: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #2b1d12 0 46%, #130d08 47% 67%, #d8bc68 68% 70%, #120d08 71% 100%);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(216, 188, 104, 0.42);
}

.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border: 13px solid #1a1209;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(216, 188, 104, 0.32),
    inset 0 0 38px rgba(0, 0, 0, 0.58);
  transition: transform 4.8s cubic-bezier(0.12, 0.76, 0.18, 1);
}

.wheel-ball {
  position: absolute;
  z-index: 3;
  top: 13.5%;
  left: 50%;
  width: clamp(10px, 2.4vw, 16px);
  height: clamp(10px, 2.4vw, 16px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 18%, #e7e3d7 36%, #8f8779 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.38),
    0 7px 13px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  will-change: top, left;
}

.wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 17px solid transparent;
  border-left: 17px solid transparent;
  border-top: 34px solid #f0d277;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35));
  transform: translateX(-50%);
}

.wheel-center {
  position: absolute;
  z-index: 2;
  inset: 39%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(216, 188, 104, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle, #20150d 0 46%, #090807 47% 100%);
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 850;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.55);
}

.roulette-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.roulette-ledger div {
  display: grid;
  gap: 5px;
  min-height: 68px;
  align-content: center;
  border: 1px solid rgba(246, 243, 235, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.roulette-ledger span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roulette-ledger strong {
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
}

.table-panel {
  overflow: hidden;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    #0a271b;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.chip-rack,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  appearance: none;
  font: inherit;
}

.chip {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  border: 5px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 0;
  background: #f4f0e7;
  color: #121210;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.chip-5 {
  background: #f4f0e7;
}

.chip-25 {
  background: #d8bc68;
}

.chip-100 {
  background: #db2330;
  color: #fff;
}

.chip-500 {
  background: #121210;
  color: #fff;
}

.chip.is-selected {
  outline: 3px solid #d8bc68;
  outline-offset: 3px;
}

.ghost-button,
.spin-action {
  min-height: 44px;
  border: 1px solid rgba(246, 243, 235, 0.18);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(246, 243, 235, 0.08);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.spin-action {
  min-width: 96px;
  border-color: #d8bc68;
  background: #d8bc68;
  color: var(--paper-text);
}

.ghost-button:disabled,
.spin-action:disabled,
.bet-cell:disabled,
.chip:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.betting-board {
  --cell-h: 64px;
  --gap: 2px;
  --zero-col: 54px;
  position: relative;
  display: grid;
  grid-template-columns: var(--zero-col) repeat(12, minmax(48px, 1fr));
  gap: var(--gap);
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(216, 188, 104, 0.08) 1px, transparent 1px),
    #0a271b;
  background-size: 56px 56px;
}

.bet-cell {
  position: relative;
  min-height: var(--cell-h);
  border: 1px solid rgba(246, 243, 235, 0.32);
  border-radius: 4px;
  padding: 8px;
  background: rgba(6, 22, 15, 0.84);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}

.bet-cell:hover,
.bet-cell:focus-visible {
  border-color: #d8bc68;
  outline: none;
}

.bet-cell.number-red {
  background: #a91722;
}

.bet-cell.number-black {
  background: #10100f;
}

.bet-cell.number-green {
  background: #087238;
}

.bet-cell.zero {
  grid-row: span 3;
}

.bet-cell.wide {
  min-height: 56px;
  grid-column: span 4;
  background: rgba(6, 22, 15, 0.92);
}

.bet-cell.color-red {
  background: #a91722;
}

.bet-cell.color-black {
  background: #10100f;
}

.bet-cell.color-green {
  background: #087238;
}

.bet-chip {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  border: 3px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 0;
  background: #d8bc68;
  color: #111;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.board-hot-zones {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  left: calc(16px + var(--zero-col) + var(--gap));
  height: calc((var(--cell-h) * 3) + (var(--gap) * 2));
  pointer-events: none;
}

.inside-bet {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.inside-bet.split-v {
  width: 22px;
  height: calc(var(--cell-h) * 0.58);
}

.inside-bet.split-h {
  width: calc((100% / 12) * 0.58);
  height: 22px;
}

.inside-bet.corner {
  width: 25px;
  height: 25px;
}

.inside-bet:hover,
.inside-bet:focus-visible {
  background: transparent;
  outline: none;
}

.inside-bet:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.inside-bet .bet-chip {
  right: 50%;
  bottom: 50%;
  min-width: 28px;
  height: 28px;
  font-size: 0.56rem;
  transform: translate(50%, 50%);
}

.roulette-message {
  min-height: 52px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.blackjack-game {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(42px, 7vw, 86px);
  border-top: 1px solid rgba(246, 243, 235, 0.16);
}

.blackjack-copy p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.58;
}

.blackjack-table {
  overflow: hidden;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 188, 104, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    #0a271b;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

.blackjack-topbar {
  padding: 16px;
  border-bottom: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.blackjack-ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blackjack-felt {
  position: relative;
  display: grid;
  gap: 54px;
  min-height: 440px;
  padding: clamp(18px, 4vw, 34px);
}

.table-warning {
  position: relative;
  z-index: 2;
  justify-self: center;
  max-width: 34rem;
  border: 1px solid rgba(216, 188, 104, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(246, 243, 235, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.hand-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.player-row {
  align-self: end;
}

.hand-label {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hand-row strong {
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 900;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 128px;
}

.player-hands {
  display: grid;
  gap: 14px;
}

.player-hand {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(246, 243, 235, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.player-hand.is-active {
  border-color: rgba(216, 188, 104, 0.72);
  box-shadow: inset 0 0 0 1px rgba(216, 188, 104, 0.2);
}

.hand-bet-label {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card {
  width: clamp(72px, 9vw, 96px);
  aspect-ratio: 0.68;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(19, 19, 17, 0.14);
  border-radius: 8px;
  padding: 9px;
  background: #f8f5ed;
  color: #151411;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.card.is-dealt {
  animation: deal-card 0.36s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes deal-card {
  from {
    opacity: 0;
    transform: translate(42px, -26px) rotate(7deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

.card.red-suit {
  color: #a91722;
}

.card-rank {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
}

.card-suit {
  align-self: center;
  justify-self: center;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.card-corner {
  justify-self: end;
  transform: rotate(180deg);
}

.card.back {
  border-color: rgba(216, 188, 104, 0.4);
  background:
    linear-gradient(135deg, rgba(216, 188, 104, 0.18) 25%, transparent 25% 50%, rgba(216, 188, 104, 0.18) 50% 75%, transparent 75%),
    #10100f;
  background-size: 18px 18px;
  color: transparent;
}

.shoe-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: min(32vw, 180px);
  aspect-ratio: 1;
  border: 2px solid rgba(216, 188, 104, 0.28);
  border-radius: 50%;
  color: rgba(216, 188, 104, 0.22);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 950;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.blackjack-controls {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-top: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.blackjack-actions {
  justify-content: flex-end;
}

.flappy-section[hidden] {
  display: none;
}

.flappy-section {
  padding: clamp(82px, 11vw, 142px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #111816 0%, #121d1f 58%, #0b0d0c 100%);
}

.flappy-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.flappy-copy p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.58;
}

.flappy-game {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 243, 235, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%),
    #0d1010;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.flappy-game:fullscreen {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
  background: #0d1010;
}

.flappy-game:fullscreen .flappy-canvas-wrap {
  aspect-ratio: auto;
  min-height: 0;
}

.flappy-game:fullscreen .flappy-leaderboard,
.flappy-game:fullscreen .flappy-message {
  display: none;
}

.flappy-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.flappy-hud div {
  display: grid;
  gap: 5px;
  min-height: 66px;
  align-content: center;
  border: 1px solid rgba(246, 243, 235, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.flappy-hud span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flappy-hud strong {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  font-weight: 900;
}

.flappy-canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #9fb8b7;
  overscroll-behavior: contain;
  touch-action: none;
}

.flappy-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.flappy-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.52));
  color: var(--text);
  text-align: center;
  pointer-events: none;
}

.flappy-overlay[hidden] {
  display: none;
}

.flappy-overlay strong {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
}

.flappy-overlay span {
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.45;
}

.flappy-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.flappy-controls button {
  touch-action: manipulation;
}

.flappy-leaderboard {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(246, 243, 235, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.flappy-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 14px;
  align-items: end;
}

.flappy-name-row h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.flappy-name-row label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flappy-name-row input {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(246, 243, 235, 0.18);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-transform: none;
}

.flappy-name-row input:focus {
  border-color: rgba(216, 188, 104, 0.8);
  outline: none;
}

.flappy-leaderboard ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flappy-leaderboard li {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(246, 243, 235, 0.1);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.032);
  color: var(--muted);
  font-size: 0.9rem;
}

.flappy-leaderboard li.is-pinned {
  border-color: rgba(216, 188, 104, 0.54);
  background: rgba(216, 188, 104, 0.12);
  color: var(--text);
}

.flappy-leaderboard li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flappy-leaderboard li strong {
  color: var(--text);
  font-size: 1rem;
}

.flappy-message {
  min-height: 48px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.flappy-music {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.flappy-trigger {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 7px;
  background: transparent;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: lowercase;
  cursor: pointer;
  opacity: 0.34;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.flappy-trigger:hover,
.flappy-trigger:focus-visible {
  border-color: rgba(246, 243, 235, 0.18);
  color: var(--text);
  opacity: 1;
  outline: none;
}

.gamble-modal[hidden] {
  display: none;
}

.gamble-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.gamble-card {
  width: min(100%, 520px);
  border: 1px solid rgba(246, 243, 235, 0.18);
  border-radius: 10px;
  padding: clamp(28px, 5vw, 44px);
  background: #0b0b09;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
}

.gamble-card h2 {
  max-width: 9ch;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
}

.gamble-card p:not(.eyebrow) {
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--soft);
  font-size: 0.92rem;
}

.footer-games {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (max-width: 1080px) {
  .roulette-game {
    grid-template-columns: 1fr;
  }

  .blackjack-game {
    grid-template-columns: 1fr;
  }

  .flappy-shell {
    grid-template-columns: 1fr;
  }

  .wheel-wrap {
    width: min(100%, 380px);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 16px;
    background: transparent;
    backdrop-filter: none;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.82rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 154px;
    align-items: end;
  }

  .hero-content {
    gap: 34px;
  }

  .hero-photo {
    width: 96px;
    margin-top: 22px;
  }

  h1 {
    font-size: clamp(3.9rem, 21vw, 8.4rem);
  }

  h2 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  .section {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .progress-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .roulette-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .roulette-game {
    grid-template-columns: 1fr;
  }

  .roulette-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .roulette-copy {
    padding: 0 8px;
  }

  .wheel-wrap {
    width: min(100%, 320px);
  }

  .table-toolbar,
  .roulette-ledger {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .table-toolbar {
    flex-direction: column;
  }

  .table-actions {
    width: 100%;
  }

  .table-actions button {
    flex: 1 1 0;
  }

  .betting-board {
    --cell-h: 38px;
    --zero-col: 34px;
    gap: 1px;
    grid-template-columns: var(--zero-col) repeat(12, minmax(21px, 1fr));
    padding: 8px;
  }

  .bet-cell {
    min-width: 0;
    padding: 4px 2px;
    border-radius: 3px;
    font-size: 0.72rem;
  }

  .bet-cell.wide {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .board-hot-zones {
    top: 8px;
    right: 8px;
    left: calc(8px + var(--zero-col) + var(--gap));
  }

  .inside-bet.split-v {
    width: 18px;
  }

  .inside-bet.split-h {
    height: 18px;
  }

  .inside-bet.corner {
    width: 20px;
    height: 20px;
  }

  .bet-chip {
    right: 2px;
    bottom: 2px;
    min-width: 22px;
    height: 22px;
    border-width: 2px;
    font-size: 0.48rem;
  }

  .roulette-message {
    padding: 0 8px 12px;
    font-size: 0.86rem;
  }

  .blackjack-felt {
    min-height: 380px;
    gap: 34px;
    padding: 16px 12px;
  }

  .hand-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cards {
    gap: 8px;
    min-height: 100px;
  }

  .player-hands {
    gap: 10px;
  }

  .player-hand {
    padding: 8px;
  }

  .card {
    width: clamp(54px, 18vw, 72px);
    border-radius: 6px;
    padding: 7px;
  }

  .blackjack-controls {
    flex-direction: column;
  }

  .blackjack-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .blackjack-actions button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .flappy-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .flappy-copy {
    padding: 0 8px;
  }

  .flappy-hud {
    grid-template-columns: 1fr;
  }

  .flappy-canvas-wrap {
    aspect-ratio: 10 / 13;
  }

  .flappy-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }

  .flappy-controls .ghost-button,
  .flappy-controls .spin-action {
    min-width: 0;
    padding: 0 10px;
  }

  .flappy-name-row,
  .flappy-leaderboard ol {
    grid-template-columns: 1fr;
  }

  .flappy-message {
    padding: 0 12px 12px;
    font-size: 0.88rem;
  }

  .roulette-ledger {
    flex-direction: column;
  }

  .direction-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-games {
    margin-left: 0;
  }
}
