/* Fonts are self-hosted (SIL Open Font License, see /assets/fonts/LICENSE.txt), so no visitor data goes to Google Fonts. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-400-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LaunchTrailer — a quiet, warm frame so the launched apps are the colour on the page. Orange is the only accent. */
:root {
  --paper: #fbf8f3;
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #16141c;
  --text: #1c1a22;
  --muted: #6b6672;
  --hair: #ebe4d9;
  --hair-2: #d8cfc1;
  --orange: #ff6a2b;
  --orange-ink: #c94512;
  --lime: #f3eee6;
  --blue: #f3eee6;
  --pink: #f3eee6;
  --yellow: #f3eee6;
  --violet: #f3eee6;
  --red: #d64545;
  --soft: #f4efe7;
  --line: 1px solid var(--hair);
  --shadow: 0 1px 2px rgba(28, 26, 34, .04), 0 4px 14px -8px rgba(28, 26, 34, .12);
  --shadow-lg: 0 2px 4px rgba(28, 26, 34, .05), 0 14px 32px -14px rgba(28, 26, 34, .22);
  --r: 16px;
  --spring: cubic-bezier(.2, .8, .3, 1.1);
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.label { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--yellow); padding: 8px 12px; border: var(--line); border-radius: 10px; color: #16141c; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.grow { flex: 1; min-width: 0; }

/* tints */
.t-orange { --tint: var(--orange); } .t-lime { --tint: var(--lime); } .t-blue { --tint: var(--blue); }
.t-pink { --tint: var(--pink); } .t-yellow { --tint: var(--yellow); } .t-violet { --tint: var(--violet); }
.t-yellow-bg { background: var(--yellow) !important; color: #16141c; }
.t-yellow-bg .link { color: #16141c; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--card); --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: 700 1rem/1 var(--font); padding: .8em 1.15em; border-radius: 14px; border: var(--line);
  background: var(--b); color: var(--c); text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-orange { --b: var(--orange); --c: #16141c; }
.btn-ink { --b: #16141c; --c: #fff4e6; }
.btn-paper { --b: var(--card); }
.btn-danger { --b: var(--red); --c: #16141c; }
.btn-sm { font-size: .88rem; padding: .6em .9em; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { font-size: 1.1rem; padding: .95em 1.4em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link { font-weight: 700; text-decoration: none; border-bottom: 2.5px solid var(--orange); }
.link:hover { background: color-mix(in srgb, var(--orange) 25%, transparent); }
.xlogo { width: 1em; height: 1em; }

.sticker {
  display: inline-block; font: 700 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
  padding: .55em .8em; border: var(--line); border-radius: 999px; background: var(--card); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg); margin-bottom: 1rem; color: var(--text);
}
.sticker-lime { background: var(--lime); color: #16141c; }
.sticker-yellow { background: var(--yellow); color: #16141c; }
.sticker-orange { background: var(--orange); color: #16141c; }
.pill { display: inline-block; font: 700 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .45em .7em; border-radius: 999px; border: 2px solid var(--ink); background: var(--soft); white-space: nowrap; }
.pill-approved { background: var(--lime); color: #16141c; }
.pill-pending { background: var(--yellow); color: #16141c; }
.pill-rejected { background: var(--red); color: #16141c; }
.pill-maker { background: var(--orange); color: #16141c; font-size: .62rem; }

.card { background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; text-decoration: none; letter-spacing: -0.03em; flex-shrink: 0; }
.brand .logo { width: 38px; height: 38px; transition: transform .3s var(--spring); }
.brand:hover .logo { transform: rotate(-10deg) scale(1.08); }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.mainnav a { white-space: nowrap; text-decoration: none; font-weight: 700; padding: 8px 11px; border-radius: 11px; border: 2.5px solid transparent; transition: background .15s; }
.mainnav a:hover { background: var(--soft); }
.mainnav a[aria-current="page"] { border-color: var(--ink); background: var(--lime); color: #16141c; }
.search { margin-left: auto; }
.search input { width: 170px; transition: width .25s var(--spring); }
.search input:focus { width: 220px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.me-menu { position: relative; }
.me-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.me-menu summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 190px; padding: 8px; background: var(--card); border: var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: pop .25s var(--spring); }
.menu a, .menu button { text-align: left; padding: 9px 10px; border-radius: 9px; text-decoration: none; font: 600 .95rem var(--font); background: none; border: 0; color: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--soft); }
.menu-hi { font: 700 .75rem var(--mono); color: var(--muted); padding: 6px 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: var(--line); border-radius: 12px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--text); border-radius: 2px; content: ''; transition: transform .25s var(--spring); }
.nav-toggle span { top: 18px; } .nav-toggle span::before { top: -6px; left: 0; right: 0; } .nav-toggle span::after { top: 6px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; } .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); } .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.avatar { border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; background: var(--soft); flex-shrink: 0; }
.avatar-fallback { display: inline-grid; place-items: center; font-weight: 800; background: var(--pink); color: #16141c; }

input, textarea {
  font: 500 1rem var(--font); color: var(--text); background: var(--card); border: var(--line); border-radius: 12px; padding: .7em .85em; width: 100%;
  transition: box-shadow .15s, transform .15s;
}
input:focus, textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); transform: translate(-1px, -1px); }
input[type="search"] { padding: .55em .8em; border-radius: 999px; }
textarea { resize: vertical; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); margin-bottom: .3em; }
.squiggle { position: relative; display: inline-block; color: var(--orange); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.squiggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23ff6a2b' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0/ .9em 100%; animation: wiggle 2.4s linear infinite; }
@keyframes wiggle { to { background-position: .9em 0; } }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.hero .lede b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-card { transform: rotate(1.5deg); background: var(--blue); color: #16141c; padding: 24px; box-shadow: var(--shadow-lg); }
.hero-card .label { color: #16141c; opacity: .8; }
.countdown { margin: 12px 0 18px; }
.cd-label { display: block; font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd { display: grid; justify-items: center; }
.cd b { display: block; width: 100%; text-align: center; font: 700 1.7rem/1 var(--mono); padding: 12px 0; background: var(--paper); color: #16141c; border: var(--line); border-color: #16141c !important; border-radius: 12px; box-shadow: 3px 3px 0 #16141c; font-variant-numeric: tabular-nums; }
.cd b.tick { animation: tick .35s var(--spring); }
@keyframes tick { 0% { transform: translateY(-4px) scale(1.06); } 100% { transform: none; } }
.cd i { font: 700 .66rem var(--mono); text-transform: uppercase; font-style: normal; margin-top: 6px; letter-spacing: .06em; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats li { background: var(--tint); border: 2.5px solid #16141c; border-radius: 12px; padding: 10px 8px; text-align: center; color: #16141c; }
.stats b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stats span { font: 700 .66rem var(--mono); text-transform: uppercase; }

/* ---------- main grid ---------- */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; padding-bottom: 70px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; margin: 0; }
.section-head h2 a { text-decoration: none; }
.sidebar { display: grid; gap: 22px; position: sticky; top: 92px; }
.side-card h2 { font-size: 1.12rem; }
.side-card p:last-child { margin-bottom: 0; }
.side-ad { border-style: dashed; box-shadow: none; }
.winner-list, .mini-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.winner-list li, .mini-list li { display: flex; align-items: center; gap: 10px; }
.winner-list a, .mini-list a { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.winner-list a:hover, .mini-list a:hover { text-decoration: underline; }
.medal { font-size: 1.3rem; }

/* ---------- launch rows ---------- */
.rows { display: grid; gap: 16px; }
.row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: var(--card); border: var(--line); border-radius: var(--r); padding: 16px 16px 16px 18px; box-shadow: var(--shadow);
  transition: transform .22s var(--spring), box-shadow .22s var(--spring);
}
.row:has(.rank) { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.row:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 7px 8px 0 var(--ink); }
.row::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--tint, var(--orange)); border-radius: 15px 0 0 15px; border-right: 2.5px solid var(--ink); }
.rank { font: 800 1.5rem/1 var(--font); width: 1.6em; text-align: center; color: var(--muted); margin-left: 4px; }
.row-top .rank { color: #16141c; background: var(--yellow); border: var(--line); border-color: #16141c; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem; transform: rotate(-8deg); box-shadow: 2px 2px 0 var(--ink); }
.row-2 .rank { background: #e2e2ea; } .row-3 .rank { background: #f3b27e; }
.plogo { border-radius: 16px; border: var(--line); object-fit: cover; background: var(--soft); flex-shrink: 0; }
.plogo-fallback { display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; background: var(--tint, var(--orange)); color: #16141c; }
.row-body h3 { margin: 0 0 2px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-body h3 a { text-decoration: none; }
.row-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.row a.chip, .row .upvote, .row .award-pill { position: relative; z-index: 2; }
.tagline { margin: 0 0 8px; color: var(--muted); }
.tagline.big { font-size: 1.2rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: .85rem; }
.meta-i { font: 700 .72rem var(--mono); text-transform: uppercase; color: var(--muted); }
.live-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: ping 1.6s infinite; vertical-align: 1px; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wrap-chips { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .8rem; padding: 4px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); text-decoration: none; transition: transform .15s var(--spring), background .15s; }
a.chip:hover { background: var(--lime); color: #16141c; transform: rotate(-3deg) scale(1.05); }
.award-pill { font: 700 .66rem/1 var(--mono); text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); color: #16141c; text-decoration: none; }

/* upvote */
.upvote {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 64px; height: 70px; padding: 6px 8px;
  border: var(--line); border-radius: 16px; background: var(--card); color: var(--text); cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  font: 800 1.15rem/1 var(--font); transition: transform .2s var(--spring), box-shadow .2s var(--spring), background .2s;
}
.upvote .uv-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; transition: transform .3s var(--spring); }
.upvote:hover { transform: translateY(-3px); box-shadow: 3px 6px 0 var(--ink); }
.upvote:hover .uv-arrow { transform: translateY(-3px); }
.upvote.is-voted { background: var(--orange); color: #16141c; }
.upvote.is-voted .uv-arrow { fill: #16141c; stroke: #16141c; }
.upvote.bump { animation: bump .5s var(--spring); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }
.upvote-soon { cursor: default; font-size: .8rem; background: var(--soft); box-shadow: none; border-style: dashed; }
.upvote-soon:hover { transform: none; box-shadow: none; }
.upvote-big { min-width: 96px; height: 92px; font-size: 1.5rem; }
.upvote-big .uv-arrow { width: 28px; height: 28px; }
.confetti { position: fixed; pointer-events: none; z-index: 100; width: 9px; height: 13px; border: 1.5px solid #16141c; border-radius: 2px; }

/* ---------- empty / notices ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty-emoji { font-size: 3rem; margin: 0 0 8px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(4deg); } }
.empty-404 { padding: 100px 0; }
.empty-404 h1 { font-size: 6rem; }
.notice { border: var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; background: var(--soft); }
.notice-pending, .notice-soon { background: var(--yellow); color: #16141c; }
.notice-rejected { background: color-mix(in srgb, var(--red) 30%, var(--card)); }
.notice-ok { background: var(--lime); color: #16141c; }
.notice-soon .countdown { margin: 0; }
.notice-soon .cd-label { font-size: 1rem; }
.notice-soon .cd-boxes { max-width: 380px; }

/* ---------- page head ---------- */
.page-head { padding: 52px 0 30px; }
.page-head h1 { margin-bottom: .25em; }
.weeknav { font-weight: 700; margin-top: 14px; }
.list-wrap { padding-bottom: 70px; }
.group { margin-bottom: 40px; }

/* ---------- product ---------- */
.product { padding: 26px 0 70px; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--text); }
.product-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; padding: 26px; position: relative; overflow: hidden; }
.product-head::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--tint); border-bottom: var(--line); }
.product-head > * { position: relative; }
.product-head .plogo { margin-top: 10px; }
.product-title { padding-top: 10px; min-width: 0; }
.product-title h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .15em; }
.product-actions { display: grid; gap: 10px; justify-items: stretch; padding-top: 10px; }
.product-actions .upvote { justify-self: center; }
.awards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.award { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: var(--line); border-radius: 12px; background: var(--yellow); color: #16141c; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); font-size: .9rem; }
.award span { font: .72rem var(--mono); text-transform: uppercase; }
.trailer { margin: 24px 0; padding: 12px; background: #16141c; }
.player, .slideshow { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.player img, .ss-still { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-video { width: 100%; border-radius: 10px; background: #000; display: block; aspect-ratio: 16/9; }
.play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 14px; border: 2.5px solid #16141c; border-radius: 999px; background: var(--orange); color: #16141c; font: 800 1.05rem var(--font); cursor: pointer; box-shadow: 4px 4px 0 #000; transition: transform .2s var(--spring); z-index: 3; }
.play:hover { transform: scale(1.06) rotate(-2deg); }
.play-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff4e6; border: 2.5px solid #16141c; font-size: .9rem; padding-left: 3px; }
.ss-stage { position: absolute; inset: 0; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.ss-slide.on { opacity: 1; }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; }
.ss-slide.on img { animation: kb 3.4s ease-out forwards; }
.ss-slide:nth-child(even).on img { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kb2 { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }
.ss-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 30px; color: #fff4e6; background: radial-gradient(circle at 30% 20%, #2a2236, #0d0b12); }
.ss-card img { width: 96px; height: 96px; border-radius: 22px; border: 3px solid #fff4e6; }
.ss-card h3 { font-size: clamp(1.6rem, 4vw, 3rem); margin: 0; }
.ss-card p { margin: 0; font-size: clamp(1rem, 2vw, 1.3rem); opacity: .85; max-width: 40ch; }
.ss-card .sticker { transform: rotate(-3deg); margin: 0; background: var(--orange); color: #16141c; border-color: #16141c; }
.ss-bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--orange); width: 0; z-index: 4; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 24px; }
.story { font-size: 1.06rem; }
.story h2 { margin-top: .4em; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shots img { border-radius: 12px; border: var(--line); aspect-ratio: 16/10; object-fit: cover; transition: transform .2s var(--spring); }
.shots a:hover img { transform: rotate(-1.5deg) scale(1.03); }
.details dl { margin: 0; display: grid; gap: 4px; }
.details dt { font: 700 .72rem var(--mono); text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.maker { display: flex; align-items: center; gap: 8px; }
.comments { margin-top: 24px; }
.comment-form { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.comment { display: flex; gap: 12px; animation: pop .35s var(--spring); }
.comment p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px !important; }
.comment-meta a { font-weight: 800; text-decoration: none; }
.signin-nudge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* ---------- winners ---------- */
.podium-week { margin-bottom: 44px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; max-width: 760px; }
.step { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; }
.step b { font-size: 1.05rem; line-height: 1.2; }
.step .block { display: grid; place-items: center; width: 100%; border: var(--line); border-radius: 14px 14px 0 0; border-bottom-width: 5px; font: 800 1.4rem var(--font); box-shadow: var(--shadow); color: #16141c; margin-top: 6px; }
.step-1 .block { height: 150px; background: var(--yellow); }
.step-2 .block { height: 110px; background: #e2e2ea; }
.step-3 .block { height: 80px; background: #f3b27e; }
.step .medal { font-size: 1.8rem; }
.step:hover .plogo { transform: translateY(-6px) rotate(-6deg); }
.step .plogo { transition: transform .25s var(--spring); }
.step-empty { opacity: .35; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding-bottom: 70px; }
.cat-tile { display: grid; gap: 4px; text-decoration: none; transition: transform .2s var(--spring), box-shadow .2s var(--spring), background .2s; }
.cat-tile:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); background: var(--tint); color: #16141c; }
.cat-tile:hover .label { color: #16141c; }
.cat-emoji { font-size: 2rem; }

/* ---------- submit ---------- */
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; padding-bottom: 70px; }
.signin-card { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; text-align: center; padding: 36px; }
.submit-form { display: grid; gap: 22px; padding: 26px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #16141c; border: 2.5px solid var(--ink); font-size: .95rem; }
.submit-form label { display: grid; gap: 6px; font-weight: 700; position: relative; }
.count { position: absolute; right: 10px; top: 0; font: 700 .7rem var(--mono); color: var(--muted); }
.count.over { color: var(--red); }
.chip-check { cursor: pointer; user-select: none; display: inline-flex !important; gap: 4px !important; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check:has(input:checked) { background: var(--lime); color: #16141c; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink); }
.chip-check:has(input:focus-visible) { outline: 3px solid var(--blue); }
.seg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: block !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 14px; border: var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; transition: transform .15s var(--spring); }
.seg input:checked + span { background: var(--blue); color: #16141c; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.drop { border: 2.5px dashed var(--ink); border-radius: 16px; padding: 18px; cursor: pointer; display: flex !important; align-items: center; gap: 14px; transition: background .15s; }
.drop:hover, .drop.drag { background: color-mix(in srgb, var(--lime) 35%, transparent); }
.drop input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.drop-ui { display: grid; gap: 2px; font-weight: 500; flex: 1; }
.drop-ui span { color: var(--muted); font-size: .9rem; }
.drop-preview { width: 64px; height: 64px; border-radius: 14px; border: var(--line); object-fit: cover; display: none; }
.drop-preview[src] { display: block; }
.drop-thumbs { display: flex; gap: 6px; }
.drop-thumbs img { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lane { border: var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; font-size: .92rem; }
.lane-fast { background: var(--yellow); color: #16141c; }
.check { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 600 !important; }
.check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--orange); margin-top: 2px; }
.form-error { background: var(--red); color: #16141c; border: var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 0; }
.preview-col { position: sticky; top: 92px; display: grid; gap: 16px; }
.rv-promo { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--spring), box-shadow .2s; }
.rv-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rv-promo:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.rv-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.rv-hook { font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
.rv-sub { font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.rv-cta { margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--orange); }
.rv-promo:hover .rv-cta span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
.tips ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.tips h3 { margin-bottom: 8px; }

/* ---------- dashboard / admin ---------- */
.me-list, .admin-list { display: grid; gap: 20px; padding-bottom: 70px; }
.me-top { display: flex; gap: 14px; align-items: center; }
.me-top h2 { margin: 0; }
.me-top h2 a { text-decoration: none; }
.me-top p { margin: 0; }
.me-stats { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.me-stats li { border: 2px solid var(--ink); border-radius: 12px; padding: 8px; text-align: center; background: var(--soft); }
.me-stats b { display: block; }
.me-stats span { font: 700 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.badge-box { border-top: 2.5px dashed var(--ink); padding-top: 14px; }
.badge-box summary { cursor: pointer; font-weight: 800; }
.badge-box label { display: grid; gap: 6px; font-weight: 700; margin: 12px 0; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.code { font: .8rem var(--mono); }
.admin-desc { white-space: pre-line; color: var(--muted); margin: 12px 0; }
.reason { width: auto; flex: 1; min-width: 180px; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tier { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; position: relative; transition: transform .2s var(--spring); }
.tier:hover { transform: translateY(-4px) rotate(-.5deg); }
.tier-hot { background: var(--yellow); color: #16141c; box-shadow: var(--shadow-lg); }
.tier-soon { border-style: dashed; box-shadow: none; }
.tier-flag { position: absolute; top: -16px; right: 14px; margin: 0; }
.tier-emoji { font-size: 2rem; }
.tier h2 { margin: 0; }
.price { font-size: 2rem; font-weight: 800; margin: 0; }
.tier ul { padding-left: 1.1em; margin: 6px 0 14px; display: grid; gap: 4px; }
.tier .pill { justify-self: start; }
.faq { padding: 50px 0 70px; max-width: 820px; }
.faq details { margin-bottom: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- prose / badges ---------- */
.prose { max-width: 820px; margin-bottom: 70px; padding: 30px; }
.prose ol, .prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose h2 { margin-top: 1.2em; }
.badge-gallery { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }

/* ---------- sign in ---------- */
.auth-wrap { padding: 56px 0 90px; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); padding: 32px; text-align: center; }
.auth-card h1 { font-size: 2.2rem; }
.auth-form { display: grid; gap: 14px; text-align: left; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; font-weight: 700; }
.auth-sent { margin-top: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 700 .75rem var(--mono); text-transform: uppercase; margin: 18px 0 14px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 2px dashed var(--ink); opacity: .3; }
.auth-fine { margin: 18px 0 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input > span { display: grid; place-items: center; padding: 0 12px; border: var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--soft); font-weight: 800; }
.prefix-input input { border-radius: 0 12px 12px 0; }
.settings-card .sticker { margin-bottom: 10px; }

/* ---------- footer ---------- */
.foot { border-top: var(--line); background: var(--card); padding: 44px 0 50px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot nav b { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot nav a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot-brand p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; background: #16141c; color: #fff4e6; border: 2.5px solid #fff4e6; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 4px 4px 0 var(--orange); transition: transform .35s var(--spring); max-width: calc(100% - 32px); }
#toast.show { transform: translate(-50%, 0); }


/* ---------- calm layer: the apps are the colour, the frame stays quiet ---------- */
body { background-image: none; }
.btn { border: 1px solid var(--hair-2); box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-sm { box-shadow: none; }
.btn-orange { --c: #fff; border-color: var(--orange-ink); background: var(--orange); }
.btn-ink { --b: var(--ink); --c: #fff; border-color: var(--ink); }
.btn-danger { --b: #fff; --c: var(--red); border-color: #efc9c9; }
.link { border-bottom-width: 1.5px; }
.link:hover { background: none; color: var(--orange-ink); }
.sticker { transform: none; box-shadow: none; border: 1px solid var(--hair-2); background: var(--card); color: var(--muted); font-size: .72rem; padding: .5em .75em; }
.sticker-lime, .sticker-yellow, .sticker-orange { background: var(--card); color: var(--muted); }
.pill { border: 1px solid var(--hair-2); }
.pill-approved { background: #e8f4ea; color: #24603a; border-color: #cfe6d5; }
.pill-pending { background: #fbf1dc; color: #7a5410; border-color: #f0dfb8; }
.pill-rejected { background: #fbe7e7; color: #8a2424; border-color: #f0c9c9; }
.pill-maker { background: var(--soft); color: var(--orange-ink); }
.topbar { border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.brand .logo rect { stroke: none; }
.mainnav a[aria-current="page"] { border-color: transparent; background: var(--soft); color: var(--text); }
.menu { border: 1px solid var(--hair); }
.avatar { border: 1px solid var(--hair-2); }
.avatar-fallback { background: var(--soft); color: var(--muted); }
input, textarea { border: 1px solid var(--hair-2); }
input:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); border-color: var(--orange); transform: none; }
.nav-toggle { border: 1px solid var(--hair-2); box-shadow: none; }

.squiggle { color: var(--orange); -webkit-text-stroke: 0; }
.squiggle::after { display: none; }
.hero-card { transform: none; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.hero-card .label { color: var(--muted); opacity: 1; }
.cd b { background: var(--soft); color: var(--text); border: 0 !important; box-shadow: none; }
.cd i { color: var(--muted); }
.stats li { background: var(--soft); border: 0; color: var(--text); }
.stats span { color: var(--muted); }

.row { box-shadow: var(--shadow); }
.row::before { display: none; }
.row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.row-top .rank { background: var(--soft); color: var(--text); border: 0; transform: none; box-shadow: none; }
.row-2 .rank, .row-3 .rank { background: var(--soft); }
.plogo { border: 1px solid var(--hair); border-radius: 14px; }
.plogo-fallback { background: var(--soft); color: var(--muted); }
.chip { border: 1px solid var(--hair-2); background: var(--card); font-weight: 600; color: var(--muted); }
a.chip:hover { background: var(--soft); color: var(--text); transform: none; }
.award-pill { border: 1px solid #ecdcae; background: #fbf5e4; color: #7a5a10; }
.upvote { border: 1px solid var(--hair-2); box-shadow: none; }
.upvote:hover { box-shadow: none; border-color: var(--orange); color: var(--orange-ink); }
.upvote.is-voted { background: var(--orange); border-color: var(--orange-ink); color: #fff; }
.upvote.is-voted .uv-arrow { fill: #fff; stroke: #fff; }
.upvote-soon { border-style: solid; color: var(--muted); }
.t-yellow-bg { background: var(--card) !important; color: var(--text); }
.side-ad { border-style: dashed; border-color: var(--hair-2); }
.empty-emoji { animation: none; }

.notice { border: 1px solid var(--hair-2); font-weight: 500; }
.notice-pending, .notice-soon { background: #fbf5e4; border-color: #ecdcae; color: var(--text); }
.notice-ok { background: #ecf6ee; border-color: #cfe6d5; color: var(--text); }
.notice-rejected { background: #fbecec; border-color: #f0c9c9; }

.product-head::before { display: none; }
.award { border: 1px solid #ecdcae; background: #fbf5e4; color: #6b4e0c; box-shadow: none; }
.trailer { background: #111; border-color: #111; }
.play { border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); color: #fff; }
.play-ico { border: 0; color: var(--orange-ink); }
.ss-card .sticker { background: var(--orange); color: #fff; border: 0; }
.shots img { border: 1px solid var(--hair); }
.shots a:hover img { transform: translateY(-2px); }

.step .block { border: 1px solid var(--hair); border-bottom-width: 1px; box-shadow: none; color: var(--muted); }
.step-1 .block { background: #fbf5e4; }
.step-2 .block, .step-3 .block { background: var(--soft); }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--card); color: var(--text); }
.cat-tile:hover .label { color: var(--muted); }

.step-n { background: var(--soft); border: 0; color: var(--muted); }
.chip-check:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; box-shadow: none; }
.seg span { border: 1px solid var(--hair-2); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; transform: none; }
.drop { border: 1.5px dashed var(--hair-2); }
.drop:hover, .drop.drag { background: var(--soft); }
.drop-preview, .drop-thumbs img { border: 1px solid var(--hair); }
.lane { border: 1px solid var(--hair); }
.lane-fast { background: var(--card); border-color: var(--orange); color: var(--text); }
.form-error { background: #fbecec; color: #8a2424; border: 1px solid #f0c9c9; font-weight: 600; }
.me-stats li { border: 1px solid var(--hair); }
.badge-box { border-top: 1px dashed var(--hair-2); }
.tier-hot { background: var(--card); color: var(--text); border: 1.5px solid var(--orange); box-shadow: var(--shadow); }
.tier-flag { background: var(--orange); color: #fff; border: 0; }
.tier-soon { border-color: var(--hair-2); }
.prefix-input > span { border: 1px solid var(--hair-2); border-right: 0; }
.foot { border-top: 1px solid var(--hair); }
#toast { border: 0; box-shadow: var(--shadow-lg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .mainnav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--bg); border-bottom: var(--line); display: none; }
  .nav-open .mainnav { display: flex; animation: pop .25s var(--spring); }
  .search { margin: 8px 0 0; }
  .search input, .search input:focus { width: 100%; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-in, .grid-main, .product-grid, .submit-grid { grid-template-columns: 1fr; }
  .sidebar, .preview-col { position: static; }
  .preview-col { order: -1; }
  .preview-col .tips, .preview-col .rv-promo { display: none; }
  .hero-card { transform: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { gap: 10px; height: 64px; }
  .mainnav { top: 64px; }
  .brand span { display: none; }
  .hide-xs { display: none; }
  .hero { padding-top: 30px; }
  .row { gap: 12px; padding: 12px 12px 12px 16px; }
  .row:has(.rank) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row .rank { display: none; }
  .row-top .rank { display: grid; position: absolute; top: -12px; left: -8px; width: 32px; height: 32px; font-size: .95rem; z-index: 3; }
  .row-logo .plogo { width: 48px !important; height: 48px !important; border-radius: 12px; }
  .meta .chips .chip:nth-child(n+2) { display: none; }
  .upvote { min-width: 54px; height: 62px; }
  .product-head { grid-template-columns: auto 1fr; padding: 20px; }
  .product-head .plogo { width: 64px !important; height: 64px !important; }
  .product-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
  .product-actions .upvote { grid-row: span 3; }
  .lanes { grid-template-columns: 1fr; }
  .me-stats { grid-template-columns: repeat(3, 1fr); }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .avatar { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .podium .step b { font-size: .85rem; }
  .cd b { font-size: 1.35rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- launch page (Product Hunt-style) ---------- */
.product-ph { padding-top: 22px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.ph-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.ph-head .plogo { border-radius: 18px; }
.ph-title h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 4px; }
.ph-tagline { font-size: 1.15rem; color: var(--muted); margin: 0; }
.ph-actions { display: flex; gap: 10px; align-items: center; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 0; }
.upvote-ph {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px;
  font: 700 1rem var(--font); cursor: pointer; white-space: nowrap;
  background: var(--orange); color: #fff; border: 1px solid var(--orange-ink); box-shadow: var(--shadow);
  transition: transform .15s var(--spring), box-shadow .15s, background .15s;
}
.upvote-ph .uv-arrow { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 2; stroke-linejoin: round; transition: transform .25s var(--spring); }
.upvote-ph:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.upvote-ph:hover .uv-arrow { transform: translateY(-2px); }
.upvote-ph .uv-dot { opacity: .6; }
.upvote-ph.is-voted { background: var(--card); color: var(--orange-ink); border-color: var(--orange); box-shadow: none; }
.upvote-ph.is-voted .uv-arrow { fill: var(--orange); stroke: var(--orange); }
.upvote-ph.bump { animation: bump .5s var(--spring); }
.upvote-ph-soon { background: var(--soft); color: var(--muted); border-color: var(--hair-2); box-shadow: none; cursor: default; font-weight: 600; }
.upvote-ph-soon:hover { transform: none; box-shadow: none; }
.product-ph .awards { margin-top: 16px; }

.gallery-wrap { position: relative; margin: 28px 0 8px; }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; }
.gallery:focus-visible { outline-offset: 6px; }
.g-item { position: relative; flex: 0 0 auto; height: 340px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); background: var(--soft); scroll-snap-align: start; display: block; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-trailer { background: #111; border-color: #111; aspect-ratio: 16 / 9; }
.g-trailer > img, .g-trailer .ss-still { opacity: .55; }
.g-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g-nav { position: absolute; top: calc(50% - 26px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair-2); background: var(--card); box-shadow: var(--shadow); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--text); opacity: 0; transition: opacity .2s; }
.gallery-wrap:hover .g-nav { opacity: 1; }
.g-nav[hidden] { display: none; }
.g-prev { left: -14px; } .g-next { right: -14px; }

.ph-about { font-size: 1.07rem; line-height: 1.65; margin-top: 20px; max-width: 70ch; }
.ph-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hair); margin: 34px 0 20px; }
.ph-tabs a { text-decoration: none; font-weight: 700; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.ph-tabs a[aria-current] { border-color: var(--text); }
.ph-tabs a span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.ph-comments .comment-form { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.ph-comments .comment-form textarea { border: 0; padding: 8px 4px; box-shadow: none !important; }
.ph-comments .comment-list { gap: 0; }
.ph-comments .comment { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ph-comments .comment:last-child { border-bottom: 0; }
.comment-maker { background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 6%, transparent), transparent 60%); margin: 0 -14px; padding-left: 14px !important; padding-right: 14px !important; border-radius: 12px; }
.ph-comments .comment-meta a, .ph-comments .comment-meta b { font-weight: 700; text-decoration: none; }

.ph-side { position: sticky; top: 92px; display: grid; gap: 0; border: 1px solid var(--hair); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.side-block { padding: 20px; border-bottom: 1px solid var(--hair); }
.side-block:last-child { border-bottom: 0; }
.side-block h3 { font-size: .78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.ph-rank { display: flex; align-items: baseline; gap: 8px; margin: 0 0 2px; }
.ph-rank b { font-size: 2rem; line-height: 1; }
.ph-rank span { font-weight: 700; color: var(--muted); }
.ph-stats { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-stats li { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.ph-stats b { display: block; font-size: 1.2rem; }
.ph-stats span { font: 700 .66rem var(--mono); text-transform: uppercase; color: var(--muted); }
.ph-maker { display: flex; gap: 12px; align-items: center; }
.ph-maker > div { display: grid; }
.ph-maker a { text-decoration: none; }
.ph-links { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ph-links a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.ph-links a:hover { color: var(--orange-ink); }
.ph-badge-link { display: inline-block; margin-top: 14px; }
.ph-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ph-related a { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px; margin: 0 -8px; border-radius: 10px; }
.ph-related a:hover { background: var(--soft); }
.ph-related b { display: block; font-size: .95rem; }
.ph-related .grow > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ph-related .plogo { border-radius: 10px; }

@media (max-width: 960px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ph-side { position: static; }
}
@media (max-width: 640px) {
  .ph-head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .ph-head .plogo { width: 60px !important; height: 60px !important; border-radius: 14px; }
  .ph-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; }
  .ph-actions .btn, .upvote-ph { justify-content: center; height: 48px; }
  .g-item { height: 210px; }
  .g-nav { display: none; }
  .comment-maker { margin: 0 -8px; padding-left: 8px !important; padding-right: 8px !important; }
}

/* ---------- edit launch ---------- */
.edit-wrap { padding-bottom: 70px; }
.edit-wrap .submit-form { max-width: 780px; }
.page-head .crumbs { margin-bottom: 14px; }
.shot-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shot-tile { display: grid !important; gap: 8px !important; font-weight: 600 !important; }
.shot-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--hair); transition: opacity .2s; }
.shot-tile:has(input:checked) img { opacity: .3; }
.shot-remove { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); cursor: pointer; }
.shot-remove input { width: auto; accent-color: var(--red); }
.hint { font-weight: 400; font-size: .85rem; color: var(--muted); }
.edit-actions { margin-top: 4px; }
.ph-owner { margin-top: 14px; }
.media-nudge { display: grid; gap: 4px; margin: 26px 0 0; padding: 22px; border: 1.5px dashed var(--hair-2); border-radius: 14px; text-decoration: none; background: var(--card); transition: border-color .15s, background .15s; }
.media-nudge:hover { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 4%, var(--card)); }
.media-nudge span { color: var(--muted); }

/* ---------- fixes: idle toast, compact hero ---------- */
#toast { visibility: hidden; opacity: 0; transform: translate(-50%, 20px); transition: transform .3s var(--spring), opacity .2s, visibility 0s .3s; }
#toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: transform .3s var(--spring), opacity .2s; }
.hero-compact { padding: 30px 0 10px; }
.hero-compact .hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero-compact h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 8px; }
.hero-compact h1 .accent { color: var(--orange); }
.hero-compact .lede { font-size: 1.02rem; margin: 0; max-width: 62ch; }
.hero-side { display: grid; gap: 12px; justify-items: end; }
.hero-compact .hero-cta { margin: 0; gap: 10px; }
.hero-meta { display: grid; gap: 4px; justify-items: end; }
.hero-meta .countdown { margin: 0; display: flex; align-items: center; gap: 8px; }
.hero-meta .cd-label { display: inline; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0; }
.hero-meta .cd-boxes { display: inline-flex; gap: 4px; }
.hero-meta .cd { display: inline-flex; align-items: baseline; gap: 1px; }
.hero-meta .cd b { width: auto; min-width: 2.1ch; padding: 3px 5px; font-size: .9rem; border-radius: 6px; }
.hero-meta .cd i { margin: 0 0 0 1px; font-size: .62rem; }
.hero-stats { font-size: .82rem; color: var(--muted); }
.grid-main { padding-top: 18px; }
@media (max-width: 860px) {
  .hero-compact .hero-in { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .hero-side, .hero-meta { justify-items: start; }
}

/* ---------- paid boosts + featured ---------- */
.boost { border-top: 1px dashed var(--hair-2); margin-top: 18px; padding-top: 18px; }
.boost-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.boost-head p { margin: 0; }
.boost-title { display: flex; align-items: center; gap: .4em; font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.boost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.boost-opt {
  --accent: var(--orange);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--orange) 45%, var(--hair-2));
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 60%), var(--card);
  box-shadow: 0 1px 2px rgba(28, 26, 34, .05), 0 18px 36px -22px color-mix(in srgb, var(--orange) 70%, transparent);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.boost-opt:has(.dd.is-open) { z-index: 3; }
.boost-opt:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(28, 26, 34, .05), 0 24px 44px -22px color-mix(in srgb, var(--orange) 80%, transparent); }
.boost-feature {
  --accent: #ffb48f; color: #f6f1ea; border-color: #2b2833;
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--orange) 38%, transparent), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%), var(--ink);
  box-shadow: 0 1px 2px rgba(28, 26, 34, .2), 0 22px 40px -20px rgba(28, 26, 34, .55);
}
.boost-feature:hover { box-shadow: 0 1px 2px rgba(28, 26, 34, .2), 0 28px 48px -20px rgba(28, 26, 34, .6); }
.boost-top { display: flex; align-items: center; gap: 12px; }
.boost-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #ff8a52, var(--orange) 55%, var(--orange-ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px var(--orange); }
.boost-icon svg { width: 22px; height: 22px; }
.boost-name { flex: 1; min-width: 0; }
.boost-name p { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.boost-name span { font: 700 .7rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); }
.boost-feature .boost-name span { color: var(--accent); }
.boost-price { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.boost-perks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.boost-perks li { display: flex; align-items: center; gap: 9px; }
.boost-perks svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: var(--orange-ink); background: color-mix(in srgb, var(--orange) 16%, transparent); }
.boost-feature .boost-perks svg { color: var(--ink); background: var(--accent); }
.boost-opt > :last-child { margin-top: auto; }
.boost-form { display: flex; gap: 8px; align-items: stretch; }
.boost-form .dd { flex: 1; min-width: 0; }
.boost-form .dd-btn { height: 100%; padding: .7em .85em; border-radius: 12px; }
.boost-form .btn, .boost-cta { flex: none; border-radius: 12px; }
.boost-cta { align-self: stretch; }
.boost-state { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; font-weight: 600; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--muted); }
.boost-feature .boost-state { background: rgba(255, 255, 255, .08); color: #cfc8d6; }
.boost-state.is-ok { background: #e8f4ea; color: #24603a; }
.boost-feature .boost-state.is-ok { background: rgba(120, 210, 150, .16); color: #a9e5bb; }
.boost-foot { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.boost-foot svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .boost-opt, .boost-opt:hover { transition: none; transform: none; } }
.boost-form select, .submit-form select { font: 500 .95rem var(--font); padding: .5em .7em; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--card); color: var(--text); }
.submit-form select { width: 100%; padding: .7em .85em; }
/* Custom dropdowns: app.js turns each <select> into these and keeps the select hidden inside for the form. */
.dd { position: relative; display: inline-block; min-width: 0; font: 500 .95rem var(--font); }
.submit-form .dd { display: block; }
.dd-native { position: absolute; inset: 0; width: 100% !important; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .75em; width: 100%; padding: .5em .7em; font: inherit; color: var(--text); text-align: left; background: var(--card); border: 1px solid var(--hair-2); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dd-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-btn::after { content: ''; flex: none; width: 7px; height: 7px; margin: -3px 2px 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--spring); }
.dd.is-open .dd-btn::after { transform: translateY(3px) rotate(-135deg); }
.dd-btn:hover { border-color: var(--muted); }
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.submit-form .dd-btn { padding: .7em .85em; }
.dd-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); max-height: 300px; overflow-y: auto; margin: 0; padding: 5px; list-style: none; background: var(--card); border: 1px solid var(--hair-2); border-radius: 12px; box-shadow: var(--shadow-lg); animation: dd-in .14s ease-out; }
.dd-list[hidden] { display: none; }
.dd-up .dd-list { top: auto; bottom: calc(100% + 6px); }
.dd-list li { position: relative; padding: .5em .7em .5em 2em; border-radius: 8px; color: var(--text); white-space: nowrap; cursor: pointer; }
.dd-list li.is-active { background: var(--soft); }
.dd-list li[aria-selected="true"] { font-weight: 700; }
.dd-list li[aria-selected="true"]::before { content: ''; position: absolute; left: .85em; top: 50%; width: 5px; height: 9px; margin-top: -6px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); }
.dd-list li[aria-disabled="true"] { color: var(--muted); cursor: default; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dd-list { animation: none; } .dd-btn::after { transition: none; } }
.featured-strip { display: grid; gap: 10px; margin-bottom: 26px; }
.featured-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--orange); border-radius: var(--r); background: color-mix(in srgb, var(--orange) 5%, var(--card)); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s var(--spring), box-shadow .15s; }
.featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.featured-card .grow { display: grid; gap: 2px; }
.pill-featured { justify-self: start; background: var(--orange); color: #fff; border-color: var(--orange-ink); font-size: .6rem; }
.side-featured { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 6px 0; }
.side-featured .grow { display: grid; }
.side-featured .grow span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .boost-grid { grid-template-columns: 1fr; } .boost-opt { padding: 16px; } .boost-form { flex-direction: column; } }

/* ---------- dialogs (app.js ask/tell, in place of native confirm and alert) ---------- */
.lt-dialog { width: min(420px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--hair-2); border-radius: 20px; background: var(--card); color: var(--text); box-shadow: 0 2px 4px rgba(28, 26, 34, .06), 0 30px 60px -20px rgba(28, 26, 34, .35); animation: lt-dialog-in .2s var(--spring); }
.lt-dialog::backdrop { background: rgba(22, 20, 28, .38); backdrop-filter: blur(3px); animation: lt-fade .2s ease-out; }
.lt-dialog.is-closing { animation: lt-dialog-out .16s ease-in forwards; }
.lt-dialog.is-closing::backdrop { animation: lt-fade .16s ease-in reverse forwards; }
.lt-dialog-box { display: grid; gap: 10px; padding: 24px; }
.lt-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; font: 800 1.2rem/1 var(--font); color: #fff; background: linear-gradient(145deg, #ff8a52, var(--orange) 55%, var(--orange-ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px var(--orange); }
.lt-dialog.is-danger .lt-dialog-icon { background: linear-gradient(145deg, #ec6a6a, var(--red)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px var(--red); }
.lt-dialog h2 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.lt-dialog p { margin: 0; color: var(--muted); line-height: 1.5; }
.lt-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.lt-dialog-actions .btn { font-size: .92rem; padding: .7em 1em; border-radius: 12px; }
.btn-danger-solid { --b: var(--red); --c: #fff; color: #fff; border-color: #b53434; background: var(--red); }
@media (max-width: 480px) { .lt-dialog-actions { flex-direction: column-reverse; } .lt-dialog-actions .btn { width: 100%; } }
@keyframes lt-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes lt-dialog-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes lt-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lt-dialog, .lt-dialog::backdrop, .lt-dialog.is-closing { animation: none; } }

/* ---------- lightbox ---------- */
.g-item[data-lightbox] { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(12, 10, 16, .93); }
.lb.open { display: grid; }
.lb-img { max-width: min(94vw, 1600px); max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); background: #fff; }
.lb-img.in { animation: lbIn .22s ease-out; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: calc(50% - 24px); }
.lb-next { right: 16px; top: calc(50% - 24px); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 .85rem var(--mono); opacity: .8; }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }
html.lb-lock { overflow: hidden; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; } .lb-img { max-height: 78vh; } }

/* ---------- consent banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; margin: 0 auto; display: grid; gap: 12px; padding: 18px 20px; background: var(--card); border: 1px solid var(--hair-2); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .95rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent .btn-row { justify-content: flex-end; }

/* ---------- settings: API keys, developers page ---------- */
.keys { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); text-align: left; }
.keys h2 { font-size: 1.15rem; margin-bottom: 4px; }
.key-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.key-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; font-size: .9rem; }
.key-list code, .dev code, .token-box code { font: .82rem var(--mono); }
.key-new { display: flex; gap: 8px; }
.token-box { display: grid; gap: 8px; padding: 14px; border: 1.5px solid var(--orange); border-radius: 12px; background: color-mix(in srgb, var(--orange) 5%, var(--card)); margin: 12px 0; }
.token-box code { word-break: break-all; background: var(--card); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--hair); }
.dev pre { background: #16141c; color: #f4ead9; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font: .82rem/1.6 var(--mono); }
.dev table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dev td, .dev th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.dev th { font: 700 .72rem var(--mono); text-transform: uppercase; color: var(--muted); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal h3 { font-size: 1rem; margin-top: 1.2em; }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0; }
.legal td, .legal th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.legal th { font: 700 .72rem var(--mono); text-transform: uppercase; color: var(--muted); }
.token-box[hidden] { display: none; }

/* ---------- fill from website ---------- */
.magic { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -4px; }
.magic .btn[disabled] { opacity: .6; }
.magic.is-busy .magic-status::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--hair-2); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.magic.is-done .magic-status { color: #24603a; }
.filled { animation: filled 1.4s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes filled { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 45%, transparent); } 100% { box-shadow: none; } }

/* ---------- accessibility fixes ---------- */
/* Dark text on orange: 6.6:1 (white was 2.9:1). Orange text uses the darker ink shade. */
.btn-orange, .btn-orange:hover { --c: #1c1a22; color: #1c1a22; }
.upvote-ph { color: #1c1a22; }
.upvote-ph .uv-arrow { fill: #1c1a22; stroke: #1c1a22; }
.upvote.is-voted { color: #1c1a22; }
.upvote.is-voted .uv-arrow { fill: #1c1a22; stroke: #1c1a22; }
.pill-featured, .tier-flag { color: #1c1a22; }
.play { color: #1c1a22; }
.hero-compact h1 .accent, .squiggle { color: var(--orange-ink); }
.link:hover { color: var(--orange-ink); }
/* bigger tap targets */
.crumbs a { display: inline-block; padding: 6px 0; }
.row-body h3 a { display: inline-block; padding: 2px 0; }
.consent a { display: inline-block; padding: 4px 0; }
.side-block h2 { font-size: .78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }

/* ---------- launch countdown on an upcoming product page ---------- */
.lcd {
  --glow: var(--orange);
  position: relative; isolation: isolate; overflow: hidden; margin: 0 0 22px; padding: 22px 24px 24px; border-radius: 22px; color: #f6f1ea;
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--glow) 42%, transparent), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, color-mix(in srgb, var(--glow) 18%, transparent), transparent 65%),
    #16141c;
  box-shadow: 0 1px 2px rgba(22, 20, 28, .25), 0 26px 50px -26px color-mix(in srgb, var(--glow) 75%, rgba(22, 20, 28, .6));
}
/* Faint star field and a slow light sweep across the panel. */
.lcd::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 38% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 63% 18%, #fff, transparent), radial-gradient(1px 1px at 82% 58%, #fff, transparent), radial-gradient(1px 1px at 92% 12%, #fff, transparent), radial-gradient(1px 1px at 24% 88%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 40%, #fff, transparent); }
.lcd::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); transform: translateX(-100%); animation: lcd-sweep 6s ease-in-out infinite; }
.lcd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.lcd-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #ffb48f; }
.lcd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 60%, transparent); animation: lcd-pulse 1.6s ease-out infinite; }
.lcd-title { margin: 0; font-size: 1.02rem; font-weight: 600; color: #cfc8d6; }
.lcd-title b { color: #fff; font-weight: 800; }
.lcd-clock { display: flex; align-items: flex-start; gap: 10px; }
.lcd-unit { flex: 1; display: grid; justify-items: center; gap: 9px; min-width: 0; perspective: 400px; }
/* Split-flap card: lighter top half, a hairline hinge across the middle. */
.lcd-unit b {
  --r: 14px;
  position: relative; display: block; width: 100%; height: 1.5em; border-radius: var(--r); text-align: center;
  font: 800 clamp(2.1rem, 6vw, 3.2rem)/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7);
  perspective: 260px;
}
/* Two clipped halves of the same number, each with its own face; the hinge line sits between them. */
.flap .half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
.flap .half > span { display: flex; align-items: center; justify-content: center; height: 200%; }
.flap .top { top: 0; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; background: linear-gradient(180deg, #2f2b37, #29252f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transform-origin: 50% 100%; }
.flap .bot { bottom: 0; border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px); background: linear-gradient(180deg, #221f29, #1b1821); transform-origin: 50% 0; }
.flap .bot > span { transform: translateY(-50%); }
.lcd-unit b::after { content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0, 0, 0, .6); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
/* The moving flaps: old top folds down to the hinge, then the new bottom swings down from it. */
.flap .fold { z-index: 2; animation: lcd-fold .26s cubic-bezier(.55, 0, .9, .45) forwards; }
.flap .land { z-index: 2; transform: rotateX(90deg); animation: lcd-land .34s cubic-bezier(.2, .9, .35, 1.25) .26s forwards; }
@keyframes lcd-fold { to { transform: rotateX(-90deg); filter: brightness(.55); } }
@keyframes lcd-land { from { transform: rotateX(90deg); filter: brightness(.55); } to { transform: rotateX(0); filter: none; } }
.lcd-unit i { font: 700 .66rem/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .14em; color: #9d95a8; }
.lcd-s b { color: #ffcfb6; text-shadow: 0 0 18px color-mix(in srgb, var(--glow) 70%, transparent); border-color: color-mix(in srgb, var(--glow) 35%, transparent); }
.lcd-s i { color: #ffb48f; }
.lcd-sep { flex: none; align-self: flex-start; display: grid; gap: 10px; margin-top: clamp(1.15rem, 3.3vw, 1.7rem); }
.lcd-sep::before, .lcd-sep::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: .85; box-shadow: 0 0 10px var(--glow); animation: lcd-blink 1s steps(1) infinite; }
/* Last 24 hours: the whole panel heats up. */
.lcd.is-final { --glow: #ff4d1a; }
.lcd.is-final .lcd-kicker { color: #ffd0bd; }
.lcd.is-final .lcd-d { display: none; }
.lcd.is-final .lcd-d + .lcd-sep { display: none; }
@keyframes lcd-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes lcd-blink { 50% { opacity: .25; } }
@keyframes lcd-sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (max-width: 520px) {
  .lcd { padding: 18px 16px 20px; border-radius: 18px; }
  .lcd-clock { gap: 6px; }
  .lcd-unit b { --r: 11px; font-size: 1.9rem; }
  .lcd-unit i { font-size: .58rem; letter-spacing: .08em; }
  .lcd-sep { gap: 7px; margin-top: 1rem; }
  .lcd-sep::before, .lcd-sep::after { width: 4px; height: 4px; }
}
@media (prefers-reduced-motion: reduce) { .lcd::after, .lcd-dot, .lcd-sep::before, .lcd-sep::after, .flap .fold, .flap .land { animation: none; } }
