/* Wayglade: the app's palette and feel (WEB-SITE-007). Dark only, like the app.
   Headings in Montserrat (OFL, served from this site, as in the store screenshots); text in the system font. */
@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-Bold.otf") format("opentype");
    font-weight: 700 900;
    font-display: swap;
}
:root {
    --bg: #0B0A12;
    --surface: #16141F;
    --raised: #211E2E;
    --text: #F3F1FA;
    --muted: #B3AEC6;
    --pink: #FF4FD8;
    --cyan: #3DF5E0;
    --amber: #FFC53D;
    --line: #2C2940;
    --radius: 14px;
    --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans CJK", sans-serif;
    --wide: 1200px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 18, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav { max-width: var(--wide); margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 800 1.15rem var(--display); text-decoration: none; letter-spacing: .01em; }
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav__links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__map { white-space: nowrap; color: #14060F; background: var(--cyan); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.nav__links .nav__map:hover { color: #14060F; filter: brightness(1.1); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: .8em; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; min-width: 190px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.lang-menu__code { display: none; }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.lang-menu li a:hover, .lang-menu li a[aria-current] { color: var(--text); background: var(--surface); }

main { max-width: var(--wide); margin: 0 auto; padding: 0 20px 64px; }
.page-home main { max-width: none; padding: 0; }

/* ---- Type ---- */
.kicker { color: var(--cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; margin: 0 0 20px; letter-spacing: -.025em; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.08; margin: 40px 0 16px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 24px; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 999px; background: var(--pink); color: #14060F; font-weight: 800; text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 79, 216, .35); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255, 79, 216, .5); }
.button--big { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }
.button--ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.button--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.button--wide { width: 100%; }
.store-badge { display: inline-block; line-height: 0; vertical-align: middle; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge--small img { height: 40px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }

/* ---- Hero ---- */
.hero { position: relative; min-height: min(92vh, 980px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; animation: drift 24s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(11, 10, 18, .92) 0%, rgba(11, 10, 18, .7) 38%, rgba(11, 10, 18, .1) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 10, 18, 0) 34%),
    linear-gradient(180deg, rgba(11, 10, 18, .55) 0%, rgba(11, 10, 18, 0) 20%); }
.hero__inner { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 120px 20px 40px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: end; }
.hero__text { max-width: 640px; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hero__text .lead { color: #E3DFF0; }
.hero__android { margin: 0; color: var(--muted); font-size: .95rem; }
.stats { list-style: none; max-width: var(--wide); width: calc(100% - 40px); margin: 0 auto 32px; padding: 18px 8px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(22, 20, 31, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; }
.stats li { text-align: center; padding: 4px 8px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font: 900 clamp(1.5rem, 3.4vw, 2.3rem)/1.1 var(--display); background: linear-gradient(90deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .88rem; }

/* ---- Device frames around the real screenshots ---- */
.device { margin: 0; position: relative; width: min(300px, 70vw); justify-self: center; padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #3a3550, #121019 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 79, 216, .18); }
.device img { display: block; width: 100%; height: auto; border-radius: 38px; background: var(--surface); }
.device--hero { width: min(320px, 72vw); transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
.device-pair { display: flex; gap: 20px; justify-content: center; }
.device-pair .device { width: min(250px, 42vw); }
.device-pair .device:last-child { transform: translateY(48px); }
.tablet { margin: 0; padding: 12px; border-radius: 34px; background: linear-gradient(145deg, #3a3550, #121019 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .55); }
.tablet img { display: block; width: 100%; height: auto; border-radius: 24px; }
.tablet figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin: 12px 0 2px; }

/* ---- Story bands: a photograph behind, a real screen in front ---- */
.story { position: relative; isolation: isolate; overflow: hidden; padding: 120px 20px; }
.story__bg { position: absolute; inset: 0; z-index: -2; }
.story__bg img { width: 100%; height: 100%; object-fit: cover; }
.story::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(11, 10, 18, .94) 0%, rgba(11, 10, 18, .78) 45%, rgba(11, 10, 18, .35) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 10, 18, 0) 18%, rgba(11, 10, 18, 0) 82%, var(--bg) 100%); }
.story--flip::before { background:
    linear-gradient(270deg, rgba(11, 10, 18, .94) 0%, rgba(11, 10, 18, .78) 45%, rgba(11, 10, 18, .35) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 10, 18, 0) 18%, rgba(11, 10, 18, 0) 82%, var(--bg) 100%); }
.story__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story--flip .story__text { order: 2; }
.story__text { max-width: 520px; }
.story__text h2 { margin-top: 0; }
.story__text p:last-child { color: #DAD5E8; font-size: 1.12rem; }

/* ---- Web map band ---- */
.webmap { position: relative; isolation: isolate; overflow: hidden; padding: 120px 20px; }
.webmap__bg { position: absolute; inset: 0; z-index: -2; }
.webmap__bg img { width: 100%; height: 100%; object-fit: cover; }
.webmap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 10, 18, .55) 30%, rgba(11, 10, 18, .85) 75%, var(--bg) 100%); }
.webmap__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.webmap h2 { margin-top: 0; }
.webmap .lead { color: #E3DFF0; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B0A12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---- Features, FAQ, notice ---- */
.features, .faq, .page-home .notice { max-width: var(--wide); margin: 0 auto; padding: 40px 20px; }
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (min-width: 1000px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.features__grid li { background: linear-gradient(160deg, var(--raised), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s, transform .2s; }
.features__grid li:hover { border-color: rgba(255, 79, 216, .5); transform: translateY(-2px); }
.features__grid h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--text); }
.features__grid p { margin: 0; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 760px; }
.notice { margin-top: 40px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .07); }
.page-home .notice { margin: 40px auto 0; max-width: calc(var(--wide) - 40px); padding: 24px 28px; }
.notice h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--amber); }
.notice p { margin: 0 0 8px; color: var(--text); }
.notice p.muted { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---- Scroll-in ---- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }

/* ---- Text pages ---- */
.prose { max-width: 720px; margin: 0 auto; padding-top: 48px; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 3rem); hyphens: auto; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 140px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button { font: inherit; font-weight: 700; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--pink); color: #14060F; cursor: pointer; justify-self: start; min-height: 44px; }
.form button:disabled { opacity: .6; cursor: not-allowed; }
.feedback { padding: 16px 18px; border-radius: 10px; margin-top: 20px; }
.feedback--success { background: rgba(61, 245, 224, .1); border: 1px solid rgba(61, 245, 224, .45); }
.feedback--error { background: rgba(255, 79, 216, .1); border: 1px solid rgba(255, 79, 216, .45); }
.feedback p { margin: 4px 0; }
.pin-card { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pin-card__badge { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; border: 2px solid #fff; }
.pin-card__title { margin: 10px 0 6px; font-size: 1.3rem; overflow-wrap: anywhere; }
.pin-card__details { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pin__privacy { margin-top: 32px; font-size: .92rem; }
.list-pins { margin: -8px 0 24px; padding-left: 28px; color: var(--muted); overflow-wrap: anywhere; }
.list-pins li { margin: 4px 0; }
.link-card__label { margin: 0; font-size: .92rem; }
.link-card__id { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.site-footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 28px 20px 40px; font-size: .92rem; }
.site-footer p { margin: 4px 0; }
[hidden] { display: none !important; }

/* Official trailer: a still and a play button; YouTube loads only after the click. */
.trailer { padding: 96px 20px 40px; }
.trailer__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.trailer__inner .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.trailer__frame { position: relative; aspect-ratio: 16 / 9; margin: 32px 0 12px; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 79, 216, .15); }
.trailer__frame iframe, .trailer__play, .trailer__play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__play img { object-fit: cover; transition: transform .6s ease, filter .3s; filter: brightness(.7) saturate(1.1); }
.trailer__play:hover img { transform: scale(1.03); filter: brightness(.85) saturate(1.2); }
.trailer__button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px 16px 20px; border-radius: 999px; background: var(--pink); color: #14060F; font-weight: 800; font-size: 1.05rem; box-shadow: 0 10px 40px rgba(255, 79, 216, .45); white-space: nowrap; }
.trailer__button svg { width: 26px; height: 26px; }
.trailer__play:focus-visible .trailer__button { outline: 3px solid var(--cyan); outline-offset: 4px; }
.trailer__note { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 640px) { .trailer { padding-top: 64px; } .trailer__frame { border-radius: 14px; } .trailer__button { padding: 12px 20px 12px 16px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .trailer__play img { transition: none; } }

@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero__inner { grid-template-columns: 1fr; padding-top: 72px; }
    .hero::before { background: linear-gradient(180deg, rgba(11, 10, 18, .2) 0%, rgba(11, 10, 18, .55) 42%, var(--bg) 100%); }
    .device--hero { width: min(260px, 66vw); }
    .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
    .stats li:nth-child(3) { border-left: 0; }
    .story, .webmap { padding: 80px 20px; }
    .story__inner, .webmap__inner { grid-template-columns: 1fr; gap: 40px; }
    .story--flip .story__text { order: 0; }
    .story::before, .story--flip::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 10, 18, .8) 22%, rgba(11, 10, 18, .9) 100%); }
    .device-pair .device:last-child { transform: translateY(28px); }
    .form__row { grid-template-columns: 1fr; }
    .lang-menu ul { right: auto; left: 0; }
}
@media (max-width: 640px) {
    /* The brand on one row and the links under it: privacy and contact stay in the footer, features is a scroll away. */
    .nav { position: relative; gap: 6px 12px; padding: 10px 16px; }
    .nav__links { flex-wrap: wrap; gap: 2px 12px; width: 100%; font-size: .94rem; }
    .nav__links .nav__map { padding: 6px 12px; }
    /* The language menu sits at the top right, on the brand's row, so the links keep a row of their own (wrapping when a language needs it) instead of pushing the menu past the screen. */
    .nav__links > li:last-child { position: absolute; top: 9px; right: 16px; }
    .nav__links > li:nth-child(1), .nav__links > li:nth-child(6), .nav__links > li:nth-child(7) { display: none; }
    .nav__links a { white-space: nowrap; }
    /* The menu never outgrows the screen. */
    .lang-menu ul { left: auto; right: 0; min-width: 0; width: 190px; max-width: calc(100vw - 32px); max-height: min(70vh, 480px); overflow-y: auto; }
    .lang-menu li a { padding: 11px 12px; }
    /* Phones show the language as a short code; the full name is in the menu and the label. */
    .lang-menu__name { display: none; }
    .lang-menu__code { display: inline; font-weight: 700; }
    /* The map page keeps the header to one slim row where it fits, so the map gets the screen: you are already on the map, and the brand leads home. */
    .page-map .nav { flex-wrap: wrap; padding: 6px 12px; gap: 2px 12px; }
    .page-map .nav__links > li:last-child { position: static; margin-left: auto; }
    .page-map .nav__brand { font-size: 1rem; gap: 8px; }
    .page-map .nav__brand img { width: 24px; height: 24px; border-radius: 6px; }
    .page-map .nav__links { width: auto; gap: 14px; }
    .page-map .nav__links > li:nth-child(2) { display: none; }
    .page-map .nav__links a { font-size: .92rem; padding: 4px 0; }
    .page-map .lang-menu summary { min-height: 30px; padding: 2px 10px; font-size: .85rem; }
    .hero__inner { padding-top: 48px; }
    .hero__photo { bottom: auto; height: 620px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
    .hero__photo img { object-position: 58% center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__photo img, .device--hero { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .button, .features__grid li { transition: none; }
}

/* Statistics consent: a bar at the bottom, shown by site.js only while no choice is stored. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 720px; margin: 0 auto; padding: 18px 20px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .55); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; color: var(--text); font-size: .95rem; }
.consent a { color: var(--muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .button { min-height: 44px; padding: 10px 22px; box-shadow: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-button[hidden] { display: none; }

/* News: the same feed as the app's News tab, laid out like a forum thread, with the release countdown on top. */
.news { max-width: 820px; margin: 0 auto; padding-top: 48px; }
.news__head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.news__status:empty { display: none; }
.news__feed { display: grid; gap: 20px; }
.news__app { margin-top: 32px; font-size: .9rem; text-align: center; }
.news__rolling { margin-top: 24px; font-size: .9rem; text-align: center; }
.countdown { margin: 8px 0 36px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 79, 216, .18), rgba(61, 245, 224, .08)), var(--raised); border: 1px solid rgba(255, 79, 216, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.countdown__title { margin: 0 0 16px; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: var(--radius); background: rgba(11, 10, 18, .6); border: 1px solid var(--line); min-width: 0; }
.countdown__value { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { margin-top: 8px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.countdown__date { margin: 16px 0 4px; color: var(--pink); font-weight: 800; }
.countdown__note { margin: 0; color: var(--muted); font-size: .9rem; }
.post { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.post--pinned { border-color: rgba(255, 197, 61, .45); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .85rem; color: var(--muted); }
.post__avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #14060F; font-weight: 900; font-size: .85rem; }
.post__author { color: var(--text); font-weight: 700; }
.post__tag, .post__pinned { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.post__tag--trailer { color: var(--pink); background: rgba(255, 79, 216, .14); }
.post__tag--launch { color: var(--amber); background: rgba(255, 197, 61, .14); }
.post__tag--game { color: var(--cyan); background: rgba(61, 245, 224, .12); }
.post__tag--app { color: var(--muted); background: rgba(255, 255, 255, .08); }
.post__pinned { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .5); }
.post__date { margin-left: auto; }
.post__title { margin: 14px 0 8px; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.post__provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.post__kind { padding: 1px 9px; border-radius: 999px; font-weight: 800; box-shadow: inset 0 0 0 1px currentColor; }
.post__kind--official, .post__rumor--confirmed { color: var(--cyan); }
.post__kind--news { color: var(--muted); }
.post__kind--rumor, .post__rumor--pending { color: var(--amber); }
.post__rumor--debunked { color: var(--pink); }
.post__source a { font-weight: 700; overflow-wrap: anywhere; }
.post__body p { margin: 0 0 10px; }
.post__more { margin: 8px 0 0; font-weight: 700; }
.news-video { margin-top: 14px; }
.news-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(255, 79, 216, .5), transparent 55%), radial-gradient(circle at 80% 90%, rgba(61, 245, 224, .35), transparent 50%), #07060C; border: 1px solid var(--line); }
.news-video__frame iframe, .news-video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-video__play { background: none; cursor: pointer; padding: 0; color: inherit; font: inherit; }
.news-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .6s ease, filter .3s; filter: brightness(.7) saturate(1.1); }
.news-video__play:hover img { transform: scale(1.03); filter: brightness(.85) saturate(1.2); }
@media (prefers-reduced-motion: reduce) { .news-video__play img { transition: none; } }
.news-video__play:focus-visible .trailer__button { outline: 3px solid var(--cyan); outline-offset: 4px; }
.news-video__note { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
    .news { padding-top: 32px; }
    .countdown { padding: 18px 14px; }
    .countdown__units { gap: 6px; }
    .post { padding: 18px 16px; }
    .post__date { margin-left: 0; width: 100%; }
}
.post__notice { margin: 4px 0 12px; }
.post__show { min-height: 40px; padding: 8px 18px; }

/* Vehicles page: a grid of cards per maker (picture, name and kind, facts), the credits under it. */
.vehicles__group { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.vehicles__group li { display: flex; }
.vehicles__sources { margin-top: 2rem; font-size: .875rem; }
.vehicles__card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: .9rem; background: var(--surface, rgba(127, 127, 127, .1)); }
.vehicles__figure, .missions__figure { position: relative; margin: 0; overflow: hidden; }
.vehicles__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vehicles__figure figcaption, .missions__figure figcaption { position: absolute; left: .5rem; bottom: .5rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .75rem; }
.vehicles__figure figcaption a, .missions__figure figcaption a { color: #fff; }
.vehicles__body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: .6rem; align-content: start; }
.vehicles__title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.vehicles__brand { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.vehicles__name { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.vehicles__kind { flex: none; padding: .05rem .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; opacity: .75; }
.vehicles__facts { margin: 0; display: grid; gap: .2rem; }
.vehicles__fact { display: flex; gap: .75rem; justify-content: space-between; font-size: .85rem; }
.vehicles__fact dt { color: var(--muted, inherit); opacity: .7; }
.vehicles__fact dd { margin: 0; text-align: right; }

/* Missions page: a list per type, the credit under each mission. */
.missions__banner { position: relative; margin: 2rem 0 .75rem; overflow: hidden; border-radius: .9rem; }
.missions__banner-figure { margin: 0; }
.missions__banner-figure .missions__image { aspect-ratio: 16 / 5; }
.missions__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.missions__type { position: absolute; z-index: 1; left: 1.1rem; bottom: .9rem; margin: 0; font-size: 1.35rem; color: #fff; }
.missions__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.missions__group { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.missions__item { display: flex; flex-direction: column; flex-wrap: nowrap; gap: .35rem; overflow: hidden; padding: 0 0 1rem; border-radius: .9rem; background: var(--surface, rgba(127, 127, 127, .1)); }
.missions__item > :not(.missions__figure) { margin-left: 1rem; margin-right: 1rem; }
.missions__title { font-weight: 600; margin-top: .6rem; }
.missions__badge { align-self: flex-start; }
.missions__credit { font-size: .875rem; }
.missions__steps { margin: .25rem 1rem 0; padding-left: 1.25rem; font-size: .875rem; display: grid; gap: .15rem; }
.missions__badge, .vehicles__badge { padding: .0625rem .5rem; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem; opacity: .8; }
.vehicles__badge { justify-self: start; }

/* A linked picture fades in from a soft blur once it has loaded (WaygladeDOM.reveal in site.js), as in
   the app. No specificity, so a page's own rules for the image (its filter, its transitions) still win. */
:where(.reveal) { opacity: 0; filter: blur(14px); transform: scale(1.04); transition: opacity .55s cubic-bezier(.2, .8, .2, 1), filter .55s cubic-bezier(.2, .8, .2, 1), transform .55s cubic-bezier(.2, .8, .2, 1); }
:where(.reveal.is-loaded) { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
    :where(.reveal) { filter: none; transform: none; transition: opacity .3s linear; }
}
