:root {
  --bg: #07070a;
  --bg2: #0e0e13;
  --card: #111117;
  --card2: #181820;
  --line: #22222c;
  --line2: #2e2e3a;
  --text: #f2f4f8;
  --muted: #8f95a8;
  --cyan: #22d3ee;
  --cyan-ink: #041317;
  --pink: #ff3ea5;
  --gold: #ffd166;
  --green: #22d3ee;
  --red: #ff4d6d;
  --radius: 18px;
  --grad: linear-gradient(120deg, #22d3ee 0%, #ff3ea5 100%);
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(34,211,238,.10) 0%, transparent 60%),
    radial-gradient(800px 480px at -8% 18%, rgba(255,62,165,.08) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--pink); color: #fff; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 28px 0 56px; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: rgba(7,7,10,.78); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.2px; }
.logo .mini-dice { display: flex; gap: 4px; }
.logo .mini-dice span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-family: var(--font-body); }
.logo .mini-dice span:first-child { background: var(--cyan); color: var(--cyan-ink); transform: rotate(-8deg); }
.logo .mini-dice span:last-child { background: var(--pink); color: #fff; transform: rotate(8deg); }
nav.links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.links a { text-decoration: none; color: var(--muted); padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: color .15s, background .15s; }
nav.links a:hover, nav.links a.active { color: var(--text); background: var(--card2); }
nav.links a.active:not(.cta) { box-shadow: inset 0 -2px 0 var(--cyan); }
nav.links a.cta { background: var(--pink); color: #fff; margin-left: 6px; }
nav.links a.cta:hover { background: #ff5cb4; }
nav.links a, .account-chip { white-space: nowrap; }
@media (max-width: 560px) {
  header.top .wrap { gap: 6px; }
  nav.links { gap: 1px; }
  nav.links a { padding: 8px 6px; font-size: 13px; }
  nav.links a.cta { margin-left: 2px; padding: 8px 8px; }
  .wide-only { display: none; }
  .logo .name { display: none; }
}

footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 22px 16px; }
footer.bottom a:hover { color: var(--cyan); }

/* generic */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.5px; }
h1 { font-size: clamp(30px, 5.6vw, 54px); line-height: 1.06; margin: 0 0 14px; font-weight: 800; letter-spacing: -1.2px; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.c-cyan { color: var(--cyan); }
.c-pink { color: var(--pink); }
.grad-text {background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: 14px; text-decoration: none; color: var(--cyan-ink); background: var(--cyan); transition: transform .12s, background .15s, box-shadow .15s, opacity .12s; }
.btn:hover { background: #4ddcf1; box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; background: var(--cyan); }
.btn.ghost { background: transparent; color: var(--pink); border: 1px solid var(--pink); }
.btn.ghost:hover { background: rgba(255,62,165,.1); box-shadow: none; }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 11px; }
.btn.danger { background: var(--red); color: #fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pill.live { color: var(--cyan); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.06); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill.paused { color: var(--gold); border-color: rgba(255,209,102,.35); }
.pill.paused::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.pill.closed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.error { color: var(--red); min-height: 1.2em; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .btn { margin-top: 6px; }

/* forms */
label.field { display: block; margin-bottom: 18px; }
div.field { margin-bottom: 18px; }
label.field > span { display: block; font-weight: 700; margin-bottom: 7px; }
input[type=text], textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2); color: var(--text);
  border-radius: 12px; padding: 12px 13px; font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5d6275; }
textarea { resize: vertical; min-height: 76px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; padding: 28px 0 48px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-dice { display: flex; justify-content: center; gap: 26px; position: relative; }
.hero-dice::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, rgba(34,211,238,.18), rgba(255,62,165,.12) 60%, transparent); filter: blur(20px); z-index: -1; }
.hero-dice .die-slot { position: relative; }
.hero-dice .die-slot:nth-child(1) { transform: rotate(-12deg); }
.hero-dice .die-slot:nth-child(2) { transform: rotate(9deg) translateY(26px); }
.hero-dice .die { width: 124px; height: 124px; border-radius: 28px; padding: 19px; position: relative; will-change: transform; }
.hero-dice .die-shadow { position: absolute; left: 8%; right: 8%; bottom: -18px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); opacity: .55; will-change: transform, opacity; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-dice .die { width: 92px; height: 92px; padding: 14px; border-radius: 22px; }
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 48px; }
.steps .card { transition: border-color .15s; }
.steps .card:hover { border-color: var(--line2); }
.steps .card h3 { margin: 12px 0 6px; font-size: 15px; }
.steps .card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.steps .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; background: rgba(34,211,238,.1); color: var(--cyan); border: 1px solid rgba(34,211,238,.3); }
.steps .card:nth-child(even) .num { background: rgba(255,62,165,.1); color: var(--pink); border-color: rgba(255,62,165,.3); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* rooms page: search + sort tabs */
.rooms-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.rooms-head h1 { margin: 0; }
.rooms-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.rooms-tools input[type=search] { flex: 1 1 260px; min-width: 0; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.rooms-tools input[type=search]:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--cyan); color: var(--cyan-ink); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.see-all { text-align: center; margin-top: 20px; }
@media (max-width: 560px) { .tabs { width: 100%; } .tabs button { flex: 1; padding: 9px 6px; } }

/* rooms list */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.room-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.room-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity .15s; }
.room-card:hover { transform: translateY(-3px); border-color: var(--line2); }
.room-card:hover::before { opacity: 1; }
.room-card .cover { width: calc(100% + 40px); max-width: none; margin: -20px -20px 2px; aspect-ratio: 16 / 10; object-fit: cover; background: #000; border-bottom: 1px solid var(--line); }
.room-card h3 { margin: 2px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.room-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.room-card .stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.room-card .timer { color: var(--pink); }
.timer { font-family: var(--font-head); font-variant-numeric: tabular-nums; font-weight: 700; }

/* dice */
.die {
  width: 96px; height: 96px; border-radius: 22px; padding: 14px;
  background: var(--cyan);
  box-shadow: 0 12px 34px rgba(34,211,238,.28), inset 0 -6px 0 rgba(0,0,0,.14);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.die i { border-radius: 50%; margin: 18%; }
.die i.on { background: var(--cyan-ink); }
.die.red { background: var(--pink); box-shadow: 0 12px 34px rgba(255,62,165,.28), inset 0 -6px 0 rgba(0,0,0,.14); }
.die.red i.on { background: #fff; }
.die.rolling { animation: shake .12s infinite alternate; }
@keyframes shake {
  from { transform: rotate(-14deg) translateY(-6px) scale(1.03); }
  to { transform: rotate(14deg) translateY(4px) scale(.97); }
}
.die.land { animation: land .35s ease-out; }
@keyframes land { 0% { transform: scale(1.25); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
.die.tiny { width: 26px; height: 26px; border-radius: 7px; padding: 3px; box-shadow: none; }

/* room page */
.room-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 22px; }
.room-head h1 { font-size: clamp(26px, 4.6vw, 42px); overflow-wrap: anywhere; }
.countdown { text-align: right; }
.countdown .timer { font-size: 38px; display: block; color: var(--cyan); letter-spacing: -1px; }
.room-grid { display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr; } .countdown { text-align: left; } }
.roll-box { text-align: center; background: linear-gradient(180deg, rgba(34,211,238,.06), transparent 55%), var(--card); }
.roll-box .dice-row { display: flex; justify-content: center; gap: 20px; margin: 12px 0 20px; }
.roll-box .total { font-family: var(--font-head); font-size: 46px; font-weight: 800; margin: 0 0 8px; }
.roll-box .btn { width: 100%; font-size: 17px; padding: 16px; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board .rank { width: 26px; color: var(--muted); font-weight: 700; text-align: center; }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-grid > * , .room-grid aside > * { min-width: 0; }
.board .tot { font-family: var(--font-head); font-weight: 800; width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.board li.top .tot { color: var(--pink); }
.board li.top .rank { color: var(--gold); }
.board li.you { background: rgba(34,211,238,.08); border-radius: 10px; box-shadow: inset 2px 0 0 var(--cyan); }
.board .mini { display: flex; gap: 3px; }

.girls { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.girl { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.girl:hover { border-color: var(--pink); transform: translateY(-2px); }
.girl .media { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: #000; cursor: zoom-in; }
.girl .cap { padding: 9px 11px; font-size: 13px; color: var(--muted); min-height: 36px; overflow-wrap: anywhere; line-height: 1.45; }
.girl .flag { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; opacity: .55; }
.girl .flag:hover { opacity: 1; color: var(--red); }
.girl .lock { position: absolute; top: calc(50% - 38px); left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); font-size: 20px; pointer-events: none; }
.girl.mine { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,209,102,.35), 0 10px 30px rgba(255,209,102,.18); }
.chat-list { height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 8px; }
.chat .msg { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.chat .msg.you { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.07); }
.chat .msg .from { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.chat .msg.you .from { color: var(--cyan); }
.chat .house-tag { margin-left: 6px; background: var(--pink); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
/* rolls and the House roll run inside the chat as compact event lines */
.chat .evt { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); border-left: 2px solid var(--line2); }
.chat .evt .mini { display: flex; gap: 3px; flex: none; }
.chat .evt .die.tiny { width: 20px; height: 20px; border-radius: 6px; padding: 2px; }
.chat .evt .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat .evt .what b { color: var(--text); font-weight: 700; }
.chat .evt .res { flex: none; font-weight: 800; font-size: 11px; letter-spacing: .3px; }
.chat .evt.roll.won { color: var(--gold); border-left-color: var(--gold); }
.chat .evt.roll.won .what b { color: var(--gold); }
.chat .evt.roll.you { background: rgba(34,211,238,.06); border-radius: 0 8px 8px 0; }
.chat .evt.house { color: var(--pink); border-left-color: var(--pink); }
.chat .evt.house .what b { color: var(--pink); }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; }
.chat-error { margin: 6px 2px 0; font-size: 13px; min-height: 0; }
.more-rooms { margin-top: 36px; }
/* phones/tablets: roll bar pinned to the bottom once a Girl is picked */
.roll-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(14,14,19,.96); border-top: 1px solid var(--line2); backdrop-filter: blur(12px); box-shadow: 0 -10px 30px rgba(0,0,0,.45); }
.roll-bar .bar-dice { display: flex; gap: 6px; flex: none; }
.roll-bar .die { width: 34px; height: 34px; border-radius: 9px; padding: 4px; box-shadow: none; }
.roll-bar .bar-text { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.roll-bar .bar-text.win { color: var(--gold); }
.roll-bar .btn { flex: none; padding: 12px 16px; font-size: 15px; white-space: nowrap; }
@media (max-width: 900px) {
  .roll-bar.show { display: flex; }
  body.has-roll-bar footer.bottom { padding-bottom: 76px; }
  body.has-roll-bar .toast { bottom: 84px; }
}
#girlsTitle { display: flex; align-items: baseline; gap: 10px; min-height: 28px; }
.prize-count { font-size: 26px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.prize-count.none { color: var(--muted); }
.prize-label { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
/* sold out: still blurred, now black & white (the browser greys the blurred copy; nothing sharp is ever sent) */
.girl.sold .media, .lightbox.gray img, .lightbox.gray video { filter: grayscale(1); }
.girl.pickable { cursor: pointer; }
.girl.pickable .media { cursor: pointer; }
.girl.selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.35), 0 10px 30px rgba(34,211,238,.2); transform: translateY(-2px); }
.girl.selected .lock { background: var(--cyan); }
.girl .num { position: absolute; left: 7px; bottom: 7px; background: rgba(0,0,0,.6); color: #fff; border-radius: 7px; padding: 2px 7px; font-size: 11px; font-weight: 700; pointer-events: none; }
.girl .won-count { position: absolute; right: 7px; bottom: 7px; background: var(--gold); color: #1a1300; border-radius: 7px; padding: 2px 7px; font-size: 11px; font-weight: 800; pointer-events: none; }
.won-sticker.sold { background: #fff; color: #111; border-color: #111; top: calc(50% - 30px); width: max-content; max-width: 86%; text-align: center; font-size: 12px; line-height: 1.25; letter-spacing: .5px; overflow-wrap: anywhere; }
.die.unknown { opacity: .35; filter: grayscale(.6); }
.die.unknown i.on { background: transparent; }
.roll-box .target { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.house-box { background: linear-gradient(180deg, rgba(255,62,165,.07), transparent 55%), var(--card); }
.roll-box .pick { margin: 0 0 12px; color: var(--cyan); font-weight: 700; min-height: 1.3em; font-size: 14px; }
.roll-box .total.win { color: var(--gold); animation: land .4s ease-out; }
.roll-box .total.lose { color: var(--muted); }
.feed .vs { width: 44px; text-align: right; color: var(--muted); font-size: 12px; font-weight: 600; }
.feed { max-height: 340px; overflow-y: auto; }
.won-sticker { position: absolute; top: 12px; left: 50%; transform: translateX(-50%) rotate(-8deg); background: var(--gold); color: #1a1300; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 1px; padding: 5px 13px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none; animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: translateX(-50%) rotate(-8deg) scale(2.2); opacity: 0; } to { transform: translateX(-50%) rotate(-8deg) scale(1); opacity: 1; } }
.countdown .timer.vanish { color: var(--pink); }
.girl .badge { position: absolute; top: 7px; left: 7px; background: var(--pink); color: #fff; border-radius: 7px; padding: 2px 7px; font-size: 11px; font-weight: 700; }

.banner { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; border: 1px solid var(--line); }
.banner.win { background: linear-gradient(120deg, rgba(34,211,238,.14), rgba(255,62,165,.16)); border-color: var(--pink); }
.banner.info { background: var(--card); }
.banner.warn { background: rgba(255,209,102,.08); border-color: rgba(255,209,102,.5); }
.banner h3 { margin: 0 0 6px; font-size: 18px; }
.banner p { margin: 0; color: var(--muted); }
.banner a { color: var(--cyan); }

/* create page */
.file-list { display: grid; gap: 10px; margin: 12px 0 18px; }
.file-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.file-row .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #000; }
.file-row .name { font-size: 12px; color: var(--muted); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row button { background: transparent; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 6px; }
.file-row button:hover { color: var(--pink); }
.drop { border: 2px dashed var(--line2); border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.drop b { color: var(--text); }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(34,211,238,.05); }
.durations { display: flex; flex-wrap: wrap; gap: 8px; }
.durations label { cursor: pointer; }
.durations input { display: none; }
.durations span { display: inline-block; padding: 9px 15px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; transition: border-color .15s; }
.durations span:hover { border-color: var(--cyan); }
.durations label.locked { cursor: not-allowed; }
.durations label.locked span { opacity: .45; border-style: dashed; }
.durations label.locked span:hover { border-color: var(--line2); }
.durations input:checked + span { background: var(--cyan); color: var(--cyan-ink); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 20px; cursor: pointer; }
.check { align-items: center; }
.check .rules { color: var(--muted); font-size: 12px; line-height: 1.4; }
.check a { color: var(--cyan); }
.check input {width: 20px; height: 20px; accent-color: var(--pink); margin-top: 1px; flex: none; }
.progress { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: 12px; display: none; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* gallery */
.gallery .girl .cap b { color: var(--text); }
.gallery .girl .cap a { text-decoration: none; }
.gallery .exp { font-size: 12px; color: var(--pink); margin-top: 4px; }
.gallery .dl { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--cyan); text-decoration: none; font-weight: 700; }

/* modal / lightbox */
.overlay { position: fixed; inset: 0; background: rgba(3,3,6,.9); backdrop-filter: blur(12px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.overlay.show { display: flex; }
.gate { max-width: 420px; text-align: center; }
.gate .badge18 { width: 76px; height: 76px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 0 auto 16px; box-shadow: 0 0 0 6px rgba(255,62,165,.15); }
.gate .row { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.account-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 8px 13px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; max-width: 190px; transition: border-color .15s; }
.account-chip:hover { border-color: var(--cyan); }
.account-chip .tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
.account-chip.guest { color: var(--cyan); border-color: rgba(34,211,238,.4); background: transparent; }
@media (max-width: 560px) { .account-chip { padding: 7px 8px; font-size: 13px; margin-left: 2px; max-width: 84px; gap: 5px; } }
.auth { width: 100%; max-width: 420px; }
.auth input { margin: 14px 0 12px; text-align: center; font-weight: 700; }
.auth .error { margin: 10px 0 0; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 9px; border-radius: 9px; cursor: pointer; }
.auth-tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); }
.code-input { letter-spacing: 2px; text-transform: uppercase; }
.code-box { margin: 16px 0 4px; padding: 16px 10px; border-radius: 14px; border: 1px dashed var(--gold); background: rgba(255,209,102,.07); color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-size: clamp(16px, 4.6vw, 21px); font-weight: 700; letter-spacing: 2px; user-select: all; overflow-wrap: anywhere; }
.auth .row + .btn { margin-top: 14px; }
.dialog { z-index: 150; }
.dialog .gate { animation: pop .18s ease-out; }
.dialog .dialog-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; background: rgba(34,211,238,.12); box-shadow: 0 0 0 6px rgba(34,211,238,.08); }
.dialog .dialog-icon.danger { background: rgba(255,77,109,.14); box-shadow: 0 0 0 6px rgba(255,77,109,.08); }
.dialog h2 { margin-bottom: 8px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hint { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.publish-note { margin: 12px auto 0; max-width: 520px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }
.publish-note a { color: var(--cyan); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } }
.tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, transform .12s; }
.tile:hover { border-color: var(--line2); transform: translateY(-1px); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile.is-cover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,209,102,.25); }
.tile .cover-badge { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #1a1300; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 7px; }
.tile .kind { position: absolute; top: 6px; right: 34px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; }
.tile .remove { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.tile .remove:hover { background: var(--pink); }
.tile .size { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.prep { max-width: 560px; margin: 40px auto; }
.prep h2 { margin-bottom: 6px; }
.prep p { margin: 6px 0; }
.prep .btn { margin-top: 14px; }
.file-list .usage.over { color: var(--red); }
.file-list .usage { font-size: 13px; color: var(--muted); font-weight: 600; }
.lightbox img, .lightbox video { max-height: 86vh; max-width: 92vw; border-radius: 14px; }
.lightbox .close { position: absolute; top: 14px; right: 18px; font-size: 30px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox .close:hover { color: var(--pink); }
.lightbox .caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); padding: 0 16px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--card2); border: 1px solid var(--cyan); padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 200; transition: transform .25s; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* admin */
.admin-room { margin-bottom: 14px; }
.admin-room .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-room .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-room .girls { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 12px; }
.admin-room .girl.reported { outline: 2px solid var(--red); }
.report-log { list-style: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,77,109,.07); border: 1px solid rgba(255,77,109,.3); font-size: 13px; color: var(--muted); display: grid; gap: 4px; }

/* terms */
.terms { max-width: 760px; line-height: 1.7; }
.terms h2 { margin-top: 32px; font-size: 18px; }
.terms b { color: var(--cyan); }
