/* NewBuddy Games: shared styles */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800 900; font-display: swap; src: url("/assets/fonts/inter-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  --bg: #050A14;
  --navy: #07111F;
  --panel: #0C1A2E;
  --panel-2: #10233D;
  --line: rgba(120, 190, 255, 0.16);
  --line-strong: rgba(120, 190, 255, 0.34);
  --cyan: #2EC4FF;
  --cyan-soft: #BFE6FF;
  --orange: #FF8A1F;
  --gold: #FFB21E;
  --gold-hi: #FFE27A;
  --ink: #FFFFFF;
  --text: #DCE8F5;
  --muted: #A3B5CB;
  --violet: #7C6CFF;
  --mint: #39E0C1;
  --coral: #FF7A9C;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --header-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: rgba(46, 196, 255, 0.18); overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-soft); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: var(--navy); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 18px; }
.h2 em, .display em { font-style: italic; color: var(--cyan); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--cyan-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 10, 20, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; padding: 6px 0; }
.logo img { height: 24px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--ink); background: rgba(46, 196, 255, 0.08); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 10px 10px 2px 2px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.menu-btn .bars { position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 10px; }
  .js .site-nav { display: none; }
  .js .site-header.open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 2px; padding: 4px 0 16px; }
  .js .site-nav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); }
}
@media (max-width: 380px) {
  .logo img { height: 20px; }
  .menu-btn { padding: 0 12px; gap: 8px; }
  .site-header .bar { gap: 10px; }
}

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 14px; font: 800 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s, background 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #04121F; }
.btn-primary:hover { background: #6AD6FF; color: #04121F; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(12, 26, 46, 0.6); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #2A1600; font-style: italic; font-weight: 900; box-shadow: 0 0 22px rgba(255, 178, 30, 0.4); }
.btn-gold:hover { color: #2A1600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--cyan-soft); background: rgba(12, 26, 46, 0.7); }
.chip.gold { border-color: transparent; color: #2A1600; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.chip.mint { border-color: transparent; color: #0E0A26; background: var(--mint); }
.chip svg { width: 14px; height: 14px; }

/* ---------- breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { color: var(--muted); display: inline-block; padding: 10px 2px; margin: -10px -2px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.shot img { width: 100%; height: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; background: var(--bg); }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.site-footer .about p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
