:root {
  --bg: #0d0b14;
  --panel: #171325;
  --panel2: #1f1932;
  --text: #e8e4f5;
  --muted: #9a92b5;
  --accent: #ff4d8d;
  --accent2: #b14dff;
  --ok: #4dffa1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; min-height: 100vh; }
a { color: var(--accent); }

/* age gate */
.agegate { position: fixed; inset: 0; background: rgba(5,4,10,.96); z-index: 100; display: flex; align-items: center; justify-content: center; }
.agegate.hidden { display: none; }
.agegate-box { background: var(--panel); border: 1px solid #2c2344; border-radius: 14px; padding: 36px; max-width: 420px; text-align: center; }
.agegate-box h2 { color: var(--accent); margin-bottom: 12px; }
.agegate-box p { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.agegate-box button { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border: 0; padding: 13px 26px; font-size: 16px; border-radius: 9px; cursor: pointer; width: 100%; }
.age-no { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 16px 5vw; border-bottom: 1px solid #241d3a; flex-wrap: wrap; gap: 8px 18px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.quota { font-size: 13px; color: var(--muted); }
.quota b { color: var(--ok); }

main { max-width: 980px; margin: 0 auto; padding: 30px 16px 60px; }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 560px; height: 320px; background: radial-gradient(ellipse, rgba(255,77,141,.14), rgba(177,77,255,.07) 55%, transparent 75%); pointer-events: none; }
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); margin: 10px 0 24px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.chips span { color: var(--muted); font-size: 13px; }
.chip { background: var(--panel2); color: var(--muted); border: 1px solid #352a55; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--text); }

.genbox { background: var(--panel); border: 1px solid #2c2344; border-radius: 14px; padding: 18px; }
textarea { width: 100%; background: var(--panel2); border: 1px solid #352a55; color: var(--text); border-radius: 9px; padding: 13px; font-size: 15px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent2); }
.genrow { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
select { background: var(--panel2); color: var(--text); border: 1px solid #352a55; border-radius: 9px; padding: 11px; font-size: 14px; flex: 1; min-width: 160px; }
#go { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border: 0; border-radius: 9px; padding: 12px 30px; font-size: 16px; font-weight: 700; cursor: pointer; flex: 2; min-width: 180px; }
#go:disabled { opacity: .5; cursor: not-allowed; }
.msg { margin-top: 10px; font-size: 14px; color: #ff8d8d; min-height: 18px; }
.pubopt { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.pubopt input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.queue { text-align: center; margin: 26px 0; }
.queue.hidden, .result.hidden, .limitbox.hidden { display: none; }
.spinner { width: 46px; height: 46px; margin: 0 auto 14px; border: 4px solid #352a55; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.queue-upsell { margin-top: 18px; background: var(--panel); border: 1px dashed #3d2f63; border-radius: 12px; padding: 16px; }
.queue-upsell p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.cta { display: inline-block; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; text-decoration: none; padding: 11px 22px; border-radius: 9px; font-weight: 700; font-size: 15px; }
.btn-sec { display: inline-block; background: var(--panel2); color: var(--text); border: 1px solid #3d2f63; text-decoration: none; padding: 10px 18px; border-radius: 9px; font-size: 14px; cursor: pointer; }

.result { margin: 26px 0; text-align: center; }
.candy-tip { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.candy-tip a { font-weight: 600; }
#surprise { flex: 0 0 auto; }
.result img { max-width: 100%; max-height: 640px; border-radius: 12px; border: 1px solid #2c2344; }
.result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

.limitbox { margin: 26px 0; background: var(--panel); border: 1px solid var(--accent2); border-radius: 14px; padding: 24px; text-align: center; }
.limitbox p { color: var(--muted); margin: 10px 0 16px; }
.limit-brands { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.gallery-sec { margin-top: 50px; }
.gallery-sec h2 { font-size: 20px; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery figure { background: var(--panel); border-radius: 10px; overflow: hidden; border: 1px solid #241d3a; transition: transform .15s, border-color .15s; }
.gallery figure:hover { transform: translateY(-3px); border-color: var(--accent2); }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.gallery figcaption { font-size: 11px; color: var(--muted); padding: 7px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  header { padding: 10px 4vw; }
  header nav { gap: 12px !important; font-size: 13px !important; }
  .quota { width: 100%; text-align: right; }
}

footer { margin-top: 60px; border-top: 1px solid #241d3a; padding-top: 18px; }
footer p { color: #6b6386; font-size: 11px; margin-bottom: 6px; }
