/* Watch Party, powered by Jaydenater bot. Colours and lettering match the approved mockups. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("fonts/luckiest-guy.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #120C0C; --panel: #1E1415; --line: #3A2526; --line2: #4A2F31; --btn: #2C1C1D;
  --text: #F6E9E9; --muted: #BFA7A8; --body: #E3D2D3; --red: #EC282E; --red2: #CE1A22;
  --video: #050405; --blurple: #5865F2; --ok: #7FD69A; --warn: #F2B45A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: #FF8A8F; }
[hidden] { display: none !important; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; line-height: 1.5; color: #8F7A7C; }
.right { text-align: right; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin: 0; }

/* ---- the logo lockup ---- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .cat { border-radius: 25%; border: 2px solid var(--red); object-fit: cover; }
.brand .words { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.brand .wp { font-family: "Luckiest Guy", Inter, sans-serif; color: var(--red); line-height: 1; letter-spacing: .03em;
  -webkit-text-stroke: var(--wps) #000; paint-order: stroke fill; text-shadow: 0 var(--wpd) 0 #000; font-size: var(--w); }
.brand .powered { display: inline-flex; align-items: center; gap: calc(var(--w) * .18); line-height: 1; margin-top: calc(var(--w) * .06); }
.brand .pb { font-weight: 700; letter-spacing: .14em; color: var(--muted); font-size: max(7.5px, calc(var(--w) * .25)); }
.brand .jd { font-family: "Luckiest Guy", Inter, sans-serif; color: #fff; letter-spacing: .03em; font-size: calc(var(--w) * .5);
  -webkit-text-stroke: max(2px, calc(var(--w) * .1)) #000; paint-order: stroke fill; text-shadow: 0 max(1px, calc(var(--w) * .035)) 0 #000; }
.brand .bot { font-family: "Luckiest Guy", Inter, sans-serif; color: #fff; background: var(--red); border: max(1px, calc(var(--w) * .03)) solid #000;
  border-radius: 999px; letter-spacing: .06em; line-height: 1; font-size: calc(var(--w) * .225);
  padding: calc(var(--w) * .075) calc(var(--w) * .135) calc(var(--w) * .0375); }
.brand-lg { --w: 40px; --wps: 6px; --wpd: 2.8px; }
.brand-lg .cat { width: 64px; height: 64px; }
.brand-md { --w: 24px; --wps: 3.6px; --wpd: 1.7px; }
.brand-md .cat { width: 44px; height: 44px; }
.brand-sm { --w: 22px; --wps: 3.3px; --wpd: 1.5px; }
.brand-sm .cat { width: 40px; height: 40px; }

/* ---- buttons, panels ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 10px; border: 0; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; color: #fff; }
.btn.primary { background: var(--red); }
.btn.primary:hover { background: var(--red2); }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); font-weight: 500; }
.btn.ghost:hover { background: var(--btn); }
.btn.discord, .btn.voice { background: var(--blurple); }
.btn.danger { background: transparent; border: 1px solid var(--red); color: #FF8A8F; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: 13px Inter, sans-serif; padding: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel h4 { margin: 0 0 10px; font-size: 16px; }
.panel p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--body); }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.notice.bad { background: #3A1416; border: 1px solid var(--red2); }
input, select { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; height: 40px;
  padding: 0 12px; font: 14px Inter, sans-serif; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- top bar ---- */
.topbar { min-height: 72px; padding: 10px 28px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--btn); flex-wrap: wrap; }
.topbar .status { font-size: 13px; color: var(--body); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #3BA55D; } .dot.bad { background: var(--red); }
.topbar .sep { width: 1px; height: 28px; background: var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; }
.me { font-size: 14px; color: var(--muted); }
.topbar form { margin: 0; }
.pill { font-size: 13px; color: var(--body); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; }
.pill.locked { border-color: var(--red); color: #fff; }
.room-top .title { font-size: 15px; color: var(--body); }

/* ---- login / messages ---- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--btn); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step.done .num { background: #2F6B45; border-color: #2F6B45; }
.step > div > b { display: block; margin-bottom: 3px; }
.step > div > span { font-size: 14px; color: var(--body); line-height: 1.45; }
.who { background: var(--bg); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.5; color: var(--body); }
.who b { display: block; margin-bottom: 4px; color: #fff; }
.msg h1 { font-family: "Luckiest Guy", Inter, sans-serif; color: var(--red); margin: 0; font-size: 30px; letter-spacing: .02em;
  -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.msg p { margin: 0; color: var(--body); line-height: 1.5; }

/* ---- home ---- */
.home { display: flex; gap: 28px; padding: 28px 32px; max-width: 1440px; margin: 0 auto; }
.home-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.home-side { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.hello { font-family: "Luckiest Guy", Inter, sans-serif; font-size: 34px; margin: 0 0 8px; font-weight: 400; letter-spacing: .02em; }
.home-main .label { margin-top: 8px; }
.live-card { display: flex; gap: 18px; border-color: var(--red); }
.poster { width: 110px; height: 165px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.live-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.live-info h2 { margin: 0; font-size: 22px; }
.badge-live { align-self: flex-start; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 4px 10px; }
.sub { font-size: 14px; color: var(--body); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.codeform { display: flex; gap: 10px; }
.codeform input { width: 170px; text-transform: uppercase; letter-spacing: .08em; }
.hint { font-size: 13px; color: var(--muted); }
.form-msg { font-size: 13px; color: #FF8A8F; min-height: 1em; }
.empty { color: var(--body); font-size: 14px; }
.list { padding: 6px 18px; }
.row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.home-side .row { padding: 8px 0; gap: 10px; }
.row:last-child { border-bottom: 0; }
.when { min-width: 190px; color: #fff; font-weight: 600; white-space: nowrap; }
.small-form { margin: 0; }

/* ---- the room ---- */
.room { display: flex; gap: 24px; padding: 20px 28px; min-height: calc(100vh - 72px); }
.stage { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { position: relative; background: var(--video); border-radius: 12px 12px 0 0; aspect-ratio: 16 / 9; max-height: calc(100vh - 260px);
  width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.screen video { width: 100%; height: 100%; background: #000; }
.screen video::cue { background: rgba(0,0,0,.65); color: #fff; font-family: Inter, sans-serif; }
body.subs-s .screen video::cue { font-size: 70%; }
body.subs-l .screen video::cue { font-size: 140%; }
.toast { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(30,20,21,.92); border: 1px solid var(--line2);
  border-radius: 999px; padding: 10px 18px; font-size: 14px; z-index: 5; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(5,4,5,.88); z-index: 4; text-align: center; padding: 16px; }
.count { font-family: "Luckiest Guy", Inter, sans-serif; font-size: min(170px, 22vw); line-height: 1; color: var(--red); animation: fade .9s ease-out both; }
.count.action { color: #fff; font-size: min(100px, 13vw); letter-spacing: .04em; }
@keyframes fade { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.overlay-title { font-family: "Luckiest Guy", Inter, sans-serif; font-size: 44px; color: var(--red); letter-spacing: .03em;
  -webkit-text-stroke: 6px #000; paint-order: stroke fill; }
.overlay-sub { font-size: 15px; color: var(--body); max-width: 440px; line-height: 1.5; }
.cat-lg { width: 72px; height: 72px; border-radius: 18px; border: 2px solid var(--red); }
.intermission-title { font-family: "Luckiest Guy", Inter, sans-serif; font-size: 44px; line-height: 1; color: var(--red); letter-spacing: .03em;
  -webkit-text-stroke: 6.6px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.timer { font-family: "Luckiest Guy", Inter, sans-serif; font-size: 96px; line-height: 1; color: #fff; letter-spacing: .04em;
  -webkit-text-stroke: 12px #000; paint-order: stroke fill; text-shadow: 0 5px 0 var(--red2); font-variant-numeric: tabular-nums; }
.row-gap { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.skip-intro { position: absolute; right: 24px; bottom: 24px; z-index: 5; background: rgba(30,20,21,.95); border: 1px solid var(--red); }
.upnext { position: absolute; right: 24px; bottom: 24px; width: 380px; max-width: calc(100% - 48px); background: rgba(30,20,21,.96); border: 1px solid var(--red);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 5; font-size: 14px; }
.upnext .bar, .progress { height: 6px; border-radius: 3px; background: var(--line); position: relative; }
.upnext .bar div, .progress .fill { height: 100%; border-radius: 3px; background: var(--red); width: 0; }
.floaters { position: absolute; right: 40px; bottom: 90px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 3; pointer-events: none; }
.floater { background: rgba(30,20,21,.92); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 14px;
  animation: floatup 3s ease-out forwards; }
.floater .em { font-size: 22px; vertical-align: middle; margin-right: 6px; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(16px); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
body.no-react .floaters { display: none; }
.controls { background: var(--panel); padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.progress-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.progress { flex-grow: 1; cursor: pointer; }
.progress.disabled { cursor: not-allowed; }
.buttons-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--btn); color: var(--text); font: 700 13px Inter, sans-serif; cursor: pointer; }
.round.big { width: 52px; height: 52px; background: var(--red); color: #fff; font-size: 18px; }
.round:disabled { opacity: .45; cursor: not-allowed; }
.icon { background: none; border: 0; color: var(--text); font: 600 15px Inter, sans-serif; cursor: pointer; padding: 6px; }
.icon.on { color: var(--red); }
#volume { width: 110px; height: auto; padding: 0; accent-color: var(--red); background: none; border: 0; }
.reactbar { background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reactbar button { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); font-size: 20px; cursor: pointer; color: var(--text); }
.reactbar button small { font: 500 11px Inter, sans-serif; color: var(--muted); margin-left: 4px; }
.reactbar.off { display: none; }
.side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.people img { width: 28px; height: 28px; border-radius: 50%; }
.people .state { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.people .state .dot { width: 8px; height: 8px; }
.side-buttons { display: flex; flex-direction: column; gap: 8px; }
.side-buttons .btn { justify-content: flex-start; }
.drawer { display: flex; flex-direction: column; gap: 12px; }
.drawer label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.drawer label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.drawer.host { border-color: var(--red); }
.toggle { flex-direction: row !important; justify-content: space-between; align-items: center !important; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.toggle span { display: flex; flex-direction: column; gap: 2px; }
.toggle b { font-size: 15px; color: var(--text); font-weight: 500; }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line2);
  position: relative; cursor: pointer; flex-shrink: 0; border: 0; padding: 0; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--red); }
.toggle input:checked::after { left: 21px; }
.menu-row { display: flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.menu-row span { margin-right: auto; }
.menu-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.results { display: flex; flex-direction: column; gap: 4px; }
.results button { text-align: left; background: var(--bg); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; font: 13px Inter, sans-serif; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.keys dt { text-align: center; padding: 3px 8px; border-radius: 6px; background: var(--btn); border: 1px solid var(--line2); font-weight: 600; font-size: 13px; }
.keys dd { margin: 0; color: var(--body); align-self: center; }
body:not(.is-host) .host-only { display: none !important; }
body:not(.is-show) .show-only { display: none !important; }
body.is-show .movie-only { display: none !important; }
.show-only { display: contents; }

/* ---- phones ---- */
@media (max-width: 900px) {
  .home { flex-direction: column; padding: 20px 16px; }
  .home-side { width: auto; }
  .room { flex-direction: column; padding: 0 0 16px; gap: 14px; }
  .screen { border-radius: 0; max-height: none; }
  .reactbar { border-radius: 0; }
  .side { width: auto; padding: 0 16px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .hide-phone { display: none; }
  .live-card { flex-direction: column; }
  .when { width: auto; }
  .row { flex-wrap: wrap; gap: 6px 12px; }
  .reactbar button { flex: 1; padding: 0 6px; }
  .reactbar .label { display: none; }
  .round { width: 56px; height: 56px; } .round.big { width: 64px; height: 64px; }
  .buttons-row { justify-content: center; }
  #volume { display: none; }
  .timer { font-size: 72px; -webkit-text-stroke: 9px #000; }
}
