/* ==========================================================================
   Single Tap Games — site styles
   Mobile-first. Plain CSS, no build step.
   Sections: tokens · base · layout · header · hero · buttons/badges ·
             watch frames · games · gallery · features · support · footer ·
             legal pages · utilities
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ----------
   Every color on the site comes from these custom properties.
   Default theme = "Night". Alternative themes override them in css/themes.css
   via <html data-theme="...">. Layout tokens (radius, spacing, fonts) are theme-independent. */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0b0b16;
  --bg-2: #12122a;
  --surface: #17172f;
  --surface-2: #1f1f3d;
  --line: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(11, 11, 22, 0.78);
  /* text */
  --text: #f4f4fb;
  --muted: #a9a9c6;
  --prose-text: #cfcfe4;
  --heading: var(--text);
  --heading-shadow: none;
  /* brand accents */
  --accent: #ffd60a;            /* primary buttons, CTA, focus ring */
  --on-accent: #16110a;         /* text on --accent */
  --accent-hover: #ffffff;
  --on-accent-hover: #111111;
  --eyebrow: #ffd60a;           /* small uppercase labels */
  --link: #ffd60a;
  --link-hover: #ffffff;
  --pop: #ffd60a;               /* "Tap!" sticker, "New" tag */
  --on-pop: #16110a;
  --chip-dot: #34d399;
  --grad-1: #ffd60a; --grad-2: #ff4d8d; --grad-3: #a78bfa;   /* tagline gradient */
  /* game / feature accent palette (card stripes, icon tiles) */
  --yellow: #ffd60a;
  --pink: #ff4d8d;
  --green: #34d399;
  --blue: #3b82f6;
  --red: #ff5a4e;
  --purple: #a78bfa;
  --tile-alpha: 16%;            /* strength of feature icon tile tint */
  /* ambient glows */
  --glow-1: rgba(255, 77, 141, 0.28);
  --glow-2: rgba(59, 130, 246, 0.30);
  --glow-3: rgba(52, 211, 153, 0.18);
  --icon-glow: rgba(127, 213, 239, 0.45);
  --cta-glow: rgba(255, 77, 141, 0.25);
  /* watch hardware */
  --case-1: #3a3a44; --case-2: #121217;
  --crown-1: #2a2a31; --crown-2: #55555f;
  --case-edge: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.7);
  --shadow: 0 20px 50px -20px var(--shadow-color);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --gutter: clamp(18px, 5vw, 40px);
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); text-shadow: var(--heading-shadow); font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 7vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 100px); position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 6vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav .nav-link { display: none; }
.nav .nav-cta { background: var(--accent); color: var(--on-accent); font-weight: 700; padding-inline: 18px; }
.nav .nav-cta:hover { background: var(--accent-hover); color: var(--on-accent-hover); }
@media (min-width: 900px) { .nav .nav-link { display: inline-flex; } } /* 900 (not 760): room for brand + 4 links + coffee + Download on one line */

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 9vw, 96px) clamp(56px, 10vw, 110px); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  background:
    radial-gradient(40% 35% at 20% 20%, var(--glow-1), transparent 70%),
    radial-gradient(35% 35% at 85% 30%, var(--glow-2), transparent 70%),
    radial-gradient(35% 30% at 60% 90%, var(--glow-3), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(40px, 8vw, 64px); align-items: center; }
.hero-copy { text-align: center; }
.app-icon { width: clamp(88px, 24vw, 112px); height: auto; aspect-ratio: 1; border-radius: 24%; margin: 0 auto 20px; box-shadow: 0 16px 40px -12px var(--icon-glow), 0 0 0 1px var(--line); }
.hero h1 { margin-bottom: 0.2em; }
.tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 5.4vw, 1.9rem); margin: 0 0 16px; background: linear-gradient(90deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 auto 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { font-size: 0.875rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.chips li::before { content: "●"; margin-right: 6px; font-size: 0.7em; vertical-align: 1px; color: var(--chip-dot); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 280px; }
.hero-visual .watch-apple { width: clamp(170px, 48vw, 250px); transform: rotate(-6deg); z-index: 1; }
.hero-visual .watch-wear { width: clamp(140px, 40vw, 210px); margin-left: clamp(-40px, -8vw, -28px); margin-bottom: -10px; transform: rotate(7deg); z-index: 2; }
.float-tap { position: absolute; top: 4%; right: 8%; font-family: var(--font-display); font-weight: 700; color: var(--on-pop); background: var(--pop); padding: 6px 14px; border-radius: 999px; transform: rotate(10deg); box-shadow: var(--shadow); font-size: 0.95rem; z-index: 3; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(10deg) translateY(-6px); } }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero-copy { text-align: left; }
  .hero-copy .app-icon { margin-left: 0; }
  .hero-copy .lead { margin-left: 0; }
  .hero-copy .badges, .hero-copy .chips { justify-content: flex-start; }
  .hero-visual { min-height: 420px; }
  .hero-visual .watch-apple { width: 290px; }
  .hero-visual .watch-wear { width: 236px; margin-left: -44px; }
}

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.badge { display: inline-flex; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; line-height: 0; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--shadow-color); }
.badge img { height: 56px; width: auto; } /* >= 44px tap target; same height for both per brand guidelines */
.badge-apple img { aspect-ratio: 119.66 / 40; }
.badge-google img { aspect-ratio: 564 / 168; }
@media (max-width: 379px) {
  .badges { flex-direction: column; }
  .badge img { height: 54px; }
}

/* ---------- watch frames ---------- */
/* Apple Watch (rectangular). Store screenshots are 422×514. */
.watch-apple { position: relative; display: flow-root; padding: 0; /* bezel = img margin (% margins resolve against this element's width; % padding would use the parent's). flow-root stops the margins collapsing. */ border-radius: 30%/26%; background: linear-gradient(145deg, var(--case-1), var(--case-2) 60%); box-shadow: inset 0 0 0 2px var(--case-edge), var(--shadow); }
.watch-apple::after { /* digital crown */ content: ""; position: absolute; right: -3.5%; top: 24%; width: 4.5%; height: 16%; border-radius: 6px; background: linear-gradient(90deg, var(--crown-1), var(--crown-2)); }
.watch-apple img { display: block; width: 86%; margin: 7%; aspect-ratio: 422 / 514; object-fit: cover; border-radius: 22%/18%; background: #000; }
/* Wear OS (round). Store screenshots are 360×360, masked to a circle. */
.watch-wear { position: relative; display: flow-root; padding: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--case-1), var(--case-2) 65%); box-shadow: inset 0 0 0 2px var(--case-edge), var(--shadow); }
.watch-wear::after { content: ""; position: absolute; right: -4%; top: 42%; width: 6%; height: 16%; border-radius: 6px; background: linear-gradient(90deg, var(--crown-1), var(--crown-2)); }
.watch-wear img { display: block; width: 82%; margin: 9%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #000; }

/* ---------- games ---------- */
.games-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .games-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 980px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card { --card-accent: var(--yellow); position: relative; display: flex; gap: 16px; align-items: center; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: hidden; }
.game-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--card-accent); }
.game-card .thumb { flex: 0 0 auto; width: 96px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.game-card h3 { margin: 0 0 4px; }
.game-card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag-new { background: var(--pop); color: var(--on-pop); border-color: transparent; }
@media (min-width: 980px) {
  .game-card { flex-direction: column; align-items: stretch; text-align: left; padding: 16px; }
  .game-card .thumb { width: 100%; aspect-ratio: 16 / 11; }
  .game-card .thumb img { object-position: center 60%; }
}
.accent-pink { --card-accent: var(--pink); } .accent-green { --card-accent: var(--green); } .accent-yellow { --card-accent: var(--yellow); }
.accent-blue { --card-accent: var(--blue); } .accent-purple { --card-accent: var(--purple); } .accent-red { --card-accent: var(--red); }

/* ---------- gallery ---------- */
.gallery { padding-top: clamp(40px, 7vw, 64px); background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg)); }
.gallery-group + .gallery-group { margin-top: clamp(40px, 8vw, 64px); }
.gallery-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gallery-title h3 { margin: 0; font-size: 1.2rem; }
.gallery-title .hint { color: var(--muted); font-size: 0.9rem; }
.scroller {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 14px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; -webkit-overflow-scrolling: touch;
  list-style: none;
}
.scroller::-webkit-scrollbar { height: 6px; } .scroller::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 6px; }
.scroller > li { flex: 0 0 auto; scroll-snap-align: center; margin: 0; }
.scroller figure { margin: 0; }
.scroller figcaption { text-align: center; margin-top: 12px; font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.scroller .watch-apple { width: 58vw; max-width: 200px; }
.scroller .watch-wear { width: 58vw; max-width: 200px; }
@media (min-width: 1024px) {
  .scroller { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; row-gap: 28px; }
  .scroller .watch-apple { width: 132px; }
  .scroller { column-gap: 22px; }
  .scroller .watch-wear { width: 176px; }
  .gallery-title .hint { display: none; }
}

/* ---------- features ---------- */
.features-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.5rem; line-height: 1; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 559px) {
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .feature .ico { grid-row: span 2; margin-bottom: 0; }
}
.bg-yellow { background: color-mix(in srgb, var(--yellow) var(--tile-alpha), transparent); }
.bg-pink   { background: color-mix(in srgb, var(--pink) var(--tile-alpha), transparent); }
.bg-green  { background: color-mix(in srgb, var(--green) var(--tile-alpha), transparent); }
.bg-blue   { background: color-mix(in srgb, var(--blue) var(--tile-alpha), transparent); }
.bg-purple { background: color-mix(in srgb, var(--purple) var(--tile-alpha), transparent); }
.bg-red    { background: color-mix(in srgb, var(--red) var(--tile-alpha), transparent); }

/* ---------- download CTA + support ---------- */
.cta-card { text-align: center; background: radial-gradient(80% 120% at 50% 0%, var(--cta-glow), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 7vw, 64px) clamp(20px, 5vw, 48px); }
.cta-card .app-icon { width: 80px; }
.cta-card p { color: var(--muted); max-width: 32em; margin-inline: auto; }
.cta-card .badges { justify-content: center; margin-top: 24px; }

.support-card { display: grid; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 36px); }
.support-card h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 8px; }
.support-card p { color: var(--muted); margin: 0; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 760px) { .support-card { grid-template-columns: 1.4fr auto; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text); text-decoration: none; padding: 10px 10px; display: inline-block; min-height: 44px; }
.footer-links a:hover { color: var(--link); }
.trademarks { font-size: 0.8rem; max-width: 60em; margin: 0; }
@media (min-width: 760px) { .footer-grid { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; } .trademarks { flex-basis: 100%; } }

/* ---------- legal / text pages ---------- */
.legal { padding-block: clamp(40px, 8vw, 80px); }
.legal .prose { max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 48px); }
.prose h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p { color: var(--prose-text); overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.source-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2em; padding-top: 1em; }

/* ---------- utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- policy extras ---------- */
.policy-meta { color: var(--muted); font-size: 0.95rem; margin-top: -0.4em; }
.callout { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; margin: 1.2em 0 0.4em; }
.callout p { margin: 0; color: var(--text); }
.prose ul { color: var(--prose-text); padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.55em; overflow-wrap: anywhere; }
.prose li strong { color: var(--text); }

/* utilities (replace former inline styles so the CSP can use style-src 'self') */
.section.pt-0 { padding-top: 0; }
.copyright { margin: 0; }
.game-card .thumb img.pos-center { object-position: center; }
/* 404 page */
.not-found { text-align: center; padding-block: clamp(24px, 6vw, 56px); }
.not-found-icon { width: 112px; height: 112px; margin: 0 auto 20px; border-radius: 26px; box-shadow: var(--shadow); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
/* Buy Me a Coffee: plain link (no third-party script), BMC brand yellow, deliberately smaller than the store badges */
.coffee-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.coffee-row p { flex: 1 1 260px; font-size: 0.95rem; }
.coffee-row-page { margin: 28px 0; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.btn-coffee { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: #ffdd00; color: #0d0c22; border: 1px solid rgba(13, 12, 34, 0.14); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 rgba(13, 12, 34, 0.12); transition: transform .15s ease, box-shadow .15s ease; }
.btn-coffee:hover { color: #0d0c22; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(13, 12, 34, 0.16); }
.btn-coffee:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.coffee-cup { font-size: 1.15em; line-height: 1; }
/* unified games list: one platform line for all games */
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* single mixed gallery (Apple Watch + Wear OS shots interleaved): align captions on one baseline */
.scroller-mixed { align-items: flex-end; }
.scroller-mixed > li > figure { display: flex; flex-direction: column; align-items: center; }
/* Header "Buy me a coffee": 44px tap target, visually a smaller yellow pill than the pink Download CTA.
   Icon-only on small phones and at mid widths (where nav links show); label where there is room. */
.nav .nav-coffee { padding: 0 4px; min-width: 44px; justify-content: center; }
.nav .nav-coffee:hover { background: transparent; }
.coffee-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 8px; border-radius: 999px; background: #ffdd00; color: #0d0c22; border: 1px solid rgba(13, 12, 34, 0.14); box-shadow: 0 1px 0 rgba(13, 12, 34, 0.12); font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.nav .nav-coffee:hover .coffee-pill { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(13, 12, 34, 0.16); }
.nav .nav-coffee:focus-visible { outline: none; }
.nav .nav-coffee:focus-visible .coffee-pill { outline: 3px solid var(--accent); outline-offset: 2px; }
.coffee-pill .coffee-cup { font-size: 1.05rem; }
.coffee-label { display: none; }
@media (min-width: 480px) and (max-width: 899px) { .coffee-label { display: inline; } .coffee-pill { padding: 0 12px; } }
@media (min-width: 1100px) { .coffee-label { display: inline; } .coffee-pill { padding: 0 12px; } }
/* Header fit: brand never wraps; on small phones tighten spacing so brand + coffee + Download share one row (checked at 360/390) */
.brand { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 419px) {
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 2px; }
  .nav .nav-cta { padding-inline: 14px; }
  .nav .nav-coffee { padding: 0; }
}
@media (max-width: 369px) { .brand { font-size: 0.95rem; } }
.section-head .platforms { margin: 16px 0 0; }
/* Very small phones (<= 340px, e.g. 320px): shave header spacing so brand + coffee + Download fit without overflow.
   Only applies at 340px and below; 360px and up are unaffected. */
@media (max-width: 340px) {
  .site-header .container { gap: 6px; }
  .brand { gap: 6px; font-size: 0.88rem; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 0; }
  .nav .nav-cta { padding-inline: 11px; font-size: 0.9rem; }
  .coffee-pill { height: 32px; min-width: 32px; padding: 0 6px; }
  .coffee-pill .coffee-cup { font-size: 0.98rem; }
}
