.home-page {
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.home-page::before, .home-page::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}
.home-page::before {
  opacity: .38;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 18%, transparent 62%);
}
.home-page::after {
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 32%), radial-gradient(circle at center, transparent 0 46%, #000 82%);
}
#main {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 28px;
}
.wordmark {
  position: relative;
  z-index: 1;
  padding: .18em .24em;
  border: 0;
  background: transparent;
  color: #fff;
  font: 900 clamp(3.2rem, 12vw, 10.5rem)/.86 var(--font-mono);
  letter-spacing: -.095em;
  text-transform: uppercase;
  cursor: pointer;
  isolation: isolate;
}
.wordmark::before, .wordmark::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  content: "HVSDCM1";
  -webkit-text-stroke: 1px rgba(255,255,255,.55);
  filter: blur(.35px);
}
.wordmark::before {
  transform: translate(-3px, 2px);
  clip-path: polygon(0 9%,100% 9%,100% 17%,0 17%,0 49%,100% 49%,100% 55%,0 55%);
  opacity: .54;
}
.wordmark::after {
  transform: translate(3px, -2px);
  clip-path: polygon(0 27%,100% 27%,100% 33%,0 33%,0 72%,100% 72%,100% 80%,0 80%);
  opacity: .38;
}
.wordmark span {
  display: block;
  background: linear-gradient(96deg, #fff 5%, #8b8b8b 34%, #fff 52%, #606060 72%, #fff 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.22)) contrast(1.25);
  animation: wordmark-shine 7s ease-in-out infinite;
}
.wordmark:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 14px;
}
.wordmark:hover span {
  filter: drop-shadow(0 0 26px rgba(255,255,255,.4)) contrast(1.4);
}
@keyframes wordmark-shine {
  0%,100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}
.shade {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  background: rgba(0,0,0,.8);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .18s ease, visibility .18s;
}
.shade.open {
  visibility: visible;
  opacity: 1;
}
/* ---- 드로어 (DESIGN.md §5 v14 · §6 · §7.1) ----
   폭은 데스크톱 320px, 모바일은 화면 폭 - 24px. 안은 그룹 리스트 두 개(학습 / 운영)뿐이다 —
   링크 7개를 각각 테두리 카드로 세로 스택하던 조판을 폐기했다. 행은 48px, [아이콘 17px][라벨][chevron],
   행 사이 인셋 헤어라인은 system.css의 .list-row 규칙이 그린다. */
.drawer {
  position: fixed;
  z-index: 40;
  inset: 0 0 0 auto;
  display: flex;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 16px 16px 20px;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--bg-alt);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
.drawer.open {
  visibility: visible;
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-left: 4px;
  border-bottom: 1px solid var(--line-faint);
}
.drawer-head strong {
  font-family: var(--font-mono);
  letter-spacing: -.04em;
}
/* 닫기 — 테두리형 icon-x 하나(16px, 툴바·버튼 단). 터치 타깃 44px. */
.drawer-head button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.drawer-head button:hover {
  background: var(--line-faint);
  color: var(--text);
}
.drawer-head button .ui-icon {
  width: 16px;
  height: 16px;
}
.drawer-links {
  display: grid;
  gap: 0;
  align-content: start;
}
.drawer-group {
  display: grid;
  gap: 0;
}
/* 두 번째 그룹(운영)은 첫 그룹과 iOS 설정의 섹션 간격으로 뗀다. 비어 있는 마운트는 자리를 먹지 않는다. */
.drawer-group:empty {
  display: none;
}
.drawer-group + .drawer-group:not(:empty) {
  margin-top: var(--space-5);
}
.drawer .list-row {
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}
.drawer .list-row-title {
  font-weight: 500;
}
.drawer-logout {
  min-height: 48px;
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
}
.drawer-logout:hover {
  border-color: var(--text-3);
}
.login-sheet {
  border-color: #333;
  background: #0b0b0b;
}
@media (prefers-reduced-motion: reduce) {
  .wordmark span {
    animation: none;
  }
  .drawer, .shade {
    transition: none;
  }
}
@media (max-width: 520px) {
  .wordmark {
    font-size: clamp(2.75rem, 15vw, 5rem);
  }
  /* 모바일: 화면 폭 - 24px (375px에서 351px). */
  .drawer {
    width: calc(100vw - 24px);
    padding: 12px 12px 16px;
  }
}
