/* 포스크탑 사이트 (첫 화면 + 안내서). 빌드 없이 GitHub Pages 가 그대로 내보낸다.
   색은 게임 화면의 것이다: 짙은 남색 바탕, 금색 강조 하나, 풀숲의 초록은 장식에만.
   모서리 규칙: 상자·단추·입력칸은 8px, 작은 표식(칩)만 4px.
   겹침 순서: 위에 붙는 줄 20, 그 밖에는 쓰지 않는다. */
:root {
  color-scheme: dark;
  --ink: #0d1017;
  --bg: #131722;
  --panel: #1b2030;
  --raised: #262d42;
  --line: #2a3147;
  --line2: #39415e;
  --fg: #f2f4fb;
  --dim: #a9b1c9;
  --faint: #8089a6;
  --gold: #ffc043;
  --gold-deep: #b9861f;
  --gold-ink: #2a1f08;
  --gold-text: #ffd27a;
  --grass: #5fd97a;
  --warn: #ff9b9b;
  --warn-bg: #2a1a1e;
  --plate-bg: #11141c; --plate-line: #2a3040; --plate-fg: #ffc043;
  --t-monster: #e5484d; --t-super: #3b82f6; --t-hyper: #f5b301; --t-master: #8b5cf6;
  --t-elite: #12a594; --t-champ: #ffc043;
  --display: "Bagel Fat One", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 8px;
  --r-s: 4px;
  --page: 72rem;
  --measure: 44rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #e8ebf5; --bg: #f4f5fb; --panel: #fcfcff; --raised: #eaedf7;
    --line: #dde1ee; --line2: #c2c8dd;
    --fg: #171b29; --dim: #4a5470; --faint: #68718e;
    --gold-text: #875500; --grass: #1c8a44; --warn: #c03030; --warn-bg: #fdecec;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #e8ebf5; --bg: #f4f5fb; --panel: #fcfcff; --raised: #eaedf7;
  --line: #dde1ee; --line2: #c2c8dd;
  --fg: #171b29; --dim: #4a5470; --faint: #68718e;
  --gold-text: #875500; --grass: #1c8a44; --warn: #c03030; --warn-bg: #fdecec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 1rem; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-s);
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
strong { font-weight: 700; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
kbd { display: inline-block; padding: 0 0.4em; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: var(--r-s); background: var(--raised); line-height: 1.5; }
.ph { line-height: 1; }

/* ---------- 위에 붙는 줄 ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line2); }
.nav-in { max-width: var(--page); margin: 0 auto; min-height: 64px; padding: 0 1.25rem; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--fg); flex: none; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--gold-ink); }

/* ---------- 단추 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.62rem 1.1rem; border-radius: var(--r); font-weight: 700; text-decoration: none;
  background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold);
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.ghost { background: var(--panel); color: var(--fg); border-color: var(--line2); box-shadow: 0 3px 0 var(--line2); }
.btn.ghost:hover { box-shadow: 0 4px 0 var(--line2); background: var(--raised); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--line2); }
.btn.small { padding: 0.4rem 0.85rem; font-size: 0.92rem; }

/* ---------- 풀숲 (장을 가르는 띠) ---------- */
.grass { height: 14px; opacity: 0.9;
  background: repeating-linear-gradient(100deg, transparent 0 7px, var(--grass) 7px 9px, transparent 9px 15px),
              repeating-linear-gradient(80deg, transparent 0 11px, var(--grass) 11px 13px, transparent 13px 21px);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent); mask-image: linear-gradient(to top, #000 15%, transparent);
  border-bottom: 2px solid var(--grass);
}

/* ---------- 풀밭: 직접 그린 도트가 걸어다닌다 (assets/pets.js) ---------- */
.meadow { position: relative; height: 7.5rem; overflow: hidden; isolation: isolate; border-bottom: 2px solid var(--grass); }
.meadow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 1000; pointer-events: none; opacity: 0.9;
  background: repeating-linear-gradient(100deg, transparent 0 7px, var(--grass) 7px 9px, transparent 9px 15px),
              repeating-linear-gradient(80deg, transparent 0 11px, var(--grass) 11px 13px, transparent 13px 21px);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent); mask-image: linear-gradient(to top, #000 15%, transparent); }
/* 도트와 풀숲의 크기·그림은 pets.js 가 직접 입힌다 (스타일이 옛것으로 남은 브라우저에서도 보이게) */
.pet, .tuft { will-change: transform; }
.tuft i { transform-origin: 50% 100%; }
.tuft:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-s); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes sprout { from { transform: scaleY(0); } 60% { transform: scaleY(1.18); } to { transform: scaleY(1); } }
.meadow-tip { margin-top: 0.55rem; font-size: 0.88rem; color: var(--faint); }

/* ============================================================ 첫 화면 */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.2; }
.sub { color: var(--dim); font-size: 1.08rem; max-width: 36rem; margin-top: 0.8rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--gold-text); margin-bottom: 0.9rem; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.16; }
.hero h1 span { color: var(--gold-text); }
.hero .sub { font-size: 1.12rem; margin-top: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.screen { margin: 0; border: 2px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px -18px var(--ink); }
.screen img { display: block; width: 100%; }
.screen figcaption { padding: 0.5rem 0.85rem; font-size: 0.85rem; color: var(--dim); border-top: 1px solid var(--line); }

/* 걷는 방향: 그림은 왼쪽에 알맞은 크기로, 글은 오른쪽에 */
.walk { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.walk .screen img { background: #f5f6fb; }

/* 켜 두면 생기는 일: 옆으로 이어지는 띠 */
.loop { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--line2); }
.loop > div { position: relative; padding: 1.5rem 1.1rem 0 0; display: grid; gap: 0.35rem; align-content: start; }
.loop > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--gold); }
.loop i { font-size: 1.7rem; color: var(--gold-text); }
.loop b { font-size: 1.08rem; }
.loop span { color: var(--dim); font-size: 0.94rem; line-height: 1.6; }

/* 다 키웠다면: 크기가 다른 칸 다섯 */
.bento { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(11.5rem, auto); gap: 0.9rem; }
.cell { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); color: var(--fg); text-decoration: none; display: grid; align-content: end; padding: 1.2rem 1.3rem; min-width: 0; }
.cell b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; position: relative; }
.cell span { color: var(--dim); font-size: 0.96rem; position: relative; max-width: 26rem; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cell:hover img { transform: scale(1.04); }
.cell.pic { color: #f2f4fb; }
.cell.pic span { color: #d5daea; }
.cell.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 16, 23, 0.94) 8%, rgba(13, 16, 23, 0.55) 42%, rgba(13, 16, 23, 0) 72%); }
.cell.pic b, .cell.pic span { z-index: 1; }
.c-gym { grid-column: 1 / 5; grid-row: 1 / 3; }
.c-arena { grid-column: 5 / 7; grid-row: 1; }
.c-mega { grid-column: 5 / 7; grid-row: 2; background: radial-gradient(120% 140% at 100% 0%, #fff0c2 0%, #ffc043 38%, #e8912b 100%); border-color: transparent; color: #1c1408; }
.c-mega span { color: #3a2808; }
.c-guild { grid-column: 1 / 4; grid-row: 3; }
.c-guild::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 9px, var(--grass) 9px 11px, transparent 11px 19px);
  opacity: 0.4; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 62%); mask-image: linear-gradient(to bottom, #000, transparent 62%); }
.c-dex { grid-column: 4 / 7; grid-row: 3; align-content: space-between; }
.c-dex em { font-style: normal; font-family: var(--display); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* 시작: 큰 글씨 세 줄 */
.start { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line2); }
.start > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 2rem; align-items: baseline; padding-block: 1.25rem; }
.start > div + div { border-top: 1px solid var(--line); }
.start b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.25; }
.start span { color: var(--dim); }

/* 안내서 차례 */
.index { margin-top: 2rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem 2.5rem; }
.index h3 { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; color: var(--faint); padding-bottom: 0.6rem; border-bottom: 2px solid var(--line2); margin-bottom: 0.5rem; }
.index a { display: grid; gap: 0; padding-block: 0.55rem; text-decoration: none; color: var(--fg); }
.index a b { font-size: 1.08rem; transition: color 0.18s var(--ease); }
.index a:hover b { color: var(--gold-text); }
.index a span { color: var(--dim); font-size: 0.92rem; line-height: 1.55; }

/* 마지막 받기 */
.last { background: var(--ink); border-top: 1px solid var(--line2); }
.last .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(3rem, 7vw, 5rem); }
.last p { color: var(--dim); margin-top: 0.6rem; }
.last .files { font-size: 0.94rem; margin-top: 0.3rem; }

.foot { max-width: var(--page); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--faint); font-size: 0.86rem; display: grid; gap: 0.35rem; }
.foot a { color: var(--dim); }

/* ============================================================ 안내서 */
.tabs-bar { background: var(--ink); border-bottom: 2px solid var(--line2); position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; }
.tabs-in { max-width: var(--page); margin: 0 auto; padding: 0.55rem 1.25rem 0; display: flex; align-items: flex-end; gap: 1rem; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; min-width: 0; flex: 1 1 auto; }
.tabs a { flex: none; padding: 0.42rem 0.85rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.tabs a:hover { color: var(--fg); background: var(--raised); }
.tabs a.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.find { flex: 0 1 13rem; min-width: 9rem; padding-bottom: 0.5rem; }
.find input { width: 100%; font: inherit; font-size: 0.92rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); padding: 0.35rem 0.75rem; }
.find input::placeholder { color: var(--faint); }
.found { max-width: var(--page); margin: 0 auto; padding: 0.8rem 1.25rem 0; font-size: 0.92rem; color: var(--dim); }

.guide { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; padding-block: 0 4rem; }
.guide-head { padding-block: 2.4rem 0.4rem; max-width: var(--measure); }
.guide-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; }
.guide-head p { color: var(--dim); margin-top: 0.7rem; }
.guide section { scroll-margin-top: 8.5rem; padding-block: 2.6rem 0.4rem; }
.sec-head { display: grid; gap: 0.4rem; margin-bottom: 1.3rem; max-width: var(--measure); }
.guide h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 2.1rem); line-height: 1.25; }
.lead { color: var(--dim); font-size: 1.05rem; }
.blk { display: grid; gap: 0.7rem; max-width: var(--measure); margin-bottom: 1.9rem; }
.blk.wide { max-width: none; }
.blk.wide > p { max-width: var(--measure); }
.guide h3 { font-size: 1.14rem; font-weight: 700; line-height: 1.4; display: flex; align-items: baseline; gap: 0.5rem; }
.guide h3::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--gold); transform: translateY(-0.08rem); }
.guide ul, .guide ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.guide li::marker { color: var(--faint); }
.guide .grass { margin-top: 1.6rem; }

.hub { border: 2px solid var(--line2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.hub-title { padding: 0.35rem 0.9rem; font-size: 0.8rem; color: var(--faint); background: var(--ink); border-bottom: 1px solid var(--line); }
.hub-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1px; background: var(--line); }
.hub-tabs a { display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; background: var(--panel); text-decoration: none; color: var(--fg); min-width: 0; }
.hub-tabs a:hover { background: var(--raised); }
.hub-tabs b { font-size: 0.98rem; color: var(--gold-text); }
.hub-tabs span { font-size: 0.84rem; color: var(--dim); line-height: 1.5; }

.guide ol.steps { list-style: none; padding: 0; counter-reset: s; gap: 0.7rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.8rem; align-items: start; padding: 0.85rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 1.5rem; line-height: 1.2; color: var(--gold-text); text-align: center; }
.steps b { display: block; }
.steps span { color: var(--dim); font-size: 0.95rem; }

.clicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; }
.click { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.click i { font-size: 2.2rem; color: var(--gold-text); }
.click b { display: block; }
.click span { color: var(--dim); font-size: 0.93rem; line-height: 1.55; display: block; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { padding: 0.55rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); background: var(--ink); white-space: nowrap; }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td:first-child { font-weight: 600; white-space: nowrap; }
.chip { display: inline-block; padding: 0.05rem 0.55rem; border-radius: var(--r-s); font-size: 0.86rem; font-weight: 700; color: #fdfdff; }
.chip.monster { background: var(--t-monster); } .chip.super { background: var(--t-super); }
.chip.hyper { background: var(--t-hyper); color: #1d1600; } .chip.master { background: var(--t-master); }
.chip.elite { background: var(--t-elite); } .chip.champ { background: var(--t-champ); color: #2a1f08; }

.note { padding: 0.8rem 1rem; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); font-size: 0.95rem; }
.note b:first-child { color: var(--gold-text); }

.plates { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; padding: 1rem; border-radius: var(--r); background: linear-gradient(180deg, #2f4a3c, #35553f); border: 1px solid var(--line); }
.plate { background: var(--plate-bg); border: 1px solid var(--plate-line); color: var(--plate-fg); padding: 0.25rem 0.6rem; font-weight: 700; font-size: 0.9rem; line-height: 1.45; text-align: center; white-space: nowrap; }
.plate.plain { color: #ffb0b0; }

details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
details + details { margin-top: 0.55rem; }
summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; list-style: none; display: flex; gap: 0.6rem; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; font-family: var(--display); font-weight: 400; color: var(--gold-text); }
details[open] summary { border-bottom: 1px solid var(--line); }
details .a { padding: 0.8rem 1rem 0.95rem; display: grid; gap: 0.6rem; color: var(--dim); }
details .a strong { color: var(--fg); }

/* ============================================================ 움직임 */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* 첫 화면이 뜰 때: 글이 먼저, 그림이 뒤따라 올라온다 (무엇부터 읽을지 순서를 준다) */
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero .screen { animation: rise 0.9s var(--ease) 0.15s both; }
  /* 내려가며 읽을 때: 화면에 들어오는 덩어리가 올라온다. 지원하지 않는 브라우저에서는 그냥 보인다 */
  .pet.hop i { animation: hop 0.42s var(--ease); }
  .tuft i { animation: sprout 0.5s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cell img, .index a b { transition: none; }
}

/* ============================================================ 좁은 화면 */
/* 여섯 칸이 한 줄에 서면 제목이 두 줄로 꺾이는 너비 — 세 칸씩 두 줄로 */
@media (min-width: 861px) and (max-width: 1000px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; border-top: 0; }
  .loop > div { border-top: 2px solid var(--line2); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .walk { grid-template-columns: minmax(0, 1fr); }
  .loop { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem; }
  .loop > div { scroll-snap-align: start; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(10.5rem, auto); }
  .bento .cell { grid-column: auto; grid-row: auto; }
  .c-gym { min-height: 17rem; }
  .start > div { grid-template-columns: minmax(0, 1fr); }
  .index { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .tabs-in { flex-direction: column-reverse; align-items: stretch; gap: 0.5rem; }
  .find { flex: none; padding-bottom: 0; }
  .guide section { scroll-margin-top: 11rem; }
  th, td { padding: 0.5rem 0.65rem; }
}
@media (max-width: 560px) {
  .nav-links a.opt { display: none; }
  .nav-in { gap: 0.8rem; }
  .nav-links { gap: 0.9rem; }
}
/* 아주 좁으면 위쪽 줄의 받기 단추는 넘친다 - 바로 아래 첫 화면에 같은 단추가 있다 */
@media (max-width: 400px) {
  .nav-links .btn { display: none; }
}
