/* Slow Burn: tube-site layout conventions. Black, orange, dense grids, small badges, system sans. */

:root {
  --bg: #000;
  --panel: #121212;
  --panel-2: #1b1b1b;
  --panel-3: #262626;
  --line: #2c2c2c;
  --text: #fff;
  --text-2: #c6c6c6;
  --text-3: #8a8a8a;
  --orange: #ff9000;
  --orange-hi: #ffa31a;
  --red: #d4322a;
  --live: #e0262a;
  --r: 3px;

  --bulma-body-background-color: var(--bg);
  --bulma-body-color: var(--text);
  --bulma-text: var(--text);
  --bulma-text-strong: var(--text);
  --bulma-link-text: var(--orange);
  --bulma-family-primary: Arial, Helvetica, sans-serif;
  --bulma-body-family: Arial, Helvetica, sans-serif;
  --bulma-radius: 3px;
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hi); text-decoration: underline; }
hr { background: var(--line); height: 1px; }
::selection { background: var(--orange); color: #000; }

/* ---------- header ---------- */
.th { background: #000; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.th-bar { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 28px; }
.th-logo { font-weight: 800; font-size: 24px; letter-spacing: .5px; color: #fff; line-height: 1; white-space: nowrap; }
.th-logo b { color: var(--orange); font-weight: 800; }
.th-logo:hover { color: #fff; text-decoration: none; }
.th-logo-lg { font-size: 34px; display: inline-block; margin-bottom: 18px; }
.th-tabs { display: flex; gap: 2px; height: 100%; }
.th-tabs a { display: flex; align-items: center; padding: 0 14px; color: var(--text-2); font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; }
.th-tabs a:hover { color: #fff; text-decoration: none; background: var(--panel-2); }
.th-tabs a.is-on { color: #fff; border-bottom-color: var(--orange); }
.th-cta { margin-left: auto; display: inline-block; background: var(--orange); color: #000 !important; font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: var(--r); border: 0; cursor: pointer; text-decoration: none !important; font-family: inherit; }
.th-cta:hover { background: var(--orange-hi); }
.th-cta-lg { margin: 0; padding: 14px 22px; font-size: 16px; }

/* ---------- page wrapper ---------- */
.tw { max-width: 1280px; margin: 0 auto; padding: 18px 16px 10px; }

.tx-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 22px 24px; border-radius: var(--r); }
.tx-banner h1 { font-size: 26px; line-height: 1.2; font-weight: 800; margin-bottom: 6px; max-width: 32em; }
.tx-banner p { color: var(--text-2); max-width: 46em; }
.tx-banner .th-cta { flex-shrink: 0; }

.tx-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 4px 4px; color: var(--text-3); font-size: 13px; }
.tx-stats b { color: var(--orange); font-size: 15px; }

.tx-section { margin-top: 26px; }
.tx-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; border-left: 4px solid var(--orange); padding-left: 10px; line-height: 1.1; }

/* ---------- tile grid ---------- */
.tg { display: grid; gap: 18px 14px; }
.tg-3 { grid-template-columns: repeat(3, 1fr); }
.tg-4 { grid-template-columns: repeat(4, 1fr); }
.tc { display: block; color: var(--text); text-decoration: none !important; }
.tc:hover .tc-title { color: var(--orange); }
.tc:hover .tc-thumb { outline: 2px solid var(--orange); }
.tc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; --a: #222; background: var(--a); }
.tc-name { font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); position: relative; }
.tc-badge { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #000; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; z-index: 1; }
.tc-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 2px; z-index: 1; }
.tc-title { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.tc-meta { color: var(--text-3); font-size: 13px; line-height: 1.35; margin-top: 2px; }

.is-heat-1 { --a: #3a2a14; }
.is-heat-2 { --a: #4a2a0c; }
.is-heat-3 { --a: #4d1612; }
.is-topic-1 { --a: #2e2a22; }
.is-topic-2 { --a: #35261c; }
.is-topic-3 { --a: #2a2a2a; }
.is-topic-4 { --a: #2f2418; }
.is-topic-5 { --a: #262a2e; }
.is-topic-6 { --a: #34281a; }
.is-topic-7 { --a: #2b2b22; }
.is-topic-8 { --a: #3b1a14; }
.is-guide { --a: #1f2428; }

.tx-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tx-how > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; }
.tx-how b { flex-shrink: 0; width: 26px; height: 26px; background: var(--orange); color: #000; border-radius: 2px; display: grid; place-items: center; font-size: 14px; }
.tx-how p { color: var(--text-2); font-size: 14px; }
.tx-how strong { color: #fff; }

/* ---------- footer ---------- */
.tf { margin-top: 40px; background: var(--panel); border-top: 1px solid var(--line); padding: 26px 16px; color: var(--text-3); font-size: 13px; }
.tf-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; }
.tf h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.tf .th-logo { font-size: 20px; margin-bottom: 8px; display: inline-block; }

/* ---------- age gate ---------- */
.sb-gate { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: #000; }
.sb-gate-box { max-width: 460px; width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r); padding: 30px 28px; text-align: center; }
.sb-gate-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.sb-gate-text { color: var(--text-2); margin-bottom: 22px; }
.sb-gate-box .th-cta { width: 100%; }
.sb-gate-leave { display: inline-block; margin-top: 16px; color: var(--text-3); font-size: 13px; }

/* ---------- inner pages (play / game / guides) ---------- */
.section { padding: 22px 16px 10px; }
.container { max-width: 1280px; }
.sb-narrow { max-width: 640px; }
.sb-narrow-lg { max-width: 860px; }
.section .container.sb-narrow, .section .container.sb-narrow-lg { margin-left: 0; margin-right: auto; }

.sb-display, .sb-h1, .sb-h2, .sb-h3 { color: #fff; font-weight: 800; font-family: inherit; }
.sb-h1 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; border-left: 4px solid var(--orange); padding-left: 10px; }
.sb-h2 { font-size: 19px; line-height: 1.2; margin: 18px 0 10px; border-left: 4px solid var(--orange); padding-left: 10px; }
.sb-h3 { font-size: 16px; margin-bottom: 4px; }
.sb-lead-sm, .sb-lead { color: var(--text-2); max-width: 44rem; }
.sb-muted { color: var(--text-3); font-size: 13px; }
.sb-small { font-size: 13px; }
.sb-eyebrow { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 2px; }

.sb-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.sb-card .button { margin-top: 12px; }
.sb-warn { margin: 14px 0 0; padding: 10px 14px; background: #3a1512; border: 1px solid var(--red); border-left-width: 4px; border-radius: var(--r); color: #ffd7d3; }

/* buttons & inputs (Bulma overrides) */
.button { background: var(--panel-3); color: #fff; border: 1px solid #3a3a3a; border-radius: var(--r); font-weight: 700; box-shadow: none; }
.button:hover, .button:focus { background: #343434; color: #fff; border-color: #555; text-decoration: none; }
.button.is-primary { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 800; }
.button.is-primary:hover, .button.is-primary:focus { background: var(--orange-hi); color: #000; }
.button.is-primary[disabled] { background: var(--panel-3); border-color: var(--line); color: var(--text-3); opacity: 1; }
.button.is-medium { padding: 22px 22px; font-size: 16px; }
.button.is-outlined, .button.sb-ghost { background: transparent; color: #fff; border-color: #555; }
.button.is-outlined:hover { background: #222; color: #fff; border-color: var(--orange); }
.button.is-ghost, .sb-quiet { background: transparent; border: 0; color: var(--text-3); text-decoration: underline; }
.button:focus-visible, .sb-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.input { background: #0c0c0c; border: 1px solid #3a3a3a; color: #fff; border-radius: var(--r); box-shadow: none; height: 42px; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.input::placeholder { color: #6d6d6d; }
.field.has-addons .button { height: 42px; margin-top: 0; }
.label { color: #fff; font-weight: 700; }
.help { color: var(--text-3); }
.checkbox { color: var(--text-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); }
.notification.is-danger.is-light { background: #3a1512; color: #ffd7d3; border: 1px solid var(--red); border-radius: var(--r); }
.progress { height: 8px; border-radius: 0; background: #2a2a2a; }
.progress::-webkit-progress-bar { background: #2a2a2a; border-radius: 0; }
.progress::-webkit-progress-value { background: var(--orange); border-radius: 0; transition: width .2s; }
.progress::-moz-progress-bar { background: var(--orange); }

/* guides list */
.sb-guide-list a.sb-guide { display: block; padding: 14px 16px; margin-bottom: 8px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r); text-decoration: none !important; }
.sb-guide-list a.sb-guide:hover { background: var(--panel-3); }
.sb-guide-title { display: block; font-size: 16px; font-weight: 700; color: #fff; font-family: inherit; }
.sb-guide-sum { display: block; color: var(--text-3); font-size: 13px; }
.sb-prose p { font-size: 16px; line-height: 1.65; margin-bottom: 16px; max-width: 40rem; color: var(--text-2); }

/* ---------- setup ---------- */
.sb-fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.sb-fieldset legend { margin-bottom: 8px; }
.sb-choices { display: grid; gap: 8px; }
.sb-choices-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sb-choice { cursor: pointer; display: block; }
.sb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sb-choice-body { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--r); }
.sb-choice-body b { font-size: 16px; }
.sb-choice-body span { color: var(--text-2); font-size: 14px; }
.sb-choice-body small { color: var(--orange); font-weight: 700; }
.sb-choice:hover .sb-choice-body { border-color: #555; }
.sb-choice input:checked + .sb-choice-body { border-color: var(--orange); background: #2a1c08; box-shadow: inset 4px 0 0 var(--orange); }
.sb-choice input:focus-visible + .sb-choice-body { outline: 2px solid var(--orange); outline-offset: 2px; }
.sb-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; margin-top: 6px; }
.sb-topic { font-weight: 600; color: #fff; }
.sb-topic.is-off { opacity: .35; text-decoration: line-through; }
.sb-heat-note { margin-top: 10px; padding: 10px 14px; background: #3a1512; border: 1px solid var(--red); border-left-width: 4px; border-radius: var(--r); color: #ffd7d3; font-size: 14px; }

/* ---------- lobby ---------- */
.sb-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 16px 0 0; }
.sb-setting { display: grid; gap: 1px; align-content: start; }
.sb-setting .sb-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .5px; }
.sb-setting b { font-size: 20px; line-height: 1.15; color: var(--orange); font-family: inherit; font-weight: 800; }
.sb-setting small { color: var(--text-2); font-size: 13px; }

.sb-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.sb-player { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.sb-player small { color: var(--text-3); }
.sb-player.is-empty { border-style: dashed; background: transparent; }
.sb-presence { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #555; flex-shrink: 0; font-size: 0; }
.sb-presence.is-on { width: auto; height: auto; border-radius: 2px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 5px; line-height: 1.2; }

/* ---------- playing ---------- */
.sb-sticky { position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 10px 0 12px; margin-bottom: 8px; }
.sb-stage { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sb-stage .sb-eyebrow { margin: 0; font-size: 15px; color: #fff; font-weight: 800; }
.sb-status .sb-player { padding: 5px 10px; }
#bar { margin: 0; }

.sb-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.sb-item-text { flex: 1; min-width: 0; }
.sb-item h2 { font-size: 17px; line-height: 1.25; font-weight: 700; color: #fff; margin-bottom: 2px; font-family: inherit; }
.sb-item p { color: var(--text-2); font-size: 14px; }

.sb-q { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.sb-q.is-answered { border-left: 4px solid var(--orange); }
.sb-partner-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; min-height: 20px; }
.sb-tag { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 2px; background: var(--panel-3); color: var(--text-2); }
.sb-tag.is-here { background: var(--live); color: #fff; }
.sb-tag.is-done::before { content: '\2713\00a0'; color: var(--orange); }

.sb-rate { display: flex; gap: 6px; flex-shrink: 0; }
.sb-btn { font: inherit; font-weight: 800; font-size: 14px; padding: 9px 16px; min-width: 76px; background: var(--panel-3); color: #fff; border: 1px solid #3f3f3f; border-radius: var(--r); cursor: pointer; }
.sb-btn:hover { background: #3a3a3a; border-color: #666; }
.sb-btn.is-yes[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #000; }
.sb-btn.is-maybe[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.sb-btn.is-no[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.sb-waiting { margin: 18px 0 60px; color: var(--text-2); font-weight: 700; }

.sb-overlay { position: fixed; inset: 0; background: #000; display: grid; place-items: center; z-index: 90; }
.sb-overlay[hidden] { display: none; }
.sb-overlay-box { padding: 20px; max-width: 620px; border-left: 6px solid var(--orange); }
.sb-overlay-box .sb-eyebrow { color: var(--orange); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.sb-overlay-text { font-size: clamp(26px, 5vw, 44px); font-weight: 800; line-height: 1.1; font-family: inherit; }

.sb-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--live); color: #fff; border-radius: var(--r); padding: 8px 16px; font-weight: 700; z-index: 95; }

/* ---------- results ---------- */
.sb-score { background: var(--panel-2); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r); padding: 22px 24px; margin: 6px 0 22px; text-align: left; }
.sb-score-num { font-size: clamp(72px, 16vw, 130px); font-weight: 800; line-height: 1; color: var(--orange); margin: 4px 0 6px; font-family: inherit; }
.sb-score-label { font-size: 22px; font-weight: 800; font-family: inherit; }
.sb-score .sb-muted { color: var(--text-2); }
.sb-results .sb-item { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r); padding: 12px 16px; margin-bottom: 8px; }
.sb-details summary { cursor: pointer; font-weight: 700; color: var(--orange); }
.sb-details p { margin-top: 8px; color: var(--text-2); max-width: 40rem; }

@media (max-width: 1000px) {
  .tg-4, .tg-3 { grid-template-columns: repeat(2, 1fr); }
  .tx-how { grid-template-columns: 1fr; }
  .tf-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .th-bar { gap: 10px; }
  .th-logo { font-size: 19px; }
  .th-tabs a { padding: 0 8px; font-size: 13px; }
  .th-cta:not(.th-cta-lg) { display: none; }
  .tx-banner { flex-direction: column; align-items: stretch; padding: 16px; }
  .tx-banner h1 { font-size: 21px; }
  .tg { gap: 14px 10px; }
  .tc-name { font-size: 16px; }
  .sb-item { flex-direction: column; align-items: stretch; gap: 10px; }
  .sb-rate .sb-btn { flex: 1; }
}

@media print {
  .th, .tf, .buttons, form, .sb-details { display: none !important; }
  body { background: #fff; color: #000; }
  .sb-score, .sb-results .sb-item { background: #fff; border-color: #999; }
  .sb-item h2, .sb-score-label { color: #000; }
  .sb-item p { color: #333; }
}

.tc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; }

/* ---------- watch together ---------- */
.sb-upnext { padding: 22px; }
.sb-upnext-title { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 12px 0 4px; font-family: inherit; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-chip { background: var(--panel-3); color: var(--text-2); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; text-transform: lowercase; }
.sb-chip-heat { position: static; }
.sb-note .sb-list { margin: 6px 0 0 18px; list-style: disc; color: var(--text-2); font-size: 14px; }
.sb-note .sb-list li { margin-bottom: 6px; }
.select select { background: #0c0c0c; border: 1px solid #3a3a3a; color: #fff; border-radius: var(--r); height: 42px; }
.select:not(.is-multiple):not(.is-loading)::after { border-color: var(--orange); }
.sb-player-wrap { position: relative; background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.sb-embed { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.sb-vid-error { position: absolute; inset: 0; display: grid; place-items: center; color: #ffd7d3; font-weight: 700; text-align: center; padding: 20px; }
