/* puzzlemate.app – shared styles for PuzzleMate (theme-pm), Red Zone Dynasty (theme-rzd) and
   Pop the Planet (theme-ptp, at the end of this file).
   No external fonts or scripts: nothing on these pages contacts a third party. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-800-italic.ttf') format('truetype');
}

/* Pop the Planet: the app's fonts, subset to Latin (OFL, see fonts/OFL.txt). */
@font-face { font-family: 'DynaPuff'; font-weight: 700; font-display: swap; src: url('fonts/dynapuff-700.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('fonts/onest-400.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('fonts/onest-600.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 400; font-display: swap; src: url('fonts/martian-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 600; font-display: swap; src: url('fonts/martian-mono-600.woff2') format('woff2'); }

:root {
  --radius: 16px;
  --radius-s: 10px;
  --max: 1080px;
  --text-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.theme-pm {
  --bg: #0e0d0b;
  --bg-2: #14120f;
  --surface: #1b1915;
  --surface-2: #25221c;
  --line: #34302a;
  --text: #f3eee6;
  --muted: #bdb5a8;
  --soft: #8e877b;
  --accent: #d6a935;
  --accent-2: #f1cd68;
  --on-accent: #15110a;
  --link: #e7c158;
  --glow: rgba(214, 169, 53, 0.22);
  --header-bg: rgba(14, 13, 11, 0.88);
  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --display-weight: 700;
  --display-style: normal;
  --display-case: none;
}

/* BALLANCHE: das dunkle Spielfeld (#0B0E1A), Eis-Cyan der Baelle, Schlaeger-Gelb. Systemschrift, schwer. */
.theme-bl {
  --bg: #0b0e1a;
  --bg-2: #0e1426;
  --surface: #141a2e;
  --surface-2: #1a2136;
  --line: #2a3350;
  --text: #ffffff;
  --muted: #b8c1d6;
  --soft: #8a94ad;
  --accent: #67e8f9;
  --accent-2: #ffe066;
  --on-accent: #06121f;
  --link: #67e8f9;
  --glow: rgba(103, 232, 249, 0.22);
  --header-bg: rgba(11, 14, 26, 0.9);
  --display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 900;
  --display-style: normal;
  --display-case: none;
}

.theme-rzd {
  --bg: #0b1220;
  --bg-2: #0e1628;
  --surface: #141e33;
  --surface-2: #1b2742;
  --line: #2a3a58;
  --text: #ffffff;
  --muted: #b9c4d8;
  --soft: #8394b3;
  --accent: #c8102e;
  --accent-2: #ffb81c;
  --on-accent: #ffffff;
  --link: #ffcf5c;
  --glow: rgba(200, 16, 46, 0.28);
  --header-bg: rgba(11, 18, 32, 0.9);
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --display-weight: 800;
  --display-style: italic;
  --display-case: uppercase;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: 0.2px;
  line-height: 1.05;
}
.theme-rzd .display { letter-spacing: 0.5px; }
.theme-bl .display { letter-spacing: 1px; }
.theme-bl .brand .display em, .theme-bl .hero h1 .gold { color: var(--accent-2); font-style: normal; }
.theme-bl .pass h3 { font-style: normal; color: var(--accent); }
.theme-bl .btn.ghost[aria-disabled] { cursor: default; opacity: .85; }
.promo + .promo { margin-top: 12px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.theme-rzd .site-header { border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .display { font-size: 22px; }
.brand .display em { font-style: inherit; color: var(--accent-2); }
.theme-pm .brand .display em { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.langs { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.langs a { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border-radius: 999px; }
.langs a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
@media (max-width: 760px) {
  .nav .nav-link { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand .display { font-size: 19px; }
  .langs a { padding: 5px 7px; letter-spacing: .5px; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700; font-size: 15px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.theme-pm .btn { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.theme-rzd .btn { border-radius: 0; transform: skewX(-10deg); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 19px; letter-spacing: .5px; padding: 11px 24px; }
.theme-rzd .btn > * { transform: skewX(10deg); }
.theme-rzd .btn:hover { transform: skewX(-10deg) translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 0 0 18px; }
.hero h1 .gold { color: var(--accent-2); }
.theme-pm .hero h1 .gold { color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 5px 12px; border-radius: 999px; }
.theme-rzd .chips li { border-radius: 0; transform: skewX(-10deg); }
.theme-rzd .chips li span { display: inline-block; transform: skewX(10deg); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
}

/* PuzzleMate hero art: the app icon on a softly lit chess board. */
.board {
  position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; border-radius: 28px;
  background:
    conic-gradient(from 90deg, #2a251d 25%, #1a1814 0 50%, #2a251d 0 75%, #1a1814 0) 0 0 / 25% 25%;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 1px var(--line);
  transform: rotate(-4deg);
}
.board::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(14,13,11,.85) 78%); }
.board img { position: absolute; z-index: 1; width: 52%; height: auto; left: 24%; top: 22%; border-radius: 22%; box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 80px var(--glow); transform: rotate(4deg); }
@media (max-width: 860px) { .board { max-width: 260px; border-radius: 22px; } }

/* Red Zone Dynasty hero art: a phone with the live game. */
.phone {
  position: relative; width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 9 / 18.5;
  border-radius: 40px; padding: 12px; background: #05080f;
  box-shadow: 0 0 0 2px #24324d, 0 40px 80px rgba(0,0,0,.6), 0 0 120px var(--glow);
  transform: rotate(4deg);
}
.phone img { width: 100%; height: 100% !important; object-fit: cover; object-position: top; border-radius: 30px; }
.stripes { position: absolute; left: -20%; right: -20%; top: 52%; height: 54px; background: var(--accent); transform: rotate(-22deg); box-shadow: 0 70px 0 -36px var(--accent-2); }
.phone { z-index: 1; }
.hero-art { position: relative; }
@media (max-width: 860px) { .phone { width: min(240px, 64vw); } }

/* ── Stats band ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
.stat { background: var(--bg-2); padding: 20px 18px; }
.stat b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: 30px; line-height: 1.1; color: var(--accent-2); }
.theme-pm .stat b { color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 64px 0 8px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.lang-block { scroll-margin-top: 72px; }
.lang-block + .lang-block { border-top: 1px solid var(--line); margin-top: 72px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
}
.theme-rzd .card { border-radius: 4px; border-top: 3px solid var(--accent-2); }
.card h3 { margin: 12px 0 6px; font-size: 18px; line-height: 1.3; color: var(--text); }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent-2); border: 1px solid var(--line); }
.theme-pm .icon { color: var(--accent); }
.theme-rzd .icon { border-radius: 0; transform: skewX(-10deg); background: var(--accent); color: #fff; border: 0; }
.icon svg { width: 22px; height: 22px; }
.theme-rzd .icon svg { transform: skewX(10deg); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Contact + more */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split > *, .grid > *, .hero .wrap > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.contact a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.contact a:first-of-type { border-top: 0; }
.contact a small { display: block; color: var(--soft); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.contact a .icon { flex: none; }
.promo { display: flex; gap: 18px; align-items: center; background: #0b1220; border: 1px solid #2a3a58; border-top: 3px solid #c8102e; border-radius: 6px; padding: 20px; color: #fff; }
.promo:hover { text-decoration: none; border-color: #ffb81c; }
.promo img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.promo .t { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.promo .t em { font-style: inherit; color: #ffb81c; }
.promo p { margin: 6px 0 0; color: #b9c4d8; font-size: 14px; line-height: 1.5; }
.promo .go { margin-left: auto; color: #ffb81c; font-size: 22px; }

/* The other apps keep their own look wherever they are advertised. */
.promo.bl { background: #0b0e1a; border-color: #2a3350; border-top-color: #67e8f9; border-radius: 16px; }
.promo.bl:hover { border-color: #ffe066; }
.promo.bl .t { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-style: normal; font-weight: 900; letter-spacing: 1px; font-size: 23px; }
.promo.bl .t em { color: #ffe066; }
.promo.bl p { color: #b8c1d6; }
.promo.bl .go { color: #67e8f9; }
.promo.pm { background: #14120f; border-color: #34302a; border-top-color: #d6a935; border-radius: 16px; }
.promo.pm:hover { border-color: #f1cd68; }
.promo.pm .t { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; font-style: normal; font-weight: 700; text-transform: none; font-size: 24px; }
.promo.pm .t em { color: #d6a935; }
.promo.pm p { color: #bdb5a8; }
.promo.pm .go { color: #d6a935; }
.promo.ptp { background: #fffdf8; border: 0; border-radius: 22px; color: #1d2a33; box-shadow: 0 5px 0 #c9dde5; position: relative; }
.promo.ptp:hover { box-shadow: 0 5px 0 #e5483c; }
.promo.ptp .t { font-family: 'DynaPuff', system-ui, sans-serif; font-style: normal; font-weight: 700; text-transform: none; font-size: 23px; }
.promo.ptp .t em { color: #e5483c; }
.promo.ptp p { color: #46555f; }
.promo.ptp .go { color: #2f6fd1; }

/* Legal link cards */
.legal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .legal-cards { grid-template-columns: 1fr; } }
.legal-cards a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; color: var(--text); }
.legal-cards a:hover { border-color: var(--accent); text-decoration: none; }
.legal-cards b { display: block; }
.legal-cards span { font-size: 13px; color: var(--muted); }

/* Screenshot rail (Red Zone Dynasty) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.rail img { border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; background: var(--surface); }
.pass { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; background: linear-gradient(120deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line); border-left: 4px solid var(--accent-2); padding: 28px; }
.pass h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--accent-2); font-size: 34px; margin: 0 0 8px; line-height: 1; }
.pass p { color: var(--muted); margin: 0; }
.pass ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pass li { padding-left: 26px; position: relative; color: var(--text); font-size: 15px; }
.pass li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 9px; border-left: 3px solid var(--accent-2); border-bottom: 3px solid var(--accent-2); transform: rotate(-45deg); }
@media (max-width: 760px) { .pass { grid-template-columns: 1fr; } }

/* ── Legal pages ────────────────────────────────────────── */
.doc-head { padding: 48px 0 8px; }
.doc-head .crumbs { font-size: 14px; color: var(--soft); }
.doc-head .crumbs a { color: var(--muted); }
.doc { max-width: 780px; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); margin: 24px 0; scroll-margin-top: 80px; }
.theme-rzd .prose { border-radius: 4px; border-top: 3px solid var(--accent); }
.prose h1 { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); text-transform: var(--display-case); font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 10px; color: var(--accent-2); overflow-wrap: break-word; }
.theme-pm .prose h1 { color: var(--accent); }
.prose .meta { display: inline-block; font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; margin: 0 0 18px; }
.prose h2 { font-size: 19px; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); }
.prose h3 { font-size: 16px; margin: 20px 0 6px; color: var(--accent-2); }
.theme-pm .prose h3 { color: var(--accent); }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--text); }
.prose a { overflow-wrap: anywhere; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ── Pop the Planet ─────────────────────────────────────────
   The app's "soft & tactile packaging" look: plastic-film blue, shipping-label white, red FRAGILE
   tape, authority-blue stamp ink, kraft cardboard. Light theme. */
.theme-ptp {
  --bg: #e4eef2;
  --bg-2: #d9e7ed;
  --surface: #fffdf8;
  --surface-2: #e4eef2;
  --line: #c9dde5;
  --text: #1d2a33;
  --muted: #46555f;
  --soft: #5b6b75;
  --accent: #e5483c;
  --accent-2: #2f6fd1;
  --on-accent: #1d2a33;
  --link: #2457a8;
  --glow: transparent;
  --header-bg: rgba(255, 253, 248, 0.92);
  --display: 'DynaPuff', 'Trebuchet MS', system-ui, sans-serif;
  --display-weight: 700;
  --display-style: normal;
  --display-case: none;
  --text-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --tape: repeating-linear-gradient(90deg, #e5483c 0 26px, #fff 26px 40px, #e5483c 40px 54px);
  --shadow: 0 5px 12px rgba(30, 60, 80, 0.14);
}
.theme-ptp .display { letter-spacing: 0; line-height: 1.08; }
.theme-ptp .eyebrow, .theme-ptp .chips li, .theme-ptp .stat span, .theme-ptp .doc-head .crumbs, .theme-ptp .prose .meta,
.theme-ptp .contact a small, .theme-ptp .site-footer h4, .theme-ptp .legal-cards span, .theme-ptp .langs a {
  font-family: var(--mono); letter-spacing: .6px;
}
.theme-ptp .eyebrow { font-size: 11px; letter-spacing: 1.2px; font-weight: 600; }

/* header: a label with a strip of parcel tape underneath */
.theme-ptp .site-header { border-bottom: 0; }
.theme-ptp .site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--tape); }
.theme-ptp .brand .display em { color: var(--accent); }
.theme-ptp .nav a:hover { background: var(--surface-2); }
.theme-ptp .langs { background: var(--surface-2); border-color: var(--line); }
.theme-ptp .langs a:hover { background: var(--surface); }

/* hero: bubble wrap in the background */
.theme-ptp .hero {
  padding-top: 84px;
  background:
    radial-gradient(circle at 36% 34%, rgba(255,255,255,.95) 0 2.5px, transparent 3.5px) 0 0 / 36px 62px,
    radial-gradient(circle at 36% 34%, rgba(255,255,255,.95) 0 2.5px, transparent 3.5px) 18px 31px / 36px 62px,
    radial-gradient(circle, rgba(255,255,255,.55) 0 12px, rgba(110,150,170,.22) 12.5px 13.5px, transparent 14px) 0 0 / 36px 62px,
    radial-gradient(circle, rgba(255,255,255,.55) 0 12px, rgba(110,150,170,.22) 12.5px 13.5px, transparent 14px) 18px 31px / 36px 62px,
    var(--bg);
}
.theme-ptp .hero::before { display: none; }
.theme-ptp .hero .wrap > div:first-child { background: var(--surface); border-radius: 26px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); position: relative; }
.theme-ptp .hero .wrap > div:first-child::before { content: ''; position: absolute; top: -12px; left: 34px; width: 108px; height: 24px; background: var(--tape); transform: rotate(-3deg); opacity: .95; }
.theme-ptp .hero h1 { font-size: clamp(36px, 5.6vw, 58px); }
.theme-ptp .hero h1 .gold { color: var(--accent); }
.theme-ptp .hero .lede { font-size: 18px; }

/* buttons: the app's press keys, with a thick lower edge */
.theme-ptp .btn { background: #ffd84d; color: #1d2a33; border: 0; border-radius: 16px; box-shadow: 0 5px 0 #c9a320; font-family: var(--display); font-size: 17px; padding: 13px 22px; }
.theme-ptp .btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #c9a320; }
.theme-ptp .stamp { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); border: 2px solid var(--accent-2); border-radius: 8px; padding: 9px 12px; transform: rotate(-3deg); }
.theme-ptp .chips li { font-size: 11px; text-transform: uppercase; border: 1.5px dashed #9bb3bf; background: transparent; border-radius: 8px; color: var(--soft); }

/* hero art: the game on a phone, taped down, with the planet peeking in */
.theme-ptp .hero-art { min-height: 480px; display: grid; place-items: center; }
.theme-ptp .phone { background: #1d2a33; box-shadow: 0 0 0 3px #1d2a33, 0 26px 50px rgba(30,60,80,.35); border-radius: 38px; padding: 9px; width: min(250px, 62vw); aspect-ratio: 360 / 780; transform: rotate(3deg); }
.theme-ptp .phone img { border-radius: 30px; }
.theme-ptp .tape-strip { position: absolute; left: -6%; right: -6%; top: 47%; height: 44px; background: var(--tape); background-size: 54px 100%; transform: rotate(-9deg); box-shadow: 0 4px 0 rgba(30,60,80,.12); }
.theme-ptp .hero-art .earth { position: absolute; left: -2%; bottom: -6%; width: 44%; max-width: 190px; transform: rotate(-10deg); z-index: 2; filter: drop-shadow(0 8px 10px rgba(30,60,80,.25)); }
@media (max-width: 860px) {
  .theme-ptp .hero { padding-top: 48px; }
  .theme-ptp .hero-art { min-height: 0; padding: 8px 0 20px; }
  .theme-ptp .phone { width: min(200px, 54vw); }
}

/* stats: one shipping label, perforated */
.theme-ptp .stats { background: var(--surface); border: 0; gap: 0; border-radius: 22px; box-shadow: var(--shadow); margin-top: 28px; }
.theme-ptp .stat { background: transparent; border-left: 2px dashed var(--line); }
.theme-ptp .stat:first-child { border-left: 0; }
.theme-ptp .stat b { color: var(--text); font-size: 27px; }
.theme-ptp .stat span { font-size: 11px; color: var(--soft); line-height: 1.5; display: block; margin-top: 4px; }
@media (max-width: 640px) {
  .theme-ptp .stat:nth-child(odd) { border-left: 0; }
  .theme-ptp .stat:nth-child(n+3) { border-top: 2px dashed var(--line); }
}

/* label cards */
.theme-ptp .card { background: var(--surface); border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.theme-ptp .card h3 { font-family: var(--display); font-size: 20px; }
.theme-ptp .icon { width: 60px; height: 60px; border-radius: 16px; background: var(--surface-2); border: 0; color: var(--accent-2); }
.theme-ptp .icon img { width: 44px; height: 44px; }
.theme-ptp .contact .icon { width: 44px; height: 44px; border-radius: 12px; }
.theme-ptp .rail { grid-auto-columns: minmax(170px, 200px); }
.theme-ptp .rail img { aspect-ratio: 360 / 780; border: 3px solid #1d2a33; border-radius: 22px; }
.theme-ptp .faq details { background: var(--surface); border: 0; border-radius: 16px; box-shadow: 0 3px 0 var(--line); }
.theme-ptp .legal-cards a { border: 0; border-radius: 16px; box-shadow: 0 4px 0 var(--line); }
.theme-ptp .legal-cards a:hover { box-shadow: 0 4px 0 var(--accent); }
.theme-ptp .legal-cards b { font-family: var(--display); }
.theme-ptp .legal-cards span { font-size: 11px; text-transform: uppercase; color: var(--soft); }
.theme-ptp .lang-block + .lang-block { border-top: 0; background: linear-gradient(var(--tape), var(--tape)) top / 100% 6px no-repeat; }

/* legal pages: paper */
.theme-ptp .prose { border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.theme-ptp .prose h1 { color: var(--text); font-size: clamp(23px, 6vw, 40px); hyphens: auto; }
.theme-ptp .prose .meta { font-size: 11px; border-radius: 8px; border: 1.5px dashed #9bb3bf; background: transparent; }
.theme-ptp .prose h2 { border-top: 2px dashed var(--line); }
.theme-ptp .prose h3 { color: var(--accent-2); }

/* footer: kraft cardboard */
.theme-ptp .site-footer { background: #dcbd92; border-top: 0; color: #4a3a22; position: relative; }
.theme-ptp .site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tape); }
.theme-ptp .site-footer a { color: #1d2a33; }
.theme-ptp .site-footer h4, .theme-ptp .site-footer .copy { color: #5d4826; }
.theme-ptp .site-footer .copy { border-top: 2px dashed #b8935c; }
.theme-ptp .site-footer .brand .display em { color: #b3261c; }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .btns, .hero-art { display: none; }
  .prose { border: 0; padding: 0; background: none; }
  .prose p, .prose li, .prose h1, .prose h2, .prose h3 { color: #000; }
}
