  :root {
    --yellow: #FFCC00;
    --ink: #2e2108;
    --card: #FFF6D6;
    --accent: #2e2108;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--yellow);
    color: var(--ink);
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
  }
  h1, h2, h3 { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 700; line-height: 1.2; }
  h2, h3, .page-title, .tagline {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,.28);
  }
  h2 { font-size: clamp(2.2rem, 5vw, 3.1rem); margin: 0 0 14px; }
  h3 { font-size: 1.65rem; margin: 0 0 6px; }
  a { color: inherit; }

  /* Top: flags + logo */
  .top { text-align: center; padding: 0 16px; }
  .flags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .flags button {
    border: 3px solid transparent; border-radius: 8px; background: none; padding: 2px;
    cursor: pointer; opacity: .75; transition: transform .15s, opacity .15s;
    line-height: 0;
  }
  .flags button:hover { opacity: 1; transform: translateY(-2px); }
  .flags button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  .flags button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); transform: scale(1.1); }
  .flags svg { width: 42px; height: 28px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.35); display: block; }
  .logo { margin: 14px auto 0; max-width: 460px; }
  .logo img { width: 100%; height: auto; display: block; }
  .tagline { font-size: 1.3rem; font-weight: 800; margin: 4px 0 0; }
  .hero-cta { margin: 14px 16px 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .btn-alt { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }

  main { max-width: 640px; margin: 0 auto; padding: 0 18px 20px; }
  section { margin-top: 48px; }

  /* Trailer */
  .trailer h2 { text-align: center; }
  .video {
    position: relative; aspect-ratio: 16 / 9; width: 100%;
    border-radius: 20px; overflow: hidden; background: #000;
    border: 5px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  /* Cards and layout */
  .card { padding: 0; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .shot { width: 100%; height: auto; border-radius: 16px; border: 4px solid var(--ink); display: block; }
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
  .grid p { margin: 0; }

  dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
  dt { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; }
  dd { margin: 0; }
  .btn {
    display: inline-block; background: var(--ink); color: var(--yellow);
    padding: 12px 28px; border-radius: 999px; text-decoration: none;
    font-weight: 800; font-size: 1.05rem; transition: transform .15s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

  /* Playtesters call-out */
  .callout { text-align: center; }
  .callout p { max-width: 620px; margin: 0 auto 20px; }

  footer { text-align: center; padding: 40px 18px 36px; }
  footer p { margin: 6px 0; }
  footer .small { font-size: .9rem; opacity: .8; }

  @media (max-width: 720px) {
    .two-col { grid-template-columns: 1fr; }
    dl { grid-template-columns: 1fr; gap: 0; }
    dd { margin-bottom: 8px; }
  }

  /* Menu */
  .menu { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; margin: 16px 0 0; }
  .menu a {
    font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: 1.15rem;
    text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent;
  }
  .menu a:hover { border-bottom-color: var(--ink); }
  .menu a[aria-current="page"] { border-bottom-color: var(--ink); }
  .menu a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

  /* Side photos (wide screens only) */
  .layout { display: block; }
  .side { display: none; }
  .photo {
    margin: 0; background: #fff; padding: 9px; width: 100%; max-width: 500px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
  }
  .photo[hidden] { display: none; }
  .photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
    @media (min-width: 1200px) {
    .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr); }
    .side { display: flex; flex-direction: column; justify-content: space-around; align-items: center; gap: 26px; padding: 30px 6px; }
    .layout > .side:first-child { align-items: flex-end; }
    .layout > .side:last-child { align-items: flex-start; }
    .side { justify-content: flex-start; gap: 44px; padding: 40px 6px; }
    .layout > .side:first-child { padding-top: 190px; }
    .photo { position: relative; max-width: none; width: calc(100% - 12px); transition: none; }
    .layout > .side:first-child .photo { align-self: flex-end; }
    .layout > .side:last-child .photo { align-self: flex-start; }
  }

  /* Text pages */
  .page-title { text-align: center; margin: 40px 0 10px; font-size: clamp(2.5rem, 6vw, 3.5rem); }
  .lead { font-size: 1.2rem; text-align: center; max-width: 700px; margin: 0 auto; }
  ul.bullets { margin: 0; padding-left: 1.3em; }
  ul.bullets li { margin: 0 0 10px; padding-left: 4px; }
  ul.bullets li::marker { color: var(--ink); }
  .support-block { text-align: center; margin-top: 44px; }
  .support-block p { max-width: 560px; margin: 0 auto 18px; }
  .thanks { text-align: center; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: 1.4rem; margin-top: 48px; }

  /* Banner with logo on top */
  .top { padding: 0; }
  .hero-banner { position: relative; margin: 0; height: clamp(190px, 22vw, 300px); overflow: hidden; background: #3a3d42; }
  .hero-banner .bg { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.78); }
  .hero-banner .logo { position: absolute; inset: 0; margin: 0; max-width: none; display: flex; align-items: center; justify-content: center; }
  .hero-banner .logo img { width: min(430px, 72%); height: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
  .tagline { margin: 14px 16px 0; }

  /* Smaller trailer */
  .trailer .video { max-width: 620px; margin: 0 auto; }

  /* About + features */
  .feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; margin: 18px 0 0; padding: 0; list-style: none; }
  .feature-list li { margin: 0 0 8px; }
  .feature-list strong { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; display: block; font-size: 1.1rem; }
  .more-link { display: inline-block; margin-top: 10px; font-weight: 800; }

  /* Find the game */
  .find { text-align: center; }
  .find .btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
  .retro-os { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
  .os {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 90px; padding: 4px;
    background: none; color: inherit; font-family: inherit; font-weight: 800; font-size: .9rem; letter-spacing: .04em; opacity: .85; pointer-events: none; cursor: default;
  }
  .os svg { width: 48px; height: 45px; image-rendering: pixelated; }

  /* Demo teaser */
  .demo-teaser { text-align: center; }
  .strip { display: block; width: 100%; height: auto; background: #fff; padding: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.2); margin: 0 0 22px; }

  /* FAQ */
  details.faq { border-bottom: 2px solid rgba(46,33,8,.3); padding: 4px 0; }
  details.faq summary {
    font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: 1.25rem; cursor: pointer;
    list-style: none; padding: 10px 28px 10px 0; position: relative;
  }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::after { content: '+'; position: absolute; right: 4px; top: 6px; font-size: 1.6rem; line-height: 1.2; }
  details.faq[open] summary::after { content: '\2212'; }
  details.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  details.faq .ans { padding: 0 0 16px; }
  details.faq .ans p { margin: 0 0 10px; }
  details.faq .ans h3 { margin-top: 14px; }

  .center { text-align: center; }
  .note { text-align: center; font-size: .95rem; opacity: .85; margin: 6px 0 0; }

  @media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

  /* Demo request form */
  .demo-form { margin-top: 26px; }
  .demo-form[hidden] { display: none; }
  .fld { display: block; margin: 0 0 16px; font-weight: 800; }
  .fld em { font-style: normal; font-weight: 400; opacity: .75; }
  .fld input, .fld select, .fld textarea {
    display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; color: var(--ink);
    background: #fffdf2; border: 2px solid var(--ink); border-radius: 8px;
  }
  .fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .demo-form .btn { border: 0; cursor: pointer; font-family: inherit; }
  .demo-form .btn:disabled { opacity: .6; cursor: wait; }
  .note.ok { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: 1.4rem; opacity: 1; }

  /* Bigger white tagline */
  .tagline { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.15; margin: 20px 16px 0; }

  /* OS logo images */
  .os img { height: 48px; width: auto; max-width: 70px; object-fit: contain; image-rendering: auto; }

  /* Link icons in footer */
  .social { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 22px; list-style: none; margin: 18px 0 8px; padding: 0; }
  .social a { display: block; color: var(--ink); line-height: 0; transition: transform .15s; }
  .social a:hover { transform: translateY(-3px) scale(1.08); }
  .social a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
  .social img, .social svg { width: 32px; height: 32px; display: block; }

  /* Round 5 tweaks */
  .coming { margin: 8px 16px 0; font-weight: 800; font-size: 1.15rem; text-align: center; }
  .feature-list li { margin: 0 0 12px; }
  .big-links, .logo-links { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
  .big-links a, .logo-link { display: inline-block; line-height: 0; transition: transform .15s; }
  .big-links a:hover, .logo-link:hover { transform: translateY(-3px) scale(1.06); }
  .big-links a:focus-visible, .logo-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
  .big-links img { width: 96px; height: 96px; display: block; }
  .logo-link img { width: 96px; height: 96px; display: block; }
  .os { background: none; border: 0; box-shadow: none; width: auto; padding: 0 10px; }
  .retro-os { gap: 22px; margin-top: 28px; }
  .support-cta { margin: 30px 0 0; }
  .support-end { text-align: center; margin: 30px 0 10px; }
  .support-end .give { margin-top: 0; }
  .social { gap: 22px 34px; margin: 22px 0 8px; }
  .social a { color: #fff; }
  .social img { width: 52px; height: 52px; filter: invert(1) drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
  .social svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
  .social a:focus-visible { outline-color: #fff; }
  h1, h2, h3, .tagline, .page-title { text-wrap: balance; }

  .os { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; color: #000; }
  .social a { color: inherit; }
  .social img { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  .mail-icon { display: inline-block; color: #fff; line-height: 0; margin: 6px 0 2px; transition: transform .15s; }
  .mail-icon svg { width: 64px; height: 64px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
  .mail-icon:hover { transform: translateY(-3px) scale(1.08); }
  .mail-icon img { width: 64px; height: auto; }
  .back { margin: 18px 0 0; text-align: left; }
  .support-block { text-align: center; }
  .mail-icon img { width: 96px; height: 96px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  #about { text-align: center; }
  .social img[src$='kofi-cup.png'] { width: 52px; height: 52px; }
  .flags { margin: 14px 0 4px; }
  .feature-list { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
  details.faq summary { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; color: #fff; font-size: 1.45rem; text-shadow: 0 2px 5px rgba(0,0,0,.28); }
  details.faq summary::after { color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.28); }
  .social img[src$='steam.png'], .social img[src$='instagram.png'] { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  .strip-end { margin: 44px 0 0; }
  .back-btn { position: relative; display: inline-block; width: 72px; height: 72px; line-height: 0; -webkit-tap-highlight-color: transparent; }
  .back-btn img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); transition: transform .18s; }
  .back-btn .b2 { opacity: 0; }
  .back-btn:active .b1, .back-btn.pressed .b1 { opacity: 0; animation: none; }
  .back-btn:active .b2, .back-btn.pressed .b2 { opacity: 1; }
  .back-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
  @keyframes back-nudge { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(-7px) rotate(-4deg); } }
  .back { text-align: center; margin: 14px 0 0; }
  .back + .page-title { margin-top: 0; }
  .flags svg, .flags img { width: 60px; height: 40px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.35); display: block; object-fit: cover; }
  @media (max-width: 720px) {
    .flags { flex-wrap: nowrap; gap: 5px; }
    .flags svg, .flags img { width: min(60px, calc((100vw - 117px) / 6)); height: auto; aspect-ratio: 3 / 2; }
  }
  #form-status.ok { white-space: pre-line; line-height: 1.35; text-align: center; font-weight: 800; font-size: 1.3rem; margin: 30px 0; }
  [id^='kofi-widget-overlay'], .floatingchat-container-wrap, .floatingchat-container-wrap-mobi { }
  .kofi-embed { display: block; width: 100%; max-width: 560px; margin: 22px auto 0; }
  .give { text-align: center; margin: 18px 0 0; line-height: 0; }
  .give a { display: inline-block; }
  .give img { width: 173px; height: auto; max-width: 100%; }
  
/* 19 Oct: still side photos may sit behind the text */
@media (min-width: 1200px) {
  main { position: relative; z-index: 2; }
  .side { position: relative; z-index: 1; }
}

/* Side photos start just under the banner (JS lifts the columns) */
@media (min-width: 1200px) {
  .side, .layout > .side:first-child { padding-top: 16px; }
}

/* Trailer inside About, above the More link */
#about .trailer { margin: 22px 0 6px; }
  /* Inline photos between paragraphs (phones/tablets only; wide screens use the side photos) */
  .inline-photo { display: block; margin: 22px auto; background: #fff; padding: 8px; width: min(100%, 440px); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
  .inline-photo img { display: block; width: 100%; height: auto; }
  .ip-1 { transform: rotate(-1.6deg); }
  .ip-2 { transform: rotate(1.4deg); }
@media (min-width: 1200px) {
  .inline-photo { display: none; }
}

  /* FAQ scene headers */
  details.faq .ans h4.scene { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 14px 0 2px; }
  details.faq .ans h4.scene + p { margin-top: 0; }

  /* FAQ scene headers: smaller than the question */
  details.faq .ans h3.scene { font-size: 1.05rem; margin: 14px 0 2px; color: inherit; text-shadow: none; }
  details.faq .ans h3.scene + p { margin-top: 0; }

  /* Mailing list signup (above the contact footer) */
  .join { text-align: center; padding: 34px 18px 6px; max-width: 520px; margin: 0 auto; }
  .join h2 { font-size: clamp(2.2rem, 5vw, 3.1rem); margin: 0 0 14px; }
  .join p { margin: 6px 0 14px; }
  .join .fld { text-align: left; }
  .join-form { margin: 0; }
  .join-form .btn { border: 0; cursor: pointer; font-family: inherit; }
  .join-form .btn:disabled { opacity: .6; cursor: wait; }
  .join-form[hidden] { display: none; }

  /* Letter icon opens the mailing list form */
  .letter-btn { background: none; border: 0; padding: 0; margin: 0 auto -18px; cursor: pointer; display: block; transition: transform .15s; }
  .letter-btn:hover { transform: translateY(-2px); }
  .letter-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
  .letter-btn img { width: 120px; height: 120px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  .join-form { margin-top: 8px; }
  .support-end h2 { font-size: clamp(2.2rem, 5vw, 3.1rem); margin: 0 0 4px; }
  .strip-bottom { max-width: 640px; margin: 10px auto 34px; padding: 0 18px; }
  .strip-bottom .strip { margin: 0; }

  .playtest-end { max-width: 620px; margin: 0 auto; padding: 30px 18px 6px; }
  .give img { width: 120px; }
  #join-status:empty, #err-status:empty { display: none; }
  .ans .join-form { text-align: left; margin-top: 14px; }
