:root{
    /* Dark theme = default. Warm charcoal base (not navy-black) with teal,
       the logo's dominant hue, leading — deliberately avoiding the generic
       "near-black + electric blue glow" dark-mode look. */
    --white:#221D17;
    --paper:#161210;
    --navy:#F3EDE3;
    --navy-soft:#A99E8E;
    --blue:#5FB0DE;
    --blue-dark:#7FC4E8;
    --teal:#31D6A8;
    --teal-dark:#5CE0BC;
    --mint-tint:#16241D;
    --blue-tint:#1C1712;
    --border-soft:rgba(243,237,227,.12);
    --prose-text:#D8CFC0;
    --ring-1:rgba(95,176,222,.16);
    --ring-2:rgba(49,214,168,.20);
  }

[data-theme="light"]{
    --white:#FFFFFF;
    --paper:#F6F8FA;
    --navy:#0E1B2E;
    --navy-soft:#5B6472;
    --blue:#1483E0;
    --blue-dark:#0E63AE;
    --teal:#3AD6B7;
    --teal-dark:#25AE93;
    --mint-tint:#E9FBF5;
    --blue-tint:#EAF4FF;
    --border-soft:#E7E9EE;
    --prose-text:#2C3646;
    --ring-1:#DCEBFB;
    --ring-2:#D5F5EC;
  }

*{box-sizing:border-box; margin:0; padding:0;}

html{scroll-behavior:smooth;}

/* Scrollbars in the site's own colours: the page and every scrolling box (comments, menus...). Follows dark/light. */
:root{color-scheme:dark;}
[data-theme="light"]{color-scheme:light;}
*{scrollbar-width:thin; scrollbar-color:color-mix(in srgb, var(--navy) 32%, transparent) transparent;}
@supports not (scrollbar-color:auto){
  ::-webkit-scrollbar{width:10px; height:10px;}
  ::-webkit-scrollbar-track{background:transparent;}
  ::-webkit-scrollbar-thumb{background:color-mix(in srgb, var(--navy) 32%, transparent); border-radius:999px; border:2px solid transparent; background-clip:content-box;}
  ::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb, var(--navy) 55%, transparent); background-clip:content-box;}
}

body{
    background:var(--white);
    color:var(--navy);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }

::selection{background:var(--teal); color:var(--navy);}

.wrap{max-width:1180px; margin:0 auto; padding:0 28px; position:relative;}

a{color:inherit; text-decoration:none;}

img{max-width:100%; display:block;}

h1,h2,h3,.display{font-family:'Sora', sans-serif; font-weight:700; line-height:1.06; letter-spacing:-0.5px;}

.eyebrow{
    font-family:'JetBrains Mono', monospace; font-size:12px; font-weight:600;
    letter-spacing:2.5px; text-transform:uppercase; color:var(--blue-dark);
    display:inline-flex; align-items:center; gap:8px;
  }

.eyebrow.on-dark{color:var(--teal);}

/* ---------- NAV ---------- */
  header{position:sticky; top:0; z-index:60; background:var(--white); border-bottom:1px solid var(--border-soft);}

.nav{display:flex; align-items:center; justify-content:space-between; height:80px;}

.logo{display:flex; align-items:center; gap:10px; font-family:'Sora',sans-serif; font-weight:700; font-size:19px;}

.logo img{width:32px; height:32px;}

nav.links{display:flex; gap:32px; font-size:14.5px; font-weight:600; color:var(--navy-soft);}

nav.links a:hover{color:var(--navy);}

/* ---------- BUTTONS (shared style "C": flat ink pill) ----------
   .btn = outline, .btn.btn-solid = ink (cream on dark, navy on light). Gradient is kept only for "Get the App".
   Same look as the .ab-* classes in css/abtn.css. Hero / on-image buttons keep their own white and glass style. */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 22px;
    border:0; border-radius:999px; background:none; color:var(--navy) !important;
    font-weight:700; font-size:14.5px; line-height:1; text-decoration:none; white-space:nowrap; cursor:pointer;
    box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--navy) 30%, transparent);
    transition:transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  }

.btn:hover{background:none; color:var(--navy) !important; box-shadow:inset 0 0 0 1.5px var(--navy);}

.btn:active{transform:scale(.98);}

.btn:focus-visible{outline:none; box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--blue);}

.btn:disabled,.btn[aria-disabled="true"]{opacity:.42; cursor:not-allowed; transform:none;}

.btn-solid,.btn.btn-solid{background:var(--navy); color:var(--paper) !important; box-shadow:none;}

.btn-solid:hover,.btn.btn-solid:hover{background:var(--navy); color:var(--paper) !important; box-shadow:none; filter:brightness(1.12); transform:translateY(-1px);}

.btn-solid:active,.btn.btn-solid:active{filter:brightness(.94); transform:scale(.98);}

.btn-solid:focus-visible,.btn.btn-solid:focus-visible{box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--blue);}

.nav .btn{height:38px; padding:0 17px; font-size:13.5px;}

/* ---------- BADGES ---------- */
  .badges{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}

.badges a:not(.store-btn) img{height:48px; display:block;}

.badges a:not(.store-btn){display:block; line-height:0; transition:transform .15s ease;}

.badges a:not(.store-btn):hover{transform:translateY(-2px);}

/* ---------- DECOR CIRCLES ---------- */
  .ring{position:absolute; border-radius:50%; border:2px solid; pointer-events:none;}

.disc{position:absolute; border-radius:50%; pointer-events:none;}

/* ---------- HERO ---------- */
  .hero{position:relative; padding:96px 0 110px; overflow:hidden;}

.hero .ring.r1{width:520px; height:520px; top:-220px; right:-160px; border-color:var(--ring-1);}

.hero .ring.r2{width:360px; height:360px; top:-100px; right:-40px; border-color:var(--ring-2);}

.hero-grid{position:relative; z-index:1; display:grid; grid-template-columns:1.05fr 0.95fr; gap:50px; align-items:center;}

.hero h1{font-size:clamp(42px,6vw,72px); margin:20px 0 22px;}

.hero h1 .accent{color:var(--blue);}

.hero p.lede{font-size:18px; line-height:1.6; color:var(--navy-soft); max-width:460px; margin-bottom:32px;}

.hero-ctas{display:flex; flex-direction:column; align-items:flex-start; gap:18px;}

.fine{font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--navy-soft); letter-spacing:.3px;}

.hero-visual{position:relative; height:440px; display:flex; align-items:center; justify-content:center;}

.hero-visual .disc.backdrop{
    width:360px; height:360px; background:linear-gradient(135deg, var(--teal), var(--blue));
  }

.phone{
    position:relative; z-index:2; width:230px; border:10px solid #0E1B2E; border-radius:30px;
    background:#0E1B2E; box-shadow:0 24px 50px -20px rgba(14,27,46,.4);
  }

.phone img{border-radius:20px; width:100%; display:block;}

/* ---------- SECTION HEAD ---------- */
  section{padding:100px 0; position:relative;}

.sec-head{max-width:620px; margin-bottom:54px;}

.sec-head h2{font-size:clamp(30px,4vw,46px); margin-top:14px;}

.sec-head p{color:var(--navy-soft); font-size:16.5px; margin-top:16px; line-height:1.65;}

/* ---------- FEATURES ---------- */
  .features{background:var(--mint-tint);}

.feat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; position:relative; z-index:1;}

.feat{background:var(--white); border:2px solid var(--navy); border-radius:16px; padding:26px 22px; display:flex; flex-direction:column; gap:16px;}

.feat-mark{width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;}

.feat-mark svg{width:22px; height:22px; stroke:#FFFFFF;}

.feat:nth-child(1) .feat-mark{background:var(--blue);}

.feat:nth-child(2) .feat-mark{background:var(--teal-dark);}

.feat:nth-child(3) .feat-mark{background:#0E1B2E;}

.feat:nth-child(4) .feat-mark{background:var(--blue-dark);}

.feat h3{font-size:18.5px;}

.feat p{font-size:14.5px; line-height:1.6; color:var(--navy-soft);}

/* ---------- COMMUNITY ---------- */
  .community{background:var(--blue-tint);}

.comm-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}

.comm-shots{display:grid; grid-template-columns:1fr 1fr; gap:18px;}

.comm-shots img{border:2px solid var(--navy); border-radius:14px;}

.comm-shots .tall{grid-row:span 2;}

.quote-chip{
    margin-top:26px; padding:20px 22px; border-radius:14px 14px 14px 4px;
    background:#0E1B2E; color:#FFFFFF; font-size:14.5px; line-height:1.6; max-width:400px;
  }

/* ---------- CTA ---------- */
  .cta{background:#0E1B2E; color:#FFFFFF; text-align:center; overflow:hidden;}

.cta .disc{background:var(--teal); opacity:.15; width:420px; height:420px; left:-140px; top:-140px;}

.cta .disc.d2{background:var(--blue); opacity:.18; width:340px; height:340px; right:-100px; bottom:-140px; left:auto; top:auto;}

.cta-inner{position:relative; z-index:1; max-width:620px; margin:0 auto;}

.cta h2{font-size:clamp(34px,5vw,54px); margin:16px 0 18px; color:#FFFFFF;}

.cta h2 .accent{color:var(--teal);}

.cta p{color:#A9B4C4; font-size:16.5px; margin-bottom:36px; line-height:1.6;}

.cta .badges{justify-content:center;}

/* ---------- FOOTER ---------- */
  footer{padding:48px 0 36px;}

.foot-grid{display:flex; justify-content:space-between; align-items:flex-start; gap:30px; flex-wrap:wrap;}

.foot-links{display:flex; gap:26px; font-size:13.5px; font-weight:600; color:var(--navy-soft); flex-wrap:wrap;}

.foot-links a:hover{color:var(--navy);}

.foot-bottom{
    margin-top:34px; padding-top:22px; border-top:1px solid var(--border-soft);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--navy-soft);
  }

[data-reveal]{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}

[data-reveal].in{opacity:1; transform:translateY(0);}

@media (max-width:980px){
    nav.links{display:none;}
    .hero-grid{grid-template-columns:1fr; gap:70px;}
    .hero .ring{display:none;}
    .feat-grid{grid-template-columns:1fr 1fr;}
    .comm-grid{grid-template-columns:1fr;}
  }

@media (max-width:600px){
    .wrap{padding:0 18px;}
    .hero{padding:64px 0 70px;}
    .feat-grid{grid-template-columns:1fr;}
    .comm-shots{grid-template-columns:1fr 1fr;}
    .badges a:not(.store-btn) img{height:42px;}
  }

@media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    [data-reveal]{opacity:1; transform:none; transition:none;}
    .group-ring{transition:none;}
    .group-card:hover .group-ring{transform:none;}
  }

body{background:var(--white); color:var(--navy); font-family:'Inter', sans-serif; -webkit-font-smoothing:antialiased;}

.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

a{color:var(--blue-dark); text-decoration:underline; text-underline-offset:2px;}

a:hover{color:var(--blue);}

h1,h2,h3,.display{font-family:'Sora', sans-serif; font-weight:700; line-height:1.15; letter-spacing:-0.3px; color:var(--navy);}

.eyebrow{
    font-family:'JetBrains Mono', monospace; font-size:12px; font-weight:600; letter-spacing:2.5px;
    text-transform:uppercase; color:var(--blue-dark); display:inline-flex; align-items:center; gap:8px;
  }

header{background:var(--white); border-bottom:1px solid var(--border-soft);}

.page-head{padding:64px 0 40px; border-bottom:1px solid var(--border-soft);}

.page-head h1{font-size:clamp(34px,5vw,52px); margin:14px 0 10px;}

.page-head .updated{font-family:'JetBrains Mono',monospace; font-size:12.5px; color:var(--navy-soft);}

.content{padding:56px 0 100px;}

.content-grid{display:grid; grid-template-columns:220px 1fr; gap:56px; align-items:start;}

.toc{position:sticky; top:100px; display:flex; flex-direction:column; gap:10px; font-size:13.5px;}

.toc a{color:var(--navy-soft); text-decoration:none; font-weight:600;}

.toc a:hover{color:var(--blue-dark);}

.prose{max-width:720px;}

.prose h2{font-size:24px; margin:44px 0 14px;}

.prose h2:first-child{margin-top:0;}

.prose h3{font-size:17.5px; margin:26px 0 10px; color:var(--blue-dark);}

.prose p{font-size:15.5px; line-height:1.75; color:var(--prose-text); margin-bottom:14px;}

.prose ul{margin:0 0 16px 22px; color:var(--prose-text);}

.prose li{font-size:15.5px; line-height:1.7; margin-bottom:6px;}

.prose strong{color:var(--navy);}

.callout{
    background:var(--blue-tint); border:2px solid var(--navy); border-radius:14px;
    padding:18px 20px; margin:18px 0; font-size:14.5px; line-height:1.65;
  }

.callout strong{color:var(--blue-dark);}

footer{padding:48px 0 36px; border-top:1px solid var(--border-soft);}

.foot-links{display:flex; gap:26px; font-size:13.5px; font-weight:600; flex-wrap:wrap;}

.foot-links a{color:var(--navy-soft); text-decoration:none;}

.fine{font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--navy-soft);}

@media (max-width:860px){
    .content-grid{grid-template-columns:1fr;}
    .toc{position:static; flex-direction:row; flex-wrap:wrap; gap:16px;}
  }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%; flex-shrink:0;
  border:2px solid var(--navy); background:transparent; color:var(--navy);
  cursor:pointer; padding:0;
  transition:background .18s ease, color .18s ease, transform .15s ease, border-color .18s ease;
}
.theme-toggle:hover{transform:translateY(-1px); background:var(--navy); color:var(--white);}
.theme-toggle svg{width:18px; height:18px;}
.theme-toggle .icon-moon{display:none;}
[data-theme="light"] .theme-toggle .icon-sun{display:none;}
[data-theme="light"] .theme-toggle .icon-moon{display:block;}

body{transition:background-color .25s ease, color .25s ease;}

/* ---------- ACTIVE SUBS (internal stat page, site theme) ---------- */
html.stat-page, body.stat-page{
  height:100vh; width:100vw; margin:0; overflow:hidden;
  overscroll-behavior:none;
}
.stat-page main{
  height:100vh; display:flex; flex-direction:column; justify-content:center;
  padding:clamp(16px, 3vh, 32px) 24px; gap:clamp(14px, 3vh, 28px);
  max-width:640px; margin:0 auto;
}
.stat-page header{position:static; border-bottom:none;}
.stat-page .nav{height:auto; padding:18px 0;}

.stat-card{
  background:var(--white); border:2px solid var(--navy); border-radius:20px;
  padding:clamp(20px, 4vh, 40px) clamp(20px, 5vw, 40px);
  display:flex; flex-direction:column; justify-content:center;
  min-height:0; flex:1 1 auto; max-height:min(560px, 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.stat-value{
  font-family:'Sora',sans-serif; font-weight:800; line-height:1;
  font-size:clamp(40px, 9vh, 110px);
  margin:clamp(6px, 1.5vh, 14px) 0 0;
  background:linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-sub{
  margin-top:clamp(4px, 1vh, 10px);
  font-size:clamp(12px, 1.6vh, 14px); color:var(--navy-soft);
}
.stat-chips{
  margin-top:clamp(16px, 4vh, 32px);
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:clamp(8px, 1.5vh, 12px);
}
.stat-chip-flat{
  padding:clamp(10px, 2vh, 16px) 10px;
  border:2px solid var(--border-soft); border-radius:12px;
  background:var(--paper);
}
.stat-chip-flat .v{
  font-family:'JetBrains Mono',monospace; font-weight:700;
  font-size:clamp(11px, 1.5vh, 13px); color:var(--teal-dark);
}
.stat-chip-flat .l{
  font-size:clamp(9px, 1.2vh, 11px); color:var(--navy-soft);
  margin-top:4px; font-weight:600;
}
.stat-foot{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  flex-shrink:0;
}
.stat-meta{
  font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--navy-soft);
  text-align:right; line-height:1.4;
}

@media (max-width:600px){
  .stat-chips{grid-template-columns:repeat(2,1fr);}
  .stat-foot{flex-direction:column; align-items:flex-start; gap:10px;}
  .stat-foot .btn{width:100%; justify-content:center;}
  .stat-meta{text-align:left;}
}

/* ---------- TRENDING (live groups strip) — story-ring, horizontal scroll ---------- */
.trending{background:var(--paper);}
.group-strip{
  display:flex; flex-wrap:wrap; gap:20px 18px; padding:6px 4px 4px;
}

.group-card{
  flex:0 0 auto; width:96px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-align:center;
}

.group-ring{
  position:relative; width:76px; height:76px; border-radius:50%; flex-shrink:0;
  padding:3px;
  background:conic-gradient(from 200deg, var(--teal), var(--blue), var(--teal));
  transition:transform .18s ease;
}
.group-card:hover .group-ring{transform:scale(1.05);}
.group-ring-inner{
  width:100%; height:100%; border-radius:50%; padding:3px; background:var(--paper);
}
.group-cover{
  position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden;
  background:linear-gradient(135deg, var(--teal), var(--blue));
}
.group-cover img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;}
.group-cover-fallback{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-weight:800; font-size:20px; color:rgba(255,255,255,.92);
}
.group-rank{
  position:absolute; bottom:-2px; right:-2px; z-index:2;
  display:flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%;
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:9px;
  color:#FFFFFF; background:#0E1B2E;
  border:2px solid var(--paper);
}
.group-name{
  font-family:'Sora',sans-serif; font-weight:700; font-size:12.5px; line-height:1.25;
  max-width:96px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.group-creator{
  font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--navy-soft);
  max-width:96px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------- LATEST NEWS — compact, auto-fit for all screens ---------- */
.news{background:var(--white);}
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}
.news-card{
  display:flex; align-items:flex-start; gap:12px;
  background:var(--paper); border-radius:14px; padding:14px 16px;
  text-decoration:none; color:var(--navy);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.news-card:hover{
  transform:translateY(-2px); background:var(--white);
  box-shadow:0 12px 24px -16px rgba(14,27,46,.25);
}
.news-mark{
  position:relative; flex-shrink:0; width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:#0E1B2E; overflow:hidden;
}
.news-mark img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.news-mark svg{width:16px; height:16px; stroke:#FFFFFF; position:relative; z-index:0;}
.news-body{min-width:0;}
.news-title{
  font-family:'Sora',sans-serif; font-weight:700; font-size:13.5px; line-height:1.35;
  margin-bottom:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.news-sub{
  font-size:12px; line-height:1.5; color:var(--navy-soft);
  margin-bottom:4px;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.news-meta{font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--navy-soft);}

/* ---------- ONLINE NOW (top-of-site avatar strip) ---------- */
.online-strip{
  background:var(--paper); border-bottom:1px solid var(--border-soft);
}
.online-strip-inner{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:12px 28px;
}
.online-avatars{display:flex; align-items:center;}
.online-avatar{
  position:relative; width:32px; height:32px; flex-shrink:0;
  margin-left:-10px;
}
.online-avatar:first-child{margin-left:0;}
.online-avatar-photo{
  position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden;
  border:2px solid var(--paper);
  background:linear-gradient(135deg, var(--teal), var(--blue));
}
.online-avatar img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.online-avatar-fallback{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-weight:700; font-size:12px; color:rgba(255,255,255,.92);
}
.online-dot{
  position:absolute; bottom:-1px; right:-1px; z-index:1;
  width:10px; height:10px; border-radius:50%;
  background:var(--teal); border:2px solid var(--paper);
}
.online-avatar-more{
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:2px solid var(--paper);
  background:#0E1B2E; color:#FFFFFF;
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:9.5px;
}
.online-label{
  font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--navy-soft);
}

@media (max-width:600px){
  .online-strip-inner{padding:10px 18px; gap:10px;}
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch{position:relative;}
.lang-switch summary{
  list-style:none; display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 12px;
  border:2px solid var(--navy); border-radius:999px; cursor:pointer; user-select:none;
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:600; color:var(--navy);
}
.lang-switch summary::-webkit-details-marker{display:none;}
.lang-switch summary:hover,.lang-switch[open] summary{background:var(--navy); color:var(--white);}
.lang-switch svg{width:16px; height:16px;}
.lang-menu{
  position:absolute; inset-inline-end:0; top:calc(100% + 8px); min-width:160px; padding:6px; z-index:80;
  background:var(--white); border:1px solid var(--border-soft); border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.28); display:grid; gap:2px;
}
.lang-menu a{display:block; padding:10px 12px; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--navy-soft); text-decoration:none;}
.lang-menu a:hover{background:var(--paper); color:var(--navy);}
.lang-menu a.is-current{color:var(--navy); background:var(--mint-tint); box-shadow:inset 3px 0 0 var(--teal);}
.nav{gap:12px; justify-content:flex-start;}
header .nav > nav.links{margin-inline:auto;}
header .nav > .lang-switch,header .nav > .theme-toggle,header .nav > .btn{flex-shrink:0;}
header a,.logo{text-decoration:none;}
header .logo{color:var(--navy); margin-inline-end:12px;}
header nav.links a{color:var(--navy-soft);}
header nav.links a:hover{color:var(--navy);}
@media (max-width:980px){ header .nav > .lang-switch{margin-inline-start:auto;} }
@media (max-width:600px){ .lang-switch summary span{display:none;} .lang-switch summary{padding:0 10px;} .nav .btn{padding:10px 14px;} }

/* ---------- OTHER SCRIPTS + RIGHT-TO-LEFT ---------- */
html[lang="ar"] body,html[lang="ar"] .btn,html[lang="ar"] .eyebrow,html[lang="ar"] .fine{font-family:'Noto Sans Arabic','Inter',sans-serif;}
html[lang="ja"] body,html[lang="ja"] .btn{font-family:'Noto Sans JP','Inter',sans-serif;}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .logo,html[lang="ar"] .group-name{font-family:'Noto Sans Arabic','Sora',sans-serif;}
html[lang="ja"] h1,html[lang="ja"] h2,html[lang="ja"] h3,html[lang="ja"] .group-name{font-family:'Noto Sans JP','Sora',sans-serif;}
/* spaced capitals break Arabic joining and look odd in Japanese; tight headline spacing clips tall scripts */
html[lang="ar"] *,html[lang="ja"] *{letter-spacing:normal !important;}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ja"] h1,html[lang="ja"] h2,html[lang="ja"] h3{line-height:1.3;}
html[dir="rtl"] .online-avatar{margin-left:0; margin-inline-start:-10px;}
html[dir="rtl"] .online-avatar:first-child{margin-inline-start:0;}
html[dir="rtl"] .online-dot{right:auto; left:-1px;}
html[dir="rtl"] .group-rank{right:auto; left:-2px;}
html[dir="rtl"] .quote-chip{border-radius:14px 14px 4px 14px;}
html[dir="rtl"] .hero .ring.r1{right:auto; left:-160px;}
html[dir="rtl"] .hero .ring.r2{right:auto; left:-40px;}
html[dir="rtl"] .cta .disc{left:auto; right:-140px;}
html[dir="rtl"] .cta .disc.d2{right:auto; left:-100px;}
html[dir="rtl"] .lang-menu a.is-current{box-shadow:inset -3px 0 0 var(--teal);}
@media (max-width:600px){ header .nav > .btn{display:none;} }

/* header: sign in / account button */
header .nav > .nav-signin{background:transparent; flex-shrink:0;}
@media (max-width:720px){ header .nav > .nav-get{display:none;} }

/* ---------- STORE BUTTONS ---------- */
/* A plain capsule in the page's own surface and text colours, so it follows dark and light. The store logo is shown as it is in the image, then the store name. */
.store-btn{white-space:nowrap; display:inline-flex; align-items:center; gap:10px; padding:0 22px 0 16px; min-height:50px; border-radius:999px; background:var(--paper); color:var(--navy) !important; border:1.5px solid color-mix(in srgb, var(--navy) 20%, transparent); font:700 15px/1.1 'Inter',sans-serif; text-decoration:none; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;}
.store-btn img{width:26px; height:26px; object-fit:contain; display:block; flex:none;}
.store-btn:hover{transform:translateY(-2px); border-color:var(--teal); box-shadow:0 10px 22px -14px var(--teal);}
.store-btn:focus-visible{outline:2px solid var(--blue,#5AB0E0); outline-offset:3px;}
html[dir="rtl"] .store-btn{padding:0 16px 0 22px;}
html[lang="ar"] .store-btn,html[lang="ja"] .store-btn{font-family:inherit;}
@media (max-width:420px){ .badges .store-btn{flex:1 1 150px; justify-content:center;} }

/* header buttons keep one height in every language (Arabic and Japanese fonts have taller lines and used to stretch them) */
header .nav > .btn{height:42px; padding-top:0; padding-bottom:0; line-height:1; justify-content:center; white-space:nowrap;}
@media (max-width:600px){ header .nav > .nav-signin{height:38px;} }

/* Brand: the app icon, then the name "Animeista" in Bagel Fat One with a teal offset shadow, in every language. Self-hosted, Latin letters only.
 * The page text says ANIMEISTA; the real text is hidden visually (it stays for screen readers and search engines),
 * the icon is drawn from images/app-logo.png and the wordmark from the ::after text below, sitting right next to the icon.
 * On phones only the icon is shown, which leaves room for the header buttons. */
@font-face{font-family:'Bagel Fat One'; src:url('/fonts/BagelFatOne-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap;}
html[lang] body .logo{font-size:0; line-height:1; letter-spacing:0; gap:0;}
html[lang] body .logo img{display:none;}
html[lang] body .logo::before{content:""; flex:none; width:42px; height:42px; background:url('/images/app-logo.png') center/contain no-repeat;}
html[lang] body .logo::after{content:"Animeista"; font-family:'Bagel Fat One','Sora',sans-serif; font-weight:400; font-size:30px; line-height:1; letter-spacing:.01em !important; color:var(--navy); text-shadow:2px 2px 0 var(--teal); margin-inline-start:10px; padding-top:2px;}
@media (max-width:600px){ html[lang] body .logo::after{display:none;} html[lang] body .logo::before{width:40px; height:40px;} }

/* Arabic: Noto Kufi Arabic, self-hosted (one file, Arabic letters only). It is declared under 'Noto Sans Arabic', the name every stylesheet and page already asks for,
 * and it comes after the Google Fonts link, so it wins for every Arabic letter without touching those files. It is also declared under Inter, Sora and
 * JetBrains Mono, which have no Arabic letters: any text that names only one of those (and not Noto Sans Arabic) now gets Kufi for its Arabic instead of
 * the browser's default font. Latin letters and digits keep using Inter, Sora and JetBrains Mono. */
@font-face{font-family:'Noto Sans Arabic'; src:url('/fonts/NotoKufiArabic-VF.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC,U+00A0;}
@font-face{font-family:'Inter'; src:url('/fonts/NotoKufiArabic-VF.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F;}
@font-face{font-family:'Sora'; src:url('/fonts/NotoKufiArabic-VF.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F;}
@font-face{font-family:'JetBrains Mono'; src:url('/fonts/NotoKufiArabic-VF.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F;}

/* header "Get the app": a gradient button split in two, the label and an arrow that opens the store menu */
header .nav > .app-split{position:relative; flex:none; display:inline-flex; align-items:stretch; height:42px; border-radius:999px; background:linear-gradient(135deg, var(--blue), var(--teal)); box-shadow:0 6px 16px -6px color-mix(in srgb, var(--blue) 70%, transparent);}
header .app-main{display:inline-flex; align-items:center; gap:8px; padding:0 14px; color:#fff; font:700 13.5px/1 'Inter',sans-serif; text-decoration:none; white-space:nowrap; border-start-start-radius:999px; border-end-start-radius:999px;}
header .app-main:hover{color:#fff; background:rgb(255 255 255 / .12);}
header .app-main svg{width:18px; height:18px; flex:none;}
html[lang="ar"] header .app-main,html[lang="ja"] header .app-main{font-family:inherit;}
.app-more{width:34px; display:grid; place-items:center; border:0; border-inline-start:1px solid rgb(255 255 255 / .35); background:rgb(0 0 0 / .12); color:#fff; cursor:pointer; border-start-end-radius:999px; border-end-end-radius:999px; padding:0;}
.app-more:hover{background:rgb(0 0 0 / .2);}
.app-more svg{width:15px; height:15px; transition:transform .15s;}
.app-more[aria-expanded="true"] svg{transform:rotate(180deg);}
header .app-main:focus-visible,.app-more:focus-visible{outline:2px solid var(--navy); outline-offset:2px;}
.app-pop{position:absolute; inset-inline-end:0; top:calc(100% + 10px); width:260px; z-index:80; padding:14px; border-radius:16px; background:var(--white); border:1px solid var(--border-soft); box-shadow:0 16px 40px rgb(0 0 0 / .3); display:grid; gap:10px; text-align:start;}
.app-pop[hidden]{display:none;}
.app-pop b{font:700 14px 'Inter',sans-serif; color:var(--navy);}
html[lang="ar"] .app-pop b,html[lang="ja"] .app-pop b{font-family:inherit;}
.app-pop small{margin-top:-6px; font-size:12px; color:var(--navy-soft);}
.app-pop .store-btn{justify-content:flex-start;}
@media (max-width:720px){ header .nav > .app-split{display:none;} }
