/* tacko Warm Tech Gaming — visual layer; existing content and behavior remain in place. */
:root {
  color-scheme: dark;
  --wt-bg: #14181d;
  --wt-bg-raised: #1a2026;
  --wt-surface: #1e252c;
  --wt-surface-2: #242d36;
  --wt-line: #35404a;
  --wt-text: #f1f0eb;
  --wt-muted: #a6a8a7;
  --wt-quiet: #7e858b;
  --wt-blue: #75b4ff;
  --wt-blue-deep: #327ebd;
  --wt-teal: #75b8ad;
  --wt-violet: #a69bd4;
  --wt-amber: #dda36d;
  --wt-danger: #e18f84;
  --wt-shadow: 0 18px 48px rgba(0,0,0,.24);
}
html[data-theme="light"] {
  color-scheme: light;
  --wt-bg: #efede8;
  --wt-bg-raised: #f6f3ed;
  --wt-surface: #fbf9f4;
  --wt-surface-2: #f2efe8;
  --wt-line: #d8d3c9;
  --wt-text: #262b30;
  --wt-muted: #656b70;
  --wt-quiet: #858780;
  --wt-blue: #287dbb;
  --wt-blue-deep: #1d6da8;
  --wt-teal: #397f77;
  --wt-violet: #7669a8;
  --wt-amber: #a76a37;
  --wt-danger: #a8463c;
  --wt-shadow: 0 16px 40px rgba(46,39,29,.10);
}
html { background: var(--wt-bg); scroll-behavior: smooth; }
body {
  color: var(--wt-text);
  background: radial-gradient(ellipse at 12% 0%, rgba(63,112,143,.16), transparent 32rem), radial-gradient(ellipse at 88% 22%, rgba(137,112,155,.09), transparent 30rem), var(--wt-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
html[data-theme="light"] body { background: radial-gradient(ellipse at 12% 0%, rgba(93,153,185,.12), transparent 32rem), radial-gradient(ellipse at 88% 22%, rgba(181,154,114,.10), transparent 30rem), var(--wt-bg); }
button, a, input, textarea, select { font-family: inherit; }
a { color: inherit; }
button, .member-card, .clip-card, .side-link, .hero-cta, .profile-stream-chat-link { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .22s ease, transform .22s ease; }
.topbar {
  border-color: var(--wt-line);
  background: color-mix(in srgb, var(--wt-bg-raised) 88%, transparent);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-name { color: var(--wt-text); letter-spacing: -.055em; }
.brand-slogan, .sidebar-heading, .sidebar-footer { color: var(--wt-muted); }
.search, .people-search { border-color: var(--wt-line); background: var(--wt-surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.search:focus-within, .people-search:focus-within { border-color: color-mix(in srgb, var(--wt-blue) 68%, var(--wt-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-blue) 16%, transparent); }
.search input, .people-search input { color: var(--wt-text); }
.search input::placeholder, .people-search input::placeholder { color: var(--wt-quiet); }
.theme-toggle, .mobile-menu, .notification-trigger, .account-trigger { color: var(--wt-text); border-color: var(--wt-line); background: var(--wt-surface); }
.theme-toggle:hover, .mobile-menu:hover, .notification-trigger:hover, .account-trigger:hover { border-color: var(--wt-blue); background: var(--wt-surface-2); }
.notification-trigger svg { stroke: currentColor; }
.auth-open { border: 1px solid var(--wt-blue-deep); background: linear-gradient(135deg, #438cca, #3475a7); color: #f8fbff; box-shadow: 0 7px 20px rgba(50,126,189,.2); }
.auth-open:hover { background: linear-gradient(135deg, #559bd7, #3b82b7); transform: translateY(-1px); }
.sidebar { border-color: var(--wt-line); background: color-mix(in srgb, var(--wt-bg-raised) 94%, transparent); }
.side-link { color: var(--wt-muted); border-radius: 10px; }
.side-link:hover { color: var(--wt-text); background: var(--wt-surface-2); }
.side-link.selected { color: var(--wt-text); background: linear-gradient(90deg, rgba(66,131,180,.2), rgba(66,131,180,.055)); box-shadow: inset 2px 0 var(--wt-blue); }
.side-link.selected .side-icon { color: var(--wt-blue); }
.sidebar-divider, .popover-divider { border-color: var(--wt-line); }
.sidebar-note { border-color: var(--wt-line); background: linear-gradient(135deg, var(--wt-surface), color-mix(in srgb, var(--wt-surface-2) 72%, transparent)); }
.sidebar-note p, .sidebar-empty { color: var(--wt-muted); }
.note-spark { color: var(--wt-amber); }
.channel-link { color: var(--wt-text); }
.channel-link:hover { background: var(--wt-surface-2); }
.channel-copy small { color: var(--wt-muted); }
.user-avatar { background: linear-gradient(145deg, #4c7592, #647e83); color: #f8f6ed; }
.unfollow-button { color: var(--wt-muted); }
.unfollow-button:hover { background: rgba(225,143,132,.12); color: var(--wt-danger); }
.main-content { color: var(--wt-text); }
.directory-heading h1, .stream-topline h1, .clip-section h2, .profile-card h1, .settings-heading h1 { color: var(--wt-text); letter-spacing: -.045em; }
.directory-heading > p, .clip-section > p, .member-profile-link > small, .member-profile-link > p { color: var(--wt-muted); }
.eyebrow { color: var(--wt-teal); letter-spacing: .16em; }
.eyebrow-line { background: linear-gradient(90deg, var(--wt-teal), transparent); }
.cinematic-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(360px, 42vw, 520px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 8px 0 28px;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(164,183,193,.19);
  border-radius: 24px;
  background-image: linear-gradient(90deg, rgba(16,20,24,.96) 0%, rgba(16,20,24,.87) 31%, rgba(16,20,24,.43) 57%, rgba(16,20,24,.04) 100%), linear-gradient(0deg, rgba(15,18,21,.44), transparent 55%), url('/manus-storage/public/async-images/2Afj7XOaI9XbGxYzEk9a7c/image-1.webp');
  background-position: center, center, center 52%;
  background-size: cover;
  box-shadow: var(--wt-shadow);
}
.cinematic-hero::after { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 78% 48%, rgba(84,145,177,.12), transparent 30%), linear-gradient(180deg, transparent 65%, rgba(13,16,19,.25)); content: ""; pointer-events: none; }
.cinematic-hero .eyebrow { color: #9ec9c1; }
.cinematic-hero h1 { max-width: 620px; margin: 13px 0 10px; color: #f4f2ec; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.055em; text-shadow: 0 2px 24px rgba(0,0,0,.32); }
.cinematic-hero > p { max-width: 480px; color: rgba(237,236,230,.78); font-size: clamp(13px, 1.35vw, 16px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 21px; }
.hero-cta { min-height: 42px; padding: 0 17px; border: 1px solid rgba(117,180,255,.38); border-radius: 12px; background: linear-gradient(135deg, #438dc2, #356f96); color: #fff; box-shadow: 0 9px 25px rgba(34,98,141,.25); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,98,141,.34); }
.hero-secondary { padding: 10px 13px; border: 1px solid rgba(240,239,232,.17); border-radius: 11px; background: rgba(25,30,34,.38); color: rgba(245,243,237,.88); backdrop-filter: blur(8px); }
.hero-secondary:hover { border-color: rgba(221,163,109,.55); color: #fff; }
.member-card, .clip-card, .profile-card, .profile-edit, .profile-stream-room, .settings-card, .lower-panel {
  border: 1px solid var(--wt-line);
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--wt-surface) 98%, white 2%), var(--wt-bg-raised));
  color: var(--wt-text);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.member-card, .clip-card { overflow: hidden; }
.member-card:hover, .clip-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--wt-blue) 40%, var(--wt-line)); box-shadow: 0 14px 32px rgba(0,0,0,.18), 0 0 22px rgba(72,133,177,.07); }
.member-profile-link, .member-profile-link > strong, .clip-card strong, .profile-card p, .lower-panel h3 { color: var(--wt-text); }
.member-thumb, .profile-thumb { background: linear-gradient(145deg, #34576d, #566d71); color: #f5f2eb; }
.member-thumb img, .profile-thumb img { display: block; }
.profile-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wt-blue) 18%, transparent), 0 12px 24px rgba(0,0,0,.2); }
.follow-button, .load-more { border: 1px solid var(--wt-blue-deep); border-radius: 11px; background: linear-gradient(135deg, #3b86bb, #326e99); color: #fff; box-shadow: 0 5px 14px rgba(47,111,153,.15); }
.follow-button:hover, .load-more:hover { background: linear-gradient(135deg, #4a97cc, #397ca7); transform: translateY(-1px); }
.follow-button:disabled { border-color: var(--wt-line); background: var(--wt-surface-2); color: var(--wt-muted); box-shadow: none; }
.live-status, .live-chip { border-color: rgba(221,125,103,.36); background: rgba(139,61,49,.19); color: #efaa9c; }
.category-chip { border-color: var(--wt-line); background: var(--wt-surface); color: var(--wt-muted); }
.category-chip:hover, .category-chip.active { border-color: color-mix(in srgb, var(--wt-teal) 65%, var(--wt-line)); background: color-mix(in srgb, var(--wt-teal) 14%, var(--wt-surface)); color: var(--wt-text); box-shadow: inset 0 -2px var(--wt-teal); }
.search-results, .account-popover, .notification-menu { border-color: var(--wt-line); background: var(--wt-surface); color: var(--wt-text); box-shadow: var(--wt-shadow); }
.search-result:hover, .popover-link:hover, .popover-logout:hover, .notification-items a:hover { background: var(--wt-surface-2); }
.search-identity small, .search-empty, .search-self, .notification-menu p, .popover-user small { color: var(--wt-muted); }
.profile-stream-room { width: 100%; max-width: 1050px; margin: 20px auto 0; padding: clamp(15px, 2vw, 23px); }
.profile-stream-heading h2 { color: var(--wt-text); font-size: clamp(18px, 2vw, 22px); letter-spacing: -.035em; }
.profile-stream-heading p, .profile-stream-copy { color: var(--wt-muted); }
.profile-stream-connect { color: var(--wt-blue); }
.profile-stream-tabs { gap: 6px; border-color: var(--wt-line); }
.profile-stream-tab { padding: 11px 15px; border-bottom: 2px solid transparent; border-radius: 9px 9px 0 0; color: var(--wt-muted); }
.profile-stream-tab:hover { background: var(--wt-surface-2); color: var(--wt-text); }
.profile-stream-tab.active { border-bottom-color: var(--wt-blue); color: var(--wt-text); }
.profile-stream-view { padding-top: 17px; }
.profile-stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 34%); align-items: stretch; gap: 15px; }
.profile-stream-video-column, .profile-stream-chat-column { display: flex; min-width: 0; flex-direction: column; }
.profile-stream-player { width: 100%; max-height: none; aspect-ratio: 16 / 9; border: 1px solid var(--wt-line); border-radius: 12px; background: #0d1114; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.profile-stream-chat-column { overflow: hidden; border: 1px solid var(--wt-line); border-radius: 12px; background: var(--wt-bg); }
.frameworks-profile-player-frame { width: 100%; aspect-ratio: 16 / 9; }
.frameworks-profile-chat { min-height: 0; max-height: none; }
.frameworks-profile-chat-list { min-height: 0; max-height: none; }
.profile-stream-chat-header { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-bottom: 1px solid var(--wt-line); background: var(--wt-surface); }
.profile-stream-chat-header h3 { margin: 0; color: var(--wt-text); font-size: 12px; font-weight: 650; }
.profile-stream-chat-link { flex: none; color: var(--wt-blue); font-size: 10px; text-decoration: none; }
.profile-stream-chat-link:hover { color: var(--wt-teal); }
.profile-stream-chat { display: block; width: 100%; min-height: 290px; flex: 1; border: 0; background: var(--wt-bg); }
.profile-stream-copy { margin-top: 10px; font-size: 11px; line-height: 1.6; }
.profile-details-grid { width: 100%; max-width: 1050px; margin: 14px auto 0; }
.profile-card { width: 100%; max-width: none; padding: clamp(20px, 3vw, 32px); }
.profile-card h1 { color: var(--wt-text); }
.profile-login, .profile-card > p:last-of-type { color: var(--wt-muted); }
.profile-follower-count { color: var(--wt-blue); }
.profile-banner { width: 100%; max-width: 1050px; margin: 0 auto 16px; overflow: hidden; border: 1px solid var(--wt-line); border-radius: 17px; background: var(--wt-surface-2); box-shadow: var(--wt-shadow); }
.profile-banner img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.back-link, .settings-text-link { color: var(--wt-blue); }
.back-link:hover, .settings-text-link:hover { color: var(--wt-teal); }
.settings-heading > p, .settings-card > p, .settings-card-heading p, .settings-kicker, .settings-help { color: var(--wt-muted); }
.settings-card { padding: clamp(17px, 2.4vw, 26px); }
.settings-card h2 { color: var(--wt-text); }
.settings-form label, .settings-danger label { color: var(--wt-text); }
.settings-form input, .settings-form textarea, .settings-danger input:not([type="checkbox"]), input, textarea, select { border-color: var(--wt-line); background-color: var(--wt-bg-raised); color: var(--wt-text); }
input::placeholder, textarea::placeholder { color: var(--wt-quiet); }
.settings-form input:focus, .settings-form textarea:focus, input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--wt-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-blue) 16%, transparent); }
.settings-danger { border-color: rgba(225,143,132,.35); background: linear-gradient(145deg, color-mix(in srgb, var(--wt-surface) 95%, #6e302c 5%), var(--wt-bg-raised)); }
.settings-danger h2, .settings-danger label strong { color: var(--wt-danger); }
.settings-danger .danger-button { border-color: #a94a42; background: #8b3833; color: #fff; }
.settings-secondary-button, .settings-clear-media { border-color: var(--wt-line); background: var(--wt-surface-2); color: var(--wt-text); }
.profile-social-links a { border-color: var(--wt-line); color: var(--wt-blue); }
.lower-panel { border-color: var(--wt-line); background: linear-gradient(120deg, var(--wt-surface), color-mix(in srgb, var(--wt-teal) 7%, var(--wt-surface))); }
.page-footer { border-color: var(--wt-line); color: var(--wt-muted); }
.page-footer > a, .footer-mark { color: var(--wt-text); }
.toast { border-color: var(--wt-line); background: var(--wt-surface); color: var(--wt-text); box-shadow: var(--wt-shadow); }
.modal-scrim { background: rgba(6,9,12,.76); backdrop-filter: blur(9px); }
.auth-dialog { overflow: hidden; border: 1px solid var(--wt-line); border-radius: 20px; background: var(--wt-surface); color: var(--wt-text); box-shadow: 0 26px 80px rgba(0,0,0,.45); }
.auth-visual { background: radial-gradient(ellipse at 75% 25%, rgba(117,184,173,.32), transparent 38%), linear-gradient(150deg, #293b49, #20262d 58%, #4a3e38); }
.auth-visual-copy h2, .auth-visual-copy p, .visual-footer { color: #f3f0e8; }
.auth-content { background: var(--wt-surface); color: var(--wt-text); }
.auth-eyebrow, .auth-subtitle, .auth-note, .auth-terms, .auth-divider { color: var(--wt-muted); }
.auth-mode-tabs { border-color: var(--wt-line); background: var(--wt-bg-raised); }
.auth-mode.active { background: var(--wt-surface-2); color: var(--wt-text); box-shadow: inset 0 -2px var(--wt-blue); }
.auth-content .twitch-signin { border-color: #65508e; background: #4d3d71; color: #fff; }
.auth-content .twitch-signin:hover { background: #5a4980; }
.auth-content .kick-signin { border-color: #398965; background: #286f51; color: #f5fff9; box-shadow: 0 4px 14px rgba(38,111,81,.18); }
.auth-content .kick-signin:hover { background: #31805e; }
.auth-content .kick-signin .kick-glyph { background: #183e30; color: #9de2bd; }
.auth-content .kick-signin .button-arrow { color: #f5fff9; }
.local-form input { border-color: var(--wt-line); background: var(--wt-bg-raised); color: var(--wt-text); }
.local-submit { background: linear-gradient(135deg, #3b86bb, #326e99); color: white; }
.modal-close { color: var(--wt-muted); }
@media (max-width: 780px) {
  .cinematic-hero { min-height: 405px; background-position: center, center, 62% center; }
  .cinematic-hero h1 { max-width: 450px; }
  .profile-stream-layout { grid-template-columns: minmax(0, 1fr) minmax(245px, 38%); gap: 10px; }
  .profile-stream-chat { min-height: 250px; }
}
@media (max-width: 650px) {
  .cinematic-hero { min-height: 390px; margin-top: 4px; padding: 25px 20px; border-radius: 18px; background-image: linear-gradient(90deg, rgba(16,20,24,.93), rgba(16,20,24,.72) 58%, rgba(16,20,24,.28)), linear-gradient(0deg, rgba(15,18,21,.42), transparent 65%), url('/manus-storage/public/async-images/2Afj7XOaI9XbGxYzEk9a7c/image-1.webp'); background-position: center, center, 62% center; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .profile-stream-layout { grid-template-columns: minmax(320px, 1fr) 280px; gap: 10px; overflow-x: auto; max-width: 100%; padding-bottom: 8px; overscroll-behavior-x: contain; }
  .profile-stream-video-column { width: 320px; }
  .profile-stream-chat-column { width: 280px; min-height: 0; }
  .profile-stream-chat { min-height: 0; }
  .profile-stream-room { margin-top: 13px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Text-only tacko wordmark; no T-symbol in the header or authentication view. */
.brand { gap: 0; text-decoration: none; }
.brand-wordmark { display: block; color: var(--wt-text); font-size: 23px; font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.auth-brand { display: inline-flex; width: auto; }
.auth-brand-wordmark { display: inline-block; color: #f1f0eb; font-size: 26px; font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.auth-mobile-mark .auth-brand-wordmark { color: var(--wt-text); }
@media (max-width: 920px) {
  .brand { justify-content: flex-start; width: 100%; }
}
@media (max-width: 700px) {
  .topbar { grid-template-columns: 28px 58px minmax(0, 1fr) auto; gap: 8px; }
  .mobile-menu { grid-column: 1; grid-row: 1; }
  .brand { display: flex; grid-column: 2; grid-row: 1; width: auto; justify-content: flex-start; }
  .brand-wordmark { font-size: 19px; }
  .search-wrap { grid-column: 3; grid-row: 1; }
  .top-actions { grid-column: 4; grid-row: 1; }
}

/* Compact, scannable activity history alongside the existing live notices. */
#notification-list { max-height: min(64vh, 480px); overflow-y: auto; }
.notification-section-title { display: block; margin-top: 12px; color: var(--wt-muted); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.notification-section-title:first-child { margin-top: 8px; }
.notification-items { gap: 5px; margin-top: 7px; }
.notification-items .notification-event { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.notification-event .notification-copy { min-width: 0; }
.notification-event time { flex: none; color: var(--wt-quiet); font-size: 9px; }
.notification-items .notification-unfollow { border-left: 2px solid var(--wt-amber); }
.notification-empty { margin: 0; padding: 6px 2px; color: var(--wt-muted); font-size: 10px; }
.notification-trigger { position: relative; }
.notification-count { position: absolute; top: -5px; right: -6px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid var(--wt-surface); border-radius: 999px; background: #b85c4a; color: #fff; font-size: 9px; font-weight: 750; line-height: 1; box-shadow: 0 2px 7px rgba(0,0,0,.24); }
.notification-count[hidden] { display: none; }
.notification-event.notification-unread { background: color-mix(in srgb, var(--wt-blue) 10%, var(--wt-surface-2)); font-weight: 650; }

/* Keep both hero actions' labels optically centered at every breakpoint. */
.hero-cta, .hero-secondary { display: inline-flex; min-height: 42px; box-sizing: border-box; align-items: center; justify-content: center; line-height: 1; }

/* Extra vertical room keeps Twitch's embedded cookie-consent controls reachable. */
.profile-stream-chat { min-height: 560px !important; }
