/* =========================
   Global Header (2번 스타일)
   - 100% width
   - Responsive
========================= */

:root{
  --gline: rgba(255,255,255,.08);
  --gtext: rgba(255,255,255,.92);
  --gmuted: rgba(255,255,255,.72);
  --gaccent: #2d6cdf;

  /* util sizing */
  --utilH: 38px;
  --utilR: 999px;

  /* glass */
  --glass1: rgba(255,255,255,.18);
  --glass2: rgba(255,255,255,.04);
  --glassHover1: rgba(255,255,255,.28);
  --glassHover2: rgba(255,255,255,.10);
  --glassBd: rgba(255,255,255,.25);

  /* menu */
  --menuBg: rgba(10, 18, 33, .92);
  --menuBd: rgba(255,255,255,.14);
  --menuItem: rgba(255,255,255,.86);
  --menuItemMuted: rgba(255,255,255,.72);
  --menuHover: rgba(255,255,255,.08);
  --menuActive: rgba(45,108,223,.22);
}

.gheader{
  width: 100%;
  position: sticky; /* 또는 fixed */
  top: 0;
  z-index: 9999;
  color: var(--gtext);
  background:
    radial-gradient(900px 220px at 30% 0%, rgba(45,108,223,.25), transparent 60%),
    radial-gradient(900px 220px at 70% 0%, rgba(0,160,255,.18), transparent 55%),
    linear-gradient(180deg, #0f1a2b 0%, #0b1424 100%);
  border-bottom: 1px solid var(--gline);
}

.gheader__inner{
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
}

/* Brand */
.gheader__brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 190px;
}
.gheader__logo{
  height: 34px;
  width: auto;
  display: block;
}

/* Desktop nav */
.gnav{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.gnav__link{
  color: var(--gmuted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.gnav__link:hover{ color: var(--gtext); }
.gnav__link.is-active{
  color: var(--gtext);
  position: relative;
}
.gnav__link.is-active::after{
  content:"";
  position:absolute;
  left: 6px; right: 6px;
  bottom: 4px;
  height: 2px;
  background: var(--gaccent);
}

/* =========================
   Right utilities
========================= */
.gutil{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.gutil__login{
  color: var(--gtext);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}
.gutil__login:hover{
  background: rgba(255,255,255,.06);
}

/* =========================
   Theme Toggle Button (트렌디)
========================= */
.gutil__theme{
  width: var(--utilH);
  height: var(--utilH);
  border-radius: var(--utilR);
  border: 1px solid var(--glassBd);
  background: linear-gradient(135deg, var(--glass1), var(--glass2));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, transform .15s ease;
}

.gutil__theme:hover{
  background: linear-gradient(135deg, var(--glassHover1), var(--glassHover2));
  box-shadow: 0 0 0 4px rgba(45,108,223,.18);
}

.gutil__theme:active{ transform: scale(.92); }

/* 아이콘 기본값(처음 로드에도 표시) */
.themeIcon::before{
  content: "☀️";
  font-size: 16px;
  line-height: 1;
  display: block;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
html[data-theme="dark"] .themeIcon::before{ content: "🌙"; }
html[data-theme="light"] .themeIcon::before{ content: "☀️"; }
html[data-theme="light"] .themeIcon{ transform: rotate(180deg); }

/* =========================
   Custom Language Select
   - 네이티브 select 숨김 + 커스텀 메뉴
========================= */
.gutil__lang{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 원본 select는 접근성/폼용으로만 유지 */
.gutil__selectNative{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* 버튼(겉모양) */
.gutil__langBtn{
  height: var(--utilH);
  min-width: 132px;
  padding: 0 14px 0 14px;
  border-radius: var(--utilR);
  border: 1px solid var(--glassBd);
  background: linear-gradient(135deg, var(--glass1), var(--glass2));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  cursor: pointer;
  color: var(--gtext);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;

  transition: background .25s ease, box-shadow .25s ease, transform .15s ease;
}

.gutil__langBtn:hover{
  background: linear-gradient(135deg, var(--glassHover1), var(--glassHover2));
  box-shadow: 0 0 0 4px rgba(45,108,223,.14);
}

.gutil__langBtn:active{
  transform: scale(.98);
}

.gutil__langBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(45,108,223,.22);
}

.gutil__langText{
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  font-size: 15px;
}

.gutil__langChevron{
  font-size: 16px;
  line-height: 1;
  opacity: .9;
  transform: translateY(-1px);
  transition: transform .2s ease, opacity .2s ease;
}

/* 열림 상태 */
.gutil__lang.is-open .gutil__langChevron{
  transform: rotate(180deg) translateY(1px);
  opacity: 1;
}
.gutil__lang.is-open .gutil__langBtn{
  box-shadow: 0 0 0 4px rgba(45,108,223,.22);
}

/* 드롭다운 메뉴(완전 커스텀) */
.gutil__langMenu{
  position: absolute;
  top: calc(var(--utilH) + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--menuBd);

  background: var(--menuBg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06) inset;

  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 10000;
}

.gutil__lang.is-open .gutil__langMenu{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* 메뉴 아이템 */
.gutil__langItem{
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--menuItem);
  font-weight: 900;
  font-size: 12px;

  padding: 10px 10px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}

.gutil__langItem:hover{
  background: var(--menuHover);
}

.gutil__langItem:active{
  transform: scale(.98);
}

.gutil__langItem.is-selected{
  background: var(--menuActive);
}

.gutil__langBadge{
  font-size: 11px;
  font-weight: 900;
  color: var(--menuItemMuted);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* =========================
   Mobile menu button
========================= */
.gutil__menu{
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.08);
  display: none;
  cursor: pointer;
  padding: 8px 10px;
}
.gutil__menu span{
  display:block;
  height: 2px;
  background: rgba(255,255,255,.86);
  border-radius: 999px;
}
.gutil__menu span + span{ margin-top: 6px; }

/* Mobile nav */
.gnavMobile{
  display: none;
  border-top: 1px solid var(--gline);
  padding: 10px 14px 14px;
  background: rgba(0,0,0,.12);
}
.gnavMobile.is-open{ display: block; }
.gnavMobile__link{
  display:block;
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--gmuted);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.gnavMobile__link:hover{ color: var(--gtext); background: rgba(255,255,255,.06); }
.gnavMobile__link.is-active{ color: var(--gtext); }

/* =========================
   Responsive
========================= */
@media (max-width: 1100px){
  .gnav{ gap: 10px; }
  .gnav__link{ font-size: 12px; padding: 10px 4px; }
  .gheader__brand{ min-width: 160px; }
}

@media (max-width: 900px){
  .gnav{ display: none; }
  .gutil__menu{ display: inline-flex; align-items:center; justify-content:center; }
}

@media (max-width: 420px){
  .gheader__inner{ padding: 0 12px; }
  .gutil__login{ padding: 9px 8px; }
  .gutil__langBtn{ min-width: 118px; }
}

/* =========================
   Chevron (Pure CSS V)
   - 폰트 영향 0
   - 완전 중앙 정렬
========================= */

.gutil__langChevron{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  transition: transform .18s ease, opacity .18s ease;
}

/* V 모양: 두 개의 선을 회전시켜 만들기 */
.gutil__langChevron::before,
.gutil__langChevron::after{
  content: "";
  width: 8px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  display: block;
  transform-origin: center;
}

/* \ / 형태로 배치해서 V 만들기 */
.gutil__langChevron::before{
  transform: translateX(2px) rotate(45deg);
}
.gutil__langChevron::after{
  transform: translateX(-2px) rotate(-45deg);
}

/* 열림 상태: 위로 향하게(회전) */
.gutil__lang.is-open .gutil__langChevron{
  transform: rotate(180deg);
  opacity: 1;
}

/* 버튼 내부 정렬 안정화(권장) */
.gutil__langBtn{
  align-items: center;
}

/* =========================================
   WOWOTC Header Menu (hover-only dropdown)
   - Does NOT touch theme/header background
   - Fix hover gap (bridge)
   ========================================= */

/* Top nav layout */
.gheader .gnav{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  min-width: 0;
}

/* Main links */
.gheader .gnav__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;

  color: inherit;          /* theme 영향 최소화 */
  opacity: 0.92;
  background: transparent; /* 헤더 배경 건드리지 않음 */
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.gheader .gnav__link:hover{
  background: rgba(255,255,255,0.08);
  opacity: 1;
  transform: translateY(-1px);
}

/* Dropdown trigger: 손가락 커서 */
.gheader .gnav__link--dd{
  cursor: pointer;
}

/* Caret */
.gheader .gnav__caret{
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.75;
}

/* Dropdown container */
.gheader .gnav__item{
  position: relative;
}

/* ✅ Hover 끊김 방지: 트리거와 메뉴 사이 브릿지 */
.gheader .gnav__item--dd::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;           /* gap(10px) + 여유 */
  background: transparent;
}

/* Submenu base */
.gheader .gnav__sub{
  position: absolute;
  top: calc(100% + 10px); /* 기존 디자인 유지 */
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  z-index: 2000;

  display: none;          /* 기본 숨김 */

  background: rgba(10, 18, 32, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ✅ Hover 할 때만 노출 (인라인 display:none을 이기기 위해 !important) */
.gheader .gnav__item--dd:hover > .gnav__sub{
  display: block !important;
  animation: gnavPop 140ms ease-out;
}

@keyframes gnavPop{
  from{ opacity: 0; transform: translateY(-6px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* Submenu links */
.gheader .gnav__subLink{
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;

  color: rgba(255,255,255,0.90);
  background: transparent;
  transition: background 160ms ease, transform 160ms ease;
}

.gheader .gnav__subLink:hover{
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

/* Header spacing (우측 유틸 고정) */
.gheader .gheader__inner{
  display: flex;
  align-items: center;
  gap: 12px;
}

.gheader .gutil{
  margin-left: auto;
}

/* Mobile: 데스크탑 메뉴 숨김 (기존 모바일 메뉴 구조 사용) */
@media (max-width: 980px){
  .gheader .gnav{ display: none; }
}

/* ===== Mobile hamburger button ===== */
.gheader .gutil__menu{
  display: none; /* 기본은 숨김, 모바일에서만 표시 */
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 6px;
}

.gheader .gutil__menuBar{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.88);
  border-radius: 99px;
  display: block;
}

/* ===== Mobile drawer ===== */
.gnavMobile{
  display: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(7, 18, 32, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gnavMobile.is-open{
  display: block;
}

.gnavMobile__inner{
  padding: 14px 16px 18px;
  display: grid;
  gap: 10px;
}

/* language row */
.gnavMobile__lang{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.gnavMobile__langLabel{
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

.gnavMobile__langSelect{
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 0 10px;
}

/* links */
.gnavMobile__link{
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* groups */
.gnavMobile__group{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.gnavMobile__title{
  width: 100%;
  height: 46px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.gnavMobile__caret{
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  transform: rotate(45deg);
  margin-top: -2px;
}

.gnavMobile__sub{
  display: none;
  padding: 6px 10px 12px;
  gap: 8px;
}

.gnavMobile__group.is-open .gnavMobile__sub{
  display: grid;
}

.gnavMobile__sublink{
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* ===== Responsive rules ===== */
@media (max-width: 980px){
  .gheader .gnav{ display: none; }
  .gheader .gutil__menu{ display: grid; }
}

/* 데스크탑에서는 언어 UI 보이게 */
.gheader .gutil__lang{
  display: inline-flex;
  align-items: center;
}

/* 모바일에서는 헤더의 언어 UI 숨김 (대신 메뉴 안에서 선택) */
@media (max-width: 980px){
  .gheader .gutil__lang{
    display: none;
  }
}

/* ==============================
   Mobile Language Bottom Sheet
   (refined)
   ============================== */

/* 모바일 메뉴 안: 언어 버튼 (한 줄 카드형) */
.gnavMobile__langBtn{
  width: 100%;
  height: 44px;                 /* ✅ 터치영역 확보 */
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  display: flex;                /* ✅ width 100% 안정 */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gnavMobile__langBtn:active{
  transform: translateY(1px);
}

.gnavMobile__langBtn:focus-visible{
  outline: none;
  border-color: rgba(110, 190, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
}

/* 버튼 오른쪽 chevron */
.gnavMobile__langChevron{
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  transform: rotate(45deg);
  margin-top: -2px;
  flex: 0 0 auto;
}

/* Sheet root */
.langSheet{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 6000;                /* ✅ 헤더/드로어보다 위 */
}

.langSheet.is-open{
  display: block;
}

/* backdrop */
.langSheet__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* panel */
.langSheet__panel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  background: rgba(10, 18, 32, 0.96);
  border-top: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  padding: 10px 14px 16px;

  /* ✅ 오픈 애니메이션 */
  transform: translateY(18px);
  opacity: 0;
  animation: sheetUp 180ms ease-out forwards;

  /* ✅ 내용이 많아지면 패널 내부 스크롤 */
  max-height: min(72vh, 520px);
  overflow: auto;
}

@keyframes sheetUp{
  to{ transform: translateY(0); opacity: 1; }
}

/* 헤더 */
.langSheet__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
}

.langSheet__title{
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

/* 닫기 버튼 */
.langSheet__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.langSheet__close:active{
  transform: translateY(1px);
}

.langSheet__close:focus-visible{
  outline: none;
  border-color: rgba(110, 190, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
}

/* list */
.langSheet__list{
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

/* item */
.langSheet__item{
  height: 48px;                 /* ✅ 터치영역 살짝 증가 */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}

.langSheet__item:hover{
  background: rgba(255,255,255,0.08);
}

.langSheet__item:active{
  transform: translateY(1px);
}

.langSheet__item:focus-visible{
  outline: none;
  border-color: rgba(110, 190, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
}

.langSheet__item.is-active{
  border-color: rgba(110, 190, 255, 0.35);
  background: rgba(110, 190, 255, 0.12);
}

/* =========================================================
   PATCH (safe): Mobile language bottom sheet + menu cleanup
   - Put this at the VERY END of the header.css
   - Desktop(web) is NOT affected
   ========================================================= */

/* ---------- 1) Desktop nav: do not change (safety) ---------- */
/* (No desktop overrides here on purpose) */


/* ---------- 2) Mobile only (<=980): stabilize menu + language ---------- */
@media (max-width: 980px){

  /* 모바일 드로어 내부 레이아웃은 그대로 유지하되,
     기존 "Language label + select" 세트는 완전히 비활성화 */
  .gnavMobile__langLabel,
  .gnavMobile__langSelect{
    display: none !important;
  }

  /* 모바일 언어 줄(컨테이너)은 "카드"로만 유지 */
  .gnavMobile__lang{
    display: block !important;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
  }

  /* 모바일 언어 버튼: 카드 안에 꽉 차게 */
  .gnavMobile__langBtn{
    width: 100% !important;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.92);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .gnavMobile__langBtn:active{
    transform: translateY(1px);
  }

  .gnavMobile__langBtn:focus-visible{
    outline: none;
    border-color: rgba(110, 190, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
  }

  /* 버튼 오른쪽 chevron */
  .gnavMobile__langChevron{
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.75);
    border-bottom: 2px solid rgba(255,255,255,0.75);
    transform: rotate(45deg);
    margin-top: -2px;
    flex: 0 0 auto;
  }
}


/* ---------- 3) Bottom sheet (global, but used only when opened) ---------- */
/* Desktop에도 존재는 하지만 보이지 않으니 영향 없음 */
.langSheet{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 6000;
}
.langSheet.is-open{ display: block; }

.langSheet__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.langSheet__panel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  background: rgba(10, 18, 32, 0.96);
  border-top: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  padding: 10px 14px 16px;

  transform: translateY(18px);
  opacity: 0;
  animation: langSheetUp 180ms ease-out forwards;

  max-height: min(72vh, 520px);
  overflow: auto;
}

@keyframes langSheetUp{
  to{ transform: translateY(0); opacity: 1; }
}

.langSheet__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
}

.langSheet__title{
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.langSheet__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.langSheet__close:active{ transform: translateY(1px); }
.langSheet__close:focus-visible{
  outline: none;
  border-color: rgba(110, 190, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
}

.langSheet__list{
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.langSheet__item{
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.langSheet__item:hover{ background: rgba(255,255,255,0.08); }
.langSheet__item:active{ transform: translateY(1px); }
.langSheet__item:focus-visible{
  outline: none;
  border-color: rgba(110, 190, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 190, 255, 0.12);
}
.langSheet__item.is-active{
  border-color: rgba(110, 190, 255, 0.35);
  background: rgba(110, 190, 255, 0.12);
}

/* =========================================================
   Mobile Hamburger Button - Premium glass (mobile only)
   - No HTML/JS change
   ========================================================= */

@media (max-width: 980px){

  /* 버튼 자체 */
  .gheader .gutil__menu{
    width: 46px;
    height: 42px;
    border-radius: 16px;

    /* 글래스 + 은은한 하이라이트 */
    background:
      radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.16), rgba(255,255,255,0.06) 55%, rgba(255,255,255,0.03) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.06));
    border: 1px solid rgba(255,255,255,0.14);

    box-shadow:
      0 10px 24px rgba(0,0,0,0.25),
      0 0 0 1px rgba(255,255,255,0.06) inset;

    display: grid;
    place-items: center;
    gap: 6px;
    padding: 0;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }

  /* 호버/눌림 */
  .gheader .gutil__menu:hover{
    box-shadow:
      0 14px 32px rgba(0,0,0,0.30),
      0 0 0 4px rgba(45,108,223,0.18),
      0 0 0 1px rgba(255,255,255,0.06) inset;
    transform: translateY(-1px);
  }
  .gheader .gutil__menu:active{
    transform: translateY(0) scale(0.97);
  }

  /* 라인(기존 span 또는 .gutil__menuBar 모두 대응) */
  .gheader .gutil__menu span,
  .gheader .gutil__menuBar{
    width: 18px;
    height: 2px;
    border-radius: 999px;
    display: block;

    /* 은은한 그라데이션 라인 */
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.65));
    box-shadow: 0 1px 0 rgba(0,0,0,0.25);

    transition: transform .18s ease, opacity .18s ease, width .18s ease;
  }

  /* 가운데 라인은 살짝 짧게 → 더 세련됨 */
  .gheader .gutil__menu span:nth-child(2),
  .gheader .gutil__menuBar:nth-child(2){
    width: 14px;
    opacity: 0.92;
  }

  /* 포커스(키보드 접근성) */
  .gheader .gutil__menu:focus-visible{
    outline: none;
    box-shadow:
      0 14px 32px rgba(0,0,0,0.30),
      0 0 0 4px rgba(45,108,223,0.22),
      0 0 0 1px rgba(255,255,255,0.06) inset;
  }
}

/* ===============================
   FINAL: hide old hamburger bars
   =============================== */

.gheader .gutil__menu span,
.gheader .gutil__menuBar{
  display: none !important;
}

/* ===============================
   Menu Button - 4 Grid Style
   =============================== */

.gheader .gutil__menu{
  width: 44px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);

  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  position: relative;
}

.gheader .gutil__menu:hover{
  background: rgba(255,255,255,0.12);
}

.gheader .gutil__menu:active{
  transform: scale(.94);
}

/* 4칸 아이콘 */
.gheader .gutil__menu::before{
  content: "";
  width: 25px;
  height: 25px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 4.5px, transparent 5.5px)
      0 0 / 50% 50% no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.95) 4.5px, transparent 5.5px)
      100% 0 / 50% 50% no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.95) 4.5px, transparent 5.5px)
      0 100% / 50% 50% no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.95) 4.5px, transparent 5.5px)
      100% 100% / 50% 50% no-repeat;
}

/* =========================
   FIX: 햄버거 버튼은 모바일에서만 표시
========================= */

/* 기본(웹)에서는 항상 숨김 */
.gheader .gutil__menu{
  display: none !important;
}

/* 모바일에서만 표시 */
@media (max-width: 980px){
  .gheader .gutil__menu{
    display: grid !important;
    place-items: center;
  }
}
