/* ===========================================================
   PumpTankTV — Midnight Violet theme
   Plain CSS, no dependencies, no external fonts/CDNs.
   =========================================================== */

:root {
  --bg:        #0d0b14;
  --bg-2:      #120e1c;
  --surface:   #1a1426;
  --surface-2: #221934;
  --tile:      #0b0910;
  --line:      #2a2138;

  --violet:        #8b5cf6;
  --violet-bright: #a855f7;
  --indigo:        #6d28d9;
  --magenta:       #c026d3;
  --cyan:          #22d3ee;

  --text:  #ece9f5;
  --muted: #968cab;
  --rec:   #ef4444;
  --green: #34d399;
  --pink:  #f0457f;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --glow:   0 0 0 1px rgba(168,85,247,.35), 0 0 24px rgba(139,92,246,.35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(109,40,217,.25), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(192,38,211,.18), transparent 55%),
    var(--bg);
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); }

/* ===================== WORDMARK ===================== */
.wordmark {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  position: relative;
  display: inline-block;
  color: var(--text);
}
.wordmark span { color: var(--violet-bright); }
.wordmark sup { font-size: .32em; color: var(--muted); font-weight: 700; top: -1.4em; }
.wordmark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.18em;
  height: .12em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 45%, var(--cyan) 100%);
  box-shadow: 0 0 14px rgba(168,85,247,.6);
}
.wordmark-lg { font-size: clamp(42px, 8vw, 86px); }
.wordmark-sm { font-size: 24px; }

/* ===================== SPLASH ===================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5vh 22px;
  overflow: auto;
  transition: opacity .6s ease, visibility .6s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(139,92,246,.30), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(192,38,211,.22), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgba(34,211,238,.14), transparent 70%),
    var(--bg);
  background-size: 200% 200%, 180% 180%, 180% 180%, auto;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { background-position: 0% 0%, 0% 100%, 100% 50%, 0 0; }
  100% { background-position: 100% 100%, 100% 0%, 0% 50%, 0 0; }
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: flicker 6s steps(3) infinite;
}
@keyframes flicker { 0%,100%{opacity:.05} 50%{opacity:.085} }

.splash-inner { max-width: 760px; }
.tagline {
  margin: 22px 0 14px;
  font-size: clamp(15px, 2.4vw, 21px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet-bright);
}
.concept {
  margin: 0 auto 26px;
  max-width: 620px;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.7;
  color: #cfc8dd;
}
.concept strong { color: var(--text); }

.ca-block {
  margin: 0 auto 28px;
  max-width: 560px;
  background: rgba(26,20,38,.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.ca-label {
  display: block;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.ca-row { display: flex; gap: 8px; align-items: stretch; }
.ca-value {
  flex: 1; min-width: 0;
  background: #0c0a12;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px; color: var(--cyan);
  overflow-x: auto; white-space: nowrap;
  display: flex; align-items: center;
}
.copy-ca {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--violet), var(--indigo));
  color: #fff; font-weight: 700; font-size: 13px;
  border-radius: 8px; padding: 0 16px;
  transition: filter .15s ease, transform .05s ease;
}
.copy-ca:hover { filter: brightness(1.12); }
.copy-ca:active { transform: translateY(1px); }
.copy-ca.copied { background: linear-gradient(180deg, var(--green), #0f9d6b); }
.ca-note { display: block; margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ca-note strong { color: #e0b3ee; }

.btn-enter {
  margin-top: 6px;
  border: 0;
  background: linear-gradient(180deg, var(--violet-bright), var(--indigo));
  color: #fff; font-weight: 800; letter-spacing: .03em;
  font-size: 17px;
  padding: 15px 38px;
  border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform .12s ease, filter .15s ease;
}
.btn-enter:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
.btn-enter:active { transform: translateY(0); }
.splash-foot { margin-top: 20px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ===================== APP LAYOUT ===================== */
.app {
  display: grid;
  grid-template-columns: 1fr clamp(300px, 26vw, 360px);
  grid-template-rows: auto minmax(0,1fr) auto;
  height: 100vh; height: 100dvh;
}
.app[hidden] { display: none; }

/* ===================== TOPBAR ===================== */
.topbar {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.topbar-left { flex: 0 0 auto; }
.topbar-center { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.topbar-right { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

.nav { display: flex; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; padding: 9px 14px;
  font-weight: 700; font-size: 13.5px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.3);
  transition: transform .08s ease, filter .15s ease;
}
.nav-btn .ic { font-size: 14px; }
.nav-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-btn:active { transform: translateY(0); }
.nav-watch { background: linear-gradient(180deg, #f0457f, #b21e54); }
.nav-cont  { background: linear-gradient(180deg, #16b8a6, #0e7d72); }
.nav-shop  { background: linear-gradient(180deg, var(--violet), var(--indigo)); }

.applybar {
  display: flex; align-items: center; gap: 8px;
  background: #0c0a12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  max-width: 460px;
}
.chev {
  border: 0; background: var(--surface-2); color: var(--muted);
  width: 26px; height: 26px; border-radius: 7px; font-size: 16px; line-height: 1;
}
.chev:hover { color: var(--text); }
.apply-text { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.apply-tabs { display: flex; flex-direction: column; gap: 2px; }
.apply-tabs span {
  font-size: 9px; line-height: 1.25; padding: 1px 6px;
  background: var(--surface-2); color: var(--muted);
  border-radius: 4px; text-align: center;
}

.ca-pill {
  display: flex; align-items: center; gap: 6px;
  background: #0c0a12; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 6px 5px 10px; max-width: 230px;
}
.ca-pill-label {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #0c0a12; background: var(--cyan);
  padding: 2px 6px; border-radius: 6px;
}
.ca-pill .ca-value {
  border: 0; background: transparent; padding: 0; color: var(--cyan);
  font-size: 12.5px; max-width: 130px;
}
.copy-ca.sm { padding: 4px 9px; font-size: 13px; border-radius: 999px; }

.login-btn {
  border: 0; background: linear-gradient(180deg, #f0457f, #b21e54);
  color: #fff; font-weight: 800; font-size: 13.5px;
  padding: 9px 18px; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.login-btn:hover { filter: brightness(1.1); }
.avatar-blank {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23968cab' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.4 0-8 2.7-8 6v2h16v-2c0-3.3-3.6-6-8-6Z'/%3E%3C/svg%3E") center/22px no-repeat;
  border: 1px solid var(--line);
}

/* ===================== CAMERA GRID ===================== */
.stage { grid-column: 1; grid-row: 2; min-height: 0; overflow: auto; padding: 16px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 50% 0%, #15101f, var(--tile));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.tile:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: var(--glow); }
.tile-label {
  position: absolute; top: 8px; left: 10px; z-index: 2;
  font-weight: 700; font-size: 13px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.tile-badge {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted);
  background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 999px;
}
.tile-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tile-mid {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px;
  color: #3b3350; text-align: center;
}
.tile-mid .cam { font-size: 26px; opacity: .55; }
.tile-mid .sig { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; }

/* ===================== CHAT ===================== */
.chat {
  grid-column: 2; grid-row: 2; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.chat-title { font-weight: 800; font-size: 14px; }
.chat-online { margin-left: auto; font-size: 12px; color: var(--muted); }
.chat-online b { color: var(--green); }
.chat-min { margin-left: 4px; border: 0; background: var(--surface-2); color: var(--muted); width: 24px; height: 22px; border-radius: 6px; }

.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 9px; }
.msg-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
}
.msg-body { min-width: 0; font-size: 13px; line-height: 1.4; }
.msg-meta { display: inline; }
.msg-user { font-weight: 800; color: #d7cdfa; margin-right: 6px; }
.msg-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .05em;
  color: #07120d; padding: 1px 5px; border-radius: 4px; margin-right: 6px;
  vertical-align: middle;
}
.msg-text { color: #d9d2e6; word-wrap: break-word; }
.msg-time { display: block; margin-top: 3px; font-size: 10px; color: #5d5470; }
.msg-emote { text-align: center; font-style: italic; font-size: 12.5px; color: var(--violet-bright); padding: 2px 0; }
.msg-emote b { font-style: normal; }

.chat-input { border-top: 1px solid var(--line); padding: 10px; background: var(--surface); }
.chat-input input {
  width: 100%; border: 1px solid var(--line); background: #0c0a12; color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 13px; outline: none;
}
.chat-input input:focus { border-color: var(--violet); }
.chat-input-row { display: flex; gap: 6px; margin-top: 8px; }
.ci-btn {
  flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-radius: 7px; padding: 7px 4px; font-size: 11.5px; font-weight: 700;
}
.ci-btn.active { color: #fff; background: linear-gradient(180deg, var(--violet), var(--indigo)); border-color: transparent; }
.ci-btn:hover { color: var(--text); }
.ci-send {
  flex: 0 0 auto; width: 40px; border: 0; border-radius: 7px; color: #fff; font-size: 15px;
  background: linear-gradient(180deg, var(--magenta), #8a1a99);
}

/* ===================== TICKER ===================== */
.ticker {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-top: 1px solid var(--line);
  padding: 8px 12px;
}
.ticker-inner { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.tk-item {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  background: #0c0a12; border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 13px 7px 8px;
}
.tk-item::before { content: "\25B8"; color: var(--violet-bright); font-size: 12px; margin-right: -3px; }
.tk-av {
  width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface-2); border: 1px dashed #3a3150; font-weight: 800; font-size: 14px;
}
.tk-name { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; }
.tk-sub { display: flex; flex-direction: column; line-height: 1.25; }
.tk-bal { font-size: 11px; color: var(--cyan); font-family: var(--mono); white-space: nowrap; }
.tk-tba { font-size: 9px; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* ===================== X / SOCIAL LINKS ===================== */
.x-link {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
.x-link svg { width: 17px; height: 17px; fill: currentColor; }
.x-link:hover { background: #000; color: #fff; border-color: var(--violet); box-shadow: var(--glow); transform: translateY(-1px); }

.x-follow {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--text);
  background: #000; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font-weight: 700; font-size: 13px;
  transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
.x-follow svg { width: 15px; height: 15px; fill: currentColor; }
.x-follow:hover { border-color: var(--violet); box-shadow: var(--glow); transform: translateY(-1px); }

.splash-x { margin-top: 16px; border-radius: 999px; padding: 10px 18px; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--violet); border-radius: 999px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== SCROLLBARS ===================== */
.stage::-webkit-scrollbar, .chat-log::-webkit-scrollbar, .ticker-inner::-webkit-scrollbar { width: 9px; height: 9px; }
.stage::-webkit-scrollbar-thumb, .chat-log::-webkit-scrollbar-thumb, .ticker-inner::-webkit-scrollbar-thumb { background: #2e2440; border-radius: 8px; }
.stage::-webkit-scrollbar-track, .chat-log::-webkit-scrollbar-track, .ticker-inner::-webkit-scrollbar-track { background: transparent; }

/* ===================== NAV LINKS / BRAND ===================== */
.brand { text-decoration: none; display: inline-block; }
.nav-btn { text-decoration: none; }
.nav-btn.active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.42), 0 2px 6px rgba(0,0,0,.3), 0 0 16px rgba(168,85,247,.4); }
.topbar { position: sticky; top: 0; }

/* ===================== SUB-PAGES (contestants / apply / thanks) ===================== */
.subpage { overflow: auto; height: auto; min-height: 100%; }
.page { max-width: 1100px; margin: 0 auto; padding: 34px 20px 70px; }
.page-head { text-align: center; margin-bottom: 30px; }
.page-title { margin: 0; font-size: clamp(28px, 5vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.page-sub { margin: 10px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ----- cast grid ----- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cast-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease; }
.cast-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--glow); }
.cast-portrait { position: relative; aspect-ratio: 1/1; border-radius: 12px; background: radial-gradient(120% 120% at 50% 0%, #1a1330, #0b0910); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.cast-portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
.cast-q { font-size: 60px; font-weight: 900; color: #2f2747; }
.cast-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; letter-spacing: .1em; background: var(--surface-2); color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.cast-name { margin: 4px 0 2px; font-size: 17px; font-weight: 800; }
.cast-tagline { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); min-height: 2.4em; }
.cast-stats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cast-stat { font-size: 11.5px; color: var(--cyan); font-family: var(--mono); background: #0c0a12; border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.cast-stat.status { color: var(--green); }
.cast-handle { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--violet-bright); text-decoration: none; }
.cast-handle:hover { text-decoration: underline; }

/* ----- apply form ----- */
.apply-wrap { max-width: 640px; margin: 0 auto; }
.apply-intro { text-align: center; color: #cfc8dd; line-height: 1.65; margin: 0 auto 22px; max-width: 560px; }
.apply-form { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #d7cdfa; }
.field input, .field textarea, .field select { width: 100%; background: #0c0a12; border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 11px 12px; font-size: 14px; font-family: inherit; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #cfc8dd; margin: 6px 0 18px; line-height: 1.45; }
.consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--violet); flex: 0 0 auto; }
.apply-submit { width: 100%; border: 0; background: linear-gradient(180deg, var(--violet-bright), var(--indigo)); color: #fff; font-weight: 800; font-size: 16px; padding: 14px; border-radius: 999px; box-shadow: var(--glow); transition: transform .12s ease, filter .15s ease; }
.apply-submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.form-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.form-note strong { color: #e0b3ee; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- thank-you ----- */
.thanks-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding-top: 18px; }
.thanks-wrap .big { font-size: 56px; line-height: 1; }
.btn-home { display: inline-block; margin-top: 20px; text-decoration: none; background: linear-gradient(180deg, var(--violet-bright), var(--indigo)); color: #fff; font-weight: 800; padding: 12px 26px; border-radius: 999px; box-shadow: var(--glow); }
.btn-home:hover { filter: brightness(1.08); }

/* ----- site footer (sub-pages) ----- */
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-note { font-size: 11.5px; color: var(--muted); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  body { overflow: auto; }
  .app { display: flex; flex-direction: column; height: 100dvh; }
  .topbar { flex-wrap: wrap; }
  .topbar-center { order: 3; width: 100%; }
  .stage { flex: 1 1 auto; }
  .chat { border-left: 0; border-top: 1px solid var(--line); height: 42vh; }
}
@media (max-width: 560px) {
  .field.two { grid-template-columns: 1fr; }
  .site-foot { justify-content: center; text-align: center; }
}
