:root{
  --bg:#2a1658;             /* base */
  --bg-rgb: 42, 22, 88;     /* RGB for rgba() */
  --panel:#1f1140;          /* panels slightly darker than bg */
  --panel2:#1a0e36;

  --text:#e9eef9;
  --muted:#c6c0e6;
  --subtle:#a99fd7;
  --line:rgba(233,238,249,.14);

  --accent:#8953e6;
  --accent2:#6f36d4;
  --accent3:#c07cff;

  --shadow: 0 20px 70px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
  --headerH:64px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Compact UI typography (dashboard density) */
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;  /* base */
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-36: 36px;

  --lh-body: 1.45;
  --lh-ui: 1.25;
  --lh-tight: 1.18;

  --ls-tight: -0.015em;
  --ls-ui: -0.005em;
}

*{box-sizing:border-box}

html{
  background: var(--bg);
  font-size: var(--fs-14);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;

  /* FIX: prevent left/right jump across pages */
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
}

body{
  margin:0;
  min-height:100%;
  font-family:var(--sans);
  background: var(--bg);
  background-image: none;
  background-color: var(--bg);
  color:var(--text);
  font-size: 1rem;                 /* 14px */
  line-height: var(--lh-body);
  letter-spacing: var(--ls-ui);
  padding-top:var(--headerH);      /* fixed header offset (single source of truth) */
}

a{color:inherit; text-decoration:none}
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding-left:max(20px, env(safe-area-inset-left));
  padding-right:max(20px, env(safe-area-inset-right));
}

/* Default reading behaviour: justify on wide screens, avoid awkward spacing on narrow devices */
main p, main li{ text-align: justify; text-justify: inter-word; }
main{ hyphens:auto; }

/* Topbar / navigation */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  backdrop-filter:saturate(160%) blur(10px);
  background: rgba(var(--bg-rgb), .85);
  border-bottom:1px solid var(--line);
}
.nav{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  height:var(--headerH);
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:780; letter-spacing:.2px;
}
.logo{
  width:34px; height:34px;
  border-radius:10px;
  display:block;
  object-fit:cover;
  flex:0 0 auto;
  box-shadow: 0 10px 30px rgba(168,85,247,.18);
}
.brand small{
  display:block; font-weight:620; color:var(--muted);
  letter-spacing:.2px; margin-top:1px;
}

.menu{
  display:flex; align-items:center; justify-content:center; justify-self:center;
  gap:6px;
  font-weight:650; color:var(--muted);
  font-size: 12px;
  line-height: 1.08;
}
.menu a, .menu button{
  padding:7px 6px;
  border:1px solid transparent;
  border-radius:12px;
}
.menu a:hover, .menu button:hover{background:rgba(233,238,249,.06); color:var(--text)}

.actions{display:flex; align-items:center; gap:10px}
.btn{
  border:1px solid var(--line);
  background:rgba(233,238,249,.04);
  color:var(--text);
  padding:9px 12px;
  border-radius:14px;
  font-weight:740;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  font-size: var(--fs-13);
  line-height: var(--lh-ui);
}
.btn:hover{background:rgba(233,238,249,.08)}
.btn.primary{
  border-color: rgba(168,85,247,.35);
  background: linear-gradient(135deg, rgba(168,85,247,.20), rgba(124,58,237,.12));
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(168,85,247,.26), rgba(124,58,237,.16));
}

/* Focus feedback */
.menu a:focus, .menu a:focus-visible,
.menu button:focus, .menu button:focus-visible,
.btn:focus, .btn:focus-visible{
  outline: 2px solid rgba(168,85,247,.55);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(168,85,247,.18);
}
.menu button:active, .btn:active{ transform: none; }

/* Dropdown */
.dropdown{position:relative}
.dropdown > button{
  font:inherit; color:inherit;
  border:0; background:transparent;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
}
.caret{opacity:.8; transform: translateY(1px)}
.dd{
  position:absolute; left:0; top:48px;
  min-width:340px;
  background:rgba(15,26,46,.92);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:10px;
  display:none;
}
.dropdown.open .dd{display:block}
.dd .group{padding:8px}
.dd .group + .group{border-top:1px solid var(--line)}
.dd .group-title{
  font-size: var(--fs-12);
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--subtle);
  margin:6px 6px 10px;
}
.dd a{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px; border-radius:14px;
  color:var(--text);
}
.dd a:hover{background:rgba(233,238,249,.06)}
.pill{
  font-size: var(--fs-12);
  color:var(--muted);
  border:1px solid var(--line);
  padding:4px 8px; border-radius:999px;
  white-space:nowrap;
  line-height: var(--lh-ui);
}
.dd .desc{ color:var(--muted); font-weight:540; font-size: var(--fs-12); }

/* Hero */
.hero{
  padding: 0 0 10px;
}

.hero > .wrap{
  max-width: 1240px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.card{
  background: linear-gradient(180deg, rgba(15,26,46,.85), rgba(12,22,39,.70));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card{
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 34px 36px;
}

.hero-card h1{
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  font-size: clamp(42px, 5.2vw, 86px);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 720;
}

.lead{
  color:var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin:0 0 18px;
  max-width:none;
  width:100%;
}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.note{ margin-top:14px; font-size: var(--fs-12); color:var(--subtle); }
.note strong{color:var(--text)}

/* Sections / grids */

/* Headings inside cards / panels */
h3{
  margin: 0 0 6px;
  font-size: var(--fs-15);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 720;
}
.kicker{
  font-size: var(--fs-12);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 0 0 6px;
}
.panel p{
  margin: 0 0 10px;
  color: var(--muted);
}
.panel p:last-child{ margin-bottom: 0; }

/* Prevent background scroll when mobile drawer is open */
body.drawer-open{ overflow:hidden; }

/* Safer media defaults */
img{ max-width:100%; height:auto; }

.section{padding:14px 0}
.section h2{
  margin:0 0 8px;
  font-size: clamp(18px, 1.0vw + 14px, var(--fs-22));
  letter-spacing:-.01em;
  line-height:1.22;
  font-weight:700;
}
.section p{ margin:0 0 10px; color:var(--muted); max-width:none; width:100%; }

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px}
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:10px}
.panel{padding:14px}

/* Tags / code blocks */
.tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size: var(--fs-12);
  color:var(--subtle);
  border:1px solid var(--line);
  padding:6px 10px; border-radius:999px;
  margin-bottom:10px;
  line-height: var(--lh-ui);
}
.tag .dot{width:8px; height:8px; border-radius:50%; background:var(--accent2)}

.mono{
  font-family:var(--mono);
  font-size: var(--fs-12);
  line-height:1.55;
  color:#dfe7fb;
  background: rgba(0,0,0,.18);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  overflow:auto;
  white-space:pre;
}

/* Lists */
.bullets{margin:0; padding-left:18px; color:var(--muted)}
.bullets li{margin:8px 0}

/* Pricing */
.pricing{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px}
.price{padding:22px}
.price h3{margin:0 0 6px; font-size: var(--fs-15)}
.amount{font-size: 28px; font-weight:840; letter-spacing:-.02em; margin:8px 0 10px}
.amount small{font-size: var(--fs-12); font-weight:720; color:var(--muted)}
.fine{margin-top:10px; color:var(--subtle); font-size: var(--fs-12)}

/* Forms */
.form{display:grid; gap:10px; margin-top:10px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(233,238,249,.05);
  color:var(--text);
  outline:none;
  font:inherit;
}
input:focus, textarea:focus{border-color: rgba(168,85,247,.55)}
textarea{min-height:120px; resize:vertical}

/* Footer */
/* Footer */
.footer{
  padding: 36px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: var(--fs-12);
}

.footer a{
  color: var(--muted);
  transition: color .18s ease, opacity .18s ease;
}

.footer a:hover{
  color: var(--text);
}

.foot-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.foot-grid > div:nth-child(1){
  justify-self: start;
  text-align: left;
}

.foot-grid > div:nth-child(2){
  justify-self: center;
  text-align: left;
}

.foot-grid > div:nth-child(3){
  justify-self: end;
  text-align: left;
}

.foot-col-title{
  font-weight: 780;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: .01em;
}

.legal{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}

.legal a{
  font-size: 13px;
  line-height: 1.7;
}

.foot-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  color: var(--text);
}

.foot-copy{
  margin-top: 0;
  max-width: 60ch;
  line-height: 1.75;
  font-size: 13px;
  color: var(--subtle);
}

.foot-bottom{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: var(--subtle);
  font-size: 12.5px;
}

/* Mobile drawer */
.mobile-toggle{display:inline-flex}

/* When the drawer is open we also blur/dim the page content (terms/privacy requested, safe globally). */
main, .footer{
  transition: filter 160ms ease;
}
body.drawer-open main,
body.drawer-open .footer{
  filter: blur(2px) brightness(0.78);
}

/* Ensure drawer UI remains crisp. */
body.drawer-open .mobile-drawer,
body.drawer-open .mobile-panel{ filter:none !important; }

/* The drawer itself provides the scrim (covers the viewport). We animate opacity for a smoother feel. */
.mobile-drawer{
  display:block;
  position:fixed; inset:0;
  opacity:0;
  pointer-events:none;
  /* Scrim (dim only). Keep it crisp: we already blur main/footer via filter. */
  background:rgba(8,12,24,.55);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  transition: opacity 160ms ease;
  z-index:49; /* stays under the fixed topbar (z-index:50) */
}
.mobile-drawer.open{
  opacity:1;
  pointer-events:auto;
}

/* Click-to-close scrim layer. */
.drawer-scrim{
  position:absolute;
  inset:0;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}

/* Drawer panel */
.mobile-panel{
  position:relative;
  max-width:var(--max);
  margin: calc(var(--headerH) + 8px) auto 0;
  padding:16px 20px 24px;
  border-radius: calc(var(--radius) + 2px);
  /* Darker purple frame for legibility on blurred pages (terms/privacy). */
  background: linear-gradient(180deg, rgba(31,17,64,.96), rgba(26,14,54,.94));
  border:1px solid rgba(233,238,249,.14);
  box-shadow: 0 22px 80px rgba(0,0,0,.48);
  transform: translateY(-6px);
  opacity:0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.mobile-drawer.open .mobile-panel{
  transform: translateY(0);
  opacity:1;
}
.mobile-panel a{
  display:block;
  padding:14px 12px;
  border:1px solid var(--line);
  background:rgba(233,238,249,.06);
  border-radius:14px;
  margin-bottom:10px;
  color:var(--text);
}
.mobile-panel a:hover{background:rgba(233,238,249,.07)}
.mobile-panel .sep{
  margin:14px 0;
  color:var(--subtle);
  font-size: var(--fs-12);
  letter-spacing:.25em;
  text-transform:uppercase;
}
.badge{
  display:inline-flex;
  margin-left:10px;
  font-size: var(--fs-11);
  color:var(--muted);
  border:1px solid var(--line);
  padding:3px 8px;
  border-radius:999px;
}
.active-link{color:var(--text) !important; background:rgba(233,238,249,.06); border-color: rgba(168,85,247,.35);}

/* Hamburger */
.hamburger{
  width:44px; height:44px;
  display:inline-flex; align-items:center; justify-content:center;
  gap:4px; flex-direction:column;
  padding:0;
}
.hamburger__bar{
  width:18px; height:2px;
  background:rgba(233,238,249,.92);
  border-radius:999px;
  display:block;
}

/* Scrolling offsets for fixed header */
html{scroll-behavior:smooth; scroll-padding-top:calc(var(--headerH) + 20px);}
section[id]{scroll-margin-top:calc(var(--headerH) + 20px);}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}

/* ---- Billing ---- */
.billing-hero{ padding:18px 0 30px; }
.billing-shell{ padding:26px; }
.billing-head{ margin-bottom:16px; }
.billing-title{
  margin:0 0 10px;
  font-size: clamp(26px, 2.0vw + 10px, 34px);
  line-height:1.12;
  letter-spacing: var(--ls-tight);
}
.billing-lead{ margin-bottom:14px; }

.stepper{
  list-style:none;
  display:flex;
  gap:10px;
  padding:0;
  margin:10px 0 0;
  flex-wrap:wrap;
}
.step{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(233,238,249,.06);
  color:var(--muted);
  font-size: var(--fs-12);
}
.step .num{
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:820;
  font-size: var(--fs-12);
  border:1px solid var(--line);
  background:rgba(233,238,249,.06);
  color:var(--text);
}
.step.done{ color:var(--text); border-color: rgba(168,85,247,.35); }
.step.done .num{ background: rgba(168,85,247,.18); border-color: rgba(168,85,247,.35); }
.step.current{ color:var(--text); border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 4px rgba(168,85,247,.10); }
.step.current .num{ background: rgba(168,85,247,.26); border-color: rgba(168,85,247,.55); }

.billing-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin-top:14px;
}
.billing-plan{ padding:18px; }
.billing-trust{ padding:18px; }

.billing-bullets{ margin-top:10px; }

.billing-h2{ margin:0 0 8px; font-size: var(--fs-15); letter-spacing:-.01em; }
.billing-h3{ margin:14px 0 8px; font-size: var(--fs-13); letter-spacing:-.01em; }
.billing-muted{ margin:0 0 12px; color:var(--muted); }

.trust-list{ margin:0; padding-left:18px; color:var(--muted); }
.trust-list li{ margin:10px 0; }

.billing-cta{ display:grid; gap:10px; }
.billing-primary{ width:100%; justify-content:center; padding:12px 16px; border-radius:14px; }
.billing-sub{ font-size: var(--fs-12); color:var(--subtle); }
.billing-alert{
  border:1px solid rgba(255,120,120,.35);
  background: rgba(255,120,120,.08);
  padding:10px 12px;
  border-radius:14px;
  color: var(--text);
}

.billing-faq details{
  border:1px solid var(--line);
  background:rgba(233,238,249,.06);
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
}
.billing-faq summary{ cursor:pointer; font-weight:740; color:var(--text); }
.billing-faq p{ margin:8px 0 0; color:var(--muted); }

.billing-menu{ justify-content:center; gap:8px; }
.billing-menu a{ padding:10px 10px; border-radius:12px; }

/* Responsive: tablets + all mobile classes */
@media (max-width: 980px){
  .grid2{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .menu{display:none}
  .mobile-toggle{display:inline-flex}
  .billing-grid{ grid-template-columns: 1fr; }
  main p, main li{ text-align:left; }
}

@media (max-width: 600px){
  :root{ --headerH:60px; }
  .hero-card{ padding:20px; }
  .wrap{
    padding-left:max(16px, env(safe-area-inset-left));
    padding-right:max(16px, env(safe-area-inset-right));
  }
  .btn{ padding:10px 12px; }
  .hero-cta{ gap:8px; }
  .foot-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .legal{
    align-items: flex-start;
    justify-content: flex-start;
  }
  .foot-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar .dd{ min-width: min(92vw, 340px); }
}

@media (max-width: 420px){
  .brand{ gap:10px; }
  .logo{ width:32px; height:32px; }
  .mobile-panel{ padding:14px 16px 22px; }
  .mobile-panel a{ padding:13px 12px; }
  .billing-shell{ padding:20px; }
}

@media (max-width: 360px){
  .btn{ padding:9px 10px; }
  .mobile-panel a{ padding:12px 11px; }
}
/* ---- Auth pages (sign-in / sign-up) ---- */
.auth-intro{ text-align:center; }
.auth-intro h1{ text-align:center; }
.auth-intro p{ text-align:center !important; text-justify:auto; }
.auth-intro .lead{
  text-align:center !important;
  text-justify:auto;
  hyphens:none;
  max-width:86ch;
  margin-left:auto;
  margin-right:auto;
}

.cookie-banner{
  position:fixed;
  left:max(16px, env(safe-area-inset-left));
  right:max(16px, env(safe-area-inset-right));
  bottom:max(16px, env(safe-area-inset-bottom));
  z-index:9999;
}
.cookie-banner[hidden]{ display:none !important; }

.cookie-inner{
  max-width:var(--max);
  margin:0 auto;
  background:rgba(31,17,64,.92);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:14px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.cookie-text{
  color:var(--muted);
  font-size: var(--fs-13);
  line-height:1.35;
}
.cookie-text a{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}
.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.btn.btn-ghost{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}
@media (max-width: 720px){
  .cookie-inner{ flex-direction:column; align-items:stretch; }
  .cookie-actions{ justify-content:stretch; }
  .cookie-actions .btn{ width:100%; }
}


:root{
  --topbarActionsW: 98px;
  --menuGap: 2px;
  --menuPadX: 3px;
  --menuFont: 11.5px;
  --menuItemPadY: 6px;
  --menuItemPadX: 7px;
}

.topbar .nav{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) var(--topbarActionsW);
  align-items: center;
}

.topbar .actions{
  width: var(--topbarActionsW);
  justify-content: flex-end;
  align-items: center;
}

/* Single-row menu (no wrap). If it doesn't fit, it scrolls horizontally. */
.topbar .menu{
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: var(--menuGap);
  padding: 0 var(--menuPadX);

  white-space: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  scroll-padding-left: 6px;
  scroll-padding-right: 6px;
}
.topbar .menu::-webkit-scrollbar{ display:none; }

.topbar .menu a,
.topbar .menu button{
  white-space: nowrap;
  font-size: var(--menuFont);
  padding: var(--menuItemPadY) var(--menuItemPadX);
  margin: 0;              /* σημαντικό αν κάποιο theme βάζει margin */
  line-height: 1.1;       /* λίγο πιο “σφιχτό” χωρίς να χαλάει */
}

.topbar .hamburger{ flex: 0 0 44px; }

.topbar #tychefy-clerk-user.user-slot{
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar #tychefy-clerk-user.user-slot [class*="cl-userButtonTrigger"],
.topbar #tychefy-clerk-user.user-slot [class*="cl-avatarBox"]{
  width: 44px !important;
  height: 44px !important;
}

/* =========================
   INDEX TOPBAR OVERRIDES (minimal, index-only)
   Fixes:
   1) Games dropdown opens (was blocked by pointer-events:none)
   2) Menu centered on desktop (true center)
   3) “Sign in” does not wrap (index actions width must be auto)
   Scope: only when brand href="#home" (landing index.html)
   ========================= */

@media (min-width: 981px){
  /* Index (landing) only: keep dropdowns visible and the nav truly centred. */
  .topbar{ overflow: visible; }
  .topbar .nav{ overflow: visible; }

  /* True-centre layout for the landing page (brand uses href="#home"). */
  .topbar .nav:has(> a.brand[href="#home"]){
    grid-template-columns: 1fr auto 1fr;
  }

  .topbar .nav:has(> a.brand[href="#home"]) > a.brand[href="#home"]{
    justify-self: start;
    position: relative;
    z-index: 2;
  }

  .topbar .nav:has(> a.brand[href="#home"]) > nav.menu{
    justify-self: center;
    position: relative;
    z-index: 2;

    /* Do not clip the dropdown panel. */
    overflow-y: visible;

    /* Keep a single row; if the viewport tightens, allow horizontal scroll. */
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    /* Prevent the right actions from overlapping the last item. */
    max-width: min(980px, calc(100vw - 360px));
    padding: 0 6px;
  }
  .topbar .nav:has(> a.brand[href="#home"]) > nav.menu::-webkit-scrollbar{ display:none; }

  /* Actions on landing must remain “natural width” (hamburger + Sign in). */
  .topbar .nav:has(> a.brand[href="#home"]) > .actions{
    justify-self: end;
    width: auto !important;
    flex-wrap: nowrap;
    min-width: 0;
    position: relative;
    z-index: 2;
  }
  .topbar .nav:has(> a.brand[href="#home"]) > .actions .btn{
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
  }

  /* Games dropdown: keep on top (opening handled globally below). */
  .topbar .nav:has(> a.brand[href="#home"]) > nav.menu .dropdown{ position: relative; }
  .topbar .nav:has(> a.brand[href="#home"]) > nav.menu .dd{ z-index: 9999; }
}

/* Topbar dropdown (Games): open without JS at any viewport width. */
.topbar .menu .dropdown:hover .dd,
.topbar .menu .dropdown:focus-within .dd,
.topbar .menu .dropdown.open .dd,
.topbar .menu .dropdown > button[aria-expanded="true"] + .dd{
  display: block;
}

/* Ensure the dropdown panel is not clipped by header containers. */
.topbar, .topbar .wrap, .topbar .nav{ overflow: visible; }

/* ============================================================
   FIX: Topbar "Games" dropdown must be visible at all widths.
   Root cause: .topbar .menu uses overflow-y:hidden (needed for
   horizontal scroll), which clips absolutely-positioned panels.
   Solution: render the dropdown panel with position:fixed so it
   escapes the menu's overflow clipping. This affects only the
   topbar navigation dropdown.
   ============================================================ */
.topbar .menu .dd{
  position: fixed;
  /* sits just under the fixed topbar */
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 360px);
  /* keep existing styling; only geometry changes */
}

/* ============================================================
   PAGE DROPDOWNS ONLY
   Applies only to content-area native selects inside pages.
   Does NOT touch the topbar Games dropdown.
   Keeps page-level caret styling intact.
   ============================================================ */
main select{
  background-color: #3a1d70 !important;
  color: #ffffff !important;
  border-color: rgba(192,124,255,.30) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(76,29,149,.18) !important;
}

main select:focus,
main select:focus-visible{
  border-color: rgba(159,122,234,.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 4px rgba(124,58,237,.16) !important;
}

main select option,
main select optgroup{
  background-color: #2a1454 !important;
  color: #ffffff !important;
}

main select option:checked,
main select option:focus{
  background-color: #7c3aed !important;
  color: #ffffff !important;
}
