:root {
  --bg: #08241f;
  --panel: #173225;
  --panel-2: #25412d;
  --text: #fff8e7;
  --muted: #d6c9a9;
  --gold: #c88638;
  --gold-2: #ffd36c;
  --green: #44d36d;
  --cyan: #20cbd2;
  --brown: #8b5b32;
  --red: #d54642;
  --line: rgba(109, 232, 210, 0.23);
  --shadow: 0 24px 70px rgba(1, 18, 14, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 6%, rgba(32, 203, 210, 0.18), transparent 32%),
    radial-gradient(circle at 12% 28%, rgba(68, 211, 109, 0.12), transparent 30%),
    linear-gradient(180deg, #08241f 0%, #0d2117 48%, #1b140d 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 29, 25, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.public-header {
  justify-content: flex-end;
}

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

.brand-mark,
.game-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--green) 50%, var(--gold-2));
  color: #08241f;
  font-weight: 900;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover { color: var(--gold-2); }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero/falling-pickaxe-hero.png") center / cover no-repeat;
  filter: blur(18px) saturate(1.3) brightness(1.35);
  transform: scale(1.08);
  opacity: 0.76;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  inset: auto clamp(34px, 6vw, 96px) auto auto;
  top: 50%;
  width: min(35vw, 415px);
  height: auto;
  max-height: 76%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 56px rgba(32, 203, 210, 0.32);
  transform: translateY(-50%);
  filter: brightness(1.55) contrast(1.12) saturate(1.28);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 24, 20, 0.94) 0%, rgba(7, 24, 20, 0.68) 46%, rgba(7, 49, 42, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 36, 31, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 82px);
  padding: 88px 0 130px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  max-width: 650px;
  color: #f3dfb8;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #1fd7e0 0%, #66ed72 52%, #ffd36c 100%);
  color: #08241f;
  box-shadow: 0 18px 42px rgba(32, 203, 210, 0.28), 0 10px 28px rgba(68, 211, 109, 0.22);
}

.btn-secondary {
  background: rgba(139, 91, 50, 0.24);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 224, 138, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.btn-light {
  background: linear-gradient(135deg, #1fd7e0, #66ed72 58%, #ffd36c);
  color: #08241f;
  box-shadow: 0 16px 38px rgba(32, 203, 210, 0.28), 0 10px 26px rgba(68, 211, 109, 0.22);
}

.bonus-btn {
  min-width: 210px;
  min-height: 64px;
  padding: 0 28px;
  font-size: 18px;
  text-align: center;
}

.btn-small {
  min-height: 42px;
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 34px 0 0;
}

.hero-stats div,
.feature-panel,
.step-grid article,
.game-card,
.review-grid blockquote,
.metric-card,
.admin-panel,
.content-article {
  background: linear-gradient(145deg, rgba(23, 50, 37, 0.9), rgba(44, 31, 18, 0.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-width: 0;
  overflow: hidden;
  padding: 18px 18px;
}

.hero-stats dt {
  color: var(--gold-2);
  font-size: clamp(23px, 1.9vw, 31px);
  font-weight: 900;
  white-space: nowrap;
}

.hero-stats .rub-bonus dt {
  font-size: clamp(21px, 1.65vw, 28px);
  letter-spacing: 0;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
}

.bottom-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 18px 34px;
  background: linear-gradient(180deg, rgba(27, 20, 13, 0), rgba(9, 34, 29, 0.76));
}

.bottom-note span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.admin-shell,
.content-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.section p,
.content-article p {
  color: var(--muted);
  font-size: 17px;
}

.feature-panel {
  padding: 28px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: #ead9b8;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.steps {
  padding-top: 28px;
}

.step-grid,
.game-grid,
.review-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-grid article,
.game-card,
.review-grid blockquote {
  padding: 24px;
}

.step-grid span {
  color: var(--gold);
  font-weight: 900;
}

.bonus-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 36px auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 203, 210, 0.28), rgba(68, 211, 109, 0.24), rgba(139, 91, 50, 0.4)),
    #173225;
  border: 1px solid var(--line);
}

.bonus-band p {
  max-width: 760px;
  color: #f2dfba;
}

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

.game-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-card p {
  flex: 1;
}

.game-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  background: linear-gradient(135deg, #20cbd2, #44d36d 62%, #ffd36c);
  color: #08241f;
  box-shadow: 0 14px 30px rgba(32, 203, 210, 0.22);
}

.game-logo {
  width: calc(100% - 24px);
  height: 154px;
  margin: 12px 12px 18px;
  padding: 0;
  border: 1px solid rgba(109, 232, 210, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(32, 203, 210, 0.18), transparent 56%),
    rgba(8, 36, 31, 0.52);
  object-fit: contain;
  object-position: center;
  filter: saturate(1.12) contrast(1.04);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.game-logo-dog {
  object-position: center;
}

.game-logo-portrait {
  padding: 8px;
}

.game-card:hover .game-logo {
  transform: scale(1.035);
  filter: saturate(1.22) contrast(1.08) brightness(1.05);
}

.seo-text {
  padding-top: 24px;
}

.review-grid blockquote {
  margin: 0;
}

.review-photo {
  width: 74px;
  height: 74px;
  display: block;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 224, 138, 0.52);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.review-grid cite {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.final-cta {
  text-align: center;
  padding: 88px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 203, 210, 0.14), transparent 34%),
    linear-gradient(180deg, #173225, #1b140d);
  border-top: 1px solid var(--line);
}

.final-cta p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0; }

.site-footer:empty {
  display: none;
}

.admin-shell {
  padding-top: 52px;
}

.admin-title,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 18px;
}

.metric-card {
  padding: 22px;
}

.metric-card span {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.admin-panel {
  margin: 22px 0;
  padding: 24px;
}

.date-filters label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #100d09;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th { color: var(--gold-2); }

td { color: var(--muted); }

.created-pages {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-item a {
  color: var(--gold-2);
  font-weight: 800;
  text-decoration: none;
}

.content-page {
  min-height: 70vh;
}

.content-article {
  padding: clamp(24px, 5vw, 56px);
}

.content-article h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.content-article p {
  white-space: pre-line;
}

@media (max-width: 900px) {
  .site-header,
  .admin-title,
  .panel-head,
  .bonus-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 36, 31, 0.04) 0%, rgba(8, 36, 31, 0.72) 46%, var(--bg) 100%);
  }

  .hero-image {
    top: 112px;
    right: 50%;
    width: min(252px, 64vw);
    max-height: none;
    transform: translateX(50%);
  }

  .hero-content {
    width: min(100% - 36px, 720px);
    margin: 0 auto;
    padding-top: 390px;
  }

  .two-column,
  .step-grid,
  .game-grid,
  .review-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 1120px;
  }

  .hero-content {
    padding-top: 520px;
  }

  .hero-stats dt {
    font-size: clamp(22px, 7vw, 28px);
  }

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

  .hero-stats .rub-bonus dt {
    font-size: clamp(20px, 6.2vw, 25px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .game-logo {
    height: 174px;
  }

  .game-logo-portrait {
    height: 210px;
  }

  .section,
  .admin-shell,
  .content-page {
    width: min(100% - 28px, 1180px);
    padding: 56px 0;
  }
}
