:root {
  --ink: #13261c;
  --muted: #5d6b63;
  --line: #d7e4db;
  --moss: #168a45;
  --sand: #e7f3eb;
  --bg: #f3f7f4;
  --header: #0c3b2e;
  --paper: #fff;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 320px at 100% -40px, rgba(22, 138, 69, .16), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1.5;
  padding-top: 84px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, .btn, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
  box-shadow: 0 8px 24px rgba(8, 40, 28, .18);
}
.bar, .foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.25rem; font-weight: 650; color: #fff;
}
.brand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a, .nav button { color: rgba(255,255,255,.88); }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; font-weight: 650;
  padding: 8px 10px; border-radius: 999px;
}
.nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--moss); color: #fff; border: 0; font-weight: 700; cursor: pointer;
}
.top .btn { background: #fff; color: var(--header); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.top .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
main.wrap { padding-bottom: 48px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 12px 0 10px; }
.kicker { color: var(--moss); font-weight: 750; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, .display { font-family: Georgia, "Iowan Old Style", Palatino, serif; font-weight: 650; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; margin: 12px 0; }
h2 { font-size: 2rem; margin: 0; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions form { margin: 0; }
.actions .btn.ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.metrics > div { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.metrics dd { margin: 4px 0 0; font-family: Georgia, "Iowan Old Style", Palatino, serif; font-size: 1.8rem; }
.hero img, .banner img { width: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 18px 40px rgba(12, 59, 46, .16); }
.hero img { height: 520px; }
.section { margin-top: 56px; }
.row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tiles, .cards { display: grid; gap: 14px; margin-top: 18px; }
.tiles { grid-template-columns: repeat(3, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.tile, .card, .panel {
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
  box-shadow: 0 10px 28px rgba(16, 48, 32, .05);
}
.tile { overflow: hidden; }
.tile img { height: 148px; width: 100%; object-fit: cover; }
.tile div, .card, .panel { padding: 16px 18px 18px; }
.card { padding: 12px 12px 14px; }
.card .pts { font-size: 1.45rem; margin: 6px 0 0; line-height: 1; }
.card .pts span { font-size: .85rem; }
.card .money { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.card h3 { margin: 8px 0 0; font-family: system-ui, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.25; letter-spacing: 0; }
.card .meta { margin: 6px 0 0; font-size: .78rem; }
.chip { display: inline-flex; border-radius: 999px; background: var(--sand); color: var(--header); padding: 4px 10px; font-size: .8rem; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: .9rem; font-weight: 650; background: #fff; }
.filters a.on, .admin-nav a.on, .subnav a.on { background: var(--header); color: #fff; border-color: var(--header); }
label { display: block; font-size: .9rem; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; color: var(--ink);
}
input[type="color"] { height: 46px; padding: 6px; }
textarea { min-height: 88px; }
.form { display: grid; gap: 14px; max-width: 520px; }
.notice, .error { border-radius: 14px; padding: 12px 14px; }
.notice { background: #1d4f91; color: #fff; }
.error { background: #b42318; color: #fff; }
.steps { display: grid; gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; font-weight: 700; }
.admin-nav a, .subnav a { border-radius: 999px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stats article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stats span, .stats small { display: block; color: var(--muted); }
.stats strong { display: block; font-size: 1.45rem; margin: 4px 0; }
.meter { height: 10px; background: #e4eee8; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.meter span { display: block; height: 100%; background: var(--accent); }
.method { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pay-fields { display: grid; gap: 14px; }
.pay-fields[hidden] { display: none; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
label.check input { width: auto; margin: 0; }
.pager { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-weight: 700; }
.balance { text-align: right; font-weight: 700; color: #fff; line-height: 1.25; }
.balance span { font-weight: 550; color: rgba(255,255,255,.75); }
.foot { margin-top: 72px; background: var(--header); color: #fff; }
.foot-in { align-items: flex-start; padding: 36px 0 28px; }
.foot p { color: rgba(255,255,255,.74); max-width: 36rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-nav a { font-weight: 650; color: #fff; }
.banner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.banner img { height: 340px; }
.prose { max-width: 40rem; }
.prose p { font-size: 1.05rem; }
.list { display: grid; gap: 10px; margin-top: 16px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-row { display: grid; grid-template-columns: 1fr 1fr 160px; gap: 12px; align-items: end; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.check input { width: auto; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.share-url {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}
.share .actions { margin-top: 0; }
.play-title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; }
.play-points { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pager a, .pager span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; font-weight: 650; }
.dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16, 48, 32, .06);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 56px; color: var(--muted); font-size: .68rem; font-weight: 700;
}
.dock a.on { color: var(--moss); }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 900px) {
  .hero, .tiles, .banner, .pair, .menu-row, .stats { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .metrics > div { padding: 8px; border-radius: 12px; }
  .metrics dt { font-size: .72rem; line-height: 1.2; }
  .metrics dd { font-size: 1.05rem; }
  .hero { gap: 14px; padding-top: 0; }
  .hero img { height: 190px; }
  .actions { margin-top: 14px; }
  .section { margin-top: 22px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 8px 8px 10px; border-radius: 14px; }
  .card .pts { font-size: 1.15rem; }
  .card h3 { font-size: .86rem; margin-top: 6px; }
  .banner img { height: 200px; }
  .nav { display: none; }
  .dock { display: flex; }
  body { padding-bottom: 74px; }
  .item { align-items: flex-start; flex-direction: column; }
}
