:root {
  --ink: #11182f;
  --ink-2: #1a2341;
  --muted: #697087;
  --line: #dfe3ec;
  --paper: #f7f8f5;
  --white: #ffffff;
  --lime: #b9f44a;
  --mint: #62e9c6;
  --coral: #ff6b62;
  --purple: #8d7df0;
  --shadow: 0 18px 55px rgba(17, 24, 47, 0.09);
  --radius: 22px;
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }
.auth-pending main { visibility: hidden; }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(17, 24, 47, 0.08);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.8px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--ink); color: var(--lime); border-radius: 11px 11px 11px 4px; transform: rotate(-4deg); box-shadow: 4px 4px 0 var(--lime); }
.brand-mark svg { width: 20px; fill: currentColor; transform: rotate(4deg); }
.brand-accent { color: #6c54dc; }

.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: 90px; }
.desktop-nav a { position: relative; color: #565e74; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.desktop-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -11px; height: 2px; border-radius: 2px; background: var(--ink); transition: left .2s ease, right .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.online-pill { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.online-pill[hidden] { display: none; }
.online-pill span { width: 7px; height: 7px; background: #38c991; border-radius: 50%; box-shadow: 0 0 0 4px rgba(56, 201, 145, .12); }
.online-pill strong { color: var(--ink); margin-left: 3px; }
.preference-pill, .account-button { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid #dce0e8; border-radius: 11px; background: rgba(255,255,255,.72); cursor: pointer; transition: .18s ease; }
.preference-pill { gap: 7px; padding: 0 12px; color: var(--muted); font-size: 10px; }
.preference-pill strong { color: var(--ink); }
.account-button { gap: 8px; padding: 4px 11px 4px 5px; font-size: 11px; font-weight: 800; }
.preference-pill:hover, .account-button:hover { border-color: #b9bfce; background: white; transform: translateY(-1px); }
.account-avatar { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; color: white; background: #7056df center/cover; border-radius: 9px; font-size: 10px; }
.mobile-account { min-height: 42px; color: white; border: 0; border-radius: 10px; background: var(--ink); font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 8px 0 rgba(17, 24, 47, .12); }
.button-primary:hover { background: #273052; box-shadow: 0 10px 0 rgba(17, 24, 47, .12); }
.button-small { min-height: 42px; padding: 0 17px; font-size: 13px; }
.button-large { min-height: 56px; padding: 0 24px; border-radius: 15px; font-size: 14px; }
.button-large svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-ghost { color: var(--ink); border: 1px solid #cfd4de; background: rgba(255,255,255,.55); }
.button-ghost:hover { background: white; box-shadow: var(--shadow); }
.button-dark { padding: 16px 20px; color: white; background: var(--ink); white-space: nowrap; }
.menu-button { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }
.menu-button.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; min-height: 660px; padding-block: 64px 70px; gap: 70px; }
.authenticated .hero, .authenticated .how-section, .authenticated .safety-section { display: none; }
.authenticated .lobbies-section { padding-top: 48px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #6a54da; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 3px rgba(185, 244, 74, .35); }
.hero h1, .section-heading h2, .how-intro h2, .safety-card h2 { margin: 17px 0 22px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -3.4px; }
.hero h1 { max-width: 650px; font-size: clamp(52px, 5.4vw, 76px); line-height: .98; }
.hero h1 em, .how-intro h2 em { position: relative; color: #7056df; font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; left: 2px; right: 0; bottom: -9px; height: 10px; background: url("data:image/svg+xml,%3Csvg width='220' height='10' viewBox='0 0 220 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7.7C56 1.8 127 2.1 218 3.8' stroke='%23B9F44A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-lead { max-width: 530px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; }
.community-proof { display: flex; align-items: center; gap: 15px; margin-top: 37px; }
.proof-avatars { display: flex; }
.mini-avatar { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -7px; border: 2px solid var(--paper); border-radius: 50%; color: white; font-size: 9px; font-weight: 800; }
.mini-avatar:first-child { margin-left: 0; }
.community-proof p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.community-proof strong { color: var(--ink); font-size: 12px; }

.avatar-pink { background: linear-gradient(145deg, #ff9eab, #da527d); }
.avatar-blue { background: linear-gradient(145deg, #77c8ff, #526bdb); }
.avatar-yellow { background: linear-gradient(145deg, #ffd76d, #ef864a); }
.avatar-green { background: linear-gradient(145deg, #68e1b3, #2a9d8f); }
.avatar-purple { background: linear-gradient(145deg, #c89cff, #755bdf); }

.hero-stage { position: relative; min-height: 535px; overflow: hidden; border-radius: 38px 38px 90px 38px; background: var(--ink); isolation: isolate; }
.stage-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent); }
.stage-orbit { position: absolute; border: 1px solid rgba(185,244,74,.25); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; top: 45px; right: -160px; }
.orbit-two { width: 320px; height: 320px; top: 105px; right: -100px; }
.featured-card { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(355px, calc(100% - 80px)); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 25px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: translate(-50%, -50%) rotate(-2.4deg); transition: transform .4s ease; }
.hero-stage:hover .featured-card { transform: translate(-50%, -51%) rotate(0); }
.featured-art { position: relative; display: grid; place-items: center; height: 205px; overflow: hidden; }
.featured-art::before, .featured-art::after { content: ""; position: absolute; width: 220px; height: 320px; transform: rotate(27deg); }
.featured-art::before { left: -70px; top: -110px; background: rgba(255,255,255,.1); }
.featured-art::after { right: -100px; bottom: -190px; border: 45px solid rgba(255,255,255,.08); }
.art-valorant { background: linear-gradient(135deg, #f0546f, #7f3f7e 50%, #202b55); }
.featured-game-logo { position: relative; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; color: white; border: 2px solid rgba(255,255,255,.8); border-radius: 26px 26px 26px 8px; font: 800 44px/1 Inter, ui-sans-serif, system-ui, sans-serif; text-shadow: 0 3px 0 rgba(0,0,0,.1); }
.featured-game-logo img { width: 48px; height: 48px; object-fit: contain; }
.art-word { position: absolute; bottom: 18px; color: rgba(255,255,255,.82); font: 700 11px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 4px; }
.live-badge { position: absolute; z-index: 3; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: white; background: rgba(17,24,47,.7); border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: 1px; backdrop-filter: blur(8px); }
.live-badge i { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 3px rgba(185,244,74,.18); }
.featured-body { padding: 18px; }
.featured-host { display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 10px; }
.host-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: white; border-radius: 13px; font-size: 11px; font-weight: 800; }
.host-avatar.remote-avatar { overflow: hidden; background: #eceff4; }
.host-avatar.remote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.featured-host strong { display: block; font-size: 14px; }
.featured-host small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.verified { display: inline-grid; place-items: center; width: 12px; height: 12px; color: white; background: #6959d8; border-radius: 50%; font-size: 8px; font-style: normal; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; font-size: 18px; transition: .2s ease; }
.icon-button:hover { color: var(--coral); background: #fff1f0; }
.feature-tags { display: flex; gap: 6px; margin: 16px 0; }
.feature-tags span { padding: 5px 8px; color: #4e5570; background: #f0f1f6; border-radius: 6px; font-size: 9px; font-weight: 700; }
.featured-footer { display: flex; align-items: center; padding-top: 15px; border-top: 1px solid #edf0f4; }
.member-stack { display: flex; }
.member-stack span { display: grid; place-items: center; width: 27px; height: 27px; margin-left: -6px; color: white; border: 2px solid white; border-radius: 50%; font-size: 8px; font-weight: 800; }
.member-stack span:first-child { margin-left: 0; }
.featured-spots { margin-left: 9px; }
.featured-spots strong, .featured-spots small { display: block; }
.featured-spots strong { font-size: 11px; }
.featured-spots small { color: var(--muted); font-size: 8px; }
.round-arrow { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; color: var(--ink); background: var(--lime); border-radius: 50%; font-weight: 800; }
.floating-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; padding: 10px 13px; color: var(--ink); background: var(--lime); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 10px; font-weight: 700; }
.floating-note span { width: 6px; height: 6px; background: #22ad73; border-radius: 50%; }
.note-top { top: 55px; right: 25px; transform: rotate(3deg); }
.note-bottom { bottom: 48px; left: 22px; color: white; background: #6f59df; transform: rotate(-3deg); }
.note-bottom strong { color: var(--lime); }

.lobbies-section { padding-block: 72px 125px; scroll-margin-top: 65px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(37px, 4vw, 54px); line-height: 1.03; }
.section-heading-actions { display: flex; align-items: flex-end; gap: 18px; }
.section-heading-actions p { max-width: 420px; margin: 0 0 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.board-create-button { flex: 0 0 auto; min-height: 43px; padding: 0 16px; font-size: 10px; }
.board-create-button span { font-size: 15px; }
.game-tabs { display: flex; gap: 8px; margin-top: 45px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 5px 13px 5px 7px; color: #596077; border: 1px solid #d9dde6; border-radius: 12px; background: rgba(255,255,255,.55); cursor: pointer; font-size: 11px; font-weight: 700; transition: .18s ease; }
.game-tab:hover, .game-tab.active { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.tab-icon, .game-icon { display: grid; place-items: center; width: 30px; height: 30px; color: white; border-radius: 8px; font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.tab-icon img, .tab-icon svg, .game-icon img, .game-icon svg { display: block; width: 18px; height: 18px; object-fit: contain; color: white; }
.game-icon img, .game-icon svg { width: 21px; height: 21px; }
.tab-icon .invert-logo, .game-icon .invert-logo { filter: brightness(0) invert(1); }
.all-games { color: var(--ink); background: var(--lime); }
.game-valorant { background: linear-gradient(145deg, #ff6b78, #bb365b); }
.game-league { background: linear-gradient(145deg, #f1c760, #6d5226); }
.game-steam { background: linear-gradient(145deg, #4e91b9, #173650); }
.game-apex { background: linear-gradient(145deg, #f25e4b, #872f2f); }
.game-overwatch { background: linear-gradient(145deg, #ffad43, #777f95); }
.game-rainbow { background: linear-gradient(145deg, #8994a1, #303842); }
.game-battlefield { background: linear-gradient(145deg, #5798cc, #234564); }
.game-cod { background: linear-gradient(145deg, #8c9a7f, #3f4939); }
.game-letter { color: white; font-size: 9px; font-weight: 900; letter-spacing: -.3px; }
.game-letter-wide { font-size: 7px; }

.filter-bar { display: grid; grid-template-columns: minmax(250px, 1fr) 175px 150px auto; gap: 9px; margin-top: 18px; padding: 10px; border: 1px solid #dfe3ea; border-radius: 16px; background: white; box-shadow: 0 8px 30px rgba(17,24,47,.04); }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 0 13px; background: #f5f6f7; border-radius: 10px; }
.search-box svg { width: 17px; fill: none; stroke: #81879a; stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #999eac; }
.select-wrap { position: relative; min-height: 45px; padding: 6px 28px 6px 12px; border-left: 1px solid #e4e7ed; }
.select-wrap::after { content: "⌄"; position: absolute; right: 10px; top: 17px; color: #8a90a0; font-size: 10px; pointer-events: none; }
.select-wrap span { display: block; color: #9a9fad; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.select-wrap select { width: 100%; margin-top: 3px; padding: 0; border: 0; outline: 0; appearance: none; color: var(--ink); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.preference-filter { position: relative; min-height: 45px; padding: 6px 28px 6px 12px; text-align: left; border: 0; border-left: 1px solid #e4e7ed; background: white; cursor: pointer; }
.preference-filter::after { content: "›"; position: absolute; right: 12px; top: 15px; color: #7865dc; font-size: 15px; }
.preference-filter span, .preference-filter strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preference-filter span { color: #9a9fad; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.preference-filter strong { margin-top: 3px; font-size: 11px; }
.filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 45px; padding: 0 13px; border: 1px solid #e0e3e9; border-radius: 10px; background: white; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.filter-toggle span { font-size: 15px; }
.filter-toggle:hover, .filter-toggle[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.saved-filter[aria-pressed="true"] span { color: var(--coral); }

.results-meta { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 15px; }
.results-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.results-meta strong { color: var(--ink); }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #36c58f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(54,197,143,.13); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(54,197,143,0); } }
.results-meta label { color: var(--muted); font-size: 10px; }
.results-meta select { margin-left: 4px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; font-weight: 700; }

.lobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.lobby-card { position: relative; display: flex; flex-direction: column; min-height: 335px; overflow: hidden; border: 1px solid #e0e3e9; border-radius: var(--radius); background: white; box-shadow: 0 8px 25px rgba(17,24,47,.045); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.lobby-card:hover { transform: translateY(-5px); border-color: #c8cddd; box-shadow: var(--shadow); }
.card-stripe { height: 5px; background: var(--game-color, var(--purple)); }
.lobby-card-main { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 15px; }
.card-topline { display: flex; align-items: center; }
.card-game { display: flex; align-items: center; gap: 9px; }
.game-icon { width: 35px; height: 35px; border-radius: 10px; }
.card-game strong, .card-game small { display: block; }
.card-game strong { font-size: 11px; }
.card-game small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.live-now { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 7px; color: #278b68; background: #e9faf4; border-radius: 7px; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.live-now i { width: 5px; height: 5px; background: #35c48d; border-radius: 50%; }
.save-card { margin-left: 6px; border: 0; }
.save-card.saved { color: white; background: var(--coral); border-color: var(--coral); }
[data-save], .heart-button, .saved-filter { display: none !important; }
.card-title { margin: 18px 0 7px; font: 700 17px/1.22 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.35px; }
.card-description { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.card-tags span { padding: 5px 7px; color: #5c6377; background: #f1f2f5; border-radius: 6px; font-size: 8px; font-weight: 700; }
.card-tags .vibe-tag { color: #5b49bd; background: #eeebff; }
.card-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 16px; }
.meta-item { min-width: 0; padding-right: 8px; border-right: 1px solid #edf0f4; }
.meta-item + .meta-item { padding-left: 10px; }
.meta-item:last-child { border: 0; }
.meta-item span, .meta-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-item span { color: #999eac; font-size: 7px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.meta-item strong { margin-top: 4px; font-size: 9px; }
.card-footer { display: flex; align-items: center; min-height: 64px; padding: 12px 18px; border-top: 1px solid #edf0f4; background: #fbfbfc; }
.host-block { display: flex; align-items: center; min-width: 0; }
.host-block .host-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 8px; }
.host-info { min-width: 0; margin-left: 8px; }
.host-info span, .host-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-info span { color: #9a9fac; font-size: 7px; }
.host-info strong { margin-top: 2px; font-size: 9px; }
.player-spots { margin-left: auto; margin-right: 10px; text-align: right; }
.player-spots strong, .player-spots small { display: block; }
.player-spots strong { font-size: 10px; }
.player-spots small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.join-button { min-width: 62px; min-height: 34px; padding: 0 10px; color: var(--ink); border: 0; border-radius: 9px; background: var(--lime); cursor: pointer; font-size: 9px; font-weight: 800; transition: .18s ease; }
.join-button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(17,24,47,.12); }
.join-button.joined { color: white; background: #4dba92; }
.join-button.full { color: #9b9fab; background: #e9ebef; cursor: not-allowed; }
.join-button.owned { color: white; background: #7056df; cursor: pointer; }
.join-button:disabled:hover { transform: none; box-shadow: none; }

.button-load { min-height: 45px; margin: 32px auto 0; padding: 0 20px; color: var(--ink); border: 1px solid #d9dde5; background: white; font-size: 10px; box-shadow: 0 6px 20px rgba(17,24,47,.04); }
.button-load span { font-size: 15px; }
.empty-state { padding: 65px 20px; text-align: center; border: 1px dashed #cfd4de; border-radius: 20px; }
.empty-state > span { font-size: 40px; }
.empty-state h3 { margin: 12px 0 8px; font: 700 20px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.empty-state .button { min-height: 42px; padding: 0 16px; font-size: 11px; }

.how-section { position: relative; overflow: hidden; padding: 105px 0 115px; color: white; background: var(--ink); }
.how-section::before { content: ""; position: absolute; right: -170px; top: -210px; width: 570px; height: 570px; border: 1px solid rgba(185,244,74,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(185,244,74,.025), 0 0 0 140px rgba(185,244,74,.018); }
.how-section .section-shell { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 95px; }
.eyebrow.light { color: var(--mint); }
.how-intro h2 { margin: 18px 0 22px; font-size: clamp(38px, 4vw, 55px); line-height: 1.05; }
.how-intro h2 em { color: var(--lime); }
.how-intro p { max-width: 440px; color: #aab0c1; font-size: 14px; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps-grid article { position: relative; min-height: 300px; padding: 23px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.045); transition: transform .22s ease, background .22s ease; }
.steps-grid article:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.step-number { color: #727a96; font: 600 11px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.step-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 50px 0 26px; color: var(--ink); background: var(--lime); border-radius: 18px 18px 18px 6px; font-size: 26px; font-weight: 700; transform: rotate(-3deg); }
.steps-grid article:nth-child(2) .step-icon { background: var(--mint); }
.steps-grid article:nth-child(3) .step-icon { background: var(--coral); }
.steps-grid h3 { margin: 0 0 10px; font: 600 16px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.steps-grid p { margin: 0; color: #9ea6ba; font-size: 10px; line-height: 1.6; }

.safety-section { padding-block: 100px; scroll-margin-top: 60px; }
.safety-card { position: relative; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 30px; overflow: hidden; padding: 43px 50px; border: 1px solid #d8dce5; border-radius: 28px; background: #ece9ff; }
.safety-card::after { content: ""; position: absolute; right: -50px; top: -140px; width: 290px; height: 290px; border: 30px solid rgba(112,86,223,.06); border-radius: 50%; }
.safety-mark { position: relative; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; color: white; background: #7056df; border: 7px solid white; border-radius: 50% 50% 45% 45%; box-shadow: 0 8px 0 rgba(17,24,47,.12); font: 800 36px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.safety-card h2 { margin: 9px 0 8px; font-size: 30px; letter-spacing: -1.7px; }
.safety-card p { max-width: 650px; margin: 0; color: #60677d; font-size: 11px; line-height: 1.6; }
.safety-card .button { position: relative; z-index: 2; }

.site-footer { padding: 60px 0 35px; color: white; background: #0b1126; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: start; }
.footer-brand .brand-mark { color: var(--lime); background: #242c49; box-shadow: 4px 4px 0 rgba(185,244,74,.5); font-size: 13px; }
.footer-inner > div:first-child p { max-width: 260px; margin: 20px 0 0; color: #858da4; font-size: 11px; line-height: 1.6; }
.footer-links { display: flex; gap: 32px; color: #b8bdcb; font-size: 11px; font-weight: 600; }
.footer-links a:hover { color: var(--lime); }
.copyright { grid-column: 1/-1; margin: 30px 0 0; padding-top: 22px; color: #5d657d; border-top: 1px solid rgba(255,255,255,.08); font-size: 9px; }

.create-modal { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; color: var(--ink); border: 0; border-radius: 24px; background: white; box-shadow: 0 30px 100px rgba(5,10,28,.45); }
.create-modal::backdrop, .onboarding-modal::backdrop, .auth-modal::backdrop, .room-modal::backdrop, .switch-room-modal::backdrop { background: rgba(8,13,30,.72); backdrop-filter: blur(7px); }
.create-modal[open], .room-modal[open], .switch-room-modal[open] { animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } }
.create-modal form { padding: 30px; }
.modal-header { display: flex; justify-content: space-between; gap: 20px; }
.modal-kicker { color: #7056df; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.modal-header h2 { margin: 7px 0 6px; font: 700 30px/1.1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -1.4px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f0f1f4; cursor: pointer; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 27px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce0e8; border-radius: 10px; outline: 0; background: #fafafa; font-size: 11px; transition: border .18s ease, box-shadow .18s ease; }
.field input, .field select { height: 43px; padding: 0 12px; }
.field textarea { min-height: 75px; padding: 11px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7c65e2; box-shadow: 0 0 0 3px rgba(124,101,226,.12); }
.invite-field small { display: block; margin-top: 6px; color: #737b90; font-size: 8px; line-height: 1.45; }
.invite-safety-guide { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #d9d4f7; border-radius: 13px; background: #f5f3ff; }
.guide-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: white; background: #7056df; border-radius: 10px; font-size: 15px; }
.invite-safety-guide strong { display: block; font-size: 10px; }
.invite-safety-guide p { margin: 5px 0 0; color: #666e84; font-size: 8px; line-height: 1.6; }
.invite-safety-guide b { color: #4f3fb1; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; padding-top: 20px; border-top: 1px solid #e8eaf0; }
.modal-footer p { margin: 0; color: var(--muted); font-size: 9px; }
.modal-footer p span { color: #30aa7f; }
.modal-footer .button { min-height: 45px; padding: 0 18px; font-size: 11px; }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 14px 16px; color: white; background: var(--ink); border: 1px solid rgba(255,255,255,.15); border-radius: 13px; box-shadow: 0 18px 50px rgba(0,0,0,.25); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--ink); background: var(--lime); border-radius: 50%; }

.onboarding-modal { width: min(900px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; color: var(--ink); border: 0; border-radius: 27px; background: white; box-shadow: 0 32px 110px rgba(5,10,28,.5); }
.onboarding-modal[open], .auth-modal[open] { animation: modal-in .22s ease both; }
.onboarding-modal form { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 620px; }
.onboarding-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 34px; color: white; background: var(--ink); }
.onboarding-visual::before { content: ""; position: absolute; right: -140px; top: 90px; width: 340px; height: 340px; border: 1px solid rgba(185,244,74,.22); border-radius: 50%; box-shadow: 0 0 0 55px rgba(185,244,74,.025), 0 0 0 110px rgba(185,244,74,.02); }
.onboarding-brand { position: relative; z-index: 2; color: white; }
.onboarding-brand .brand-mark { background: #29314e; }
.onboarding-orbit { position: relative; z-index: 2; display: grid; place-items: center; min-height: 190px; }
.onboarding-orbit::before { content: attr(data-code); display: grid; place-items: center; width: 88px; height: 88px; color: var(--ink); background: var(--lime); border-radius: 28px 28px 28px 8px; font-size: 27px; font-weight: 900; transform: rotate(-5deg); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.onboarding-visual > div:last-child { position: relative; z-index: 2; }
.onboarding-visual h2 { margin: 10px 0 15px; color: white; font-size: 35px; line-height: 1.08; letter-spacing: -2px; }
.onboarding-visual p { margin: 0; color: #aeb5c9; font-size: 11px; line-height: 1.7; }
.onboarding-content { position: relative; padding: 38px 42px 30px; }
.onboarding-close { position: absolute; right: 24px; top: 22px; }
.onboarding-close.locked { visibility: hidden; }
.setup-heading { margin-top: 8px; }
.setup-heading > span { color: #7056df; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.setup-heading h2 { margin: 7px 0 8px; font-size: 29px; letter-spacing: -1.3px; }
.setup-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.preference-form { margin-top: 25px; }
.region-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.region-choice legend { margin-bottom: 7px; font-size: 9px; font-weight: 800; }
.region-choice label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 11px 5px; border: 1px solid #dce0e8; border-radius: 11px; cursor: pointer; transition: .18s ease; }
.region-choice input { position: absolute; opacity: 0; }
.region-choice label:has(input:checked) { border-color: #7056df; background: #f1eeff; box-shadow: 0 0 0 2px rgba(112,86,223,.1); }
.region-choice label span { display: grid; place-items: center; width: 34px; height: 29px; color: white; background: var(--ink); border-radius: 8px; font-size: 9px; font-weight: 900; }
.region-choice label:has(input:checked) span { background: #7056df; }
.region-choice label strong { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.region-choice label small { color: var(--muted); font-size: 7px; }
.language-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 4px 0 0; padding: 0; border: 0; }
.language-choice legend { margin-bottom: 7px; font-size: 9px; font-weight: 800; }
.language-choice label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 138px; padding: 20px 10px 14px; border: 1px solid #dce0e8; border-radius: 14px; cursor: pointer; transition: .18s ease; }
.language-choice input { position: absolute; opacity: 0; }
.language-choice label:has(input:checked) { border-color: #7056df; background: #f1eeff; box-shadow: 0 0 0 2px rgba(112,86,223,.1); }
.language-choice label span { display: grid; place-items: center; width: 45px; height: 45px; color: white; background: var(--ink); border-radius: 13px; font-size: 12px; font-weight: 800; }
.language-choice label:has(input:checked) span { background: #7056df; }
.language-choice label strong { font-size: 12px; }
.language-choice label small { color: var(--muted); font-size: 8px; }
.onboarding-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #e6e9ee; }
.onboarding-footer p { margin: 0; color: var(--muted); font-size: 8px; }
.onboarding-footer .button { min-height: 45px; padding: 0 17px; font-size: 10px; }

.auth-modal { width: min(470px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; color: var(--ink); border: 0; border-radius: 25px; background: white; box-shadow: 0 32px 110px rgba(5,10,28,.5); }
.auth-shell { position: relative; padding: 36px; text-align: center; }
.auth-shell > .modal-close { position: absolute; right: 18px; top: 18px; }
.auth-shield { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 19px; color: var(--ink); background: var(--lime); border: 6px solid white; border-radius: 50%; box-shadow: 0 8px 0 rgba(17,24,47,.1); font-size: 22px; font-weight: 900; }
.auth-shell h2 { margin: 8px 0 9px; font-size: 30px; letter-spacing: -1.4px; }
.auth-shell > div > p { max-width: 340px; margin: 0 auto; color: var(--muted); font-size: 10px; line-height: 1.6; }
.auth-providers { display: grid; gap: 9px; margin-top: 25px; }
.provider-button { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; min-height: 54px; padding: 6px 13px 6px 8px; text-align: left; border: 1px solid #dce0e8; border-radius: 12px; cursor: pointer; transition: .18s ease; }
.provider-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(17,24,47,.1); }
.provider-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-weight: 900; }
.provider-button strong { margin-left: 9px; font-size: 11px; }
.provider-button small { color: #9298a8; font-size: 8px; }
.discord-login { color: white; border-color: #5865f2; background: #5865f2; }
.discord-login .provider-logo { background: rgba(255,255,255,.16); }
.discord-login small { color: rgba(255,255,255,.7); }
.google-login { color: var(--ink); background: white; }
.google-login .provider-logo { color: #4285f4; border: 1px solid #e0e3e9; background: white; }
.dev-login { color: #35405a; border-style: dashed; background: #f3f5f8; }
.dev-login .provider-logo { width: 34px; color: white; background: #35405a; font-size: 8px; }
.auth-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 19px; padding: 11px; text-align: left; border-radius: 10px; background: #f4f5f7; }
.auth-privacy > span { display: grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; color: white; background: #38b98b; border-radius: 50%; font-size: 8px; }
.auth-privacy p { margin: 0; color: #747b8f; font-size: 8px; line-height: 1.5; }
.auth-runtime-note { margin-top: 12px !important; color: #9a7a40 !important; }
.profile-hero { display: flex; align-items: center; margin-top: 24px; padding: 17px; text-align: left; border-radius: 16px; background: #f1eeff; }
.profile-hero img, .profile-hero > span { display: grid; place-items: center; width: 58px; height: 58px; object-fit: cover; color: white; background: #7056df; border-radius: 17px; font-size: 18px; font-weight: 900; }
.profile-hero div { margin-left: 13px; }
.profile-hero h2 { margin: 0; font-size: 20px; }
.profile-hero p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.profile-preference { display: grid; grid-template-columns: 1fr auto; margin-top: 13px; padding: 14px; text-align: left; border: 1px solid #e1e4eb; border-radius: 13px; }
.profile-preference span, .profile-preference strong { display: block; }
.profile-preference span { color: var(--muted); font-size: 8px; }
.profile-preference strong { margin-top: 4px; font-size: 11px; }
.profile-preference button { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #7056df; border: 0; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.logout-button { width: 100%; min-height: 43px; margin-top: 20px; color: #a34b4b; border: 1px solid #efd5d5; background: #fff5f5; font-size: 10px; }

.room-modal { width: min(980px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 24px; background: #f7f8fb; box-shadow: 0 32px 110px rgba(5,10,28,.5); }
.room-shell { min-height: min(690px, calc(100vh - 30px)); }
.room-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 20px; color: white; background: var(--ink); }
.room-header h2 { margin: 6px 0 7px; color: white; font-size: 25px; letter-spacing: -1px; }
.room-header p { display: flex; align-items: center; gap: 6px; margin: 0; color: #aeb5c9; font-size: 9px; }
.room-header .modal-kicker { color: var(--lime); }
.room-header .modal-close { color: white; background: rgba(255,255,255,.1); }
.room-live-dot { width: 7px; height: 7px; background: #4dd49d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(77,212,157,.12); }
.room-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 590px; }
.room-sidebar { padding: 22px; border-right: 1px solid #e0e3ea; background: white; }
.discord-room-card { display: grid; grid-template-columns: 45px 1fr; gap: 11px; padding: 16px; color: white; border-radius: 16px; background: #5865f2; box-shadow: 0 12px 28px rgba(88,101,242,.2); }
.discord-room-icon { display: grid; place-items: center; width: 45px; height: 45px; background: rgba(255,255,255,.16); border-radius: 13px; font-size: 11px; font-weight: 900; }
.discord-room-card strong { display: block; font-size: 11px; }
.discord-room-card p { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 8px; line-height: 1.5; }
.discord-room-link { grid-column: 1 / -1; min-height: 40px; margin-top: 3px; color: #3f49ba; background: white; font-size: 9px; }
.discord-missing { grid-column: 1 / -1; padding: 9px; color: #655f78 !important; border-radius: 9px; background: white; }
.room-members-card { margin-top: 14px; padding: 14px; border: 1px solid #e1e4eb; border-radius: 14px; background: #f8f9fc; }
.room-members-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-members-card header strong { font-size: 10px; }
.room-members-card header span { color: #7056df; font-size: 8px; font-weight: 800; }
.room-member-avatars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.room-member-avatar, .dock-member-avatar { display: grid; place-items: center; overflow: hidden; color: white; font-weight: 900; }
.room-member-avatar { width: 36px; height: 36px; border: 3px solid white; border-radius: 12px; box-shadow: 0 3px 9px rgba(17,24,47,.12); font-size: 8px; }
.room-member-avatar img, .dock-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.room-members-card > p { overflow: hidden; margin: 10px 0 0; color: #747b8f; font-size: 8px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.room-leave-button { width: 100%; min-height: 40px; margin-top: 17px; color: #a34b4b; border: 1px solid #efd5d5; border-radius: 10px; background: #fff5f5; cursor: pointer; font-size: 9px; font-weight: 800; }
.room-leave-button.owner { color: white; border-color: #b94d58; background: #b94d58; }
.chat-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; padding: 22px; }
.chat-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #e0e3ea; }
.chat-panel > header strong, .chat-panel > header span { display: block; }
.chat-panel > header strong { font-size: 13px; }
.chat-panel > header div span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-sync { padding: 6px 8px; color: #218364; border-radius: 8px; background: #e7f7f1; font-size: 8px; font-weight: 800; }
.chat-sync.offline { color: #97662e; background: #fff1dc; }
.chat-messages { min-height: 0; max-height: 430px; padding: 18px 5px 18px 0; overflow-y: auto; }
.chat-empty { display: grid; place-items: center; min-height: 310px; text-align: center; color: var(--muted); }
.chat-empty span { font-size: 27px; }
.chat-empty strong { margin-top: 8px; color: var(--ink); font-size: 12px; }
.chat-empty p { margin: -4px 0 0; font-size: 8px; }
.chat-message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; }
.chat-avatar { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; overflow: hidden; color: white; background: #7056df; border-radius: 10px; font-size: 8px; font-weight: 900; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble { max-width: min(80%, 520px); padding: 9px 11px; border: 1px solid #e1e4eb; border-radius: 4px 12px 12px; background: white; }
.chat-bubble header { display: flex; align-items: center; gap: 8px; }
.chat-bubble strong { font-size: 9px; }
.chat-bubble time { color: #9aa0af; font-size: 7px; }
.chat-bubble p { margin: 5px 0 0; white-space: pre-wrap; word-break: break-word; color: #4c5367; font-size: 10px; line-height: 1.5; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding-top: 14px; border-top: 1px solid #e0e3ea; }
.chat-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-form textarea { min-height: 52px; padding: 10px 12px; resize: none; border: 1px solid #d8dce5; border-radius: 11px; outline: 0; font: 10px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
.chat-form textarea:focus { border-color: #7056df; box-shadow: 0 0 0 3px rgba(112,86,223,.1); }
.chat-form .button { align-self: stretch; min-width: 72px; font-size: 9px; }

.switch-room-modal { width: min(470px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 24px; background: white; box-shadow: 0 30px 100px rgba(5,10,28,.5); }
.switch-room-shell { padding: 34px; text-align: center; }
.switch-room-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: var(--ink); border-radius: 18px 18px 18px 6px; background: var(--lime); box-shadow: 5px 5px 0 rgba(17,24,47,.12); font-size: 24px; font-weight: 900; }
.switch-room-shell h2 { margin: 7px 0 10px; font-size: 28px; letter-spacing: -1.2px; }
.switch-room-shell > p { margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.7; }
.switch-room-shell > p strong { color: var(--ink); }
.switch-room-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 26px; }
.switch-room-actions .button { min-height: 46px; padding: 0 13px; border: 1px solid #dce0e8; background: white; font-size: 10px; }
.switch-room-actions .button-primary { color: white; border-color: var(--ink); background: var(--ink); }

.active-room-dock { position: fixed; z-index: 25; right: 24px; bottom: 24px; width: min(390px, calc(100vw - 32px)); overflow: hidden; color: white; border: 1px solid rgba(185,244,74,.32); border-radius: 22px; background: #11182f; box-shadow: 0 24px 70px rgba(7,12,28,.42), 0 0 0 5px rgba(185,244,74,.08); }
.active-room-dock > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.active-room-dock > header div { display: flex; align-items: center; gap: 9px; }
.active-room-dock > header strong { font-size: 12px; }
.active-room-dock > header small { color: var(--lime); font-size: 8px; font-weight: 800; }
.active-room-list { display: grid; gap: 1px; }
.active-room-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; min-height: 124px; padding: 18px; text-align: left; color: white; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, #192342, #131b34); cursor: pointer; transition: .18s ease; }
.active-room-item:hover { background: linear-gradient(135deg, #222e52, #18213d); }
.active-room-copy { min-width: 0; }
.active-room-copy small { display: block; margin-bottom: 5px; color: #9fa8c0; font-size: 8px; font-weight: 700; }
.active-room-copy strong { display: block; overflow: hidden; color: white; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.active-room-copy span { display: block; margin-top: 7px; color: #a9b1c6; font-size: 9px; }
.active-room-avatars { display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.dock-member-avatar { width: 32px; height: 32px; margin-left: -9px; border: 2px solid #192342; border-radius: 50%; font-size: 7px; }
.dock-member-avatar:first-child { margin-left: 0; }
.active-room-return { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 33px; color: var(--ink); border-radius: 10px; background: var(--lime); font-size: 9px; font-weight: 900; }

@media (max-width: 1050px) {
  .desktop-nav { margin-left: 20px; }
  .online-pill { display: none; }
  .hero { gap: 35px; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .select-wrap { border-left: 0; }
  .lobby-grid { grid-template-columns: repeat(2, 1fr); }
  .how-section .section-shell { grid-template-columns: 1fr; gap: 45px; }
  .safety-card { grid-template-columns: 90px 1fr; }
  .safety-card .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 820px) {
  .section-shell { width: min(calc(100% - 32px), 680px); }
  .site-header { height: 68px; padding-inline: 20px; }
  .desktop-nav, .header-actions .preference-pill, .header-actions .account-button { display: none; }
  .menu-button { display: block; }
  .mobile-nav { position: fixed; z-index: 14; top: 68px; left: 0; right: 0; display: grid; gap: 15px; padding: 23px; border-bottom: 1px solid #dde1e9; background: rgba(247,248,245,.97); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .2s ease; backdrop-filter: blur(15px); }
  .mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a { font: 600 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 65px 55px; }
  .hero > *, .hero-copy { min-width: 0; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .community-proof { justify-content: center; }
  .hero-stage { width: min(100%, 560px); margin-inline: auto; }
  .section-heading { display: block; }
  .section-heading-actions { align-items: center; justify-content: space-between; margin-top: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: auto; }
  .step-icon { margin: 35px 0 22px; }
  .safety-card { grid-template-columns: 1fr; padding: 36px; }
  .safety-card .button { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .copyright { margin-top: 0; }
  .room-modal { overflow: auto; }
  .room-layout { grid-template-columns: 1fr; }
  .room-sidebar { border-right: 0; border-bottom: 1px solid #e0e3ea; }
  .chat-messages { min-height: 360px; }
}

@media (max-width: 620px) {
  .brand { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { min-height: auto; padding-top: 52px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); letter-spacing: -2.4px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-stage { min-height: 475px; border-radius: 30px 30px 65px 30px; }
  .featured-card { width: calc(100% - 52px); }
  .note-top { top: 24px; right: 13px; }
  .note-bottom { bottom: 30px; }
  .lobbies-section { padding-block: 85px 90px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .select-wrap { min-width: 0; padding-right: 22px; }
  .preference-filter { min-width: 0; border-left: 0; }
  .filter-toggle { min-width: 0; }
  .lobby-grid { grid-template-columns: 1fr; }
  .results-meta { align-items: flex-start; gap: 12px; }
  .results-meta label { text-align: right; }
  .how-section { padding-block: 80px; }
  .safety-section { padding-block: 70px; }
  .safety-mark { width: 72px; height: 72px; font-size: 28px; }
  .safety-card h2 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: 1; }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .create-modal form { padding: 23px; }
  .invite-safety-guide { padding: 12px; }
  .onboarding-modal form { grid-template-columns: 1fr; }
  .onboarding-visual { display: none; }
  .onboarding-content { padding: 32px 22px 24px; }
  .language-choice { grid-template-columns: 1fr 1fr; }
  .region-choice { grid-template-columns: 1fr 1fr; }
  .onboarding-footer { align-items: stretch; flex-direction: column; }
  .auth-shell { padding: 33px 22px 24px; }
  .provider-button { grid-template-columns: 37px 1fr; }
  .provider-button small { display: none; }
  .room-header { padding: 20px; }
  .room-header h2 { font-size: 21px; }
  .room-sidebar, .chat-panel { padding: 17px; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form .button { min-height: 42px; }
  .section-heading-actions { align-items: stretch; flex-direction: column; }
  .section-heading-actions p { margin: 0; }
  .board-create-button { align-self: flex-start; }
  .switch-room-shell { padding: 28px 20px 22px; }
  .switch-room-actions { grid-template-columns: 1fr; }
  .active-room-dock { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

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