/* 크리퍼 항구 — 스타일
   바닷가: 밤바다(헤더·히어로) → 물보라 흰색(본문) → 모래(FAQ) → 깊은 바다(푸터).
   물고기 수조(--abyss)는 어종 렌더 배경색과 같은 값이라 이미지가 끊김 없이 이어진다. */

:root {
  --night: #0a2337;
  --sea-deep: #0f3a55;
  --sea: #17698f;
  --sea-bright: #2a9fd0;
  --lagoon: #5cc8cc;
  --foam: #f2f8f9;
  --mist: #e2eff2;
  --sand: #f3e6cb;
  --sand-deep: #e2cc9f;
  --sun: #ffc857;
  --sun-strong: #f5b52e;
  --coral: #d9473a;
  --coral-strong: #c03a2e;
  --abyss: #1b2733;
  --abyss-line: #34485b;

  --surface: #fff;
  --line: #d5e4e8;
  --line-strong: #b3cad1;
  --ink: #10283a;
  --ink-2: #435a6b;
  --ink-3: #66798a;
  --on-dark: #eef6f9;
  --on-dark-2: #a9c2d0;

  --font-sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  --font-serif: "Gowun Batang", "Nanum Myeongjo", serif;

  --wrap: 76rem;
  --gutter: 1.25rem;
  --bar-h: 4.25rem;
  --ease: cubic-bezier(.3, .7, .2, 1);
}

/* 등급 색: 정보를 나타낼 때만 사용 */
.grade--common, .seg--common, [data-grade-filter="common"] { --g: #aab5be; --g-ink: #56636d; --g-bg: #eceff2; }
.grade--uncommon, .seg--uncommon, [data-grade-filter="uncommon"] { --g: #6fd38a; --g-ink: #1b7a45; --g-bg: #e2f5e8; }
.grade--rare, .seg--rare, [data-grade-filter="rare"] { --g: #62adff; --g-ink: #1d5fb8; --g-bg: #e5efff; }
.grade--epic, .seg--epic, [data-grade-filter="epic"] { --g: #b88cff; --g-ink: #6a3fc4; --g-bg: #f0e9ff; }
.grade--legendary, .seg--legendary, [data-grade-filter="legendary"] { --g: #ffb84d; --g-ink: #8f5200; --g-bg: #fff0d9; }
.grade--mythic, .seg--mythic, [data-grade-filter="mythic"] { --g: #ff7aa6; --g-ink: #ad1f55; --g-bg: #ffe6ee; }

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--foam); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
.topline :focus-visible, .hero :focus-visible, .promise :focus-visible, .signal :focus-visible, .colophon :focus-visible,
.page-head--sea :focus-visible, .sheet :focus-visible, .lost :focus-visible, .voyage__chart:focus-visible { outline-color: var(--sun); }

.icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- 버튼과 링크 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 12px; padding: .8125rem 1.375rem;
  font-weight: 700; font-size: .9375rem; line-height: 1.4; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--sun { background: var(--sun); color: #3a2800; }
.btn--sun:hover { background: var(--sun-strong); }
.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: var(--sea-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--sea-deep); }
.btn--ghost-dark { border-color: rgb(255 255 255 / .28); color: var(--on-dark); }
.btn--ghost-dark:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .5); }
.btn--line { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--sea); color: var(--sea); }
.text-link {
  display: inline-block; color: var(--sea); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--light { color: var(--sun); }

/* ---------- 등급 표시 ---------- */
.grade {
  display: inline-block; flex-shrink: 0; border-radius: 999px; padding: .0625rem .5rem;
  font-size: .75rem; font-weight: 700; line-height: 1.6;
  color: var(--g-ink); background: var(--g-bg);
}
.tank .grade, .catch .grade, .sheet .grade { color: var(--g); background: color-mix(in srgb, var(--g) 15%, transparent); }
.grade-bar { margin-top: 2rem; }
.grade-bar__track { display: flex; gap: 2px; height: .625rem; border-radius: 999px; overflow: hidden; }
.grade-bar__seg { background: var(--g); min-width: 4px; }
.grade-bar__legend { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin-top: .75rem; font-size: .875rem; color: var(--ink-2); }
.grade-bar__legend span { display: inline-flex; align-items: center; gap: .375rem; }
.grade-bar__legend i { width: .625rem; height: .625rem; border-radius: 3px; background: var(--g); }
.grade-bar__legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
.page-head--sea .grade-bar__legend { color: var(--on-dark-2); }
.page-head--sea .grade-bar__legend b { color: var(--on-dark); }

/* ---------- 공지 띠 ---------- */
.topline { background: var(--night); color: var(--on-dark); }
.topline__inner { display: flex; align-items: center; justify-content: center; gap: .75rem; height: 2.5rem; font-size: .8125rem; }
.topline__dot { position: relative; width: .5rem; height: .5rem; flex-shrink: 0; }
.topline__dot::before, .topline__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sun); }
@media (prefers-reduced-motion: no-preference) {
  .topline__dot::before { animation: beacon 1.6s ease-out infinite; }
  @keyframes beacon { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
}
.topline__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topline__text b { color: var(--sun); }
.topline__more { color: var(--on-dark-2); }
@media (max-width: 47.99rem) { .topline__more { display: none; } }
.topline__dday { flex-shrink: 0; border-radius: 999px; background: rgb(255 255 255 / .1); padding: .0625rem .5rem; font-size: .75rem; font-weight: 800; color: var(--sun); font-variant-numeric: tabular-nums; }
.topline__cta { flex-shrink: 0; border-radius: 6px; background: var(--sun); color: #3a2800; padding: .1875rem .625rem; font-weight: 800; font-size: .75rem; }
.topline__cta:hover { background: var(--sun-strong); }

/* ---------- 헤더 ---------- */
.masthead { position: sticky; top: 0; z-index: 40; }
.quicklinks { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .quicklinks { display: block; } }
.quicklinks__inner { display: flex; justify-content: flex-end; gap: .25rem; height: 2.125rem; align-items: center; }
.quicklinks a { padding: .125rem .625rem; border-radius: 4px; font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.quicklinks a:hover { color: var(--sea); background: var(--mist); }

.masthead__main {
  position: relative;
  background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar { display: flex; align-items: center; gap: 1rem; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.brand img { width: 2.25rem; height: 2.25rem; }
.brand__name { display: flex; flex-direction: column; font-weight: 800; font-size: 1.0625rem; line-height: 1.15; letter-spacing: -.01em; }
.brand__name small { font-size: .625rem; font-weight: 700; letter-spacing: .14em; color: var(--sea); }
.brand--light { color: #fff; }
.brand--light .brand__name small { color: var(--lagoon); }

/* 데스크톱 메뉴: 위 항목에 올리면 전체 드롭다운이 열린다 */
.menu { display: none; align-self: stretch; margin-left: 1rem; }
@media (min-width: 64rem) { .menu { display: flex; align-items: center; } }
.menu__top { display: flex; gap: .125rem; }
.menu__top a {
  position: relative; padding: .5rem .875rem; border-radius: 8px;
  font-size: .9375rem; font-weight: 700; color: var(--ink-2);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.menu__top a:hover { color: var(--sea); background: var(--mist); }
.menu__top a[aria-current="page"] { color: var(--ink); }
.menu__top a[aria-current="page"]::after { content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .125rem; height: 2px; border-radius: 2px; background: var(--sea); }
.menu__drop {
  position: absolute; left: 0; right: 0; top: 100%; padding-top: .375rem; z-index: 45;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s var(--ease) .18s, visibility .15s var(--ease) .18s, transform .15s var(--ease) .18s;
}
.menu:hover .menu__drop, .menu:focus-within .menu__drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu__panel {
  border-radius: 16px; padding: 1.5rem 1.75rem; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(10 35 55 / .35);
  border-top: 3px solid var(--sea);
}
.menu-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.menu-col__title { padding: 0 .5rem .375rem; font-size: .75rem; font-weight: 800; color: var(--sea); }
.menu-col a { display: block; padding: .375rem .5rem; border-radius: 8px; font-size: .875rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.menu-col a:hover { background: var(--mist); color: var(--sea); }
.menu-col small { display: block; margin-top: .125rem; font-size: .75rem; font-weight: 400; color: var(--ink-3); }

.masthead__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.address {
  display: none; align-items: center; gap: .5rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  padding: .3125rem .375rem .3125rem .875rem; font-size: .875rem; font-weight: 700;
  transition: border-color .15s var(--ease);
}
.address:hover { border-color: var(--sea); }
@media (min-width: 80rem) { .address { display: inline-flex; } }
.address__icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--mist); color: var(--sea); }
.address__icon .icon { width: 1rem; height: 1rem; }
.donate-btn {
  flex-shrink: 0; border-radius: 10px; padding: .5625rem 1rem; background: var(--coral); color: #fff;
  font-size: .875rem; font-weight: 700; transition: background-color .15s var(--ease);
}
.donate-btn:hover { background: var(--coral-strong); }
.menu-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }
@media (min-width: 64rem) { .menu-toggle { display: none; } }
@media (max-width: 30rem) {
  .masthead__bar { gap: .5rem; }
  .masthead__actions { gap: .375rem; }
  .brand__name small { display: none; }
  .brand img { width: 2rem; height: 2rem; }
  .donate-btn, .account--login { padding: .5rem .6875rem; font-size: .8125rem; }
}

.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100dvh - 7rem); overflow-y: auto; }
.drawer.is-open { display: block; }
@media (min-width: 64rem) { .drawer, .drawer.is-open { display: none; } }
.drawer__inner { padding-block: 1.25rem 1.5rem; }
.drawer .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
.drawer__address { width: 100%; margin-top: 1.25rem; padding: .75rem; border-radius: 10px; border: 1px dashed var(--line-strong); font-weight: 700; color: var(--sea); }

/* 계정 */
.account {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  border-radius: 10px; padding: .3125rem .75rem .3125rem .3125rem;
  font-size: .875rem; font-weight: 700; border: 1px solid var(--line-strong); background: var(--surface);
}
.account:hover { border-color: var(--sea); }
.account--login { padding: .5625rem 1rem; background: var(--sea); border-color: var(--sea); color: #fff; }
.account--login:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.account__name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 30rem) {
  .account__name { display: none; }
  .account:not(.account--login) { padding-right: .3125rem; }
}
/* 스킨 텍스처 64×64에서 얼굴(8,8)과 모자(40,8)를 겹쳐 보여준다 */
.skin-face {
  --s: 3;
  display: inline-block; flex-shrink: 0; width: calc(8px * var(--s)); height: calc(8px * var(--s));
  border-radius: 4px;
  background:
    var(--skin) calc(-40px * var(--s)) calc(-8px * var(--s)) / calc(64px * var(--s)) calc(64px * var(--s)) no-repeat,
    var(--skin) calc(-8px * var(--s)) calc(-8px * var(--s)) / calc(64px * var(--s)) calc(64px * var(--s)) no-repeat,
    var(--abyss);
  image-rendering: pixelated;
}
.skin-face--none { background: linear-gradient(var(--sea), var(--sea-deep)); }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: 5rem; }
@media (min-width: 48rem) { .section { padding-block: 6rem; } }
.section--tight { padding-block: 3rem 6rem; }
.section__head { max-width: 44rem; margin-bottom: 2.5rem; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section__head--split > div { max-width: 44rem; }
.section__title { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.3; text-wrap: balance; }
.section__lead { margin-top: .875rem; font-size: 1.0625rem; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }

/* ---------- 히어로: 밤바다 ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: linear-gradient(180deg, #071c2d 0%, var(--night) 30%, var(--sea-deep) 70%, #145a7c 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky::before { /* 별 */
  content: ""; position: absolute; inset: 0 0 45% 0; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%);
}
.hero__beam { /* 등대 불빛 */
  position: absolute; top: -10%; left: -20%; width: 80%; height: 70%;
  background: conic-gradient(from 100deg at 0% 30%, transparent 0deg, rgb(255 200 87 / .12) 12deg, transparent 26deg);
}
.hero__grid { position: relative; display: grid; gap: 3rem; padding-block: 4rem 8rem; align-items: center; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; padding-block: 5.5rem 9.5rem; } }
.hero__kicker { font-size: .9375rem; font-weight: 700; color: var(--lagoon); }
.hero__title { margin-top: .5rem; font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.125rem, 1.3rem + 2.9vw, 3.25rem); line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.hero__lead { margin-top: 1.25rem; max-width: 30em; font-size: 1.0625rem; color: var(--on-dark-2); }
.hero__join { margin-top: 2.25rem; }
.hero__join-label { font-size: .875rem; color: var(--on-dark-2); }
.hero__address {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: .375rem;
  padding: .5rem 1rem; border-radius: 12px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .18);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; color: var(--sun);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.hero__address:hover { border-color: var(--sun); background: rgb(255 255 255 / .1); }
.hero__address .icon { width: 1.25rem; height: 1.25rem; color: var(--on-dark-2); }
.hero__join-note { margin-top: .75rem; font-size: .875rem; color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* 파도 */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 7rem; overflow: hidden; }
@media (max-width: 47.99rem) { .waves { height: 4rem; } }
.waves__back { fill: #1e7aa3; opacity: .55; }
.waves__mid { fill: #3a9fc8; opacity: .45; }
.waves__front { fill: var(--foam); }
@media (prefers-reduced-motion: no-preference) {
  .waves__front { animation: swell 10s linear infinite; }
  @keyframes swell { to { transform: translateX(-540px); } }
}

/* 포획 카드 */
.catch { position: relative; border: 1px solid rgb(255 255 255 / .14); border-radius: 18px; overflow: hidden; background: rgb(10 35 55 / .72); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.catch__glass { aspect-ratio: 16 / 10; overflow: hidden; background: var(--abyss); }
.catch__glass img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.catch__body { padding: 1.25rem 1.5rem 1.5rem; }
.catch__title { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.catch__title h2 { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.3; }
.catch__facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin-top: 1rem; font-size: .875rem; }
.catch__facts div { display: contents; }
.catch__facts dt { color: var(--on-dark-2); }
.catch__facts dd { font-weight: 600; }
.catch__lore { margin-top: 1rem; padding-left: .875rem; border-left: 2px solid rgb(92 200 204 / .6); font-size: .9375rem; color: var(--on-dark-2); }
.catch__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.catch__more { font-size: .875rem; font-weight: 700; color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .catch__glass img { animation: surface .7s var(--ease) both; }
  .catch__glass img.is-surfacing { animation: surface .55s var(--ease) both; }
  @keyframes surface { from { opacity: 0; transform: scale(1.12) translateY(18px); } to { opacity: 1; transform: scale(1.12) translateY(0); } }
}

/* ---------- 진행 방식 ---------- */
.loop { padding-top: 3rem; }
.loop__steps { display: grid; gap: 2rem 1.75rem; counter-reset: step; }
@media (min-width: 36rem) { .loop__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .loop__steps { grid-template-columns: repeat(4, 1fr); } }
.loop__steps li { counter-increment: step; border-top: 2px solid var(--sea); padding-top: 1rem; }
.loop__steps li::before { content: counter(step); display: block; font-size: .875rem; font-weight: 800; color: var(--sea); font-variant-numeric: tabular-nums; }
.loop__steps h3 { margin-top: .25rem; font-size: 1.125rem; }
.loop__steps p { margin-top: .5rem; color: var(--ink-2); font-size: .9375rem; }

/* ---------- 지역 항로 ---------- */
.seas { background: var(--surface); border-block: 1px solid var(--line); padding-block: 5rem; }
@media (min-width: 48rem) { .seas { padding-block: 6rem; } }
.seas__grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .seas__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .seas__copy { position: sticky; top: calc(var(--bar-h) + 4rem); }
}
.seas__copy .text-link { margin-top: 1.5rem; }
.seas__legend { margin-top: .75rem; font-size: .875rem; color: #b97f00; }
.route { position: relative; }
.route::before { content: ""; position: absolute; left: .4375rem; top: 1.25rem; bottom: 1.25rem; border-left: 2px dashed var(--line-strong); }
.route__stop { position: relative; display: grid; grid-template-columns: 1rem 1fr auto; gap: 1.25rem; align-items: start; padding-block: 1rem; }
.route__stop + .route__stop::before { content: ""; position: absolute; left: 2.25rem; right: 0; top: 0; border-top: 1px solid var(--line); }
.route__dot { position: relative; width: 1rem; height: 1rem; margin-top: .375rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--sea); }
.route__body h3 { font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.route__body p { font-size: .875rem; color: var(--ink-3); }
.route__q { font-size: .875rem; letter-spacing: .08em; color: #b97f00; padding-top: .25rem; white-space: nowrap; }
.realm { display: inline-block; border-radius: 6px; padding: 0 .4375rem; font-size: .75rem; font-weight: 700; line-height: 1.7; background: var(--mist); color: var(--sea); font-family: var(--font-sans); }
.realm--lava { background: #fde6db; color: #a3330b; }
.realm--trench { background: #dfe7f1; color: #23476b; }
.realm--void { background: #eee6fb; color: #5b2fa8; }

/* ---------- 수조 ---------- */
.aquarium__tanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.tank { display: block; width: 100%; text-align: left; border-radius: 14px; overflow: hidden; background: var(--abyss); color: var(--on-dark); border: 1px solid var(--abyss); transition: border-color .2s var(--ease); }
.tank__glass { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.tank__glass img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform .35s var(--ease), filter .3s var(--ease); }
.tank:hover { border-color: var(--lagoon); }
.tank:hover .tank__glass img { transform: scale(1.42); }
.tank__label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .125rem .5rem; padding: .5rem .75rem .75rem; }
.tank__no { grid-column: 1 / -1; font-size: .75rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.tank__name { font-weight: 700; font-size: .9375rem; line-height: 1.4; min-width: 0; }
/* 렌더 이미지는 배경까지 불투명이라 실루엣 대신 탁한 물 처리 */
.tank.is-veiled .tank__glass img, .sheet img.is-veiled { filter: blur(9px) brightness(.6) saturate(0); }
.reveal-all .tank.is-veiled .tank__glass img { filter: none; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { min-width: 34rem; }
th, td { padding: .875rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-3); background: var(--mist); white-space: nowrap; }
tbody th { font-weight: 700; white-space: nowrap; }
td { color: var(--ink-2); font-size: .9375rem; }
td small { display: block; margin-top: .25rem; font-size: .8125rem; color: var(--ink-3); }
.jobs td:nth-child(2), .jobs td:nth-child(3) { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- 과금 정책 ---------- */
.promise { background: var(--sea-deep); color: var(--on-dark); padding-block: 5rem; }
@media (min-width: 48rem) { .promise { padding-block: 6rem; } }
.promise__grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .promise__grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.promise__lead { margin: .875rem 0 1.25rem; color: var(--on-dark-2); }
.promise__list li { border-top: 1px solid rgb(255 255 255 / .14); padding-block: 1.25rem; }
.promise__list li:last-child { border-bottom: 1px solid rgb(255 255 255 / .14); }
.promise__list h3 { font-size: 1.0625rem; }
.promise__list p { margin-top: .375rem; color: var(--on-dark-2); font-size: .9375rem; }

/* ---------- 일정 (메인) ---------- */
.milestones { display: grid; gap: 2rem 1.75rem; }
@media (min-width: 48rem) { .milestones { grid-template-columns: repeat(3, 1fr); } }
.milestones li { border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.milestones time { font-size: .875rem; font-weight: 700; color: var(--ink-3); }
.milestones h3 { margin-top: .25rem; font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.milestones p { margin-top: .375rem; color: var(--ink-2); font-size: .9375rem; }
.milestones li.is-done { border-top-color: var(--ink); }
.milestones li.is-now, .milestones li.is-next { border-top-color: var(--sea); }
.state-badge { display: inline-block; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; line-height: 1.7; font-family: var(--font-sans); background: var(--mist); color: var(--sea); }
.is-now .state-badge { background: var(--sun); color: #3a2800; }

/* ---------- 모래사장 (FAQ) ---------- */
.beach { position: relative; background: var(--sand); padding-block: 4rem 5rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .beach { padding-block: 5rem 6rem; } }
.beach__edge { position: absolute; left: 0; right: 0; top: -47px; width: 100%; height: 48px; fill: var(--sand); }
.faq { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .faq { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.faq__list details { border-bottom: 1px solid var(--sand-deep); }
.faq__list details:first-child { border-top: 1px solid var(--sand-deep); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex-shrink: 0; width: .625rem; height: .625rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-25%) rotate(45deg); transition: transform .2s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq__list details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 40em; }

/* ---------- 디스코드 띠 ---------- */
.signal {
  background:
    radial-gradient(36rem 14rem at 50% 105%, rgb(255 200 87 / .28), transparent 70%),
    linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--on-dark); text-align: center; padding-block: 5rem 6.5rem;
}
.signal__inner { display: flex; flex-direction: column; align-items: center; }
.signal h2 { font-family: var(--font-serif); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.3; }
.signal p { margin-top: .75rem; color: var(--on-dark-2); }
.signal .btn { margin-top: 1.75rem; }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { position: relative; padding-block: 4rem 3rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .page-head { padding-block: 4.5rem 3.5rem; } }
.page-head--sea {
  color: var(--on-dark); border-bottom: 0; padding-bottom: 5rem;
  background: linear-gradient(180deg, var(--night) 0%, var(--sea-deep) 60%, #145a7c 100%);
}
@media (min-width: 48rem) { .page-head--sea { padding-bottom: 6rem; } }
.page-head--sea::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22c120-16 240-16 360 0s240 16 360 0 240-16 360 0 240 16 360 0v18H0Z' fill='%23f2f8f9'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.page-head__title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.page-head__lead { margin-top: 1rem; max-width: 40em; font-size: 1.0625rem; color: var(--ink-2); }
.page-head--sea .page-head__lead { color: var(--on-dark-2); }
.page-head__cta { margin-top: 1.5rem; }
.page-head__notice { margin-top: 1.25rem; display: inline-block; padding: .5rem .875rem; border-radius: 10px; background: rgb(255 200 87 / .14); border: 1px solid rgb(255 200 87 / .35); color: var(--sun); font-size: .875rem; font-weight: 600; }

/* ---------- 세계관 ---------- */
.story__timeline { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .story__timeline { grid-template-columns: repeat(3, 1fr); } }
.story__when { font-size: .875rem; font-weight: 700; color: var(--sea); }
.story__timeline h3 { margin-top: .25rem; font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.35; }
.story__timeline p:not(.story__when) { margin-top: .625rem; color: var(--ink-2); }
.story__note, .callout { margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: 10px; background: var(--mist); border-left: 3px solid var(--sea); color: var(--ink); }
.regions-section, .people-section { background: var(--surface); border-block: 1px solid var(--line); }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }
.region { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--foam); scroll-margin-top: calc(var(--bar-h) + 1rem); }
.region__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.region__head h3 { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.35; }
.region__env { margin-top: .25rem; color: var(--ink-2); font-size: .9375rem; }
.region__facts { margin-top: 1rem; flex: 1; }
.region__facts div { display: grid; grid-template-columns: 6.25rem 1fr; gap: .75rem; padding-block: .5rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.region__facts dt { color: var(--ink-3); font-size: .8125rem; padding-top: .125rem; }
.region__fish { margin-top: 1rem; font-weight: 700; font-size: .9375rem; color: var(--sea); text-decoration: underline; text-underline-offset: 4px; }
.facts-grid { display: grid; column-gap: 2.5rem; }
@media (min-width: 36rem) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.facts-grid div { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.facts-grid dt { font-weight: 700; }
.facts-grid dd { margin-top: .375rem; color: var(--ink-2); font-size: .9375rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; }
.person { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.person h3 { font-family: var(--font-serif); font-size: 1.125rem; }
.person__where { font-size: .8125rem; font-weight: 700; color: var(--sea); }
.person p:last-child { margin-top: .375rem; color: var(--ink-2); font-size: .9375rem; }
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.boss { background: var(--sea-deep); color: var(--on-dark); border-radius: 14px; padding: 1.25rem 1.375rem; }
.boss h3 { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.4; }
.boss p { margin-top: .25rem; font-size: .875rem; color: var(--on-dark-2); }
.boss .boss__pattern { margin-top: .75rem; color: var(--sun); }

/* ---------- 문서형 페이지 (가이드, 후원) ---------- */
.doc { display: grid; gap: 2rem; padding-block: 2.5rem 6rem; }
@media (min-width: 64rem) { .doc { grid-template-columns: 12.5rem minmax(0, 1fr); gap: 4rem; padding-top: 3.5rem; } }
.doc__toc { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.doc__toc::-webkit-scrollbar { display: none; }
.doc__toc a { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: .375rem .875rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.doc__toc a.is-active { border-color: var(--sea); color: var(--sea); }
@media (min-width: 64rem) {
  .doc__toc { position: sticky; top: calc(var(--bar-h) + 4rem); align-self: start; flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; }
  .doc__toc a { border: 0; border-left: 2px solid var(--line); border-radius: 0; background: none; padding: .4375rem 0 .4375rem 1rem; color: var(--ink-3); }
  .doc__toc a:hover { color: var(--ink); }
  .doc__toc a.is-active { border-left-color: var(--sea); color: var(--ink); }
}
.doc__body { max-width: 46rem; }
.doc__body section { margin-bottom: 4.5rem; scroll-margin-top: calc(var(--bar-h) + 3rem); }
.doc__body section:last-child { margin-bottom: 0; }
.doc__body h2 { font-family: var(--font-serif); font-size: 1.875rem; line-height: 1.3; margin-bottom: 1rem; }
.doc__body h3 { font-size: 1.0625rem; margin: 1.75rem 0 .5rem; }
.doc__body p { color: var(--ink-2); margin-bottom: 1rem; }
.doc__body p b, .doc__body li b { color: var(--ink); }
.doc__body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; color: var(--ink-2); }
.doc__body ul li { margin-bottom: .5rem; }
.doc__body .table-wrap { margin-bottom: 1.25rem; }
.doc__body .callout { margin: 1.5rem 0 0; }
.steps { counter-reset: s; margin: 1.5rem 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3.25rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 800; font-size: .9375rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.0625rem; top: 2.5rem; bottom: .375rem; border-left: 2px dashed var(--line-strong); }
.doc__body .steps h3 { margin: .25rem 0; }
.doc__body .steps p { margin-bottom: .5rem; }
.inline-address { display: inline-flex; align-items: center; gap: .625rem; margin-top: .25rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: .5rem .875rem; font-weight: 800; font-size: 1.125rem; }
.inline-address:hover { border-color: var(--sea); }
.inline-address .icon { color: var(--sea); }
.split-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .split-list { grid-template-columns: 1fr 1fr; } }
.split-list > div { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; background: var(--surface); }
.doc__body .split-list h3 { margin: 0 0 .375rem; }
.doc__body .split-list p { margin: 0; font-size: .9375rem; }

/* 후원 등급 */
.tiers { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--surface); }
.tier--fleet { border-color: var(--sea); box-shadow: inset 0 3px 0 var(--sea); }
.doc__body .tier h3 { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; }
.doc__body .tier__price { margin: .25rem 0 1rem; font-size: 1.375rem; font-weight: 800; color: var(--ink); }
.doc__body .tier ul { margin: 0; }

/* ---------- 항로 지도 (개발 일정) ---------- */
.voyage__chart {
  overflow-x: auto; scrollbar-width: thin;
  background: linear-gradient(180deg, #145a7c 0%, var(--sea) 100%);
  color: #fff;
}
.voyage__map { width: 100%; max-width: 72rem; min-width: 46rem; height: auto; margin-inline: auto; padding-inline: var(--gutter); overflow: visible; }
.voyage__swell { color: #fff; }
.voyage__isles path { fill: var(--sand); stroke: var(--sand-deep); stroke-width: 2; }
.voyage__lighthouse rect { fill: #fff; }
.voyage__lighthouse .voyage__lamp { fill: var(--sun); }
.voyage__ray { fill: rgb(255 200 87 / .22); }
.voyage__route { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.voyage__wake { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; }
.voyage__port circle { fill: var(--night); stroke: #fff; stroke-width: 2.5; }
.voyage__port.is-done circle { fill: var(--sun); stroke: var(--sun); }
.voyage__port.is-done .voyage__num { fill: #3a2800; }
.voyage__port.is-current circle { stroke: var(--sun); stroke-width: 4; }
.voyage__num { fill: #fff; font: 800 17px var(--font-sans); text-anchor: middle; }
.voyage__label { fill: #fff; font: 700 17px var(--font-sans); text-anchor: middle; paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; }
.voyage__hull { fill: #7a4a24; }
.voyage__mast { fill: #5a3518; }
.voyage__sail { fill: #fff; }
.voyage__sail--small { fill: #e8f1f4; }
.voyage__flag { fill: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .voyage__bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 0 10px; transform-box: fill-box; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
}

.logbook { display: grid; gap: 1rem; padding-block: 3rem 5rem; }
@media (min-width: 48rem) { .logbook { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .logbook { grid-template-columns: repeat(3, 1fr); } }
.logbook > li { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.25rem 1.375rem 1.375rem 4rem; }
.logbook > li.is-now, .logbook > li.is-next { border-color: var(--sea); box-shadow: inset 0 3px 0 var(--sun); }
.logbook > li.is-done { background: var(--mist); }
.logbook__num { position: absolute; left: 1.25rem; top: 1.25rem; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--night); color: #fff; font-weight: 800; font-size: .875rem; }
.logbook > li.is-done .logbook__num { background: var(--sun); color: #3a2800; }
.logbook time { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.logbook h3 { margin-top: .125rem; font-family: var(--font-serif); font-size: 1.3125rem; line-height: 1.35; }
.logbook ul { margin-top: .625rem; padding-left: 1rem; list-style: disc; color: var(--ink-2); font-size: .9375rem; }
.logbook ul li + li { margin-top: .25rem; }

/* ---------- 어종 도감 ---------- */
.dex__bar { position: sticky; top: calc(var(--bar-h) + 2.125rem); z-index: 30; background: rgb(242 248 249 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@media (max-width: 47.99rem) { .dex__bar { top: var(--bar-h); } }
.dex__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem 1rem; padding-block: .875rem; }
.search { display: flex; align-items: center; gap: .5rem; flex: 1 1 14rem; max-width: 20rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: .4375rem .75rem; }
.search:focus-within { border-color: var(--sea); }
.search .icon { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: .9375rem; }
.chips { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); padding: .3125rem .75rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.chip:hover { border-color: var(--sea); }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip--grade[aria-pressed="true"] { background: var(--g-bg); border-color: var(--g-ink); color: var(--g-ink); }
.switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch input { width: 1rem; height: 1rem; accent-color: var(--sea); }
@media (max-width: 47.99rem) {
  .dex__tools { gap: .5rem; }
  .search { max-width: none; flex-basis: 100%; }
  .chips { flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); max-width: none; }
}
.dex__body { padding-block: 1.5rem 6rem; }
.dex__count { font-size: .875rem; color: var(--ink-3); }
.dex__count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dex-group { margin-top: 2.5rem; }
.dex-group__title { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.35; }
.dex-group__title span { font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; color: var(--ink-3); margin-left: .25rem; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .875rem; margin-top: 1rem; }
.dex__empty { padding: 4rem 0; text-align: center; color: var(--ink-2); }
.dex__empty .btn { margin-top: 1rem; }

/* 어종 상세 시트 */
.sheet { width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; border: 1px solid var(--abyss-line); border-radius: 18px; padding: 0; overflow: auto; background: #1f3242; color: var(--on-dark); }
.sheet::backdrop { background: rgb(6 20 32 / .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .22s var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.sheet__glass { position: relative; aspect-ratio: 16 / 10; background: var(--abyss); overflow: hidden; }
.sheet__glass img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.sheet__views { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: rgb(10 25 36 / .7); }
.sheet__views button { padding: .25rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--on-dark-2); }
.sheet__views button[aria-pressed="true"] { background: var(--on-dark); color: var(--abyss); }
.sheet__close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(10 25 36 / .7); color: var(--on-dark); }
.sheet__close:hover { background: rgb(10 25 36 / .9); }
.sheet__body { padding: 1.25rem 1.5rem 1.5rem; }
@media (min-width: 40rem) { .sheet__body { padding: 1.5rem 2rem 2rem; } }
.sheet__no { font-size: .8125rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.sheet__title { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.sheet__title h2 { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.3; }
.sheet__facts { display: grid; gap: .75rem 1.5rem; margin-top: 1.25rem; }
@media (min-width: 36rem) { .sheet__facts { grid-template-columns: 1.3fr .7fr 1.4fr; } }
.sheet__facts dt { font-size: .75rem; color: var(--on-dark-2); }
.sheet__facts dd { font-weight: 600; font-size: .9375rem; }
.sheet__lore { margin-top: 1.25rem; padding-left: .875rem; border-left: 2px solid rgb(92 200 204 / .6); color: var(--on-dark-2); }
.sheet__reveal { margin-top: 1rem; background: var(--on-dark); color: var(--abyss); }
.sheet__reveal:hover { background: #fff; }
.sheet__nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.75rem; }
.sheet .btn--line { background: transparent; border-color: var(--abyss-line); color: var(--on-dark); }
.sheet .btn--line:hover { border-color: var(--on-dark-2); color: #fff; }
.sheet .btn--line:disabled { opacity: .4; cursor: default; }

/* ---------- 내 계정 ---------- */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; max-width: 40rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.75rem; }
.profile .skin-face { border-radius: 14px; }
.profile__label { font-size: .875rem; color: var(--ink-3); }
.profile__name { font-family: var(--font-serif); font-size: 1.875rem; line-height: 1.3; }
.profile__uuid { margin-top: .25rem; font-size: .8125rem; color: var(--ink-3); }
.profile__uuid code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); overflow-wrap: anywhere; }
.profile form { margin-top: 1.25rem; }
.profile--empty { display: block; }
.profile--empty p { color: var(--ink-2); margin-bottom: 1.25rem; }

/* ---------- 404 / 오류 ---------- */
.lost { background: linear-gradient(180deg, var(--night), var(--sea-deep)); color: var(--on-dark); min-height: 60vh; display: grid; align-items: center; }
.lost__inner { padding-block: 6rem; }
.lost p { margin-top: 1rem; color: var(--on-dark-2); }
.lost .btn { margin-top: 2rem; }
.lost__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.lost__actions .btn { margin-top: 0; }

/* ---------- 푸터: 깊은 바다 ---------- */
.colophon { position: relative; background: var(--night); color: var(--on-dark-2); font-size: .9375rem; }
.colophon__wave { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--night); }
.colophon__top { display: grid; gap: 2.5rem; padding-block: 3rem 2.5rem; }
@media (min-width: 56rem) { .colophon__top { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.colophon__brand p { margin-top: 1rem; font-size: .875rem; }
.colophon__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
.colophon__nav h2 { font-size: .8125rem; font-weight: 700; color: var(--on-dark); margin-bottom: .75rem; }
.colophon__nav a { display: block; padding-block: .25rem; overflow-wrap: anywhere; }
.colophon__nav a:hover { color: #fff; }
.colophon__legal { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 1.5rem 2.5rem; font-size: .8125rem; color: #7f98a8; }
.colophon__legal p + p { margin-top: .25rem; }

/* ---------- 알림 ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 1rem); background: var(--ink); color: #fff; border-radius: 999px; padding: .625rem 1.125rem; font-size: .875rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; max-width: calc(100% - 2rem); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 후원 관리 ---------- */
.donor { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: .875rem 1rem; max-width: 30rem; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.donor .skin-face { border-radius: 8px; }
.donor__body { flex: 1; min-width: 0; }
.donor__label { font-size: .75rem; color: var(--on-dark-2); }
.donor__name { font-size: 1.125rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donor__switch { padding: .5rem .875rem; font-size: .8125rem; }

.shop { padding-block: 2.5rem 6rem; max-width: 56rem; }
.shop__notice { padding: .875rem 1.125rem; border-radius: 10px; background: #fff4dc; border: 1px solid #f1d38f; color: #6b4a00; font-weight: 600; }
.shop-block { margin-top: 2.5rem; }
.shop-block__title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.3; }
.shop-block__note { margin-top: .25rem; font-size: .875rem; color: var(--ink-3); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin-top: 1rem; }
.product {
  display: flex; flex-direction: column; gap: .25rem; height: 100%;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.125rem 1.25rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
a.product:hover { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.product__name { font-weight: 700; }
.product__price { font-size: 1.125rem; font-weight: 800; color: var(--sea); }
.product.is-disabled { opacity: .55; cursor: not-allowed; }
.product.is-disabled .product__price { color: var(--ink-3); }
.custom-amount { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .75rem; padding: 1rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); }
.custom-amount__field { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.custom-amount__field input { width: 9rem; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.custom-amount__field input:focus { outline: none; border-color: var(--sea); }
.custom-amount__pearl { font-weight: 700; color: var(--sea); font-variant-numeric: tabular-nums; }
.custom-amount .btn { margin-left: auto; }
.shop__foot { margin-top: 3rem; font-size: .9375rem; color: var(--ink-2); }
.profile__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.profile__actions form { margin: 0; }

/* 푸터 사업자 정보 */
.colophon__biz { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 1.5rem; }
.biz { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .375rem 2rem; font-size: .8125rem; }
.biz div { display: flex; gap: .625rem; min-width: 0; }
.biz dt { flex-shrink: 0; color: #7f98a8; }
.biz dd { color: var(--on-dark-2); overflow-wrap: anywhere; }
.biz a:hover { color: #fff; }
.biz__check { margin-left: .375rem; padding: 0 .375rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 4px; font-size: .75rem; white-space: nowrap; }

/* ---------- 계좌이체 ---------- */
.bank-form { display: grid; gap: 1.25rem; margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); max-width: 36rem; }
.field { display: grid; gap: .375rem; }
.field__label { font-weight: 700; font-size: .9375rem; }
.field input[type="text"], .field__money input { width: 100%; padding: .625rem .875rem; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 1rem; background: var(--surface); }
.field input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgb(23 105 143 / .15); }
.field__money { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.field__money input { max-width: 14rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.field__hint { font-size: .8125rem; color: var(--ink-3); }
output.field__hint { font-size: .9375rem; font-weight: 700; color: var(--sea); }
.agree { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; }
.agree input { width: 1.0625rem; height: 1.0625rem; accent-color: var(--sea); }
.bank-form .btn { justify-self: start; }
.bank-form__note { font-size: .8125rem; color: var(--ink-3); }

.pay-status { display: inline-block; border-radius: 999px; padding: .0625rem .5rem; font-size: .75rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pay-status--pending { background: #fff1d6; color: #8a5a00; }
.pay-status--paid { background: #dff3e6; color: #1b7a45; }
.pay-status--expired, .pay-status--canceled { background: var(--mist); color: var(--ink-3); }

.order { max-width: 36rem; margin-top: 1rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.order__amount { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.order__pearls { font-weight: 700; color: var(--sea); }
.order__info { margin-top: 1.25rem; }
.order__info div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding-block: .625rem; border-top: 1px solid var(--line); }
.order__info dt { color: var(--ink-3); font-size: .875rem; padding-top: .125rem; }
.order__info dd { font-weight: 600; }
.order__left { margin-left: .375rem; font-size: .875rem; font-weight: 700; color: #8a5a00; font-variant-numeric: tabular-nums; }
.order__note { margin: 1rem 0 1.25rem; padding: .75rem 1rem; border-radius: 10px; background: var(--mist); font-size: .875rem; color: var(--ink-2); }
.order__done { margin: 1.25rem 0; color: var(--ink-2); }
.copy-inline { display: inline-flex; align-items: center; gap: .375rem; font-weight: 700; color: var(--ink); }
.copy-inline .icon { width: 1rem; height: 1rem; color: var(--sea); }
.copy-inline:hover { color: var(--sea); }

/* ---------- 관리자 ---------- */
.shop--wide { max-width: var(--wrap); }
.btn--sm { padding: .375rem .75rem; font-size: .8125rem; border-radius: 8px; }
.admin-summary { margin-top: .5rem; font-weight: 700; color: var(--sea); }
.admin-actions { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }
.admin-actions form { margin: 0; }
.admin-match { display: flex; gap: .375rem; }
.admin-match select { max-width: 16rem; padding: .3125rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: .8125rem; background: var(--surface); }
.admin-raw { max-width: 16rem; font-size: .8125rem; color: var(--ink-3); }
.admin-empty { text-align: center; color: var(--ink-3); }

/* ---------- 약관 ---------- */
.terms .doc__body h2 { font-size: 1.375rem; }
.terms .doc__body section { margin-bottom: 2.75rem; }
.terms__list { list-style: decimal; padding-left: 1.25rem; color: var(--ink-2); }
.terms__list > li { margin-bottom: .625rem; padding-left: .25rem; }
.terms__list ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0 0; }
.terms__list ul li { margin-bottom: .25rem; }
.terms__biz { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .875rem; }
.terms__biz div { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; padding-block: .25rem; }
.terms__biz dt { color: var(--ink-3); }
.shop__refund { padding: .875rem 1.125rem; border-radius: 10px; background: var(--mist); font-size: .875rem; color: var(--ink-2); }

/* ---------- 내 계정: 2단 구성 ---------- */
.me-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60rem) { .me-grid { grid-template-columns: minmax(0, 1fr) 22rem; } }
.me-grid__main { display: grid; gap: 1.5rem; min-width: 0; }
.me-grid .profile { max-width: none; }

.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.5rem 1.75rem; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.panel__title { font-family: var(--font-serif); font-size: 1.375rem; }
.panel__empty { color: var(--ink-3); margin-top: 1rem; }
.panel__cta { margin-top: 1.25rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; margin-block: 1rem; }
.stat-row div { border-radius: 12px; background: var(--foam); padding: .875rem 1rem; }
.stat-row dt { font-size: .8125rem; color: var(--ink-3); }
.stat-row dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.mini-orders { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.mini-orders li { border-bottom: 1px solid var(--line); }
.mini-orders a { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem .25rem; color: inherit; text-decoration: none; }
.mini-orders a:hover { background: var(--foam); }
.mini-orders__when { color: var(--ink-3); font-size: .875rem; font-variant-numeric: tabular-nums; }
.mini-orders__amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.shop-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.shop-block__title .count { font-family: var(--font-sans); font-size: .875rem; font-weight: 400; color: var(--ink-3); margin-left: .375rem; }

/* 서버 정보 카드 */
.panel--night { border-color: transparent; background: linear-gradient(170deg, var(--night), var(--sea-deep)); color: var(--on-dark); }
@media (min-width: 60rem) { .server-card { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
.server-card__eyebrow { font-size: .8125rem; letter-spacing: .08em; color: var(--lagoon); }
.server-card__name { font-family: var(--font-serif); font-size: 1.625rem; margin-top: .25rem; }
.server-card__address { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; padding: .875rem 1rem; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(255 255 255 / .06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.server-card__address:hover { background: rgb(255 255 255 / .12); }
.server-card__address small { display: block; font-size: .75rem; color: var(--on-dark-2); }
.server-card__address b { font-size: 1.125rem; letter-spacing: .02em; }
.server-card__facts { margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.server-card__facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.server-card__facts dt { color: var(--on-dark-2); }
.server-card__facts dd { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.server-card__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgb(255 200 87 / .25); }
.server-card__steps { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgb(255 255 255 / .12); display: grid; gap: .75rem; }
.server-card__steps li { display: grid; grid-template-columns: 1fr auto; gap: .125rem .75rem; }
.server-card__steps span { font-size: .8125rem; color: var(--on-dark-2); }
.server-card__steps b { grid-column: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.server-card__steps em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--sun); }
.server-card__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.server-card__links .btn { flex: 1 1 auto; justify-content: center; }
