/* ==========================================================================
   McNewStuff — site styles
   Two worlds, one family: warm "workshop" (crafts) + dark "arcade" (games).
   ========================================================================== */

:root {
  /* Core brand (pulled from the logo) */
  --ink: #14213d;          /* logo navy */
  --ink-2: #1e2f52;
  --orange: #e8683a;       /* logo orange */
  --orange-deep: #c9532a;
  --blue: #0084a5;         /* original site + logo ring */
  --blue-deep: #006985;
  --blue-bright: #36c2e3;  /* brand blue on dark backgrounds */
  --blue-soft: #d6eef4;
  --blue-tint: #edf7fa;
  --cream: #fbf5ec;
  --paper: #ffffff;
  --sand: #f1e6d4;
  --wood: #b07a48;
  --muted: #5d6478;
  --line: #e6dccb;

  /* Games world */
  --night: #0d1426;
  --night-2: #16203a;
  --night-line: #26324f;
  --mint: #36c2e3;         /* brand blue, brightened for dark sections */
  --violet: #8b7bff;
  --night-text: #dfe5f5;
  --night-muted: #9aa5c2;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --wrap: 1160px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sparkle motif from the logo */
.sparkle { display: inline-block; width: 1em; height: 1em; background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 236, .88); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--blue);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand img { width: 46px; height: 46px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; padding: .5em .85em; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-deep); }
.nav-links .btn { padding: .6em 1.1em; margin-left: 6px; }
.nav-links .btn:hover { background: var(--orange-deep); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: 8px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9em 1em; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden;
  background: radial-gradient(circle at 78% 45%, rgba(0,132,165,.32) 0, transparent 45%), linear-gradient(180deg, var(--blue-soft), var(--cream)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-logo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-logo img { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.hero-logo .sparkle { position: absolute; color: var(--orange); z-index: 2; animation: twinkle 3s ease-in-out infinite; }
.hero-logo .s1 { width: 34px; height: 34px; top: 4%; right: 6%; }
.hero-logo .s2 { width: 20px; height: 20px; bottom: 12%; left: 2%; color: var(--blue); animation-delay: 1s; }
.hero-logo .s3 { width: 16px; height: 16px; top: 30%; left: -2%; animation-delay: 2s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .hero-logo img, .hero-logo .sparkle { animation: none; } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .btn-row { justify-content: center; }
  .hero-grid .lede { margin-inline: auto; }
  .hero-logo { width: min(280px, 80%); grid-row: 1; }
}

/* ---------- Two-sides split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side {
  position: relative; border-radius: 26px; padding: clamp(28px, 4vw, 48px);
  text-decoration: none; display: flex; flex-direction: column; min-height: 420px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.side:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 33, 61, .18); }
.side h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.side ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.side li { display: flex; gap: 10px; align-items: baseline; }
.side .go { margin-top: auto; font-weight: 700; display: inline-flex; gap: .5em; align-items: center; }
.side .go i { transition: transform .2s; }
.side:hover .go i { transform: translateX(5px); }
.side-craft { background: var(--orange); color: #fff; }
.side-craft .eyebrow { color: #ffe3d2; }
.side-craft li i { color: var(--ink); }
.side-game { background: var(--night); color: var(--night-text); }
.side-game .eyebrow { color: var(--mint); font-family: var(--font-mono); letter-spacing: .08em; }
.side-game h2 { color: #fff; }
.side-game li i { color: var(--mint); }
.side .bg-icon { position: absolute; right: -30px; bottom: -40px; font-size: 220px; opacity: .1; pointer-events: none; }
.side-game::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .35; mask-image: linear-gradient(to top left, #000, transparent 70%);
}
.side > * { position: relative; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .side { min-height: 0; } }

/* ---------- Cards / generic ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-deep); font-size: 1.35rem; margin-bottom: 16px;
}

/* About strip */
.about { background: var(--blue); color: #eaf7fb; }
.about h2 { color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: .9rem; color: #d3eef5; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about .stat-row { grid-template-columns: 1fr; } }

/* ---------- Page heroes ---------- */
.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(36px, 5vw, 60px); }
.page-hero.craft { background: radial-gradient(circle at 88% 15%, #ffd9c4 0, transparent 38%), radial-gradient(circle at 70% 90%, rgba(0,132,165,.18) 0, transparent 40%), var(--blue-tint); }
.page-hero.game { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.page-hero.game h1 { color: #fff; }
.page-hero.game .eyebrow { color: var(--mint); font-family: var(--font-mono); letter-spacing: .08em; }
.page-hero.game .lede { color: var(--night-muted); }
.page-hero.game::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .45; mask-image: radial-gradient(circle at 80% 30%, #000, transparent 65%);
}
.page-hero.game > * { position: relative; }

/* ---------- Crafts: product blocks ---------- */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.product + .product { margin-top: 70px; padding-top: 70px; border-top: 1px dashed var(--line); }
.product-visual {
  border-radius: 24px; aspect-ratio: 4 / 3.4; display: grid; place-items: center; position: sticky; top: 90px;
  background: var(--blue-soft); overflow: hidden;
}
.product-visual i { font-size: 140px; color: var(--wood); opacity: .85; }
.product-visual .tag { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 999px; padding: .4em .9em; font-size: .82rem; font-weight: 700; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.feature-list li::before { content: "✦ "; color: var(--orange); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; }
.steps li::before {
  content: counter(s); width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.subhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-visual { position: static; aspect-ratio: 16 / 9; }
  .product-visual i { font-size: 90px; }
}
@media (max-width: 480px) { .feature-list { grid-template-columns: 1fr; } }

/* Policy band */
.terms { background: var(--blue-tint); border-top: 1px solid var(--blue-soft); border-bottom: 1px solid var(--blue-soft); }
.terms .card { box-shadow: none; }
.terms h3 { font-size: 1.15rem; }
.terms p { margin: 0; color: var(--muted); }

/* Design book */
.book-frame { background: var(--ink); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); }
.book-frame iframe { width: 100%; aspect-ratio: 3 / 4; max-height: 82vh; border: 0; border-radius: 14px; background: #fff; display: block; }

/* ---------- Order builder ---------- */
.builder { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.fieldset legend { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.1em; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; transition: all .12s;
}
.choice input:checked + span { border-color: var(--orange); background: #fff2ea; color: var(--orange-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.color-choice span { padding: .45em .8em .45em .45em; font-size: .9rem; border-radius: 999px; }
.color-choice .dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75em .9em; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .85rem; color: var(--muted); }
[hidden] { display: none !important; }

.summary { position: sticky; top: 90px; background: var(--blue-deep); color: #e9ecf5; border-radius: var(--radius); padding: 26px; }
.summary h3 { color: #fff; }
.summary dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.summary dt { color: #bfe6f0; }
.summary dd { margin: 0; font-weight: 600; }
.summary .note { font-size: .85rem; color: #b8bfd4; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin: 0; }
@media (max-width: 900px) { .summary { position: static; } }

/* ---------- Games page ---------- */
.game-zone { background: var(--night); color: var(--night-text); }
.game-zone h2, .game-zone h3 { color: #fff; }
.game-zone .eyebrow { color: var(--mint); font-family: var(--font-mono); letter-spacing: .08em; }
.game-zone .lede { color: var(--night-muted); }
.game-zone + .game-zone { padding-top: 0; }
.project {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.project:hover { border-color: var(--mint); transform: translateY(-3px); }
.project-art {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 64px; color: var(--night);
  background: linear-gradient(135deg, var(--mint), var(--violet));
}
.project-art.alt { background: linear-gradient(135deg, var(--orange), #ffb36b); }
.project-art img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-body p { color: var(--night-muted); font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font: 700 .72rem/1 var(--font-mono); padding: .5em .7em; border-radius: 6px; background: rgba(54, 194, 227, .12); color: var(--mint); text-transform: uppercase; letter-spacing: .04em; }
.chip.violet { background: rgba(139, 123, 255, .15); color: #b9afff; }
.chip.orange { background: rgba(232, 104, 58, .18); color: #ffad8a; }
.project-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.project-links a {
  font-size: .85rem; font-weight: 600; text-decoration: none; padding: .5em .85em; border-radius: 8px;
  border: 1px solid var(--night-line); color: var(--night-text); display: inline-flex; gap: .45em; align-items: center;
}
.project-links a:hover { border-color: var(--mint); color: var(--mint); }
.project.placeholder { border-style: dashed; }
.services .card { background: var(--night-2); border-color: var(--night-line); box-shadow: none; color: var(--night-text); }
.services .card p { color: var(--night-muted); margin: 0; }
.services .icon-badge { background: rgba(54, 194, 227, .12); color: var(--mint); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); }
.contact-list a { text-decoration: none; font-weight: 600; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--blue); color: #fff; font-size: 1.15rem; transition: background .15s, transform .15s;
}
.social-row a:hover { background: var(--orange); transform: translateY(-2px); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.draft-banner {
  background: #fff6d6; border: 2px dashed #e0b400; border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; font-size: .95rem;
}
.legal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.legal-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.legal-list .links { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-list .links a { font-size: .9rem; font-weight: 600; text-decoration: none; padding: .45em .85em; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.legal-list .links a:hover { border-color: var(--orange); color: var(--orange-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8bfd4; padding: 60px 0 30px; font-size: .95rem;
  border-top: 6px solid var(--blue); box-shadow: inset 0 6px 0 var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.footer-brand img { width: 52px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.site-footer .social-row a { background: rgba(255,255,255,.08); }
.site-footer .social-row a:hover { background: var(--orange); color: #fff; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- King of Puzzles (parchment nod to the game's art) ---------- */
.kop { --parch: #efe1c2; --parch-2: #e5d2aa; --maroon: #8a2a1e; --gold: #b8892f; --brown: #4a3423; }
.kop-hero { background: radial-gradient(circle at 75% 30%, #f8eed6 0, transparent 55%), var(--parch); color: var(--brown); padding: clamp(40px, 7vw, 90px) 0; border-bottom: 3px double var(--gold); }
.kop-hero h1 { color: var(--maroon); font-size: clamp(2.6rem, 7vw, 4.8rem); margin-bottom: .15em; }
.kop-hero .tagline { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.kop-hero .lede { color: #6b5440; }
.kop-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.kop-title { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.kop-title img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 18px rgba(74,52,35,.3); }
.kop .chips .chip { background: rgba(138,42,30,.1); color: var(--maroon); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: #6e1f15; }
.btn-soon { background: transparent; border: 2px dashed rgba(74,52,35,.35); color: #7a634d; cursor: default; }
.btn-soon:hover { transform: none; }
.btn-soon small { font-weight: 600; opacity: .8; }

.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 12px; background: #1d140d; box-shadow: 0 30px 60px rgba(74,52,35,.35), inset 0 0 0 2px #3a2a1d; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: var(--parch); display: block; }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { background: #fbf4e3; border: 2px solid var(--parch-2); border-radius: 16px; padding: 12px 12px 16px; text-align: center; transition: transform .2s, border-color .2s; }
.mode:hover { transform: translateY(-4px); border-color: var(--gold); }
.mode img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 12px; }
.mode h3 { color: var(--maroon); font-size: 1.25rem; margin-bottom: .3em; }
.mode p { font-size: .9rem; color: #6b5440; margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .kop-hero-grid { grid-template-columns: 1fr; } .kop-hero-grid .phone { grid-row: 2; } }

.kop-section { background: #f7eedb; color: var(--brown); }
.kop-section h2 { color: var(--maroon); }
.kop-section .eyebrow { color: var(--gold); }
.kop-section .card { background: #fbf4e3; border-color: var(--parch-2); box-shadow: none; }
.kop-section .card p { color: #6b5440; margin: 0; }
.kop-section .icon-badge { background: rgba(184,137,47,.16); color: var(--maroon); }
.kop-section.alt { background: var(--parch); }

.shot-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; }
.shot-strip figure { flex: 0 0 auto; width: min(240px, 62vw); margin: 0; scroll-snap-align: start; }
.shot-strip img { border-radius: 22px; border: 6px solid #1d140d; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.shot-strip figcaption { text-align: center; font-weight: 700; color: var(--maroon); margin-top: 8px; font-family: var(--font-display); }
.platform-row { display: flex; flex-wrap: wrap; gap: 18px; color: #6b5440; font-weight: 600; margin: 6px 0 22px; }
.platform-row i { color: var(--maroon); margin-right: 4px; }

/* ---------- Themed game pages (An Itch to Scratch, Pirates vs Poseidon) ---------- */
.gp { --gp-bg: #17132a; --gp-bg2: #221c3d; --gp-line: #3a3163; --gp-ink: #f3efff; --gp-muted: #b6aed6; --gp-accent: #ffd23f; --gp-accent2: #ff5c7a; --gp-on-accent: #241a00;
  background: var(--gp-bg); color: var(--gp-ink); }
.gp.pvp { --gp-bg: #0a1a2e; --gp-bg2: #10263f; --gp-line: #1f3d5e; --gp-ink: #eaf2fb; --gp-muted: #9db4cc; --gp-accent: #e2c27a; --gp-accent2: #4fd1c5; --gp-on-accent: #1c1405; }
.gp h1, .gp h2, .gp h3 { color: #fff; }
.gp .lede { color: var(--gp-muted); }
.gp .eyebrow { color: var(--gp-accent); }
.gp-hero { padding: clamp(40px, 7vw, 90px) 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--gp-line); }
.gp-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.gp-hero .tagline { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.55rem); color: var(--gp-accent); font-weight: 700; margin-bottom: 16px; }
.gp-hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); margin-bottom: .2em; }
.gp-title { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.gp-title img.icon { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.gp-logo { max-width: 340px; margin-bottom: 8px; }
.gp .platform-row { color: var(--gp-muted); }
.gp .platform-row i { color: var(--gp-accent); }
.gp .chips .chip { background: color-mix(in srgb, var(--gp-accent) 16%, transparent); color: var(--gp-accent); }
.btn-gp { background: var(--gp-accent); color: var(--gp-on-accent); }
.btn-gp:hover { filter: brightness(1.08); }
.gp .btn-soon { border-color: color-mix(in srgb, var(--gp-ink) 30%, transparent); color: var(--gp-muted); }
.gp-screen { border-radius: 18px; overflow: hidden; border: 1px solid var(--gp-line); box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #000; }
.gp-screen img, .gp-screen video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.gp-section { padding: clamp(56px, 8vw, 100px) 0; }
.gp-section.alt { background: var(--gp-bg2); }
.gp .card { background: var(--gp-bg2); border-color: var(--gp-line); box-shadow: none; color: var(--gp-ink); }
.gp-section.alt .card { background: var(--gp-bg); }
.gp .card p { color: var(--gp-muted); margin: 0; }
.gp .icon-badge { background: color-mix(in srgb, var(--gp-accent) 15%, transparent); color: var(--gp-accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; border: 1px solid var(--gp-line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--gp-muted); margin-top: 8px; line-height: 1.4; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat-strip div { border: 1px solid var(--gp-line); border-radius: 14px; padding: 18px; text-align: center; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gp-accent); line-height: 1.1; }
.stat-strip span { font-size: .88rem; color: var(--gp-muted); }
.role-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role { border-radius: 20px; padding: 30px; border: 1px solid var(--gp-line); background: var(--gp-bg2); }
.role h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.role h3 i { color: var(--gp-accent); }
.role.god h3 i { color: var(--gp-accent2); }
.role ul { margin: 0; padding-left: 1.1em; color: var(--gp-muted); }
.role li { margin-bottom: .45em; }
.gp-footer-links { text-align: center; margin-top: 28px; color: var(--gp-muted); }
.gp-footer-links a { color: var(--gp-accent); }
@media (max-width: 860px) {
  .gp-hero-grid, .role-split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; grid-row: auto; } }

/* Combined privacy / support pages */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { font-size: .9rem; font-weight: 600; text-decoration: none; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.toc a:hover { border-color: var(--blue); color: var(--blue-deep); }
.policy-part { border-top: 1px dashed var(--line); margin-top: 2.4em; padding-top: .4em; scroll-margin-top: 90px; }
.policy-part > h2 { font-size: 1.9rem; margin-top: 1em; }
.legal h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }

/* Suncatchers */
.product-visual.photo { background: #1d140d; }
.product-visual.photo img { width: 100%; height: 100%; object-fit: cover; }
.sun-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 24px; }
.sun-gallery img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.product-visual.photo video { width: 100%; height: 100%; object-fit: cover; }

/* Brand blue accents */
.eyebrow .sparkle { color: var(--blue); }
.about .eyebrow, .about .eyebrow .sparkle { color: #fff !important; }
.feature-list li::before { color: var(--blue); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.side-craft li i { color: #fff; }
.side-craft .eyebrow { color: var(--ink); }
