/* Putt Reactor's own pages: the brand's navy, cream and reactor orange (the game's docs/Brand_Guide.md).
   Headlines are Fredoka SemiBold, body is Nunito, both SIL OFL (assets/fonts/*-OFL.txt). No JavaScript. */

@font-face { font-family: "Fredoka"; src: url("assets/fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --navy: #1E2333; --deep: #121521; --panel: #262C40; --line: rgba(255, 246, 224, 0.12);
  --cream: #FFF6E0; --soft: #C9C0A8; --dim: #9A937F;
  --orange: #FF9A2E; --orange-deep: #EE6400; --yellow: #FCD434; --turf: #86C95E;
  --title: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--cream); font: 600 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 800; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--deep); }

/* ---- Top bar: back to the studio, the logo, the game's pages */
.top { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 33, 0.88); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 68px; padding-block: 10px; }
.top a { text-decoration: none; }
.studio-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 246, 224, 0.22); color: var(--soft); font-size: 14px; white-space: nowrap; transition: color .2s, border-color .2s; }
.studio-link:hover { color: var(--cream); border-color: var(--orange); }
.top .brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { padding: 8px 14px; border-radius: 999px; color: var(--soft); font-size: 14px; font-weight: 800; white-space: nowrap; transition: color .2s, background-color .2s; }
.top nav a:hover { color: var(--cream); background: rgba(255, 154, 46, 0.16); }
.top nav a[aria-current="page"] { color: var(--deep); background: var(--orange); }
@media (max-width: 820px) {
  .top nav { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
}

/* ---- Home: key art hero */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 21, 33, 0.9) 0%, rgba(18, 21, 33, 0.66) 36%, rgba(18, 21, 33, 0) 68%),
              linear-gradient(0deg, var(--deep) 0%, rgba(18, 21, 33, 0) 26%); }
.hero .inner { max-width: 560px; padding-block: 56px 96px; }
.hero h1 img { width: min(480px, 100%); margin-left: -14px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)); }
.tagline { margin-top: 18px; font-family: var(--title); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.tagline span { color: var(--orange); }
.lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--cream); max-width: 34em; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.pill { display: inline-block; padding: 12px 22px; border-radius: 999px; background: linear-gradient(180deg, #FFB02E, var(--orange-deep));
  color: var(--deep); font-family: var(--title); font-size: 18px; letter-spacing: 0.02em; box-shadow: 0 6px 0 #A04400, 0 16px 30px -10px rgba(0, 0, 0, 0.6); }
.soon small { font-size: 15px; color: var(--soft); }
@media (max-width: 700px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero picture img { object-position: 50% 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 21, 33, 0.94) 0%, rgba(18, 21, 33, 0.82) 48%, rgba(18, 21, 33, 0.1) 78%, var(--deep) 100%); }
  .hero .inner { padding-block: 32px 62vw; }
  .hero h1 img { margin-left: -8px; }
}

/* ---- Home: sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.section h2 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 46px); }
.section .intro { margin-top: 16px; max-width: 40em; font-size: 19px; color: var(--soft); }

.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: 44px; list-style: none; padding: 0; }
.world { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.world img { width: 100%; aspect-ratio: 660 / 900; object-fit: cover; object-position: 50% 100%; }
.world div { padding: 20px 22px 24px; }
.world h3 { font-size: 24px; }
.world p { margin-top: 8px; color: var(--soft); font-size: 16px; }
@media (max-width: 820px) {
  .worlds { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.features li { padding: 20px 22px; background: var(--navy); border: 1px solid var(--line); border-radius: 18px; }
.features h3 { font-size: 20px; color: var(--yellow); }
.features p { margin-top: 6px; font-size: 15.5px; color: var(--soft); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.phones img { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.8); }
.phones img:last-child { margin-top: 48px; }
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .phones { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

.cta { text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(238, 100, 0, 0.28), rgba(18, 21, 33, 0) 70%); }
.cta img { width: 112px; margin: 0 auto 24px; border-radius: 26px; box-shadow: 0 18px 44px -14px rgba(238, 100, 0, 0.7); }
.cta .intro { margin-inline: auto; }
.cta .pill { margin-top: 30px; }
.cta .fine { margin-top: 26px; font-size: 14px; color: var(--dim); }

/* ---- Policy and support pages */
.page-hero { background: linear-gradient(180deg, rgba(238, 100, 0, 0.2), rgba(18, 21, 33, 0)), var(--navy); border-bottom: 1px solid var(--line); }
.page-hero .wrap { width: min(780px, 100% - 40px); padding-block: clamp(40px, 6vw, 68px) clamp(28px, 4vw, 40px); }
.page-hero h1 { margin-top: 8px; font-size: clamp(34px, 5vw, 50px); }
.page-hero .meta { margin-top: 12px; color: var(--soft); font-size: 15px; }
.doc { width: min(780px, 100% - 40px); margin-inline: auto; padding: 36px 0 88px; }
.doc > * + * { margin-top: 16px; }
.doc h2 { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 26px; }
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 28px; font-size: 19px; color: var(--yellow); }
.doc p, .doc li { color: #E9E0C8; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 7px 0; }
.doc li ul { margin-top: 7px; }
.doc strong { color: var(--cream); }
.doc .short { padding: 20px 22px; background: var(--navy); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; }
.doc address { font-style: normal; }
mark.todo { background: #6B2E00; color: #FFE2C4; padding: 0 5px; border-radius: 4px; } /* a [placeholder] still to fill in */

/* ---- Footer */
.foot { border-top: 1px solid var(--line); background: var(--deep); padding: 30px 0 40px; font-size: 14px; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot .fine { flex-basis: 100%; }

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