:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #161a1d;
  --muted: #657076;
  --line: #dbe1e4;
  --green: #087b4f;
  --green-strong: #00b85f;
  --gold: #e0b73e;
  --dark: #0f1415;
  --danger: #b82332;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.site-shell {
  background:
    radial-gradient(circle at 78% 24%, rgba(0, 210, 108, 0.38), transparent 34%),
    radial-gradient(circle at 88% 52%, rgba(0, 126, 70, 0.32), transparent 32%),
    linear-gradient(115deg, rgba(5, 10, 22, 0.98) 0%, rgba(7, 24, 32, 0.98) 38%, rgba(6, 69, 44, 0.95) 72%, rgba(8, 123, 79, 0.94) 100%),
    url("/assets/table-felt.svg");
  background-attachment: fixed;
  background-size: cover;
}

.site-header {
  width: min(1160px, calc(100% - 32px));
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.logo-link img {
  width: 142px;
  height: auto;
  display: block;
}

.header-link {
  font-weight: 800;
  color: #ffffff;
}

.v1ja-hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 162px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  margin: 0 auto;
  padding: 24px 0 44px;
}

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

.hero-kicker {
  margin: 0 0 12px;
  color: #33e88a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v1ja-hero h1 {
  max-width: 660px;
  color: #ffffff;
  font-size: 58px;
  font-weight: 950;
  line-height: 0.98;
}

.hero-lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 128px));
  gap: 12px;
  margin: 28px 0;
}

.hero-stats div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(6, 36, 24, 0.06);
}

.hero-stats strong {
  display: block;
  color: #33e88a;
  font-size: 27px;
  line-height: 1;
}

.hero-stats span,
.safe-note,
.player-proof p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.download-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  color: #fff;
  background: linear-gradient(180deg, #07bd63, #07894e);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 130, 69, 0.28);
  font-size: 18px;
  font-weight: 950;
}

.safe-note {
  max-width: 220px;
}

.player-proof {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
}

.player-proof img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.player-proof img + img {
  margin-left: -14px;
}

.player-proof p {
  margin: 0 0 0 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(300px, 100%);
  padding: 5px;
  background: #111;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.phone-screen {
  aspect-ratio: 720 / 1600;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #071311;
  border-radius: 20px;
}

.playing-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.offer-art {
  width: 100%;
  display: block;
  margin-top: 24px;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.22));
}

.mini-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  padding: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.mini-card span,
.mini-card small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.mini-card strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.proof-band {
  width: min(1160px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 24px;
}

.proof-band article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(6, 36, 24, 0.06);
}

.proof-band img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.games-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 44px;
}

.section-title {
  margin-bottom: 18px;
}

.site-shell .section-title h2 {
  color: #ffffff;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-cards article {
  overflow: hidden;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(6, 36, 24, 0.06);
}

.game-cards img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.game-cards div {
  padding: 15px 16px 18px;
}

.game-cards span {
  color: #33e88a;
  font-size: 13px;
  font-weight: 900;
}

.game-cards strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 22px 0 34px;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.social-links {
  align-items: center;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.social-links svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

@media (max-width: 1040px) {
  .v1ja-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: 28px;
  }

  .v1ja-hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .phone-frame {
    width: min(280px, 100%);
  }
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  font-size: 32px;
  font-style: italic;
  color: var(--dark);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.14);
}

.brand-divider {
  width: 2px;
  height: 28px;
  background: var(--dark);
}

.top-actions {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.public-main {
  width: min(1120px, calc(100% - 32px));
  margin: 38px auto;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 360px;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 71, 40, 0.92), rgba(10, 108, 67, 0.74)),
    url("/assets/table-felt.svg");
  background-size: cover;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: 44px;
}

h2 {
  font-size: 22px;
}

.lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.5;
}

.download-actions,
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--green);
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.game-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.game-strip article,
.status-card,
.admin-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.game-strip article {
  padding: 18px;
}

.game-strip span,
.status-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.game-strip strong,
.status-card strong {
  display: block;
  margin-top: 6px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #111718;
  color: #fff;
}

.admin-brand {
  margin-bottom: 26px;
}

.admin-brand .brand-mark {
  color: #fff;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  padding: 12px 14px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.side-nav a.active,
.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.admin-main {
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.status-card {
  padding: 18px;
}

.admin-section {
  padding: 20px;
  margin-bottom: 16px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.switch-row,
.form-grid label {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--green);
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 28px);
    height: 72px;
  }

  .logo-link img {
    width: 116px;
  }

  .v1ja-hero {
    width: calc(100% - 28px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 12px 0 28px;
  }

  .v1ja-hero h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .safe-note {
    max-width: none;
  }

  .phone-frame {
    width: min(270px, 100%);
    border-radius: 22px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .proof-band,
  .game-cards {
    grid-template-columns: 1fr;
  }

  .proof-band,
  .games-section,
  .site-footer {
    width: calc(100% - 28px);
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }

  .download-panel,
  .admin-shell {
    display: block;
  }

  .download-actions {
    margin-top: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .game-strip,
  .status-grid,
  .control-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .admin-main,
  .public-main {
    width: auto;
    padding: 16px;
    margin: 0;
  }

  h1 {
    font-size: 32px;
  }
}
