/* One theme for the gate, the booth, the site and the about page: a karaoke room at night. */
:root {
  --bg-deep: #07060d; --bg-mid: #1a0f2e; --bg-glow: #4b1d6e;
  --pink: #ff2e93; --pink-soft: #ff7ad9; --gold: #ffd43b; --mint: #7dffb0; --amber: #ffb36b;
  --text: #fff; --text-dim: #cfc8ea; --text-faint: #8f88ad;
  --panel: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .16);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, sans-serif; color: var(--text); min-height: 100vh; background: var(--bg-deep); }
/* The glow stays put behind everything, however long the page. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 120%, var(--bg-glow) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%); }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
a { color: var(--pink-soft); }
.hint { color: var(--text-faint); font-size: 14px; }
h1, h2, h3 { margin: 0; }

/* Buttons */
.start { background: var(--pink); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 800; font-size: 17px; box-shadow: 0 0 24px rgba(255, 46, 147, .45); }
.start:disabled { opacity: .35; box-shadow: none; cursor: default; }
.start.wide { width: 100%; }
.ghost, .pill { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.ghost:hover, .pill:hover { background: rgba(255, 255, 255, .16); }
.pill { padding: 11px 20px; font-weight: 700; text-decoration: none; display: inline-block; }
.pill.small { padding: 7px 14px; font-weight: 600; font-size: 14px; }
.pill.on { background: var(--pink); border-color: var(--pink); }

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-dim); }
.logo-mic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px;
  background: radial-gradient(circle at 35% 30%, #ff8fc8, var(--pink) 60%, #a3105c); box-shadow: 0 0 18px rgba(255, 46, 147, .5); }
.logo-text { font-size: 11px; line-height: 1.15; text-transform: uppercase; letter-spacing: .08em; }
.wordmark { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }

/* The site */
.site { max-width: 920px; margin: 0 auto; padding: 24px 24px 80px; transition: filter .6s ease; }
.site.locked { filter: blur(10px) brightness(.7); pointer-events: none; user-select: none; }
.site-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.small-mic { width: 34px; height: 34px; font-size: 16px; flex: none; text-decoration: none; border: 0; }

/* The Karaoke CAPTCHA region: compact until expanded */
.kc { background: var(--panel); border: 1px solid rgba(255, 46, 147, .45); border-radius: 16px; padding: 12px 14px; }
.kc-head { display: flex; align-items: center; gap: 12px; }
.kc-title { flex: 1; }
.kc-title h2 { font-size: 17px; font-weight: 800; }
.kc-title .hint { font-size: 13px; }
.icon-btn { background: transparent; color: var(--text-dim); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.kc-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kc .pill { padding: 8px 14px; font-size: 14px; }
.share-options { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.choir { margin-top: 14px; }
.choir-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.choir h3 { font-size: 16px; }
.choir h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--pink-soft); margin: 16px 0 8px; }
.choir .start { padding: 8px 16px; font-size: 14px; }
.chorus-out { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chorus-out audio { flex: 1; }
.parts { display: flex; flex-direction: column; gap: 8px; }
.part-row { display: flex; align-items: center; gap: 12px; }
.part-name { width: 72px; font-weight: 800; color: var(--text-dim); font-size: 14px; }
.seats { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seat { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #6d5aa8; }
.seat:hover, .seat.playing { background: var(--gold); box-shadow: 0 0 14px rgba(255, 212, 59, .6); }
.seat.you { background: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 147, .35); }
.seat.empty { background: transparent; border: 2px dashed rgba(255, 255, 255, .2); cursor: default; box-shadow: none; }
.more { color: var(--text-faint); font-size: 13px; }
.highlights { display: flex; flex-direction: column; gap: 6px; }
.highlight { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.highlight .who { font-weight: 800; }
.highlight .what { color: var(--text-dim); flex: 1; }
.highlight.flagged { opacity: .5; }
.highlight .ghost { padding: 4px 10px; font-size: 13px; }

/* The rest of the site: a softened mockup */
.mock { margin-top: 18px; filter: blur(1.5px); opacity: .55; pointer-events: none; }
.mock-tabs { display: flex; gap: 18px; color: var(--text-dim); font-weight: 700; padding: 6px 2px 12px; }
.mock-tabs .on { color: #fff; border-bottom: 2px solid var(--pink); }
.mock-post { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.mock-post p { margin: 4px 0 0; color: var(--text-faint); font-size: 13px; }
.votes { text-align: center; color: var(--text-faint); font-size: 13px; line-height: 1.3; }
.mock-img { margin-top: 10px; height: 120px; border-radius: 10px; background: linear-gradient(135deg, #3a2a5e, #6b2d5c 60%, #2a1f40); }
.mock-img.tall { height: 180px; background: linear-gradient(135deg, #5c2a1f, #a0522d 50%, #3a1a10); }

/* Around the room (about page) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 14px; }
.post p { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }

/* The gate */
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(7, 6, 13, .35); z-index: 10; transition: opacity .5s ease; padding: 20px; }
.gate.gone { opacity: 0; pointer-events: none; }
.gate-card { width: 400px; max-width: 100%; border-radius: 22px; padding: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(40, 20, 70, .96), rgba(12, 8, 24, .98)); box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transition: width .45s ease, height .45s ease, padding .45s ease; position: relative; overflow: hidden; }
.gate-card.open { width: min(1100px, 96vw); height: min(680px, 92vh); padding: 0; }
.gate-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.signin-view label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.signin-view input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; font-size: 15px;
  color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.captcha { display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 16px; padding: 14px; text-align: left; color: #fff;
  border: 1px solid rgba(255, 46, 147, .5); border-radius: 12px; background: rgba(255, 46, 147, .08); }
.captcha:hover { background: rgba(255, 46, 147, .16); }
.captcha .box { width: 26px; height: 26px; border: 2px solid var(--pink-soft); border-radius: 6px; flex: none; display: grid; place-items: center; font-weight: 900; color: var(--mint); }
.captcha .box.done { border-color: var(--mint); }
.captcha .box.done::after { content: "✓"; }
.captcha-text { flex: 1; font-weight: 700; }
.captcha-text small { display: block; font-weight: 400; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.captcha-brand { font-size: 9px; line-height: 1.15; text-align: center; color: var(--text-faint); }

/* The booth, inside the gate */
.booth { position: absolute; inset: 0; display: flex; flex-direction: column; }
.booth-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 28px; }
.now { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--pink-soft); }
.song-title { font-size: 26px; font-weight: 900; }
.song-artist { color: var(--text-dim); }
.booth-actions { display: flex; gap: 10px; }
.stage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 0 40px; text-align: center; }
.lyric { font-weight: 800; min-height: 1.3em; }
.lyric.prev { font-size: 24px; color: rgba(255, 255, 255, .25); }
.lyric.next { font-size: 26px; color: rgba(255, 255, 255, .45); }
.current-wrap { position: relative; padding-top: 34px; }
.now-line { font-size: 48px; }
.w { display: inline-block; margin: 0 .14em; position: relative;
  background: linear-gradient(90deg, var(--gold) 0 var(--p, 0%), #fff var(--p, 0%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.w.sung { --p: 100%; }
.w.active { text-shadow: 0 0 24px rgba(255, 212, 59, .35); }
.dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #ff4fb8 40%, #c2187f 100%); box-shadow: 0 0 16px #ff4fb8; }
.countdown { position: absolute; top: 2%; left: 0; right: 0; text-align: center; font-size: 96px; font-weight: 900; color: var(--pink-soft);
  text-shadow: 0 0 40px rgba(255, 122, 217, .6); pointer-events: none; }
.booth-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 28px; }
.booth-status { color: var(--text-dim); max-width: 640px; }
.result { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #160c28, var(--bg-deep)); padding: 40px; text-align: center; }
.result-title { font-size: 38px; font-weight: 900; }
.result-title.pass { color: var(--mint); } .result-title.fail { color: var(--amber); }
.result-words { font-size: 22px; font-weight: 700; max-width: 860px; }
.result-words .hit { color: var(--mint); } .result-words .miss { color: rgba(255, 255, 255, .3); text-decoration: line-through; }
.meter-row { display: flex; align-items: center; gap: 12px; }
.meter-label { color: var(--text-dim); }
.meter { width: 260px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ff4fb8, var(--gold)); transition: width 1s ease; }
.meter-value { font-weight: 800; min-width: 3em; text-align: left; }
.meter-note { color: var(--text-faint); font-size: 13px; max-width: 540px; }
.result-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* About page */
.about { max-width: 860px; margin: 0 auto; padding: 24px 24px 100px; }
.about section { margin-top: 44px; }
.about h1 { font-size: 54px; line-height: 1.05; font-weight: 900; margin-top: 40px; }
.about h2 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.about p, .about li { color: var(--text-dim); }
.about table { width: 100%; border-collapse: collapse; font-size: 15px; }
.about th, .about td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.about th { color: var(--pink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.about td { color: var(--text-dim); }
.about td b { color: #fff; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

.ghost:disabled { opacity: .35; cursor: default; }
