/* Realm of Coin Design: pixel-art night sky, coin gold, parchment panels. */
:root {
  --night-1: #13112a;
  --night-2: #1b1838;
  --night-3: #262150;
  --gold: #f0b93a;
  --gold-light: #ffe38a;
  --gold-dark: #b9781a;
  --outline: #3a2206;
  --parchment: #f6e7c1;
  --parchment-2: #ead6a4;
  --ink: #2b2420;
  --muted: #6b5a44;
  --px: 4px; /* one "pixel" of border */
  --pixel: "Press Start 2P", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--night-2);
}
/* the starry night sky behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, #ffe38a 0 1.5px, transparent 1.6px) 0 0 / 173px 151px,
    radial-gradient(circle, #8b84d6 0 1.2px, transparent 1.3px) 61px 37px / 97px 113px,
    radial-gradient(circle, #6f68b8 0 1px, transparent 1.1px) 23px 79px / 71px 59px,
    linear-gradient(var(--night-1), var(--night-2) 40%, var(--night-3));
  image-rendering: pixelated;
}
a { color: #8a4f0c; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--outline); }
img { image-rendering: pixelated; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .sub, .btn, nav.top, footer { font-family: var(--pixel); font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* ---------- pixel panels: notched corners made of box-shadows ---------- */
.panel {
  position: relative;
  background: var(--parchment);
  margin: var(--px);
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--outline),
    0 var(--px) 0 0 var(--outline),
    calc(-1 * var(--px)) 0 0 0 var(--outline),
    var(--px) 0 0 0 var(--outline),
    inset 0 calc(-1 * var(--px)) 0 0 var(--parchment-2),
    0 calc(3 * var(--px)) 0 0 rgba(0, 0, 0, .35);
}

/* ---------- hero ---------- */
header.hero { position: relative; text-align: center; padding: 56px 0 0; color: #fff; overflow: hidden; }
.coin { width: 176px; height: 176px; animation: float 3.2s steps(8) infinite; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .35)); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .coin { animation: none; } }
.hero h1 {
  margin: 18px 0 0; font-size: clamp(40px, 8vw, 76px); line-height: 1; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--outline);
}
.hero .sub { margin: 12px 0 0; font-size: clamp(16px, 2.6vw, 24px); color: var(--gold-light); letter-spacing: 6px; text-shadow: 3px 3px 0 var(--outline); }
.divider { width: min(420px, 80%); height: 4px; margin: 20px auto; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, var(--gold-dark) 8px 16px); }
.hero p { max-width: 560px; margin: 0 auto; color: #e9e3ff; font-size: 18px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; position: relative; z-index: 1; }
.btn {
  display: inline-block; padding: 12px 16px; font-size: 13px; line-height: 1.4; font-weight: 400; text-decoration: none;
  color: var(--outline); background: var(--gold);
  box-shadow: 0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline), -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline), inset 0 -4px 0 0 var(--gold-dark), inset 0 4px 0 0 var(--gold-light);
  margin: 4px;
}
.btn:hover { color: var(--outline); filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--night-3); color: var(--gold-light); box-shadow: 0 -4px 0 0 var(--gold-dark), 0 4px 0 0 var(--gold-dark), -4px 0 0 0 var(--gold-dark), 4px 0 0 0 var(--gold-dark); }
.hills { display: block; width: 100%; height: 120px; margin-top: 34px; }

/* ---------- sections ---------- */
main { background: var(--night-1); padding: 20px 0 40px; }
section { padding: 30px 0; }
h2 { font-size: clamp(18px, 3vw, 24px); line-height: 1.4; text-align: center; margin: 0 0 26px; font-weight: 400; color: var(--gold); text-shadow: 3px 3px 0 var(--outline); }
.panel h2 { color: var(--outline); text-shadow: 2px 2px 0 var(--parchment-2); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.card { padding: 22px 22px 24px; text-align: center; transition: transform .15s steps(3); }
.card:hover { transform: translateY(-6px); }
.sprite { display: block; margin: 0 auto 6px; }
.card h3 { margin: 10px 0 10px; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--outline); }
.card p { margin: 0; color: var(--muted); }
.about { max-width: 720px; margin: 4px auto; padding: 28px 30px; text-align: center; font-size: 17px; }
.about p { margin: 0 0 12px; }
.about .sprite { margin-bottom: 10px; }

/* ---------- top bar (privacy page) and footer ---------- */
nav.top { background: var(--night-1); border-bottom: 4px solid var(--outline); box-shadow: 0 4px 0 var(--gold-dark); }
nav.top .wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
nav.top a { color: var(--gold-light); text-decoration: none; }
nav.top a.home { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 400; text-shadow: 2px 2px 0 var(--outline); }
nav.top img { width: 40px; height: 40px; }
footer { background: var(--night-1); color: #b9b2e0; padding: 22px 0 26px; font-size: 11px; line-height: 1.8; border-top: 4px solid var(--outline); box-shadow: inset 0 4px 0 var(--night-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--gold-light); }
footer small { flex-basis: 100%; opacity: .75; font-family: system-ui, sans-serif; font-size: 12px; }

/* ---------- privacy policy ---------- */
.policy { max-width: 800px; margin: 36px auto 48px; padding: 30px 34px 34px; }
.policy h1 { font-size: clamp(20px, 4vw, 28px); line-height: 1.4; font-weight: 400; margin: 0 0 10px; color: var(--outline); text-shadow: 3px 3px 0 var(--parchment-2); }
.policy h2 { text-align: left; font-size: 15px; line-height: 1.5; margin: 30px 0 10px; color: var(--outline); text-shadow: 2px 2px 0 var(--parchment-2); }
.policy .updated { color: var(--muted); margin-top: 0; }
.policy li { margin-bottom: 6px; }

@media (max-width: 600px) {
  .about, .policy { padding: 22px 18px; }
  .hills { height: 80px; }
  .policy { margin: 24px 12px 36px; }
}
.title-art { display: block; width: min(620px, 88%); height: auto; margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub-art { display: block; width: min(230px, 50%); height: auto; margin: 4px auto 0; }
.about h3 { font-size: 13px; line-height: 1.5; margin: 22px 0 8px; font-weight: 400; color: var(--outline); }
.card p a { color: #8a4f0c; }
.policy h3 { font-size: 13px; line-height: 1.5; margin: 20px 0 8px; font-weight: 400; color: var(--outline); }
