:root {
  color-scheme: dark;
  --bg: #120d09;
  --bg-soft: #21160e;
  --panel: rgba(38, 26, 18, 0.86);
  --panel-border: rgba(255, 211, 122, 0.18);
  --text: #fff2d6;
  --muted: #dbc4a1;
  --accent: #f2b544;
  --accent-strong: #ffd06e;
  --shadow: rgba(242, 181, 68, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(242, 181, 68, 0.18), transparent 32%),
    radial-gradient(circle at left center, rgba(255, 214, 141, 0.08), transparent 30%),
    linear-gradient(180deg, #0f0906 0%, #17100b 48%, #120d09 100%);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 208, 110, 0.12);
}

.site-shell {
  width: 100%;
}

.site-home,
.simple-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-home {
  padding: 24px 0 56px;
}

.hero-card,
.panel,
.stat-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card,
.panel {
  border-radius: 28px;
  padding: 24px;
}

.hero-card {
  margin-bottom: 18px;
}

.hero-card h1,
.panel h1,
.panel h2 {
  margin: 0 0 12px;
}

.hero-card h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2b544 0%, #ffdc8d 100%);
  color: #26170a;
  font-weight: 800;
  box-shadow: 0 10px 30px var(--shadow);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}

.panel {
  margin-bottom: 18px;
}

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

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

.share-card,
.admin-share-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.share-photo,
.admin-share-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.share-copy,
.admin-share-copy {
  padding: 16px;
}

.share-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.share-address,
.share-text,
.share-time {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-share-list {
  display: grid;
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-actions form {
  margin: 0;
}

.admin-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.admin-button-approve {
  background: linear-gradient(135deg, #f2b544 0%, #ffdc8d 100%);
  color: #26170a;
}

.admin-button-reject,
.admin-button-hide {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.leaderboard-list,
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-rank {
  color: var(--accent-strong);
  font-weight: 900;
}

.leaderboard-name {
  font-weight: 700;
}

.leaderboard-score {
  min-width: 34px;
  text-align: right;
  font-weight: 800;
}

.leaderboard-empty,
.steps-list li,
.simple-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.steps-list li + li {
  margin-top: 10px;
}

.simple-page {
  padding: 24px 0 56px;
}

.simple-panel {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 0 16px 28px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .site-home,
  .simple-page {
    width: min(100%, calc(100% - 24px));
  }

  .hero-card,
  .panel {
    border-radius: 24px;
    padding: 20px;
  }

  .stats-grid,
  .panel-two-column,
  .shares-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 54px 1fr auto;
  }
}
