:root {
  --navy: #012169;
  --red: #C8102E;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --ink: #0B1B3F;
  --muted: #4B5875;
  --line: #D9DFEA;
  --field: #B7C1D4;
  --soft: #E9EEF8;
  --ok: #1D6B44;
  --err: #A50E26;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: Archivo, system-ui, sans-serif; color: var(--navy); margin: 0; line-height: 1.15; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.logo-top { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.logo-bar { height: 5px; background: var(--red); }
.brand-name { font-family: Archivo, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.06em; color: var(--navy); }
.pill-link { font-size: 14px; font-weight: 600; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding: 28px 0 12px; }
.hero h1 { font-weight: 800; font-size: clamp(30px, 6vw, 44px); }
.hero p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.btn-hero { display: inline-flex; align-items: center; min-height: 48px; margin-top: 16px; padding: 0 20px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.btn-hero:hover { color: #fff; background: #0B2E6F; }
.choice span { text-align: center; padding: 6px 8px; }

.section-h { font-weight: 700; font-size: 20px; margin: 20px 0 12px; }

/* App cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1000px) { .shot { height: 220px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.shot { height: 160px; border-bottom: 1.5px dashed #9AA6BF; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.shot::before { content: '[' attr(data-placeholder) ']'; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.shot:has(img)::before { content: none; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-head h3 { font-size: 18px; font-weight: 700; }
.icon { width: 48px; height: 48px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; }
.icon-brand { background: var(--navy); color: #fff; }
.icon-soft { background: var(--soft); color: var(--navy); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; margin-top: 4px; }
.tag-team { background: var(--soft); color: var(--navy); }
.tag-soon { background: #FDECEE; color: var(--err); margin-right: 4px; }
.beta { font-family: 'Public Sans', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--field); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.pitch { margin: 0; color: #34405C; }
.facts { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.facts div { display: flex; gap: 8px; }
.facts dt { color: var(--muted); min-width: 72px; }
.facts dd { margin: 0; }
.todo { color: var(--muted); font-style: italic; }
.btn-try { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: none; font-family: inherit; cursor: pointer; }
.btn-try:hover { color: #fff; background: #A50E26; }
.btn-try.is-off { background: var(--soft); color: var(--muted); cursor: default; }

.inline-form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.inline-form .row { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form .btn-try { margin-top: 0; }

/* Form panels */
.panel { scroll-margin-top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; margin: 24px 0; max-width: 640px; }
.panel h2 { font-weight: 800; font-size: 26px; }
.lead { color: var(--muted); margin: 8px 0 16px; }
form { display: flex; flex-direction: column; gap: 14px; }
.panel label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lbl-row { display: flex; justify-content: space-between; }
.count { font-weight: 500; color: var(--muted); }
input, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 10px; padding: 0 14px; min-height: 48px;
}
textarea { padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.choices { border: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.choices legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.choice { flex: 1; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--field); border-radius: 10px; font-weight: 600; cursor: pointer; }
.choice input:checked + span { border: 2px solid var(--navy); background: var(--soft); color: var(--navy); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn-main { min-height: 52px; border: none; border-radius: 10px; background: var(--navy); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-main:disabled { opacity: 0.6; cursor: default; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Whole card opens the detail page; Try button and waitlist sit above the link. */
.card { position: relative; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(1, 33, 105, .12); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.card-action { position: relative; z-index: 2; margin-top: auto; }
.card-action > .btn-try { width: 100%; }
.shot img[src*="labora"] { object-position: center 11%; }
.more { font-size: 14px; font-weight: 700; color: var(--navy); }

/* Detail page */
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: none; }
.detail { padding: 24px 0 8px; max-width: 760px; }
.detail-head { display: flex; gap: 16px; align-items: center; }
.detail h1 { font-weight: 800; font-size: clamp(28px, 5vw, 38px); }
.detail-tags { margin-top: 4px; }
.icon-big { width: 72px; height: 72px; flex: none; border-radius: 14px; background: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.icon-big span { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-family: Archivo, sans-serif; font-weight: 800; font-size: 32px; }
.icon-big i { height: 8px; background: var(--red); }
.about { font-size: 17px; color: #34405C; margin: 16px 0; }
.detail-action { max-width: 420px; }
.btn-big { width: 100%; min-height: 52px; font-size: 16px; }
.shots { display: grid; gap: 12px; margin: 20px 0 4px; }
@media (min-width: 680px) { .shots { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.shots .shot { height: auto; aspect-ratio: 16 / 10; border: 1.5px dashed #9AA6BF; border-radius: 12px; overflow: hidden; }
.shots .shot:has(img) { border: 1px solid var(--line); }
/* Detail page slideshow: whole picture shown, slow fade between pictures. */
.slideshow { position: relative; margin: 20px 0 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: min(68vh, 560px); }
.slides { list-style: none; margin: 0; padding: 0; height: 100%; position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; justify-content: center; padding: 12px 12px 36px; }
.slide.is-on { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 2px 12px rgba(1, 33, 105, .12); background: #fff; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.slide-btn:hover { background: #fff; border-color: var(--navy); }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; }
.dot { width: 24px; height: 24px; border: none; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #9AA6BF; }
.dot.is-on::before { background: var(--navy); width: 11px; height: 11px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D7A4B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.detail .facts { font-size: 15px; }
.others { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.others a { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); }
.others a:hover { border-color: var(--navy); color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; }

/* Maker page */
.btn-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; }
.btn-link:hover { color: #fff; }
.maker { padding-top: 24px; }
.maker h1 { font-weight: 800; font-size: clamp(28px, 5vw, 38px); }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--field); background: #fff; color: var(--ink); font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.tab.is-on { border: 2px solid var(--navy); background: var(--soft); color: var(--navy); font-weight: 700; }
.link-btn { background: none; border: none; padding: 8px 0; min-height: 44px; color: var(--navy); font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.note { font-size: 14px; color: var(--muted); }
.my-apps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; max-width: 760px; }
.my-app { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.my-app p { margin: 0; }
.my-app a { overflow-wrap: anywhere; }
.my-app-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--navy); }
.badge-waiting, .badge-approved { background: #E5F3EB; color: var(--ok); }
.badge-failed, .badge-rejected { background: #FDECEE; color: var(--err); }
.checks, .reasons { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.checks { list-style: none; padding: 0; }
.check-fail { color: var(--err); }
.check-error, .check-skipped { color: var(--muted); }
.my-app .btn-try { align-self: flex-start; margin-top: 6px; }

.footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 32px; padding: 20px 0; font-size: 14px; color: var(--muted); }
.footer p { margin: 0 0 6px; }

/* Ratings and reviews */
.stars { color: #B7791F; letter-spacing: 1px; }
.stars.big { font-size: 22px; }
.rating-line { margin: 0; font-size: 14px; font-weight: 600; }
.rating-sum { font-size: 16px; margin: 0 0 12px; }
.reviews { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 12px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.review-text { margin: 8px 0 0; white-space: pre-line; }
.review-reply { margin-top: 10px; padding: 10px 12px; background: var(--soft); border-radius: 10px; font-size: 14px; }
.review-reply p { margin: 4px 0 0; }
.review-actions { display: flex; gap: 12px; }
.review-form form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.review-form .btn-try { align-self: flex-start; margin-top: 0; }
.tag-verified { background: #E5F3EB; color: var(--ok); margin-top: 0; }
.review-write { margin: 8px 0 16px; }
.review-write h3 { font-size: 20px; }
.star-pick { border: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.star-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.star-pick label { cursor: pointer; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick span[aria-hidden] { font-size: 34px; line-height: 44px; display: inline-block; width: 44px; text-align: center; color: var(--field); }
.star-pick label:has(~ label input:checked) span[aria-hidden], .star-pick label:has(input:checked) span[aria-hidden] { color: #B7791F; }
.star-pick input:focus-visible + span { outline: 2px solid var(--navy); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.owner-box { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.owner-box .note { margin: 0; }
.key { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; overflow-x: auto; font-size: 13px; }

/* Apps / Games tabs, games tag, maker links */
.section-tabs { max-width: 560px; }
.tag-game { background: #FDF0E1; color: #8A4B08; margin-right: 4px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 16px 0; }
.made-by { margin: 6px 0 0; font-size: 15px; }
/* pool walk 1: the "Made by" line keeps its room while the developer's name loads, so nothing below it jumps */
.made-by[hidden] { display: block; visibility: hidden; }
.icon-logo { object-fit: cover; padding: 0; background: #0B1220; }
.back-bottom { margin: 28px 0 8px; }
.btn-back { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--navy); color: var(--navy); background: var(--card); font-weight: 700; text-decoration: none; }
.btn-back:hover { background: var(--soft); color: var(--navy); }

/* App page banner (apps.js "banner"): whole picture, then the name/logo strip on a dimmed copy of it */
.detail-banner { border-radius: 14px 14px 0 0; overflow: hidden; background: #0B1220; }
.detail-banner img { display: block; width: 100%; height: auto; }
.detail-head.on-banner { position: relative; overflow: hidden; padding: 16px; border-radius: 0 0 14px 14px; background: #0B1220; isolation: isolate; margin-bottom: 4px; }
.detail-head.on-banner::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--banner) center 80% / cover no-repeat; filter: blur(14px) brightness(.45); }
.detail-head.on-banner h1 { color: #fff; }
.detail-head.on-banner .icon-big { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.tc-btn { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.tc-btn:hover { background: var(--soft); }

/* Maker pictures on the send form */
.pics { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.pics legend { font-weight: 700; padding: 0 4px; }
.pic-group { margin-top: 10px; }
.pic-label { display: block; font-weight: 600; margin-bottom: 6px; }
.pic-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pic { position: relative; width: 96px; }
.pic img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #fff; }
.pic-tools { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.pic-tools button { min-width: 30px; min-height: 30px; border-radius: 8px; border: 1px solid var(--field); background: var(--card); color: var(--navy); font-weight: 700; cursor: pointer; }
.pic-tools button:disabled { opacity: .35; cursor: default; }
.pic-add { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed var(--navy); color: var(--navy); font-weight: 600; cursor: pointer; }
.pic-add[hidden] { display: none; }
.pic-row.small img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Search and category chips (home page) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search { position: relative; display: flex; align-items: center; max-width: 520px; margin: 0 0 12px; }
.search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 44px; border-radius: 999px; border: 1.5px solid var(--field); background: var(--card); font: inherit; font-size: 16px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1, 33, 105, .15); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: thin; }
.chips[hidden] { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.search-note { margin: 0 0 8px; color: var(--muted); font-size: 14px; min-height: 0; }
.search-note:empty { display: none; }
.tag-cat { background: #EEF1F6; color: #34405C; margin-right: 4px; }
/* Promotion building block (promo-ui.js): free boost tag, the box under a listing, the maker's "Share badge" panel */
.tag-supports { background: #FDECEE; color: var(--red); margin-right: 4px; }
.promo-box { margin: 24px 0 8px; max-width: 420px; }
.share-badge { margin-top: 10px; }
.share-badge summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.stats-box { margin-top: 8px; }
.stats-box summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.share-badge .badge-previews { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.share-badge .badge-previews img { max-width: 100%; height: auto; }
.share-badge textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 0; }
.share-badge .snippet { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 14px; font-weight: 600; }
select { width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--field); background: #fff; font: inherit; font-size: 16px; padding: 0 12px; color: var(--ink); }

/* Narrow phones: keep the top bar on one line */
.pill-link { white-space: nowrap; }
@media (max-width: 400px) { .brand-name { font-size: 16px; letter-spacing: .02em; } .pill-link { padding: 8px 10px; font-size: 13px; } .top-actions { gap: 6px; } }

/* Music and animations */
.choices-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .choices-4 { grid-template-columns: repeat(4, 1fr); } }
.media-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.media-box .or { margin: 4px 0; color: var(--muted); font-weight: 600; }
.media-file:empty { display: none; }
.media-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.media-file audio, .media-file video { max-width: 100%; }
.tick { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500; }
.tick input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tag-music { background: #EDE7FB; color: #4B2A99; margin-right: 4px; }
.tag-animation { background: #E3F4EC; color: #145A3A; margin-right: 4px; }
.player { margin: 16px 0; border-radius: 14px; overflow: hidden; background: #0B1220; }
.player iframe { display: block; width: 100%; border: 0; aspect-ratio: 16 / 9; }
.player.tall iframe { aspect-ratio: auto; height: 352px; }
.player audio { display: block; width: 100%; padding: 12px; box-sizing: border-box; }
.player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.player-note { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.copyright { margin-top: 24px; }
.copyright summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.copyright { max-width: 640px; }
.copyright form { margin-top: 8px; }
.copyright label:not(.tick) { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.privacy { max-width: 760px; padding-bottom: 16px; }
.privacy h2 { margin-top: 24px; }
.small-print { font-size: 13px; margin: 0; }

/* Testers (tester.html) */
.tick-grid { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tick-grid legend { font-weight: 700; padding: 0 4px; }
.tick-group { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tick-group-h { width: 100%; font-size: 13px; font-weight: 700; color: var(--muted); }
.tick-chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 999px; background: var(--card); font-weight: 600; cursor: pointer; }
.tick-chip input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.tick-chip:has(input:checked) { border-color: var(--navy); background: var(--soft); color: var(--navy); }
.tester-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 4px; }
.tester-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.tester-stats strong { font-family: Archivo, sans-serif; font-size: 22px; color: var(--navy); }
.tester-stats span { font-size: 13px; color: var(--muted); }
.test-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.test-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: var(--card); }
.test-what { margin: 0 0 6px; font-weight: 600; }
.testers-box { margin-top: 10px; }
.testers-box summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.testers-box form label:not(.tick-chip) { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tester-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.row-btns { display: flex; gap: 8px; align-items: center; flex: none; }
.tag-rewarded { background: #FFF4D6; color: #7A5200; margin-left: 6px; }
.testers-wanted { margin-top: 8px; }
.test-card.is-picked { border: 2px solid var(--navy); scroll-margin-top: 80px; }
/* pool walk 1: room kept for the tests-on-the-go line, so the Devices filter does not jump down when it loads */
#pool-limit { min-height: 4.5em; }
.test-list li.test-card { list-style: none; }
/* Tester pool + tokens (26 Oct) */
.token-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: var(--card); }
.token-box h3 { margin: 0 0 4px; font-size: 16px; }
.token-line { margin: 0 0 4px; }
.token-line strong { font-family: Archivo, sans-serif; font-size: 22px; color: var(--navy); }
.token-history summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 40px; display: flex; align-items: center; }
.token-history li { font-size: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.pool-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.pool-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; flex: 1 1 160px; }
.tag-free { background: var(--soft); color: var(--navy); margin-left: 6px; }
.ask-cost { margin: 4px 0 0; font-size: 14px; }
.ask-cost.err { color: var(--err); font-weight: 600; }

/* "How it works" link in the top bar (Mike, 24 Oct) */
.top-link { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.hero-how { margin-top: 6px; font-size: 15px; }
.top-link-q { display: none; }
/* phones: a round "?" instead of the words (Mike, 24 Oct) */
@media (max-width: 600px) {
  .top-link { width: 40px; height: 40px; min-height: 40px; background: var(--card); justify-content: center; border: 1.5px solid var(--navy); border-radius: 50%; text-decoration: none; font-size: 17px; font-weight: 800; }
  .top-link-text { display: none; }
  .top-link-q { display: inline; }
}
@media (max-width: 400px) { .tc-btn, .top-link { width: 34px; height: 34px; min-height: 34px; } .top-link { font-size: 15px; } .top-actions { gap: 4px; } .pill-link { padding: 7px 9px; } .brand { gap: 8px; } }
.pill-short { display: none; }
@media (max-width: 400px) { .pill-long { display: none; } .pill-short { display: inline; } }

/* "Account" link in the top bar, signed in only (Mike, 25 Oct; account-link.js) */
.top-link-icon { display: block; }
@media (max-width: 400px) { .top-link-icon { width: 18px; height: 18px; } }
/* Signed in on a narrow phone the bar has one more round button: shrink gaps and icons a little so it stays on one line */
@media (max-width: 400px) {
  .topbar.has-account .tc-btn, .topbar.has-account .top-link { width: 32px; height: 32px; min-height: 32px; }
  .topbar.has-account .top-actions { gap: 3px; }
  .topbar.has-account .brand { gap: 6px; }
  .topbar.has-account .brand-name { font-size: 15px; letter-spacing: 0; }
  .topbar.has-account .pill-link { padding: 7px 8px; }
  .topbar.has-account .top-link-icon { width: 17px; height: 17px; }
}
/* Review by a staff-marked test account: shown, not counted in the stars (Mike, 25 Oct) */
.tag-test { background: #ECEFF4; color: #3A4556; margin-left: 6px; }

/* "Get the AppQuay app" (Mike, 25 Oct): home page section + top-bar Install button (install.js) */
.get-app { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-block: 8px 20px; }
.get-app .section-h { margin: 0; }
.get-app-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
button.install-top { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 600px) { button.install-top { border: 1.5px solid var(--navy); background: var(--card); } }
/* small phones: the home page section has the Install button, so the top bar keeps its room */
@media (max-width: 400px) { button.install-top { display: none; } }

/* Bottom menu (nav.js): phones and computers */
body.has-bottom-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav-item { flex: 1 1 0; max-width: 180px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.bottom-nav-item:hover { color: var(--navy); }
.bottom-nav-item.is-on { color: var(--navy); box-shadow: inset 0 3px 0 var(--red); }
.bottom-nav-item:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }

/* Share buttons (share.js) */
.share-row { margin: 16px 0; min-height: 44px; } /* pool walk 1: no jump when the Share button arrives */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-weight: 700; color: var(--navy); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.share-msg { flex-basis: 100%; font-size: 14px; color: var(--ok); word-break: break-all; }
.share-msg:empty { display: none; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero .btn-hero-2 { background: var(--card); color: var(--navy); border: 2px solid var(--navy); }
.hero .btn-hero-2:hover { color: var(--red); background: var(--card); }
.ref-code-line strong { font-family: Archivo, system-ui, sans-serif; font-size: 22px; letter-spacing: 2px; }

/* Feed (feed.js) */
#feed { margin: 20px 0 28px; }
.feed-compose form { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.feed-compose label, .feed-edit label, .feed-comment-form label, .feed-report-form label { display: grid; gap: 4px; font-weight: 600; }
.feed-compose textarea, .feed-compose input, .feed-edit textarea, .feed-edit input, .feed-comment-form input, .feed-report-form select { font: inherit; padding: 10px; border: 1px solid var(--field); border-radius: 8px; width: 100%; background: #fff; }
.feed-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.feed-post { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }
.feed-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.feed-head .muted, .feed-comment-list .muted { font-size: 13px; }
.feed-text { white-space: pre-wrap; margin: 8px 0; }
.feed-text:empty { display: none; }
.feed-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 8px 0; }
.feed-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.feed-link { font-weight: 600; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.feed-actions .link-btn { min-height: 36px; }
.feed-actions [aria-pressed="true"] { color: var(--red); font-weight: 700; }
.feed-share, .feed-report-box, .feed-comments { margin-top: 10px; }
.feed-comment-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.feed-comment-list li { background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.feed-comment-list p { margin: 2px 0; white-space: pre-wrap; }
.feed-comment-form, .feed-report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.feed-comment-form label { flex: 1 1 200px; }
.feed-edit { display: grid; gap: 8px; margin: 8px 0; }

/* Sign-up offers (promo-offers block, public/promo-offers/page.css): AppQuay colours */
.po-signup, .po-banner, .po-account, .po-pop { --po-box: var(--soft); --po-border: var(--line); --po-muted: var(--muted); --po-accent: var(--navy); --po-ok: var(--ok); --po-err: var(--err); --po-pop-fg: var(--ink); }
#promo-banner .po-banner { margin: 16px 0 0; }
.po-pop h2 { color: var(--navy); }

/* Home one-line link cards (Mike, 25 Oct: Blocks, Request an app, Get the app, Become a tester) */
.page-head { padding: 24px 0 4px; }
.page-head h1 { font-weight: 800; font-size: clamp(28px, 6vw, 40px); }
.panel h1 { font-weight: 800; font-size: 26px; }

/* Home link cards (Mike 26 Oct: proper cards with an icon, a title and a one-line blurb; Feed is one of them) */
.home-cards { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 8px 0 16px; }
@media (min-width: 680px) { .home-cards { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1000px) { .home-cards { grid-template-columns: 1fr 1fr 1fr; } }
.home-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 40px 14px 14px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(1, 33, 105, .05); }
.home-card::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-right: 2.5px solid var(--navy); border-top: 2.5px solid var(--navy); transform: rotate(45deg); }
.home-card:hover { border-color: var(--navy); color: var(--ink); box-shadow: 0 4px 16px rgba(1, 33, 105, .12); }
.home-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.home-card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.home-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-card-text strong { color: var(--navy); font-weight: 700; font-size: 16px; }
.home-card-text span { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* One "Share" button with a small menu (share.js shareButton) */
.share-one { position: relative; display: inline-block; }
.share-main { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 999px; background: var(--card); color: var(--navy); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.share-main:hover, .share-main[aria-expanded="true"] { background: var(--soft); }
.share-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(1, 33, 105, .16); }
.share-menu[hidden] { display: none; }

/* Feed page */
.feed-page { padding-top: 8px; }
.feed-page h1.section-h { font-size: 26px; margin-top: 4px; }

/* Test account self-approve button (test address only; self-approve-ui.js) */
.self-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.btn-self-approve { border-style: dashed; }
.self-approve-msg { font-size: 14px; color: var(--muted); }

/* blocks.html "Use with your AI" (Claude connector) */
.use-ai { max-width: none; }
.use-ai code { word-break: break-all; font-size: 13px; background: var(--line); padding: 2px 5px; border-radius: 4px; }
.use-ai ul { padding-left: 20px; display: grid; gap: 8px; }

/* Your API keys (api-keys block, For developers > Send a building block) */
.api-keys { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--field); display: grid; gap: 10px; }
.api-keys .ak-form { display: grid; gap: 10px; }
.api-keys .ak-new { border: 2px solid var(--navy); border-radius: 12px; padding: 12px; background: var(--soft); display: grid; gap: 8px; }
.api-keys .ak-key { font-family: ui-monospace, Consolas, monospace; width: 100%; }
.api-keys .ak-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.api-keys .ak-item { border: 1px solid var(--field); border-radius: 10px; padding: 10px 12px; }
.api-keys .ak-howto pre { white-space: pre-wrap; word-break: break-all; background: var(--soft); padding: 8px; border-radius: 8px; font-size: 13px; }
