﻿/* ═══════════════════════════════════════════════════════════
   외대.서버.한국 — Unified Design System v4
   "Subterranean Digital" — Deep Navy · Gold Vein · Ultra-Type
   Unified stylesheet for the public site
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "HUFS";
  src: url("../fonts/hufs-l.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "HUFS";
  src: url("../fonts/hufs-m.otf") format("opentype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "HUFS";
  src: url("../fonts/hufs-b.otf") format("opentype");
  font-weight: 700 900;
  font-display: swap;
}

/* ── 0. CSS Variables ── */
:root {
  /* Brand */
  --navy:   #002D56;
  --navy-deep: #01193a;
  --navy-dark: #000d1f;
  --green:  #146E7A;
  --gold:   #8D7150;
  --gold-lt: #b09070;
  --silver: #9D9FA2;
  --gray:   #DADAD3;

  /* Semantic */
  --bg:         var(--gray);
  --surface:    #fff;
  --surface-2:  #f5f5f3;
  --text:       var(--navy);
  --text-dim:   #55607a;
  --muted:      var(--silver);
  --accent:     var(--gold);
  --vv-bottom:  0px;

  /* Legacy aliases still referenced by page markup */
  --hufs-green: var(--green);
  --hufs-gray: var(--gray);
  --hufs-navy: var(--navy);
  --hufs-gold: var(--gold);
  --hufs-gold-soft: rgba(141,113,80,.10);
  --hufs-green-soft: rgba(20,110,122,.10);
  --color-brand-primary: var(--green);
  --color-brand-ink: var(--navy);
  --color-brand-accent: var(--gold);
  --color-brand-muted: var(--silver);
  --color-brand-surface: var(--gray);
  --color-text-primary: #102033;
  --color-text-secondary: #52606D;
  --color-surface-base: #FFFFFF;
  --color-surface-subtle: #F7F8F6;
  --color-border-subtle: var(--gray);
  --color-focus-ring: var(--green);
  --silver-mid: var(--silver);
  --panel-hi: var(--surface-2);
  --bdr: var(--border);
  --ink: var(--navy);
  --ink-dim: var(--text-dim);
  --border-strong: rgba(0,45,86,.22);
  --accent-10: var(--gold);

  /* Alpha */
  --navy-08: rgba(0,45,86,.08);
  --navy-12: rgba(0,45,86,.12);
  --navy-20: rgba(0,45,86,.20);
  --gold-10: rgba(141,113,80,.10);
  --gold-25: rgba(141,113,80,.25);
  --gold-45: rgba(141,113,80,.45);
  --gold-glow: 0 0 40px rgba(141,113,80,.25);
  --border:  rgba(157,159,162,.30);
  --border-gold: rgba(141,113,80,.35);

  /* Status */
  --success: var(--green);
  --danger:  #ef4444;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(0,45,86,.06), 0 1px 2px rgba(0,45,86,.04);
  --sh-md: 0 4px 16px rgba(0,45,86,.08), 0 2px 6px rgba(0,45,86,.06);
  --sh-lg: 0 12px 40px rgba(0,45,86,.12), 0 4px 12px rgba(0,45,86,.08);
  --sh-gold: 0 0 0 1px rgba(141,113,80,.30), 0 8px 32px rgba(141,113,80,.18);
  --sh-glow: 0 0 0 1.5px rgba(141,113,80,.45), 0 0 32px rgba(141,113,80,.22), 0 16px 48px rgba(0,45,86,.16);

  /* Easing */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* Nav */
  --nav-h: 60px;
  --top-bar: 3px;
  --notice-h: 0px;
  --mobile-nav-h: 56px;
  --mobile-nav-gap: 12px;
  --header-offset: calc(var(--top-bar) + 10px + var(--nav-h));

  /* Typography */
  --font-ui: "Pretendard Variable", "Noto Sans KR", "HUFS", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Noto Sans KR", "HUFS", "Pretendard Variable", sans-serif;

  /* Type Scale */
  --text-xs:   .625rem;
  --text-sm:   .75rem;
  --text-base: .875rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-hero: clamp(3rem,8vw,5.5rem);
  --text-display: clamp(2.5rem,6vw,4.25rem);
}

/* ── 1. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-weight: 600;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255,250,242,.88), rgba(241,235,223,.94)),
    url('../img/bg-paper.webp');
  background-position: center top, center top;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 900px auto;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(20,110,122,.38); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.brand-lockup,
.logo-safe-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.brand-lockup {
  min-height: 48px;
  padding: 12px;
  border-radius: 10px;
}
.brand-lockup img {
  display: block;
  height: 48px;
  width: auto;
}
.brand-lockup--desktop img { min-width: 122px; }
.brand-lockup--compact img { height: 48px; min-width: 48px; }
.logo-safe-card {
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 28px rgba(0,45,86,.08);
}
.motif-bg {
  position: relative;
  overflow: hidden;
}
.motif-bg::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 180px;
  height: 180px;
  background: var(--green);
  opacity: .06;
  -webkit-mask: url("../brand/hufs-motif-o.svg") center / contain no-repeat;
  mask: url("../brand/hufs-motif-o.svg") center / contain no-repeat;
  pointer-events: none;
}
/* ── 2. Top stripe ── */
body::before {
  content: '';
  display: block;
  height: var(--top-bar);
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 35%, var(--gold) 50%, var(--navy) 65%, var(--navy) 100%);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
}

.global-notice-host[hidden] {
  display: none !important;
}

.global-notice-host {
  position: fixed;
  top: calc(var(--top-bar) + 10px);
  left: 0;
  right: 0;
  z-index: 330;
  padding: 0 clamp(1rem, 4vw, 2rem);
  pointer-events: none;
}

.global-notice-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.global-notice-bar {
  pointer-events: auto;
  width: min(100%, 36rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-height: 46px;
  padding: .72rem .9rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(141,113,80,.26);
  background:
    linear-gradient(180deg, rgba(9,24,44,.9), rgba(6,16,31,.86));
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.global-notice-bar:hover {
  transform: translateY(-2px);
  border-color: rgba(176,144,112,.44);
  box-shadow: 0 22px 48px rgba(0,0,0,.22), 0 0 0 1px rgba(141,113,80,.18);
}

.global-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(141,113,80,.24);
  background: rgba(255,255,255,.05);
  color: rgba(201,168,122,.95);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-notice-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.88);
  font-size: .84rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.global-notice-arrow {
  color: rgba(255,255,255,.56);
}

.cnav-notice-slot { display: none !important; }

.cnav-notice-pill {
  pointer-events: auto;
  max-width: min(100%, 34rem);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  height: 46px;
  padding: 0 .92rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(141,113,80,.24);
  background: linear-gradient(180deg, rgba(9,24,44,.88), rgba(6,16,31,.82));
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  overflow: hidden;
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.cnav-notice-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(176,144,112,.42);
  box-shadow: 0 18px 36px rgba(0,0,0,.18), 0 0 0 1px rgba(141,113,80,.12);
}

.cnav-notice-pill-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .58rem;
  border-radius: 999px;
  border: 1px solid rgba(141,113,80,.24);
  background: rgba(255,255,255,.05);
  color: rgba(201,168,122,.95);
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cnav-notice-pill-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.88);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
}


/* ── 3. Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-45); }
* { scrollbar-width: thin; scrollbar-color: var(--gold-25) transparent; }

/* ── 4. Material Symbols ── */
.msym {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  font-style: normal; line-height: 1; display: inline-block; vertical-align: middle;
}
.msym-xs  { font-size: .75rem; }
.msym-sm  { font-size: .9rem; }
.msym-md  { font-size: 1.1rem; }
.msym-lg  { font-size: 1.35rem; }
.msym-xl  { font-size: 1.65rem; }
.msym-2xl { font-size: 2.25rem; }

/* ── 5. Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--navy); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 700; font-size: .84rem; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */

/* Fixed top nav */
.cnav-shell {
  position: fixed;
  top: calc(var(--top-bar) + 10px);
  left: 0;
  right: 0;
  z-index: 300;
  pointer-events: none;
}
.cnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-h);
  gap: 1rem;
}
.cnav-logo-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.25rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid rgba(157,159,162,.22);
  border-radius: var(--r-full);
  box-shadow: 0 2px 20px rgba(0,45,86,.10);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .96rem;
  color: var(--navy);
  letter-spacing: -.03em;
  transition: box-shadow .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.cnav-logo-pill:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  box-shadow: 0 4px 24px rgba(0,45,86,.14), var(--sh-gold);
  transform: translateY(-1px);
}
.nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold-10);
}
.cnav-links-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 .45rem;
  background: rgba(0,20,50,.92);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-full);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  gap: .1rem;
  margin-left: auto;
}
.cnav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: rgba(218,218,211,.80);
  padding: .42rem .85rem;
  border-radius: 99px;
  letter-spacing: -.02em;
  position: relative;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.cnav-link:hover { color: #fff; background: rgba(255,255,255,.10); }
.cnav-link.active {
  color: var(--gold-lt);
  background: rgba(141,113,80,.15);
  font-weight: 800;
}
.cnav-link::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .2s var(--ease);
}
.cnav-link:hover::after, .cnav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* Mobile bottom tab bar */
#mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translate3d(-50%, 0, 0);
  width: min(calc(100vw - 16px), 420px);
  height: var(--mobile-nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(2) blur(28px);
  -webkit-backdrop-filter: saturate(2) blur(28px);
  border: 1px solid rgba(0,45,86,.08);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0,45,86,.14);
  align-items: stretch;
  justify-content: space-around;
  z-index: 350;
  padding: 0;
  will-change: transform, bottom;
}

body > #mobile-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  transform: translate3d(-50%, 0, 0) !important;
}
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color .18s;
  padding: .3rem 0;
  position: relative;
}
.mbn-item::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
  transition: transform .22s var(--ease-out);
}
.mbn-item.active { color: var(--navy); }
.mbn-item.active::before { transform: translateX(-50%) scaleX(1); }
.mbn-icon {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  font-style: normal; line-height: 1;
  font-size: 1.3rem;
  transition: font-variation-settings .18s;
}
.mbn-item.active .mbn-icon {
  font-variation-settings: 'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;
  color: var(--gold);
}
.mbn-label { line-height: 1.05; }

/* ── cnav scrolled state ── */
.cnav-shell.scrolled .cnav-logo-pill { box-shadow: 0 4px 28px rgba(0,45,86,.14); }

@media (min-width: 769px) {
  .cnav-shell {
    top: calc(var(--top-bar) + 10px + var(--notice-h));
  }
}

/* ═══════════════════════════════════════════════════════════
   GRAINIENT / HERO BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.grainient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #06091a;
}
.grainient-bg::before {
  content: '';
  position: absolute;
  inset: -2%;
  background:
    linear-gradient(180deg, rgba(2,8,18,.22) 0%, rgba(3,10,21,.56) 55%, rgba(2,8,18,.88) 100%),
    radial-gradient(circle at 22% 28%, rgba(255,237,207,.18) 0%, transparent 24%),
    url('../img/hero-index-bg.webp') center / cover no-repeat;
  filter: saturate(.84) brightness(.58) contrast(1.08);
  transform: scale(1.04);
}
.grainient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(141,113,80,.22), transparent 28%),
    linear-gradient(120deg, rgba(1,7,15,.08), rgba(1,7,15,.38));
  opacity: 1;
}

.hero-flow-wrap {
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: .66;
}

.hero-flow {
  position: absolute;
  inset: 0;
  background: url('../img/hero-index-overlay.webp') center / cover no-repeat;
  filter: blur(6px) saturate(1.04) brightness(.92);
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-flow--one {
  opacity: .5;
  animation: hero-flow-a 18s linear infinite;
}

.hero-flow--two {
  opacity: .34;
  animation: hero-flow-b 24s ease-in-out infinite;
}

@keyframes hero-flow-a {
  0% { transform: translate3d(-2%, 2%, 0) scale(1.02) rotate(0deg); }
  50% { transform: translate3d(2%, -1.5%, 0) scale(1.08) rotate(2deg); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02) rotate(0deg); }
}

@keyframes hero-flow-b {
  0% { transform: translate3d(1%, -2%, 0) scale(1.08) rotate(-2deg); }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.02) rotate(1deg); }
  100% { transform: translate3d(1%, -2%, 0) scale(1.08) rotate(-2deg); }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (non-index)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-offset) + var(--notice-h) + 1.1rem) clamp(1rem,4vw,2rem) clamp(2.35rem,5vw,3.25rem);
  position: relative; z-index: 2;
}
.page-hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display);
  color: #fff;
  letter-spacing: -.06em;
  line-height: 1;
  margin-bottom: .75rem;
}
.page-hero-sub {
  color: rgba(218,218,211,.65);
  font-size: .9rem;
  max-width: 520px;
  line-height: 1.75;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: .42rem;
}
.page-hero-sub::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(15rem, 48%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,182,126,.92), rgba(214,182,126,.34) 72%, transparent);
  box-shadow: 0 0 18px rgba(214,182,126,.24);
}

/* ═══════════════════════════════════════════════════════════
   INDEX HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(680px, 88svh, 860px);
  display: flex;
  flex-direction: column;
}
.hero-shell {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-offset) + var(--notice-h) + 1rem) clamp(1rem,4vw,2rem) clamp(2.2rem,4vw,3.4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,4rem);
  align-items: center;
  width: 100%;
  flex: 1;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(218,218,211,.85);
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--r-full);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.server-addr {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.8vw, 4.95rem);
  color: #fff;
  line-height: .96;
  letter-spacing: -.075em;
  display: block;
  user-select: none;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  word-break: keep-all;
  transition: color .25s var(--ease), transform .25s var(--ease), text-shadow .25s var(--ease);
}
.copy-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .18rem;
  position: relative;
  cursor: pointer;
  margin-bottom: .75rem;
  -webkit-tap-highlight-color: transparent;
}
.copy-wrap:focus-visible {
  outline: none;
}
.copy-wrap:focus-visible .copy-surface::before {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(176,144,112,.52);
}
.copy-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 800;
  color: rgba(218,218,211,.45);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .55rem;
  pointer-events: none;
  transition: color .25s;
}
.copy-surface {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.4rem;
  padding-top: .15rem;
  padding-right: 4.8rem;
}
.copy-surface::before {
  content: '';
  position: absolute;
  inset: .45rem -1rem .3rem -.95rem;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 55%);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.copy-wrap:hover .copy-hint,
.copy-wrap.is-pop .copy-hint,
.copy-wrap.is-copied .copy-hint,
.copy-wrap.is-waving .copy-hint,
.copy-wrap.is-hiding .copy-hint { color: var(--gold-lt); }
.copy-wrap:hover .copy-surface::before,
.copy-wrap.is-pop .copy-surface::before,
.copy-wrap.is-copied .copy-surface::before {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(176,144,112,.32);
  box-shadow: 0 22px 42px rgba(0,0,0,.22), 0 0 0 1px rgba(141,113,80,.15);
}
.copy-wrap:hover .server-addr,
.copy-wrap.is-pop .server-addr,
.copy-wrap.is-copied .server-addr,
.copy-wrap.is-waving .server-addr,
.copy-wrap.is-hiding .server-addr {
  color: var(--gold-lt);
  transform: scale(1.01);
  text-shadow: 0 8px 36px rgba(141,113,80,.28);
}
.copy-icon-shell {
  position: absolute;
  right: 0;
  bottom: .9rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,14,36,.48);
  color: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.copy-wrap:hover .copy-icon-shell,
.copy-wrap.is-copied .copy-icon-shell {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(176,144,112,.44);
  background: rgba(7,20,46,.68);
  color: var(--gold-lt);
  box-shadow: 0 0 0 1px rgba(141,113,80,.18), 0 14px 30px rgba(0,0,0,.24);
}
.copy-icon {
  position: absolute;
  font-size: 1.15rem !important;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.copy-icon-success {
  opacity: 0;
  transform: scale(.65);
}
.copy-wrap.is-copied .copy-icon-default {
  opacity: 0;
  transform: scale(.7);
}
.copy-wrap.is-copied .copy-icon-success {
  opacity: 1;
  transform: scale(1);
}
.copy-feedback {
  position: absolute;
  right: -.45rem;
  bottom: -2.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .48rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(176,144,112,.52);
  background: rgba(5,16,36,.96);
  color: #f6e4c6;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 18px 30px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.copy-feedback::before {
  content: '';
  position: absolute;
  right: 1.3rem;
  top: -6px;
  width: 12px;
  height: 12px;
  background: rgba(5,16,36,.96);
  border-left: 1px solid rgba(176,144,112,.52);
  border-top: 1px solid rgba(176,144,112,.52);
  transform: rotate(45deg);
}
.copy-wrap.is-copied .copy-feedback {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.copy-mascot {
  position: absolute;
  left: clamp(.85rem, 14%, 2.65rem);
  bottom: calc(100% - .95rem);
  z-index: 3;
  width: 122px;
  opacity: 0;
  display: grid;
  pointer-events: none;
  transform: translate3d(0, 22px, 0) scale(.84);
  transform-origin: center bottom;
  transition: transform .34s var(--ease-out), opacity .24s var(--ease-out), filter .24s var(--ease-out);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.22));
}
.copy-mascot img,
.copy-mascot-frame {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .18s var(--ease), transform .3s var(--ease-out);
}
.copy-wrap.is-peeking .copy-mascot,
.copy-wrap.is-pop .copy-mascot,
.copy-wrap.is-waving .copy-mascot,
.copy-wrap.is-hiding .copy-mascot {
  opacity: 1;
}
.copy-wrap.is-peeking .copy-mascot-idle {
  opacity: 1;
  transform: translateY(0) scale(.98);
}
.copy-wrap.is-pop .copy-mascot-pop {
  opacity: 1;
  transform: translateY(-2px) scale(1);
}
.copy-wrap.is-waving .copy-mascot-wave {
  opacity: 1;
  transform: translateY(-4px) scale(1.02);
}
.copy-wrap.is-hiding .copy-mascot-hide {
  opacity: 1;
  transform: translateY(10px) scale(.92);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}
.hero-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
  padding: .5rem 1rem .5rem .7rem;
  transition: border-color .2s, transform .2s;
}
.status-pill:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.spl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .88rem;
  color: #fff;
  letter-spacing: -.02em;
}
.ver-pill-hero {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: .5rem .9rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
}
.ver-pill-hero .vl { color: rgba(255,255,255,.45); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.dc-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 10px;
  padding: .65rem 1.15rem;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  color: #a5b4fc;
  width: fit-content;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.dc-link:hover {
  background: rgba(88,101,242,.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(88,101,242,.2);
}
#discord-chip { display: none; }

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  color: rgba(255,255,255,.62);
  transform: translateX(-50%);
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.hero-scroll-hint:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}
.hero-scroll-label {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-scroll-hint .msym {
  font-size: 1.1rem;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .3s var(--ease), box-shadow .3s;
  aspect-ratio: 16/10;
}
.hero-visual:hover { transform: translateY(-4px); box-shadow: var(--sh-glow); }
.hero-visual-inner { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; transition: opacity 1.4s cubic-bezier(.4,0,.2,1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dots {
  position: absolute; bottom: 1rem; right: 1rem;
  display: flex; gap: 5px; z-index: 10;
}
.hdot {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.7); cursor: pointer;
  transition: width .25s, background .25s;
}
.hdot.active { width: 20px; background: var(--gold); }

/* Notice row */
/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */
.sec-hd {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sec-hd-bar {
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(141,113,80,.4) 100%);
  border-radius: 3px; flex-shrink: 0;
}
.sec-hd-label {
  font-family: var(--font-display);
  font-weight: 900; font-size: .82rem;
  color: var(--navy); letter-spacing: -.02em;
}
.sec-hd-meta { font-size: .72rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

.quick-menu-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(141,113,80,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,249,241,.68)),
    radial-gradient(circle at top right, rgba(141,113,80,.14), transparent 34%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 20px 44px rgba(0,45,86,.08);
}

.quick-menu-stage::before,
.quick-menu-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.quick-menu-stage::before {
  background:
    linear-gradient(180deg, rgba(255,248,240,.78), rgba(247,241,231,.5) 28%, rgba(245,239,228,.84) 100%),
    url('../img/city-origin.webp') center 24% / cover no-repeat;
  opacity: .82;
  mix-blend-mode: multiply;
}

.quick-menu-stage::after {
  inset: auto 0 0 0;
  height: 44%;
  background:
    linear-gradient(180deg, rgba(245,239,228,0), rgba(245,239,228,.88) 56%, rgba(245,239,228,.98) 100%);
}

.quick-menu-stage .sec-hd,
.quick-menu-stage .chroma-grid {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   CHROMA GRID (Quick Menu)
   ═══════════════════════════════════════════════════════════ */
.chroma-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
}
.chroma-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .28s, transform .22s var(--ease), box-shadow .25s;
  background:
    linear-gradient(160deg, rgba(4,14,33,.96), rgba(11,26,51,.9));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 16px 28px rgba(3,9,18,.22);
}
.chroma-card::after {
  content: '';
  position: absolute; inset: -8%; z-index: 0;
  background-image: var(--card-bg-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(.92) saturate(1.04);
  opacity: .96;
  transform: scale(1.12);
  transition: filter .3s, opacity .3s, transform .3s;
}
.chroma-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.08) 16%, rgba(8,18,38,.16) 36%, rgba(3,9,18,.74) 100%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.22), transparent 28%);
  transition: background .28s;
}
.chroma-card:hover {
  border-color: var(--card-border, rgba(141,113,80,.6));
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 18px 42px rgba(0,0,0,.34), var(--sh-gold);
}
.chroma-card:hover::after { filter: blur(8px) brightness(1.02) saturate(1.08); transform: scale(1.08); }
.chroma-card:hover::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 16%, rgba(8,18,38,.14) 38%, rgba(3,9,18,.62) 100%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.22), transparent 28%);
}
.chroma-card-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: 1rem;
  height: 100%; gap: .75rem;
}
.chroma-card-inner::before {
  content: '';
  position: absolute;
  inset: .45rem;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), transparent 22%, transparent 76%, rgba(201,168,122,.14)),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.2), transparent 38%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -22px 30px rgba(2,10,22,.12);
  opacity: .92;
  pointer-events: none;
}
.chroma-card-inner > * {
  position: relative;
  z-index: 2;
}
.chroma-card-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-image: var(--card-bg-image, none);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
}
.chroma-card-shot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chroma-card-shot::before {
  content: '';
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image: var(--card-bg-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(1.26) saturate(1.02);
  opacity: .44;
  transform: scale(1.08);
}
.chroma-card-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.12) 24%, rgba(255,255,255,0) 56%, rgba(0,0,0,.12) 100%);
}
.chroma-card-copy {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  min-width: 0;
}
.chroma-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chroma-card-copy > div:last-child {
  min-width: 0;
}
.chroma-card-title {
  font-family: var(--font-ui); font-weight: 800; font-size: .88rem; color: #fff; margin: 0;
  letter-spacing: -.025em;
  text-shadow: 0 1px 8px rgba(0,0,0,.8), 0 2px 20px rgba(0,0,0,.5);
}
.chroma-card-sub {
  color: rgba(255,255,255,.86); font-size: .72rem; margin: .15rem 0 0; line-height: 1.5;
  font-family: var(--font-ui);
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}
.chroma-card-arr {
  margin-top: auto; color: rgba(255,255,255,.3);
  font-size: 1rem !important;
  transition: transform .22s, color .22s;
}
.chroma-card:hover .chroma-card-arr { transform: translateX(5px); color: rgba(255,255,255,.85); }

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
#g-grid .g-item:first-child,
#g-grid .g-item:nth-child(2),
#g-grid .g-item:nth-child(3),
#g-grid .g-item:nth-child(4),
#g-grid .g-item:nth-child(5),
#g-grid .g-item:nth-child(6) {
  grid-column: auto;
  aspect-ratio: 4 / 3;
}

.g-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .28s, box-shadow .28s;
}
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,45,86,.25) 0%, transparent 55%);
  opacity: .3; transition: opacity .28s;
}
.g-item:hover { transform: scale(1.015); box-shadow: var(--sh-md); }
.g-item:hover::after { opacity: .7; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .75s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-empty { cursor: default; opacity: .4; }
.g-empty:hover { transform: none !important; box-shadow: none !important; }
.g-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Lightbox */
#lb {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.9);
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
#lb.open { display: flex; }
#lb-img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
#lb-x {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  backdrop-filter: blur(8px);
  transition: background .2s;
}
#lb-x:hover { background: rgba(255,255,255,.22); }
#lb-nav { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.lb-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .22s; }
.lb-dot.active { width: 18px; border-radius: 3px; background: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   CARDS (ACCORDION)
   ═══════════════════════════════════════════════════════════ */
.notice-item, .update-item, .feat-item {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,249,251,.94));
  border: 1px solid rgba(157,159,162,.24);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.68) inset, var(--sh-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.notice-item::before, .update-item::before, .feat-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold);
}
.notice-item:hover, .update-item:hover, .feat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
  border-color: var(--border-gold);
}
.notice-hd, .update-hd, .feat-hd {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.3rem 1.1rem 1.55rem;
  cursor: pointer; user-select: none;
  transition: background .18s;
  background: transparent; border: none; width: 100%; text-align: left;
}
.notice-hd:hover, .update-hd:hover, .feat-hd:hover { background: var(--navy-08); }
.notice-body, .update-body, .feat-body {
  max-height: 0; overflow: hidden;
  padding: 0 1.3rem 0 1.55rem;
  font-size: .9rem; color: #445068; line-height: 1.88; white-space: pre-line; font-weight: 500;
  border-top: 0 solid var(--border);
  opacity: 0;
  transition: max-height .42s var(--ease), padding .24s, opacity .28s .1s, border-top-width .24s;
}
.notice-item.open .notice-body,
.update-item.open .update-body,
.feat-item.open .feat-body {
  max-height: 1200px; padding: 1rem 1.3rem 1.4rem 1.55rem; border-top-width: 1px; opacity: 1;
}
.chev {
  font-size: 22px !important; color: var(--muted); flex-shrink: 0; margin-left: auto;
  transition: transform .24s, color .2s;
}
.notice-item.open .chev, .update-item.open .chev, .feat-item.open .chev { transform: rotate(180deg); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════════════════════ */
.ver-pill {
  display: inline-flex; align-items: center;
  background: var(--navy-08); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: .7rem;
  padding: 4px 12px; border-radius: var(--r-full);
  border: 1px solid var(--border-gold);
}
.latest-badge {
  background: rgba(20,110,122,.12); color: #146E7A;
  font-family: var(--font-display); font-size: .62rem; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-full); border: 1px solid rgba(20,110,122,.25);
}
.date-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--navy-08); border: 1px solid var(--border); border-radius: 7px;
  padding: 4px 10px; font-size: .68rem; font-weight: 700; color: var(--navy);
  font-family: var(--font-display); margin-bottom: .75rem;
}
.date-line { font-size: .72rem; color: #3b465f; font-weight: 800; font-family: var(--font-display); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  border-radius: var(--r-sm); padding: .68rem 1.1rem; cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s, color .18s;
  border: 1px solid transparent; white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy-deep); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 4px 16px rgba(0,45,86,.24); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: rgba(141,113,80,.85); box-shadow: var(--sh-gold); }
.btn-danger { background: #B91C1C; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-outline { background: var(--surface); color: var(--text-dim); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: none; color: var(--text-dim); border: none; }
.btn-ghost:hover { color: var(--gold); }
.btn-sm { font-size: .75rem; padding: .38rem .75rem; }
.btn-lg { font-size: .9rem; padding: .9rem 1.65rem; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  padding: .6rem 1.35rem; border-radius: var(--r-full);
  opacity: 0; transition: opacity .26s, transform .26s;
  pointer-events: none; z-index: 999;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 40px rgba(0,45,86,.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer.site-footer {
  background:
    linear-gradient(180deg, rgba(0,22,48,.94), rgba(0,11,26,.98)),
    var(--navy);
  border-top: 3px solid var(--gold);
  padding: 1.5rem clamp(1rem,4vw,2rem);
  margin-top: auto; position: relative; z-index: 1;
  overflow: hidden;
}
footer.site-footer::before,
footer.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
footer.site-footer::before {
  background: url('../img/footer-veil.webp') center bottom / cover no-repeat;
  opacity: .78;
  mix-blend-mode: screen;
}
footer.site-footer::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
    linear-gradient(180deg, rgba(0,10,24,.08), rgba(0,7,18,.42));
}
.footer-i {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
  position: relative;
  z-index: 1;
}
.footer-i p { color: rgba(255,255,255,.52) !important; font-family: var(--font-display); font-size: .72rem; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.24); }
.footer-i a { color: rgba(255,255,255,.58) !important; font-family: var(--font-display); font-size: .72rem; font-weight: 700; text-decoration: none; transition: color .2s; text-shadow: 0 1px 10px rgba(0,0,0,.24); }
.footer-i a:hover { color: var(--gold-lt) !important; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILS
   ═══════════════════════════════════════════════════════════ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2rem); }
main { flex: 1 0 auto; max-width: 1280px; margin: 0 auto; padding: 2.5rem clamp(1rem,4vw,2rem) 5rem; width: 100%; box-sizing: border-box; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

.loading-row { display: flex; align-items: center; justify-content: center; padding: 4rem 0; color: var(--muted); gap: 8px; font-size: .88rem; }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4rem 2rem; gap: .75rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-md); }
.empty-state-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--navy-08); display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; border: 1px solid var(--border); }
.empty-state-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.empty-state-sub { font-size: .84rem; color: var(--text-dim); max-width: 280px; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
#pm-progress {
  position: fixed; top: var(--top-bar); left: 0; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  width: 0%; z-index: 401; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   SKELETONS
   ═══════════════════════════════════════════════════════════ */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.pm-skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(0,45,86,.06) 0%, rgba(255,255,255,.45) 40%, rgba(0,45,86,.06) 80%);
  background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite;
}
.pm-sk-row { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.3rem 1.1rem 1.55rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.pm-sk-line { height: .72rem; border-radius: 99px; }
.pm-sk-line.w-full { width: 100%; } .pm-sk-line.w-70 { width: 70%; } .pm-sk-line.w-45 { width: 45%; } .pm-sk-line.w-25 { width: 25%; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping    { 75%,100% { transform: scale(2); opacity: 0; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pmIn    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.spin  { animation: spin .9s linear infinite; display: inline-block; }
.fu    { animation: fadeUp .4s both; }
.pm-page-fade { animation: pmIn .38s var(--ease-out) both; }

/* Seq animations */
.pm-seq-init { opacity: 0; }
.pm-seq-slideup { animation: fadeUp .6s var(--ease-out) forwards; }
.pm-seq-reveal  { animation: fadeUp .7s var(--ease-out) forwards; }
.pm-seq-fade    { animation: fadeIn .5s ease forwards; }
.pm-seq-blur    { animation: blurIn .75s ease forwards; }
@keyframes blurIn { from { opacity: .35; filter: blur(10px); transform: scale(1.02); } to { opacity: 1; filter: blur(0); transform: scale(1); } }

/* Stagger */
.pm-stagger-child { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: var(--si, 0s); }
.pm-stagger-child.pm-in { opacity: 1; transform: translateY(0); }

/* Ping */
.do-ping { animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }

/* ═══════════════════════════════════════════════════════════
   PREMIUM INTERACTIONS
   ═══════════════════════════════════════════════════════════ */
.pm-card-glow { position: relative; overflow: hidden; }
.pm-card-glow::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(280px circle at calc(var(--mx,50%)*1%) calc(var(--my,50%)*1%), rgba(141,113,80,.20), transparent 65%);
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 0;
}
.pm-card-glow:hover::after { opacity: 1; }
.pm-card-glow > * { position: relative; z-index: 1; }

/* Ripple */
.btn { position: relative; overflow: hidden; }
.pm-btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.28); transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none; z-index: 10; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Magnetic */
.pm-magnetic { transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .3s; will-change: transform; }

/* ═══════════════════════════════════════════════════════════
   FEATURES PAGE
   ═══════════════════════════════════════════════════════════ */
.feat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.toc-panel { position: sticky; top: calc(var(--header-offset) + 1rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.1rem; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: .2rem; }
.toc-title { font-family: var(--font-display); font-weight: 800; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .45rem; }
.toc-link { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--text-dim); text-decoration: none; padding: .3rem .5rem; border-radius: 7px; transition: background .18s, color .18s; }
.toc-link:hover { background: var(--surface-2); color: var(--navy); }
.toc-link.active { background: var(--navy-08); color: var(--navy); font-weight: 700; }
.feat-section { margin-bottom: 3rem; }
.feat-list { display: flex; flex-direction: column; gap: 1.05rem; }
.world-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.35rem; }
.world-card { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,249,251,.94)); border: 1px solid rgba(157,159,162,.26); border-radius: var(--r-md); overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.68) inset, var(--sh-sm); transition: transform .22s, box-shadow .22s, border-color .22s; }
.world-card:hover { transform: translateY(-3px); box-shadow: var(--sh-glow); border-color: var(--border-gold); }
.world-card-img-wrap { overflow: hidden; }
.world-card-img-ph { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-2) 0%, var(--border) 100%); display: flex; align-items: center; justify-content: center; }
.world-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.world-card:hover .world-card-img { transform: scale(1.04); }
.world-card-body { padding: .85rem .95rem 1rem; }
.world-card-eyebrow { font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; font-family: var(--font-display); }
.world-card-title { font-family: var(--font-display); font-weight: 900; font-size: .95rem; color: var(--navy); margin: 0 0 .4rem; letter-spacing: -.03em; }
.world-card-desc { font-size: .78rem; color: var(--text-dim); line-height: 1.65; margin: 0 0 .7rem; }
.world-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--navy-08); color: var(--navy); font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--border-gold); margin: .15rem .15rem 0 0; }
.world-how { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: .42rem .65rem; font-size: .72rem; color: var(--text-dim); margin-top: .65rem; }
.feat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-title { font-family: var(--font-display); font-weight: 800; font-size: .97rem; color: var(--navy); letter-spacing: -.02em; margin: 0; }
.feat-subtitle { font-size: .75rem; color: var(--text-dim); margin: .15rem 0 0; }
.feat-chev { transition: transform .24s, color .2s; font-size: 22px !important; color: var(--muted); flex-shrink: 0; margin-left: auto; }
.feat-item.open .feat-chev { transform: rotate(180deg); color: var(--gold); }
.feat-tip { display: flex; align-items: flex-start; gap: .55rem; background: rgba(141,113,80,.07); border: 1px solid rgba(141,113,80,.2); border-radius: 9px; padding: .65rem .85rem; margin-top: .75rem; font-size: .78rem; color: var(--text-dim); line-height: 1.7; }
.cmd-chip { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 3px 10px; font-family: var(--font-display); font-size: .75rem; font-weight: 700; color: var(--navy); margin: .15rem .2rem; white-space: nowrap; }
.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem; }
.sec-card { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,249,251,.94)); border: 1px solid rgba(157,159,162,.24); border-radius: var(--r-md); padding: 1.2rem 1.35rem; transition: box-shadow .22s, transform .22s, border-color .22s; box-shadow: 0 0 0 1px rgba(255,255,255,.68) inset, var(--sh-sm); }
.sec-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.sec-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.sec-card-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-card-title { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--navy); letter-spacing: -.02em; }
.sec-card-desc { font-size: .84rem; color: var(--text-dim); line-height: 1.8; margin: 0; font-weight: 500; }
.spec-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.1rem 1.2rem; text-align: center; transition: box-shadow .22s, transform .22s; box-shadow: var(--sh-sm); }
.spec-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.spec-label { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .4rem; font-family: var(--font-display); }
.spec-val { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--navy); letter-spacing: -.03em; }
.spec-icon { color: var(--gold); margin-bottom: .5rem; }
.plugin-chip-desc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.25rem; margin-top: 1rem; font-size: .83rem; color: var(--text-dim); line-height: 1.8; }
.rule-banner { display: flex; align-items: center; gap: 1rem; background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.18); border-left: 4px solid #ef4444; border-radius: var(--r-md); padding: 1rem 1.3rem; font-size: .87rem; color: var(--text-dim); line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .38rem .8rem; font-size: .72rem; font-weight: 600; color: rgba(218,218,211,.85); }

/* ═══════════════════════════════════════════════════════════
   MAP PAGE
   ═══════════════════════════════════════════════════════════ */
.map-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.1rem; align-items: start; }
.map-frame-wrap { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-lg); background: var(--surface-2); min-height: 520px; }
#map-iframe { width: 100%; height: 100%; min-height: 520px; border: none; display: block; }
#map-loading { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; transition: opacity .4s; z-index: 10; }
#map-loading.hidden { opacity: 0; pointer-events: none; }
.map-guide-panel { display: flex; flex-direction: column; gap: .75rem; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); transition: box-shadow .22s, transform .22s; }
.guide-card:hover { box-shadow: var(--sh-glow); transform: translateY(-2px); }
.guide-card-head { display: flex; align-items: center; gap: .55rem; padding: .65rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 800; font-size: .72rem; color: var(--navy); }
.guide-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.guide-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.guide-table td { padding: .48rem .9rem; vertical-align: top; line-height: 1.55; }
.guide-table td:first-child { color: var(--text-dim); font-weight: 600; white-space: nowrap; width: 42%; border-right: 1px solid var(--border); }
.guide-tip { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; background: rgba(141,113,80,.07); border: 1px solid rgba(141,113,80,.2); border-radius: var(--r-md); font-size: .76rem; color: var(--text-dim); line-height: 1.7; }
.map-badges { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.map-badge { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .38rem .8rem; font-size: .72rem; font-weight: 600; color: rgba(218,218,211,.82); }
.btn-fullscreen { display: inline-flex; align-items: center; gap: .45rem; background: var(--gold); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .74rem; border: none; border-radius: 10px; padding: .52rem 1rem; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.btn-fullscreen:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(141,113,80,.32); }

/* ═══════════════════════════════════════════════════════════
   MOD-SETUP PAGE
   ═══════════════════════════════════════════════════════════ */
:root { --ink: var(--navy); --ink-dim: var(--text-dim); --panel: var(--surface); --panel-hi: var(--surface-2); --bdr: var(--border); --sh-sm-mod: var(--sh-sm); --accent-10: var(--gold); }
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.page-hero-steps { display: flex; gap: 1rem; flex-wrap: wrap; }
.phs-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.phs-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: .78rem; color: var(--gold); background: rgba(141,113,80,.12); }
.phs-label { font-family: var(--font-display); font-size: .58rem; font-weight: 700; color: rgba(141,113,80,.82); text-align: center; white-space: nowrap; letter-spacing: .04em; }
.sec-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; flex-wrap: wrap; }
.sec-num { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: .78rem; flex-shrink: 0; }
.sec-title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin: 0; letter-spacing: -.03em; color: var(--navy); }
.sec-sub { font-size: .82rem; line-height: 1.75; margin: 0 0 1.3rem; color: var(--text-dim); word-break: keep-all; }
.sec-badge { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: .58rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; letter-spacing: .08em; text-transform: uppercase; }
.sec-sublabel { font-size: .72rem; font-weight: 700; color: var(--muted); font-family: var(--font-display); margin-left: .25rem; }
.sec-card { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,248,250,.95)); border: 1px solid rgba(157,159,162,.26); border-radius: var(--r-md); padding: 1.75rem 1.85rem; position: relative; overflow: hidden; margin-bottom: 1.25rem; transition: box-shadow .22s, border-color .2s, transform .22s; box-shadow: 0 0 0 1px rgba(255,255,255,.68) inset, var(--sh-sm); }
.sec-card:hover { box-shadow: var(--sh-glow); border-color: var(--border-gold); transform: translateY(-3px); }
.sec-card-top { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.mods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .82rem; }
.mods-req { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .82rem; }
.mods-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.mod-block { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .9rem; border-radius: 10px; text-decoration: none; border: 1px solid rgba(157,159,162,.26); background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,247,249,.95)); min-height: auto; transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: 0 0 0 1px rgba(255,255,255,.62) inset; }
.mod-block:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-gold); }
.mod-block img { width: 36px; height: 36px; border-radius: 7px; flex-shrink: 0; object-fit: cover; margin-top: 2px; }
.mod-block-info { flex: 1; min-width: 0; }
.mod-name { font-family: var(--font-display); font-weight: 700; font-size: .78rem; display: flex; align-items: flex-start; gap: .28rem; color: var(--navy); line-height: 1.35; word-break: keep-all; }
.mod-desc { font-size: .68rem; margin-top: 3px; color: var(--text-dim); line-height: 1.55; word-break: keep-all; font-weight: 500; }
.mod-block-feat { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border-radius: 9px; text-decoration: none; border: 1px solid rgba(157,159,162,.26); background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,247,249,.95)); transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: 0 0 0 1px rgba(255,255,255,.62) inset; }
.mod-block-feat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-gold); }
.mod-block-feat img { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.mod-feat-name { font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: .28rem; margin-bottom: .2rem; line-height: 1.35; word-break: keep-all; }
.mod-feat-desc { font-size: .72rem; color: var(--text-dim); line-height: 1.58; word-break: keep-all; font-weight: 500; }
.steps { display: flex; flex-direction: column; gap: 1.3rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: .88rem; color: #fff; flex-shrink: 0; }
.step-body h3 { font-family: var(--font-display); font-weight: 800; font-size: .92rem; color: var(--navy); margin: 0 0 .28rem; }
.step-body p { font-size: .8rem; color: var(--text-dim); line-height: 1.7; margin: 0; }
.checklist { display: flex; flex-direction: column; gap: .5rem; }
.cl-item { display: flex; align-items: center; gap: .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: .55rem .85rem; }
.cl-img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cl-label { font-size: .78rem; font-weight: 600; color: var(--navy); flex: 1; }
.cl-check { color: var(--navy); font-size: 1.05rem !important; }
.info-box { background: rgba(141,113,80,.07); border: 1px solid rgba(157,159,162,.28); border-radius: 9px; padding: 1rem 1.1rem; font-size: .79rem; color: var(--navy); line-height: 1.75; word-break: keep-all; }
.success-box { background: rgba(20,110,122,.08); border: 1px solid rgba(20,110,122,.2); border-radius: 10px; padding: .75rem 1rem; text-align: center; color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .84rem; margin-top: .65rem; }
.setup-val-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; margin-bottom: .75rem; }
.setup-val-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem; }
.setup-val-label { font-size: .6rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 3px; }
.setup-val-value { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--navy); margin: 0; }
.setup-val-value-sm { font-family: var(--font-display); font-weight: 700; font-size: .74rem; color: var(--navy); margin: 0; }
code, kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-family: monospace; font-size: .72rem; color: var(--navy); }
.perf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }

/* ═══════════════════════════════════════════════════════════
   ADMIN PAGE
   ═══════════════════════════════════════════════════════════ */
#auth-screen { display: flex; position: fixed; inset: 0; z-index: 500; background: rgba(248,250,252,.96); backdrop-filter: saturate(1.1) blur(8px); align-items: center; justify-content: center; }
#dashboard { display: none; flex-direction: column; min-height: 100vh; }
#dashboard main { padding-top: 72px !important; max-width: 1280px !important; }
.adm-label { display: block; font-family: var(--font-display); font-size: .68rem; font-weight: 800; color: #666; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 5px; }
.adm-section { background: var(--surface); border-radius: var(--r-md); border: 1px solid rgba(157,159,162,.2); box-shadow: var(--sh-sm); overflow: hidden; margin-bottom: 1.25rem; }
.adm-section-head { display: flex; align-items: center; gap: 8px; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(157,159,162,.15); border-top: 3px solid var(--gold); }
.adm-section-head h2 { font-size: .92rem; font-weight: 800; color: var(--navy); margin: 0; }
.adm-section-body { padding: 1.25rem; }
.adm-header { padding: 1.5rem 0 1rem; margin-bottom: 1rem; }
.adm-header h1 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; color: var(--navy); margin: 0 0 .25rem; letter-spacing: -.04em; }
.adm-header p { color: #666; font-size: .88rem; margin: 0; }
.adm-header-bar { width: 44px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: .75rem; }
.tab-btn { display: inline-flex; align-items: center; gap: 5px; padding: .45rem .9rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; border: 1px solid rgba(0,45,86,.12); border-radius: 8px; background: var(--surface); color: #555; cursor: pointer; transition: all .15s; }
.tab-btn:hover { border-color: rgba(0,45,86,.3); color: var(--navy); }
.tab-btn.active { background: var(--navy); color: #fff; border-color: transparent; }
input[type=text], input[type=url], input[type=date], textarea { width: 100%; box-sizing: border-box; padding: .68rem .9rem; border: 1px solid rgba(0,45,86,.12); border-radius: 8px; font-family: var(--font-display); font-size: .875rem; color: #111; background: #fff; transition: border-color .15s; outline: none; }
input:focus, textarea:focus { border-color: rgba(141,113,80,.55); box-shadow: 0 0 0 3px rgba(141,113,80,.08); }
textarea { resize: vertical; }
.env-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.main-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.main-grid > * { min-width: 0; }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .85rem; }
.g-admin-slot { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--surface); border: 1.5px dashed var(--border); transition: border-color .15s; }
.g-admin-slot.has-img { border-style: solid; }
.g-admin-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-admin-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; gap: .5rem; }
.g-admin-slot:hover .g-admin-overlay { display: flex; }
.g-admin-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .35rem; color: #888; cursor: pointer; }
.g-admin-empty:hover { color: var(--gold); }
.log-item { background: #fff; border: 1px solid rgba(0,45,86,.07); border-radius: 10px; overflow: hidden; box-shadow: var(--sh-sm); }
.log-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; cursor: pointer; transition: background .15s; }
.log-hd:hover { background: var(--surface-2); }
.log-bd { max-height: 0; overflow: hidden; transition: max-height .25s, padding .2s, opacity .22s .08s, border-top-width .2s; padding: 0 1rem; font-size: .83rem; color: #666; white-space: pre-line; line-height: 1.65; border-top: 0 solid var(--border); opacity: 0; }
.log-item.open .log-bd { max-height: 600px; padding: .75rem 1rem 1rem; border-top-width: 1px; opacity: 1; }
.lchev { transition: transform .2s; font-size: 18px; color: var(--muted); flex-shrink: 0; }
.log-item.open .lchev { transform: rotate(180deg); color: var(--gold); }
.tab-btn-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.hover-gold { color: #666; transition: color .15s; } .hover-gold:hover { color: var(--gold) !important; }
.hover-navy { color: #666; transition: color .15s; } .hover-navy:hover { color: #1E3A8A !important; }
.g-btn-replace { background: var(--gold-10); border: 1px solid rgba(141,113,80,.4); color: var(--gold); font-size: .75rem; font-weight: 700; padding: .4rem .75rem; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.g-btn-delete { background: rgba(185,28,28,.7); border: 1px solid rgba(185,28,28,.9); color: #fff; font-size: .75rem; font-weight: 700; padding: .4rem .75rem; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.adm-notice-item { background: var(--navy-08); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; padding: .8rem 1rem; color: var(--navy); }
#toast { bottom: 80px !important; }
#panel-update form > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#report-date-list,
#report-side-list { min-width: 0; }
#report-date-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: .5rem !important;
}
#report-selected-date {
  display: none;
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  color: var(--navy);
}
#report-selected-date.is-visible {
  display: block;
}
.report-picker-btn {
  padding: .45rem .78rem;
  border: 1px solid rgba(0,45,86,.12);
  border-radius: 8px;
  background: var(--surface);
  color: #334155;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.report-picker-btn.is-active {
  background: var(--navy);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,45,86,.18);
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.75; letter-spacing: -.01em; }
h1:lang(ko), h2:lang(ko), h3:lang(ko) { word-break: keep-all; line-height: 1.15; letter-spacing: -.04em; }
.font-display { font-family: var(--font-display); }
[data-count] { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   UPDATES / NOTICES
   ═══════════════════════════════════════════════════════════ */
.notice-stack, .update-stack { display: flex; flex-direction: column; gap: .82rem; }
.page-hero-inner.updates-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.ver-card { background: rgba(255,255,255,.1); border-radius: var(--r-md); padding: 1.15rem 1.45rem; text-align: right; flex-shrink: 0; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); transition: transform .22s, box-shadow .22s; }
.ver-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ver-card .vl { display: block; font-size: .58rem; font-weight: 800; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; font-family: var(--font-display); }
.ver-card #current-version { font-family: var(--font-display); font-weight: 900; font-size: 1.85rem; color: #fff; letter-spacing: -.05em; line-height: 1; }
.notice-item,
.update-item {
  border-radius: 15px;
}

.notice-hd,
.update-hd {
  padding: .92rem 1.1rem .92rem 1.3rem;
  gap: .7rem;
}

.notice-body,
.update-body {
  padding: 0 1.1rem 0 1.3rem;
}

.notice-item.open .notice-body,
.update-item.open .update-body {
  padding: .95rem 1.1rem 1.2rem 1.3rem;
}

.notice-copy,
.update-copy {
  min-width: 0;
  flex: 1;
}

.notice-title,
.update-title {
  line-height: 1.35;
  word-break: keep-all;
}

.notice-meta,
.update-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.notice-meta .chev,
.update-meta .chev {
  margin-left: 0;
}

.notice-date-line,
.update-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(141,113,80,.18);
  background: rgba(0,45,86,.05);
  color: #3b465f;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}

.update-topline {
  display: flex;
  align-items: center;
  gap: .42rem;
  flex-wrap: wrap;
  margin-bottom: .32rem;
}

.update-topline .ver-pill {
  padding: 3px 10px;
}

.ver-pill.is-muted,
.update-date.is-muted {
  opacity: .62;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1100px) {
  .feat-layout { grid-template-columns: 1fr; }
  .toc-panel { display: none; }
}
@media (max-width: 1024px) {
  .chroma-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .world-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .map-guide-panel { flex-direction: row; flex-wrap: wrap; }
  .guide-card { flex: 1; min-width: 220px; }
  .main-grid { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: repeat(2,1fr); }
  .mods-req { grid-template-columns: 1fr 1fr; }
  .setup-val-grid { grid-template-columns: 1fr 1fr; }
  #feat-img-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Show mobile tab bar */
  #mobile-bottom-nav { display: flex; }
  /* Hide desktop nav links */
  .cnav-links-pill { display: none !important; }
  /* Footer 아래 여백을 만들지 않고, 필요한 내용 여백은 main이 유지 */
  body { padding-bottom: 0; }

  .cnav-notice-slot { display: none !important; }
  .cnav-inner {
    display: flex;
    align-items: center;
    min-height: 54px;
  }
  .cnav-logo-pill {
    min-height: 44px;
    padding: 0 1.05rem;
    font-size: .9rem;
  }

  .global-notice-host {
    top: calc(var(--header-offset) + 8px);
    padding: 0 .85rem;
  }
  .global-notice-inner { justify-content: stretch; }
  .global-notice-bar {
    gap: .6rem;
    padding: .75rem .82rem;
    width: 100%;
    border-radius: 16px;
  }
  .global-notice-title {
    font-size: .76rem;
  }

  .quick-menu-stage {
    border-radius: 22px;
    padding: .9rem;
  }

  .quick-menu-stage::before {
    background:
      linear-gradient(180deg, rgba(255,248,240,.84), rgba(247,241,231,.58) 32%, rgba(245,239,228,.9) 100%),
      url('../img/city-origin.webp') center 18% / cover no-repeat;
    opacity: .74;
  }

  /* Hero */
  .hero-shell {
    grid-template-columns: 1fr;
    padding: calc(var(--header-offset) + var(--notice-h) + 1rem) clamp(.85rem,4vw,1.25rem) 2rem;
    gap: 1.5rem;
    min-height: auto;
  }
  .hero-visual { aspect-ratio: 16/9; max-height: 56vw; }
  .server-addr { font-size: clamp(2.05rem,10.8vw,3.2rem) !important; }
  .hero-eyebrow { font-size: .58rem !important; }
  .hero-status-row { gap: .5rem; }
  .status-pill { padding: .45rem .85rem .45rem .6rem; }
  .spl { font-size: .84rem; }
  .copy-hint { font-size: .58rem; }
  .copy-surface { padding-right: 4rem; }
  .copy-surface::before { inset: .3rem -.6rem .18rem -.6rem; border-radius: 22px; }
  .copy-icon-shell { width: 38px; height: 38px; bottom: .55rem; }
  .copy-feedback { right: -.2rem; bottom: -2.55rem; font-size: .68rem; }
  .copy-mascot { width: 84px; left: .45rem; bottom: calc(100% - .5rem); }
  .hero-scroll-hint { bottom: .55rem; }

  .notice-hd,
  .update-hd {
    padding: .88rem 1rem .88rem 1.15rem;
    gap: .62rem;
  }

  .notice-body,
  .update-body {
    padding: 0 1rem 0 1.15rem;
  }

  .notice-item.open .notice-body,
  .update-item.open .update-body {
    padding: .88rem 1rem 1.05rem 1.15rem;
  }

  .notice-meta,
  .update-meta {
    gap: .38rem;
  }

  .notice-date-line,
  .update-date {
    font-size: .64rem;
    padding: .2rem .62rem;
  }

  /* Page hero */
  .page-hero-inner { grid-template-columns: 1fr !important; gap: 1.25rem; padding: calc(var(--header-offset) + var(--notice-h) + .9rem) clamp(.85rem,4vw,1.25rem) 2rem !important; }
  .page-hero-h1 { font-size: clamp(1.75rem,7vw,2.4rem) !important; }

  /* Grids */
  .chroma-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .world-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: 1fr !important; }
  .mods-req { grid-template-columns: 1fr !important; }
  .perf-grid { grid-template-columns: repeat(2,1fr) !important; }
  .gallery-admin-grid { grid-template-columns: repeat(2,1fr); }

  /* Admin */
  #dashboard #main-content { padding-top: 56px !important; }
  #panel-update form > div:first-child { grid-template-columns: 1fr !important; }
  #feat-img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Hero bottom fade */
  .hero::after { display: none !important; }

  /* Maps */
  .map-frame-wrap, #map-iframe { min-height: 320px !important; }
}

@media (max-width: 640px) {
  .chroma-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .chroma-card-inner { padding: 1rem 1rem 1rem; }
  .chroma-card-shot { aspect-ratio: 1.28; border-radius: 12px; }
  .chroma-card-title { font-size: .82rem; }
  .chroma-card-sub { font-size: .68rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .chroma-card::after { filter: blur(7px) brightness(.98) saturate(1.04); }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-steps { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr !important; gap: .6rem; }
  #feat-img-grid,
  .gallery-admin-grid { grid-template-columns: 1fr !important; }
  #report-date-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .15rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  #report-date-list::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .chroma-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .map-frame-wrap { aspect-ratio: 4/3; height: auto; min-height: 0 !important; }
  #map-iframe { min-height: 0 !important; height: 100% !important; position: absolute; inset: 0; }
  .mods-grid, .mods-grid-sm { grid-template-columns: 1fr !important; }
  .gallery-admin-grid { grid-template-columns: 1fr 1fr; }
}

/* Touch optimizations */
@media (pointer: coarse) {
  .chroma-card::before { display: block; }
  .chroma-card:active { transform: scale(.97); transition: transform .12s ease !important; }
  .notice-item:active, .update-item:active, .feat-item:active, .world-card:active { transform: scale(.985) !important; }
  .notice-item:hover, .update-item:hover, .feat-item:hover { transform: none; }
  .mod-block:hover, .mod-block-feat:hover { transform: none; }
  .pm-magnetic { transition: none !important; }
}
