/* Private Media Picker — film-lab teal & marigold.
   Tokens first, then base, layout, components, then each screen. */

/* ============ tokens ============ */
:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --tabbar-h: 62px; --topbar-h: 50px; --side-w: 240px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --acc: #e8a317; --acc-ink: #17130a;
  color-scheme: light;
}
/* palette: navy #1A273A, slate #3E4A62, rust #C24D2C, mist #D9D9D7 */
html[data-theme="light"] {
  --bg: #ECECEA; --surface: #F7F7F5; --surface-2: #E3E3E0; --surface-3: #D9D9D7;
  --line: #CFCFCB; --ink: #1A273A; --ink-2: #3E4A62; --muted: #566074;
  --teal: #3E4A62; --ring: #3E4A62;
  --danger: #b3261e; --ok: #1f7a4d;
  --c1: #3E4A62; --c2: #C24D2C; --grid: #D9D9D7;
  --shadow: 0 1px 2px rgba(26, 39, 58, .08), 0 10px 28px rgba(26, 39, 58, .12);
  --scrim: rgba(15, 24, 38, .55);
  --acc-text: color-mix(in srgb, var(--acc) 38%, var(--ink));
}
html[data-theme="dark"] {
  --bg: #1A273A; --surface: #22314A; --surface-2: #2C3A52; --surface-3: #3E4A62;
  --line: #3E4A62; --ink: #E4E4E2; --ink-2: #D9D9D7; --muted: #AEB4BF;
  --teal: #9FB0CC; --ring: #EC8A6C;
  --danger: #ff8a80; --ok: #6fd6a2;
  --c1: #8FA3C4; --c2: #E2603B; --grid: #2C3A52;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --scrim: rgba(8, 13, 22, .72);
  --acc-text: var(--acc);
  color-scheme: dark;
}
html[data-accent="rust"] { --acc: #C24D2C; --acc-ink: #ffffff; }
html[data-theme="dark"][data-accent="rust"] { --acc-text: #EC8A6C; }
html[data-accent="coral"] { --acc: #e8604c; }
html[data-accent="mint"] { --acc: #2fbf94; }
html[data-accent="sky"] { --acc: #3f9be0; }
html[data-accent="orchid"] { --acc: #b565e3; }
:root {
  --acc-soft: color-mix(in srgb, var(--acc) 20%, var(--surface));
  --acc-line: color-mix(in srgb, var(--acc) 70%, var(--ink) 10%);
  --accent: var(--c1);
}
html[data-grid="small"] { --cell: 82px; }
html[data-grid="medium"] { --cell: 106px; }
html[data-grid="large"] { --cell: 158px; }
html { --cell: 106px; }
@media (min-width: 700px) {
  html[data-grid="small"] { --cell: 104px; }
  html[data-grid="medium"] { --cell: 142px; }
  html[data-grid="large"] { --cell: 210px; }
  html { --cell: 142px; }
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--bg); }
html.modal-open, html.reels-open { overflow: hidden; }
html.reels-open, html.reels-open body { overscroll-behavior: none; }
body { margin: 0; font: 16px/1.45 var(--font-ui); color: var(--ink); background: var(--bg); min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0; }
a { color: var(--acc-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.icon { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
img, video { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--acc) 45%, transparent); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
main#view:focus { outline: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link { font-size: .9rem; font-weight: 600; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.gap { gap: 10px; }
.row.center { justify-content: center; }
.row.between, .between { justify-content: space-between; }
.center-v { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack.center { justify-items: center; }
.stack-s { display: grid; gap: 6px; }
.block { margin-top: 24px; display: grid; gap: 12px; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.plain-list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.sentinel { display: grid; place-items: center; padding: 16px; }
.status-line { font-weight: 600; }
.warn-text { color: var(--danger); font-weight: 600; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ============ boot / fatal ============ */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-ring, .spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal { max-width: 520px; margin: 0 auto; padding: 64px 20px; display: grid; gap: 14px; justify-items: start; }

/* ============ shell ============ */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: calc(var(--topbar-h) + var(--sat)); padding: var(--sat) 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.sidebar { display: none; }
main#view { padding: 16px 16px calc(var(--tabbar-h) + var(--sab) + 32px); }
.view { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; align-content: start; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + var(--sab)); padding-bottom: var(--sab); background: var(--surface); border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; text-decoration: none; min-width: 0; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.tab[aria-current="page"] svg { color: var(--teal); }

@media (min-width: 900px) {
  .topbar, .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 22px; position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line); z-index: 20; }
  .sidebar .brand { padding: 0 8px; }
  .side-links { display: grid; gap: 2px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
  .side-link:hover { background: var(--surface-2); }
  .side-link[aria-current="page"] { background: var(--acc-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--acc); }
  .side-link[aria-current="page"] svg { color: var(--teal); }
  .side-foot { margin-top: auto; display: grid; gap: 8px; }
  main#view { margin-left: var(--side-w); padding: 30px 44px 64px; }
  h1 { font-size: 2.1rem; }
}

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, transform .08s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 88%, white); }
.btn-tonal { background: var(--surface-2); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn-xl { min-height: 54px; padding: 0 28px; font-size: 1.1rem; border-radius: 16px; }
.btn-icon, .icon-btn { width: 42px; min-width: 42px; padding: 0; }
.icon-btn.big { width: 52px; min-width: 52px; min-height: 52px; border-radius: 50%; }
.btn.on { background: var(--acc-soft); border-color: var(--acc-line); }
.btn.has-badge { position: relative; }
.btn.has-badge::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--surface); }
.fav-btn.fav-on { background: color-mix(in srgb, #e5484d 16%, var(--surface)); border-color: #e5484d; color: #e5484d; }
.fav-btn.fav-on svg { fill: currentColor; }

/* ============ forms ============ */
.input, .select { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
textarea.input { resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--muted); opacity: .8; }
.select { width: auto; max-width: 100%; padding-right: 8px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field-hint { color: var(--muted); font-size: .8rem; }
.search-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.search-wrap > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 38px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .search-wrap { flex: 1 1 200px; }
.filter-bar { display: grid; gap: 10px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; }
.setting-text { display: grid; gap: 2px; min-width: 0; }
.setting-text small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.setting-col { display: grid; gap: 8px; justify-items: start; }
.slider-row { flex-direction: column; align-items: stretch; gap: 6px; }
.slider-ctl { display: flex; align-items: center; gap: 14px; }
.slider-ctl output { min-width: 3.6em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--acc-text); }
.select-row .select { max-width: 52%; }
.danger-row { padding: 10px 0; border-top: 1px solid var(--line); }
.danger-row:first-child { border-top: 0; }

input.range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; background: transparent; cursor: pointer; }
input.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--acc); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--acc-line), 0 1px 4px rgba(0,0,0,.3); }
input.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--acc-line); }

input.switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .15s; }
input.switch:checked { background: var(--acc); border-color: var(--acc-line); }
input.switch:checked::after { transform: translateX(20px); }
.toggle-row { cursor: pointer; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); max-width: 100%; overflow-x: auto; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
html[data-theme="dark"] .seg-btn[aria-pressed="true"] { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll-x { flex-wrap: nowrap; padding-bottom: 4px; }
.chips.scroll-x > * { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .85rem; color: var(--ink); }
.chip small { color: var(--muted); }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.chip button:hover { background: var(--surface-3); }
.chip-btn, .chip-toggle { cursor: pointer; font-weight: 600; }
.chip.on { background: var(--acc-soft); border-color: var(--acc-line); }
.tag-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.tag-pill.accent { background: var(--acc); color: var(--acc-ink); }
.tag-input-wrap { display: grid; gap: 8px; }

.stars { display: inline-flex; gap: 2px; }
.star { display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--surface-3); border-radius: 8px; }
html[data-theme="light"] .star { color: #bdc7b8; }
.star.on { color: var(--acc); }
.star.on svg { fill: currentColor; }
.stars.readonly .star { padding: 0; cursor: default; }
@media (pointer: coarse) { .star { padding: 7px; } .stars-xs .star, .stars.readonly .star { padding: 0; } .rate-pop .star { padding: 6px; } }
.stars-xs .star { padding: 0; }
.stars.readonly .star.on { color: var(--acc-text); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.sw-rust { background: #C24D2C; } .sw-marigold { background: #e8a317; } .sw-coral { background: #e8604c; } .sw-mint { background: #2fbf94; } .sw-sky { background: #3f9be0; } .sw-orchid { background: #b565e3; }

.bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; background: var(--acc); border-radius: 8px; transition: width .2s; }

/* ============ pieces ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1 1 200px; min-width: 0; }
.page-head p { margin-top: 4px; max-width: 60ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 44px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.3rem; }
.empty p { max-width: 40ch; }
.empty .btn { margin-top: 6px; }
.callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.callout > svg { color: var(--teal); }
.callout.warn { background: var(--acc-soft); border-color: var(--acc-line); }
.callout.warn > svg { color: var(--acc-text); }
.card { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card > h2 { font-size: 1.1rem; }
.section { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.section > summary, .sub-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.section > summary::-webkit-details-marker, .sub-section > summary::-webkit-details-marker { display: none; }
.section > summary svg, .sub-section > summary > svg:last-child { transition: transform .2s; color: var(--muted); }
.section[open] > summary svg, .sub-section[open] > summary > svg:last-child { transform: rotate(180deg); }
.section-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.sub-section { border-top: 1px solid var(--line); }
.sub-section > summary { font: 600 .95rem var(--font-ui); justify-content: flex-start; gap: 10px; padding: 12px 0; }
.sub-section > summary span { flex: 1; }
.sub-section .section-body { padding: 0 0 12px; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
button.list-row:hover { background: var(--surface-2); }
.list-row small { display: block; }
.list-row.static { cursor: default; }
.rank { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.table-like { display: grid; }
.rec-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rec-row:first-child { border-top: 0; }
.rec-score { font-family: var(--font-display); font-size: 1.15rem; min-width: 4ch; text-align: right; }
.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: .9rem; }
.info-grid dt { color: var(--muted); } .info-grid dd { margin: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tile-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.tile-val { font: 600 2rem/1.1 var(--font-display); }
.grid2, .grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.dropzone { position: fixed; inset: 12px; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 3px dashed var(--acc); border-radius: 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); pointer-events: none; text-align: center; }
.dropzone strong { font: 600 1.6rem var(--font-display); }

/* ============ toasts & modals ============ */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--sab) + 14px); z-index: 1200; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { display: flex; align-items: center; gap: 14px; max-width: min(520px, 100%); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: var(--danger); color: #fff; }
html[data-theme="dark"] .toast-error { color: #2a0705; }
.toast-action { border: 0; background: none; font-weight: 800; color: var(--acc); text-decoration: underline; }
html[data-theme="light"] .toast-action { color: color-mix(in srgb, var(--acc) 80%, white); }

.modal-backdrop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); opacity: 0; transition: opacity .18s; }
.modal-backdrop.in { opacity: 1; }
.modal { display: flex; flex-direction: column; width: 100%; max-height: 92dvh; background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; box-shadow: var(--shadow); transform: translateY(28px); transition: transform .22s cubic-bezier(.2,.8,.3,1); overflow: hidden; }
.modal-backdrop.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; }
.modal-head h2 { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 8px 20px 16px; overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(14px + var(--sab)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-text { display: grid; gap: 10px; line-height: 1.5; }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 24px; width: 560px; max-height: 88dvh; transform: translateY(14px) scale(.98); }
  .modal-sm { width: 420px; } .modal-lg { width: 880px; } .modal-md { width: 580px; }
  .modal-actions { padding-bottom: 14px; }
}
.modal-full { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
@media (min-width: 900px) { .modal-backdrop .modal-full { width: min(1280px, 96vw); height: min(900px, 94dvh); border-radius: 24px; } }
.menu-list { display: grid; gap: 4px; padding-bottom: 6px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 14px; background: none; text-align: left; font-weight: 600; }
.menu-item:hover { background: var(--surface-2); }
.menu-item small { margin-left: auto; color: var(--muted); font-weight: 400; text-align: right; }
.menu-item.danger { color: var(--danger); }

/* ============ thumbnails & grids ============ */
.grid { display: grid; gap: 6px; }
.media-grid { grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); }
.picker-grid { --cell: 96px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); min-width: 0; isolation: isolate; }
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); opacity: .6; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; user-select: none; -webkit-user-drag: none; }
.thumb-img.loaded { opacity: 1; animation: develop .7s ease-out both; }
.thumb-img.loaded.seen { animation: none; }
.thumb-img.nothumb { display: none; }
@keyframes develop { 0% { opacity: 0; filter: sepia(1) brightness(1.6) contrast(.55) blur(8px); } 40% { opacity: 1; } 100% { opacity: 1; filter: none; } }
.thumb-badges { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(15, 24, 38, .72); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.badge-fav { color: #ff7a85; padding: 0 5px; } .badge-fav svg { fill: currentColor; }
.badge-rate svg { fill: var(--acc); color: var(--acc); }
.thumb-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(8,16,18,.75)); color: #fff; font-size: 11px; line-height: 1.2; overflow: hidden; display: none; }
html[data-names="on"] .media-grid .thumb-name { display: block; }
html[data-names="on"] .media-grid .thumb-name ~ .thumb-badges, html[data-names="on"] .media-grid .thumb:has(.thumb-name) .thumb-badges { bottom: auto; top: 6px; }
.thumb-check { position: absolute; top: 6px; right: 6px; z-index: 3; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,24,38,.5); border: 2px solid #fff; color: transparent; }
.selecting .thumb-check, .picker-grid .thumb-check { display: grid; }
.thumb.selected { outline: 3px solid var(--acc); outline-offset: -3px; }
.thumb.selected .thumb-check { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.thumb.selected .thumb-img { transform: scale(.94); border-radius: 8px; }
.thumb.clickable { cursor: pointer; }
.thumb.clickable:hover .thumb-img.loaded { filter: brightness(1.06); }
.thumb.is-excluded { opacity: .5; }
.thumb-sm { width: 56px; height: 56px; flex: none; border-radius: 10px; }
.thumb-xs { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.thumb-strip { flex: none; width: 112px; height: 112px; aspect-ratio: auto; }
.thumb-sm .thumb-badges, .thumb-xs .thumb-badges, .thumb-sm .badge-rate, .thumb-xs .badge { display: none; }
.thumb.ph { background: var(--surface-3); }
.strip { display: flex; gap: 10px; padding-bottom: 6px; }
.media-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.media-strip.big .thumb-sm { width: 84px; height: 84px; }
.strip-item { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 10px; }
.strip-item > .icon-btn { position: absolute; top: -6px; right: -6px; min-height: 24px; width: 24px; min-width: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 0; }
.select-bar { position: sticky; bottom: calc(var(--tabbar-h) + var(--sab) + 10px); z-index: 25; display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bulk-actions { gap: 6px; }
@media (min-width: 900px) { .select-bar { bottom: 16px; } }

/* ============ stages (media display) ============ */
.stage { position: relative; display: flex; align-items: center; justify-content: center; background: #0F1826; border-radius: 16px; overflow: hidden; min-height: 120px; }
.stage .media-node { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.stage.loading::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.stage-error { display: grid; justify-items: center; gap: 8px; padding: 20px; color: #b8cacb; text-align: center; }
.stage-error.over { position: absolute; inset: 0; align-content: center; background: #0F1826; }
.stage-card { width: 100%; height: clamp(240px, 42dvh, 700px); }
@media (min-width: 900px) { .stage-card { height: clamp(300px, 58dvh, 700px); } }
.stage-card .media-node { object-fit: contain; }
.classic { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; width: 100%; align-content: start; }
.mode-head { display: flex; align-items: center; gap: 10px; }
.mode-head h1 { font-size: 1.4rem; }
.pick-info { display: grid; gap: 4px; }
.pick-name { font-size: 1.35rem; max-width: 100%; }
.why { line-height: 1.35; }
.media-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar-h) + var(--sab) + 10px); z-index: 20; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); flex-wrap: wrap; }
@media (min-width: 900px) { .sticky-actions { bottom: 16px; } }

/* ============ lightbox / detail ============ */
.lightbox .modal-body { padding: 4px 16px 16px; }
.lb { display: grid; gap: 14px; }
.lb-main { display: grid; gap: 8px; }
.lb-stage { height: 46dvh; }
.lb-nav { display: flex; align-items: center; justify-content: space-between; }
.lb-panel { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) {
  .lightbox .modal-body { overflow: hidden; }
  .lb { grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
  .lb-main { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .lb-stage { height: 100%; min-height: 0; }
  .lb-panel { overflow: auto; padding-right: 4px; max-height: 100%; }
}

/* ============ home ============ */
.welcome { max-width: 600px; margin: 6vh auto 0; display: grid; gap: 18px; justify-items: center; text-align: center; }
.welcome-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--acc); color: var(--acc-ink); transform: rotate(-4deg); }
.welcome h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.welcome-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.welcome-points li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.welcome-points svg { color: var(--teal); }
.hero-wrap { display: grid; gap: 8px; }
.home-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-dots { display: none; justify-content: center; gap: 6px; }
.hero-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.hero-dots i.on { width: 18px; background: var(--acc); }
@media (max-width: 899px) {
  .home-hero { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .home-hero::-webkit-scrollbar { display: none; }
  .hero-dots { display: flex; }
}
.home-block { display: grid; gap: 10px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.chip-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; min-width: 0; }
.chip-card:hover { background: var(--surface-2); }
.chip-card svg { color: var(--teal); }

/* ============ experiences ============ */
.mode-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.mode-card { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .12s; }
.mode-card:hover { border-color: var(--acc-line); }
.mode-link { display: grid; gap: 12px; padding: 18px; color: inherit; text-decoration: none; height: 100%; align-content: start; }
.mode-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--teal); color: #fff; }
html[data-theme="dark"] .mode-icon { background: var(--surface-3); color: var(--acc); }
.mode-text { display: grid; gap: 4px; }
.mode-text h2 { font-size: 1.35rem; }
.mode-line { font-weight: 700; font-size: .85rem; color: var(--acc-text); }
.mode-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-gear { position: absolute; top: 12px; right: 12px; }
.mode-card .mode-icon { margin-bottom: 2px; }

.surprise-card { position: relative; aspect-ratio: 4 / 3; min-height: 280px; max-height: 62dvh; width: 100%; border-radius: 22px; overflow: hidden; background: #0F1826; color: #e6efed; }
.surprise-card .stage { position: absolute; inset: 0; border-radius: 0; height: 100%; }
.surprise-intro { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, #153a3e, #0F1826 70%); }
.surprise-intro svg { color: var(--acc); }
.surprise-intro .muted { color: #9db5b3; max-width: 34ch; }
.surprise-intro h2 { color: #f2f8f6; }
.flash-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) contrast(1.15) brightness(.8); }
.reveal-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; background: rgba(8, 18, 20, .3); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); color: #fff; font-size: 1.1rem; }
.surprise-card.shuffling .stage { visibility: hidden; }
.surprise-card.blind .media-node { filter: blur(28px) brightness(.7); transform: scale(1.1); }
.surprise-card.revealed .media-node { animation: develop-big 1.3s ease-out both; }
@keyframes develop-big { 0% { filter: sepia(1) brightness(1.7) contrast(.5) blur(22px); opacity: .2; } 100% { filter: none; opacity: 1; } }

.slideshow { position: relative; height: clamp(320px, 70dvh, 780px); border-radius: 22px; overflow: hidden; background: #000; color: #fff; }
.slide-stage { position: absolute; inset: 0; height: 100%; border-radius: 0; background: #000; }
.slide-stage .media-node { animation: none; }
.slide-stage[data-tr="fade"] .media-node { animation: sl-fade .7s ease both; }
.slide-stage[data-tr="slide"] .media-node { animation: sl-slide .55s cubic-bezier(.2,.8,.3,1) both; }
.slide-stage[data-tr="zoom"] .media-node { animation: sl-zoom 9s ease-out both; }
@keyframes sl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sl-slide { from { transform: translateX(8%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sl-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.slide-caption { position: absolute; left: 16px; right: 16px; bottom: 74px; z-index: 3; text-shadow: 0 1px 6px rgba(0,0,0,.8); font-weight: 600; pointer-events: none; }
.slide-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 24px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.slide-controls .btn { background: rgba(15, 26, 29, .55); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.slide-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 5; background: rgba(255,255,255,.18); }
.slide-progress-fill { width: 0; height: 100%; background: var(--acc); }
.slideshow.is-fs { border-radius: 0; height: 100dvh; }

/* ============ challenge ============ */
.challenge-list { display: grid; gap: 12px; }
.challenge-card { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.challenge-card .grow { display: grid; gap: 4px; min-width: 200px; }
.run { align-content: start; }
.run-top { display: flex; align-items: center; gap: 12px; }
.run-time { font: 600 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .run-time { font-size: 2rem; } }
.run-score { display: block; color: var(--muted); font-size: .88rem; }
.run-body { position: relative; }
.run-overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; border-radius: 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.run-overlay p { max-width: 36ch; }
.run-controls { display: grid; gap: 12px; }
.big-stars { display: flex; gap: 8px; justify-content: center; }
.big-star { flex: 1; max-width: 84px; display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; transition: background .12s, transform .08s; }
.big-star svg { color: var(--acc); }
.big-star:hover, .big-star:focus-visible { background: var(--acc-soft); border-color: var(--acc-line); }
.big-star:active { transform: scale(.94); }
.result-hero { display: grid; justify-items: center; gap: 6px; padding: 14px 0; text-align: center; }
.big-num { font: 600 2.8rem/1.05 var(--font-display); max-width: 100%; }
.result-hero.big .big-num { font-size: clamp(2.6rem, 10vw, 4rem); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.result-item { position: relative; }
.result-tag { position: absolute; left: 6px; top: 6px; z-index: 4; padding: 2px 7px; border-radius: 6px; background: rgba(15,24,38,.78); color: #fff; font-size: 11px; font-weight: 700; }
.r-skip .thumb, .r-pass .thumb, .r-lose .thumb { opacity: .55; }
.spark { flex: none; }

/* ============ duels & brackets ============ */
.duel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duel-card { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); text-align: left; color: inherit; transition: transform .2s, opacity .2s, border-color .2s, box-shadow .2s; }
.duel-card:hover { border-color: var(--acc-line); }
.duel-stage { width: 100%; aspect-ratio: 3 / 4; max-height: 56dvh; border-radius: 14px; }
.duel-cap { display: grid; gap: 2px; padding: 0 4px 4px; min-height: 40px; }
.duel-vs { position: absolute; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); font: 700 1rem var(--font-display); font-style: italic; box-shadow: 0 0 0 4px var(--bg); pointer-events: none; }
.duel.picked .duel-card.lost { opacity: .4; transform: scale(.97); }
.duel.picked .duel-card.won { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); transform: scale(1.01); }
.h2h-arena { display: grid; gap: 12px; }
.bracket { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px; }
.bracket-col { flex: none; width: 200px; display: flex; flex-direction: column; gap: 8px; }
.bracket-col h4 { color: var(--muted); font: 700 .8rem var(--font-ui); }
.bracket-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bracket-match { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.bracket-slot { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: .85rem; min-width: 0; }
.bracket-slot + .bracket-slot { border-top: 1px solid var(--line); }
.bracket-slot.win { background: var(--acc-soft); font-weight: 700; }
.bracket-slot.lose { opacity: .5; }
.bracket-slot.empty { color: var(--muted); }
.champ-stage { height: clamp(260px, 50dvh, 520px); }

/* ============ history ============ */
.hist-list { display: grid; gap: 8px; }
.day-head { margin: 12px 0 2px; font-size: 1.05rem; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.hist-row:hover { background: var(--surface-2); }
.hist-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hist-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.hist-note { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-row time { align-self: flex-start; white-space: nowrap; }

/* ============ tribute ============ */
.journal-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.journal-card { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.journal-card:hover { border-color: var(--acc-line); }
.journal-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-display); color: var(--ink-2); line-height: 1.5; }
.journal-text { white-space: pre-wrap; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.65; max-width: 62ch; }
.journal-body { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.6; }

/* ============ selection editors ============ */
.param-editor, .custom-editor { display: grid; gap: 10px; }
.rules { display: grid; gap: 8px; }
.rule-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rule-row > * { flex: 1 1 110px; }
.rule-row > .icon-btn { flex: none; }
.algo-list { display: grid; gap: 14px; }
.algo-group { display: grid; gap: 6px; }
.algo-group h3 { font: 700 .8rem var(--font-ui); color: var(--muted); }
.algo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: inherit; }
.algo-item:hover { background: var(--surface-2); }
.algo-item.on { border-color: var(--acc-line); background: var(--acc-soft); }
.algo-text { display: grid; flex: 1; min-width: 0; }
.algo-text small { color: var(--muted); }
.review-row { display: grid; gap: 8px; grid-template-columns: 56px 1fr; align-items: start; }

/* ============ statistics charts ============ */
.stats { display: grid; gap: 14px; }
.hbars { display: grid; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(70px, 28%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.hbar-track { height: 12px; border-radius: 0 6px 6px 0; background: transparent; }
.hbar-fill { height: 100%; border-radius: 0 6px 6px 0; background: var(--c1); }
.hbar-val { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 2.5ch; text-align: right; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 6px; }
.col { flex: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-width: 0; }
.col-bar { align-self: end; width: 100%; max-width: 44px; border-radius: 6px 6px 0 0; background: var(--c1); }
.col-val { font-size: .78rem; font-weight: 700; color: var(--ink-2); min-height: 1em; }
.col-label { font-size: .82rem; color: var(--muted); }
.split { display: grid; gap: 10px; }
.split-bar { display: flex; gap: 2px; height: 16px; border-radius: 8px; overflow: hidden; }
.split-bar .seg { padding: 0; border-radius: 4px; min-width: 6px; display: block; background: var(--c1); }
.split-bar .seg-b, .sw-b { background: var(--c2); }
.split-bar .seg-a, .sw-a { background: var(--c1); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.chart-wrap { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.grid-line { stroke: var(--grid); stroke-width: 1; }
.axis-text { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); }
.bar-mark { fill: var(--c1); }
.crosshair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; z-index: 5; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .82rem; font-weight: 600; pointer-events: none; white-space: nowrap; transform: translate(-50%, -110%); }

/* ============ reels ============ */
#reels { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#reels[hidden] { display: none; }
html.reels-open #app { visibility: hidden; }
.reels-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.reels-strip { position: absolute; left: 0; right: 0; top: -100%; height: 300%; display: flex; flex-direction: column; will-change: transform; }
.reel-slide { position: relative; flex: 1 1 0; min-height: 0; background: #000; overflow: hidden; }
.reel-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.reel-loading, .reel-err { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #9fb3b3; text-align: center; padding: 24px; pointer-events: auto; }
.play-flash { position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0,0,0,.5); pointer-events: none; opacity: 0; }
.play-flash.go { animation: flash-pop .6s ease-out both; }
@keyframes flash-pop { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.reels-chrome { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity .25s; }
.reels-chrome button, .reels-chrome input, .reels-chrome .stars { pointer-events: auto; }
.reels-chrome.chrome-hidden, #reels.idle .reels-chrome { opacity: 0; }
.reels-chrome.chrome-hidden button, .reels-chrome.chrome-hidden input, #reels.idle .reels-chrome button, #reels.idle .reels-chrome input { pointer-events: none; }
.reels-chrome.no-media .reels-rail, .reels-chrome.no-media .reels-bottom, .reels-chrome.no-media .reels-counter, .reels-chrome.no-media .reels-top > button:last-child { display: none; }
.reels-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--sat) + 10px) 12px 28px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.reels-counter { padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#reels .reels-btn { width: 46px; height: 46px; min-width: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: rgba(15, 26, 29, .55); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#reels .reels-btn:hover:not(:disabled) { background: rgba(15, 26, 29, .8); }
#reels .reels-btn.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
#reels .reels-btn.fav.on svg { fill: currentColor; }
#reels .reels-btn.fav.on { background: #e5484d; border-color: #e5484d; color: #fff; }
.speed-btn { font-weight: 800; font-size: 13px; }
.reels-rail { position: absolute; right: 10px; bottom: calc(var(--sab) + 92px); max-height: calc(100% - 190px); display: flex; flex-direction: column; flex-wrap: wrap-reverse; justify-content: flex-end; align-content: flex-start; gap: 10px; }
.rate-pop { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 999px; background: rgba(15,26,29,.88); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }
.rate-pop .star { color: rgba(255,255,255,.35); }
.rate-pop .star.on { color: var(--acc); }
.reels-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 36px 74px calc(var(--sab) + 14px) 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.reels-caption { display: grid; gap: 2px; min-width: 0; text-shadow: 0 1px 6px rgba(0,0,0,.8); pointer-events: none; }
.reels-caption span { font-size: .85rem; opacity: .85; }
.reels-seekrow { display: flex; align-items: center; gap: 10px; }
.reels-seek { -webkit-appearance: none; appearance: none; flex: 1; height: 24px; background: transparent; cursor: pointer; }
.reels-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
.reels-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
.reels-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--acc); border: 0; }
.reels-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); border: 0; }
.reels-time { font-size: .78rem; font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; }
.reels-empty { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; background: #0F1826; }
.reels-empty p { max-width: 36ch; color: #a9bcbb; }
.heart-burst { position: fixed; z-index: 20; color: #ff5a67; pointer-events: none; transform: translate(-50%, -50%); animation: burst .75s ease-out forwards; }
.heart-burst svg { fill: currentColor; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%,-90%) scale(1); } }

/* ---------- tags and categories ---------- */
.tax-intro { margin: 2px 0 14px; max-width: 62ch; }
.tax-add { margin: 14px 0 10px; }
.tax-add .input { flex: 1 1 auto; min-width: 0; }
.tax-tools { margin-bottom: 8px; }
.tax-tools .input { flex: 1 1 160px; min-width: 0; }
.tax-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tax-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.tax-row:first-child { border-top: 0; }
.tax-name { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; text-align: left; padding: 11px 14px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.tax-name:hover { background: var(--surface-2); }
.tax-label { font-weight: 700; font-size: 1rem; }
.tax-used { color: var(--acc-text); }
.tax-more { align-self: center; margin-right: 6px; border-color: transparent; background: none; }
.tax-empty { padding: 22px 16px; color: var(--muted); text-align: center; }
.tax-chips { gap: 8px; }
.tax-chip { gap: 6px; min-height: 38px; }
.tax-chip .state-mark { display: inline-grid; place-items: center; width: 14px; font-weight: 800; }
.tax-chip .chip-n { color: var(--muted); font-size: .72rem; }
.tax-chip.on { background: var(--acc-soft); border-color: var(--acc-line); }
.tax-chip.ex { background: color-mix(in srgb, #d6455d 14%, var(--surface)); border-color: #d6455d; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tax-chip.ex .state-mark { text-decoration: none; color: #d6455d; }
.tax-count.warn-text { color: #c23b53; font-weight: 700; }
.tax-chip .state-mark:empty { display: none; }

/* ---------- reveal timer and metronome ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stage-wrap { position: relative; border-radius: 16px; overflow: hidden; }
.reveal-layer { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: #0F1826; color: #e6efed; overflow: hidden; border-radius: inherit; }
/* With previews showing, the countdown and buttons sit in a slim strip along the bottom so the pictures stay visible. */
.reveal-layer:not(.is-hidden) { display: block; background: #000; }
.reveal-layer:not(.is-hidden) .reveal-ui { position: absolute; left: 0; right: 0; bottom: 0; width: auto; padding: 26px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 2px 10px; justify-items: stretch; align-items: center; text-align: left; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num bar act"; background: linear-gradient(to top, rgba(4, 10, 12, .88) 40%, rgba(4, 10, 12, 0)); pointer-events: none; }
.reveal-layer:not(.is-hidden) .reveal-ui > * { pointer-events: auto; }
.reveal-layer:not(.is-hidden) .reveal-num { grid-area: num; font-size: clamp(30px, 9vw, 42px); min-width: 1.2em; text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.reveal-layer:not(.is-hidden) .reveal-label { grid-area: label; display: none; font-size: .86rem; align-self: end; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.reveal-layer:not(.is-hidden) .reveal-bar { grid-area: bar; height: 5px; }
.reveal-layer:not(.is-hidden) .reveal-actions { grid-area: act; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.reveal-layer:not(.is-hidden) .reveal-actions .btn { min-height: 38px; padding-block: 0; font-size: .9rem; }
@media (max-width: 719px) {   /* narrow: Cancel shrinks to an icon (its name stays for screen readers) */
  .reveal-layer:not(.is-hidden) .reveal-actions .btn:not(.btn-primary) { padding-inline: 10px; }
  .reveal-layer:not(.is-hidden) .reveal-actions .btn:not(.btn-primary) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 720px) {
  .reveal-layer:not(.is-hidden) .reveal-label { display: block; }
  .reveal-layer:not(.is-hidden) .reveal-ui { grid-template-areas: "num label act" "num bar act"; padding-top: 34px; }
  .reveal-layer:not(.is-hidden) .reveal-bar { align-self: start; }
}
.reveal-stage { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.reveal-stage .media-node { object-fit: contain; }
.reveal-ui { position: relative; z-index: 2; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 16px; width: min(94%, 440px); }
.reveal-label { font-weight: 700; letter-spacing: .01em; opacity: .92; }
.reveal-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 20vw, 128px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.reveal-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.reveal-bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.reveal-actions { flex-wrap: wrap; }
.reveal-actions .btn:not(.btn-primary) { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.bpm-badge { position: fixed; top: calc(var(--sat, 0px) + 9px); right: 12px; z-index: 90; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(12, 24, 27, .9); color: #f1f6f2; border: 1px solid rgba(255, 255, 255, .22); font-weight: 800; font-size: .86rem; font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.bpm-badge small { font-weight: 700; font-size: .66rem; opacity: .75; letter-spacing: .04em; }
.bpm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); opacity: .45; transition: opacity .06s linear, box-shadow .06s linear; }
.bpm-badge.beat .bpm-dot { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 38%, transparent); }
.bpm-badge.hidden { display: none; }

/* ---------- Classic Pick: full screen ---------- */
.stage-wrap .fs-open { position: absolute; top: 10px; right: 10px; z-index: 8; width: 40px; height: 40px; background: rgba(15, 24, 38, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stage-wrap.is-fs .fs-open { display: none; }
.stage-wrap .fs-ui { display: none; }
.stage-wrap.is-fs { border-radius: 0; background: #000; }
.stage-wrap.pseudo-fs { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100dvh; }
html.has-fs { scrollbar-gutter: auto; }   /* the reserved scrollbar gutter would leave a strip beside the full screen picture */
html.has-fs, html.has-fs body { overflow: hidden; }
.stage-wrap.is-fs .stage-card { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #000; }
.stage-wrap.is-fs .stage-card .media-node { object-fit: contain; }
.stage-wrap.is-fs .fs-ui { display: block; position: absolute; inset: 0; z-index: 7; pointer-events: none; color: #fff; transition: opacity .25s ease; }
.fs-ui .fs-top, .fs-ui .fs-bottom { position: absolute; left: 0; right: 0; padding: 12px calc(14px + env(safe-area-inset-right, 0px)) 12px calc(14px + env(safe-area-inset-left, 0px)); }
.fs-ui .fs-top { top: 0; display: flex; align-items: center; gap: 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-right: 120px; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent); }
.fs-ui .fs-bottom { bottom: 0; display: grid; gap: 10px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0, 0, 0, .66), transparent); }
.fs-ui .fs-title { font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); min-width: 0; }
.fs-ui .fs-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.fs-ui button { pointer-events: auto; }
.fs-ui .icon-btn, .fs-ui .btn:not(.btn-primary) { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fs-ui .btn:disabled, .fs-ui .icon-btn:disabled { opacity: .4; }
.fs-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.fs-progress i { display: block; height: 100%; width: 0; background: var(--acc); }
.stage-wrap.is-fs.idle .fs-ui { opacity: 0; }
.stage-wrap.is-fs.idle .fs-ui button { pointer-events: none; }
.stage-wrap.is-fs.idle { cursor: none; }
.stage-wrap.is-fs.revealing .fs-bottom, .stage-wrap.is-fs.revealing .fs-title { display: none; }
.stage-wrap.is-fs.revealing .fs-ui { opacity: 1; }
.stage-wrap.is-fs .reveal-layer { z-index: 6; }
.stage-wrap.is-fs .bpm-badge { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; z-index: 9; }

/* ============ linked tributes and load weight ============ */
.lb-tabs { position: sticky; top: 0; z-index: 3; background: var(--surface); padding-bottom: 4px; }
.lb-panel-body { display: grid; gap: 14px; align-content: start; }
.badge-weight { background: var(--acc); color: var(--acc-ink); }
.badge-trib svg { color: var(--acc); }
.thumb-caption { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 6px 8px 14px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(rgba(15,24,38,.7), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.load-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.load-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.load-stat small { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-stat strong { font-size: 1.5rem; line-height: 1.15; }
.linked-grid, .person-photos { --cell: 110px; }
.link-card { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.link-card .thumb { width: 56px; flex: none; }
.link-card.empty-link { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.link-text { display: grid; min-width: 0; }
.weigh-list { gap: 10px; }
.weigh-row { display: flex; gap: 10px; align-items: center; }
.weigh-row .thumb { width: 64px; flex: none; }
.weigh-fields { display: grid; gap: 6px; flex: 1; min-width: 0; }
.weight-wrap { display: flex; align-items: center; gap: 8px; }
.weight-input { max-width: 140px; }

/* ============ tribute statistics, compare view, person profiles ============ */
.tribute-stats { gap: 14px; }
.section-title { font-size: 1.35rem; }
.tribute-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .tribute-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tribute-tiles .tile-acc { grid-column: 1 / -1; }
@media (min-width: 700px) { .tribute-stats .tribute-tiles .tile-acc { grid-column: span 4; } .profile .tribute-tiles .tile-acc { grid-column: span 2; } }
.tile-acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.tile-acc .tile-label, .tile-acc small { color: var(--acc-ink); opacity: .85; }
button.tile { text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.tile:hover { background: var(--surface-2); }
.bar-load { fill: color-mix(in srgb, var(--acc) 55%, transparent); }
.bar-load.bar-now { fill: var(--acc); }
.hbar-btn { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 4px 0; cursor: pointer; border-radius: 8px; }
.hbar-btn:hover { background: var(--surface-2); }
.hbar-sub { grid-column: 1 / -1; margin-top: -4px; }
.hbar-acc, .col-acc { background: var(--acc); }
.top-photos { --cell: 92px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--acc-text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.link-btn.small { font-size: .85rem; }
.load-stat.clickable { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.load-stat.clickable:hover { border-color: var(--acc-line, var(--acc)); }

.cmp-box { position: relative; width: 100%; max-height: 62dvh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0F1826; touch-action: none; user-select: none; }
.cmp-slider { cursor: ew-resize; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-media { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.cmp-line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.cmp-tag { position: absolute; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; pointer-events: none; }
.cmp-tag-l { left: 8px; background: rgba(15,24,38,.7); color: #fff; }
.cmp-tag-r { right: 8px; background: var(--acc); color: var(--acc-ink); }
.cmp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: transparent; max-height: none; overflow: visible; }
.cmp-fig { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #0F1826; }
.cmp-fig figcaption { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(15,24,38,.7); color: #fff; }
.cmp-missing { display: grid; place-items: center; height: 100%; color: #fff; font-size: .85rem; }
.cmp-range { width: 100%; }

.profile { display: grid; gap: 16px; }
.profile-head { position: relative; display: grid; }
.profile-cover { height: 140px; border-radius: 16px; background: var(--surface-2) center / cover no-repeat; }
.profile-cover-btn { position: absolute; right: 10px; top: 10px; background: rgba(15,24,38,.65); color: #fff; border: 0; }
.profile-id { display: flex; align-items: flex-end; gap: 12px; margin: 0 6px; }
.profile-id h2 { font-size: 1.35rem; margin: 0; }
.profile-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 1.5rem var(--font-display); background: var(--acc); color: var(--acc-ink); border: 4px solid var(--surface); margin-top: -34px; }

/* ============ PMV player ============ */
#pmv { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#pmv[hidden] { display: none; }
.pmv-stage { position: absolute; inset: 0; overflow: hidden; }
.pmv-shot { position: absolute; inset: 0; transform-origin: 50% 50%; }
.pmv-media { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pmv-frame { position: absolute; inset: 0; overflow: hidden; background: #000; }
.pmv-frame .pmv-media { position: relative; z-index: 1; }
.pmv-backdrop { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; max-height: none; object-fit: cover; filter: blur(26px) brightness(.55) saturate(1.2); display: none; pointer-events: none; }
.pmv-frame[data-fit="blur"] .pmv-backdrop { display: block; }
.pmv-frame[data-fit="fit"] .pmv-media, .pmv-frame[data-fit="blur"] .pmv-media { object-fit: contain; }
.pmv-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (orientation: portrait) { .pmv-grid-3 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr 1fr; } }
.pmv-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 2px 4px 8px 38px; }
.pmv-tile-opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.pmv-tile-opt .check { width: 20px; height: 20px; accent-color: var(--acc); }
.pmv-layer { position: absolute; inset: 0; }
.pmv-wipe-top { clip-path: inset(0 0 0 0); }
.pmv-wipe-line { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.pmv-side { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #000; }
.pmv-half { position: relative; overflow: hidden; }
@media (orientation: portrait) { .pmv-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.pmv-zoom-in { animation: pmvZoomIn .32s cubic-bezier(.2,.8,.2,1); }
@keyframes pmvZoomIn { from { transform: scale(1.18); } to { transform: scale(1); } }
.pmv-punch { animation: pmvPunch .16s ease-out; }
@keyframes pmvPunch { 0% { transform: scale(1.035); } 100% { transform: scale(1); } }
.pmv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.pmv-flash.on { animation: pmvFlash .2s ease-out; }
@keyframes pmvFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
.pmv-text { position: absolute; left: 6%; right: 6%; top: 50%; z-index: 3; transform: translateY(-50%); text-align: center; font: 800 clamp(2rem, 9vw, 5.5rem)/1.05 var(--font-display); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.9); opacity: 0; pointer-events: none; overflow-wrap: anywhere; }
.pmv-text.on { animation: pmvText .9s ease-out forwards; }
@keyframes pmvText { 0% { opacity: 0; transform: translateY(var(--ty, -50%)) scale(1.3); } 12% { opacity: 1; transform: translateY(var(--ty, -50%)) scale(1); } 70% { opacity: 1; transform: translateY(var(--ty, -50%)) scale(1); } 100% { opacity: 0; transform: translateY(var(--ty, -50%)) scale(1); } }
.pmv-text.pos-top { top: calc(var(--sat, 0px) + 80px); bottom: auto; --ty: 0%; transform: none; }
.pmv-text.pos-bottom { top: auto; bottom: calc(var(--sab, 0px) + 80px); --ty: 0%; transform: none; }
.pmv-text.pos-center { --ty: -50%; }
.pmv-chrome { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity .25s; }
.pmv-chrome button { pointer-events: auto; }
#pmv.idle .pmv-chrome { opacity: 0; }
#pmv.idle .pmv-chrome button { pointer-events: none; }
#pmv.idle { cursor: none; }
.pmv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--sat, 0px) + 10px) 12px 28px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.pmv-tempo { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.45); }
.pmv-bpm { min-width: 76px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.pmv-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.pmv-tempo .pmv-btn { width: 36px; height: 36px; background: rgba(255,255,255,.12); }
.pmv-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 28px 16px calc(var(--sab, 0px) + 14px); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.pmv-dots { display: flex; gap: 8px; }
.pmv-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .08s; }
.pmv-dots i.on { background: var(--acc); }
#pmv.paused .pmv-chrome { opacity: 1; }
#pmv.paused .pmv-stage::after { content: 'Paused'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.55); font-weight: 700; }
.pmv-empty { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.pmv-empty p { max-width: 34ch; color: rgba(255,255,255,.75); }
.pmv-settings .seg { flex-wrap: wrap; }
.pmv-bpm-out { font-variant-numeric: tabular-nums; }
.pmv-tempo-ctl { display: grid; gap: 8px; }
.pmv-tempo-ctl .range { width: 100%; }
.pmv-bpm-out { font-size: 1.25rem; }
.pmv-checks { display: grid; gap: 4px; }
.pmv-check { display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; border-radius: 10px; cursor: pointer; }
.pmv-check:hover { background: var(--surface-2); }
.pmv-check span { display: grid; gap: 2px; }
.pmv-check .check { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--acc); }
.pmv-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; background: #000; }
.pmv-third { position: relative; overflow: hidden; }
.pmv-center { box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.pmv-grid { display: grid; gap: 3px; background: #000; }
.pmv-grid-2 { grid-template-columns: 1fr 1fr; }
@media (orientation: portrait) { .pmv-grid-2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.pmv-grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pmv-cell { position: relative; overflow: hidden; }
.pmv-counter { position: absolute; left: 14px; bottom: calc(var(--sab, 0px) + 70px); z-index: 4; display: grid; gap: 0; padding: 8px 14px; border-radius: 16px; background: rgba(15,24,38,.6); color: #fff; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pmv-counter-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.pmv-counter strong { font: 700 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pmv-counter small { font-size: .75rem; opacity: .8; }
.pmv-counter.bump strong { animation: pmvBump .35s ease-out; }
@keyframes pmvBump { 0% { transform: scale(1.35); color: var(--acc); } 100% { transform: scale(1); } }
.pmv-cock-box { padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.cock-grid { --cell: 96px; }

/* ============ home: big swipe cards ============ */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-head h1 { margin: 2px 0 0; font: 600 1.85rem/1.1 var(--font-display); }
.home-kicker { margin: 0; font-weight: 600; }
.round-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.round-btn:hover { background: var(--surface-2); }
.hero-wrap { display: grid; gap: 10px; }
.home-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.big-card { position: relative; min-width: 0; height: 380px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; box-sizing: border-box; cursor: pointer; isolation: isolate; color: #E4E4E2; transition: transform .12s; }
.big-card:active { transform: scale(.985); }
.big-card.is-disabled { opacity: .6; cursor: default; }
.big-pick { background: #C24D2C; color: #fff; }
.big-reels { background: #3E4A62; }
.big-pmv { background: #0F1826; }
.big-card-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.big-card.has-image { background-color: #0F1826; color: #fff; }
.big-card.has-image.dimmed .big-card-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8,13,22,.15) 30%, rgba(8,13,22,.85)); }
.big-card-body { display: grid; gap: 6px; justify-items: start; }
.big-card-body h2 { margin: 0; font: 600 2.6rem/1 var(--font-display); }
.big-card-icon { color: #EC8A6C; margin-bottom: 4px; }
.big-pick:not(.has-image) .big-card-icon { color: #fff; }
.big-card-sub { margin: 0; font-size: .9rem; font-weight: 600; opacity: .9; }
.big-card-desc { margin: 0; font-size: .95rem; line-height: 1.4; opacity: .9; }
.big-card-cta { margin-top: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 1rem var(--font-ui); background: #C24D2C; color: #fff; cursor: pointer; }
.big-pick:not(.has-image) .big-card-cta { background: #fff; color: #C24D2C; }
.big-card-cta:disabled { opacity: .6; }
.card-chip { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(8,13,22,.45); color: #fff; font: 700 .78rem var(--font-ui); cursor: pointer; }
.card-gear { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(8,13,22,.45); color: #fff; cursor: pointer; }
.hero-dots { display: none; justify-content: center; gap: 6px; }
.hero-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.hero-dots i.on { width: 20px; background: var(--acc); }
.quick-chips { display: flex; gap: 8px; }
.quick-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); text-decoration: none; font: 600 .9rem var(--font-ui); cursor: pointer; }
.quick-chip svg { color: var(--acc-text); }
@media (max-width: 899px) {
  .home-hero { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -16px; padding: 4px 9vw; scroll-padding: 0 9vw; }
  .home-hero::-webkit-scrollbar { display: none; }
  .big-card { flex: 0 0 82vw; max-width: 380px; height: min(440px, 54dvh); scroll-snap-align: center; }
  .big-card-body h2 { font-size: 2.85rem; }
  .hero-dots { display: flex; }
  .quick-chips { margin: 0 -16px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; }
}
.card-preview { height: 170px; cursor: default; padding: 18px; }
.card-preview .big-card-body h2 { font-size: 2rem; }
.card-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; }
.card-opt.on { border-color: var(--acc); background: var(--acc-soft); }
.card-opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acc); flex: none; }
.card-opt span { display: grid; gap: 2px; }

/* ============ library: restyle ============ */
.round-acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.round-acc:hover { background: var(--acc); filter: brightness(1.08); }
.round-btn.has-badge { position: relative; }
.round-btn.has-badge::after { content: ""; position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--bg); }
.lib-toolbar { flex-wrap: nowrap; }
.lib-toolbar .search-wrap { flex: 1 1 auto; }
.lib-toolbar .search-wrap .input { min-height: 44px; border-radius: 14px; background: var(--surface-2); border-color: transparent; }
.quick-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.quick-filters::-webkit-scrollbar { display: none; }
.qf { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font: 700 .82rem var(--font-ui); cursor: pointer; }
.qf.on { background: var(--acc); color: var(--acc-ink); }
.lib-count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lib-count-row .muted { margin: 0; }
@media (max-width: 899px) { .quick-filters { margin: 0 -16px; padding: 2px 16px; } }

/* ============ tribute: restyle ============ */
.seg-full { display: flex; width: 100%; box-sizing: border-box; margin-top: 4px; }
.seg-full .seg-btn { flex: 1; justify-content: center; min-height: 40px; }
.page-actions .round-btn { margin-left: 2px; }
.person-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 6px; }
.person-rail::-webkit-scrollbar { display: none; }
.person-big { position: relative; flex: 0 0 260px; height: 300px; scroll-snap-align: start; border: 0; border-radius: 26px; overflow: hidden; padding: 0; background: var(--surface-3); color: #fff; text-align: left; cursor: pointer; isolation: isolate; font: inherit; }
.person-big.is-none { background: var(--surface-2); color: var(--ink); cursor: default; }
.person-big-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.person-big-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8,13,22,.05) 35%, rgba(8,13,22,.85)); }
.person-big.is-none .person-big-bg::after { display: none; }
.person-big-total { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 800; font-size: .9rem; }
.person-big-body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; }
.person-big-body strong { font: 600 2rem/1 var(--font-display); }
.person-big-body small { font-size: .82rem; opacity: .9; }
.person-big-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.person-big-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); }
.section-h { margin: 0; font-size: 1.05rem; }
.latest-loads { margin-top: 10px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .latest-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 899px) { .person-rail { margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px; } }
.tribute-content, .tribute-head { min-width: 0; display: grid; gap: 12px; }
.person-rail { min-width: 0; }
.lib-count-row { flex-wrap: nowrap; }
.lib-count-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lib-count-tools .select-sm { min-height: 36px; max-width: 170px; font-size: .85rem; padding-top: 0; padding-bottom: 0; }
.lib-count-row > .muted { white-space: nowrap; }
.lib-count-tools .select-sm { max-width: 150px; }
.lib-count-tools .btn-sm { min-height: 36px; padding: 0 12px; }

/* ============ no zooming, no sideways scrolling ============ */
html { overflow-x: hidden; overflow-x: clip; touch-action: manipulation; }
body { overflow-x: hidden; overflow-x: clip; max-width: 100vw; }
.modal-body { overflow-x: hidden; }
.field { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.field > *, .stack > *, .setting-col > * { min-width: 0; }
.modal-body .seg { flex-wrap: wrap; overflow: visible; border-radius: 18px; }
.modal-body .seg-btn { flex: 1 1 auto; justify-content: center; }
/* iPhone zooms into any field under 16px when tapped */
@media (pointer: coarse), (max-width: 899px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .input, .select, .select-sm { font-size: 16px !important; }
}
.setting-row { min-width: 0; }
.select-row { flex-wrap: wrap; }
.select-row > .select, .select-row select { min-width: 0; max-width: 100%; flex: 1 1 180px; }
.select-row > span, .select-row > div:first-child { min-width: 0; flex: 1 1 160px; }
.stack, .setting-col, .stack-s { grid-template-columns: minmax(0, 1fr); }
.setting-col > .setting-row, .setting-col > .field, .setting-col > .pmv-checks, .setting-col > .row { justify-self: stretch; }
.select-row .select { width: auto; }

/* ============ sync ============ */
.sync-tips { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
.sync-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sync-choice { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; text-align: center; }
.sync-choice svg { color: var(--acc-text); }
.sync-choice small { color: var(--muted); }
.sync-code { text-align: center; font: 700 2.6rem/1.1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; padding: 18px; border-radius: 18px; background: var(--surface-2); color: var(--ink); }
.sync-code.dim { font-size: 1.6rem; opacity: .7; }
.sync-status { margin: 0; text-align: center; font-weight: 600; }
.sync-input { text-align: center; font: 700 1.6rem var(--font-mono, ui-monospace, monospace) !important; letter-spacing: .12em; text-transform: uppercase; }
.sync-bar { display: grid; gap: 6px; }
.sync-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 0; }
.sync-done svg { color: var(--ok); }
.sync-done.is-error svg { color: var(--danger); }
.sync-done h3 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }
.sync-done p { margin: 0; color: var(--ink-2); }
.sync-bar .progress { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.sync-bar .progress-fill { height: 100%; border-radius: 5px; background: var(--acc); transition: width .2s; }

/* ============ live ============ */
@media (min-width: 900px) { .home-hero { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.big-live { background: #7A2E1B; }
.big-card-badge { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: #E0322B; color: #fff; font: 800 .72rem var(--font-ui); letter-spacing: .08em; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.live-card { position: relative; aspect-ratio: 4 / 3; border: 0; border-radius: 18px; overflow: hidden; padding: 0; background: var(--surface-3); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.live-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8,13,22,.85)); }
.live-dot { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: #E0322B; font: 800 .65rem var(--font-ui); letter-spacing: .08em; }
.live-card-body { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: grid; gap: 1px; }
.live-card-body strong { font-size: 1rem; }
.live-card-body small { font-size: .72rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-row { align-items: center; gap: 10px; }
.live-row .grow { display: grid; min-width: 0; }
.live-error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); margin: 0; }
.live-player { display: grid; gap: 12px; }
.live-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 70dvh; border-radius: 14px; overflow: hidden; background: #000; }
.live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (orientation: portrait) and (max-width: 700px) { .live-frame-wrap { aspect-ratio: 3 / 4; } }
.live-switch { display: flex; gap: 8px; }
.live-adv summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.round-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E0322B; color: #fff; font: 800 .72rem var(--font-ui); letter-spacing: .06em; border: 0; cursor: pointer; }
.person-live { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pmv-live-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #E0322B; color: #fff; font: 800 .68rem var(--font-ui); letter-spacing: .08em; }
.pmv-shot > .pmv-live-tag { position: absolute; top: calc(var(--sat, 0px) + 70px); left: 14px; z-index: 3; }
.pmv-pip { position: absolute; right: 12px; bottom: calc(var(--sab, 0px) + 84px); z-index: 6; width: min(42vw, 360px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.5); display: grid; grid-template-rows: 1fr auto; }
.pmv-pip-frame { width: 100%; height: 100%; border: 0; }
.pmv-pip-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(8,13,22,.85); font-size: .75rem; font-weight: 700; }
.pmv-pip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmv-pip-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
@media (orientation: portrait) { .pmv-pip { width: min(56vw, 300px); aspect-ratio: 3 / 4; } }
.live-card { cursor: default; }
.live-card-main { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.live-card-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8,13,22,.85)); }
.live-card::after { display: none; }
.live-card-edit { position: absolute; top: 6px; right: 6px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(8,13,22,.6); color: #fff; cursor: pointer; }

/* ============ app lock ============ */
#lock { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--bg); color: var(--ink); padding: calc(var(--sat, 0px) + 20px) 20px calc(var(--sab, 0px) + 20px); overflow-y: auto; }
#lock[hidden] { display: none; }
html.is-locked body { overflow: hidden; }
html.is-locked #app, html.is-locked #reels, html.is-locked #pmv{ visibility: hidden; }
html.is-locked .toasts { visibility: hidden; }
.lock-text { margin: 0; text-align: center; }
.lock-box { display: grid; justify-items: center; gap: 14px; width: min(320px, 100%); }
.lock-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--acc); color: var(--acc-ink); }
html.is-discreet .lock-mark { background: #FFD65C; color: #6B5214; }
.lock-box h1 { margin: 0; font: 600 1.5rem var(--font-display); }
.lock-dots { display: flex; gap: 14px; min-height: 16px; }
.lock-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-2); }
.lock-dots i.on { background: var(--ink); border-color: var(--ink); }
.lock-msg { margin: 0; min-height: 1.2em; color: var(--danger); font-weight: 600; text-align: center; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; margin-top: 6px; }
.lock-pad.shake { animation: lockShake .35s; }
@keyframes lockShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lock-key { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font: 500 1.8rem var(--font-ui); cursor: pointer; display: grid; place-items: center; }
.lock-key:active { background: var(--surface-3); }
.lock-bio { background: transparent; color: var(--acc-text); }
.lock-forgot { margin-top: 4px; }
html.is-discreet .brand-mark { background: #FFD65C; color: #6B5214; }

/* ============ stroke game ============ */
#stroke { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#stroke[hidden] { display: none; }
.stroke-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.stroke-photo.on { opacity: 1; }
.stroke-photo img, .stroke-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stroke-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.stroke-ring { position: absolute; left: 50%; top: 55%; width: min(62vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 40px rgba(255,255,255,.25); transform: translate(-50%, -50%) scale(.62); pointer-events: none; z-index: 2; }
.stroke-ring-inner { position: absolute; inset: 22%; border-radius: 50%; background: rgba(255,255,255,.18); }
.stroke-ring.is-hold { border-color: #F2B544; }
.stroke-ring.is-off { border-color: #E25C4A; border-style: dashed; }
.stroke-phase { position: absolute; left: 0; right: 0; top: calc(var(--sat, 0px) + 74px); text-align: center; font: 700 1.5rem var(--font-display); letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0,0,0,.7); z-index: 3; }
.stroke-phase.hold, .stroke-phase.stop { color: #F2B544; }
.stroke-phase.burst { color: #FF8A5B; }
.stroke-card { position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 110px); transform: translateX(-50%); width: min(86vw, 380px); padding: 14px 18px; border-radius: 16px; background: rgba(20,24,32,.88); border: 1px solid rgba(255,255,255,.18); text-align: center; font-weight: 600; font-size: 1.05rem; z-index: 4; }
.stroke-card.hidden { display: none; }
#stroke .pmv-top { z-index: 5; }
.stroke-stats { display: flex; gap: 10px; flex-wrap: nowrap; white-space: nowrap; font-size: .82rem; min-width: 0; overflow: hidden; justify-content: center; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.stroke-stats strong { font-size: 1rem; }
.stroke-stats span:empty { display: none; }
.stroke-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 24px 14px calc(var(--sab, 0px) + 16px); background: linear-gradient(to top, rgba(0,0,0,.6), transparent); z-index: 5; }
.stroke-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(0,0,0,.5); color: #fff; font-weight: 600; cursor: pointer; }
.stroke-close-edge { min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; background: #E25C4A; color: #fff; font: 700 1.15rem var(--font-ui); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.stroke-close-edge.hidden { visibility: hidden; }
#stroke.paused .stroke-ring { opacity: .45; }
.session-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 46vh; overflow-y: auto; }
.session-grid .is-chosen { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 10px; }

/* ============ goals and badges ============ */
.goal-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.goal-row.is-done { box-shadow: inset 0 0 0 2px var(--acc); }
.goal-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc); transition: width .3s; }
.goal-bar-sm { width: 64px; flex: none; }
.goal-summary { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.goal-summary .grow { display: grid; gap: 2px; min-width: 0; }
.goal-summary small { color: var(--ink-2); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.badge-grid-sm { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.badge-card { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; min-width: 0; }
.badge-card strong { font-size: .85rem; line-height: 1.2; overflow-wrap: anywhere; }
.badge-card small { font-size: .72rem; color: var(--ink-2); }
.badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); }
.badge-card.is-earned .badge-icon { background: var(--acc); color: var(--acc-ink); }
.badge-card.is-locked strong { color: var(--ink-2); }
.badge-prog { display: block; width: 80%; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.badge-prog i { display: block; height: 100%; background: var(--ink-2); }
.goal-person summary { cursor: pointer; padding: 8px 0; }

/* ============ bookmarks ============ */
.bm-list { display: grid; gap: 8px; }
.bm-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.bm-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 0; color: var(--ink); text-decoration: none; }
.bm-icon { flex: none; color: var(--acc-text); }
.bm-text { display: grid; min-width: 0; }
.bm-text strong, .bm-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-text small { color: var(--ink-2); }
.bm-group { margin: 6px 0 0; font-size: .95rem; }

/* ============ crops ============ */
.crop-stage { display: grid; place-items: center; width: 100%; background: #000; border-radius: 12px; overflow: hidden; min-height: 200px; }
.crop-frame { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-frame img, .crop-frame video { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.crop-overlay { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.crop-box { position: absolute; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.crop-box.is-sel { border-width: 3px; background: color-mix(in srgb, var(--c) 26%, transparent); cursor: move; }
.crop-box-tag { position: absolute; left: -2px; top: -2px; transform: translateY(-100%); padding: 1px 6px; border-radius: 6px 6px 0 0; background: var(--c); color: #111; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.crop-handle { position: absolute; right: -12px; bottom: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 3px solid #111; }
.crop-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; }
.crop-row.is-sel { border-color: var(--c); }
.crop-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.crop-row .select-sm { width: auto; min-width: 110px; flex: 1; }
.crop-times { display: flex; gap: 6px; flex-wrap: wrap; }
.crop-summary { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); gap: 8px; }

/* ============ painting and heatmaps ============ */
.paint-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; touch-action: none; cursor: crosshair; }
.paint-stage { position: relative; width: 100%; height: min(60vh, 520px); background: #000; border-radius: 12px; overflow: hidden; }
.heat-box { position: relative; display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; line-height: 0; }
.heat-img { display: block; max-width: 100%; max-height: 360px; }
.heat-canvas { position: absolute; left: 0; top: 0; pointer-events: none; mix-blend-mode: screen; }

/* ============ JOI ============ */
#joi { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#joi[hidden] { display: none; }
.joi-stage { position: absolute; inset: 0; }
.joi-frame { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .4s; }
.joi-frame.on { opacity: 1; }
.joi-progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.15); z-index: 6; }
.joi-progress i { display: block; height: 100%; width: 0; background: var(--acc); }
#joi .pmv-top { z-index: 5; }
.joi-spm { font-weight: 700; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.joi-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; justify-items: center; gap: 14px; padding: 30px 12px calc(var(--sab, 0px) + 14px); background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.joi-ring { width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(255,255,255,.95); box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 18px rgba(255,255,255,.3); display: grid; place-items: center; transform-origin: center; }
.joi-ring.is-slow { border-color: #F2B544; }
.joi-ring.is-stop { border-color: #E25C4A; background: rgba(226,92,74,.25); }
.joi-ring-num { font-weight: 800; font-size: 1.2rem; }
.joi-btns { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; width: min(100%, 460px); }
.joi-btn { min-height: 54px; border-radius: 16px; border: 0; font: 700 1rem var(--font-ui); color: #fff; cursor: pointer; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.joi-easy.is-on { background: #B98516; }
.joi-hard { background: rgba(226,92,74,.35); }
.joi-hard.is-on { background: #E25C4A; }
.joi-cum { background: var(--acc); color: var(--acc-ink); font-size: 1.1rem; }
#joi.frozen .joi-bottom, #joi.frozen .pmv-top, #joi.frozen .joi-progress { display: none; }
.joi-cum-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; gap: 10px; padding: 14px 14px calc(var(--sab, 0px) + 14px); background: rgba(16,22,32,.94); border-radius: 18px 18px 0 0; color: var(--ink); }
.joi-cum-panel .end { justify-content: flex-end; }
#joi .pmv-empty { z-index: 7; }
.joi-num { display: grid; gap: 4px; flex: 1; min-width: 0; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.2)); background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer; }
.tag-pick small { color: var(--ink-2); font-weight: 500; }
.tag-pick.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.tag-pick.on small { color: inherit; opacity: .8; }
.big-joi { background: #3B1F3A; }
.warn-text { color: var(--danger); }

/* ============ AI detector test ============ */
.detect-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; border-radius: 12px; overflow: hidden; background: #000; justify-self: center; }
.detect-stage:empty { display: none; }
.detect-stage img, .detect-stage canvas { display: block; max-width: 100%; max-height: 58vh; width: auto; height: auto; }
.detect-box { position: absolute; border: 2px solid var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.6); line-height: 1.2; }
.detect-box span { position: absolute; left: -2px; top: -2px; transform: translateY(-100%); padding: 1px 6px; border-radius: 6px 6px 0 0; background: var(--c); color: #111; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.detect-box.label-in span { transform: none; top: 0; left: 0; border-radius: 0 0 6px 0; }
.detect-items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-3); }
.detect-items li i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.detect-items small { font-size: .7rem; }
.detect-model { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); gap: 8px; }

/* ============ AI tags and crops ============ */
.badge-scan { background: #6B4FD8; color: #fff; }
.crop-box.is-sug { border-style: dashed; }
.qf-review { background: #6B4FD8 !important; color: #fff !important; border-color: #6B4FD8 !important; display: inline-flex; align-items: center; gap: 4px; }
.scan-chip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab, 0px) + 74px); z-index: 900; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(20,24,34,.94); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.scan-chip[hidden] { display: none; }
.scan-chip-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
html.reels-open .scan-chip { display: none; }
.scan-labels { display: grid; gap: 6px; }
.scan-label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.scan-label.is-off { opacity: .55; }
.scan-label-on { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.scan-pad { display: grid; gap: 4px; }

/* ============ narrow phones: nothing may push a screen wider than the phone ============ */
.view { grid-template-columns: minmax(0, 1fr); }
.lib-count-row > .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lib-count-tools { flex: 0 1 auto; }
.lib-count-tools .select-sm { flex: 0 1 150px; width: 150px; min-width: 96px; }
.lib-count-tools .btn-sm { flex: none; }
@media (max-width: 370px) { .lib-count-tools .btn-sm { padding: 0 10px; } .lib-count-tools { gap: 6px; } }
@media (max-width: 380px) { .lib-count-tools .select-sm { flex-basis: 132px; width: 132px; font-size: .8rem; } }

/* ============ progression ============ */
.joi-stages { position: absolute; left: 0; right: 0; top: calc(var(--sat, 0px) + 66px); z-index: 5; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.joi-stages i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.joi-stages i.done { background: rgba(255,255,255,.7); }
.joi-stages i.on { background: var(--acc); }
.prog-preset { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.prog-stages { margin: 0; padding-left: 20px; }
.prog-stage { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }

/* ============ camera pace ============ */
.pace-hud { display: flex; align-items: center; gap: 8px; }
.joi-hud:empty, .stroke-hud:empty { display: none; }
.joi-hud { display: flex; justify-content: center; }
.stroke-hud { position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 92px); transform: translateX(-50%); z-index: 5; }
.pace-ring { width: 30px; height: 30px; border-radius: 50%; border: 4px solid #8a93a6; transition: border-color .2s; }
.pace-ring.bump { animation: paceBump .28s ease-out; }
@keyframes paceBump { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pace-nums { font-weight: 800; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); min-width: 70px; }
.pace-hud.is-slow .pace-ring { border-color: #4DA3FF; }
.pace-hud.is-on .pace-ring { border-color: #3DDC84; }
.pace-hud.is-slow .pace-nums { color: #8CC4FF; }
.pace-hud.is-on .pace-nums { color: #7CF0AE; }
.pace-corner { position: absolute; right: 10px; top: calc(var(--sat, 0px) + 74px); z-index: 6; display: grid; justify-items: end; gap: 6px; }
.pace-preview { position: relative; width: 104px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.5); background: #000; padding: 0; cursor: pointer; }
.pace-preview.hidden, .pace-show.hidden { display: none; }
.pace-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pace-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 2px #000; pointer-events: none; }
.pace-rec { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 6px #FF3B30; }
.pace-show { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; }
.pace-show .pace-rec { top: 4px; right: 4px; }
.pace-lost { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.7); color: #FFD08A; font-size: .78rem; font-weight: 700; }
.stroke-cum { min-height: 50px; padding: 0 22px; }
#stroke.frozen .stroke-bottom, #stroke.frozen .pmv-top, #stroke.frozen .stroke-hud, #stroke.frozen .stroke-ring, #stroke.frozen .stroke-phase { display: none; }
.remote-pair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; width: min(88vw, 340px); display: grid; gap: 8px; justify-items: center; text-align: center; padding: 18px; border-radius: 18px; background: rgba(16,22,32,.96); color: var(--ink); }
.remote-pair .sync-code { font-size: 1.8rem; }

/* ============ camera phone ============ */
#remote { position: fixed; inset: 0; z-index: 1100; height: 100vh; height: 100dvh; background: #05070b; color: #fff; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
#remote[hidden] { display: none; }
.remote-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat, 0px) + 10px) 12px 8px; }
.remote-body { overflow-y: auto; padding: 0 14px calc(var(--sab, 0px) + 14px); }
.remote-pairing { max-width: 440px; margin: 0 auto; color: var(--ink); }
.remote-live, .remote-wrap { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; }
.remote-preview { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.remote-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.remote-mid { gap: 10px; }
.remote-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #111; flex: none; }
.remote-thumb:not([src]) { visibility: hidden; }
.remote-status { margin: 0; font-weight: 600; }
.remote-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hold-btn { position: relative; overflow: hidden; min-height: 64px; border-radius: 16px; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 700 1rem var(--font-ui); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn span { position: relative; z-index: 1; }
.hold-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(255,255,255,.35); transition: transform 0s linear; }
.hold-btn.holding .hold-fill { transform: scaleX(1); transition-property: transform; }
.hold-easy { background: #8A6512; }
.hold-hard { background: #A8392E; }
.hold-cum { background: var(--acc); color: var(--acc-ink); }
.hold-sm { min-height: 44px; font-size: .9rem; padding: 0 14px; }
.remote-frozen { position: relative; width: 100%; height: min(50vh, 420px); background: #000; border-radius: 16px; overflow: hidden; }
.remote-wrap .input { color: var(--ink); }
#stroke .pace-corner { top: auto; bottom: calc(var(--sab, 0px) + 140px); }
#stroke .stroke-stats { font-size: .76rem; gap: 8px; text-overflow: ellipsis; }
/* the camera phone: a big preview */
.remote-preview { aspect-ratio: auto; height: min(58vh, 600px); }
.remote-live { gap: 10px; }
/* camera previews whose overlays line up with the picture */
.cam-frame { position: relative; display: grid; place-items: center; background: #000; overflow: hidden; }
.cam-inner { position: relative; }
.cam-inner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.cam-inner.zone-edit { touch-action: none; cursor: crosshair; }
.cam-zone { position: absolute; border: 2px dashed #F2B544; background: rgba(242,181,68,.1); border-radius: 6px; pointer-events: none; }
.cam-zone.hidden { display: none; }
.pace-frame { width: 100%; height: 100%; }
.cam-setup-preview { width: 100%; height: min(48vh, 420px); border-radius: 14px; }
.remote-preview { width: 100%; border-radius: 16px; }
.remote-hint { margin: 0; text-align: center; color: #aab; }
.cam-graph { width: 100%; height: 90px; border-radius: 10px; display: block; }
.cam-read { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }

/* ============ Home card order ============ */
.card-order-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.card-order-row.is-off { opacity: .55; }
.flip-v svg { transform: rotate(180deg); }
.big-girls { background: #4A2A3D; }

/* ============ Girls ============ */
.girls-tiles { margin-bottom: 4px; }
.girls-list { display: grid; gap: 10px; }
.girl-row { background: var(--surface-2); border-radius: 16px; padding: 12px; display: grid; gap: 10px; min-width: 0; }
.girl-head { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; color: var(--ink); text-align: left; padding: 0; cursor: pointer; font: inherit; min-width: 0; }
.girl-cover { width: 56px; height: 56px; border-radius: 12px; flex: none; background: var(--surface-3); background-size: cover; background-position: center; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.girl-text { display: grid; gap: 1px; min-width: 0; }
.girl-text strong { font-size: 1.05rem; }
.girl-text span, .girl-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flip-h { transform: rotate(180deg); color: var(--ink-2); flex: none; }
.girl-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.girl-shot { position: relative; flex: none; width: 72px; height: 96px; border-radius: 10px; border: 0; padding: 0; background: var(--surface-3); background-size: cover; background-position: center; overflow: hidden; cursor: pointer; }
.girl-heat { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.girl-shot-n { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-size: .75rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.girl-photo-wrap { position: relative; }
.girl-photo-stage { position: relative; width: 100%; height: min(52vh, 460px); background: #000; border-radius: 14px; overflow: hidden; }
.girl-photo-ov { position: absolute; pointer-events: none; }
.girl-photo-ov .heat-canvas { position: absolute; inset: 0; }
.girl-part { position: absolute; border: 1.5px dashed rgba(255,255,255,.85); border-radius: 6px; }
.girl-part span { position: absolute; left: 0; top: -18px; font-size: .72rem; color: #fff; text-shadow: 0 1px 3px #000; }
.girl-photo-note { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; white-space: nowrap; }
.girl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.girl-nav.prev { left: 8px; } .girl-nav.next { right: 8px; } .girl-nav.next svg { transform: rotate(180deg); }
.girl-nav:disabled { opacity: .3; }
.girl-views { justify-content: center; }
.girl-view-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--surface-3); background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; font-size: .88rem; }
.girl-view-btn.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.girl-dots { position: static; }
.girl-trib { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.girl-trib-thumb { width: 46px; height: 46px; border-radius: 8px; flex: none; background: var(--surface-3); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.girl-trib .grow { display: grid; min-width: 0; }
.land-box { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.land-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: .9rem; }
.land-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.land-bar i { display: block; height: 100%; background: var(--acc); }
.land-val { text-align: right; color: var(--ink-2); }

/* ============ viewfinder after Cum ============ */
.cum-vf { position: absolute; inset: 0; z-index: 9; background: #000; display: grid; grid-template-rows: 1fr auto; }
.cum-vf-frame { width: 100%; height: 100%; }
.cum-vf-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px calc(var(--sab, 0px) + 14px); background: rgba(16,22,32,.95); color: #fff; }
.cum-vf-count { font-size: 1.1rem; }
.cum-vf-rec { position: static; }
.remote-vf { width: 100%; height: min(62vh, 640px); border-radius: 16px; }
.remote-lens { color: #ccd; }
.pmv-media.pmv-cropped { z-index: 1; }
.girls-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.girls-tiles .tile { padding: 10px 12px; }
.girls-tiles .tile-val { font-size: 1.25rem; }

/* ---------- paint: glossy loads, replay, before / after (v1.17) ---------- */
.paint-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.cock-ov { z-index: 6; }
.paint-photo-holder { width: 100%; }
.paint-photo { position: relative; width: 100%; height: min(52vh, 440px); background: #000; border-radius: 14px; overflow: hidden; touch-action: none; }
.paint-photo.skeleton { background: var(--surface-2, #1c2636); }
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); z-index: 7; pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.5); }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.best-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(227,165,58,.16); color: #e3a53a; font-size: .85rem; }
.layer-box:empty { display: none; }
.girl-part.is-crop { border-style: solid; }
.girl-views.scroll-x { flex-wrap: nowrap; overflow-x: auto; }

/* cock pics: prep editor and badges */
.cock-edit-stage { display: grid; place-items: center; border-radius: 12px; overflow: hidden; padding: 6px;
  background-color: #2a2f38; background-image: linear-gradient(45deg, #3a404b 25%, transparent 25%), linear-gradient(-45deg, #3a404b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #3a404b 75%), linear-gradient(-45deg, transparent 75%, #3a404b 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.cock-edit-cv { display: block; max-width: 100%; max-height: 52vh; touch-action: none; cursor: crosshair; }
.badge-need { background: rgba(255,90,44,.85); color: #fff; }
.badge-ok { background: rgba(60,170,110,.85); color: #fff; }

/* PMV: Cum, camera, frozen */
.pmv-bottom .pmv-cum { padding: 10px 22px; border-radius: 999px; border: 0; font-weight: 600; }
.pmv-hud { bottom: calc(var(--sab, 0px) + 96px); }
.pmv-cum-stage { position: absolute; inset: 0; z-index: 4; background: #000; overflow: hidden; }
#pmv.frozen .pmv-chrome, #pmv.frozen .pmv-hud, #pmv.frozen .pmv-text, #pmv.frozen .pmv-counter { display: none; }

/* Where should I finish? */
.fin-card { position: relative; height: 240px; border-radius: 16px; overflow: hidden; background: var(--surface-2, #1c2636); }
.fin-cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fin-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%); }
.fin-text { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; color: #fff; z-index: 1; }
.fin-name { font-size: 1.6rem; line-height: 1.15; }
.fin-name.tick { animation: fin-tick .12s ease-out; }
.fin-part { font-size: 1.05rem; opacity: .9; min-height: 1.3em; }
@keyframes fin-tick { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }
html.is-locked #app, html.is-locked #reels, html.is-locked #pmv, html.is-locked .modal-backdrop:not(.lock-ok) { visibility: hidden; }
.pace-hud.is-fast .pace-ring { border-color: #FF5A4E; }
.pace-hud.is-fast .pace-nums { color: #FF8C82; }

/* ---------- clean screen on Cum (v1.18) ---------- */
.cum-glaze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.cum-rec-dot { position: absolute; top: calc(var(--sat, 0px) + 14px); right: 14px; width: 10px; height: 10px; border-radius: 50%; background: #E24B4A; z-index: 9; animation: rec-blink 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes rec-blink { 50% { opacity: .35; } }
.cum-sheet { transform: translateY(105%); transition: transform .25s ease; }
.cum-sheet.open { transform: none; }
.cum-handle { position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 4px); transform: translateX(-50%); z-index: 10; width: 96px; height: 30px; border: 0; background: transparent; display: grid; place-items: center; touch-action: none; transition: bottom .25s ease; }
.cum-handle i { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); }
.cum-handle.open { display: none; }
.cum-grab { justify-self: center; width: 96px; height: 18px; margin: -6px 0 -2px; border: 0; background: transparent; display: grid; place-items: center; }
.cum-grab i { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }

/* ---------- Match (v1.18) ---------- */
#match { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#match[hidden] { display: none; }
#match .pmv-top { z-index: 5; }
#match .pmv-empty { z-index: 7; }
#match.frozen .joi-bottom, #match.frozen .pmv-top { display: none; }
.match-title { flex: 1; text-align: center; font-weight: 700; letter-spacing: .02em; }
.match-bottom { gap: 10px; }
.match-status { font-weight: 700; font-size: 1.05rem; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.14); }
.match-status.is-on { background: rgba(59,170,110,.85); }
.match-status.is-off { background: rgba(226,75,74,.6); }
.match-status.is-hard { background: rgba(83,74,183,.75); }
.match-bar { width: min(420px, 92%); height: 10px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; }
.match-bar i { display: block; height: 100%; width: 0; background: #3BAA6E; border-radius: 5px; transition: width .15s linear; }
.match-info { width: min(420px, 92%); display: flex; justify-content: space-between; font-size: .85rem; opacity: .85; }
.big-match { background: #17312A; }
.cock-corner { position: absolute; left: 12px; bottom: calc(var(--sab, 0px) + 150px); z-index: 6; pointer-events: none; transform-origin: 50% 90%; opacity: .95; }
.cock-corner.throb { animation: cock-throb .28s ease-out; }
@keyframes cock-throb { 0% { transform: scale(1); } 35% { transform: scale(1.13, 1.08); } 100% { transform: scale(1); } }
#joi.frozen .cock-corner { display: none; }

/* ---------- Me section (v1.18) ---------- */
.me-box { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.me-title { margin: 0; font-size: 1.25rem; }
.me-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.me-tiles button.tile { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vessel-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vessel-rail::-webkit-scrollbar { display: none; }
.vessel-card { scroll-snap-align: start; display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: #0E1622; cursor: pointer; }
.vessel-head, .vessel-foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.vessel-head span:first-child { color: var(--ink); font-weight: 600; }
.vessel-cv { width: 100%; height: 240px; display: block; }
.vessel-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.vessel-bar i { display: block; height: 100%; background: #F2EEE3; border-radius: 3px; transition: width .4s; }
.vessel-dots { display: flex; justify-content: center; gap: 6px; }
.vessel-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); }
.vessel-dots i.on { width: 18px; background: var(--acc); }
.me-opacity { display: grid; gap: 2px; min-width: 140px; flex: 1; }
.shape-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shape-tile { display: grid; gap: 4px; justify-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #0E1622; color: var(--ink); cursor: pointer; font: inherit; }
.shape-thumb { width: 100%; height: 120px; }
.shape-new { align-content: center; min-height: 170px; }
.size-stage { height: min(56vh, 460px); }
.ass-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ass-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; border: 0; background: #1c2636 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.ass-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .78rem; color: #fff; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.me-tiles .tile-val { font-size: 1.15rem; }

/* ---------- weighed / unweighed loads, ropes (v1.19) ---------- */
.load-fields { display: grid; gap: 8px; }
.load-fields .seg { width: 100%; }
.size-seg .seg-btn { font-size: .8rem; padding-left: 4px; padding-right: 4px; }
.load-fields-body { flex: 1; min-width: 180px; }
.rope-box { display: inline-flex; align-items: center; gap: 6px; }
.rope-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.rope-n { min-width: 22px; text-align: center; }
.badge-weight.is-est { opacity: .85; font-style: italic; }
.bulk-grid .thumb.is-picked { outline: 3px solid var(--acc); outline-offset: -3px; }
.mini-seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px; gap: 2px; }
.mini-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.mini-seg button.on { background: var(--ink); color: var(--bg); }
.vessel-head { align-items: center; gap: 6px; }
.vessel-side { font-size: .75rem; color: var(--muted); }
.vessel-btns { display: flex; gap: 8px; justify-content: flex-end; }
.her-all { display: grid; }
.her-box { padding: 12px; }

/* full-screen vessel replay */
.vessel-replay { position: fixed; inset: 0; z-index: 3000; background: #05080D; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 10px; padding: calc(var(--sat, 0px) + 10px) 14px calc(var(--sab, 0px) + 16px); }
.vr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .95rem; }
.vr-top strong { flex: 1; text-align: center; }
.vr-cv { width: 100%; height: 100%; min-height: 0; display: block; }
.vr-card { display: flex; align-items: center; gap: 10px; background: rgba(36,51,74,.92); border-radius: 14px; padding: 8px 10px; }
.vr-thumb { width: 44px; height: 56px; border-radius: 8px; background: #4A5670 center / cover no-repeat; flex: none; }
.vr-text { flex: 1; min-width: 0; display: grid; }
.vr-text strong { font-size: 1rem; }
.vr-text span { font-size: .8rem; color: #AEB6C4; }
.vr-rope { font-size: .8rem; color: #AEB6C4; white-space: nowrap; }
.vr-prog { display: flex; gap: 3px; height: 5px; }
.vr-prog i { flex: 1; border-radius: 3px; background: #333; }
.vr-prog i.done { background: #F2EEE3; }
.vr-prog i.on { background: var(--acc); }
.vr-prog b { display: block; height: 5px; width: 0; background: #F2EEE3; border-radius: 3px; }
.vr-ctl { display: flex; justify-content: center; gap: 8px; }
.vr-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.load-fields .seg .seg-btn { flex: 1; justify-content: center; }

/* ---------- Me page and card (v1.20) ---------- */
.big-me { background: #2A1F33; }
.big-card-visual { position: absolute; left: 36%; right: -2%; top: 5%; bottom: 40%; z-index: 0; pointer-events: none; }
.me-card-cv { width: 100%; height: 100%; display: block; }
.big-me .big-card-body { position: relative; z-index: 1; }
.me-page .me-box { margin-top: 2px; }
.me-cocks { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px; overflow-x: auto; }
.me-cock { position: relative; height: 84px; border-radius: 10px; border: 0; background: #3E4A62 center / cover no-repeat; cursor: pointer; }
.me-cock-badge { position: absolute; left: 3px; bottom: 3px; font-size: 10px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 6px; }
.me-cock-badge.ok { background: rgba(60,170,110,.9); } .me-cock-badge.need { background: rgba(226,75,74,.9); }
/* Cum look */
.cumlook-prev { width: 100%; height: 170px; border-radius: 14px; background: #0E1622; display: block; }
.cum-swatch { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.cum-swatch i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0,0,0,.25); }
.cum-swatch input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cum-preset { display: inline-flex; align-items: center; gap: 2px; }
.cum-preset-x { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 4px; }
/* shared cut-out editor */
.ce-stage { position: relative; height: min(56vh, 480px); border-radius: 12px; overflow: hidden; touch-action: none;
  background-color: #2a2f38; background-image: linear-gradient(45deg, #3a404b 25%, transparent 25%), linear-gradient(-45deg, #3a404b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #3a404b 75%), linear-gradient(-45deg, transparent 75%, #3a404b 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.ce-cv { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.ce-size { flex-wrap: nowrap; }
.ce-size .range { flex: 1; }
.ce-size-dot { display: inline-block; border-radius: 50%; border: 2px solid var(--acc); flex: none; }
/* Ass vs ass, timelapse */
.vs-replay { grid-template-rows: auto 1fr auto auto; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.vs-col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 0; text-align: center; }
.vs-name { font-weight: 700; font-size: 1.05rem; }
.vs-cv { width: 100%; height: 100%; min-height: 200px; display: block; }
.vs-tot { font-size: .95rem; }
.vs-card { justify-content: center; }
.tl-cv { width: 100%; max-height: 56vh; object-fit: contain; border-radius: 12px; background: #000; }
/* keep pace to advance */
.pace-gate { position: absolute; left: calc(50% - 34px); top: calc(var(--sat, 0px) + 74px); transform: translateX(-50%); z-index: 6; display: grid; justify-items: center; gap: 4px; width: min(170px, 44vw); pointer-events: none; }
.gate-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.gate-bar i { display: block; height: 100%; width: 0; background: #3BAA6E; transition: width .15s linear; }
.gate-hint { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.45); }
.pace-gate.is-on .gate-hint { background: rgba(59,170,110,.85); }
.pace-gate.is-off .gate-hint { background: rgba(226,75,74,.7); }
#joi.frozen .pace-gate, #stroke.frozen .pace-gate { display: none; }

/* ---------- companion (v1.21) ---------- */
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #C24D2C; color: #fff; font: 800 10px/17px var(--font-ui); text-align: center; }
.side-link { position: relative; }
.side-link .tab-badge { position: static; margin-left: auto; }
.welcome-comp { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }
.comp-pair .sync-done h3 { margin-top: 6px; }
.comp-words { padding: 18px; border-radius: 16px; background: var(--surface-2); text-align: center; font: 700 1.6rem/1.2 var(--font-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.comp-status { margin: 0; }
.comp-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.comp-steps li { display: grid; gap: 2px; }
.req-seg { width: 100%; }
.req-seg .seg-btn { flex: 1; }
.req-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.req-row.is-new { border-color: #C24D2C; box-shadow: inset 3px 0 0 #C24D2C; }
.req-row.is-flat { cursor: default; }
.req-row .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #E2603B; }
.req-thumb { flex: none; position: relative; width: 50px; height: 64px; border-radius: 10px; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: end; padding: 4px; box-sizing: border-box; color: #fff; }
.req-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.req-text strong { font-weight: 700; }
.req-text small { font-size: .82rem; color: var(--ink-2); overflow-wrap: anywhere; }
.req-text small.muted { color: var(--muted); }
.req-note { color: var(--ink) !important; }
.req-reply { font-style: italic; }
.req-right { flex: none; display: grid; justify-items: end; gap: 1px; }
.req-right small { font-size: .8rem; }
.accent-text { color: #EC8A6C; }
.req-pill { flex: none; padding: 4px 10px; border-radius: 999px; font: 700 .76rem var(--font-ui); background: var(--surface-3); color: var(--ink); }
.req-pill.st-pending { background: #C24D2C; color: #fff; }
.req-pill.st-accepted { background: #1D4D3A; color: #9FE1CB; }
.req-pill.st-done { background: #24334A; color: #9FE1CB; border: 1px solid #3E4A62; }
.req-pill.st-declined { background: #3A2230; color: #F09595; }
html[data-theme="light"] .req-pill.st-done { background: #E1F5EE; color: #0F6E56; border-color: #9FE1CB; }
html[data-theme="light"] .req-pill.st-accepted { background: #E1F5EE; color: #0F6E56; }
html[data-theme="light"] .req-pill.st-declined { background: #FCEBEB; color: #A32D2D; }
.req-noimg { display: grid; place-items: center; min-height: 160px; padding: 20px; border-radius: 16px; background: var(--surface-2); color: var(--muted); text-align: center; }
.req-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-val.small-val { font-size: 1.2rem; }
.req-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 14px; border-radius: 16px; border: 1.5px dashed var(--line); background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.req-drop.has-file { border-color: #EC8A6C; background: var(--surface-2); }
.req-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.req-pick-grid .thumb.is-picked, .comp-share-grid .thumb.is-shared { outline: 3px solid #EC8A6C; outline-offset: -3px; }
.share-flag { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: #C24D2C; color: #fff; font: 700 .7rem var(--font-ui); }
.share-flag:empty { display: none; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.stepper .icon-btn { min-height: 34px; min-width: 34px; width: 34px; border-radius: 50%; }
.stepper-val { min-width: 74px; text-align: center; font-size: .86rem; font-weight: 600; }
.btn-block { width: 100%; justify-content: center; }
.comp-trib { padding: 12px; border-radius: 16px; background: var(--surface-2); }
.react-chip { padding: 3px 10px; border-radius: 999px; background: #C24D2C; color: #fff; font: 700 .76rem var(--font-ui); }
.comp-thread { display: grid; gap: 8px; }
.comp-thread .row .input { flex: 1; min-width: 0; }
.bubble { position: relative; max-width: 82%; display: grid; gap: 2px; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble.mine { justify-self: end; background: #7A3A27; border-color: #7A3A27; color: #fff; }
.bubble.theirs { justify-self: start; }
.bubble small { font-size: .72rem; opacity: .75; }
.bubble-acts { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.bubble.mine .link-btn { color: #F5C4B3; }
.bubble-heart { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.bubble-heart.on { color: #E2603B; }
.bubble-hearted { color: #F5C4B3; display: inline-flex; }
.comp-cum { position: fixed; inset: 0; z-index: 1500; background: #000; display: grid; place-items: center; }
.comp-cum-frame { position: relative; max-width: 100vw; max-height: 100dvh; display: grid; place-items: center; }
.comp-cum-frame img, .comp-cum-frame video { display: block; max-width: 100vw; max-height: 100dvh; object-fit: contain; }
/* the companion device */
.comp-home { display: grid; gap: 14px; margin-top: 14px; }
.comp-home .big-card { height: 250px; padding: 20px; border-radius: 26px; }
.comp-home .big-card-body h2 { font-size: 2.2rem; }
.comp-home .big-ctrib:not(.has-image) { background: #4A5670; }
.comp-home .big-creq { background: #1E3340; height: 210px; }
.comp-home .big-creq .big-card-icon { color: #9FE1CB; }
.comp-badge { background: #C24D2C !important; }
.react-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.react-btn { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 6px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .74rem var(--font-ui); cursor: pointer; transition: transform .12s; }
.react-btn.on { background: #C24D2C; border-color: #C24D2C; color: #fff; }
.react-btn:active { transform: scale(.94); }
.comp-line { margin: 0; font-weight: 600; }
.trib-heart { position: absolute; right: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #C24D2C; color: #fff; }
.trib-dot { position: absolute; left: 8px; top: 8px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #E2603B; box-shadow: 0 0 0 2px var(--bg); }
.comp-status-tile strong { font-size: 1.05rem; }
.comp-status-tile .live-dot, .comp-status-tile i.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3BAA6E; }
.comp-status-tile .live-dot { position: static; padding: 0; letter-spacing: 0; }
.big-requests { background: #1E3340; }
.big-requests:not(.has-image) .big-card-icon { color: #9FE1CB; }
.comp-home .big-me .big-card-visual { left: 50%; right: 2%; top: 6%; bottom: 52%; }
.deliv { display: block; font-size: .76rem; color: var(--muted); }
.deliv-live, .deliv-mail, .deliv-file { color: #5DCAA5; }
.deliv-wait { color: #EF9F27; }
.deliv-none { display: none; }
.bubble.mine .deliv { color: #F5C4B3; }
.react-status { grid-column: 1 / -1; text-align: center; }
.stack-xs { display: grid; gap: 4px; }
.stack-xs > .deliv { padding-left: 12px; }
.comp-girl { margin: 4px 0; }
.set-search { margin: 4px 0 12px; }
.set-groups { display: grid; gap: 8px; }
.set-group { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.set-group > svg:first-child { color: #EC8A6C; flex: none; }
.set-group > svg:last-child { color: var(--muted); flex: none; }
.set-group-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.set-group-text strong { font-weight: 700; }
.set-group-text small { color: var(--muted); font-size: .82rem; }
.set-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.more-opts { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.more-opts > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.more-opts > .more-body { padding: 0 14px 12px; display: grid; gap: 10px; }
.basics-label { margin: 6px 0 -2px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: none; }
.trib-tabs { width: 100%; }
.trib-tabs .seg-btn { flex: 1; }
/* She leads */
#sheleads { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#sheleads[hidden] { display: none; }
#sheleads .pmv-top { z-index: 5; }
#sheleads.frozen .pmv-top, #sheleads.frozen .sl-bottom, #sheleads.frozen .sl-msg, #sheleads.frozen .sl-tag { display: none; }
.sl-stage { position: absolute; inset: 0; }
.sl-frame { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity .4s; }
.sl-frame.on { opacity: 1; }
.sl-media { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 2s ease-in-out; }
.sl-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; color: #C9CFDA; }
.sl-wait h2 { margin: 0; color: #fff; }
.sl-msg { position: absolute; left: 12px; right: 128px; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 6; padding: 12px 14px; border-radius: 14px; background: rgba(15,23,36,.85); font: 700 1.15rem var(--font-ui); text-align: center; opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .35s; pointer-events: none; overflow-wrap: anywhere; }
.sl-msg.in { opacity: 1; transform: none; }
.sl-tag { position: absolute; left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 4; padding: 4px 10px; border-radius: 999px; background: #C24D2C; color: #fff; font: 700 .76rem var(--font-ui); }
.sl-live { font: 700 .78rem var(--font-ui); color: #5DCAA5; margin-left: auto; margin-right: 6px; }
.sl-live.off { color: #AEB4BF; }
.sl-bottom { position: absolute; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); left: auto; z-index: 4; background: transparent; }
.sl-ask { position: absolute; inset: auto 16px calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 8; }
.sl-ask-card { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(15,23,36,.94); text-align: center; }
.sl-ask-card strong { font: 700 1.5rem var(--font-display); }
.sl-ask-card .btn { min-height: 50px; justify-content: center; }
.sl-pace { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sl-pace span { display: grid; }
.sl-pace small { color: var(--muted); font-size: .8rem; }
.sl-pace strong { font-size: 1.3rem; }
.sl-pace.on { border-color: #1D9E75; }
.sl-now { text-align: right; }
.sl-album { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sl-album .thumb.is-picked { outline: 3px solid #EC8A6C; outline-offset: -3px; }
.sl-cum-box { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface-2); text-align: center; margin-top: 8px; }
.sl-cum-btn { min-height: 54px; font-size: 1.1rem; justify-content: center; }
.comp-home .big-live { background: #3B1F3A; }
/* companion games */
.play-arrive strong { font: 600 1.4rem var(--font-display); }
.play-dare-line { margin: 0; font: 600 1.15rem var(--font-display); }
.play-ref { max-width: 140px; }
.play-goal { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.play-goal.g-done { border-color: #1D9E75; }
.play-goal.g-missed { opacity: .65; }
.play-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.play-bar i { display: block; height: 100%; background: #C24D2C; }
.play-next, .play-mood { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.play-next span, .play-mood span { display: grid; }
.play-mood { border: 1px solid #C24D2C; }
.play-guess { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.play-guess.compact { padding: 8px 10px; background: transparent; text-align: left; }
.play-wheel { width: 180px; height: 180px; margin: 10px auto; border-radius: 50%; border: 8px solid #C24D2C; display: grid; place-items: center; text-align: center; padding: 16px; box-sizing: border-box; }
.play-wheel strong { font: 600 1.2rem var(--font-display); }
.play-wheel.done { border-color: #1D9E75; }
.play-photo { width: 100%; border-radius: 12px; }
.stack.center { justify-items: center; }

/* ---------- size (v1.25) ---------- */
.size-ov { cursor: grab; }
.size-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.size-card { background: var(--surface-2, rgba(255,255,255,.05)); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.size-card strong { font-size: 15px; line-height: 1.25; }
.size-stat { display: flex; justify-content: space-between; gap: 8px; background: var(--surface-2, rgba(255,255,255,.05)); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.me-cock { position: relative; }
.me-cock-rate { position: absolute; left: 4px; right: 4px; top: 4px; font-size: 10px; text-align: center; background: rgba(15,23,36,.82); color: #fff; border-radius: 999px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-cock-rate.fav { background: #EF9F27; color: #412402; font-weight: 600; }
.sl-size-ov { z-index: 6; }

/* ---------- Girls gallery, leaderboard, profile (v1.26) ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .gal-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.gal-card { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.gal-cover, .pod-cover, .p2-cover, .gq-cover, .board-av { position: relative; background: var(--surface-3); background-size: cover; background-position: center; display: grid; place-items: center; }
.gal-cover { height: 210px; }
.gal-letter { font: 700 2rem var(--font-ui); color: var(--ink-2); opacity: .6; }
.has-cover > .gal-letter { display: none; }
.gal-badge { position: absolute; top: 8px; left: 8px; background: #C24D2C; color: #fff; font: 700 .7rem var(--font-ui); border-radius: 999px; padding: 2px 8px; }
.gal-badge.b2 { top: 30px; background: #1F6F5A; }
.gal-usual { position: absolute; right: 8px; top: 182px; background: rgba(15, 23, 36, .85); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; }
.gal-text { display: grid; gap: 1px; padding: 8px 10px 10px; }
.gal-text strong { font-size: .98rem; }
.gal-line { font-size: .8rem; color: var(--ink-2); }
.gq-cover { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.gq-name { font-size: 1.15rem; }
.gq-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gq-tiles .tile { padding: 8px 10px; }
.board-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface); border-radius: 12px; padding: 4px; }
.board-seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 700 .85rem var(--font-ui); cursor: pointer; }
.board-seg button.on { background: #C24D2C; color: #fff; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.podium-1, .podium-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; padding: 0; }
.pod-cover { width: 100%; height: 130px; border-radius: 16px; border: 3px solid transparent; }
.pod-at-0 .pod-cover { height: 170px; }
.pod-at-2 .pod-cover { height: 118px; }
.pod-gold { border-color: #EF9F27; } .pod-silver { border-color: #C9CFDA; } .pod-bronze { border-color: #D9895B; }
.pod-rank { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--font-ui); color: #141E2E; z-index: 1; }
.pod-gold .pod-rank { background: #EF9F27; } .pod-silver .pod-rank { background: #C9CFDA; } .pod-bronze .pod-rank { background: #D9895B; }
.board-list { display: grid; gap: 6px; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.board-rank { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.board-av { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.board-mid { display: grid; gap: 4px; min-width: 0; }
.board-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.board-bar i { display: block; height: 100%; background: #EC8A6C; border-radius: 3px; }
.land-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.land-stack i { display: block; height: 100%; }
.land-key { display: inline-flex; align-items: center; gap: 5px; }
.land-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.p2-hero { position: relative; margin: -4px -4px 0; border-radius: 18px; overflow: hidden; }
.p2-cover { height: 280px; }
.p2-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 46, 0) 45%, rgba(20, 30, 46, .92) 100%); pointer-events: none; }
.p2-cover-btn { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(15, 23, 36, .75) !important; color: #fff !important; }
.p2-id { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; color: #fff; }
.p2-id h2 { margin: 0; font-size: 1.7rem; }
.p2-id p { margin: 0; color: #D9D9D7; }
.p2-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.p2-actions .btn { min-height: 52px; justify-content: center; }
.p2-tabs { position: sticky; top: -1px; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--bg); padding: 6px 0; }
.p2-tabs button { min-height: 40px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: 700 .9rem var(--font-ui); cursor: pointer; }
.p2-tabs button.on { color: var(--ink); border-bottom-color: #EC8A6C; }
.p2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p2-cover-tag { position: absolute; top: 6px; left: 6px; background: #EF9F27; color: #412402; border-radius: 999px; padding: 1px 7px; font: 700 .68rem var(--font-ui); z-index: 2; }
.p2-sent { color: var(--ok); }
.chip-plain { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.waiting { grid-template-columns: 1fr auto; display: flex; }

/* ---------- Glaze game, Line it up, Me (v1.27) ---------- */
#glaze, #lineup, #play { position: fixed; inset: 0; z-index: 1100; background: #0B111B; color: #E4E4E2; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none; }
body.glz-open, body.lu-open { overflow: hidden; }
.glz-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--sat) + 8px) 12px 8px; display: grid; gap: 8px; background: linear-gradient(180deg, rgba(11,17,27,.92), rgba(11,17,27,.0)); z-index: 3; }
.glz-title { font-size: 1rem; }
.glz-seg { display: flex; background: rgba(34,49,74,.9); border-radius: 10px; padding: 3px; gap: 3px; flex: 1; }
.glz-seg button { flex: 1; min-height: 34px; border: 0; border-radius: 8px; background: transparent; color: #E4E4E2; font: 700 .8rem var(--font-ui); cursor: pointer; }
.glz-seg button.on { background: #C24D2C; color: #fff; }
.glz-stage { flex: 1; position: relative; min-height: 0; z-index: 1; }
.glz-stage .paint-photo { position: absolute; inset: 0; height: 100%; border-radius: 0; background: #000; }
.glz-ov { touch-action: none; }
.glz-hud { position: absolute; left: 12px; top: calc(var(--sat) + 132px); z-index: 3; background: rgba(15,23,36,.85); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.glz-her { position: absolute; right: 12px; top: calc(var(--sat) + 132px); z-index: 3; background: #C24D2C; color: #fff; border-radius: 999px; padding: 3px 10px; font: 700 .8rem var(--font-ui); }
.glz-over { position: absolute; left: 24px; right: 24px; top: 38%; z-index: 4; background: rgba(15,23,36,.94); border-radius: 18px; padding: 18px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.glz-score { font-size: 2.2rem; color: #EC8A6C; }
.glz-ctl { padding: 10px 12px calc(var(--sab) + 12px); display: grid; gap: 10px; background: #141E2E; }
.glz-aim, .lu-see { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #AEB4BF; }
.glz-aim input, .lu-see input { flex: 1; }
.glz-pad { position: relative; overflow: hidden; min-height: 76px; border-radius: 14px; border: 1px dashed #3E4A62; background: #1E2A3E; color: #E4E4E2; display: grid; place-items: center; font: 700 .9rem var(--font-ui); touch-action: none; cursor: ns-resize; }
.glz-pad > span { position: relative; }
.glz-fire { border: 0; background: #C24D2C; color: #fff; cursor: pointer; }
.glz-meter { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(236,138,108,.38); }
.glz-fire .glz-meter { background: rgba(255,255,255,.25); }
.lu-cam { position: relative; flex: 1; min-height: 0; background: #000; cursor: pointer; }
.lu-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lu-video.mirror { transform: scaleX(-1); }
.lu-her { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lu-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(15,23,36,.8); border-radius: 999px; padding: 4px 12px; font-size: .8rem; white-space: nowrap; }
.lu-bar { padding: calc(var(--sat) + 0px) 12px calc(var(--sab) + 12px); display: grid; gap: 8px; background: #141E2E; padding-top: 10px; }
.lu-val { min-width: 36px; color: #E4E4E2; }
.lu-busy { position: absolute; inset: 0; z-index: 5; background: rgba(11,17,27,.8); display: grid; place-content: center; gap: 6px; text-align: center; }
.lu-edit { position: absolute; inset: 0; z-index: 4; background: #0B111B; padding: calc(var(--sat) + 10px) 12px calc(var(--sab) + 12px); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 10px; }
.lu-outbox { min-height: 0; display: grid; place-items: center; }
.lu-out { max-width: 100%; max-height: 100%; border-radius: 12px; touch-action: none; }
.me2-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.me2-jar { position: relative; width: 64px; height: 92px; flex: none; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); overflow: hidden; }
.me2-jar i { position: absolute; left: 0; right: 0; bottom: 0; background: #F6EEDA; }
.me2-hero .grow { display: grid; gap: 1px; }
.me2-big { font-size: 1.8rem; line-height: 1.1; }
.me2-up { color: var(--ok); }
.me2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.me2-btn { min-height: 50px; justify-content: center; }
.me2-size { display: flex; align-items: center; gap: 12px; }
.me2-bar { width: 18px; height: 80px; border-radius: 9px; background: #D98B84; border: 2px solid #F5C4B3; flex: none; }
.me2-pace { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.me2-pace .tile { padding: 10px; }
.me2-warn { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #C24D2C 22%, var(--surface)); display: flex; }
.sl-glaze { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sl-shoot { flex: 1; min-height: 64px; font-size: 1.05rem; }
body.glz-open .toasts, body.lu-open .toasts { bottom: auto; top: calc(var(--sat) + 150px); }
.me2-size .grow { display: grid; gap: 1px; }

/* ---------- Home, redesigned; sharing in (v1.28) ---------- */
.home2 .home-head { display: flex; justify-content: space-between; align-items: flex-end; }
.h2-sec { display: grid; gap: 8px; }
.h2-sec.editing { padding: 10px; border-radius: 16px; border: 1px dashed var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.h2-sec.is-hidden { opacity: .5; }
.h2-sechead { display: flex; align-items: center; gap: 8px; }
.h2-sechead strong { flex: 1; }
.h2-grip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); cursor: grab; touch-action: none; }
.h2-mini { min-width: 40px; min-height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 700 .8rem var(--font-ui); cursor: pointer; }
.h2-mini.off { background: #C24D2C; color: #fff; }
.h2-label { font-size: .78rem; color: var(--muted); }
.h2-need { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.h2-need .grow { display: grid; }
.h2-need small { color: var(--muted); }
.h2-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.h2-cta { font: 700 .85rem var(--font-ui); }
.n-pink { background: color-mix(in srgb, #ED93B1 16%, var(--surface)); } .n-pink .h2-dot { background: #ED93B1; } .n-pink .h2-cta { color: #D4537E; }
.n-rust { background: color-mix(in srgb, #EC8A6C 16%, var(--surface)); } .n-rust .h2-dot { background: #EC8A6C; } .n-rust .h2-cta { color: #C24D2C; }
.n-teal { background: color-mix(in srgb, #5DCAA5 16%, var(--surface)); } .n-teal .h2-dot { background: #5DCAA5; } .n-teal .h2-cta { color: #1D9E75; }
.n-amber { background: color-mix(in srgb, #EF9F27 16%, var(--surface)); } .n-amber .h2-dot { background: #EF9F27; } .n-amber .h2-cta { color: #BA7517; }
html[data-theme="dark"] .n-pink .h2-cta { color: #ED93B1; } html[data-theme="dark"] .n-rust .h2-cta { color: #EC8A6C; } html[data-theme="dark"] .n-teal .h2-cta { color: #5DCAA5; } html[data-theme="dark"] .n-amber .h2-cta { color: #EF9F27; }
.h2-big.big-card { min-height: 0; }
.h2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 40px; }
@media (min-width: 720px) { .h2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h2-tile { position: relative; display: grid; align-content: start; gap: 6px; min-height: 92px; padding: 12px; border: 1px solid transparent; border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.h2-tile.editing { border-color: var(--line); touch-action: none; cursor: grab; }
.h2-tile.is-hidden { opacity: .45; }
.h2-tile.is-disabled { opacity: .6; }
.h2-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.tint-play .h2-ic { background: color-mix(in srgb, #EC8A6C 22%, transparent); color: #C24D2C; }
.tint-her .h2-ic { background: color-mix(in srgb, #ED93B1 22%, transparent); color: #D4537E; }
.tint-girls .h2-ic { background: color-mix(in srgb, #5DCAA5 22%, transparent); color: #1D9E75; }
html[data-theme="dark"] .tint-play .h2-ic { color: #EC8A6C; } html[data-theme="dark"] .tint-her .h2-ic { color: #ED93B1; } html[data-theme="dark"] .tint-girls .h2-ic { color: #5DCAA5; }
.h2-t { display: grid; gap: 1px; min-width: 0; }
.h2-t small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-badge { position: absolute; top: 10px; right: 10px; background: #C24D2C; color: #fff; border-radius: 999px; padding: 1px 8px; font: 700 .68rem var(--font-ui); }
.h2-state { position: absolute; top: 10px; right: 10px; font: 700 .7rem var(--font-ui); }
.h2-state.on { color: var(--ok); } .h2-state.off { color: var(--muted); }
.quick-chip.editing { touch-action: none; cursor: grab; }
.quick-chip.is-hidden { opacity: .45; }
.h2-dragging { position: relative; z-index: 50; opacity: .9; box-shadow: var(--shadow); }
.h2-over { outline: 2px solid #EC8A6C; outline-offset: 2px; }
.h2-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); }
.h2-week > div { display: grid; }
.inc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inc-thumb { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface-3); background-size: cover; background-position: center; overflow: hidden; }
.inc-thumb video { width: 100%; height: 100%; object-fit: cover; }
.home2 .h2-big.big-card { height: 190px; border-radius: 22px; padding: 18px; }
.home2 .h2-big .big-card-body h2 { font-size: 1.9rem; }
.home2 .h2-big .big-card-desc, .home2 .h2-big .big-card-icon { display: none; }
.home2 .h2-big .big-card-visual { display: none; }
.p2-actions .btn { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .78rem; min-width: 0; white-space: nowrap; }
/* Glaze game v2 (v1.29) */
.glz-pool { display: grid; text-align: left; border: 0; background: transparent; color: #E4E4E2; padding: 0; cursor: pointer; font: inherit; }
.glz-pool small { color: #AEB4BF; text-decoration: underline; text-underline-offset: 2px; }
.glz-two { display: grid; gap: 6px; }
.glz-val { min-width: 52px; color: #E4E4E2; font-size: .78rem; }
.glz-hint { margin: 0; min-height: 44px; display: grid; place-items: center; text-align: center; font-size: .85rem; color: #C9CFDA; border: 1px dashed #3E4A62; border-radius: 14px; padding: 8px; }

/* ---------- v1.30: Glaze focus mode, camera, Live cam, Play, Glazed tab ---------- */
.glz-top, .glz-ctl { transition: opacity .35s; }
.glz-focus .glz-top, .glz-focus .glz-ctl { opacity: 0; pointer-events: none; }
.glz-flesh { pointer-events: none; }
.glz-cam { position: absolute; right: 12px; top: calc(var(--sat) + 160px); width: 92px; height: 124px; border-radius: 12px; overflow: hidden; z-index: 2; background: #1E2A3E; border: 1px solid rgba(255,255,255,.18); cursor: pointer; transition: top .35s; }
.glz-focus .glz-cam { top: calc(var(--sat) + 12px); z-index: 4; }
.glz-cam-v { width: 100%; height: 100%; object-fit: cover; display: block; }
.glz-cam.pic-off .glz-cam-v { visibility: hidden; }
.glz-cam-pace { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15,23,36,.85); color: #fff; font: 700 .72rem var(--font-ui); text-align: center; padding: 3px 0; }
.glz-stage .glz-lc-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.glz-stage .paint-photo.glz-lc-photo { background: transparent; }
.glz-lc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(34,49,74,.9); color: #E4E4E2; font: 700 .8rem var(--font-ui); cursor: pointer; white-space: nowrap; }
.glz-lc-btn.on { background: #C24D2C; color: #fff; }
.glz-lost { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); width: min(300px, 84vw); z-index: 4; border: 0; border-radius: 14px; background: rgba(15,23,36,.94); color: #fff; padding: 12px 16px; font: 600 .9rem var(--font-ui); cursor: pointer; }
.glz-hintcard { position: absolute; left: 18px; right: 18px; top: 26%; z-index: 6; background: rgba(15,23,36,.97); border-radius: 18px; padding: 16px; display: grid; gap: 8px; color: #E4E4E2; }
.glz-hintcard p { margin: 0; font-size: .88rem; color: #C9CFDA; }
.glz-hintcard ul { margin: 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 4px; }
.qf.dim { opacity: .5; }
.glz-pool small.nolink { text-decoration: none; }
.glzd-grid .thumb { position: relative; }
.glzd-tag { position: absolute; left: 5px; top: 5px; background: rgba(15,23,36,.86); color: #E4E4E2; border-radius: 999px; padding: 1px 7px; font: 700 .66rem var(--font-ui); pointer-events: none; }
.glzd-me { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: #C24D2C; color: #fff; display: grid; place-items: center; pointer-events: none; }
.glzd-view { align-items: center; }
.glzd-img { width: 100%; max-height: 68dvh; object-fit: contain; border-radius: 12px; background: #000; touch-action: pan-y; }
.tb-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, rgba(127,127,127,.18)); }
.tb-n { width: 20px; color: var(--muted); font-size: .8rem; text-align: center; }
.tb-bar { width: 70px; height: 8px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; }
.tb-bar i { display: block; height: 100%; background: #EC8A6C; }
.tb-k { min-width: 40px; text-align: right; }
.play-hud { position: static; align-self: flex-start; }
.p2-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.p2-tabs button { font-size: .84rem; padding: 0 2px; }

/* ---------- v1.31: test copy, Match my cum ---------- */
.test-badge { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--sat, 0px) + 2px); z-index: 1300; font-size: .66rem !important; background: #1D9E75; color: #fff; border-radius: 999px; padding: 2px 10px; font: 700 .72rem var(--font-ui); pointer-events: none; opacity: .92; }
html.is-test { --acc: #1D9E75; }
html.is-test body { box-shadow: inset 0 3px 0 #1D9E75; }
.mycum-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mycum-card { display: grid; gap: 4px; }
.mycum-photo { width: 100%; height: auto; border-radius: 10px; cursor: crosshair; touch-action: manipulation; background: #000; }
.mycum-prev { width: 100%; height: 140px; border-radius: 12px; background: #0B111B; cursor: pointer; display: block; }
.mycum-row { display: grid; grid-template-columns: 92px 72px 1fr; align-items: center; gap: 8px; font-size: .88rem; }
.mycum-sw { display: block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(127,127,127,.4); }
.mycum-tex { color: inherit; }
.mycum-splats { display: flex; flex-wrap: wrap; gap: 8px; }
.mycum-splat { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; line-height: 0; }
.mycum-splat canvas { width: 72px; height: 72px; display: block; }
.mycum-splat.off { opacity: .4; }
.mycum-fav { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #C24D2C; color: #fff; display: grid; place-items: center; line-height: 1; }
.mycum-use { flex: none; }

/* ---------- v1.32: Fuck her, Edit jiggle, full-screen Cum tab ---------- */
#jigedit { position: fixed; inset: 0; z-index: 1100; background: #0B111B; color: #E4E4E2; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none; }
#play, #glaze { z-index: 1100; }
.fh-tabs { flex: 1; }
.mycum-color { width: 44px; height: 30px; padding: 0; border: 1px solid rgba(127,127,127,.4); border-radius: 8px; background: none; cursor: pointer; }
body.glz-open .toast { pointer-events: none; }
body.glz-open .toast button { pointer-events: auto; }

/* ---------- v1.33: Fuck her, simplified (photo edge to edge, slim bars, ⚙ panel) ---------- */
#play .glz-stage, #glaze .glz-stage { position: absolute; inset: 0; }
#play .glz-top, #glaze .glz-top { padding: calc(var(--sat) + 8px) 10px 22px; gap: 8px; background: linear-gradient(180deg, rgba(11,17,27,.9) 0%, rgba(11,17,27,.55) 70%, rgba(11,17,27,0) 100%); }
#play .glz-ctl, #glaze .glz-ctl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 24px 12px calc(var(--sab) + 12px); background: linear-gradient(0deg, rgba(11,17,27,.9) 0%, rgba(11,17,27,.55) 65%, rgba(11,17,27,0) 100%); }
#play .glz-hud, #glaze .glz-hud { position: static; align-self: flex-start; }
.fh-row { display: flex; align-items: center; gap: 8px; }
.fh-row .fh-tabs { flex: none; }
.fh-row .fh-tabs button { min-width: 58px; padding: 0 12px; }
.fh-who { flex: 1; min-width: 0; display: grid; text-align: left; border: 0; background: transparent; color: #E4E4E2; padding: 0; cursor: pointer; font: inherit; }
.fh-who strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-who small { color: #AEB4BF; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-caret { color: #AEB4BF; font-weight: 400; }
.fh-picks .qf { flex: none; background: rgba(34,49,74,.9); color: #E4E4E2; border-color: #3E4A62; }
.fh-picks .qf.on { background: #E4E4E2; color: #141E2E; border-color: #E4E4E2; }
#play .glz-top .qf, #glaze .glz-top .qf { min-height: 34px; }
.fh-gear { width: 50px !important; height: 50px !important; border-radius: 14px !important; background: rgba(34,49,74,.92) !important; color: #E4E4E2 !important; flex: none; }
.fh-meter { flex: 1; height: 9px; border-radius: 5px; background: rgba(255,255,255,.16); overflow: hidden; }
.fh-meter i { display: block; height: 100%; width: 0; background: #EC8A6C; transition: width .12s; }
.fh-cum { flex: none; height: 50px; border-radius: 16px; border: 0; background: #C24D2C; color: #fff; font: 700 1rem var(--font-ui); padding: 0 22px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
#play .glz-top .icon-btn, #glaze .glz-top .icon-btn { background: rgba(34,49,74,.9); color: #E4E4E2; }
.glz-focus .glz-top, .glz-focus .glz-ctl { opacity: 0; pointer-events: none; }
.modal-backdrop:has(.fh-panel) { background: rgba(8,12,20,.35); }
.fh-panel .fh-panel-body { gap: 12px; }
.fh-head { font-size: .72rem; color: var(--muted); margin-top: 4px; text-transform: none; }
.glz-cam { top: calc(var(--sat) + 150px); }

/* ---------- v1.34: one photo viewer ---------- */
.pv-modal .modal-body { padding: 4px 12px 12px; display: flex; flex-direction: column; overflow: hidden; }
.pv-modal .modal-head h2 { min-width: 0; flex: 1; }
.pv { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.pv-wrap { position: relative; flex: 1; min-height: 0; }
.pv-stage { height: 100%; min-height: 240px; }
.pv-name { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; min-width: 0; max-width: 100%; cursor: pointer; }
.pv-name strong { font-size: 1.1rem; }
.pv-caret { color: var(--accent, #EC8A6C); }
.pv-sub { font-size: .75rem; color: var(--muted, #AEB4BF); font-weight: 400; }
.pv-chip { position: absolute; border: 0; background: rgba(15, 23, 36, .82); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .8rem; z-index: 3; }
.pv-view { left: 10px; bottom: 10px; cursor: pointer; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; } .pv-nav.next svg { transform: rotate(180deg); }
.pv-nav:disabled { opacity: .3; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; }
.pv-actions .btn { min-height: 48px; justify-content: center; padding-left: 6px; padding-right: 6px; }
.pv-heat { position: relative; height: 180px; border-radius: 12px; background: #000 center / cover no-repeat; overflow: hidden; }
.pv-heat .girl-heat { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-heat-tag { left: 8px; top: 8px; }

/* ---------- v1.34: her page, tall cover and custom stats ---------- */
.p2-tall { display: flex; gap: 12px; align-items: stretch; }
.p2-tall-cover { position: relative; width: 44%; max-width: 220px; flex: none; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; }
.p2-tall-cover .p2-cover { height: 100%; }
.p2-tall-cover .p2-cover-btn { top: auto; bottom: 8px; left: 8px; right: auto; }
.p2-tall-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.p2-tall-side h2 { margin: 0; font-size: 1.6rem; line-height: 1.1; overflow-wrap: anywhere; }
.p2-tall-side p { margin: 2px 0 0; }
.p2-stats { display: grid; gap: 6px; }
.p2-stat { padding: 8px 10px; }
.p2-stat .tile-val { font-size: 1.05rem; }
.p2-tall-btns { margin-top: auto; display: grid; gap: 6px; }
.p2-tall-btns > .btn { min-height: 46px; justify-content: center; }
.p2-tall-row { display: flex; gap: 6px; }
.p2-tall-row .btn { flex: 1; min-height: 46px; justify-content: center; }
.p2-tall-row .p2-more, .p2-actions .p2-more { flex: none; min-width: 48px; }
.p2-actions { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.p2-actions .p2-more { justify-self: stretch; }
.cust .qf { min-height: 36px; }
.cust-err { color: #F09595; min-height: 1.2em; margin: 0; }

/* ---------- v1.34: saved setups in PMV / JOI ---------- */
.preset-row { display: grid; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.preset-add { border-style: dashed !important; }
.p2-tall-row { flex-wrap: wrap; }
.p2-tall-row .btn, .p2-tall-btns > .btn { min-width: 0; padding: 0 10px; }
.p2-tall-row .btn:not(.p2-more) { flex: 1 1 90px; }
.p2-tall-side p { overflow-wrap: anywhere; }
.p2-actions .btn { min-width: 0; padding: 0 8px; }
.p2-cover.is-fit { background-color: #0B111B; }
/* her profile keeps one height, so switching tabs never resizes or moves the sheet */
.profile-modal { height: 92dvh; }
@media (min-width: 640px) { .profile-modal { height: 88dvh; } }
/* v1.35: holding Cum keeps the button and meter on screen */
.glz-holding .glz-ctl { opacity: 1 !important; pointer-events: auto !important; }
.fh-cum.on { transform: scale(.97); filter: brightness(1.12); }
.fh-cum { -webkit-touch-callout: none; }

/* ---------- v1.35: Glaze her completely (her Loads tab) ---------- */
.gh-pct { font-size: 1.15rem; }
.gh-seg { display: flex; gap: 2px; background: var(--surface-2, #22314A); border-radius: 10px; padding: 2px; }
.gh-seg button { flex: 1; border: 0; border-radius: 8px; padding: 8px 0; background: transparent; color: var(--ink); font: 600 .82rem var(--font-ui); cursor: pointer; }
.gh-seg button.on { background: #C24D2C; color: #fff; }
.gh-split { display: flex; gap: 12px; align-items: flex-start; }
.gh-left { width: 46%; max-width: 240px; flex: none; display: grid; gap: 6px; }
.gh-split .gh-bars { flex: 1; min-width: 0; grid-template-columns: 1fr; }
.gh-photo { position: relative; border-radius: 14px; overflow: hidden; background: #0B111B; }
.gh-photo.is-tall { aspect-ratio: 2 / 3; }
.gh-photo.is-wide { aspect-ratio: 4 / 3; }
.gh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gh-cv { position: absolute; pointer-events: none; }
.gh-change { left: 6px; top: 6px; cursor: pointer; padding: 4px 9px; font-size: .72rem; }
.gh-replay { right: 6px; bottom: 6px; cursor: pointer; padding: 4px 9px; font-size: .72rem; }
.gh-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.gh-bar { display: grid; gap: 3px; }
.gh-bar .land-bar { display: block; height: 6px; }
.gh-mile { border-top: 1px solid var(--line); padding-top: 8px; gap: 8px; }
.gh-list-head { margin-top: 6px; }

/* ---------- v1.36: body sheet, ruler, ass duels, one ass, recharge, roulette ---------- */
.hb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.hb-field { display: grid; gap: 3px; }
.hb-vs { background: var(--surface-2, #22314A); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.hb-vs p { margin: 0; }
.hr-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; }
.hr { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.hr-wrap { position: relative; flex: 1; min-height: 240px; background: #000; border-radius: 14px; overflow: hidden; }
.hr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hr-cv { position: absolute; touch-action: none; }
.hr-out { margin: 0; font-weight: 600; }
.ad-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.ad-pick { border: 0; padding: 0; background: var(--surface-2, #22314A); border-radius: 14px; overflow: hidden; display: grid; gap: 4px; padding-bottom: 8px; color: var(--ink); cursor: pointer; }
.ad-pick:active { transform: scale(.98); }
.ad-cv { width: 100%; height: auto; display: block; aspect-ratio: 36 / 42; }
.ad-vs { font-weight: 700; color: var(--muted); }
.ad-rank { padding: 4px 0; border-bottom: 1px solid var(--line); }
.oa-box { position: relative; margin: 0 auto; max-width: 100%; }
.oa-box canvas { position: absolute; inset: 0; }
.rc { background: var(--surface-2, #22314A); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.rc p { margin: 0; }
.rc-bar { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rc-bar i { display: block; height: 100%; background: #1D9E75; }
.girls-fun { margin: 4px 0; }
.qf-label { align-self: center; margin-right: 2px; white-space: nowrap; }
.rl-face { display: flex; gap: 12px; align-items: center; }
.rl-cover { width: 110px; height: 150px; border-radius: 12px; background: #0B111B center / cover no-repeat; flex: none; }
.rl-reel { font-size: 1.6rem; font-weight: 700; min-height: 2rem; }
.rl-part { color: #EC8A6C; font-weight: 600; min-height: 1.3rem; }

/* ---------- v1.37: X-ray ---------- */
.xr { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.xr-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xr-hit { position: absolute; pointer-events: auto; touch-action: none; cursor: grab; }
.xr-bar { position: absolute; pointer-events: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 16px); z-index: 2; touch-action: none; }
.xr-corner .xr-bar { cursor: move; }
.xr-modes, .xr-views { display: flex; gap: 2px; background: rgba(7,19,31,.88); border: 1px solid #7FD3FF; border-radius: 10px; padding: 2px; }
.xr-modes button, .xr-views button { border: 0; background: transparent; color: #BFE8FF; font: 600 .72rem var(--font-ui); padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.xr-modes button.on, .xr-views button.on { background: #7FD3FF; color: #07131F; }
.xr-pos, .xr-more { border: 1px solid #3E4A62; background: rgba(34,49,74,.92); color: #E4E4E2; font: 600 .74rem var(--font-ui); border-radius: 10px; padding: 6px 9px; cursor: pointer; }
.glz-focus .xr-bar { opacity: 0; pointer-events: none; }
#xrfull { position: fixed; inset: 0; z-index: 900; background: #2A0F17; color: #E4E4E2; display: flex; flex-direction: column; }
.xrf-stage { position: relative; flex: 1; min-height: 0; }
.xrf-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.xrf-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat, 0px) + 8px) 12px 8px; z-index: 5; }
.xrf-top .xr-modes { pointer-events: auto; }
#xrfull .xr-bar { top: calc(var(--sat, 0px) + 56px) !important; }
#xrfull .xr-modes:not(.xrf-holes) { display: none; }
.xrf-photo { position: absolute; right: 12px; top: calc(var(--sat, 0px) + 100px); width: 26%; max-width: 140px; aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px solid #F7A8B5; overflow: hidden; padding: 0; background: #22314A; z-index: 6; cursor: pointer; touch-action: pan-y; }
.xrf-photo img, .xrf-drips { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xrf-photo span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15,23,36,.8); color: #fff; font-size: .7rem; padding: 2px 4px; text-align: center; }
.xrf-ctl { padding: 10px 12px calc(var(--sab, 0px) + 12px); display: grid; gap: 6px; background: rgba(42,15,23,.96); }
.xrf-ctl .btn { flex: 1; min-height: 48px; justify-content: center; }
.xrf-hint { text-align: center; margin: 0; }
.xr-corner .xr-modes button { padding: 3px 6px; font-size: .78rem; }
.xr-corner .xr-more { padding: 3px 8px; }
.finish-box { margin-top: 6px; }
.p2-finish { margin: 0; }

/* ---------- v1.37: Ass of the day ---------- */
.aotd { display: grid; gap: 8px; }
.aotd-pic { position: relative; border-radius: 18px; overflow: hidden; background: #0B111B; }
.aotd-cv { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.aotd-tag, .aotd-streak { position: absolute; top: 10px; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.aotd-tag { left: 10px; background: rgba(15,23,36,.86); color: #fff; }
.aotd-streak { right: 10px; background: #EF9F27; color: #412402; }
.aotd-id { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); display: grid; }
.aotd-id strong { font-size: 1.3rem; }
.aotd .btn { flex: 1; justify-content: center; min-height: 46px; }
.aotd-note { margin: 0; }
.ta-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; }
.ta { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.ta-pic { position: relative; flex: 1; min-height: 260px; border-radius: 14px; overflow: hidden; background: #0B111B; }
.ta-cv { position: absolute; inset: 0; width: 100%; height: 100%; }

/* v1.38: the top controls only take touches on their buttons, so the X-ray under them can be tapped and dragged */
#play .glz-top, #glaze .glz-top { pointer-events: none; }
#play .glz-top button, #play .glz-top input, #play .glz-top .scroll-x, #play .glz-top a,
#glaze .glz-top button, #glaze .glz-top input, #glaze .glz-top .scroll-x, #glaze .glz-top a { pointer-events: auto; }
.xr-flash { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: rgba(7,19,31,.9); border: 1px solid #7FD3FF; color: #BFE8FF; font: 600 .85rem var(--font-ui); opacity: 0; pointer-events: none; z-index: 4; }
.xr-flash.show { animation: xrFlash 1.1s ease-out; }
@keyframes xrFlash { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.xr-moving .xr-hit { cursor: grabbing; outline: 2px dashed #7FD3FF; outline-offset: 2px; border-radius: 12px; }
.xr-bar button { -webkit-touch-callout: none; user-select: none; touch-action: manipulation; }
.fh-cum { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: none; }
/* the X-ray sits above the photo's touch layer, so its bar and touch area get taps (was under it) */
.xr { z-index: 6; }

/* v1.39: the X-ray in warm pink */
.xr-modes, .xr-views { background: rgba(42,15,23,.9); border-color: #F7A8B5; }
.xr-modes button, .xr-views button { color: #FFE4E9; }
.xr-modes button.on, .xr-views button.on { background: #F08A9B; color: #2A0F17; }
.xr-pos, .xr-more { background: rgba(58,22,33,.92); border-color: #6B2A3A; color: #FBE3E6; }
.xr-flash { background: rgba(42,15,23,.92); border-color: #F7A8B5; color: #FFE4E9; }
.xr-moving .xr-hit { outline-color: #F7A8B5; }
.xr-see { display: flex; align-items: center; gap: 6px; background: rgba(42,15,23,.9); border: 1px solid #6B2A3A; border-radius: 10px; padding: 2px 8px; color: #FBE3E6; font: 600 .72rem var(--font-ui); }
.xr-see input { width: 96px; accent-color: #F08A9B; height: 28px; }

/* v1.45: her profile fits narrow screens (the folded Find N6): nothing pushes past the right edge */
.profile2 { grid-template-columns: minmax(0, 1fr); }
.profile2 > * { min-width: 0; max-width: 100%; }
.p2-tall-side .tile, .p2-stats .tile { min-width: 0; }
.p2-tall-side .tile-val, .p2-tall-side .tile-label { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .p2-tall { gap: 8px; }
  .p2-tall-cover { width: 40%; }
  .p2-tall-side h2 { font-size: 1.3rem; }
  .p2-tall-row .btn:not(.p2-more) { flex: 1 1 70px; }
}
@media (max-width: 380px) { .p2-tall-cover .p2-cover-btn { font-size: 0.8rem; padding: 0 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* v1.45: replay kept while camera pace is off */
.bg-rec { position: absolute; right: 12px; top: calc(var(--sat, 0px) + 64px); z-index: 7; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 600 .7rem var(--font-ui); pointer-events: none; }
.bg-rec i { width: 8px; height: 8px; border-radius: 50%; background: #E24B4A; animation: bgRec 1.6s ease-in-out infinite; }
@keyframes bgRec { 50% { opacity: .35; } }
.frozen .bg-rec { display: none; }

/* v1.46: Me page X-ray: header above the X-ray, her photo on the left, spots, camera pace */
#xrfull .xrf-top { z-index: 9; }
#xrfull .xrf-photo { right: auto; left: 12px; z-index: 9; }
#xrfull .xrf-hud { position: absolute; right: 12px; top: calc(var(--sat, 0px) + 100px); z-index: 9; }
.xrf-photo .xrf-spot-hint { position: absolute; left: 50%; right: auto; bottom: auto; top: 40%; white-space: nowrap; transform: translate(-50%, -50%); background: rgba(42,15,23,.85); color: #FFE4E9; border: 1px solid #F7A8B5; border-radius: 999px; padding: 2px 8px; font-size: .65rem; pointer-events: none; }
.xrs-wrap { position: relative; max-height: 62vh; display: flex; justify-content: center; }
.xrs-img { max-width: 100%; max-height: 62vh; display: block; border-radius: 12px; }
.xrs-marks { position: absolute; inset: 0; pointer-events: none; }
.xrs-dot { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(212,83,126,.85); color: #fff; font: 700 .75rem var(--font-ui); display: grid; place-items: center; border: 2px solid #fff; }
.xrs-dot.on { background: #ED93B1; box-shadow: 0 0 0 3px rgba(237,147,177,.4); }
/* petite badge, smallest asses, records */
.petite-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #F4C0D1; color: #72243E; font: 700 .7rem var(--font-ui); vertical-align: middle; }
.sa-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.05)); border: 1px solid var(--border, rgba(255,255,255,.08)); color: inherit; }
.sa-row .small { grid-column: 2; }
.sa-rank { grid-row: span 2; font: 700 1.1rem var(--font-ui); color: var(--accent, #F08A9B); align-self: center; }
.sa-name { font-weight: 600; }
.hb-rec .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* v1.47: ass overlay */
.aso-wrap { display: flex; justify-content: center; }
.aso-cv { width: 100%; max-width: 480px; max-height: 58vh; object-fit: contain; border-radius: 12px; touch-action: none; background: #1A0E14; }
.aso-cap { margin: 0; }

/* v1.48: cover her ass, petite JOI line */
.cover-meter { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.cover-meter i { display: block; height: 100%; background: linear-gradient(90deg, #F4C0D1, #FFF6E8); border-radius: 999px; }
.joi-say { position: absolute; left: 50%; top: calc(var(--sat, 0px) + 96px); transform: translateX(-50%); max-width: 86vw; z-index: 4; text-align: center; background: rgba(42,15,23,.72); color: #FFE4E9; border: 1px solid rgba(247,168,181,.5); border-radius: 14px; padding: 8px 14px; font: 600 .95rem var(--font-ui); pointer-events: none; opacity: 0; }
.joi-say.on { animation: joiSay 4.5s ease forwards; }
@keyframes joiSay { 0% { opacity: 0; transform: translate(-50%, 6px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: .0; } }

/* v1.49: several companions */
.comp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.25); }
.comp-badge { display: inline-flex; align-items: center; font-size: .72rem; opacity: .85; }
.comp-n { margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent, #F08A9B); color: #2A0F17; font: 700 .7rem var(--font-ui); line-height: 18px; text-align: center; }
.comp-switch { margin-bottom: 4px; }
.comp-who { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.1)); background: var(--surface-2, rgba(255,255,255,.04)); color: inherit; text-align: left; font: inherit; }
.comp-who.on { border-color: var(--accent, #F08A9B); background: rgba(240,138,155,.12); }
.comp-who .grow { flex: 1; }
.comp-check { font-weight: 700; color: var(--accent, #F08A9B); }
.comp-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; }
.comp-sw.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.comp-switch .qf { white-space: nowrap; }

/* v1.50: finish stage, Hot or not, Aim, Year wrapped, Achievements, Spread */
.f2-root { position: fixed; inset: 0; z-index: 60; background: #12070B; color: #FFE4E9; }
.f2-frame { position: absolute; }
.f2-img { width: 100%; height: 100%; display: block; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.f2-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--sat, 0px) + 10px) 12px 8px; z-index: 3; }
.f2-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(var(--sab, 0px) + 16px); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3; }
.f2-root.frozen .f2-bottom { display: none; }
.f2-hint { margin: 0; text-align: center; opacity: .85; }
.f2-cum { min-width: 200px; }
.aim-ring { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(255,246,232,.95); box-shadow: 0 0 0 3px rgba(240,138,155,.65), inset 0 0 0 2px rgba(240,138,155,.65); pointer-events: none; z-index: 2; animation: aimPulse 1.6s ease-in-out infinite; }
.aim-ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: #F08A9B; }
@keyframes aimPulse { 50% { box-shadow: 0 0 0 7px rgba(240,138,155,.35), inset 0 0 0 2px rgba(240,138,155,.65); } }
.aim-score { font: 800 4rem var(--font-ui); text-align: center; color: var(--accent, #F08A9B); }
.wr-cv { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 16px; display: block; background: #2A0F17; cursor: pointer; }
.wr-dots { display: flex; justify-content: center; gap: 6px; }
.wr-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.wr-dots i.on { background: var(--accent, #F08A9B); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ach { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid var(--border, rgba(255,255,255,.08)); opacity: .62; min-width: 0; }
.ach.on { opacity: 1; border-color: rgba(240,138,155,.5); background: rgba(240,138,155,.08); }
.ach-ico { font-size: 1.3rem; }
.ach strong { font-size: .88rem; }
.ach small { font-size: .72rem; }
.ach-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; }
.ach-bar i { display: block; height: 100%; background: var(--accent, #F08A9B); }
.ach-when { color: var(--accent, #F08A9B); }
.pv-stage { touch-action: pan-x pan-y; }
.spread-cv { position: absolute; pointer-events: none; z-index: 4; }

.hn-stage { position: absolute; top: calc(var(--sat, 0px) + 58px); left: 10px; right: 10px; bottom: calc(var(--sab, 0px) + 12px); display: flex; flex-direction: column; gap: 6px; }
@media (min-aspect-ratio: 1/1) { .hn-stage { flex-direction: row; } }
.hn-card { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; border: 0; border-radius: 16px; background: #2A0F17 center / contain no-repeat; overflow: hidden; transition: transform .25s ease, opacity .3s ease, box-shadow .25s ease; }
.hn-card.won { transform: scale(1.03); box-shadow: 0 0 0 4px #F08A9B; }
.hn-card.lost { opacity: .15; transform: scale(.94); }
.hn-name { position: absolute; left: 10px; bottom: 10px; background: rgba(42,15,23,.75); color: #FFE4E9; border-radius: 999px; padding: 4px 12px; font: 700 .95rem var(--font-ui); }
.hn-vs { flex: none; align-self: center; font: 800 .85rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.hn-head { font: 700 1.05rem var(--font-ui); }

/* v1.51: stretch timelapse, dripping wallpaper */
.tl-bar { width: 100%; height: 10px; accent-color: var(--accent, #F08A9B); }
.tl-video { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; }
.wp-root { background: #000; }
.wp-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wp-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--sab, 0px) + 18px); text-align: center; margin: 0; opacity: .8; }

/* v1.52: full-screen finish stage with camera, edge-to-edge Hot or not */
.f2-root { overflow: hidden; }
.f2-full .f2-top { background: linear-gradient(rgba(10,4,7,.65), rgba(10,4,7,0)); padding-bottom: 22px; }
.f2-full .f2-bottom { background: linear-gradient(rgba(10,4,7,0), rgba(10,4,7,.7)); padding-top: 26px; }
.f2-ui { transition: opacity .35s ease; }
.f2-root.ui-off .f2-ui { opacity: 0; pointer-events: none; }
.f2-hud { position: absolute; right: 12px; top: calc(var(--sat, 0px) + 64px); z-index: 4; }
.f2-camlbl { opacity: .85; }
.f2-camlbl:empty { display: none; }
.hn-stage { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; gap: 3px; }
.hn-card { border-radius: 0; background-size: cover; background-position: center 35%; }
.hn-root .f2-top { background: linear-gradient(rgba(10,4,7,.7), rgba(10,4,7,0)); padding-bottom: 20px; }
.hn-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: rgba(42,15,23,.85); color: #FFE4E9; border-radius: 999px; padding: 6px 14px; opacity: 1; pointer-events: none; }
@media (min-aspect-ratio: 1/1) { .hn-vs { top: 50%; } }
.hn-name { bottom: 14px; }

/* v1.53: tightness gauge, handprints, fill meter, fingers, ratings, worship, drip after */
.tg-mount { position: absolute; right: 10px; top: calc(var(--sat, 0px) + 112px); z-index: 7; pointer-events: none; }
.xrf-tg { top: calc(var(--sat, 0px) + 100px); }
#xrfull .xrf-hud { top: calc(var(--sat, 0px) + 200px); }
.tg { width: 112px; display: flex; flex-direction: column; align-items: center; background: rgba(42,15,23,.55); border-radius: 14px; padding: 6px 6px 4px; }
.tg-svg { width: 100px; height: 66px; display: block; }
.tg-word { color: #FFE4E9; font: 700 .82rem var(--font-ui); margin-top: -2px; }
.tg.is-limit .tg-word { color: #F7A8B5; animation: tgPulse .7s ease-in-out infinite; }
@keyframes tgPulse { 50% { opacity: .55; } }
.fill-row { display: flex; gap: 14px; align-items: center; }
.fill-her { width: 92px; height: 110px; flex: none; }
.fill-pct { font-size: 1.05rem; }
.fill-drip { animation: fillDrip 2.4s ease-in infinite; transform-origin: 50% 0; }
.fill-drip.d2 { animation-delay: 1.1s; }
@keyframes fillDrip { 0% { transform: translateY(-6px) scaleY(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px) scaleY(1.2); opacity: 0; } }
.fingers-svg { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.fingers-big { font: 800 1.25rem var(--font-ui); text-align: center; margin: 0; color: var(--accent, #F08A9B); }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate-l { font-size: .92rem; }
.rate-stars { display: flex; gap: 2px; }
.rate-star { background: none; border: 0; font-size: 1.45rem; line-height: 1; padding: 4px; color: rgba(255,255,255,.22); cursor: pointer; }
.rate-star.on { color: #F08A9B; }
.rate-score { font-size: 1.2rem; color: var(--accent, #F08A9B); }
.wor-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.wor-jig { animation: worJig .7s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 65%; }
@keyframes worJig { 0% { transform: scale(1); } 25% { transform: scale(1.012, .99); } 50% { transform: scale(.996, 1.006); } 100% { transform: scale(1); } }
.f2-cum.is-locked { opacity: .8; filter: saturate(.6); }
.drip-after { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9; }
.drip-after-bar { position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 22px); transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 12px; background: rgba(42,15,23,.82); color: #FFE4E9; border-radius: 999px; padding: 6px 8px 6px 16px; }

/* v1.54: stroke off */
.so-bottom { gap: 8px; }
.so-pace { font: 800 1.15rem var(--font-ui); color: #FFE4E9; }
.so-root.is-on .so-pace { color: #9FE1CB; }
.so-bar { width: min(320px, 80vw); height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.so-bar i { display: block; height: 100%; width: 0; background: var(--accent, #F08A9B); transition: width .25s linear; }
.so-root.frozen .so-bottom { display: none; }

/* v1.55: heatmap, measure, pose */
.heat-cv { width: 100%; height: auto; border-radius: 12px; background: rgba(42,15,23,.55); display: block; }
.ms-cv { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; touch-action: manipulation; cursor: crosshair; }
.ms-say { font-weight: 600; margin: 0; }
.pose-box { border-top: 1px solid var(--border, rgba(255,255,255,.1)); padding-top: 12px; }

/* ---------- v1.56: mood, stroke to reveal, size vs her ass, races, positions, sessions ---------- */
.mood-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 700 .72rem var(--font-ui); background: rgba(240,138,155,.18); color: inherit; white-space: nowrap; }
.gal-card .mood-badge { position: absolute; top: 8px; right: 8px; background: rgba(20,10,16,.78); color: #FFE4E9; }
.mood-horny { --mood: #F08A9B; } .mood-happy { --mood: #9FE1CB; } .mood-bratty { --mood: #FAC775; } .mood-needy { --mood: #B7A6F2; } .mood-sulky { --mood: #8FA3B8; }
.mood-badge.mood-horny, .mood-badge.mood-happy, .mood-badge.mood-bratty, .mood-badge.mood-needy, .mood-badge.mood-sulky { box-shadow: inset 0 0 0 1.5px var(--mood); }
.mood-box { border-left: 3px solid var(--mood, #F08A9B); padding-left: 10px; }
.mood-box p { margin: 0; }
.sr-eye { position: absolute; z-index: 1200; left: 12px; top: calc(var(--sat, 0px) + 58px); width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(20,10,16,.72); color: rgba(255,228,233,.6); }
.sr-eye.on { color: #FFE4E9; box-shadow: 0 0 0 2px #F08A9B; }
.sr-eye.hidden { display: none; }
.sr-blur { transition: filter .35s ease-out; }
.fit-row { display: flex; align-items: center; gap: 10px; }
.fit-row .tb-bar { width: 90px; flex: none; }
.fit-row.has strong { color: var(--accent, #F08A9B); }
.fit-v { min-width: 92px; text-align: right; }
.cvo-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(127,127,127,.2); }
.cvo-bar i { display: block; height: 100%; }
.cvo-c { background: #FFF6E8; } .cvo-a { background: #F08A9B; } .cvo-o { background: #8FA3B8; }
.cvo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.taw-card { display: flex; gap: 12px; align-items: stretch; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, rgba(240,138,155,.2), rgba(250,199,117,.12)); border: 1px solid rgba(240,138,155,.35); margin: 6px 0; }
.taw-card.done { border-color: #9FE1CB; }
.taw-thumb { width: 84px; min-height: 96px; flex: none; border-radius: 12px; background: #2A0F17 center / cover no-repeat; }
.taw-k { font-weight: 700; color: var(--accent, #F08A9B); text-transform: uppercase; letter-spacing: .04em; }
.taw-name { font: 700 1.1rem var(--font-ui); text-align: left; padding: 0; }
.taw-goal { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.18); }
.taw-goal.ok { background: rgba(159,225,203,.28); }
.race-box .btn { align-self: flex-start; }
.girls-fun2 { margin-top: 2px; }
.gg-root { display: flex; align-items: center; justify-content: center; }
.gg-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.gg-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 64px; border: 0; border-radius: 14px; background: rgba(20,10,16,.5); color: #FFE4E9; display: grid; place-items: center; }
.gg-prev { left: 8px; } .gg-next { right: 8px; }
.gg-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(var(--sab, 0px) + 18px); background: linear-gradient(0deg, rgba(18,7,11,.85), rgba(18,7,11,0)); text-align: center; }
.so-mood { margin: 0; text-align: center; font-style: italic; opacity: .92; }
.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ma-card { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #2A0F17; color: #FFE4E9; text-align: left; }
.ma-cv, .ma-ph { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ma-score { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: #F08A9B; color: #2A0F17; font: 800 .8rem var(--font-ui); }
.ma-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px; background: linear-gradient(0deg, rgba(18,7,11,.9), rgba(18,7,11,0)); font-size: .8rem; }
.ang-out { font: 700 1.2rem var(--font-ui); text-align: center; }
.ba-slot { width: 120px; flex: none; border-radius: 12px; overflow: hidden; background: #2A0F17; }
.ba-slot canvas { width: 100%; display: block; }
.hp-banner { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--sat, 0px) + 60px); z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 18px; background: rgba(20,10,16,.86); color: #FFE4E9; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); border: 1.5px solid #F08A9B; max-width: 86vw; transition: padding .25s, top .25s; }
.hp-banner.hp-inside { border-color: #FFF6E8; }
.hp-banner strong { font: 800 1.05rem var(--font-ui); }
.hp-banner.hp-small { padding: 5px 12px; }
.hp-banner.hp-small small { display: none; }
.hp-banner.hp-small strong { font-size: .8rem; }
.hp-play { top: auto; bottom: calc(var(--sab, 0px) + 92px); }
.rn-chip { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--sat, 0px) + 6px); z-index: 1150; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 18px; background: rgba(20,10,16,.92); color: #FFE4E9; box-shadow: 0 6px 20px rgba(0,0,0,.4); width: min(560px, calc(100vw - 16px)); }
.rn-chip.rn-last { border: 1.5px solid #F08A9B; }
.rn-lbl { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-sub { opacity: .8; font-size: .75rem; }
.rn-btn { border: 0; border-radius: 12px; padding: 7px 10px; background: rgba(255,255,255,.12); color: inherit; font: 700 .78rem var(--font-ui); flex: none; }
.rn-btn.hidden { display: none; }
.rn-x { width: 32px; padding: 7px 0; }
body:has(.rn-chip) #play .glz-top { padding-top: calc(var(--sat, 0px) + 86px); }
.al-root { display: flex; flex-direction: column; }
.al-root.hidden { display: none; }
.al-stage { flex: 1; display: flex; gap: 6px; padding: calc(var(--sat, 0px) + 64px) 6px 6px; }
.al-card { flex: 1; position: relative; border: 0; border-radius: 16px; background: #2A0F17 center / cover no-repeat; overflow: hidden; color: #FFE4E9; }
.al-card:active { transform: scale(.98); }
.al-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .9rem var(--font-ui); background: linear-gradient(0deg, rgba(18,7,11,.9), rgba(18,7,11,0)); }
.al-hint { text-align: center; margin: 6px 0 calc(var(--sab, 0px) + 12px); opacity: .8; }
.hp-pair { justify-content: center; align-items: center; }
.hp-thumb { width: 110px; height: 140px; border-radius: 14px; background: #2A0F17 center / cover no-repeat; }
.hp-plus { font: 800 1.6rem var(--font-ui); color: var(--accent, #F08A9B); }
