/* Emberlowe — site styles. Dark "town at night" theme, ember call-to-action, candy accents. */

:root {
  --qt-bg: #150b1d;
  --qt-bg-2: #1b0f25;
  --qt-surface: #231432;
  --qt-surface-2: #2c1a3e;
  --qt-surface-3: #38224d;
  --qt-panel: rgba(21, 11, 29, 0.78);
  --qt-line: rgba(255, 255, 255, 0.09);
  --qt-line-2: rgba(255, 255, 255, 0.16);
  --qt-ink: #f6f1ff;
  --qt-muted: #b8acd8;
  --qt-faint: #8a7fae;
  --qt-ember: #ffa63d;
  --qt-ember-ink: #2a1200;
  --qt-pink: #ff4fa8;
  --qt-gold: #ffcf4a;
  --qt-teal: #2ee6d6;
  --qt-violet: #7b5cff;
  --qt-bad: #ff6b81;
  --qt-good: #6dffb0;
  --qt-accent: var(--qt-ember);
  --qt-r: 16px;
  --qt-r-sm: 10px;
  --qt-r-lg: 24px;
  --qt-s1: 4px;
  --qt-s2: 8px;
  --qt-s3: 12px;
  --qt-s4: 16px;
  --qt-s5: 24px;
  --qt-s6: 32px;
  --qt-s7: 48px;
  --qt-s8: 64px;
  --qt-head: 64px;
  --qt-side: 244px;
  --qt-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --qt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --qt-display: "Avenir Next", "Segoe UI Variable Display", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --qt-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --qt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--qt-head) + 12px); }
body {
  margin: 0;
  font-family: var(--qt-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--qt-ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 122, 61, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 79, 168, 0.12), transparent 60%),
    var(--qt-bg);
  background-attachment: fixed;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--qt-ember); text-underline-offset: 3px; }
a:hover { color: #ffd9a0; }
h1, h2, h3 { font-family: var(--qt-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 var(--qt-s3); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 var(--qt-s3); }
code { font-family: var(--qt-mono); font-size: 0.92em; background: var(--qt-surface-2); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--qt-ember); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--qt-pink); color: #fff; }
[hidden] { display: none !important; }

.qt-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qt-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--qt-ember); color: var(--qt-ember-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.qt-skip:focus { top: 12px; }
.qt-ico { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------ compliance strip */
.qt-strip { background: linear-gradient(90deg, #2a1230, #3d1a2c 50%, #2a1230); border-bottom: 1px solid var(--qt-line); font-size: 0.8rem; text-align: center; padding: 6px 16px; color: #efe6ff; }
.qt-strip p { margin: 0; }
.qt-strip strong { color: var(--qt-gold); }
@media (max-width: 640px) { .qt-strip__more { display: none; } }

/* ------------------------------------------------------------ buttons */
.qt-btn {
  --b-bg: var(--qt-surface-2); --b-ink: var(--qt-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-ink); font: inherit; font-weight: 800; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--qt-ease), box-shadow 200ms var(--qt-ease), background-color 200ms var(--qt-ease);
}
.qt-btn:hover { color: var(--b-ink); transform: translateY(-1px); }
.qt-btn:active { transform: translateY(1px) scale(0.98); }
.qt-btn--ember { --b-bg: linear-gradient(180deg, #ffc06a, #ff9a2e); --b-ink: var(--qt-ember-ink); box-shadow: 0 8px 24px -8px rgba(255, 166, 61, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.qt-btn--ember:hover { box-shadow: 0 12px 30px -8px rgba(255, 166, 61, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.qt-btn--ghost { --b-bg: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px var(--qt-line-2); }
.qt-btn--ghost:hover { --b-bg: rgba(255, 255, 255, 0.11); }
.qt-btn--danger { --b-bg: linear-gradient(180deg, #ff7b8f, #e8405c); --b-ink: #2a0008; }
.qt-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.qt-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.qt-btn--block { width: 100%; }
.qt-btn .qt-ico { width: 18px; height: 18px; }
.qt-roundbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  color: var(--qt-ink); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--qt-line);
  transition: background-color 180ms var(--qt-ease), transform 160ms var(--qt-ease);
}
.qt-roundbtn:hover { background: rgba(255, 255, 255, 0.14); color: var(--qt-ink); }
.qt-roundbtn:active { transform: scale(0.94); }
.qt-roundbtn[aria-pressed="true"] { color: var(--qt-pink); background: rgba(255, 79, 168, 0.16); }

/* ------------------------------------------------------------ header */
.qt-top {
  position: sticky; top: 0; z-index: 40; height: var(--qt-head);
  display: flex; align-items: center; gap: var(--qt-s4); padding: 0 var(--qt-s4);
  background: rgba(21, 11, 29, 0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--qt-line);
}
.qt-top__burger { display: inline-grid; }
.qt-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--qt-ink); flex: none; }
.qt-logo img { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(123, 92, 255, 0.45)); }
.qt-logo__word { font-family: var(--qt-display); font-weight: 900; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--qt-ink); }
.qt-logo__word span { color: var(--qt-ember); }
.qt-logo:hover { color: var(--qt-ink); }
.qt-search { position: relative; flex: 1 1 280px; max-width: 420px; display: none; }
.qt-search .qt-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--qt-faint); width: 18px; height: 18px; pointer-events: none; }
.qt-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--qt-line); background: var(--qt-surface); color: var(--qt-ink); font: inherit; padding: 0 16px 0 42px; transition: border-color 160ms, background-color 160ms; }
.qt-search input:focus { outline: none; border-color: var(--qt-ember); background: var(--qt-surface-2); }
.qt-search input::placeholder { color: var(--qt-faint); }
.qt-top__links { display: none; gap: 4px; }
.qt-top__links a { color: var(--qt-muted); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; transition: color 160ms, background-color 160ms; }
.qt-top__links a:hover, .qt-top__links a[aria-current="page"] { color: var(--qt-ink); background: rgba(255, 255, 255, 0.07); }
.qt-top__me { margin-left: auto; display: flex; align-items: center; gap: var(--qt-s2); }
.qt-top__me .qt-btn--ghost { display: none; }
.qt-purse { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--qt-surface-2); box-shadow: inset 0 0 0 1px var(--qt-line-2); color: var(--qt-gold); font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.qt-purse img { width: 26px; height: 26px; }
.qt-purse:hover { color: var(--qt-gold); background: var(--qt-surface-3); }
.qt-purse.is-bump { animation: qt-bump 420ms var(--qt-ease); }
@keyframes qt-bump { 40% { transform: scale(1.08); } }
.qt-menu { position: relative; }
.qt-menu__face { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--qt-surface-2); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-menu__face::-webkit-details-marker { display: none; }
.qt-menu__lvl { font-size: 0.8rem; font-weight: 800; color: var(--qt-muted); }
.qt-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--qt-pink), var(--qt-violet)); color: #fff; font-weight: 900; font-family: var(--qt-display); }
.qt-avatar--xl { width: 76px; height: 76px; font-size: 2rem; box-shadow: 0 10px 30px -10px rgba(255, 79, 168, 0.7); }
.qt-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; padding: 8px; border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line-2); display: grid; gap: 2px; z-index: 50; }
.qt-menu__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--qt-ink); text-decoration: none; font-weight: 600; }
.qt-menu__panel a:hover { background: var(--qt-surface-2); }
.qt-menu__hello { padding: 6px 10px 8px; margin: 0; font-size: 0.85rem; color: var(--qt-muted); border-bottom: 1px solid var(--qt-line); }

/* ------------------------------------------------------------ frame + side nav */
.qt-frame { display: block; }
.qt-side {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 300px); overflow-y: auto;
  padding: var(--qt-s4) var(--qt-s3) var(--qt-s7); background: var(--qt-bg-2); border-right: 1px solid var(--qt-line);
  transform: translateX(-104%); transition: transform 260ms var(--qt-ease); overscroll-behavior: contain;
}
.qt-side.is-open { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5); }
.qt-side__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--qt-s3); padding: 0 6px; }
.qt-side__title { font-family: var(--qt-display); font-weight: 800; font-size: 1.1rem; }
.qt-side__group { display: grid; gap: 2px; margin-bottom: var(--qt-s4); }
.qt-side__label { margin: var(--qt-s2) 10px 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--qt-faint); font-weight: 800; }
.qt-side__group a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--qt-muted); text-decoration: none; font-weight: 650; font-size: 0.95rem; transition: background-color 160ms, color 160ms; }
.qt-side__group a:hover { background: rgba(255, 255, 255, 0.05); color: var(--qt-ink); }
.qt-side__group a[aria-current="page"] { background: linear-gradient(90deg, rgba(255, 166, 61, 0.16), rgba(255, 166, 61, 0.02)); color: var(--qt-ink); box-shadow: inset 3px 0 0 var(--qt-ember); }
.qt-side__group a[aria-current="page"] .qt-ico { color: var(--qt-ember); }
.qt-side__note { margin: var(--qt-s3) 6px 0; padding: var(--qt-s3); border-radius: var(--qt-r-sm); background: var(--qt-surface); font-size: 0.82rem; color: var(--qt-muted); }
.qt-side__note p { margin: 0; }
.qt-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(6, 2, 14, 0.6); backdrop-filter: blur(2px); }
.qt-main { padding: var(--qt-s4) var(--qt-s4) calc(var(--qt-s8) + 40px); min-width: 0; outline: none; }

@media (min-width: 720px) {
  .qt-search { display: block; }
  .qt-top__me .qt-btn--ghost { display: inline-flex; }
}
@media (min-width: 1100px) {
  .qt-top { padding: 0 var(--qt-s5); }
  .qt-top__burger { display: none; }
  .qt-top__links { display: flex; }
  .qt-frame { display: grid; grid-template-columns: var(--qt-side) minmax(0, 1fr); }
  .qt-side { position: sticky; top: var(--qt-head); height: calc(100vh - var(--qt-head)); width: auto; transform: none; z-index: 1; box-shadow: none; background: transparent; }
  .qt-side__head { display: none; }
  .qt-scrim { display: none !important; }
  .qt-main { padding: var(--qt-s5) var(--qt-s6) var(--qt-s8); max-width: 1440px; width: 100%; }
}

/* ------------------------------------------------------------ hero carousel */
.qt-kicker { display: inline-block; margin: 0 0 var(--qt-s2); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; color: var(--qt-ember); }
.qt-hero { position: relative; border-radius: var(--qt-r-lg); overflow: hidden; background: var(--qt-surface); box-shadow: var(--qt-shadow); }
.qt-hero__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.qt-hero__track::-webkit-scrollbar { display: none; }
.qt-slide {
  scroll-snap-align: start; min-height: clamp(380px, 46vw, 460px); display: flex; align-items: flex-end;
  background: linear-gradient(0deg, rgba(21, 11, 29, 0.96) 40%, rgba(21, 11, 29, 0.74) 72%, rgba(21, 11, 29, 0.42)), var(--slide-art) center right / cover no-repeat;
}
.qt-slide__copy { padding: var(--qt-s5); max-width: 620px; }
.qt-slide__title { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); font-weight: 900; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); margin-bottom: var(--qt-s3); }
.qt-slide__text { color: #e4dcf7; font-size: 1.02rem; max-width: 52ch; }
.qt-slide__cta { display: flex; flex-wrap: wrap; gap: var(--qt-s3); margin-top: var(--qt-s4); }
.qt-hero__dots { position: absolute; right: var(--qt-s5); bottom: var(--qt-s4); display: flex; gap: 8px; }
.qt-hero__dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 240ms var(--qt-ease), background-color 240ms; }
.qt-hero__dots button[aria-selected="true"] { width: 28px; background: var(--qt-ember); }
@media (min-width: 900px) {
  .qt-slide { align-items: center; background: linear-gradient(90deg, rgba(21, 11, 29, 0.97) 28%, rgba(21, 11, 29, 0.55) 52%, transparent 78%), var(--slide-art) center right / cover no-repeat; }
  .qt-slide__copy { padding: var(--qt-s7); }
}

.qt-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: var(--qt-s4) 0; }
.qt-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--qt-line); font-size: 0.82rem; font-weight: 700; color: #e8e0fa; }
.qt-facts .qt-ico { width: 16px; height: 16px; color: var(--qt-ember); }

.qt-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px var(--qt-s3); margin: 0 0 var(--qt-s4); scrollbar-width: none; }
.qt-pills::-webkit-scrollbar { display: none; }
.qt-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); color: var(--qt-ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; transition: background-color 160ms, transform 160ms var(--qt-ease); }
.qt-pill .qt-ico { width: 18px; height: 18px; color: var(--qt-ember); }
.qt-pill:hover { background: var(--qt-surface-2); color: var(--qt-ink); transform: translateY(-1px); }
.qt-pill.is-on { background: var(--qt-ember); color: var(--qt-ember-ink); }
.qt-pill.is-on .qt-ico { color: var(--qt-ember-ink); }

/* ------------------------------------------------------------ rails and tiles */
.qt-rail { margin: var(--qt-s6) 0; }
.qt-rail__head, .qt-section-head { display: flex; align-items: center; gap: var(--qt-s3); margin-bottom: var(--qt-s3); }
.qt-rail__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
.qt-rail__title .qt-ico { color: var(--qt-pink); width: 24px; height: 24px; }
.qt-section-head h2 { margin: 0; }
.qt-rail__more { margin-left: auto; font-weight: 800; font-size: 0.9rem; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 166, 61, 0.1); }
.qt-rail__nav { display: none; gap: 6px; }
.qt-rail__nav .qt-roundbtn { width: 34px; height: 34px; }
.qt-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(138px, 38vw, 186px); gap: var(--qt-s3); overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--qt-surface-3) transparent; }
.qt-rail__track > * { scroll-snap-align: start; }
@media (min-width: 900px) { .qt-rail__nav { display: flex; } .qt-rail__track { grid-auto-columns: 186px; } }

.qt-tile { position: relative; min-width: 0; }
.qt-tile__link { position: relative; display: block; border-radius: var(--qt-r); overflow: hidden; aspect-ratio: 3 / 4; background: var(--qt-surface-2); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9); transform: translateZ(0); transition: transform 220ms var(--qt-ease), box-shadow 220ms var(--qt-ease); }
.qt-tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--qt-ease); }
.qt-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }
.qt-tile__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: var(--qt-ember); color: var(--qt-ember-ink); opacity: 0; transform: scale(0.85); transition: opacity 200ms var(--qt-ease), transform 200ms var(--qt-ease); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.qt-tile__play .qt-ico { width: 26px; height: 26px; margin-left: 3px; }
@media (hover: hover) {
  .qt-tile__link:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(123, 92, 255, 0.75); }
  .qt-tile__link:hover img { transform: scale(1.05); }
  .qt-tile__link:hover .qt-tile__play { opacity: 1; transform: scale(1); }
}
.qt-tile__link:focus-visible .qt-tile__play { opacity: 1; transform: scale(1); }
.qt-chip { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.qt-chip--new { background: var(--qt-ember); color: var(--qt-ember-ink); }
.qt-chip--hot { background: var(--qt-pink); color: #fff; }
.qt-tile__meta { padding: 8px 2px 0; }
.qt-tile__name { margin: 0; font-size: 0.92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--qt-font); }
.qt-tile__studio { margin: 0; font-size: 0.78rem; color: var(--qt-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ home bands */
.qt-band { margin: var(--qt-s7) 0; padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: linear-gradient(135deg, rgba(255, 79, 168, 0.14), rgba(123, 92, 255, 0.14)), var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-band__copy { max-width: 640px; margin-bottom: var(--qt-s4); }
.qt-band__copy p { color: var(--qt-muted); }
.qt-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--qt-s3); }
.qt-perk { display: grid; gap: 4px; align-content: start; padding: var(--qt-s4); border-radius: var(--qt-r); background: rgba(21, 11, 29, 0.55); box-shadow: inset 0 0 0 1px var(--qt-line); color: var(--qt-ink); text-decoration: none; transition: transform 200ms var(--qt-ease), background-color 200ms; }
.qt-perk:hover { transform: translateY(-3px); background: rgba(21, 11, 29, 0.8); color: var(--qt-ink); }
.qt-perk img { width: 72px; height: 72px; margin-bottom: 6px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.qt-perk__name { font-weight: 800; font-family: var(--qt-display); font-size: 1.05rem; }
.qt-perk__text { font-size: 0.86rem; color: var(--qt-muted); }

.qt-split { display: grid; gap: var(--qt-s4); margin: var(--qt-s6) 0; }
@media (min-width: 800px) { .qt-split { grid-template-columns: 1fr 1fr; } }
.qt-banner { position: relative; display: grid; align-content: end; gap: 4px; min-height: 230px; padding: var(--qt-s5); border-radius: var(--qt-r-lg); overflow: hidden; color: var(--qt-ink); text-decoration: none; background: linear-gradient(90deg, rgba(21, 11, 29, 0.95) 25%, rgba(21, 11, 29, 0.2)), var(--banner-art) center right / cover; box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line); transition: transform 220ms var(--qt-ease); }
.qt-banner:hover { transform: translateY(-3px); color: var(--qt-ink); }
.qt-banner__title { font-family: var(--qt-display); font-weight: 900; font-size: 1.6rem; }
.qt-banner__text { color: var(--qt-muted); max-width: 34ch; }

.qt-ladder { display: grid; gap: var(--qt-s5); margin: var(--qt-s7) 0; padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-ladder__copy p { color: var(--qt-muted); }
.qt-ladder__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qt-s3); }
.qt-ladder__steps li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: var(--qt-s3) var(--qt-s2); border-radius: var(--qt-r); background: rgba(255, 255, 255, 0.03); }
.qt-ladder__steps img { width: 56px; height: 56px; }
.qt-ladder__name { font-weight: 800; font-size: 0.9rem; }
.qt-ladder__boost { font-size: 0.75rem; color: var(--qt-ember); font-weight: 700; }
@media (min-width: 1000px) { .qt-ladder { grid-template-columns: 1fr 1.5fr; align-items: center; } .qt-ladder__steps { grid-template-columns: repeat(6, 1fr); } }

.qt-steps { margin: var(--qt-s7) 0; }
.qt-steps__grid { display: grid; gap: var(--qt-s3); }
@media (min-width: 800px) { .qt-steps__grid { grid-template-columns: repeat(3, 1fr); } }
.qt-step { position: relative; padding: var(--qt-s5); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-step p { color: var(--qt-muted); margin: 0; }
.qt-step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--qt-s3); border-radius: 12px; background: linear-gradient(135deg, var(--qt-ember), #e07a1f); color: var(--qt-ember-ink); font-weight: 900; font-family: var(--qt-display); font-size: 1.2rem; }

.qt-studios { margin: var(--qt-s7) 0; }
.qt-studios__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--qt-s3); overflow-x: auto; padding-bottom: 8px; }
.qt-studio { position: relative; display: grid; align-content: end; min-height: 130px; padding: var(--qt-s4); border-radius: var(--qt-r); overflow: hidden; color: var(--qt-ink); text-decoration: none; background: var(--qt-surface-2); }
.qt-studio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 220ms, transform 400ms var(--qt-ease); }
.qt-studio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 11, 29, 0.92), transparent 70%); }
.qt-studio:hover img { opacity: 0.8; transform: scale(1.04); }
.qt-studio__name, .qt-studio__count { position: relative; z-index: 1; }
.qt-studio__name { font-weight: 900; font-family: var(--qt-display); font-size: 1.1rem; }
.qt-studio__count { font-size: 0.8rem; color: var(--qt-muted); }

.qt-news-strip { margin: var(--qt-s7) 0; }
.qt-news-strip__grid { display: grid; gap: var(--qt-s3); }
@media (min-width: 800px) { .qt-news-strip__grid { grid-template-columns: repeat(3, 1fr); } }
.qt-newscard { display: grid; gap: 6px; padding-bottom: var(--qt-s3); border-radius: var(--qt-r); overflow: hidden; background: var(--qt-surface); color: var(--qt-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--qt-line); transition: transform 200ms var(--qt-ease); }
.qt-newscard:hover { transform: translateY(-3px); color: var(--qt-ink); }
.qt-newscard img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.qt-newscard__date { padding: 0 var(--qt-s4); font-size: 0.78rem; color: var(--qt-faint); font-weight: 700; }
.qt-newscard__title { padding: 0 var(--qt-s4); font-weight: 800; font-family: var(--qt-display); font-size: 1.08rem; }

.qt-faq { margin: var(--qt-s7) auto; max-width: 860px; }
.qt-faq__item { border-radius: var(--qt-r-sm); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); margin-bottom: var(--qt-s2); }
.qt-faq__item summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 750; position: relative; }
.qt-faq__item summary::-webkit-details-marker { display: none; }
.qt-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--qt-ember); transition: transform 200ms var(--qt-ease); }
.qt-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qt-faq__item p { padding: 0 18px 16px; margin: 0; color: var(--qt-muted); }
.qt-faq__more { margin-top: var(--qt-s3); }

.qt-safe { display: grid; gap: var(--qt-s4); align-items: center; margin: var(--qt-s7) 0 var(--qt-s4); padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: linear-gradient(135deg, rgba(46, 230, 214, 0.12), rgba(123, 92, 255, 0.1)), var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-safe p { color: var(--qt-muted); margin: 0; max-width: 72ch; }
@media (min-width: 800px) { .qt-safe { grid-template-columns: 1fr auto; } }

/* ------------------------------------------------------------ page heads, prose, cards */
.qt-pagehead { position: relative; padding: var(--qt-s6) var(--qt-s5); margin-bottom: var(--qt-s5); border-radius: var(--qt-r-lg); overflow: hidden; background: linear-gradient(90deg, rgba(21, 11, 29, 0.97) 35%, rgba(21, 11, 29, 0.55)), var(--head-art, none) center right / cover, var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-pagehead p { color: #ddd4f2; max-width: 64ch; margin: 0; }
.qt-prose { max-width: 820px; }
.qt-prose--narrow { margin: var(--qt-s6) auto; }
.qt-prose p, .qt-prose li { color: #ddd4f2; }
.qt-prose h2 { margin-top: var(--qt-s6); }
.qt-prose h2:first-child { margin-top: 0; }
.qt-ticks { list-style: none; padding: 0; margin: 0 0 var(--qt-s4); display: grid; gap: 8px; }
.qt-ticks li { position: relative; padding-left: 28px; }
.qt-ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--qt-ember) 35%, rgba(255, 166, 61, 0.18) 38%); }
.qt-center { text-align: center; color: var(--qt-muted); }
.qt-card { padding: var(--qt-s5); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); min-width: 0; }
.qt-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.qt-card h2 .qt-ico { color: var(--qt-ember); }
.qt-card p { color: var(--qt-muted); }
.qt-card--danger { box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.35); }
.qt-callout { display: grid; gap: var(--qt-s4); align-items: center; margin: 0 0 var(--qt-s5); padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: linear-gradient(135deg, rgba(255, 166, 61, 0.12), rgba(255, 79, 168, 0.1)), var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line-2); }
.qt-callout p { color: var(--qt-muted); margin: 0; }
.qt-callout__cta { display: flex; flex-wrap: wrap; gap: var(--qt-s2); }
.qt-callout--soft img { width: 88px; height: 88px; }
@media (min-width: 800px) { .qt-callout { grid-template-columns: 1fr auto; } }
.qt-empty { padding: var(--qt-s6); text-align: center; color: var(--qt-muted); border-radius: var(--qt-r); background: var(--qt-surface); }
.qt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--qt-faint); margin-bottom: var(--qt-s3); }
.qt-crumbs a { color: var(--qt-muted); text-decoration: none; }
.qt-crumbs a:hover { color: var(--qt-ink); }
.qt-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.qt-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--qt-ember), var(--qt-teal)); }
.qt-bar--lg { height: 12px; margin: var(--qt-s2) 0; }
.qt-table-wrap { overflow-x: auto; }
.qt-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: var(--qt-s4); }
.qt-table th, .qt-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--qt-line); }
.qt-table th { color: var(--qt-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.qt-table tr.is-mine td { background: rgba(255, 166, 61, 0.08); }
.qt-flash { margin: 0 0 var(--qt-s4); padding: 12px 16px; border-radius: var(--qt-r-sm); font-weight: 700; background: rgba(109, 255, 176, 0.12); box-shadow: inset 0 0 0 1px rgba(109, 255, 176, 0.35); }
.qt-flash--bad { background: rgba(255, 107, 129, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.4); }
.qt-alert { padding: 12px 16px; border-radius: var(--qt-r-sm); font-weight: 650; }
.qt-alert--bad { background: rgba(255, 107, 129, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.45); color: #ffd3da; }
.qt-alert--good { background: rgba(109, 255, 176, 0.1); box-shadow: inset 0 0 0 1px rgba(109, 255, 176, 0.35); color: #d4ffe7; }

/* ------------------------------------------------------------ lobby */
.qt-lobby__head { display: grid; gap: var(--qt-s4); margin-bottom: var(--qt-s4); }
.qt-lobby__blurb { color: var(--qt-muted); max-width: 60ch; margin: 0; }
.qt-lobby__tools { display: flex; flex-wrap: wrap; gap: var(--qt-s2); align-items: center; }
@media (min-width: 900px) { .qt-lobby__head { grid-template-columns: 1fr auto; align-items: end; } }
.qt-lobby__count { color: var(--qt-faint); font-size: 0.85rem; font-weight: 700; margin-bottom: var(--qt-s3); }
.qt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--qt-s4) var(--qt-s3); }
@media (min-width: 700px) { .qt-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.qt-input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--qt-line-2); background: var(--qt-surface); color: var(--qt-ink); font: inherit; min-width: 0; }
.qt-input:focus { outline: none; border-color: var(--qt-ember); }
.qt-input--search { width: min(100%, 260px); }

/* ------------------------------------------------------------ forms + auth */
.qt-auth { display: grid; gap: var(--qt-s5); align-items: start; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .qt-auth { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } .qt-auth--slim { grid-template-columns: minmax(0, 520px); justify-content: center; } }
.qt-auth__card { padding: clamp(20px, 4vw, 40px); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line-2); }
.qt-auth__lead { color: var(--qt-muted); }
.qt-auth__switch { margin: var(--qt-s4) 0 0; text-align: center; color: var(--qt-muted); }
.qt-auth__side { padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-bg-2); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-auth__side img { border-radius: var(--qt-r); margin-bottom: var(--qt-s4); aspect-ratio: 5 / 2; object-fit: cover; width: 100%; }
.qt-auth__note { font-size: 0.88rem; color: var(--qt-faint); margin: 0; }
.qt-form { display: grid; gap: var(--qt-s4); }
.qt-form__row { display: grid; gap: var(--qt-s4); }
@media (min-width: 560px) { .qt-form__row { grid-template-columns: 1fr 1fr; } }
.qt-field { display: grid; gap: 6px; min-width: 0; }
.qt-field label, .qt-choices legend { font-weight: 750; font-size: 0.92rem; }
.qt-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qt-field__link { font-size: 0.85rem; font-weight: 700; }
.qt-field input, .qt-field select, .qt-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--qt-line-2);
  background: var(--qt-bg-2); color: var(--qt-ink); font: inherit; transition: border-color 160ms, box-shadow 160ms;
}
.qt-field textarea { resize: vertical; min-height: 140px; }
.qt-field input:focus, .qt-field select:focus, .qt-field textarea:focus { outline: none; border-color: var(--qt-ember); box-shadow: 0 0 0 4px rgba(255, 166, 61, 0.15); }
.qt-field [aria-invalid="true"] { border-color: var(--qt-bad); }
.qt-field input[type="date"] { color-scheme: dark; }
.qt-field__hint { margin: 0; font-size: 0.82rem; color: var(--qt-faint); }
.qt-field__err { margin: 0; font-size: 0.85rem; color: var(--qt-bad); font-weight: 700; }
.qt-optional { font-weight: 500; color: var(--qt-faint); }
.qt-pass { position: relative; }
.qt-pass input { padding-right: 52px; }
.qt-pass__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--qt-muted); cursor: pointer; display: grid; place-items: center; }
.qt-pass__toggle[aria-pressed="true"] { color: var(--qt-ember); }
.qt-meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.qt-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--qt-bad); transition: width 240ms var(--qt-ease), background-color 240ms; }
.qt-check { display: flex; gap: 12px; align-items: flex-start; }
.qt-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--qt-ember); flex: none; }
.qt-check label { font-size: 0.92rem; color: #ddd4f2; }
.qt-choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qt-choices legend { margin-bottom: 8px; }
.qt-choices label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--qt-bg-2); box-shadow: inset 0 0 0 1px var(--qt-line-2); cursor: pointer; font-weight: 650; }
.qt-choices input { accent-color: var(--qt-ember); }
.qt-form__small { font-size: 0.82rem; color: var(--qt-faint); margin: 0; }

/* ------------------------------------------------------------ account */
.qt-account__head { display: grid; grid-template-columns: auto 1fr; gap: var(--qt-s4); align-items: center; margin-bottom: var(--qt-s5); }
.qt-account__head h1 { margin: 0; }
.qt-account__tier { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--qt-muted); font-weight: 700; }
.qt-account__tier img { width: 28px; height: 28px; }
.qt-account__tabs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; }
.qt-account__tabs a { padding: 9px 16px; border-radius: 999px; background: var(--qt-surface); color: var(--qt-muted); text-decoration: none; font-weight: 750; white-space: nowrap; }
.qt-account__tabs a[aria-current="page"] { background: var(--qt-ember); color: var(--qt-ember-ink); }
@media (min-width: 900px) { .qt-account__head { grid-template-columns: auto 1fr auto; } .qt-account__tabs { grid-column: auto; } }
.qt-account__grid { display: grid; gap: var(--qt-s4); }
@media (min-width: 900px) { .qt-account__grid { grid-template-columns: 1fr 1fr; } }
.qt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--qt-s3); margin-bottom: var(--qt-s4); }
.qt-stat { display: grid; gap: 4px; padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-stat__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--qt-faint); font-weight: 800; }
.qt-stat__value { font-family: var(--qt-display); font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.qt-stat__sub { font-size: 0.82rem; color: var(--qt-muted); }
.qt-log { list-style: none; margin: 0; padding: 0; display: grid; }
.qt-log li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--qt-line); font-size: 0.92rem; }
.qt-log__amt { color: var(--qt-ember); font-weight: 800; font-variant-numeric: tabular-nums; }
.qt-log time { grid-column: 1 / -1; font-size: 0.78rem; color: var(--qt-faint); }
.qt-facts-list { margin: 0 0 var(--qt-s3); display: grid; gap: 0; }
.qt-facts-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--qt-line); }
.qt-facts-list dt { color: var(--qt-faint); font-weight: 700; }
.qt-facts-list dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ rewards */
.qt-rewards { display: grid; gap: var(--qt-s4); }
@media (min-width: 900px) { .qt-rewards { grid-template-columns: repeat(2, 1fr); } }
.qt-reward { display: grid; grid-template-columns: auto 1fr; gap: var(--qt-s4); align-items: center; padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-reward > img { width: 110px; height: 110px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.qt-reward__copy p { color: var(--qt-muted); }
.qt-reward__rest { font-weight: 700; color: var(--qt-gold) !important; }
.qt-reward__result { font-weight: 800; color: var(--qt-ember) !important; min-height: 1.5em; margin: var(--qt-s2) 0 0; }
.qt-reward--wheel { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(255, 79, 168, 0.16), rgba(123, 92, 255, 0.16)), var(--qt-surface); }
@media (max-width: 640px) { .qt-reward { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.qt-prize-wheel { position: relative; width: clamp(220px, 34vw, 320px); aspect-ratio: 1; }
.qt-prize-wheel__svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); border-radius: 50%; box-shadow: 0 0 0 8px #2b1d52, 0 0 0 12px var(--qt-gold); transition: transform 4.2s cubic-bezier(0.12, 0.7, 0.12, 1); }
.qt-prize-wheel__num { font: 900 11px var(--qt-display); fill: #1a0f33; }
.qt-prize-wheel__pin { position: absolute; top: -14px; left: 50%; width: 30px; height: 38px; margin-left: -15px; background: var(--qt-gold); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.qt-errand-mini { list-style: none; margin: 0 0 var(--qt-s3); padding: 0; display: grid; gap: 10px; }
.qt-errand-mini li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 0.88rem; }
.qt-errand-mini .qt-bar { grid-column: 1 / -1; }
.qt-errand-mini__amt { color: var(--qt-ember); font-weight: 800; }

.qt-errands { display: grid; gap: var(--qt-s4); margin-bottom: var(--qt-s4); }
@media (min-width: 900px) { .qt-errands { grid-template-columns: repeat(3, 1fr); } }
.qt-errand { position: relative; padding: var(--qt-s6) var(--qt-s5) var(--qt-s5); border-radius: var(--qt-r); background: linear-gradient(180deg, #fff8e6, #f3e6c4); color: #2a1d06; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8); transform: rotate(-0.6deg); }
.qt-errand:nth-child(2) { transform: rotate(0.8deg); }
.qt-errand__pin { position: absolute; top: -12px; left: 50%; margin-left: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8fc4, var(--qt-pink)); color: #fff; font-weight: 900; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.qt-errand__title { font-size: 1.15rem; color: #2a1d06; }
.qt-errand .qt-bar { background: rgba(42, 29, 6, 0.12); }
.qt-errand__meta { display: flex; justify-content: space-between; margin: 0; font-weight: 800; }
.qt-errand__reward { color: #8a3d00; }

.qt-clock { display: grid; gap: var(--qt-s5); align-items: center; margin-bottom: var(--qt-s5); padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
@media (min-width: 800px) { .qt-clock { grid-template-columns: auto 1fr; } }
.qt-clock__face { position: relative; width: clamp(200px, 30vw, 260px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--qt-ember) var(--hand), rgba(255, 255, 255, 0.06) 0), var(--qt-bg-2); box-shadow: 0 0 0 10px #2b1d52, 0 0 0 14px var(--qt-gold), 0 20px 40px rgba(0, 0, 0, 0.5); }
.qt-clock__face::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, #2a1c4f, #1b0f25); }
.qt-clock__hand { position: absolute; left: 50%; top: 50%; width: 6px; height: 40%; margin-left: -3px; border-radius: 6px; background: var(--qt-gold); transform-origin: 50% 0; transform: rotate(calc(var(--hand) + 180deg)); z-index: 2; box-shadow: 0 0 12px rgba(255, 207, 74, 0.8); }
.qt-clock__n12, .qt-clock__n3, .qt-clock__n6, .qt-clock__n9 { position: absolute; z-index: 2; font-weight: 900; font-family: var(--qt-display); color: var(--qt-ink); }
.qt-clock__n12 { top: 19%; left: 50%; transform: translateX(-50%); }
.qt-clock__n3 { right: 20%; top: 50%; transform: translateY(-50%); }
.qt-clock__n6 { bottom: 19%; left: 50%; transform: translateX(-50%); }
.qt-clock__n9 { left: 20%; top: 50%; transform: translateY(-50%); }
.qt-clock__turn { font-family: var(--qt-display); font-weight: 900; font-size: 1.6rem; margin: 0; }
.qt-clock__played { color: var(--qt-muted); }
.qt-clock__info p { color: var(--qt-muted); }
.qt-marks { margin-bottom: var(--qt-s5); }
.qt-marks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--qt-s3); }
@media (min-width: 900px) { .qt-marks__list { grid-template-columns: repeat(4, 1fr); } }
.qt-mark { display: grid; gap: 4px; padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-mark.is-reached { box-shadow: inset 0 0 0 1.5px rgba(255, 166, 61, 0.55); }
.qt-mark__hour { font-family: var(--qt-display); font-weight: 900; font-size: 1.2rem; }
.qt-mark__need { font-size: 0.85rem; color: var(--qt-faint); }
.qt-mark__reward { color: var(--qt-ember); font-weight: 800; }
.qt-mark__done { display: inline-flex; gap: 6px; align-items: center; color: var(--qt-good); font-weight: 700; }
.qt-mark__wait { color: var(--qt-faint); font-size: 0.85rem; }

.qt-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--qt-s4); }
.qt-tier { display: grid; justify-items: center; text-align: center; gap: 4px; padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-tier img { width: 96px; height: 96px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.qt-tier p { color: var(--qt-muted); margin: 0; }
.qt-tier__from { color: var(--qt-ember) !important; font-weight: 800; }
.qt-tier.is-mine { box-shadow: inset 0 0 0 2px var(--qt-ember), 0 20px 40px -20px rgba(255, 166, 61, 0.5); }
.qt-tier__you { margin-top: 6px !important; padding: 4px 12px; border-radius: 999px; background: var(--qt-ember); color: var(--qt-ember-ink) !important; font-weight: 900; font-size: 0.8rem; }

.qt-invite { display: grid; gap: var(--qt-s4); align-items: center; padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
@media (min-width: 700px) { .qt-invite { grid-template-columns: auto 1fr; } }
.qt-invite__label { margin: 0; color: var(--qt-faint); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }
.qt-invite__code { font-family: var(--qt-mono); font-size: 2rem; font-weight: 900; letter-spacing: 0.15em; color: var(--qt-gold); margin: 0 0 var(--qt-s3); }
.qt-invite__row { display: flex; gap: 8px; margin-bottom: var(--qt-s3); }
.qt-invite__row .qt-input { flex: 1; }

.qt-studio-list { display: grid; gap: var(--qt-s4); }
@media (min-width: 1000px) { .qt-studio-list { grid-template-columns: 1fr 1fr; } }
.qt-studio-card { display: grid; grid-template-columns: auto 1fr; gap: var(--qt-s4); align-items: center; padding: var(--qt-s4); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-studio-card__art { display: flex; }
.qt-studio-card__art img { width: 74px; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.qt-studio-card__art img + img { margin-left: -36px; transform: rotate(6deg); }
.qt-studio-card h2 a { color: var(--qt-ink); text-decoration: none; }
.qt-studio-card p { color: var(--qt-muted); margin: 0 0 4px; }
.qt-studio-card__count { color: var(--qt-ember) !important; font-weight: 800; }

.qt-newslist { display: grid; gap: var(--qt-s4); }
@media (min-width: 900px) { .qt-newslist { grid-template-columns: 1fr 1fr; } .qt-newsitem--lead { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr !important; align-items: center; } }
.qt-newsitem { display: grid; border-radius: var(--qt-r-lg); overflow: hidden; background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-newsitem__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qt-newsitem__copy { padding: var(--qt-s5); }
.qt-newsitem__copy time { font-size: 0.8rem; color: var(--qt-faint); font-weight: 700; }
.qt-newsitem__copy h2 a { color: var(--qt-ink); text-decoration: none; }
.qt-newsitem__copy p { color: var(--qt-muted); margin: 0; }
.qt-post { max-width: 860px; margin: 0 auto; }
.qt-post__head time { color: var(--qt-faint); font-weight: 700; }
.qt-post__lead { font-size: 1.15rem; color: #ddd4f2; }
.qt-post__art { width: 100%; border-radius: var(--qt-r-lg); margin: var(--qt-s4) 0 var(--qt-s5); aspect-ratio: 16 / 9; object-fit: cover; }
.qt-post__game { display: flex; flex-wrap: wrap; align-items: center; gap: var(--qt-s4); margin-top: var(--qt-s5); padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-post__game img { width: 70px; border-radius: 10px; }
.qt-post__game .qt-btn { margin-left: auto; }
.qt-post__gamename { font-family: var(--qt-display); font-weight: 900; font-size: 1.2rem; margin: 0; }
.qt-help { display: grid; gap: var(--qt-s5); }
@media (min-width: 1000px) { .qt-help { grid-template-columns: 1fr 1fr; } }
.qt-contact { display: grid; gap: var(--qt-s4); }
@media (min-width: 1000px) { .qt-contact { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.qt-contact .qt-card p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qt-toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--qt-s3); margin-bottom: var(--qt-s4); }
.qt-tool { padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-tool .qt-ico { color: var(--qt-ember); width: 28px; height: 28px; margin-bottom: 8px; }
.qt-tool p { margin: 0; font-size: 0.9rem; }
.qt-orglist { list-style: none; padding: 0; display: grid; gap: var(--qt-s3); }
.qt-orglist li { padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-orglist a { font-weight: 900; }
.qt-legal { max-width: 900px; margin: 0 auto; }
.qt-legal__head { margin-bottom: var(--qt-s4); }
.qt-legal__head p { color: var(--qt-faint); }
.qt-legal__toc { padding: var(--qt-s4) var(--qt-s5); margin-bottom: var(--qt-s5); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-legal__toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: var(--qt-s5); }
.qt-legal__toc li { margin-bottom: 4px; }
.qt-lost { text-align: center; padding: var(--qt-s7) var(--qt-s4); }
.qt-lost img { margin: 0 auto var(--qt-s4); width: 160px; }
.qt-lost p { color: var(--qt-muted); }
.qt-lost .qt-btn { margin: 4px; }

/* ------------------------------------------------------------ footer */
.qt-foot { margin-top: var(--qt-s7); padding: var(--qt-s6) var(--qt-s4) calc(var(--qt-s8) + 30px); background: #0c0619; border-top: 1px solid var(--qt-line); }
@media (min-width: 1100px) { .qt-foot { padding: var(--qt-s7) var(--qt-s7) var(--qt-s6); } }
.qt-foot__help { max-width: 1280px; margin: 0 auto var(--qt-s6); text-align: center; }
.qt-foot__helptitle { font-weight: 800; color: var(--qt-muted); margin-bottom: var(--qt-s3); }
.qt-orgs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--qt-s2); }
.qt-orgs a { display: grid; gap: 1px; padding: 10px 16px; min-width: 150px; border-radius: 12px; background: #fff; color: #17102b; text-decoration: none; text-align: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6); transition: transform 160ms var(--qt-ease); }
.qt-orgs a:hover { transform: translateY(-2px); color: #17102b; }
.qt-orgs__name { font-weight: 900; font-size: 0.98rem; letter-spacing: -0.01em; }
.qt-orgs__sub { font-size: 0.72rem; color: #4a3f6b; font-weight: 700; }
.qt-foot__cols { max-width: 1280px; margin: 0 auto; display: grid; gap: var(--qt-s5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .qt-foot__cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.qt-foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .qt-foot__brand { grid-column: auto; } }
.qt-foot__brand p { color: var(--qt-faint); font-size: 0.9rem; max-width: 40ch; }
.qt-logo--foot { margin-bottom: var(--qt-s3); }
.qt-badge18 { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--qt-bad); color: var(--qt-ink) !important; font-weight: 900; font-size: 0.95rem; }
.qt-foot__nav { display: grid; gap: 6px; align-content: start; }
.qt-foot__label { font-weight: 900; color: var(--qt-ink); margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.qt-foot__nav a { color: var(--qt-faint); text-decoration: none; font-size: 0.92rem; }
.qt-foot__nav a:hover { color: var(--qt-ink); }
.qt-foot__legal { max-width: 1280px; margin: var(--qt-s6) auto 0; padding-top: var(--qt-s4); border-top: 1px solid var(--qt-line); font-size: 0.82rem; color: var(--qt-faint); }
.qt-foot__legal strong { color: var(--qt-ink); }

/* ------------------------------------------------------------ mobile tab bar */
.qt-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(14, 7, 28, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--qt-line); }
.qt-tabs a, .qt-tabs button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--qt-faint); font: inherit; font-size: 0.68rem; font-weight: 750; text-decoration: none; cursor: pointer; border-radius: 12px; }
.qt-tabs [aria-current="page"] { color: var(--qt-ember); }
.qt-tabs .qt-ico { width: 22px; height: 22px; }
@media (min-width: 1100px) { .qt-tabs { display: none; } }

/* ------------------------------------------------------------ overlays */
.qt-agegate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--qt-s4); background: rgba(8, 3, 18, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qt-agegate__card { width: min(100%, 440px); padding: var(--qt-s6) var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); text-align: center; box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line-2); animation: qt-pop 260ms var(--qt-ease); }
.qt-agegate__card img { margin: 0 auto var(--qt-s3); }
.qt-agegate__title { font-family: var(--qt-display); font-size: 1.6rem; font-weight: 900; }
.qt-agegate__card p { color: var(--qt-muted); }
.qt-agegate__actions { display: grid; gap: var(--qt-s2); margin: var(--qt-s4) 0 var(--qt-s3); }
.qt-agegate__small { font-size: 0.8rem; }
@keyframes qt-pop { from { opacity: 0; transform: scale(0.95) translateY(8px); } }
.qt-cookie-notice { position: fixed; left: var(--qt-s3); right: var(--qt-s3); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: var(--qt-s3); padding: var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface-2); box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line-2); font-size: 0.88rem; animation: qt-rise 260ms var(--qt-ease); }
.qt-cookie-notice p { margin: 0; color: #e2dbf5; }
@media (min-width: 900px) { .qt-cookie-notice { left: auto; right: var(--qt-s5); bottom: var(--qt-s5); width: 420px; } }
@keyframes qt-rise { from { opacity: 0; transform: translateY(12px); } }
.qt-toasts { position: fixed; z-index: 95; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
@media (min-width: 1100px) { .qt-toasts { bottom: 28px; } }
.qt-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #2c1f55; color: var(--qt-ink); font-weight: 650; font-size: 0.92rem; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--qt-line-2); pointer-events: auto; animation: qt-rise 220ms var(--qt-ease); }
.qt-toast--good { background: linear-gradient(90deg, #4a2008, #2c1f55); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 166, 61, 0.4); }
.qt-toast--warn { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 207, 74, 0.5); }
.qt-toast a { margin-left: auto; font-weight: 900; white-space: nowrap; }
.qt-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 160ms, transform 160ms; }
.qt-minder { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: var(--qt-s4); background: rgba(8, 3, 18, 0.78); }
.qt-minder__card { width: min(100%, 420px); padding: var(--qt-s5); border-radius: var(--qt-r-lg); background: var(--qt-surface); text-align: center; box-shadow: var(--qt-shadow), inset 0 0 0 1px var(--qt-line-2); }
.qt-minder__title { font-family: var(--qt-display); font-size: 1.5rem; font-weight: 900; }
.qt-minder__actions { display: grid; gap: var(--qt-s2); margin-top: var(--qt-s4); }

.qt-spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--qt-ember); animation: qt-spin 800ms linear infinite; vertical-align: middle; margin-right: 10px; }
@keyframes qt-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* native selects: same height as inputs, custom chevron */
.qt-field select, select.qt-input {
  -webkit-appearance: none; appearance: none; padding-right: 40px; line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8ff3c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}

/* ------------------------------------------------------------ trust layer */
.qt-linkbtn { display: block; padding: 0; border: 0; background: none; font: inherit; font-size: 0.92rem; color: var(--qt-faint); text-align: left; cursor: pointer; }
.qt-linkbtn:hover { color: var(--qt-ink); }
.qt-summary { margin: 0 0 var(--qt-s4); padding: var(--qt-s4) var(--qt-s5); border-radius: var(--qt-r); background: linear-gradient(90deg, rgba(255, 166, 61, 0.1), rgba(46, 230, 214, 0.06)); box-shadow: inset 3px 0 0 var(--qt-ember); color: #ece6fb; }
.qt-legal__toclabel { margin: 0 0 var(--qt-s2); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--qt-faint); }
.qt-status { margin: 0; font-weight: 700; color: var(--qt-gold) !important; min-height: 1.4em; }
.qt-trustfacts { list-style: none; margin: 0 0 var(--qt-s4); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--qt-s2); }
@media (min-width: 900px) { .qt-trustfacts { grid-template-columns: repeat(4, 1fr); } }
.qt-trustfacts li { display: grid; gap: 2px; padding: var(--qt-s3) var(--qt-s4); border-radius: var(--qt-r); background: var(--qt-surface); box-shadow: inset 0 0 0 1px var(--qt-line); }
.qt-trustfacts__label { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--qt-faint); }
.qt-trustfacts__value { font-family: var(--qt-display); font-weight: 900; font-size: 1.15rem; color: var(--qt-ember); }
.qt-trustfacts__note { font-size: 0.8rem; color: var(--qt-muted); }

/* hero slides never grow wider than the carousel; long CTAs wrap on phones */
.qt-slide { min-width: 0; }
@media (max-width: 520px) {
  .qt-slide__cta .qt-btn { white-space: normal; text-align: center; flex: 1 1 100%; }
  .qt-slide__copy { padding: var(--qt-s4) var(--qt-s4) var(--qt-s7); }
}
