/* ==========================================================================
   마코팜 웹 · '봄빛 농장' 디자인 (resourcepack/style/palette.py 와 같은 색)
   - 외곽선은 검정 대신 자두색(--ink), 바탕은 크림 종이, 그림자는 딱 떨어지는 픽셀 그림자
   - 제목·버튼은 Galmuri(픽셀 글꼴, OFL), 본문은 Pretendard
   ========================================================================== */

:root {
  --ink: #3D2C4E;
  --ink-soft: #5A4466;
  --text: #4A3346;
  --muted: #7A6476;
  --white: #FFFFFF;

  --paper-0: #C9A89A; --paper-1: #E3C9B4; --paper-2: #F4E4CE; --paper-3: #FCF3E4; --paper-4: #FFFBF4;
  --blossom-0: #8E3A5E; --blossom-1: #C95C82; --blossom-2: #FF9DB6; --blossom-3: #FFD0DE; --blossom-4: #FFF1F5;
  --sky-0: #2C5C99; --sky-1: #3689BD; --sky-2: #5EC8F2; --sky-3: #AEE7FA; --sky-4: #EEFBFF;
  --lime-0: #3F7A3E; --lime-1: #5EA848; --lime-2: #8BE37A; --lime-3: #C4F2A6; --lime-4: #F0FFE3;
  --gold-0: #9A5C1E; --gold-1: #E0A03A; --gold-2: #FFD86B; --gold-3: #FFE89A; --gold-4: #FFFBE3;
  --lav-0: #4E3486; --lav-1: #8350D1; --lav-2: #B57BFF; --lav-3: #DCC7FF; --lav-4: #FAF4FF;
  --teal-0: #2F6F7A; --teal-1: #3F9CA0; --teal-2: #62C9C2; --teal-3: #A6EADF; --teal-4: #E4FBF5;
  --rose-0: #8A2442; --rose-1: #C93A5C; --rose-2: #FF5E7E;
  --apricot-1: #C77A38; --apricot-2: #F2A65A; --slate-1: #62768C; --slate-2: #8FA3B8;

  --pixel: "Galmuri11", "Galmuri9", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;

  --radius: 6px;
  --line: 3px solid var(--ink);
  --drop: 0 4px 0 var(--ink);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
:root { color-scheme: light only; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.65;
  background:
    linear-gradient(180deg, var(--sky-4) 0, var(--blossom-4) 520px, var(--paper-4) 1100px) no-repeat,
    var(--paper-4);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
img.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--sky-0); }
a:hover { color: var(--blossom-1); }
h1, h2, h3, h4 { font-family: var(--pixel); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border: var(--line); }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 2px; }

/* ---------------------------------------------------------------- 맨 위 띠 (D-day) */
.ribbon-top {
  background: var(--blossom-1);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 14px;
  text-align: center;
  padding: 8px 12px;
  border-bottom: var(--line);
  display: flex; gap: 10px 16px; align-items: center; justify-content: center; flex-wrap: wrap;
  text-shadow: 0 2px 0 var(--blossom-0);
}
.ribbon-top .dday { background: var(--ink); padding: 2px 8px; border-radius: 4px; text-shadow: none; }
.ribbon-top a { color: var(--gold-3); text-decoration: none; }
.ribbon-top a:hover { color: var(--white); }

/* ---------------------------------------------------------------- 머리 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-4);
  border-bottom: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--pixel); font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--pixel); font-size: 14px; color: var(--ink); text-decoration: none;
  padding: 8px 10px; border-radius: var(--radius); border: 3px solid transparent;
}
.nav a:hover { background: var(--blossom-4); border-color: var(--blossom-3); }
.nav a[aria-current="page"] { background: var(--blossom-3); border-color: var(--ink); }
.nav .btn { margin-left: 6px; }
.site-header .menu-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .site-header .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-4); border-bottom: var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- 버튼 */
.btn {
  --c: var(--blossom-2); --d: var(--blossom-1); --t: var(--white); --s: var(--blossom-0);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pixel); font-size: 15px; line-height: 1.2;
  color: var(--t); text-decoration: none; text-shadow: 0 2px 0 var(--s);
  background: var(--c);
  border: var(--line); border-radius: var(--radius);
  box-shadow: inset 0 -4px 0 var(--d), inset 0 3px 0 rgba(255,255,255,.45), 0 3px 0 var(--ink);
  padding: 11px 18px 13px; cursor: pointer;
  transition: transform .06s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); color: var(--t); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--d), 0 1px 0 var(--ink); }
.btn[disabled], .btn.is-disabled { --c: var(--paper-1); --d: var(--paper-0); --t: var(--ink-soft); --s: transparent; cursor: not-allowed; filter: none; transform: none; }
.btn--sky { --c: var(--sky-2); --d: var(--sky-1); --s: var(--sky-0); }
.btn--gold { --c: var(--gold-2); --d: var(--gold-1); --t: var(--ink); --s: var(--gold-3); }
.btn--lime { --c: var(--lime-2); --d: var(--lime-1); --t: var(--ink); --s: var(--lime-3); }
.btn--lav { --c: var(--lav-2); --d: var(--lav-1); --s: var(--lav-0); }
.btn--paper { --c: var(--paper-3); --d: var(--paper-1); --t: var(--ink); --s: transparent; }
.btn--sm { font-size: 13px; padding: 7px 12px 9px; }
.btn--lg { font-size: 18px; padding: 14px 24px 16px; }
.btn img { height: 20px; width: auto; image-rendering: pixelated; }

/* ---------------------------------------------------------------- 패널 · 카드 */
.panel {
  background: var(--paper-4);
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 24px;
}
.panel--cream { background: var(--paper-3); }
.panel--sky { background: var(--sky-4); }
.panel--blossom { background: var(--blossom-4); }
.panel--lime { background: var(--lime-4); }
.panel--gold { background: var(--gold-4); }
.panel--lav { background: var(--lav-4); }
.panel h3 { font-size: 18px; }

.label {
  display: inline-block; font-family: var(--pixel); font-size: 12px;
  background: var(--ink); color: var(--white); padding: 3px 8px; border-radius: 4px;
}
.label--live { background: var(--rose-1); }
.label--soon { background: var(--sky-1); }
.label--end { background: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pixel); font-size: 12px; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px;
}

/* 섹션 제목: 게임 리본 모양 */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  display: inline-block; font-size: clamp(20px, 3vw, 28px);
  background: var(--gold-2); color: var(--ink);
  border: var(--line); border-radius: var(--radius);
  box-shadow: inset 0 -5px 0 var(--gold-1), 0 4px 0 var(--ink);
  padding: 10px 28px 14px; margin: 0 0 14px;
}
.section-title p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.section-title--sky h2 { background: var(--sky-3); box-shadow: inset 0 -5px 0 var(--sky-2), 0 4px 0 var(--ink); }
.section-title--blossom h2 { background: var(--blossom-3); box-shadow: inset 0 -5px 0 var(--blossom-2), 0 4px 0 var(--ink); }
.section-title--lime h2 { background: var(--lime-3); box-shadow: inset 0 -5px 0 var(--lime-2), 0 4px 0 var(--ink); }
.section-title--lav h2 { background: var(--lav-3); box-shadow: inset 0 -5px 0 var(--lav-2), 0 4px 0 var(--ink); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 히어로 */
.hero {
  position: relative; overflow: hidden;
  border-bottom: var(--line);
  /* 2026-10-03 "비율이 안 맞아요": 한 장 그림을 화면에 맞추지 않고 하늘(잘려도 됨) · 땅(바닥 고정) · 로고(가운데)로 나눴어요 */
  min-height: clamp(560px, calc(100vh - 110px), 900px);
  display: grid; place-items: center;
  background:
    url("../img/brand/hero_ground.png") center bottom / auto 280px no-repeat,
    url("../img/brand/hero_sky.png") center top / cover no-repeat,
    var(--sky-4);
  image-rendering: pixelated;
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 48px 16px 300px; }
.hero__logo { display: block; margin: 0 auto 18px; width: 456px; max-width: 78vw; height: auto; image-rendering: pixelated; }
.hero__kicker { font-family: var(--pixel); color: var(--blossom-1); font-size: 15px; margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(22px, 3.4vw, 40px); color: var(--ink);
  text-shadow: 0 3px 0 var(--white), 3px 0 0 var(--white), -3px 0 0 var(--white), 0 -3px 0 var(--white);
  margin-bottom: 12px;
}
.hero__desc { max-width: 560px; margin: 0 auto 22px; color: var(--ink-soft); font-weight: 600; background: rgba(255,251,244,.75); padding: 6px 12px; border-radius: 8px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__meta { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero .bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
/* 높이가 낮은 화면(노트북 등): 로고는 ×3, 땅은 200px 로 줄여서 첫 화면 안에 다 들어오게 */
@media (max-height: 860px) and (min-width: 861px) {
  .hero { background-size: auto 200px, cover, auto; }
  .hero__inner { padding: 24px 16px 205px; }
  .hero__logo { width: 342px; margin-bottom: 10px; }
  .hero__desc { margin-bottom: 14px; }
  .hero__meta { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero .bob, .float { animation: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero { min-height: 560px; background-size: auto 150px, cover, auto; }
  .hero__inner { padding: 36px 16px 170px; }
}
/* 페이지 머리 (하위 페이지) */
.page-head {
  border-bottom: var(--line);
  background: linear-gradient(180deg, var(--sky-4), var(--blossom-4));
  padding: 48px 0 40px;
  position: relative; overflow: hidden;
}
.page-head h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); max-width: 680px; margin: 0; }
.page-head .crumbs { font-family: var(--pixel); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.page-head .crumbs a { color: var(--muted); text-decoration: none; }
.page-head__mascots { position: absolute; right: 24px; bottom: -6px; display: flex; gap: 10px; }
.page-head__mascots img { width: 56px; height: 56px; image-rendering: pixelated; }
@media (max-width: 700px) { .page-head__mascots { display: none; } }

/* ---------------------------------------------------------------- 이벤트 카드 (사전예약·사전후원) */
.event-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.event-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card h3 { font-size: 22px; margin: 0; }
.event-card .big {
  font-family: var(--pixel); font-size: 30px; color: var(--ink);
}
.event-card .big small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.event-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.event-card__art { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; image-rendering: pixelated; }
.countdown { font-family: var(--pixel); font-size: 13px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 기능 카드 */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--white); border: var(--line); border-radius: var(--radius);
  box-shadow: inset 0 -4px 0 var(--paper-1);
}
.feature__icon img { width: 40px; height: 40px; image-rendering: pixelated; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.feature .tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* 등급 줄 */
.grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.grade { text-align: center; padding: 14px 6px; border: var(--line); border-radius: var(--radius); box-shadow: var(--drop); background: var(--white); }
.grade b { display: block; font-family: var(--pixel); font-size: 15px; color: var(--ink); }
.grade span { font-family: var(--pixel); font-size: 20px; color: var(--ink); }
@media (max-width: 700px) { .grades { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 마스코트 줄 */
.mascot-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.mascot-row img { width: 56px; height: 56px; image-rendering: pixelated; }
.float { animation: bob 2.6s ease-in-out infinite; }
.float:nth-child(2n) { animation-delay: .4s; }
.float:nth-child(3n) { animation-delay: .9s; }

/* ---------------------------------------------------------------- 시작하기 단계 */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -16px; left: 20px;
  font-family: var(--pixel); font-size: 18px; color: var(--white);
  background: var(--sky-1); border: var(--line); border-radius: var(--radius); padding: 2px 10px 4px;
  text-shadow: 0 2px 0 var(--sky-0);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.address {
  display: flex; align-items: stretch; gap: 0; max-width: 520px;
  border: var(--line); border-radius: var(--radius); box-shadow: var(--drop); overflow: hidden; background: var(--white);
}
.address code { flex: 1; font-family: var(--pixel); font-size: 18px; padding: 14px 16px; color: var(--ink); overflow-wrap: anywhere; }
.address button { border: 0; border-left: var(--line); background: var(--gold-2); font-family: var(--pixel); font-size: 14px; padding: 0 18px; cursor: pointer; color: var(--ink); }
.address button:hover { background: var(--gold-3); }

/* ---------------------------------------------------------------- 폼 */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--pixel); font-size: 14px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input[type="text"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: var(--line); border-radius: var(--radius);
  padding: 11px 14px; width: 100%;
  box-shadow: inset 0 3px 0 var(--paper-2);
}
.field input:focus, .input:focus { outline: none; border-color: var(--sky-1); box-shadow: inset 0 3px 0 var(--sky-4), 0 0 0 3px var(--sky-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blossom-1); flex-shrink: 0; }
.form-msg { font-size: 14px; min-height: 1.4em; margin: 0; }
.form-msg.err { color: var(--rose-1); }
.form-msg.ok { color: var(--lime-0); }

/* 결과 상자 */
.result { display: none; }
.result.show { display: block; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: baseline; }
.kv dt { font-family: var(--pixel); font-size: 13px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.code-big { font-family: var(--pixel); font-size: 28px; letter-spacing: 2px; color: var(--ink); background: var(--gold-3); border: var(--line); border-radius: var(--radius); padding: 4px 14px; display: inline-block; }

/* ---------------------------------------------------------------- 진행 막대 (사전예약 단계 보상) */
.milestones { display: grid; gap: 12px; }
.milestone { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.milestone img { width: 40px; height: 40px; image-rendering: pixelated; }
.milestone b { font-family: var(--pixel); color: var(--ink); }
.milestone .count { font-family: var(--pixel); font-size: 13px; color: var(--muted); }
.milestone.done { background: var(--lime-4); }
.milestone.done .count { color: var(--lime-0); }
.bar { height: 22px; background: var(--white); border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 3px 0 var(--paper-2); }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--lime-2) 0 12px, var(--lime-1) 12px 14px); border-right: 3px solid var(--ink); transition: width .6s ease; }

/* ---------------------------------------------------------------- 사전후원 패키지 */
.packages { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .packages { grid-template-columns: 1fr; } }
.pkg {
  --pc: var(--blossom-2);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--drop);
  padding: 0 0 16px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: transform .08s ease;
}
.pkg:hover { transform: translateY(-2px); }
.pkg__art { background: color-mix(in srgb, var(--pc) 35%, var(--white)); border-bottom: var(--line); display: grid; place-items: center; height: 120px; position: relative; }
.pkg__art img { width: 72px; height: 72px; image-rendering: pixelated; }
.pkg__name { font-family: var(--pixel); font-size: 16px; color: var(--ink); padding: 0 14px; }
.pkg__price { font-family: var(--pixel); font-size: 20px; color: var(--ink); padding: 0 14px; }
.pkg__price small { font-size: 13px; color: var(--muted); }
.pkg__stock { position: absolute; top: 8px; left: 8px; }
.pkg__pick {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: var(--line); border-radius: 6px; background: var(--white);
  display: grid; place-items: center; font-family: var(--pixel); font-size: 16px; color: var(--white);
}
.pkg.selected { outline: 4px solid var(--pc); outline-offset: 2px; }
.pkg.selected .pkg__pick { background: var(--lime-1); }
.pkg.selected .pkg__pick::after { content: "✔"; }
.pkg.soldout { cursor: not-allowed; filter: grayscale(.8); opacity: .7; }
.pkg__lines { list-style: none; margin: 0; padding: 0 14px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.pkg__lines li::before { content: "▸ "; color: var(--pc); filter: brightness(.7); }

.cart {
  position: sticky; bottom: 16px; z-index: 20;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 4px 0 #24182f;
}
.cart b { font-family: var(--pixel); font-size: 20px; color: var(--gold-2); }
.cart .sub { font-size: 13px; color: var(--blossom-3); }

.discounts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.discounts .chip b { color: var(--rose-1); }

/* 비교표 */
.table-wrap { overflow-x: auto; border: var(--line); border-radius: var(--radius); box-shadow: var(--drop); background: var(--white); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { border-bottom: 2px solid var(--paper-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl thead th { font-family: var(--pixel); font-size: 13px; background: var(--paper-3); color: var(--ink); border-bottom: var(--line); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--blossom-4); }
.tbl img { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; margin-right: 6px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 유의사항 */
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.notice-list li { padding-left: 18px; position: relative; }
.notice-list li::before { content: "·"; position: absolute; left: 4px; font-weight: 900; color: var(--blossom-1); }
.callout { border: var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--gold-4); font-size: 14px; }
.callout--info { background: var(--sky-4); }
.callout--warn { background: var(--blossom-4); }
.callout--tip { background: var(--lime-4); }

/* 금액 고르기 */
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amounts button {
  font-family: var(--pixel); font-size: 16px; color: var(--ink);
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: 0 3px 0 var(--ink);
  padding: 14px 8px; cursor: pointer;
}
.amounts button small { display: block; font-size: 12px; color: var(--lav-1); margin-top: 4px; }
.amounts button[aria-pressed="true"] { background: var(--lav-3); }
@media (max-width: 500px) { .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- FAQ */
details.qa { border: var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 0 var(--ink); }
details.qa + details.qa { margin-top: 12px; }
details.qa summary { cursor: pointer; list-style: none; padding: 14px 18px; font-family: var(--pixel); font-size: 15px; color: var(--ink); display: flex; gap: 10px; }
details.qa summary::before { content: "Q"; color: var(--blossom-1); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa[open] summary { border-bottom: 2px solid var(--paper-2); }
details.qa .a { padding: 14px 18px; font-size: 15px; }

/* ---------------------------------------------------------------- 위키 */
.wiki { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px 0 72px; }
.wiki-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 16px; }
.wiki-side h4 { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.wiki-side h4:first-of-type { margin-top: 8px; }
.wiki-side a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14px; }
.wiki-side a img { width: 20px; height: 20px; image-rendering: pixelated; }
.wiki-side a:hover { background: var(--blossom-4); }
.wiki-side a[aria-current="page"] { background: var(--blossom-3); font-weight: 700; }
.wiki-search { width: 100%; }
.wiki-body h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.wiki-body h2 img { width: 36px; height: 36px; image-rendering: pixelated; }
.wiki-body h3 { font-size: 18px; margin-top: 30px; padding-bottom: 6px; border-bottom: 3px dashed var(--paper-1); }
.wiki-body .summary { color: var(--muted); margin-bottom: 20px; }
.wiki-body .block { margin-bottom: 18px; }
.wiki-body ul.wl { padding-left: 20px; margin: 0; }
.wiki-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wiki-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.wiki-card img { width: 36px; height: 36px; image-rendering: pixelated; flex-shrink: 0; }
.wiki-card b { font-family: var(--pixel); font-size: 14px; color: var(--ink); display: block; }
.wiki-card span { font-size: 13px; color: var(--ink-soft); display: block; }
.wiki-card .tag { font-family: var(--pixel); font-size: 11px; color: var(--white); background: var(--ink); border-radius: 4px; padding: 1px 6px; display: inline-block; margin-top: 4px; }
.odds { display: grid; gap: 6px; }
.odds__row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 70px; gap: 10px; align-items: center; font-size: 14px; }
.odds__row img { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: middle; margin-right: 6px; }
.odds__bar { height: 14px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.odds__bar i { display: block; height: 100%; background: var(--c, var(--lav-2)); }
.odds__row .num { text-align: right; font-family: var(--pixel); font-size: 13px; }
.toc-toggle { display: none; }
@media (max-width: 860px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki-side { position: static; max-height: none; }
  .wiki-side .toc-toggle { display: inline-flex; width: 100%; margin-top: 10px; }
  #toc { display: none; }
  #toc.open, .wiki-side.searching #toc { display: block; }
}

/* ---------------------------------------------------------------- 공지 */
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; }
.news-item time { font-family: var(--pixel); font-size: 12px; color: var(--muted); }
.news-item h3 { margin: 0; font-size: 17px; }
.news-item p { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-soft); white-space: pre-line; }

/* ---------------------------------------------------------------- 약관 글 */
.doc { max-width: 820px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc h3 { font-size: 16px; margin-top: 20px; }
.doc p, .doc li { font-size: 15px; }
.doc ol, .doc ul { padding-left: 22px; }
.todo { background: var(--gold-3); border: 2px dashed var(--gold-0); border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* ---------------------------------------------------------------- 커뮤니티 · 후원 띠 */
.cta-band { background: var(--lav-4); border-top: var(--line); border-bottom: var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 40px 0; }
@media (max-width: 700px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.link-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.link-card img { width: 44px; height: 44px; image-rendering: pixelated; }
.link-card b { font-family: var(--pixel); display: block; }
.link-card span { font-size: 14px; color: var(--ink-soft); }
.link-card.disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- 바닥 */
.site-footer { background: var(--ink); color: #E9DDE6; margin-top: 0; padding: 40px 0 48px; font-size: 13px; }
.site-footer a { color: var(--blossom-3); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer .links { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--pixel); font-size: 12px; }
.site-footer .biz { margin-top: 18px; line-height: 1.8; color: #BFAFC0; }
.site-footer .legal-note { margin-top: 12px; color: #9C8AA0; }
.site-footer img { height: 28px; image-rendering: pixelated; }

/* ---------------------------------------------------------------- 관리자 */
.admin-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.status { font-family: var(--pixel); font-size: 12px; padding: 2px 8px; border-radius: 4px; border: 2px solid var(--ink); white-space: nowrap; }
.status--pending { background: var(--gold-3); }
.status--paid { background: var(--lime-3); }
.status--cancelled, .status--expired { background: var(--paper-2); color: var(--muted); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--pixel); font-size: 24px; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }

/* 도우미 */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: var(--white); font-family: var(--pixel); font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius); box-shadow: 0 4px 0 #24182f; transition: transform .25s ease; z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }
