/* NorviGame — light stylesheet (pink / yellow / red) */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #fffaf6;
  --bg-warm: #fff3ec;
  --surface: #ffffff;
  --border: #f4e2dc;
  --border-strong: #ecccc2;

  /* text */
  --text: #2a1a20;
  --muted: #7d6871;

  /* brand — bright versions are for fills, ink versions for text */
  --pink: #ff3d81;
  --pink-ink: #d1155f;
  --red: #f5333f;
  --red-ink: #cf1a26;
  --yellow: #ffb92e;
  --yellow-ink: #a86c00;

  --pink-soft: #ffe9f1;
  --red-soft: #ffe8e7;
  --yellow-soft: #fff3d9;

  --grad: linear-gradient(115deg, var(--pink) 0%, var(--red) 52%, var(--yellow) 100%);
  --shadow: 0 1px 2px rgba(42, 26, 32, .05), 0 8px 24px -12px rgba(42, 26, 32, .14);

  --radius: 16px;
  --maxw: 880px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 420px at 12% -8%, rgba(255, 61, 129, .16), transparent 62%),
    radial-gradient(680px 380px at 92% 2%, rgba(255, 185, 46, .20), transparent 62%),
    radial-gradient(520px 320px at 62% 12%, rgba(245, 51, 63, .09), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--pink-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pink-ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 246, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(245, 51, 63, .55);
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-warm); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--pink-ink); background: var(--pink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 58px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-ink);
  border: 1px solid var(--border-strong); background: var(--surface);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(2.15rem, 6vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 850;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--red-ink);
}
.lede {
  margin: 0 auto; max-width: 600px;
  font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--muted);
}
.cta-row {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 34px;
}
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(245, 51, 63, .6);
}
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(245, 51, 63, .7); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
main { padding-bottom: 76px; }
section { padding: 24px 0; }
.section-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 800;
}
.section-sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(42, 26, 32, .05), 0 18px 34px -18px rgba(42, 26, 32, .28);
}
.card h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* icon chips cycle pink -> yellow -> red */
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--pink-soft); border: 1px solid var(--border);
}
.grid .card:nth-child(3n+2) .card-icon { background: var(--yellow-soft); }
.grid .card:nth-child(3n+3) .card-icon { background: var(--red-soft); }

/* ---------- Legal / doc pages ---------- */
.page-head {
  padding: 58px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.page-head h1 {
  margin: 0 0 10px; font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.035em; font-weight: 850;
}
.updated { color: var(--muted); font-size: 0.9rem; margin: 0; }

.doc h2 {
  margin: 42px 0 12px; font-size: 1.22rem; font-weight: 800;
  letter-spacing: -0.015em; scroll-margin-top: 90px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 26px 0 8px; font-size: 1rem; font-weight: 750; }
.doc p, .doc li { color: #4a3840; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }

.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.toc h2 {
  margin: 0 0 12px !important; font-size: 0.76rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--yellow-ink); font-weight: 800;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; font-size: 0.93rem; }

.callout {
  background: linear-gradient(100deg, var(--pink-soft), var(--yellow-soft));
  border: 1px solid var(--border);
  border-left: 4px solid var(--pink);
  border-radius: 12px; padding: 18px 22px; margin: 26px 0;
}
.callout p { margin: 0; font-size: 0.94rem; color: #4a3840; }

.table-wrap {
  overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--text); font-weight: 750; background: var(--bg-warm); }
td { color: #4a3840; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; margin: 28px 0;
  box-shadow: var(--shadow);
}
.contact-box dl { margin: 0; display: grid; gap: 16px; }
.contact-box dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow-ink); font-weight: 800; margin-bottom: 3px;
}
.contact-box dd { margin: 0; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); padding: 38px 0;
  color: var(--muted); font-size: 0.88rem;
  background: var(--bg-warm);
}
.footer-inner {
  display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; align-items: center;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--pink-ink); }

@media (max-width: 560px) {
  .hero { padding: 54px 0 42px; }
  .nav { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .contact-box, .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
