:root {
  --ink: #2B2521;
  --ink-soft: #4A403A;
  --clay: #B2503A;
  --clay-dark: #8C3A28;
  --clay-light: #D08D77;
  --rose: #E8C7B8;
  --bone: #F6F0E7;
  --bone-2: #EDE3D5;
  --line: #D8C9B6;
  --muted: #6B5F55;
  --olive: #6E7355;
  --shell: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--clay-dark); }

p { margin: 0 0 1rem; }

img { max-width: 100%; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--bone);
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; z-index: 20; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

.band {
  height: 6px;
  background: var(--clay);
  border-top: 2px solid var(--ink);
}

.masthead {
  background: var(--bone);
  color: var(--ink);
  border-top: 6px solid var(--clay);
  border-bottom: 2px solid var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
}

.brand-sub {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--clay-dark);
  margin-top: 5px;
}

.nav { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--clay-light); }
.nav a.on { border-bottom-color: var(--clay); color: var(--ink); }

.hero {
  background: var(--clay);
  color: var(--bone);
  padding: 62px 0 0;
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 62px);
  max-width: 20ch;
  margin-bottom: 14px;
}

.hero-lede {
  max-width: 50ch;
  color: #FBEFE7;
}

.countdown {
  display: inline-flex;
  gap: 0;
  margin: 24px 0 40px;
  border: 2px solid var(--ink);
  background: var(--bone);
  color: var(--ink);
}

.cd-unit {
  min-width: 76px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.cd-unit:last-child { border-right: 0; }

.cd-num {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.cd-label { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

.arcade {
  height: 34px;
  background-image: url("arcade.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
}

.result { padding: 52px 0 60px; }

.arch {
  background: var(--bone-2);
  border: 2px solid var(--ink);
  padding: 34px 32px 30px;
}

.arch-kicker {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 4px;
}

.arch h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 4px; }

.stamp { display: inline-block; font-size: 14px; color: var(--muted); }

.stars { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }

.num {
  width: 70px;
  height: 82px;
  background: var(--clay);
  border: 2px solid var(--ink);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.num.gold { background: var(--ink); color: var(--bone); }
.num.teal { background: var(--olive); color: var(--bone); }

.num.sm {
  width: 46px;
  height: 54px;
  font-size: 22px;
  border-width: 1px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tier {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 20px;
}

.tier h3 { font-size: 19px; margin-bottom: 14px; }

.tier .stars { margin: 0; gap: 8px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.trust-item { padding-top: 14px; border-top: 3px solid var(--clay); }

.trust-item strong {
  display: block;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 19px;
  margin-bottom: 3px;
}

.trust-item span { color: var(--muted); font-size: 15px; }

.section { padding: 56px 0; }

.section-alt { background: var(--bone-2); border-top: 2px solid var(--ink); }

.section h2 { font-size: clamp(25px, 3vw, 33px); margin-bottom: 18px; }

.faq { max-width: 760px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 42px 18px 0;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clay);
  font-size: 26px;
}

.faq-item.open .faq-q::after { content: "\2013"; }

.faq-a {
  display: none;
  padding: 0 10px 20px 0;
  color: var(--muted);
  max-width: 68ch;
}

.faq-item.open .faq-a { display: block; }

.page-head {
  background: var(--clay);
  color: var(--bone);
  padding: 46px 0 0;
}

.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); }
.page-head p { color: #FBEFE7; margin: 10px 0 34px; max-width: 60ch; }

.page-body { padding-bottom: 56px; }

.panel {
  background: var(--bone-2);
  border: 2px solid var(--ink);
  padding: 20px 22px;
  margin: 34px 0 28px;
}

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

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 14px; color: var(--muted); }

input[type="text"],
input[type="date"],
input[type="month"],
input[type="password"],
select,
textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { background: #443A34; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(43, 37, 33, 0.08); }

.btn-terra { background: var(--clay); border-color: var(--ink); color: #fff; }
.btn-terra:hover { background: var(--clay-dark); }

.draw-card { border: 2px solid var(--ink); margin-bottom: 24px; background: var(--bone-2); }

.draw-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bone);
}

.draw-head h2 { font-size: 21px; }
.draw-head span { font-size: 14px; color: var(--rose); }

.draw-body { padding: 16px 20px 20px; }

.tier-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.tier-line:last-child { border-bottom: 0; }

.tier-line .label {
  min-width: 170px;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.tier-line .stars { margin: 0; gap: 8px; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }

.pager a, .pager span {
  min-width: 42px;
  text-align: center;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--bone);
}

.pager .cur { background: var(--clay); color: #fff; }

.empty {
  border: 2px dashed var(--line);
  padding: 46px 24px;
  text-align: center;
  color: var(--muted);
}

.empty .mark {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 46px;
  color: var(--clay);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.prose { max-width: 70ch; }

.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.contact-card {
  border: 2px solid var(--ink);
  border-left: 8px solid var(--clay);
  background: var(--bone-2);
  padding: 20px 22px;
  margin-top: 12px;
}

.notfound { text-align: center; padding: 90px 0 100px; }

.notfound .code {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: clamp(84px, 18vw, 168px);
  color: var(--clay);
  line-height: 0.9;
}

.foot { background: transparent; }

.arcade-up {
  height: 34px;
  background-image: url("arcade-up.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
}

.foot-body { background: var(--ink); color: var(--bone-2); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 44px;
  padding-top: 6px;
  padding-bottom: 34px;
}

.foot-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.foot-mark span {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bone);
}

.foot-about p { margin: 0; max-width: 42ch; color: #C4B6A9; }

.foot-col h2 {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--clay-light);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: var(--bone-2);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid rgba(246, 240, 231, 0.12);
  max-width: 24ch;
}

.foot-col a:hover { color: var(--clay-light); }

.foot-time {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 28px;
  color: var(--bone);
  margin: 0 0 4px;
}

.foot-small { font-size: 14px; color: #A7998C; margin-bottom: 12px; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(246, 240, 231, 0.14);
  font-size: 14px;
  color: #A7998C;
}

.foot-base p { margin: 0; }

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

table.grid { width: 100%; border-collapse: collapse; min-width: 640px; }

table.grid th, table.grid td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
}

table.grid th { background: var(--bone-2); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { gap: 20px; }
  .hero { padding-top: 44px; }
  .arch { padding: 26px 20px 24px; }
  .tiers { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 18px; }
  .num { width: 56px; height: 66px; font-size: 27px; }
  .num.sm { width: 42px; height: 50px; font-size: 20px; }
  .tier-line .label { min-width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .field, .filters .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 26px; }
}

@media (max-width: 480px) {
  .shell { padding: 0 16px; }
  .stars { gap: 7px; }
  .num { width: 46px; height: 56px; font-size: 23px; }
  .num.sm { width: 38px; height: 46px; font-size: 18px; }
  .cd-unit { min-width: 62px; padding: 8px 10px; }
  .cd-num { font-size: 25px; }
  .draw-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
