:root {
  color-scheme: light;
  --ink: #101915;
  --soft-ink: rgba(16, 25, 21, 0.68);
  --quiet: rgba(16, 25, 21, 0.52);
  --line: rgba(16, 25, 21, 0.14);
  --panel: rgba(245, 248, 242, 0.7);
  --page-bg: #eef2ee;
  --section-bg: #f8faf6;
  --about-bg: #e8eee8;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-hover: rgba(255, 255, 255, 0.92);
  --hero-radial: rgba(97, 216, 66, 0.2);
  --hero-radial-soft: rgba(97, 216, 66, 0.08);
  --hero-wash-start: rgba(250, 252, 247, 0.84);
  --hero-wash-mid: rgba(250, 252, 247, 0.54);
  --hero-wash-glass: rgba(250, 252, 247, 0.08);
  --hero-wash-end: rgba(250, 252, 247, 0);
  --interior-wash: linear-gradient(90deg, rgba(250, 252, 247, 0.98), rgba(250, 252, 247, 0.9) 48%, rgba(250, 252, 247, 0.72));
  --green: #1a8a38;
  --green-dark: #0f6428;
  --green-soft: #dff3d8;
  --white: #fff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf8ee;
  --soft-ink: rgba(237, 248, 238, 0.72);
  --quiet: rgba(237, 248, 238, 0.54);
  --line: rgba(205, 255, 205, 0.16);
  --panel: rgba(9, 15, 13, 0.76);
  --page-bg: #06100c;
  --section-bg: #0a1511;
  --about-bg: #0d1914;
  --card-bg: rgba(9, 16, 13, 0.78);
  --card-hover: rgba(13, 24, 19, 0.94);
  --hero-radial: rgba(87, 228, 105, 0.18);
  --hero-radial-soft: rgba(87, 228, 105, 0.08);
  --hero-wash-start: rgba(7, 12, 10, 0.84);
  --hero-wash-mid: rgba(7, 12, 10, 0.5);
  --hero-wash-glass: rgba(7, 12, 10, 0.14);
  --hero-wash-end: rgba(7, 12, 10, 0.02);
  --interior-wash: linear-gradient(90deg, rgba(7, 12, 10, 0.96), rgba(7, 12, 10, 0.84) 52%, rgba(7, 12, 10, 0.68));
  --green: #52d765;
  --green-dark: #89f27e;
  --green-soft: rgba(82, 215, 101, 0.18);
  --white: #05100c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100svh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 30px clamp(20px, 5vw, 80px) clamp(34px, 6vw, 72px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 60% 48%, var(--hero-radial) 0 12%, var(--hero-radial-soft) 24%, transparent 46%),
    linear-gradient(90deg, rgba(17, 28, 16, 0.88) 0%, rgba(17, 28, 16, 0.82) 18%, rgba(17, 28, 16, 0.58) 34%, rgba(17, 28, 16, 0.22) 52%, rgba(17, 28, 16, 0) 72%),
    linear-gradient(90deg, var(--hero-wash-start) 0%, var(--hero-wash-mid) 28%, var(--hero-wash-glass) 52%, var(--hero-wash-end) 76%),
    url("/assets/ckwebsitebg3.png");
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, 68% center;
}

:root[data-theme="dark"] .hero-bg {
  background-image:
    radial-gradient(circle at 60% 48%, var(--hero-radial) 0 12%, var(--hero-radial-soft) 24%, transparent 46%),
    linear-gradient(90deg, rgba(5, 10, 8, 0.94) 0%, rgba(5, 10, 8, 0.88) 18%, rgba(5, 10, 8, 0.66) 34%, rgba(5, 10, 8, 0.28) 52%, rgba(5, 10, 8, 0.04) 72%),
    linear-gradient(90deg, var(--hero-wash-start) 0%, var(--hero-wash-mid) 28%, var(--hero-wash-glass) 52%, var(--hero-wash-end) 76%),
    url("/assets/ckwebsitebg3.png");
}

:root[data-theme="dark"] .hero-bg,
:root[data-theme="dark"] .interior {
  filter: saturate(0.92) brightness(0.72);
}

:root[data-theme="dark"] .nav-actions {
  border-color: rgba(228, 246, 232, 0.14);
  background: rgba(6, 10, 8, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(18, 25, 21, 0.88);
  border-color: rgba(228, 246, 232, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .topbar nav {
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}

:root[data-theme="dark"] .topbar nav a,
:root[data-theme="dark"] .topbar nav a:nth-last-child(-n + 4),
:root[data-theme="dark"] .nav-more summary {
  color: var(--soft-ink);
}

:root[data-theme="dark"] .button.secondary {
  border-color: rgba(228, 246, 232, 0.12);
  background: rgba(18, 25, 21, 0.78);
  color: var(--ink);
}

:root[data-theme="dark"] .feature-card {
  border-color: rgba(228, 246, 232, 0.16);
  background: rgba(8, 14, 11, 0.74);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(26, 138, 56, 0.18));
  transform: translateY(1px);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  color: var(--soft-ink);
  font-size: 17px;
  font-weight: 650;
}

.topbar nav a,
.nav-button,
.button {
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.topbar nav a {
  color: rgba(16, 25, 21, 0.78);
}

.topbar nav a:nth-last-child(-n + 4) {
  color: rgba(16, 25, 21, 0.9);
}

.topbar nav a:hover,
.nav-more summary:hover {
  color: var(--green-dark);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: rgba(16, 25, 21, 0.78);
  transition: color 160ms ease;
}

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

.nav-more summary::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.16em) rotate(45deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 172px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 18px 48px rgba(10, 19, 15, 0.16);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-more[open] .nav-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-more-menu a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--soft-ink);
}

.nav-more-menu a:hover {
  background: var(--green-soft);
}

.nav-button,
.button,
.theme-toggle {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(20px);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(10, 19, 15, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(10, 19, 15, 0.14);
}

.public-account {
  display: inline-flex;
  align-items: center;
}

.account-chip {
  min-height: 58px;
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  padding: 7px 16px 7px 8px;
  color: var(--ink);
  font-weight: 900;
}

.account-chip img {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.account-chip span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.account-chip small {
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 850;
}

.theme-toggle {
  width: 76px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 19, 15, 0.12);
}

.nav-button,
.button.primary {
  border-color: rgba(26, 138, 56, 0.28);
  background: var(--green);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(26, 138, 56, 0.18);
}

.status-cards,
.archive-grid,
.command-public-list {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto 48px;
}

.filter-bar {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto 24px;
}

.filter-bar input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
}

.command-groups {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto 48px;
  display: grid;
  gap: 20px;
}

.panel-list-card,
.command-public-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px;
}

.command-public-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-card .member-badges {
  grid-column: 1 / -1;
}

.member-badges span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.button.secondary {
  color: var(--ink);
}

.nav-button:hover,
.button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.nav-button:hover {
  background: var(--green-dark);
}

.hero-copy {
  width: min(760px, 52vw);
  display: grid;
  gap: 24px;
  margin-top: clamp(110px, 15vh, 180px);
  position: relative;
  z-index: 2;
}

.pill {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 7.4vw, 126px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-text,
.about-band > p,
.feature-grid p,
.feature-card p,
.page-head p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.hero-text {
  max-width: 650px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 550;
}

.hero-clarifier {
  width: fit-content;
  margin: -4px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--card-bg);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.hero-actions,
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
}

.cta-note {
  margin: -10px 0 0;
  color: var(--quiet);
  font-size: 15px;
  font-weight: 800;
}

.trusted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding-top: 28px;
  color: var(--quiet);
  font-size: 15px;
  font-weight: 700;
}

.trusted strong {
  color: var(--quiet);
  font-size: 19px;
}

.feature-card {
  position: absolute;
  right: clamp(18px, 4vw, 70px);
  bottom: clamp(28px, 6vh, 70px);
  width: min(430px, 32vw);
  display: grid;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 24px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 28px 82px rgba(16, 25, 21, 0.18);
  backdrop-filter: blur(18px);
}

.feature-card > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-card strong {
  display: block;
  margin: 0 0 6px;
  font-size: 19px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 950;
}

.info-band,
.eight-ball-band,
.suggestion-band,
.about-band,
.page-head,
.directory,
.commit-shell {
  padding-inline: clamp(20px, 5vw, 80px);
}

.info-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 90px);
  padding-block: clamp(66px, 8vw, 116px);
  background: var(--section-bg);
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.info-band h2,
.about-band h2,
.page-head h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  font-weight: 940;
}

.feature-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.feature-grid article {
  padding: 24px;
  background: var(--card-bg);
}

.feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.eight-ball-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 520px);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(66px, 8vw, 112px);
  background: var(--page-bg);
  border-top: 1px solid var(--line);
}

.eight-ball-copy {
  display: grid;
  gap: 18px;
}

.eight-ball-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  font-weight: 940;
}

.eight-ball-copy p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 21px;
  line-height: 1.55;
}

.eight-ball-panel {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.eight-ball {
  position: relative;
  width: min(330px, 70vw);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.44), transparent 13%),
    radial-gradient(circle at 64% 69%, rgba(82, 215, 101, 0.42), transparent 31%),
    linear-gradient(145deg, #101915 0%, #050706 62%, #000 100%);
  box-shadow: inset -34px -44px 80px rgba(0, 0, 0, 0.72), inset 20px 22px 52px rgba(255, 255, 255, 0.1), 0 34px 82px rgba(16, 25, 21, 0.24);
  cursor: pointer;
}

.eight-ball-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 215, 101, 0.3), transparent 58%);
  filter: blur(10px);
  animation: eight-ball-pulse 3.8s ease-in-out infinite;
}

.eight-ball-logo {
  position: absolute;
  z-index: 1;
  width: 58%;
  height: 58%;
  object-fit: contain;
  opacity: 0.42;
  filter: drop-shadow(0 10px 18px rgba(82, 215, 101, 0.32));
  transform-origin: 50% 58%;
  animation: eight-ball-logo-float 5.2s cubic-bezier(0.42, 0, 0.18, 1) infinite;
}

.eight-ball-window {
  position: relative;
  z-index: 2;
  width: 48%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 9px solid rgba(238, 242, 238, 0.94);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--green-dark), var(--green) 56%, #0b3a19 100%);
  color: var(--white);
  padding: 18px;
  text-align: center;
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 950;
  line-height: 1.08;
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.22), 0 0 34px rgba(82, 215, 101, 0.42);
}

.eight-ball.is-shaking {
  animation: eight-ball-shake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.eight-ball.is-shaking .eight-ball-logo {
  animation: eight-ball-logo-spin 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.eight-ball-form {
  width: 100%;
  display: grid;
  gap: 10px;
}

.eight-ball-form label {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 900;
}

.eight-ball-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.eight-ball-input-row input {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  backdrop-filter: blur(18px);
}

.suggestion-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 560px);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
  padding-block: clamp(66px, 8vw, 112px);
  background:
    linear-gradient(135deg, rgba(232, 255, 225, 0.56), transparent 44%),
    var(--section-bg);
  border-top: 1px solid var(--line);
}

.suggestion-copy {
  display: grid;
  gap: 18px;
}

.suggestion-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  font-weight: 940;
}

.suggestion-copy > p:last-of-type {
  max-width: 650px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 20px;
  line-height: 1.55;
}

.suggestion-preview,
.suggestion-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.suggestion-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.suggestion-preview article {
  padding: 20px;
  background: var(--card-bg);
}

.suggestion-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.suggestion-preview p,
.suggestion-preview small {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.suggestion-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.suggestion-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 900;
}

.suggestion-form input,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page-bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.45;
}

.suggestion-form input {
  min-height: 52px;
  padding: 0 16px;
}

.suggestion-form textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px 16px;
}

.suggestion-message {
  min-height: 22px;
  margin: 0;
  color: var(--soft-ink);
  font-weight: 800;
}

@keyframes eight-ball-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  15% {
    transform: translateX(-10px) rotate(-5deg);
  }
  30% {
    transform: translateX(9px) rotate(4deg);
  }
  45% {
    transform: translateX(-7px) rotate(-3deg);
  }
  60% {
    transform: translateX(6px) rotate(3deg);
  }
  75% {
    transform: translateX(-3px) rotate(-1deg);
  }
}

@keyframes eight-ball-logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(1);
  }
  35% {
    transform: translateY(-8px) rotate(3deg) scale(1.04);
  }
  70% {
    transform: translateY(5px) rotate(-1deg) scale(0.98);
  }
}

@keyframes eight-ball-logo-spin {
  0% {
    transform: rotate(-9deg) scale(0.98);
  }
  48% {
    transform: rotate(14deg) scale(1.1);
  }
  100% {
    transform: rotate(-4deg) scale(1);
  }
}

@keyframes eight-ball-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.about-band {
  display: grid;
  gap: 22px;
  padding-block: clamp(70px, 9vw, 128px);
  background: var(--about-bg);
}

.about-band h2 {
  max-width: 980px;
}

.about-band > p {
  max-width: 760px;
  font-size: 21px;
}

.interior {
  min-height: 100svh;
  background:
    var(--interior-wash),
    url("/assets/chipkittle-hero.png");
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
  background-position: center, right center;
  background-attachment: fixed;
}

.interior .topbar {
  padding: 30px clamp(20px, 5vw, 80px) 0;
}

.page-head {
  padding-top: clamp(66px, 9vw, 120px);
  padding-bottom: 34px;
}

.page-head h1 {
  max-width: 900px;
}

.page-head p {
  max-width: 650px;
  margin-top: 18px;
  font-size: 21px;
}

.directory,
.commit-shell,
.games-hub,
.game-shell {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.game-page {
  background-attachment: fixed;
}

.game-head {
  padding-bottom: 24px;
}

.games-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-inline: clamp(20px, 5vw, 80px);
}

.game-card {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.16);
  backdrop-filter: blur(18px);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--game-card-art);
  background-position: center;
  background-size: cover;
  opacity: 0.42;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 12, 10, 0.04), var(--card-bg) 78%);
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-card .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 250, 246, 0.92);
  backdrop-filter: blur(10px);
}

.dash-card {
  --game-card-art: url("/assets/dash-cover.svg");
}

.eight-card {
  --game-card-art: url("/assets/eight-cover.svg");
}

.runner-card {
  --game-card-art: url("/assets/runner-cover.svg");
}

.mines-card {
  --game-card-art: url("/assets/mines-cover.svg");
}

.catch-card {
  --game-card-art: url("/assets/catch-cover.svg");
}

.loaf-card {
  --game-card-art: url("/assets/loaf-cover.svg");
}

.blitz-card {
  --game-card-art: url("/assets/blitz-cover.svg");
}

.tower-card {
  --game-card-art: url("/assets/tower-cover.svg");
}

.relic-card {
  --game-card-art: radial-gradient(circle at 55% 42%, rgba(111, 255, 96, 0.7), transparent 24%), url("/assets/ckwebsitebg3.png");
}

.relax-card {
  --game-card-art: radial-gradient(circle at 72% 42%, rgba(255, 143, 42, 0.8), transparent 18%), url("/assets/chipkittle-hero.png");
}

.game-card h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.96;
}

.game-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.5;
}

.game-card .button {
  width: fit-content;
}

.casino-card {
  --game-card-art: radial-gradient(circle at 74% 18%, rgba(255, 218, 82, 0.92), transparent 18%),
    radial-gradient(circle at 18% 72%, rgba(38, 196, 99, 0.62), transparent 20%),
    url("/assets/chipkittle-hero.png");
}

.casino-page {
  --casino-panel: rgba(7, 17, 12, 0.78);
  --casino-border: rgba(252, 221, 142, 0.26);
  --casino-gold: #f6c85d;
  --casino-green: #6bff83;
}

.casino-head {
  padding-bottom: 18px;
}

.casino-account {
  width: fit-content;
  max-width: min(760px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--casino-border);
  border-radius: 999px;
  background: rgba(6, 15, 10, 0.72);
  color: #f6f1dd;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.casino-account img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.casino-account span {
  display: grid;
  gap: 2px;
}

.casino-account small {
  color: rgba(246, 241, 221, 0.72);
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(20px, 5vw, 80px) clamp(64px, 8vw, 110px);
}

.casino-table {
  min-height: 420px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--casino-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 220, 119, 0.08), transparent 32%),
    var(--casino-panel);
  color: #f8f4e6;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.blackjack-table {
  grid-column: 1 / -1;
}

.casino-table::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: radial-gradient(circle at 78% 18%, rgba(107, 255, 131, 0.18), transparent 28%);
}

.casino-table-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.casino-table h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
}

.casino-table-head > strong {
  min-width: 92px;
  text-align: right;
  color: var(--casino-gold);
  font-size: 26px;
}

.casino-table-head > strong.win {
  color: var(--casino-green);
}

.casino-table-head > strong.loss {
  color: #ff7777;
}

.slot-machine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.06));
}

.slot-reel {
  min-height: 128px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(246, 200, 93, 0.28);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 244, 186, 0.18), transparent 32%),
    #101b12;
  font-size: clamp(44px, 8vw, 74px);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.42);
}

.slot-reel.spinning {
  filter: blur(1px);
  transform: translateY(-2px);
}

.slot-reel.pop {
  animation: slotPop 280ms ease-out;
}

@keyframes slotPop {
  0% { transform: scale(0.9); }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.casino-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.casino-controls label {
  display: grid;
  gap: 6px;
  color: rgba(248, 244, 230, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.casino-controls input {
  width: 160px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(246, 200, 93, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8dc;
  font: inherit;
  font-weight: 800;
}

.casino-status {
  min-height: 48px;
  margin: 0;
  color: rgba(248, 244, 230, 0.76);
  line-height: 1.45;
}

.crash-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(107, 255, 131, 0.16);
  background: rgba(0, 0, 0, 0.34);
}

.crash-stage canvas {
  width: 100%;
  height: auto;
  display: block;
}

.crash-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 11, 0.78);
  color: var(--casino-green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blackjack-felt {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(107, 255, 131, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(107, 255, 131, 0.13), transparent 30%),
    linear-gradient(145deg, #102317, #07100b);
}

.hand-row {
  display: grid;
  gap: 10px;
}

.hand-row > span {
  color: rgba(248, 244, 230, 0.78);
  font-weight: 900;
}

.card-row {
  min-height: 126px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.playing-card {
  width: 82px;
  height: 116px;
  display: grid;
  align-content: space-between;
  padding: 10px;
  border-radius: 12px;
  background: #fff9e8;
  color: #10120f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.playing-card b {
  font-size: 24px;
}

.playing-card small {
  justify-self: end;
  font-size: 30px;
}

.red-card {
  color: #c72c3c;
}

.hidden-card {
  place-items: center;
  background: linear-gradient(135deg, #1f5d34, #111912);
  color: var(--casino-gold);
  font-size: 34px;
  font-weight: 900;
}

.blackjack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blackjack-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(246, 200, 93, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8dc;
  font: inherit;
  font-weight: 900;
}

.casino-page button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.casino-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: end;
  margin: 28px 0 18px;
  padding: 0 clamp(20px, 5vw, 80px);
}

.casino-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.7rem);
  line-height: 0.92;
}

.casino-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 80px) 18px;
  padding: 14px;
  border: 1px solid rgba(246, 200, 93, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(8, 22, 14, 0.84), rgba(27, 18, 8, 0.72));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.casino-toolbar label {
  display: grid;
  gap: 4px;
  color: rgba(255, 246, 214, 0.66);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.casino-toolbar input {
  min-width: 190px;
  border: 1px solid rgba(246, 200, 93, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: #fff7d8;
  padding: 10px 14px;
}

.casino-toolbar p {
  flex: 1 1 280px;
  margin: 0;
  color: rgba(255, 246, 214, 0.76);
  font-size: 0.9rem;
}

.casino-pill {
  border: 1px solid rgba(246, 200, 93, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5b1f, #4f2e13);
  color: #fff2bd;
  padding: 10px 16px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 10px 22px rgba(0,0,0,0.24);
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.casino-pill:hover:not(:disabled),
.casino-chip-row button:hover:not(:disabled),
.blackjack-actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.casino-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  padding: 0 clamp(20px, 5vw, 80px) clamp(64px, 8vw, 110px);
}

.casino-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.casino-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
}

.casino-panel {
  border: 1px solid rgba(246, 200, 93, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(107, 255, 131, 0.09), transparent 38%),
    rgba(5, 13, 9, 0.86);
  padding: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.casino-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.casino-panel h2 {
  margin: 0;
  color: #fff4c4;
  font-size: 1rem;
}

.casino-panel-head span {
  color: rgba(246, 200, 93, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.casino-feed {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.casino-feed-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.casino-feed-item.win {
  border-color: rgba(107, 255, 131, 0.28);
}

.casino-feed-item.loss {
  border-color: rgba(255, 95, 95, 0.25);
}

.casino-feed-item strong {
  color: #fff7d8;
  font-size: 0.9rem;
}

.casino-feed-item span,
.casino-feed-item small,
.casino-empty {
  color: rgba(255, 246, 214, 0.68);
  font-size: 0.82rem;
}

.achievement-grid {
  display: grid;
  gap: 10px;
}

.achievement-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(246, 200, 93, 0.24);
  background: linear-gradient(135deg, rgba(246, 200, 93, 0.14), rgba(107, 255, 131, 0.08));
}

.achievement-card strong,
.achievement-card span {
  display: block;
}

.achievement-card strong {
  color: #fff0aa;
}

.achievement-card span {
  margin-top: 4px;
  color: rgba(255, 246, 214, 0.72);
  font-size: 0.82rem;
}

.casino-table {
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.casino-table:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 200, 93, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.casino-table-head strong.bump {
  animation: casino-bump 460ms ease;
}

.casino-layout .slot-machine {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(246, 200, 93, 0.28);
  background:
    linear-gradient(90deg, transparent 32.5%, rgba(246,200,93,0.14) 33%, transparent 34%, transparent 65.5%, rgba(246,200,93,0.14) 66%, transparent 67%),
    radial-gradient(circle at 50% 0%, rgba(246, 200, 93, 0.16), rgba(0,0,0,0.18));
  padding: 16px;
}

.casino-layout .slot-reel {
  min-height: 112px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(0,0,0,0.22));
  box-shadow: inset 0 8px 22px rgba(255,255,255,0.08), inset 0 -12px 24px rgba(0,0,0,0.2);
  transition: transform 120ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.slot-reel[data-tier="rare"] {
  box-shadow: inset 0 8px 22px rgba(255,255,255,0.08), 0 0 26px rgba(107, 255, 131, 0.16);
}

.slot-reel[data-tier="epic"],
.slot-reel[data-tier="legendary"] {
  box-shadow: inset 0 8px 22px rgba(255,255,255,0.08), 0 0 30px rgba(203, 132, 255, 0.22);
}

.slot-reel.paying {
  border-color: rgba(107, 255, 131, 0.82);
  animation: casino-glow 900ms ease infinite alternate;
}

.slot-reel.pop,
.playing-card {
  animation: casino-pop 360ms cubic-bezier(.2, 1.55, .44, 1);
}

.slot-payline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #6bff83, transparent);
  opacity: 0;
  transform: scaleX(0);
  pointer-events: none;
}

.slot-payline.show {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 420ms ease, opacity 260ms ease;
}

.casino-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.casino-chip-row button {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 4px dashed rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle, #f9dc77 0 46%, #b96d16 48% 68%, #63360f 70%);
  color: #2f1908;
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
  transition: transform 160ms ease, filter 160ms ease;
}

.casino-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}

.casino-check input {
  width: auto !important;
  min-height: auto;
}

.crash-stage {
  border-radius: 20px;
}

.crash-countdown,
.crash-center-readout,
.crash-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.crash-countdown {
  top: 14px;
  width: min(420px, calc(100% - 40px));
  display: grid;
  gap: 8px;
  text-align: center;
  color: #fff6c9;
  font-weight: 950;
}

.crash-countdown span {
  height: 6px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6c85d, #6bff83);
  box-shadow: 0 0 18px rgba(107, 255, 131, 0.4);
}

.crash-center-readout {
  top: 38%;
  display: grid;
  gap: 6px;
  text-align: center;
  text-shadow: 0 8px 26px rgba(0,0,0,0.55);
}

.crash-center-readout strong {
  color: #9dff6b;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.9;
}

.crash-center-readout span {
  color: rgba(255, 246, 214, 0.82);
  font-weight: 850;
}

.crash-overlay {
  top: 46%;
  opacity: 0;
  border: 1px solid rgba(255, 95, 95, 0.42);
  border-radius: 16px;
  background: rgba(59, 4, 4, 0.78);
  color: #ffd0d0;
  padding: 12px 18px;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 1000;
  letter-spacing: 0.04em;
  transition: opacity 180ms ease, transform 180ms ease;
}

.crash-overlay.show {
  opacity: 1;
  transform: translateX(-50%) scale(1.03);
}

.crash-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crash-bet-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(246, 200, 93, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.crash-bet-panel[data-state="active"] {
  border-color: rgba(107, 255, 131, 0.5);
  box-shadow: 0 0 24px rgba(107, 255, 131, 0.1);
}

.crash-bet-panel[data-state="cashed"] {
  border-color: rgba(157, 255, 107, 0.5);
}

.crash-bet-panel[data-state="queued"] {
  border-color: rgba(246, 200, 93, 0.48);
}

.crash-bet-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.crash-bet-panel strong {
  color: #fff4c4;
}

.crash-bet-panel span,
.crash-bet-panel small {
  color: rgba(255, 246, 214, 0.68);
}

.crash-bet-panel label {
  display: grid;
  gap: 6px;
  color: rgba(248, 244, 230, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.crash-bet-panel input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(246, 200, 93, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8dc;
  font: inherit;
  font-weight: 850;
}

.casino-secondary-button {
  min-height: 40px;
  border: 1px solid rgba(246, 200, 93, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff4c4;
  font: inherit;
  font-weight: 900;
}

.crash-badge {
  animation: casino-pulse 1.4s ease infinite;
}

.crash-markers {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crash-markers span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff4c4;
  font-size: 0.76rem;
  font-weight: 900;
}

.crash-markers .win {
  color: #9dff6b;
}

.crash-markers .loss {
  color: #ff8f8f;
}

.crash-markers .low {
  color: #ff9d9d;
}

.crash-markers .medium {
  color: #f8e8a0;
}

.crash-markers .high {
  color: #9dff6b;
  box-shadow: 0 0 18px rgba(107, 255, 131, 0.26);
}

.crash-live-feed {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.crash-live-feed span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 246, 214, 0.74);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  animation: casino-pop 260ms ease;
}

.casino-modal {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  color: #fff4c4;
}

.casino-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.casino-modal-card {
  width: min(640px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(246, 200, 93, 0.3);
  border-radius: 22px;
  background: #07110c;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.casino-modal-card pre {
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  color: #9dff6b;
  white-space: pre-wrap;
}

.casino-modal-close {
  justify-self: end;
}

.blackjack-felt {
  background:
    radial-gradient(circle at 50% 30%, rgba(107, 255, 131, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(4, 55, 29, 0.78), rgba(2, 22, 14, 0.96));
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.3);
}

.playing-card {
  animation-delay: var(--delay, 0ms);
  animation-fill-mode: both;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.split-card-stack {
  display: grid;
  gap: 6px;
}

.split-card-stack > div {
  display: flex;
  gap: 8px;
}

.split-card-stack small {
  color: rgba(255, 246, 214, 0.74);
  font-weight: 900;
  text-transform: uppercase;
}

.casino-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(246, 200, 93, 0.28);
  border-radius: 18px;
  background: rgba(7, 17, 12, 0.92);
  color: #fff4c4;
  padding: 13px 16px;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.casino-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.casino-toast[data-type="win"] {
  color: #9dff6b;
}

.casino-toast[data-type="loss"] {
  color: #ff9d9d;
}

@keyframes casino-pop {
  from { transform: translateY(10px) scale(0.84); opacity: 0.4; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes casino-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes casino-glow {
  from { box-shadow: 0 0 8px rgba(107, 255, 131, 0.18); }
  to { box-shadow: 0 0 28px rgba(107, 255, 131, 0.5); }
}

@keyframes casino-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding-inline: clamp(20px, 5vw, 80px);
}

.game-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.16);
  backdrop-filter: blur(18px);
}

.game-stage canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.mines-shell {
  grid-template-columns: minmax(320px, 520px) 280px;
  justify-content: start;
  align-items: start;
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  min-height: 420px;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  padding: clamp(14px, 2.5vw, 22px);
  background: var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.16);
  backdrop-filter: blur(18px);
}

.mine-tile {
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: inherit;
  font-size: clamp(18px, 3.4vw, 30px);
  font-weight: 950;
  cursor: pointer;
}

.mine-tile:hover {
  transform: translateY(-2px);
}

.mine-tile:disabled {
  cursor: default;
}

.mine-tile.is-safe {
  background: rgba(214, 154, 60, 0.22);
}

.mine-tile.is-revealed {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(16, 25, 21, 0.10);
}

.mine-tile.is-scouted {
  background: rgba(116, 239, 112, 0.18);
  color: var(--green-dark);
}

.mine-tile.is-warded {
  background: rgba(79, 145, 242, 0.18);
  color: #4f91f2;
}

.mine-tile.is-mine {
  background: rgba(255, 123, 123, 0.22);
  color: #ff7b7b;
}

.game-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.14);
  backdrop-filter: blur(18px);
}

.game-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.game-stat span {
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 850;
}

.game-stat strong {
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1;
}

.game-controls {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.game-controls .button,
.score-form .button {
  width: 100%;
  min-height: 52px;
  border: 0;
  cursor: pointer;
}

.game-panel > label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 850;
}

.game-panel > label input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.tower-shell {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

.tower-panel {
  gap: 10px;
  border-color: rgba(242, 177, 74, 0.24);
  background:
    linear-gradient(180deg, rgba(55, 32, 15, 0.58), rgba(11, 18, 14, 0.92)),
    var(--card-bg);
}

.tower-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tower-stats-grid .game-stat {
  display: grid;
  gap: 4px;
  align-items: start;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(112, 66, 25, 0.38), rgba(20, 24, 17, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 205, 86, 0.08);
}

.tower-stats-grid .game-stat strong {
  font-size: 26px;
}

.tower-section {
  display: grid;
  gap: 8px;
}

.tower-section > span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-choice,
.tower-shop {
  display: grid;
  gap: 8px;
}

.map-choice,
.tower-choice {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background:
    linear-gradient(135deg, rgba(107, 65, 25, 0.52), rgba(9, 29, 20, 0.8)),
    var(--card-bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-choice span,
.tower-choice span {
  color: #ffd97d;
  font-size: 14px;
  font-weight: 950;
}

.map-choice small,
.tower-choice small {
  color: color-mix(in srgb, var(--soft-ink) 78%, #ffd97d);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.map-choice.is-active,
.tower-choice.is-active {
  border-color: rgba(255, 203, 79, 0.74);
  background:
    linear-gradient(135deg, rgba(55, 145, 55, 0.38), rgba(126, 72, 22, 0.62)),
    var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 221, 109, 0.24), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.map-choice:disabled,
.tower-choice:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.tower-inspector {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(104, 62, 27, 0.42), rgba(12, 24, 18, 0.8)),
    var(--card-bg);
}

.tower-inspector span {
  color: #ffd97d;
  font-size: 15px;
  font-weight: 950;
}

.tower-inspector small {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.tower-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.tower-paths {
  display: grid;
  gap: 6px;
}

.tower-paths button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--path-color, var(--green)) 18%, transparent), rgba(45, 24, 12, 0.64)),
    var(--card-bg);
  color: #fff3bf;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.tower-paths button span {
  color: var(--path-color, var(--green-dark));
}

.tower-paths button small {
  font-size: 11px;
  line-height: 1.25;
}

.tower-paths button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.tower-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7bd43, #a95e19);
  color: #fff8dc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.tower-actions button:last-child {
  background: linear-gradient(180deg, rgba(77, 48, 26, 0.9), rgba(29, 19, 14, 0.9));
  color: #ffd97d;
}

.score-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.score-form[hidden],
.claim-card[hidden] {
  display: none;
}

.score-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 850;
}

.score-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.claim-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--green-soft);
}

.claim-card span,
.claim-card small {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 850;
}

.claim-card strong {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.claim-card code {
  color: var(--green-dark);
  font-weight: 950;
}

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.claim-actions button,
.claim-direct-form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.claim-direct-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.claim-direct-form label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 850;
}

.claim-direct-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
}

.leaderboard {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.leaderboard-head,
.leaderboard li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-head span {
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 950;
}

.leaderboard-head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--card-bg);
  color: var(--soft-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--card-bg);
}

.leaderboard li span {
  min-width: 0;
  overflow: hidden;
  color: var(--soft-ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard li strong {
  color: var(--green-dark);
  font-size: 18px;
}

.table-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-form,
.shot-meter,
.player-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.room-form input[type="text"],
.room-form input[type="search"] {
  min-height: 46px;
}

.room-form .button,
.shot-meter .button {
  width: 100%;
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.room-form-grid {
  display: grid;
  gap: 10px;
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--card-hover);
}

.shot-meter label {
  display: grid;
  gap: 8px;
}

.power-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 40, 28, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.power-fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background:
    linear-gradient(90deg, rgba(101, 255, 128, 0.96), rgba(226, 255, 180, 0.98));
  box-shadow: 0 0 18px rgba(101, 255, 128, 0.38);
}

.power-hint {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.player-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--card-bg);
}

.player-card strong {
  font-size: 16px;
}

.player-card span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.player-card.is-turn {
  border-color: rgba(26, 138, 56, 0.4);
  box-shadow: inset 0 0 0 1px rgba(26, 138, 56, 0.16);
}

.player-card.is-you strong {
  color: var(--green-dark);
}

.player-card.is-winner {
  background: rgba(82, 215, 101, 0.14);
}

.multiplayer-board {
  position: relative;
}

.multiplayer-board canvas {
  background: linear-gradient(180deg, rgba(9, 38, 23, 0.9), rgba(8, 32, 21, 0.96));
}

.pool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  padding: 0 clamp(20px, 5vw, 80px) clamp(56px, 8vw, 104px);
}

.pool-main,
.pool-sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pool-stage-bar,
.pool-bottom-grid {
  display: grid;
  gap: 12px;
}

.pool-stage-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
}

.pool-badge,
.pool-card {
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.14);
  backdrop-filter: blur(18px);
}

.pool-badge {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.pool-badge span,
.pool-card-head span,
.pool-rule-list li,
.player-card small {
  color: var(--soft-ink);
}

.pool-badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pool-badge strong {
  color: var(--green-dark);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}

.pool-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pool-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pool-card-head strong {
  font-size: 18px;
}

.pool-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 58% 44%, rgba(95, 255, 127, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(9, 22, 18, 0.96), rgba(6, 12, 10, 0.98));
  box-shadow: 0 40px 110px rgba(8, 16, 12, 0.28);
}

.pool-stage canvas {
  position: relative;
  z-index: 1;
  background: transparent;
  aspect-ratio: 1180 / 680;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.pool-stage canvas.is-placing {
  cursor: grab;
}

.pool-stage canvas.is-aiming {
  cursor: grabbing;
}

.pool-stage-message {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(7, 16, 13, 0.72);
  color: rgba(237, 247, 239, 0.94);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.pool-shot-preview {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 16, 13, 0.7);
  color: rgba(237, 247, 239, 0.94);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.pool-shot-preview::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9df88a, #39b664);
  box-shadow: 0 0 18px rgba(116, 239, 112, 0.62);
}

.pool-bottom-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.pool-objective {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pool-objective-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.pool-objective-row span {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 850;
}

.pool-objective-row strong {
  text-align: right;
  font-size: 15px;
}

.pool-room-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pool-rack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rack-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f8fbf7;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.14);
}

.rack-pill.is-solids {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent), #236645;
}

.rack-pill.is-stripes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(180deg, #f5f5f1 0, #f5f5f1 28%, #225f84 28%, #225f84 72%, #f5f5f1 72%, #f5f5f1 100%);
  color: #18302b;
}

.rack-pill.is-eight {
  background: linear-gradient(180deg, rgba(116, 239, 112, 0.12), transparent), #0b0f0d;
}

.rack-pill.is-pocketed {
  opacity: 0.28;
  filter: grayscale(0.45);
}

.rack-pill.is-target {
  border-color: rgba(116, 239, 112, 0.55);
  box-shadow: inset 0 0 0 1px rgba(116, 239, 112, 0.18), 0 0 0 1px rgba(116, 239, 112, 0.14);
}

.pool-last-shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(12, 22, 18, 0.66);
  color: rgba(244, 250, 246, 0.92);
  font-size: 14px;
  line-height: 1.55;
}

.pool-rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.pool-rule-list li {
  line-height: 1.5;
}

.player-card small {
  font-size: 12px;
  font-weight: 850;
}

.table-note.is-alert {
  color: var(--green-dark);
}

.status-pill.is-live {
  background: rgba(92, 230, 103, 0.16);
  color: #2d8e45;
}

.status-pill.is-waiting {
  background: rgba(155, 171, 161, 0.18);
  color: var(--soft-ink);
}

.status-pill.is-finished {
  background: rgba(19, 20, 24, 0.86);
  color: rgba(116, 239, 112, 0.92);
}

.status-pill.is-alert {
  background: rgba(116, 239, 112, 0.18);
  color: var(--green-dark);
}

.status-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -18px 0 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(82, 215, 101, 0.22), transparent 34%),
    var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.12);
  backdrop-filter: blur(18px);
}

.status-hero-card strong {
  display: block;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
  margin-bottom: 10px;
}

.status-hero-card p {
  max-width: 620px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.55;
}

.status-hero-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  font-weight: 950;
}

.status-hero-card.is-online > span {
  background: var(--green-soft);
  color: var(--green-dark);
}

.member-grid,
.commit-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.12);
}

.commit-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -18px 0 24px;
}

.commit-summary-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 20px 55px rgba(16, 25, 21, 0.1);
  backdrop-filter: blur(18px);
}

.commit-summary-grid strong {
  font-size: 26px;
  line-height: 1;
}

.commit-summary-grid span {
  color: var(--soft-ink);
  font-weight: 750;
}

.member-card,
.commit-row,
.empty {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(160px, 0.22fr) minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 24px;
}

.member-card > *,
.member-profile-hero > *,
.member-profile-card > * {
  position: relative;
  z-index: 1;
}

.member-card-link {
  color: inherit;
  text-decoration: none;
}

.member-card strong,
.commit-row strong {
  font-size: 20px;
}

.member-card span,
.commit-row code {
  color: var(--green-dark);
  font-weight: 900;
}

.member-card p {
  margin: 0;
  color: var(--soft-ink);
}

.member-note {
  display: grid;
  gap: 8px;
}

.member-note small,
.member-note em,
.member-note q {
  color: var(--quiet);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.member-note q {
  color: var(--soft-ink);
}

.member-cosmetics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-cosmetics b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(26, 138, 56, 0.18);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.member-profile-shell {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 5vw, 64px);
}

.member-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: 48svh;
}

.member-profile-hero::before,
.member-profile-card::before,
.member-card::before,
.member-card::after {
  pointer-events: none;
  z-index: 0;
}

.member-profile-hero h1 {
  max-width: 860px;
  margin: 14px 0 18px;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.member-profile-hero p {
  max-width: 700px;
  color: var(--soft-ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.quiet-link {
  color: var(--green-dark);
  font-weight: 900;
}

.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.member-profile-meta span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  padding: 0 14px;
  color: var(--soft-ink);
  font-weight: 850;
}

.member-profile-card,
.member-profile-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 30px 86px rgba(16, 25, 21, 0.12);
  backdrop-filter: blur(18px);
}

.member-profile-card {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  overflow: hidden;
  padding: 26px;
}

.cosmetic-green-spark-aura,
.cosmetic-artifact-glimmer {
  border-color: rgba(82, 215, 101, 0.24);
  box-shadow: 0 18px 56px rgba(82, 215, 101, 0.14), 0 30px 86px rgba(16, 25, 21, 0.1);
}

.cosmetic-green-spark-aura::before,
.cosmetic-artifact-glimmer::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 20%, rgba(137, 242, 126, 0.2), transparent 7%),
    radial-gradient(circle at 82% 28%, rgba(82, 215, 101, 0.16), transparent 6%),
    radial-gradient(circle at 58% 82%, rgba(137, 242, 126, 0.12), transparent 8%);
  opacity: 0.9;
}

.cosmetic-artifact-glimmer::before {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 245, 182, 0.2), transparent 7%),
    radial-gradient(circle at 68% 24%, rgba(82, 215, 101, 0.18), transparent 9%),
    linear-gradient(135deg, transparent 22%, rgba(255, 255, 255, 0.12), transparent 40%);
}

.cosmetic-crumb-crown strong::before,
.member-profile-hero.cosmetic-crumb-crown h1::before {
  content: "crowned ";
  color: var(--green-dark);
}

.cosmetic-crown {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(244, 200, 95, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 229, 154, 0.35), rgba(244, 200, 95, 0.14));
  color: #7a5204;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cosmetic-horn-shadow-trim,
.cosmetic-bread-cathedral-frame {
  border-color: rgba(26, 138, 56, 0.18);
  box-shadow: 0 24px 72px rgba(7, 18, 12, 0.12);
}

.cosmetic-horn-shadow-trim::after,
.cosmetic-bread-cathedral-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(6, 14, 11, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(26, 138, 56, 0.1), transparent 32%);
  opacity: 0.78;
}

.cosmetic-horn-shadow-trim::before {
  content: "";
  position: absolute;
  inset: 12px auto auto 12px;
  width: 54px;
  height: 54px;
  border-top: 2px solid rgba(13, 32, 22, 0.24);
  border-left: 2px solid rgba(13, 32, 22, 0.24);
  border-radius: 18px 0 0 0;
}

.cosmetic-ck-nameplate strong,
.member-profile-hero.cosmetic-ck-nameplate h1 {
  color: var(--green-dark);
  text-shadow: 0 8px 30px rgba(26, 138, 56, 0.24);
}

.cosmetic-ck-nameplate span:first-of-type,
.member-profile-hero.cosmetic-ck-nameplate .member-profile-meta span:first-child {
  background: var(--green);
  color: var(--white);
  border-color: rgba(26, 138, 56, 0.35);
}

.cosmetic-chalk-horns {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 18px 54px rgba(255, 255, 255, 0.1);
}

.cosmetic-chalk-horns strong::after,
.member-profile-hero.cosmetic-chalk-horns h1::after {
  content: "  horns polished";
  color: var(--quiet);
  font-size: 0.18em;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.cosmetic-midnight-fur-wash {
  background:
    radial-gradient(circle at 82% 18%, rgba(82, 215, 101, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(5, 14, 11, 0.94), rgba(9, 24, 18, 0.82)),
    var(--card-bg);
  color: #edf8ee;
  border-color: rgba(137, 242, 126, 0.14);
}

.cosmetic-midnight-fur-wash p,
.cosmetic-midnight-fur-wash small,
.cosmetic-midnight-fur-wash em,
.cosmetic-midnight-fur-wash q {
  color: rgba(237, 248, 238, 0.74);
}

.cosmetic-forbidden-green-flame {
  border-color: rgba(82, 215, 101, 0.26);
  box-shadow: 0 0 32px rgba(82, 215, 101, 0.14), 0 28px 90px rgba(13, 105, 44, 0.14);
}

.cosmetic-forbidden-green-flame::before {
  content: "";
  position: absolute;
  inset: auto -12% -48% -12%;
  height: 78%;
  background:
    radial-gradient(ellipse at 35% 100%, rgba(82, 215, 101, 0.24), transparent 58%),
    radial-gradient(ellipse at 62% 100%, rgba(137, 242, 126, 0.18), transparent 54%);
  filter: blur(3px);
}

.cosmetic-bread-cathedral-frame {
  border-color: rgba(192, 148, 65, 0.2);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 246, 214, 0.44), transparent 24%),
    linear-gradient(135deg, rgba(255, 246, 214, 0.36), rgba(223, 243, 216, 0.52)),
    var(--card-bg);
}

.cosmetic-bread-cathedral-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(192, 148, 65, 0.08), transparent),
    radial-gradient(circle at 0 0, rgba(192, 148, 65, 0.2), transparent 18%),
    radial-gradient(circle at 100% 100%, rgba(26, 138, 56, 0.16), transparent 20%);
  opacity: 0.72;
}

.cosmetic-ancient-artifact-badge .member-badges span:first-child,
.cosmetic-founding-menace-badge .member-badges span:first-child {
  background: #111915;
  color: #bdf8a4;
  border-color: rgba(82, 215, 101, 0.36);
}

.cosmetic-founding-menace-badge {
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 20px 62px rgba(239, 68, 68, 0.1);
}

.cosmetic-loaf-lord-title strong::after,
.member-profile-hero.cosmetic-loaf-lord-title h1::after,
.cosmetic-keeper-of-crumbs strong::after,
.member-profile-hero.cosmetic-keeper-of-crumbs h1::after,
.cosmetic-artifact-oracle-title strong::after,
.member-profile-hero.cosmetic-artifact-oracle-title h1::after {
  display: inline-block;
  margin-left: 10px;
  border: 1px solid rgba(26, 138, 56, 0.24);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 0.15em 0.45em;
  font-size: 0.18em;
  font-weight: 950;
  vertical-align: middle;
}

.cosmetic-loaf-lord-title strong::after,
.member-profile-hero.cosmetic-loaf-lord-title h1::after {
  content: "loaf lord";
}

.cosmetic-keeper-of-crumbs strong::after,
.member-profile-hero.cosmetic-keeper-of-crumbs h1::after {
  content: "keeper";
}

.cosmetic-artifact-oracle-title strong::after,
.member-profile-hero.cosmetic-artifact-oracle-title h1::after {
  content: "oracle";
}

.member-profile-card img {
  width: min(220px, 70%);
  aspect-ratio: 1;
  object-fit: contain;
}

.member-profile-card q {
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-profile-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 210px;
  padding: 24px;
}

.member-profile-grid h2 {
  margin: 0;
  font-size: 24px;
}

.cosmetic-list,
.inventory-list {
  display: grid;
  gap: 10px;
}

.cosmetic-list span,
.inventory-list span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  padding: 12px 14px;
}

.cosmetic-list small,
.inventory-list b {
  color: var(--quiet);
  font-size: 13px;
}

.commit-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(150px, auto);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
}

.commit-row:hover,
.member-card:hover {
  background: var(--card-hover);
}

.commit-row small,
.empty {
  color: var(--soft-ink);
}

.commit-row > span {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.commit-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.commit-title-line em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.commit-details {
  display: grid;
  gap: 5px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.45;
}

.commit-details span {
  position: relative;
  padding-left: 16px;
}

.commit-details span::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.empty {
  margin: 0;
  padding: 24px;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero {
    padding-inline: 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero-bg {
    background-position: center, center, center, 64% center;
  }

  .hero-copy {
    width: 100%;
    max-width: 700px;
    min-height: calc(100svh - 118px);
    align-content: end;
    margin-top: 20px;
    padding-bottom: 22px;
  }

  .feature-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 20px;
  }

  .info-band,
  .eight-ball-band,
  .suggestion-band {
    grid-template-columns: 1fr;
  }

  .member-card,
  .member-profile-hero,
  .member-profile-grid,
  .commit-row,
  .games-hub,
  .mines-shell,
  .game-shell {
    grid-template-columns: 1fr;
  }

  .commit-summary-grid {
    grid-template-columns: 1fr;
  }

  .status-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .pool-layout,
  .pool-bottom-grid,
  .pool-stage-bar {
    grid-template-columns: 1fr;
  }

  .pool-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-controls,
  .score-form,
  .claim-card,
  .leaderboard,
  .room-form,
  .shot-meter,
  .player-list,
  .table-note {
    grid-column: 1 / -1;
  }

  .game-controls {
    grid-template-columns: repeat(3, 1fr);
  }

  .room-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pool-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 24px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .nav-button,
  .button,
  .theme-toggle {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 15px;
  }

  .theme-toggle {
    width: 66px;
    padding-inline: 12px;
  }

  .nav-actions {
    padding: 6px;
    gap: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .trusted strong {
    font-size: 16px;
  }

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

  .pool-sidebar,
  .pool-room-grid {
    grid-template-columns: 1fr;
  }

  .pool-rack-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .pool-objective-row {
    display: grid;
    gap: 4px;
  }

  .pool-stage {
    padding: 12px;
  }

  .pool-stage-message {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
  }

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

  .eight-ball-input-row,
  .room-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px), (pointer: coarse) {
  .nav-button,
  .button,
  .theme-toggle,
  .nav-actions,
  .feature-card,
  .eight-ball-input-row input,
  .game-card,
  .game-stage,
  .mines-board,
  .game-panel,
  .pool-badge,
  .pool-card,
  .pool-stage,
  .member-card,
  .commit-row {
    backdrop-filter: none;
  }

  .interior,
  .game-page {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo-overlay img,
  .eight-ball-glow,
  .eight-ball-logo,
  .eight-ball.is-shaking,
  .eight-ball.is-shaking .eight-ball-logo {
    animation: none;
  }

  .nav-button,
  .button,
  .theme-toggle,
  .topbar nav a {
    transition: none;
  }

  .interior,
  .game-page {
    background-attachment: scroll;
  }
}

.relax-page {
  min-height: 100svh;
  color: #f8f2e8;
  background:
    radial-gradient(circle at 74% 50%, rgba(255, 145, 54, 0.34), transparent 24%),
    radial-gradient(circle at 18% 12%, rgba(82, 215, 101, 0.14), transparent 28%),
    linear-gradient(135deg, #15110f 0%, #251816 48%, #0b100d 100%);
  padding: 30px clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
}

.relax-topbar {
  position: relative;
  z-index: 4;
}

.relax-topbar nav a,
.relax-topbar nav a:nth-last-child(-n + 4) {
  color: rgba(255, 244, 231, 0.78);
}

.relax-topbar .brand,
.relax-topbar .nav-button,
.relax-topbar .theme-toggle {
  color: #fff8ed;
}

.relax-topbar .nav-actions,
.relax-topbar .theme-toggle,
.relax-topbar .button.secondary {
  background: rgba(37, 24, 20, 0.48);
  border-color: rgba(255, 224, 187, 0.22);
}

.relax-room {
  width: min(1420px, 100%);
  min-height: calc(100svh - 160px);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(460px, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 64px);
}

.relax-scene {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 199, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 70% 74%, rgba(255, 118, 45, 0.3), transparent 28%),
    linear-gradient(110deg, rgba(44, 31, 27, 0.94), rgba(19, 20, 17, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.35);
}

.relax-scene::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(180deg, #2c211d, #151310);
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
}

.room-window {
  position: absolute;
  top: 54px;
  left: 48px;
  width: 190px;
  height: 220px;
  border: 12px solid rgba(102, 67, 48, 0.9);
  border-radius: 26px 26px 12px 12px;
  background:
    radial-gradient(circle at 38% 24%, rgba(122, 231, 119, 0.35), transparent 8%),
    linear-gradient(180deg, #07110f, #10221b);
  box-shadow: inset 0 0 0 2px rgba(255, 231, 191, 0.13), 0 18px 40px rgba(0, 0, 0, 0.32);
}

.room-window span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #86ff7a;
  box-shadow: 0 0 14px #86ff7a;
  animation: starDrift 5s ease-in-out infinite;
}

.room-window span:nth-child(1) {
  top: 44px;
  left: 64px;
}

.room-window span:nth-child(2) {
  top: 96px;
  left: 126px;
  animation-delay: 1.4s;
}

.room-window span:nth-child(3) {
  top: 148px;
  left: 42px;
  animation-delay: 2.6s;
}

.fireplace {
  position: absolute;
  right: clamp(28px, 6vw, 86px);
  bottom: 68px;
  width: min(330px, 44%);
  height: 340px;
}

.mantel {
  position: absolute;
  left: -24px;
  right: -24px;
  top: 0;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7b4b32, #43271c);
  box-shadow: inset 0 1px 0 rgba(255, 226, 184, 0.28), 0 18px 30px rgba(0, 0, 0, 0.24);
}

.firebox {
  position: absolute;
  inset: 48px 12px 0;
  border: 16px solid #4b2e22;
  border-bottom-width: 28px;
  border-radius: 22px 22px 12px 12px;
  background: radial-gradient(circle at 50% 72%, rgba(255, 119, 31, 0.48), transparent 36%), #100d0c;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 70px rgba(255, 106, 33, 0.22);
}

.logs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 148px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b1e14, #7b3f22, #35190f);
  transform: translateX(-50%) rotate(-5deg);
  box-shadow: 0 -10px 0 rgba(76, 37, 19, 0.85);
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 72px;
  height: 118px;
  border-radius: 60% 60% 48% 48%;
  background: linear-gradient(180deg, #fff4a4, #ff8f2a 58%, rgba(255, 66, 24, 0.08));
  filter: blur(0.3px);
  transform-origin: bottom;
  animation: flameFlicker 950ms ease-in-out infinite alternate;
}

.flame-two {
  width: 56px;
  height: 92px;
  margin-left: -58px;
  animation-delay: 220ms;
}

.flame-three {
  width: 48px;
  height: 82px;
  margin-left: 42px;
  animation-delay: 380ms;
}

.ember {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd475;
  box-shadow: 0 0 18px #ff7b2e;
  animation: emberRise 3.4s ease-in infinite;
}

.ember-two {
  animation-delay: 1.1s;
}

.ember-three {
  animation-delay: 2s;
}

.chip-seat {
  position: absolute;
  left: clamp(44px, 8vw, 118px);
  bottom: 54px;
  width: min(320px, 42%);
  height: 390px;
  display: grid;
  place-items: end center;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.34));
}

.chip-seat img {
  position: relative;
  z-index: 2;
  width: min(260px, 100%);
  border-radius: 38% 38% 42% 42%;
  transform: translateY(18px) scale(0.86);
  box-shadow: 0 0 44px rgba(255, 255, 255, 0.12);
}

.chip-body {
  position: absolute;
  bottom: 10px;
  width: 260px;
  height: 230px;
  border-radius: 46% 46% 38% 38%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), rgba(235, 225, 205, 0.96) 58%, rgba(190, 175, 151, 0.92));
  box-shadow: inset 0 -24px 42px rgba(89, 62, 42, 0.18), 0 0 80px rgba(255, 147, 70, 0.16);
}

.chip-body::before,
.chip-body::after {
  content: "";
  position: absolute;
  top: 90px;
  width: 72px;
  height: 120px;
  border-radius: 999px;
  background: rgba(238, 231, 214, 0.96);
}

.chip-body::before {
  left: -28px;
  transform: rotate(18deg);
}

.chip-body::after {
  right: -28px;
  transform: rotate(-18deg);
}

.chip-shadow {
  position: absolute;
  bottom: -8px;
  width: 300px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(12px);
}

.relax-panel {
  align-self: center;
  max-width: 660px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 232, 199, 0.22);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(43, 29, 24, 0.78), rgba(18, 18, 15, 0.72));
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.relax-panel h1 {
  margin: 22px 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95;
  max-width: 9ch;
  letter-spacing: 0;
}

.relax-panel .hero-text {
  color: rgba(255, 244, 231, 0.72);
}

.lofi-player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 232, 199, 0.18);
  border-radius: 22px;
  background: rgba(15, 13, 11, 0.36);
}

.lofi-player label {
  display: grid;
  gap: 8px;
  color: rgba(255, 244, 231, 0.72);
  font-weight: 800;
}

.lofi-player input[type="range"] {
  accent-color: #ff9b45;
}

.lofi-visualizer {
  grid-column: 1 / -1;
  height: 54px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.lofi-visualizer span {
  flex: 1;
  min-width: 8px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe29d, #ff7d35);
  opacity: 0.5;
}

.lofi-visualizer span.is-playing {
  animation: lofiBars 1.35s ease-in-out infinite;
}

.lofi-visualizer span:nth-child(2n).is-playing {
  animation-delay: 180ms;
}

.lofi-visualizer span:nth-child(3n).is-playing {
  animation-delay: 320ms;
}

.breathing-card {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(82, 215, 101, 0.12);
  border: 1px solid rgba(129, 255, 145, 0.18);
}

.breathing-card strong,
.breathing-card span {
  display: block;
}

.breathing-card strong {
  font-size: 19px;
}

.breathing-card span {
  color: rgba(255, 244, 231, 0.66);
  font-weight: 800;
}

.breathing-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #d8ffc9, #53d767 60%, rgba(83, 215, 103, 0.12));
  box-shadow: 0 0 48px rgba(83, 215, 103, 0.36);
  animation: breatheOrb 16s ease-in-out infinite;
}

.relax-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.relax-actions .button.secondary {
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 232, 199, 0.22);
}

@keyframes flameFlicker {
  from {
    transform: translateX(-50%) scaleX(0.86) scaleY(0.94) rotate(-2deg);
    opacity: 0.86;
  }

  to {
    transform: translateX(-50%) scaleX(1.06) scaleY(1.08) rotate(3deg);
    opacity: 1;
  }
}

@keyframes emberRise {
  from {
    transform: translate(-50%, 0) scale(0.5);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  to {
    transform: translate(calc(-50% + 36px), -180px) scale(0.1);
    opacity: 0;
  }
}

@keyframes lofiBars {
  0%, 100% {
    height: 14px;
    opacity: 0.45;
  }

  50% {
    height: 42px;
    opacity: 0.95;
  }
}

@keyframes breatheOrb {
  0%, 100% {
    transform: scale(0.72);
  }

  25%, 50% {
    transform: scale(1);
  }

  84% {
    transform: scale(0.76);
  }
}

@keyframes starDrift {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 1060px) {
  .casino-hero,
  .casino-layout {
    grid-template-columns: 1fr;
  }

  .casino-main {
    grid-template-columns: 1fr;
  }

  .casino-side {
    position: static;
  }

  .casino-grid {
    grid-template-columns: 1fr;
  }

  .blackjack-table {
    grid-column: auto;
  }

  .relax-room {
    grid-template-columns: 1fr;
  }

  .relax-panel {
    max-width: none;
    order: -1;
  }
}

@media (max-width: 680px) {
  .casino-hero,
  .casino-layout,
  .casino-toolbar {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .casino-account {
    width: 100%;
    border-radius: 18px;
    align-items: flex-start;
  }

  .casino-grid {
    padding-inline: 16px;
  }

  .slot-machine {
    gap: 8px;
    padding: 8px;
  }

  .slot-reel {
    min-height: 96px;
  }

  .crash-panel-grid {
    grid-template-columns: 1fr;
  }

  .crash-center-readout {
    top: 32%;
  }

  .casino-controls,
  .casino-controls label,
  .casino-controls input,
  .casino-controls .button {
    width: 100%;
  }

  .card-row {
    min-height: 102px;
  }

  .playing-card {
    width: 66px;
    height: 94px;
  }

  .relax-page {
    padding-inline: 18px;
  }

  .relax-room {
    margin-top: 24px;
  }

  .relax-scene {
    min-height: 520px;
  }

  .fireplace {
    right: 18px;
    width: 58%;
  }

  .chip-seat {
    left: 18px;
    width: 52%;
  }

  .lofi-player {
    grid-template-columns: 1fr;
  }

  .relax-panel h1 {
    max-width: 10ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flame,
  .ember,
  .lofi-visualizer span,
  .breathing-orb,
  .room-window span,
  .slot-reel.pop,
  .playing-card,
  .crash-badge,
  .casino-feed-item,
  .crash-live-feed span {
    animation: none;
  }

  .casino-table,
  .casino-pill,
  .casino-chip-row button,
  .blackjack-actions button,
  .casino-toast {
    transition: none;
  }
}
