/* Scelot Retro TV. Every rule is scoped under .srtv so nothing here can restyle the rest of the site. */
.srtv-page { padding: calc(var(--header-h, 68px) + clamp(20px, 4vw, 44px)) max(var(--gutter, 20px), calc((100% - 1300px) / 2)) clamp(48px, 7vw, 96px); }
.srtv { --srtv-bg: #14131b; --srtv-panel: #24212e; --srtv-chip: #302b3b; --srtv-line: #4a4454; --srtv-muted: #b3aec0; --srtv-accent: #e5202a; --srtv-accent-2: #ff4d55; --srtv-hi: #ffd27a; --srtv-crt: #dbff9c;
  --srtv-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); line-height: 1.4; }
.srtv *, .srtv *::before, .srtv *::after { box-sizing: border-box; }
.srtv [hidden] { display: none !important; }
.srtv button, .srtv input, .srtv select { font: inherit; }
.srtv button { cursor: pointer; }
.srtv button:disabled, .srtv [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.srtv :focus-visible { outline: 3px solid var(--srtv-hi); outline-offset: 3px; }

/* ---- intro: follows the site's light or dark theme */
.srtv-intro { margin: 0 0 clamp(18px, 3vw, 28px); }
.srtv-micro { margin: 0 0 10px; font: 700 .72rem var(--srtv-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #e5202a); }
.srtv-headline { margin: 0 0 10px; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; color: var(--text, #15121d); }
.srtv-headline em { font-family: var(--font-serif, Georgia, serif); font-style: italic; font-weight: 400; color: var(--accent, #e5202a); }
.srtv-desc { margin: 0; max-width: 620px; font-size: 1rem; line-height: 1.6; color: var(--muted, #5b5866); }
.srtv-noscript { padding: 16px; border: 1px solid var(--line, #ddd); border-radius: 14px; color: var(--text, #15121d); }

/* ---- stage: always dark, like a TV room */
.srtv-stage { color: #f9f4f3; border-radius: 28px; padding: clamp(14px, 2.4vw, 26px); border: 1px solid #2c2936;
  background: radial-gradient(circle at 18% 4%, #383044 0, transparent 34%), radial-gradient(circle at 96% 62%, #272439 0, transparent 34%), var(--srtv-bg); }
.srtv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.srtv-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #514d5d; border-radius: 50px; padding: 8px 13px; color: #d6d0df; font-size: .75rem; font-weight: 700; background: transparent; }
.srtv-pill--steps { margin-inline-end: auto; font-family: var(--srtv-mono); font-weight: 400; letter-spacing: .02em; color: var(--srtv-muted); }
.srtv-pill--score { min-height: 40px; background: var(--srtv-hi); border-color: var(--srtv-hi); color: #241a08; }
.srtv-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.srtv-left { min-width: 0; display: grid; gap: 16px; }

.srtv-scene { border: 1px solid #494354; border-radius: 26px; padding: 22px 18px 16px; background: radial-gradient(ellipse at center, #343042 0, #1e1b28 67%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .2); }
.srtv-tv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 15px; padding: 22px 20px 18px; border: 5px solid #6f452e; border-bottom-width: 10px; border-bottom-color: #583723; border-radius: 40px 40px 29px 29px;
  background: linear-gradient(145deg, #c39c78 0, #a87a55 35%, #76462e 100%); box-shadow: 0 20px 1px #382821, 0 24px 38px rgba(0, 0, 0, .6), inset 0 3px 4px rgba(255, 226, 184, .43); }
.srtv-rim { min-width: 0; padding: 11px; border: 10px solid #443439; border-radius: 47% / 15%; background: #282229; box-shadow: inset 0 0 20px rgba(0, 0, 0, .93), 0 0 0 3px rgba(214, 181, 139, .4); }
.srtv-screen { position: relative; isolation: isolate; min-height: 340px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 27px 29px 20px; text-align: center; color: #fff; border-radius: 48% / 14%;
  background: radial-gradient(ellipse at 50% 44%, #2d4960 0, #12212d 55%, #0b101d 100%); box-shadow: inset 0 0 55px rgba(0, 0, 0, .87); }
.srtv-screen::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(2, 7, 9, .21) 4px 5px); mix-blend-mode: multiply; }
.srtv-screen::before { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; box-shadow: inset 0 0 50px 19px rgba(0, 0, 0, .6); border-radius: inherit; }
.srtv-tvhead, .srtv-tvfoot { position: relative; z-index: 5; width: 100%; display: flex; justify-content: space-between; gap: 10px; text-align: start; font: 700 .64rem var(--srtv-mono); letter-spacing: .08em; color: var(--srtv-crt); }
.srtv-tvfoot { color: #b6bfcb; }
.srtv-picture { position: relative; z-index: 4; flex: 1; max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px 0; }
.srtv-object { font-size: clamp(64px, 9vw, 104px); line-height: 1.15; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .6)); animation: srtv-float 3s ease-in-out infinite; }
.srtv-screen h2 { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.srtv-screen p { margin: 0; max-width: 370px; font-size: .8rem; line-height: 1.45; color: #e9e0e7; }
.srtv-tag { display: inline-block; padding: 5px 9px; border: 1px solid #edffad; border-radius: 20px; font: 800 .62rem var(--srtv-mono); color: #e6ffa0; background: #243c3a; }
.srtv-budgetline { min-height: 1.2em; font-size: .7rem; font-weight: 800; color: #efffc3; }
.srtv-screen.is-static { background: repeating-linear-gradient(1deg, #38383b 0, #a4a8a4 2px, #33383d 4px, #c7d2d1 6px); animation: srtv-noise .18s steps(3) infinite; }
.srtv-screen.is-static .srtv-picture > * { visibility: hidden; }
.srtv-screen.is-static .srtv-picture::before { content: "NO SIGNAL"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; color: #fff; font: 800 1.35rem var(--srtv-mono); text-shadow: 0 2px 4px #000; }
.srtv-screen.is-off { background: #080a0d; }
.srtv-screen.is-off > * { visibility: hidden; }
.srtv-side { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 18px 7px; border-radius: 23px; background: linear-gradient(120deg, #b48d64, #926846); box-shadow: inset 3px 3px 8px rgba(255, 255, 255, .22), inset -3px -4px 10px rgba(61, 33, 13, .4); }
.srtv-sidelabel { font: 800 .64rem var(--srtv-mono); color: #483325; }
.srtv-dial { display: grid; place-items: center; width: 69px; height: 69px; padding: 0; border: 7px solid #a67e58; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #f3dfba, #66452b 70%); box-shadow: 0 5px 8px rgba(58, 34, 26, .53); color: #fff6da; font: 700 .82rem var(--srtv-mono); transition: transform .25s ease; }
.srtv-dial:hover { transform: rotate(14deg); }
.srtv-speaker { margin-top: auto; display: grid; gap: 6px; width: 60px; }
.srtv-speaker i { height: 3px; border-radius: 2px; background: #704d36; box-shadow: 0 1px #c6a179; }
.srtv-light { width: 9px; height: 9px; border-radius: 50%; background: #9fff6d; box-shadow: 0 0 14px #97ed57; }
.srtv-light.is-off { background: #484449; box-shadow: none; }
.srtv-legs { display: flex; justify-content: space-around; margin: 17px 25% 0; }
.srtv-legs span { width: 18px; height: 19px; border-radius: 2px; background: linear-gradient(#8b5d3b, #402918); transform: rotate(12deg); }
.srtv-legs span + span { transform: rotate(-12deg); }

.srtv-remote { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 30px; padding: 12px 14px; border: 1px solid #4c455b; border-radius: 18px; background: #292634; }
.srtv-remotetitle { font: 700 .68rem var(--srtv-mono); color: #aeabc3; white-space: nowrap; }
.srtv-round { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #5f5a6b; border-radius: 50%; background: #3e394a; color: #fff; font-weight: 800; }
.srtv-round:hover { background: #625972; }
.srtv-round--red { background: #e96c72; border-color: #e96c72; color: #2b1117; }
.srtv-round--red:hover { background: #ff8990; }
.srtv-spin { border: 0; border-radius: 12px; padding: 12px 16px; min-height: 44px; background: var(--srtv-accent); color: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(229, 32, 42, .9); }
.srtv-spin:hover { background: var(--srtv-accent-2); }
.srtv-status { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .7rem; color: #a9a4b7; }
.srtv-status strong { color: #efebf2; }

/* ---- result card: what the spin found, and what to do next */
.srtv-result { border: 1px solid #59515e; border-radius: 20px; padding: 16px; background: #1b1a25; }
.srtv-result__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.srtv-result__row strong { color: var(--srtv-hi); font-size: .9rem; }
.srtv-price { font: 800 .95rem var(--srtv-mono); color: #f6ecd2; white-space: nowrap; }
.srtv-result p { margin: 8px 0 0; font-size: .75rem; line-height: 1.5; color: #beb8c5; }
.srtv-guard { padding: 9px 11px; border-radius: 10px; background: #3a2f1d; color: #ffe2a8 !important; }
.srtv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.srtv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 11px 12px; border: 1px solid #5a5366; border-radius: 12px; background: #332e3e; color: #fff; font-size: .8rem; font-weight: 800; text-align: center; text-decoration: none; }
.srtv-btn:hover { background: #413a4f; }
.srtv-btn--primary { background: var(--srtv-accent); border-color: var(--srtv-accent); color: #fff; }
.srtv-btn--primary:hover { background: var(--srtv-accent-2); border-color: var(--srtv-accent-2); }
.srtv-btn--amber { background: var(--srtv-hi); border-color: var(--srtv-hi); color: #24170d; }
.srtv-btn--amber:hover { background: #ffe1a3; }
.srtv-btn--quiet { background: transparent; color: #d9d3e2; }
.srtv-btn--wide { grid-column: 1 / -1; }
.srtv-btn--block { width: 100%; margin-top: 4px; }
.srtv-saved { margin-top: 12px; font-size: .78rem; color: #cfc9d8; }
.srtv-saved summary { cursor: pointer; font-weight: 700; }
.srtv-saved ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.srtv-saved li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #26232f; }
.srtv-saved li button { flex: none; min-width: 40px; min-height: 40px; border: 1px solid #5a5366; border-radius: 8px; background: transparent; color: #cfc9d8; }

/* ---- settings panel */
.srtv-panel { border: 1px solid var(--srtv-line); border-radius: 24px; padding: 22px; background: var(--srtv-panel); }
.srtv-panel__title { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.srtv-sub { margin: 5px 0 16px; font-size: .78rem; line-height: 1.5; color: var(--srtv-muted); }
.srtv-field { margin: 16px 0; }
.srtv-field--mood { padding: 12px; border: 1px solid #4a4651; border-radius: 14px; background: #191824; }
.srtv-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 9px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #f1edf5; }
.srtv-label span { color: var(--srtv-hi); font-size: .9rem; letter-spacing: 0; }
.srtv-moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.srtv-mood { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; border: 1px solid #504a5c; border-radius: 13px; background: var(--srtv-chip); color: #fff; text-align: center; }
.srtv-mood span { font-size: 1.55rem; line-height: 1.2; }
.srtv-mood strong { font-size: .78rem; }
.srtv-mood small { font-size: .62rem; color: #b5b0c0; }
.srtv-mood[aria-pressed="true"] { border-color: var(--srtv-hi); background: #3d3424; box-shadow: inset 0 0 0 1px var(--srtv-hi); }
.srtv-mood[aria-pressed="true"] small { color: #ecdcb9; }
.srtv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.srtv-chips--presets { margin-top: 9px; }
.srtv-chip { min-height: 40px; padding: 9px 12px; border: 1px solid #504a5c; border-radius: 11px; background: var(--srtv-chip); color: #ddd8e3; font-size: .78rem; font-weight: 700; }
.srtv-chip[aria-pressed="true"] { background: var(--srtv-hi); border-color: var(--srtv-hi); color: #28200e; }
.srtv-select { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #504a5c; border-radius: 11px; background: var(--srtv-chip); color: #fff; font-size: .85rem; }
.srtv input[type="range"] { width: 100%; height: 28px; accent-color: var(--srtv-accent-2); cursor: pointer; }
.srtv-rangeends { display: flex; justify-content: space-between; font-size: .68rem; color: #9790a4; }
.srtv-more { margin-top: 16px; border-top: 1px solid #3b3646; padding-top: 12px; }
.srtv-more summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: #d9d3e2; }
.srtv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; border-radius: 12px; background: #17151f; }
.srtv-seg button { min-height: 40px; padding: 9px 5px; border: 0; border-radius: 8px; background: transparent; color: #b9b5c3; font-size: .74rem; font-weight: 800; }
.srtv-seg button[aria-pressed="true"] { background: #4d455d; color: #fff; }
.srtv-reward { margin-top: 18px; padding: 15px; border: 1px solid #655b4a; border-radius: 15px; background: linear-gradient(120deg, #393224, #29232b); }
.srtv-reward__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srtv-reward h3 { margin: 0; font-size: .82rem; font-weight: 800; color: #fff; }
.srtv-reward small { color: #dbcaab; font-size: .7rem; }
.srtv-progress { height: 7px; margin: 12px 0; border-radius: 10px; background: #544c46; overflow: hidden; }
.srtv-fill { width: 0; height: 100%; background: linear-gradient(90deg, #ffb969, var(--srtv-hi)); transition: width .25s; }
.srtv-reward__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .7rem; color: #e5d3b6; }
.srtv-reward__foot strong { color: var(--srtv-hi); }
.srtv-note { margin: 10px 0 0; font-size: .68rem; line-height: 1.5; color: #aaa3b7; }

.srtv-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.srtv-footbox { padding: 14px; border: 1px solid #423d4c; border-radius: 15px; background: #201d29; }
.srtv-footbox strong { display: block; margin-bottom: 5px; font-size: .78rem; color: #fff; }
.srtv-footbox span { display: block; font-size: .7rem; line-height: 1.45; color: #aaa4b4; }

.srtv-toast { position: fixed; z-index: 120; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%); display: none; max-width: min(90vw, 420px); padding: 12px 18px; border-radius: 13px; background: #fff3d6; color: #1d1608; font-size: .82rem; font-weight: 800; text-align: center; box-shadow: 0 10px 35px rgba(0, 0, 0, .6); }
[dir="rtl"] .srtv-toast { transform: translateX(50%); }
.srtv-toast.is-on { display: block; }
.srtv-shade { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8, 8, 13, .8); }
.srtv-modal { width: min(460px, 100%); padding: 22px; border: 1px solid #655a6d; border-radius: 22px; background: #292634; color: #fff; box-shadow: 0 20px 100px rgba(0, 0, 0, .6); }
.srtv-modal h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: #fff; }
.srtv-modal p { margin: 0 0 8px; font-size: .84rem; line-height: 1.6; color: #c3becb; }
.srtv-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }

@keyframes srtv-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(4deg); } }
@keyframes srtv-noise { 0% { background-position: 0 0; } 100% { background-position: 18px 30px; } }

@media (max-width: 980px) {
  .srtv-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .srtv-stage { padding: 10px; border-radius: 20px; }
  .srtv-pill--steps { display: none; }
  .srtv-bar { justify-content: space-between; }
  .srtv-scene { padding: 12px 8px 14px; border-radius: 20px; }
  .srtv-tv { grid-template-columns: minmax(0, 1fr) 50px; gap: 6px; padding: 10px 8px 12px; border-radius: 22px; }
  .srtv-rim { padding: 5px; border-width: 5px; border-radius: 31% / 12%; }
  .srtv-screen { min-height: 264px; padding: 18px 15px 14px; border-radius: 30% / 11%; }
  .srtv-object { font-size: 72px; }
  .srtv-tvhead, .srtv-tvfoot { font-size: .52rem; }
  .srtv-side { padding: 12px 2px; gap: 10px; }
  .srtv-sidelabel { font-size: .52rem; }
  .srtv-dial { width: 44px; height: 44px; border-width: 4px; font-size: .64rem; }
  .srtv-speaker { width: 29px; gap: 4px; }
  .srtv-speaker i { height: 2px; }
  .srtv-remote { margin-top: 28px; padding: 9px; gap: 5px; }
  .srtv-remotetitle { display: none; }
  .srtv-spin { padding: 11px 10px; font-size: .74rem; }
  .srtv-panel { padding: 16px; }
  .srtv-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .srtv-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srtv-round { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .srtv-object, .srtv-screen.is-static { animation: none; }
  .srtv-dial, .srtv-fill { transition: none; }
  .srtv-dial:hover { transform: none; }
}
