/* MashdUp: design system + page styles. Colours, type and spacing are taken 1:1 from the original design. */
/* YouTube hqdefault thumbnails are 4:3 with black bars; the "auto" sizes below crop the bars for 16:9 and 16:10 frames. */

/* ------------------------------------------------------------------ fonts (self-hosted, OFL) */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plex-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plex-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plex-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plex-mono-500-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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/plex-mono-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/plex-mono-600-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;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #FAFAF7;
  --ink: #111;
  --ink-soft: #1E1D1C;
  --orange: #FF7A21;
  --orange-deep: #CF5B0D;
  --error: #B42F08;
  --muted: #55554F;
  --muted-2: #8A8A85;
  --muted-3: #B5B4AD;
  --rule: #DAD9D2;
  --dash: #C9C8C1;
  --panel: #F1F0EA;
  --panel-2: #EDECE6;
  --stripe: #E7E6DF;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --stripes: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 17, 17, 0.06) 14px 28px);
  --focus-ring: 0 0 0 3px rgba(255, 122, 33, 0.4);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); min-height: 100vh; display: flex; flex-direction: column; }
#view { flex: 1 0 auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::placeholder { color: var(--muted-2); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.display { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(40px, 6vw, 76px); line-height: 0.9; letter-spacing: -0.04em; }

/* Chamfered "pixel" corners, the signature shape of the design. */
.cut-4 { clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.cut-8 { clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)); }
.cut-10 { clip-path: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)); }
.cut-12 { clip-path: polygon(0 12px, 12px 12px, 12px 0, calc(100% - 12px) 0, calc(100% - 12px) 12px, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 12px), 0 calc(100% - 12px)); }
/* clip-path would hide an outside focus ring, so chamfered controls get an inset one. */
.cut-4:focus-visible, .cut-8:focus-visible, .cut-10:focus-visible, .cut-12:focus-visible { outline-offset: -7px; }

/* ------------------------------------------------------------------ buttons, pills, tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  padding: 14px 22px; font-weight: 800; font-size: 15px; line-height: 1.1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dashed { border-style: dashed; font-weight: 700; padding: 14px 18px; }
.btn-dashed:hover { background: transparent; border-color: var(--orange-deep); color: var(--orange-deep); }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-dark[disabled]:hover { background: var(--ink); color: var(--bg); }

.text-btn { background: none; border: 0; padding: 8px; cursor: pointer; font-weight: 800; font-size: 18px; color: var(--ink); display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; text-decoration: none; }
.text-btn:hover { color: var(--orange-deep); }
.text-btn .accent { color: var(--orange); }

.gh-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--bg); white-space: nowrap;
}
.gh-pill:hover { background: var(--orange); color: var(--ink); }
.gh-pill .mono { font-size: 12px; }
.gh-pill.small { padding: 4px 11px; font-size: 13px; gap: 6px; }
.gh-pill.small .mono { font-size: 11px; }

.tag {
  display: inline-block; align-self: flex-start; max-width: 100%;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.05em;
  padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
}
.tag .x { color: var(--orange); }

.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.pill-download { background: var(--orange); color: var(--ink); padding: 4px 12px 4px 4px; }
.pill-download .pill-icon { background: var(--ink); color: var(--orange); }
.pill-source { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); padding: 2px 12px 2px 2px; }
.pill-source .pill-icon { background: var(--ink); color: var(--bg); font-family: var(--mono); }
.pill-video { background: var(--ink); color: var(--bg); padding: 4px 12px 4px 4px; }
.pill-video .pill-icon { background: var(--bg); color: var(--ink); font-size: 9px; }

.tool-chip { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; padding: 16px clamp(12px, 3vw, 32px) 0; pointer-events: none; }
.nav-pill {
  pointer-events: auto; max-width: 1180px; margin: 0 auto; background: var(--ink-soft); color: var(--bg);
  border-radius: 999px; padding: 8px 8px 8px 24px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.18);
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: var(--bg); text-decoration: none; }
.brand:hover { color: var(--bg); }
.brand-mark { width: auto; height: 44px; }
.brand-word { font-weight: 900; font-size: 19px; letter-spacing: -0.02em; font-stretch: 115%; }
.brand-word span, .orange { color: var(--orange); }
.nav-links { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; justify-content: safe center; gap: 4px; overflow-x: auto; scrollbar-width: none; } /* safe: when the links overflow they start at the left, so none is cut off unreachably */
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: 8px 12px; font-weight: 500; font-size: 15px; color: var(--bg); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a.nav-cta { color: var(--orange); font-weight: 700; }
.nav-links a.nav-cta:hover { color: var(--bg); }
.holder-btn {
  flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 10px; background: transparent; color: var(--bg);
  border: 1.5px solid rgba(250, 250, 247, 0.45); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.holder-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.holder-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.holder-btn.is-connected .dot { box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.35); }
[tabindex="-1"]:focus { outline: none; }

/* ------------------------------------------------------------------ home: hero + handheld */
.hero {
  margin-top: -80px; min-height: 100vh; display: flex; align-items: center;
  padding: clamp(140px, 14vw, 200px) clamp(20px, 6vw, 96px) clamp(96px, 10vw, 160px);
  background: radial-gradient(60% 50% at 18% 30%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(50% 60% at 82% 70%, #F3EFEA 0%, rgba(243, 239, 234, 0) 70%), #F7F6F2;
  overflow: hidden;
}
.hero-grid { width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(48px, 7vw, 140px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.hero-title { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(48px, 6vw, 102px); line-height: 0.88; letter-spacing: -0.05em; color: var(--ink-soft); }
.hero-sub { margin: 0; font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; color: var(--ink-soft); }
.hero-sub span { color: var(--orange-deep); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(6px, 1vw, 14px); }
.hero-art { min-width: 0; display: flex; justify-content: center; }

.device-wrap { position: relative; width: 100%; max-width: 660px; aspect-ratio: 2.34 / 1; perspective: 1700px; }
.device-shadow { position: absolute; left: 10%; right: 2%; bottom: -16%; height: 18%; border-radius: 50%; background: rgba(30, 29, 28, 0.24); filter: blur(22px); }
.device { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-9deg) rotateY(-26deg) rotateZ(4deg); }
.dv-part { position: absolute; top: 0; bottom: 0; transform-style: preserve-3d; }
.dv-left { left: 0; width: 15%; }
.dv-mid { left: 14.8%; width: 70.4%; }
.dv-right { left: 85%; width: 15%; }
.dv-layer, .dv-face { position: absolute; inset: 0; }
.dv-left .dv-layer, .dv-left .dv-face { border-radius: 45% 4% 4% 45% / 16% 2% 2% 16%; }
.dv-right .dv-layer, .dv-right .dv-face { border-radius: 4% 45% 45% 4% / 2% 16% 16% 2%; }
.dv-mid .dv-layer, .dv-mid .dv-face { border-radius: 8px; }
.dv-face { transform-style: preserve-3d; }
.dv-left .dv-face { background: linear-gradient(140deg, #FF9648 0%, #FF7A21 38%, #EE6D13 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset -2px 0 0 rgba(17, 17, 17, 0.35); }
.dv-right .dv-face { background: linear-gradient(140deg, #FFFFFF 0%, #EFECE5 38%, #DEDAD0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 2px 0 0 rgba(17, 17, 17, 0.3); }
.dv-mid .dv-face { background: linear-gradient(160deg, #343432 0%, #232322 40%, #1A1A19 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.dv-bar { position: absolute; background: var(--ink-soft); border-radius: 2px; transform: translateZ(1px); }
.dv-btn { position: absolute; width: 14%; aspect-ratio: 1; transform-style: preserve-3d; }
.dv-btn > i, .dv-btn > b { position: absolute; inset: 0; border-radius: 50%; }
.dv-btn > b { transform: translateZ(4px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); display: grid; place-items: center; }
.dv-btn > b > span { width: 46%; height: 46%; border-radius: 50%; border: 2px solid var(--ink-soft); }
.dv-stick { position: absolute; left: 21%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #121211; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6); transform-style: preserve-3d; }
.dv-stick > i { position: absolute; inset: 14%; border-radius: 50%; }
.dv-stick > b { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #4A4A47 0%, #262625 45%, #151514 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.05), inset 0 -3px 4px rgba(0, 0, 0, 0.5); transform: translateZ(9px); }
.dv-screen {
  /* 12% top and bottom makes the screen 16:9 (2.34 × 70.4% × 82% ÷ 76%), the reel's shape, so it fills it uncropped */
  position: absolute; top: 12%; bottom: 12%; left: 9%; right: 9%;
  background-color: #141413; background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 36px);
  border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 2px #0C0C0B; cursor: pointer;
}
.dv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0) 39%); }

/* ------------------------------------------------------------------ home: featured cube */
.section-pad { max-width: 1320px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.featured-col { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 1000px; margin: 0 auto; }
.featured-pad { width: 100%; padding: 0 clamp(20px, 4vw, 48px); }
.monitor { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.spin-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: clamp(44px, 5vw, 60px); height: clamp(44px, 5vw, 60px); border-radius: 50%; border: 2px solid var(--ink); background: var(--bg);
  font-size: 22px; font-weight: 900; cursor: pointer; color: var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.spin-btn:hover { background: var(--orange); }
.spin-btn:active { transform: translateY(calc(-50% + 3px)); box-shadow: 0 1px 0 var(--ink); }
.spin-prev { left: clamp(-30px, -2.5vw, -8px); }
.spin-next { right: clamp(-30px, -2.5vw, -8px); }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10.6; border-radius: 14px; perspective: 2200px; container-type: inline-size; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage:active { cursor: grabbing; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(-50cqw) rotateY(0deg); transition: transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity 0.25s;
  background: linear-gradient(160deg, #2C2B29, #1E1D1C 45%); border-radius: 14px; box-shadow: inset 0 0 0 2px #34332F;
  padding: clamp(8px, 1.4vw, 16px) clamp(8px, 1.4vw, 16px) clamp(20px, 2.8vw, 32px);
}
.face-screen { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background-color: var(--stripe); background-image: var(--stripes); display: grid; place-items: center; }
.face-screen.has-thumb { background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.5)), var(--thumb); background-size: 100% 100%, 112% auto; background-position: center; background-repeat: no-repeat; }
.face-n { position: absolute; top: 3cqw; left: 3.4cqw; font-weight: 900; font-size: clamp(18px, 7cqw, 48px); letter-spacing: -0.03em; line-height: 1; }
.face-tag {
  position: absolute; top: 3.4cqw; right: 3.4cqw; max-width: 60%; background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 600;
  font-size: clamp(9px, 1.8cqw, 12px); letter-spacing: 0.05em; padding: 0.6cqw 1.2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
}
.face-tag .x { color: var(--orange); }
.face-play { width: clamp(36px, 11cqw, 72px); height: clamp(36px, 11cqw, 72px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.face-play::after { content: ''; width: 0; height: 0; border-left: clamp(11px, 3cqw, 20px) solid var(--orange); border-top: clamp(7px, 2cqw, 13px) solid transparent; border-bottom: clamp(7px, 2cqw, 13px) solid transparent; margin-left: 4px; }
.face-dur { position: absolute; left: 3.4cqw; bottom: 2.6cqw; font-family: var(--mono); font-size: clamp(9px, 1.8cqw, 12px); color: var(--muted); white-space: nowrap; }
.face-screen.has-thumb .face-n, .face-screen.has-thumb .face-dur { color: var(--bg); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.face-brand { position: absolute; bottom: clamp(6px, 0.9vw, 10px); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: #6B6A64; }
.face-led { position: absolute; bottom: clamp(8px, 1.1vw, 13px); right: clamp(14px, 2vw, 22px); width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.monitor-neck { width: 12%; height: clamp(28px, 5vw, 60px); background: linear-gradient(90deg, #2A2928, #3A3936 50%, #2A2928); }
.monitor-base { width: 38%; height: clamp(8px, 1.2vw, 14px); background: #2A2928; border-radius: 6px 6px 3px 3px; box-shadow: 0 14px 24px rgba(17, 17, 17, 0.2); }
.featured-foot { margin-top: 40px; padding-top: 24px; border-top: 2px dashed var(--dash); display: flex; justify-content: center; }

/* ------------------------------------------------------------------ home: discover, process */
.discover {
  background: var(--ink); color: var(--bg);
  /* The card's sky, drawn in CSS in the brand orange. To use a photo instead: --dc-backdrop: url('../img/discover-backdrop.jpg') center / cover; */
  --dc-backdrop:
    radial-gradient(32% 13% at 14% 9%, rgba(255, 255, 255, 0.92), transparent 70%),
    radial-gradient(26% 9% at 34% 4%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(30% 11% at 70% 7%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(20% 7% at 90% 13%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(24% 6% at 52% 15%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(32% 10% at 16% 93%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(30% 9% at 72% 95%, rgba(255, 255, 255, 0.5), transparent 70%),
    linear-gradient(180deg, var(--orange-deep) 0%, var(--orange) 22%, #FFB675 46%, #FFEAD1 50%, #FFB675 54%, #F2721D 80%, #B1480B 100%);
}
.discover-inner { max-width: 1320px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: clamp(48px, 7vw, 88px); }
.discover-title { margin: 0; text-align: center; font-weight: 800; font-size: clamp(44px, 7.4vw, 104px); line-height: 0.96; letter-spacing: -0.03em; word-spacing: 0.05em; }
.discover-card { width: 100%; max-width: 1040px; border-radius: clamp(18px, 2.4vw, 28px); padding: clamp(56px, 9vw, 96px) clamp(12px, 3.4vw, 36px); background: var(--dc-backdrop); background-color: var(--orange); }
.discover-panel { background: #141414; border-radius: clamp(12px, 1.6vw, 16px); padding: clamp(18px, 2.6vw, 28px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.discover-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2vw, 24px); }
.discover-head h3 { margin: 0; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.discover-pause { background: none; border: 1.5px solid #3A3936; border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3); cursor: pointer; }
.discover-pause:hover { border-color: var(--bg); color: var(--bg); }
.discover-pause:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.dc-tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #222; color: #fff; text-decoration: none; }
.dc-tile.is-skeleton { background: #1f1f1e; }
.dc-tile:hover { color: #fff; }
.dc-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange); }
.dc-face { position: absolute; inset: 0; transition: opacity 0.7s ease; }
.dc-face.is-entering { opacity: 0; }
.dc-face.is-leaving .dc-cap { opacity: 0; transition: opacity 0.2s ease; } /* so the old and new titles don't overlap mid-fade */
.dc-shot { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dc-tile:hover .dc-shot { transform: scale(1.04); }
.dc-cap { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 28px 10px 9px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)); }
.dc-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: clamp(13px, 1.3vw, 15px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.dc-games { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.dc-cover { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dc-cover.is-blank { display: grid; place-items: center; background: #3A3936; font-weight: 800; font-size: 13px; }
.dc-plus { font-weight: 700; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.discover-empty { grid-column: 1 / -1; margin: 0; padding: 24px 0; color: var(--muted-3); }
.discover-empty a { color: var(--bg); }
@media (max-width: 900px) {
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-grid > .dc-tile:first-child:nth-last-child(3) { grid-column: span 2; } /* three tiles: a wide one, then two */
}
@media (max-width: 520px) {
  .discover-grid { grid-template-columns: minmax(0, 1fr); }
  .discover-grid > .dc-tile:first-child:nth-last-child(3) { grid-column: auto; }
}

.process { border-bottom: 2px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.step { display: flex; flex-direction: column; gap: 18px; }
.step-art { background: var(--panel); padding: 24px; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.step-art .eyebrow { font-size: 11px; letter-spacing: 0; }
.fake-input { background: #fff; border: 2px solid var(--ink); padding: 9px 10px; font-family: var(--mono); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.fake-input .clip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fake-input .paste { background: var(--ink); color: #fff; padding: 0 6px; }
.fake-input.faint { color: var(--muted-2); }
.fake-submit { align-self: flex-end; background: var(--orange); padding: 8px 14px; font-weight: 800; font-size: 13px; }
.fake-check { background: #fff; border: 2px solid var(--ink); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.fake-check .tick { width: 20px; height: 20px; background: var(--ink); color: var(--orange); display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.fake-check .tick.open { background: transparent; border: 2px solid var(--ink); color: var(--ink); font-size: 11px; }
.fake-rating { display: flex; align-items: center; gap: 10px; }
.fake-rating b { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; }
.fake-rating span { color: var(--orange); font-size: 20px; letter-spacing: 2px; }
.bubble { background: #fff; border: 2px solid var(--ink); padding: 10px 12px; font-size: 13px; line-height: 1.4; border-radius: 14px 14px 14px 2px; max-width: 88%; }
.bubble.dark { background: var(--ink); color: var(--bg); border: 0; border-radius: 14px 14px 2px 14px; max-width: 80%; align-self: flex-end; }
.step-title { display: flex; gap: 14px; align-items: baseline; }
.step-n { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--orange-deep); }
.step-title h3 { margin: 0; font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.process-cta { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: clamp(22px, 3vw, 32px); background: var(--ink); color: var(--bg); }
.process-cta p { margin: 0; flex: 1 1 320px; font-size: 17px; line-height: 1.5; color: var(--muted-3); }
.process-cta p strong { color: var(--bg); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--bg); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px) 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: end; }
.footer-top h2 { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(36px, 5vw, 60px); line-height: 0.92; letter-spacing: -0.04em; }
.footer-top p { margin: 0; font-size: 16px; color: var(--muted-3); }
.subscribe { display: flex; flex-wrap: wrap; border: 2px solid var(--bg); }
.subscribe input { flex: 1 1 200px; min-width: 0; background: transparent; border: 0; color: var(--bg); padding: 16px; font-size: 16px; outline: none; }
.subscribe button { flex: 0 0 auto; background: var(--orange); color: var(--ink); border: 0; padding: 16px 24px; font-weight: 800; font-size: 16px; cursor: pointer; }
.subscribe button:hover { background: var(--bg); }
.subscribe:focus-within { box-shadow: var(--focus-ring); }
.subscribed { border: 2px solid var(--orange); padding: 16px; font-weight: 700; font-size: 17px; }
.subscribe-error { margin: 8px 0 0; color: #FF8A6B; font-size: 14px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid #3A3A37; padding-top: 24px; }
.footer-brand { font-weight: 900; font-size: 18px; font-stretch: 115%; }
.footer-brand small { font-weight: 400; font-size: 13px; color: var(--muted-3); font-stretch: 100%; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--bg); text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

/* ------------------------------------------------------------------ pages: shared */
.page { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.state-box { border: 2px dashed var(--dash); padding: clamp(28px, 5vw, 56px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.state-box h2 { margin: 0; font-weight: 900; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.state-box p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 48ch; }

/* ------------------------------------------------------------------ catalog */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.search { flex: 1 1 280px; display: flex; border: 2px solid var(--ink); background: #fff; min-width: 0; }
.search:focus-within { box-shadow: var(--focus-ring); }
.search label { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 0 12px; display: grid; place-items: center; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font-size: 16px; outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; background: transparent; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--orange); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.select {
  border: 2px solid var(--ink); background: #fff; padding: 10px 38px 10px 12px; font-weight: 700; font-size: 14px; border-radius: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.result-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 20px; }
/* Each card spans 5 rows of the grid via subgrid, so media, title, pitch, people and foot line up across a row
   even when one title wraps. Row gap is the in-card spacing; the card's bottom margin makes up the space between rows. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px clamp(20px, 2.4vw, 32px); }
.card { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; margin-bottom: clamp(14px, calc(3vw - 14px), 26px); min-width: 0; }
.card-media { position: relative; aspect-ratio: 16 / 10; background-color: var(--stripe); background-image: var(--stripes); display: grid; place-items: center; overflow: hidden; }
.card-media.has-thumb { background-image: linear-gradient(rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.4)), var(--thumb); background-size: 100% 100%, 112% auto; background-position: center; background-repeat: no-repeat; }
.card-media .tag { position: absolute; top: 12px; right: 12px; max-width: calc(100% - 70px); font-size: 11px; padding: 4px 8px; }
.card-n { position: absolute; top: 10px; left: 12px; font-weight: 900; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.card-dur { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card-media.has-thumb .card-n, .card-media.has-thumb .card-dur { color: var(--bg); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.card-play { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform 0.2s, background 0.2s; }
.card-play::after { content: ''; border-left: 17px solid var(--orange); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.card:hover .card-play { transform: scale(1.08); background: var(--orange); }
.card:hover .card-play::after { border-left-color: var(--ink); }
.card-title { margin: 0; font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title { color: var(--orange-deep); }
.card-pitch { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-people { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.creator-link { font-weight: 800; font-size: 15px; text-decoration: none; }
.creator-link:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; }
.stars-inline { font-weight: 800; white-space: nowrap; }
.stars-inline .star { color: var(--orange); }
.stars-inline small { font-weight: 400; color: var(--muted); }
.card.is-skeleton .card-media { background-color: var(--panel); }
.skeleton-line { height: 14px; background: var(--panel); }

/* ------------------------------------------------------------------ entry detail */
.detail { max-width: 1320px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.back-link { align-self: flex-start; padding: 6px 0; font-weight: 700; font-size: 15px; text-decoration: none; }
.player {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; cursor: pointer;
  background-color: #161615; background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.035) 22px 44px); color: var(--bg);
}
.player.has-thumb { background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--thumb); background-size: 100% 100%, 100% auto; background-position: center; background-repeat: no-repeat; }
.player.has-thumb .player-label { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.player-label { position: absolute; top: 16px; left: 16px; right: 16px; text-align: left; font-size: 12px; opacity: 0.75; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-btn { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 50%; background: var(--orange); display: grid; place-items: center; transition: transform 0.2s; }
.play-btn::after { content: ''; width: 0; height: 0; border-left: 26px solid var(--ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.player:hover .play-btn { transform: scale(1.06); }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; display: flex; align-items: center; gap: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); font-size: 12px; white-space: nowrap; }
.player-track { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.2); }
.player.is-empty { cursor: default; }
.player-empty { font-family: var(--mono); font-size: 13px; opacity: 0.7; padding: 0 20px; text-align: center; }
.player.is-playing { cursor: auto; background: #000; }
.player.is-playing iframe, .player.is-playing video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-source { margin-top: -16px; font-size: 14px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; grid-column: span 2; }
.detail-title { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(40px, 6vw, 80px); line-height: 0.9; letter-spacing: -0.04em; text-wrap: balance; overflow-wrap: anywhere; }
.detail-pitch { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.how { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 6px; }
.how h2 { margin: 0; font-weight: 900; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.how p { margin: 0; font-size: 17px; line-height: 1.65; max-width: 64ch; text-wrap: pretty; overflow-wrap: anywhere; }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.facts dt { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.facts dd.list { font-weight: 400; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.facts dd.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; }
.facts dd.pad { padding: 11px 0; }
.detail-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cta-block {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; cursor: pointer;
  background: var(--orange); color: var(--ink); text-decoration: none; padding: 24px; font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1;
}
.cta-block:hover { background: var(--ink); color: var(--bg); }
.cta-block[disabled] { opacity: 0.6; cursor: progress; }
.note-block { background: var(--panel-2); color: var(--muted); padding: 24px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.box { border: 2px solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.box-rule { height: 2px; background: var(--rule); }
.rating-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rating-big { font-weight: 900; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.rating-count { font-size: 14px; color: var(--muted); }
.stars { display: flex; gap: 4px; }
.star-btn { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 20px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.star-btn.is-on { background: var(--orange); }
.stars:hover .star-btn { background: var(--orange); }
.stars .star-btn:hover ~ .star-btn { background: var(--bg); }
.creator-box { display: flex; gap: 14px; align-items: center; }
.creator-box img, .creator-box .avatar-fallback { width: 56px; height: 56px; flex: 0 0 auto; background-color: var(--stripe); background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(17, 17, 17, 0.06) 8px 16px); }
.creator-box .who { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start; }
.creator-box .handle { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.small-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.comments { border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.comments h2 { margin: 0; font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.comments h2 .count { color: var(--muted-2); }
.comment-form { display: flex; gap: 10px; flex-wrap: wrap; }
.comment-form input { flex: 1 1 240px; min-width: 0; border: 2px solid var(--ink); background: #fff; padding: 14px; font-size: 16px; outline: none; border-radius: 0; }
.comment-form input:focus { box-shadow: var(--focus-ring); }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.avatar-initial { width: 40px; height: 40px; background: var(--ink); color: var(--orange); display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.comment-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.comment-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment-name { font-weight: 800; font-size: 15px; }
.comment-when { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.comment p { margin: 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; white-space: pre-line; }
.inline-error { margin: 0; color: var(--error); font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------------ submit */
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.form-section { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; border-top: 2px solid var(--ink); margin: 0; border-left: 0; border-right: 0; border-bottom: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; min-width: 0; }
.form-section legend { padding: 0; float: left; width: 100%; display: flex; gap: 14px; align-items: baseline; }
.form-section legend + * { clear: both; }
.form-section legend h2 { margin: 0; font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field-label .opt, .counter { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.05em; color: var(--muted-2); text-transform: uppercase; white-space: nowrap; }
.counter.over { color: var(--error); font-weight: 600; }
.input, .textarea { width: 100%; border: 2px solid var(--ink); background: #fff; padding: 13px 14px; font-size: 16px; outline: none; border-radius: 0; color: var(--ink); }
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 200px; }
.input:focus, .textarea:focus { box-shadow: var(--focus-ring); }
.affix { display: flex; border: 2px solid var(--ink); background: #fff; min-width: 0; }
.affix:focus-within { box-shadow: var(--focus-ring); }
.affix .input { border: 0; box-shadow: none; min-width: 0; }
.affix-label { background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 13px; padding: 0 12px; display: grid; place-items: center; white-space: nowrap; }
.affix-btn { border: 0; border-left: 2px solid var(--ink); background: var(--orange); color: var(--ink); font-weight: 800; font-size: 14px; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.affix-btn:hover { background: var(--ink); color: var(--bg); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .affix { border-color: var(--error); }
.field.has-error .affix .input { border: 0; }
.field-help { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.field-error { margin: 0; font-size: 14px; font-weight: 700; color: var(--error); }
.field-error:empty { display: none; }
.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); background: #fff; padding: 16px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { background: var(--panel); }
.choice:has(input:checked) { background: var(--panel); box-shadow: inset 0 0 0 2px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.choice .pill { align-self: flex-start; }
.choice-help { font-size: 14px; line-height: 1.4; color: var(--muted); }
.choice-tick { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.choice:has(input:checked) .choice-tick { background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.chip-check:hover span { background: var(--orange); }
.chip-check input:checked + span { background: var(--ink); color: var(--bg); }
.chip-check input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--ink); background: #fff; flex: 0 0 auto; margin: 0; display: grid; place-items: center; cursor: pointer; border-radius: 0; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: '\2713'; color: var(--orange); font-size: 13px; font-weight: 900; line-height: 1; }
.video-preview { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--panel); font-size: 14px; line-height: 1.4; }
.video-preview img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; flex: 0 0 auto; background: var(--stripe); }
.video-preview .ok { font-weight: 800; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; background: var(--orange); color: var(--ink); padding: 3px 8px; align-self: flex-start; }
.form-alert { border: 2px solid var(--error); padding: 14px 16px; color: var(--error); font-weight: 700; font-size: 15px; line-height: 1.45; background: #fff; }
.form-alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 600; }
.form-alert a { color: var(--error); }
.submit-row { display: flex; flex-direction: column; gap: 12px; }
.submit-row .cta-block { max-width: 520px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.next-steps { background: var(--ink); color: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.next-steps .eyebrow { color: var(--orange); }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.next-steps .n { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--orange); padding-top: 2px; }
.next-steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.next-steps p { margin: 0; color: var(--muted-3); font-size: 14px; line-height: 1.5; }
.next-steps a { color: var(--orange); }
.next-steps a:hover { color: var(--bg); }
.my-subs { border: 2px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.my-sub { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.my-sub:last-child { padding-bottom: 0; border-bottom: 0; }
.my-sub-title { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.my-sub-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.my-sub-note { margin: 0; font-size: 14px; line-height: 1.45; background: var(--panel); padding: 10px 12px; white-space: pre-line; }
.review-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 3px 8px; text-transform: uppercase; white-space: nowrap; }
.review-status.pending { border: 1.5px dashed var(--ink); }
.review-status.approved { background: var(--orange); color: var(--ink); }
.review-status.rejected { background: var(--ink); color: var(--bg); }

.success { border: 2px solid var(--ink); background: #fff; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.success-badge { align-self: flex-start; background: var(--orange); font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; padding: 6px 10px; }
.success h2 { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(32px, 4.4vw, 56px); line-height: 0.95; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.success p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.success .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ modal, banner, toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, 0.6); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-close { width: 36px; height: 36px; border: 2px solid var(--ink); background: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.modal-close:hover { background: var(--orange); }
.modal h3 { margin: 0; font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--ink); padding: 16px; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink); text-decoration: none; }
.option:hover { background: var(--orange); color: var(--ink); }
.option .hint { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.option:hover .hint { color: var(--ink); }
.waiting { border: 2px dashed var(--ink); padding: 22px; font-family: var(--mono); font-size: 14px; text-align: center; line-height: 1.5; }
.modal-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.address-box { font-family: var(--mono); font-size: 13px; word-break: break-all; background: #fff; border: 2px solid var(--ink); padding: 12px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.banner { position: fixed; left: 12px; bottom: 12px; z-index: 40; max-width: min(560px, calc(100vw - 24px)); background: var(--ink); color: var(--bg); padding: 14px 16px; font-size: 14px; line-height: 1.45; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 12px 32px rgba(17, 17, 17, 0.25); }
.banner code { font-family: var(--mono); color: var(--orange); }
.banner button { margin-left: auto; background: none; border: 0; color: var(--bg); cursor: pointer; font-size: 16px; padding: 0 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 32px rgba(17, 17, 17, 0.3); max-width: calc(100vw - 32px); }

/* ------------------------------------------------------------------ team review */
.rv-tabs { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rv-tabs::-webkit-scrollbar { display: none; }
.rv-tab { background: none; border: 0; padding: 8px 12px; font-weight: 500; font-size: 15px; cursor: pointer; color: var(--bg); white-space: nowrap; }
.rv-tab:hover, .rv-tab[aria-pressed="true"] { color: var(--orange); }
.rv-tab .n { font-family: var(--mono); font-size: 12px; margin-left: 5px; opacity: 0.75; }
.rv-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-3); white-space: nowrap; }
.gate { max-width: 440px; margin: clamp(40px, 10vh, 120px) auto; background: #fff; border: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.gate h1 { margin: 0; font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.rv-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.rv-toolbar h1 { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(36px, 5vw, 60px); line-height: 0.9; letter-spacing: -0.04em; }
.rv-list { display: flex; flex-direction: column; gap: 28px; }
.rv-card { border: 2px solid var(--ink); background: #fff; padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.rv-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.rv-title { margin: 0; font-weight: 900; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 0.95; overflow-wrap: anywhere; }
.rv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rv-body .facts { margin: 0; }
.rv-media { display: flex; flex-direction: column; gap: 10px; }
.rv-media .player-label { font-size: 11px; }
.rv-wallet { font-family: var(--mono); font-size: 13px; font-weight: 500; word-break: break-all; }
.rv-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.rv-how { border-top: 1px solid var(--rule); padding-top: 14px; }
.rv-how summary { cursor: pointer; font-weight: 800; }
.rv-how p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; white-space: pre-line; max-width: 72ch; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; padding-top: 18px; border-top: 2px solid var(--ink); }
.rv-checks { display: flex; flex-direction: column; gap: 10px; flex: 1 1 260px; }
.rv-note { flex: 2 1 300px; display: flex; flex-direction: column; gap: 8px; }
.rv-note textarea { min-height: 76px; }
.rv-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-reviewed { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .strong { font-weight: 800; }
.table .wallet { font-family: var(--mono); font-size: 12px; word-break: break-all; min-width: 180px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 2px 6px; border: 1.5px solid var(--ink); text-transform: uppercase; white-space: nowrap; }
.badge.hot { background: var(--orange); border-color: var(--orange); }
.badge.dark { background: var(--ink); color: var(--bg); }
.mini-btn { border: 2px solid var(--ink); background: var(--bg); padding: 6px 10px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); text-decoration: none; display: inline-block; }
.mini-btn:hover { background: var(--orange); color: var(--ink); }
.mini-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-sub { margin: 36px 0 12px; font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.totals { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.total { border: 2px solid var(--ink); background: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.total b { font-weight: 900; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }

/* ------------------------------------------------------------------ payouts */
.po-notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 2px solid var(--ink); background: var(--panel); padding: 14px 18px; font-weight: 700; font-size: 15px; line-height: 1.45; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(40px, 6vw, 64px); }
.stat { border: 2px solid var(--ink); background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat.hot { background: var(--orange); border-color: var(--orange); }
.stat.hot .eyebrow, .stat.hot .stat-sub { color: var(--ink); }
.stat-value { font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.42em; font-weight: 800; letter-spacing: 0; margin-left: 6px; }
.stat-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.po-section { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(44px, 6vw, 72px); }
.po-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.po-head h2 { margin: 0; font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.split-bar { display: flex; height: 40px; border: 2px solid var(--ink); background: var(--bg); }
.split-bar span { min-width: 4px; border-right: 2px solid var(--bg); }
.split-bar span:last-child { border-right: 0; }
.seg-0 { background: var(--orange); }
.seg-1 { background: var(--ink); }
.seg-2 { background: #FFB47D; }
.seg-3 { background: var(--muted); }
.seg-4 { background: #FFDDC2; }
.seg-5 { background: var(--muted-3); }
.seg-other { background-color: var(--stripe); background-image: var(--stripes); }
.split-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.split-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.split-legend .swatch { width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid var(--ink); }
.split-legend .who { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-legend .pct { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.rank-chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); font-family: var(--mono); font-weight: 600; font-size: 13px; }
.rank-chip.top { background: var(--orange); border-color: var(--orange); }
.lb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-avatar { width: 36px; height: 36px; flex: 0 0 auto; background-color: var(--stripe); background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(17, 17, 17, 0.06) 6px 12px); }
.lb-name { font-weight: 800; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.lb-name:hover { text-decoration: underline; }
.lb .earned { font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.po-history { border: 2px solid var(--ink); background: #fff; }
.po-week { border-bottom: 1px solid var(--rule); }
.po-week:last-child { border-bottom: 0; }
.po-week summary { cursor: pointer; list-style: none; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.po-week summary::-webkit-details-marker { display: none; }
.po-week summary::before { content: '+'; font-family: var(--mono); font-weight: 600; width: 12px; }
.po-week[open] summary::before { content: '–'; }
.po-week summary:hover .wk { color: var(--orange-deep); }
.po-week .wk { font-weight: 800; }
.po-week .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.po-week .badge { margin-left: auto; }
.po-week .table-wrap { border: 0; border-top: 1px solid var(--rule); }
.po-week-note { padding: 0 16px 14px 44px; }
.po-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.po-addr { font-family: var(--mono); font-size: 14px; font-weight: 500; word-break: break-all; }
.made-box { background: var(--ink); color: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.made-box h2 { margin: 0; font-weight: 900; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1; }
.made-box p { margin: 0; color: var(--muted-3); font-size: 16px; line-height: 1.5; max-width: 46ch; }
.made-box .row-actions { gap: 10px; margin-top: auto; }
.made-box .btn:not(.btn-orange) { border-color: var(--bg); color: var(--bg); }
.made-box .btn:not(.btn-orange):hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
#earnings b { color: var(--ink); }
/* the $MASHD Fees headline: creator fees waiting on pump.fun, and the dev wallet they're read from */
.fee-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); margin-bottom: 20px; }
.fee-figure { background: var(--orange); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fee-figure .eyebrow, .fee-figure .stat-sub { color: var(--ink); }
.fee-figure .stat-value { font-size: clamp(40px, 5.6vw, 72px); }
.fee-wallet { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-left: 2px solid var(--ink); }
.fee-wallet p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) {
  .fee-hero { grid-template-columns: 1fr; }
  .fee-wallet { border-left: 0; border-top: 2px solid var(--ink); }
}
@media (max-width: 600px) {
  .fee-figure, .fee-wallet { padding: 16px; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-aside { position: static; }
  .rv-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .detail-main { grid-column: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lb .hide-sm { display: none; }
  .stat { padding: 14px; }
  .po-week .badge { margin-left: 0; }
}
@media (max-width: 760px) {
  .site-header { padding: 10px 10px 0; }
  .nav-pill { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 4px 18px; row-gap: 2px; }
  .brand { margin-right: auto; }
  .nav-links, .rv-tabs { order: 3; flex: 1 1 100%; justify-content: flex-start; margin: 0 -8px 0 -18px; padding: 0 8px; }
  .holder-btn { padding: 10px 16px; }
  .facts { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); }
  .spin-btn { top: 38%; }
}
@media (max-width: 420px) {
  /* A smaller logo keeps the brand and Connect wallet on one row down to 360px phones. */
  .brand { gap: 8px; }
  .brand-mark { height: 36px; }
  .brand-word { font-size: 16px; }
  .holder-btn { padding: 10px 14px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stars { gap: 3px; }
  .star-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- mashup requests */

.page-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.page-head-side .text-btn { padding-left: 0; font-size: 16px; }

.req-matches { border: 2px solid var(--orange); background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.req-matches .eyebrow { color: var(--orange-deep); font-weight: 600; }
.req-matches ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req-match { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.req-match b { font-size: 17px; overflow-wrap: anywhere; }
.req-match-go { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.req-match:hover { background: var(--ink); color: var(--bg); }
.req-match:hover .small-note { color: var(--muted-3); }
.success .req-matches { max-width: 640px; }

.wallet-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wallet-row .input { flex: 1 1 260px; min-width: 0; }

.review-status.req-received { border: 1.5px dashed var(--ink); }
.review-status.req-building, .review-status.req-testing { border: 1.5px solid var(--ink); background: var(--panel); }
.review-status.req-live { background: var(--orange); color: var(--ink); }
.review-status.req-declined { background: var(--ink); color: var(--bg); }

.rq-page { display: flex; flex-direction: column; gap: 20px; }
.rq-title { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rq-title .display { overflow-wrap: anywhere; }
.rq-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); }
.rq-steps li { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; font-weight: 800; color: var(--muted); min-width: 0; }
.rq-steps li + li { border-left: 2px solid var(--ink); }
.rq-steps .n { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.rq-steps li.done { color: var(--ink); background: var(--panel); }
.rq-steps li.now { color: var(--ink); background: var(--orange); }
.rq-live { display: flex; flex-direction: column; gap: 6px; background: var(--ink); color: var(--bg); padding: 22px 24px; text-decoration: none; }
.rq-live .eyebrow { color: var(--orange); }
.rq-live b { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; overflow-wrap: anywhere; }
.rq-live:hover { background: var(--orange); color: var(--ink); }
.rq-live:hover .eyebrow { color: var(--ink); }
.rq-reward { border: 2px solid var(--ink); background: #fff; padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rq-reward p { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.rq-reward.is-hot { border-color: var(--orange); }
.rq-reward.is-done { background: var(--panel); }
.rq-reward .text-btn { padding-left: 0; font-size: 15px; }
.rq-wallet { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.rq-section h2 { margin: 0 0 12px; font-weight: 900; font-size: 26px; letter-spacing: -0.02em; }
.rq-timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rq-timeline li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rq-timeline .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rq-timeline p { flex: 1 1 100%; margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.rq-asked h3 { margin: 6px 0 0; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rq-asked ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.rq-asked p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

/* Review → Requests */
.rq-todo { border: 2px solid var(--orange); background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rq-todo .eyebrow { color: var(--orange-deep); font-weight: 600; }
.rq-todo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rq-todo li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.rq-todo li:last-child { border-bottom: 0; }
.rq-filter { margin-bottom: 24px; }
.rq-groups { display: flex; flex-direction: column; gap: 40px; }
.rq-group { display: flex; flex-direction: column; gap: 16px; }
.rq-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rq-group-head h2 { margin: 0; font-weight: 900; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rq-group-head a.badge { color: var(--ink); text-decoration: none; }
.rq-group-head a.badge:hover { background: var(--orange); border-color: var(--orange); }
.rq-card .facts { margin: 0; }
.rq-move { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; }
.rq-pick { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 600px) {
  .rq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-steps li + li { border-left: 0; }
  .rq-steps li:nth-child(even) { border-left: 2px solid var(--ink); }
  .rq-steps li:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .req-match-go { margin-left: 0; }
}

/* ---------------------------------------------------------------- request step 1: the game shelf */
/* A dark store shelf inside the light site. Nothing here or above it may set overflow: the pick bar is sticky. */
.shelf { background: #151514; color: var(--bg); border-radius: 20px; padding: clamp(12px, 2vw, 24px); display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.shelf-search {
  flex: 1 1 280px; min-width: 0; max-width: 520px; border: 2px solid #3A3936; border-radius: 999px; background-color: #232220; color: var(--bg);
  padding: 12px 18px 12px 46px; font-size: 16px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B5B4AD' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 18px center;
}
.shelf-search::placeholder { color: var(--muted-2); }
.shelf-search:focus { border-color: var(--orange); box-shadow: var(--focus-ring); }
.shelf-count { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3); }

.game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 16px); }
.game-card {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  text-align: left; cursor: pointer; color: #F4F3EE;
  /* The footer takes its colour from the cover, darkened enough that white text reads on any tint. */
  background: linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.72)), var(--tint, #3A3936);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5); }
.game-card:focus-visible { outline-offset: 3px; }
.game-card::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--orange); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.game-card[aria-pressed="true"]::after { opacity: 1; }
.game-card[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.game-card[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.game-card.is-typed { background: #1A1918; border: 2px dashed #55534F; }
.game-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background-color: #1E1D1C; }
.game-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12%; text-align: center; overflow-wrap: anywhere;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 28px), linear-gradient(160deg, #2C2B29, #1A1918);
  color: var(--bg); font-weight: 900; font-stretch: 112%; font-size: clamp(14px, 1.4vw, 20px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
}
.game-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1E1D1C; }
/* A cover that doesn't load is swapped for a span by the error listener in app.js; hiding it shows the title card. */
.game-img.avatar-fallback { display: none; }
.game-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 12px 0; min-height: 2.6em; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.game-pill { align-self: flex-start; margin: 10px 12px 12px; padding: 4px 10px; border-radius: 999px; background: #F4F3EE; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.game-card[aria-pressed="true"] .game-pill { background: var(--orange); }
.game-badge { position: absolute; top: 8px; left: 8px; z-index: 3; display: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 900; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.game-card[aria-pressed="true"] .game-badge { display: grid; }

.pick-bar {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 16px; background: #232220; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pick-slots { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pick-slot-wrap { flex: 1 1 0; min-width: 0; }
.pick-slot { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pick-thumb { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; }
.pick-thumb .game-title { display: none; }
.pick-thumb.is-empty { display: grid; place-items: center; border: 2px dashed #4A4844; color: var(--muted-2); font-family: var(--mono); font-weight: 600; font-size: 14px; }
.pick-thumb.is-typed { display: grid; place-items: center; background: var(--orange); color: var(--ink); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.pick-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pick-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-name { font-size: 15px; font-weight: 800; color: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-slot:not(.is-set) .pick-name { font-weight: 600; color: var(--muted-2); }
.pick-x { flex: 0 0 auto; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(250, 250, 247, 0.12); color: var(--bg); font-size: 13px; cursor: pointer; }
.pick-x:hover { background: var(--orange); color: var(--ink); }
.pick-swap { flex: 0 0 auto; width: 40px; height: 40px; border: 2px solid #4A4844; border-radius: 50%; background: transparent; color: var(--orange); font-size: 18px; line-height: 1; cursor: pointer; }
.pick-swap:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.pick-next { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; background: var(--orange); color: var(--ink); padding: 16px 28px; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; cursor: pointer; }
.pick-next:hover { background: var(--bg); }
.pick-next[aria-disabled="true"] { background: #3A3936; color: var(--muted-2); cursor: not-allowed; }
/* Toasts and keyboard-focused cards stay clear of the sticky bar. */
body:has(.pick-bar) .toast { bottom: 110px; }
html:has(.pick-bar) { scroll-padding-bottom: 120px; }
.req-mine { margin-top: clamp(28px, 4vw, 40px); max-width: 560px; }

/* ---------------------------------------------------------------- request step 2: the two games */
.combo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.combo-game {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: 14px; color: #F4F3EE;
  background: linear-gradient(rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0.62)), var(--tint, #3A3936);
}
.combo-art { flex: 0 0 auto; width: 72px; border-radius: 10px; }
.combo-art .game-title { padding: 8%; font-size: 11px; }
.combo-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.combo-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); }
.combo-text b { font-size: 18px; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.combo-swap { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.combo-swap:hover { background: var(--orange); border-color: var(--orange); }

/* ---------------------------------------------------------------- request step 2: sending */
/* In place of the form while a request is sent: the two covers mash together while the steps tick off. */
.rq-sending { background: var(--ink); color: var(--bg); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 32px); }
.rq-sending .eyebrow { color: var(--orange); }
.rq-mash { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 28px); transition: gap 0.4s; }
.rq-mash-art {
  flex: 0 0 auto; width: clamp(96px, 22vw, 160px); border-radius: 14px; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  animation: rq-in-left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, rq-bump-right 1.2s ease-in-out 0.6s infinite;
}
.rq-mash-art:last-child { animation-name: rq-in-right, rq-bump-left; }
.rq-mash-x { color: var(--orange); font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1; animation: rq-pulse 0.9s ease-in-out infinite; }
.rq-sending.is-found .rq-mash { gap: 6px; }
.rq-sending.is-found .rq-mash-art, .rq-sending.is-found .rq-mash-x { animation: none; }
.rq-sending-body { display: flex; flex-direction: column; gap: 18px; }
.rq-sending h2 { margin: 0; font-weight: 900; font-stretch: 112%; font-size: clamp(28px, 3.6vw, 44px); line-height: 0.95; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.rq-sending-body p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted-3); max-width: 58ch; }
.rq-sending-body .small-note { font-size: 13px; color: var(--muted-2); }
.rq-sending .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rq-sending .btn-orange:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.rq-bar { height: 8px; background: #2C2B29; }
.rq-bar span { display: block; width: 0; height: 100%; background: var(--orange); transition: width 0.75s linear; }
.rq-send-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
.rq-send-steps li { display: flex; align-items: center; gap: 12px; }
.rq-send-steps .tick { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #4A4844; border-radius: 50%; }
.rq-send-steps li.now { color: var(--bg); }
.rq-send-steps li.now .tick { border-color: var(--orange); border-right-color: transparent; animation: rq-spin 0.8s linear infinite; }
.rq-send-steps li.done { color: var(--muted-3); }
.rq-send-steps li.done .tick { border-color: var(--orange); background: var(--orange); }
.rq-send-steps li.done .tick::after { content: '\2713'; color: var(--ink); font-size: 11px; font-weight: 900; line-height: 1; }
@keyframes rq-in-left { from { opacity: 0; transform: translateX(-48px); } }
@keyframes rq-in-right { from { opacity: 0; transform: translateX(48px); } }
@keyframes rq-bump-right { 50% { transform: translateX(8px) rotate(2deg); } }
@keyframes rq-bump-left { 50% { transform: translateX(-8px) rotate(-2deg); } }
@keyframes rq-pulse { 50% { transform: scale(1.3); } }
@keyframes rq-spin { to { transform: rotate(360deg); } }
/* The global rule only shortens animations, which would make these endless ones flicker. */
@media (prefers-reduced-motion: reduce) {
  .rq-sending * { animation: none !important; }
}

@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-bar { flex-wrap: wrap; }
  .pick-slots, .pick-next { flex: 1 1 100%; }
  body:has(.pick-bar) .toast { bottom: 170px; }
  html:has(.pick-bar) { scroll-padding-bottom: 180px; }
}
@media (max-width: 600px) {
  .combo { grid-template-columns: minmax(0, 1fr); }
  .combo-swap { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-name { margin: 10px 10px 0; font-size: 13px; }
  .game-pill { margin: 8px 10px 10px; }
  .pick-thumb { display: none; }
  .pick-slot { gap: 6px; }
  .pick-x { width: 28px; height: 28px; }
  .pick-swap { width: 34px; height: 34px; font-size: 15px; }
}
