/* Respawn Lounge — theme: tokens, type, header, buttons
   Look: RGB-lit night lounge. Indigo base, coral + cyan light, chamfered HUD corners. */

:root {
  --indigo: #140C2E;
  --indigo-2: #1B1140;
  --panel: #22164A;
  --coral: #FF4D7A;
  --cyan: #3BE0FF;
  --lilac: #EEEAFB;

  --bg: var(--indigo);
  --fg: var(--lilac);
  --muted: #A99FCB;
  --surface: var(--panel);
  --line: rgb(238 234 251 / .14);
  --accent: var(--coral);
  --accent-ink: #1E0611;
  --focus: var(--cyan);
  --field-bg: rgb(0 0 0 / .22);
  --actionbar-bg: rgb(20 12 46 / .96);

  --font-display: "Chakra Petch", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Rubik", "Noto Sans Devanagari", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 30px 70px -24px rgb(0 0 0 / .7);
  --header-h: 68px;
  --wrap: 1200px;
  --cut: 12px;
}

/* chamfered corner shape, used for HUD panels and buttons */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

body {
  background-color: var(--indigo);
  background-image:
    linear-gradient(rgb(238 234 251 / .028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(238 234 251 / .028) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; }
section { padding-block: clamp(72px, 10vw, 120px); position: relative; }

.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section-head--row > div { display: grid; gap: 12px; }
@media (max-width: 700px) { .section-head--row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(20 12 46 / .85); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 700; color: var(--coral); }
.brand__mark { width: 30px; height: 30px; color: var(--cyan); }

.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list a { position: relative; display: block; padding: 8px 14px; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .2s; }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--fg); }
.nav__list a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav__list { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; padding: 8px 20px 28px; background: var(--indigo); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list a { padding: 14px 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current]::after { display: none; }
  .nav__list a[aria-current] { color: var(--cyan); }
}
@media (max-width: 560px) { .hide-sm { display: none !important; } .brand { font-size: 1.1rem; } }

/* ----------------------------------------------------------- buttons */
.btn { --b-bg: transparent; --b-fg: var(--fg); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; background: none; color: var(--b-fg); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: transform .15s, color .2s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-bg); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .2s, filter .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn--accent { --b-bg: var(--coral); --b-fg: var(--accent-ink); }
.btn--accent:not(:disabled):hover::before { filter: brightness(1.1); box-shadow: 0 0 0 0; }
.btn--accent:not(:disabled):hover { filter: drop-shadow(0 0 14px rgb(255 77 122 / .55)); }
.btn--ghost { --b-bg: rgb(238 234 251 / .08); }
.btn--ghost:hover { --b-bg: rgb(238 234 251 / .15); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.site-header .lang-toggle { color: var(--fg); }
