/* 1on1fun site chrome (v47): header, mobile drawer, bottom nav, footer, buttons, cards.
   Used by the landing (index) and /online. Colours are variables so the light theme only swaps tokens. */
:root {
  --s-bg: #000000;
  --s-bg2: #07040a;
  --s-panel: #0e0a0d;
  --s-card: #151015;
  --s-line: rgba(255, 46, 147, 0.18);
  --s-line2: #241a20;
  --s-pink: #FF2E93;
  --s-pink2: #E0157A;
  --s-pink-soft: rgba(255, 46, 147, 0.12);
  --s-glow: rgba(255, 46, 147, 0.45);
  --s-text: #ffffff;
  --s-muted: #b9a7b0;
  --s-green: #3ddc84;
  --s-head: rgba(0, 0, 0, 0.88);
  --s-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --s-body: 'Inter', system-ui, -apple-system, sans-serif;
}
html[data-theme="light"] {
  --s-bg: #fbf9ff;
  --s-bg2: #ffffff;
  --s-panel: #ffffff;
  --s-card: #f3effb;
  --s-line: #ebe5f7;
  --s-line2: #ebe5f7;
  --s-pink: #7c3aed;
  --s-pink2: #6d28d9;
  --s-pink-soft: rgba(124, 58, 237, 0.10);
  --s-glow: rgba(124, 58, 237, 0.30);
  --s-text: #1e1433;
  --s-muted: #6b6280;
  --s-green: #16a34a;
  --s-head: rgba(255, 255, 255, 0.92);
}

/* ---------- buttons ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font: 600 15px/1 var(--s-body);
  padding: 12px 22px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.s-btn:focus-visible { outline: 3px solid var(--s-pink); outline-offset: 3px; }
.s-btn-fill { background: linear-gradient(180deg, var(--s-pink), var(--s-pink2)); color: #fff; box-shadow: 0 6px 22px -6px var(--s-glow); }
.s-btn-fill:hover { filter: brightness(1.08); }
.s-btn-line { background: transparent; color: var(--s-text); border-color: var(--s-pink); }
.s-btn-line:hover { background: var(--s-pink-soft); }
.s-btn-xl { font-size: 19px; padding: 18px 34px; gap: 14px; }
.s-btn-xl svg { width: 20px; height: 20px; }
.s-btn:active { transform: scale(0.98); }

/* ---------- header ---------- */
.s-head { position: sticky; top: 0; z-index: 60; background: var(--s-head); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--s-line2); padding-top: env(safe-area-inset-top); }
.s-head-in { max-width: 1320px; margin: 0 auto; height: 84px; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.s-logo { display: inline-flex; align-items: center; text-decoration: none; }
.s-logo img { height: 50px; width: auto; display: block; }
.s-nav { display: flex; align-items: stretch; gap: 8px; height: 100%; }
.s-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 84px; padding: 0 10px;
  color: var(--s-text); text-decoration: none; font: 500 13px/1 var(--s-body); opacity: 0.92; }
.s-nav a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.s-nav a:hover { opacity: 1; color: var(--s-pink); }
.s-nav a[aria-current="page"] { color: var(--s-pink); opacity: 1; }
.s-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 12px; height: 3px; border-radius: 3px; background: var(--s-pink); box-shadow: 0 0 10px var(--s-glow); }
.s-nav .s-badge { position: absolute; top: 14px; right: 22px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--s-pink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.s-acts { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.s-acts .s-btn { min-width: 118px; padding: 12px 20px; }
.s-me { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--s-pink); text-decoration: none; }
.s-me svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.s-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--s-pink); }
.s-bal { border: 1px solid var(--s-line); background: var(--s-pink-soft); color: var(--s-text); border-radius: 999px; padding: 10px 14px; font: 700 14px/1 var(--s-body); cursor: pointer; }
.s-icon-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--s-pink); padding: 0; place-items: center; cursor: pointer; text-decoration: none; }
.s-icon-btn svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 899px) {
  .s-head-in { height: 66px; padding: 0 10px; grid-template-columns: 44px 1fr 44px; gap: 6px; }
  .s-nav, .s-acts { display: none; }
  .s-icon-btn { display: grid; }
  .s-logo { justify-self: center; }
  .s-logo img { height: 40px; }
}

/* ---------- drawer (mobile menu) ---------- */
.s-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.s-drawer.open { display: block; }
.s-drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.s-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--s-panel); border-right: 1px solid var(--s-line);
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  animation: s-slide 0.22s ease-out; }
@keyframes s-slide { from { transform: translateX(-100%); } to { transform: none; } }
.s-drawer-panel .s-logo img { height: 42px; margin: 0 0 14px; }
.s-drawer-panel a, .s-drawer-panel button.s-dl { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 12px; color: var(--s-text); text-decoration: none;
  font: 600 15.5px/1.2 var(--s-body); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.s-drawer-panel a:hover, .s-drawer-panel button.s-dl:hover { background: var(--s-pink-soft); }
.s-drawer-panel svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--s-pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-drawer-panel hr { border: 0; border-top: 1px solid var(--s-line2); margin: 10px 0; }
.s-drawer-panel .s-drawer-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .s-drawer-panel { animation: none; } }

/* ---------- bottom nav (mobile) ---------- */
.s-tabbar { display: none; }
@media (max-width: 899px) {
  .s-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; justify-content: space-around; align-items: stretch;
    background: var(--s-head); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--s-line2);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .s-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 0; color: var(--s-text); opacity: 0.85; text-decoration: none; font: 500 11px/1 var(--s-body); }
  .s-tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .s-tabbar a[aria-current="page"] { color: var(--s-pink); opacity: 1; }
  .s-tabbar a[aria-current="page"] svg { fill: currentColor; }
  .s-has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- footer ---------- */
.s-foot { border-top: 1px solid var(--s-line2); background: var(--s-bg2); }
.s-foot-in { max-width: 1320px; margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.s-foot .s-logo img { height: 52px; }
.s-foot-nav { display: flex; gap: 6px; justify-content: center; }
.s-foot-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; padding: 8px 6px; color: var(--s-text); text-decoration: none; font: 500 13px/1 var(--s-body); opacity: 0.9; position: relative; }
.s-foot-nav a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.s-foot-nav a:hover, .s-foot-nav a[aria-current="page"] { color: var(--s-pink); opacity: 1; }
.s-foot-nav a[aria-current="page"] svg { fill: currentColor; }
.s-foot-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -4px; height: 3px; border-radius: 3px; background: var(--s-pink); }
.s-slogan { display: flex; align-items: center; gap: 16px; padding: 14px 26px 14px 22px; border-radius: 16px; color: #fff; text-decoration: none; min-width: 300px;
  background: radial-gradient(circle at 90% 30%, rgba(255,255,255,0.22), transparent 40%), linear-gradient(100deg, var(--s-pink2), var(--s-pink)); box-shadow: 0 10px 30px -10px var(--s-glow); }
.s-slogan svg { width: 42px; height: 42px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; }
.s-slogan b { display: block; font: 700 17px/1.2 var(--s-body); }
.s-slogan span { display: block; font: 500 13px/1.3 var(--s-body); opacity: 0.9; margin-top: 3px; }
.s-legal { max-width: 1320px; margin: 0 auto; padding: 4px 28px 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--s-muted); font: 13px/1.5 var(--s-body); }
.s-legal a { color: var(--s-muted); text-decoration: none; }
.s-legal a:hover { color: var(--s-pink); }
.s-legal p { flex-basis: 100%; margin: 0; }
@media (max-width: 1100px) { .s-foot-in { grid-template-columns: auto 1fr; } .s-slogan { display: none; } }
@media (max-width: 899px) { .s-foot-in { grid-template-columns: 1fr; justify-items: center; padding: 22px 16px 8px; } .s-foot-nav { display: none; } .s-legal { justify-content: center; text-align: center; padding: 6px 16px 22px; } }

/* ---------- cards (shared by landing + /online) ---------- */
.mc { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--s-card); color: #fff; text-decoration: none;
  border: 1px solid var(--s-line); contain: layout paint; -webkit-tap-highlight-color: transparent; }
.mc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0; transition: opacity 0.25s, transform 0.4s; }
.mc > img.ok { opacity: 1; }
.mc.is-off > img { filter: saturate(0.35) brightness(0.8); }
.mc .mc-ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 46px/1 var(--s-display); color: rgba(255,255,255,0.8);
  background: radial-gradient(circle at 30% 20%, var(--s-pink), #2a0f1d 75%); }
html[data-theme="light"] .mc .mc-ph { background: radial-gradient(circle at 30% 20%, #a78bfa, #6d28d9 75%); }
.mc:focus-visible { outline: 3px solid var(--s-pink); outline-offset: 2px; }
@media (hover: hover) { .mc:hover > img { transform: scale(1.04); } .mc:hover { border-color: var(--s-pink); } }
.mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #8a8a8a; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.35); }
.mc.is-live .mc-dot { background: #3ddc84; box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 10px rgba(61,220,132,0.8); }
@media (prefers-reduced-motion: reduce) { .mc > img { transition: none; } }

.s-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: rgba(20, 14, 18, 0.96);
  border: 1px solid var(--s-line); color: #fff; padding: 11px 16px; border-radius: 999px; font: 700 14px/1.3 var(--s-body); max-width: 90vw; text-align: center; }
html[data-theme="light"] .s-toast { background: #1e1433; }
@media (min-width: 900px) { .s-toast { bottom: 28px; } }
