/* Random Maple homepage - bright, Maple-like fantasy theme.
   Light theme only. Layout targets 1440px desktop down to 390px mobile without horizontal scroll. */

/* 게임과 같은 글꼴 (2026-09-14 확정 조합) — 제목·단추·메뉴·라벨 = PaperlogyUI, 본문·숫자·값 = RandomMapleUI.
   원본 TTF(assets/remaster_v160/master-v05/fonts-v01)에서 KS X 1001 2,350자 + 사이트 사용 글자만 woff2 로 잘랐다. */
@font-face {
  font-family: "PaperlogyUI";
  src: url("../fonts/paperlogy-semibold.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "RandomMapleUI";
  src: url("../fonts/randommaple-text.woff2") format("woff2");
  font-weight: 400 599;
  font-display: swap;
}
@font-face {
  font-family: "RandomMapleUI";
  src: url("../fonts/randommaple-bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --sky-1: #d8f1ff;
  --sky-2: #7cc8f5;
  --sky-3: #1f6fae;
  --leaf-1: #e3f6d6;
  --leaf-2: #6abf4b;
  --leaf-3: #2f7d32;
  --leaf-4: #1f5a24;
  --gold-1: #fff3cc;
  --gold-2: #ffc83d;
  --gold-3: #f29e0c;
  --gold-4: #a35d00;
  --wood-1: #f1dfba;
  --wood-2: #d9b27a;
  --wood-3: #8a5a2b;
  --wood-4: #5a3818;
  --ink: #3d2a17;
  --ink-2: #66513b;
  --paper: #fffaf0;
  --cream: #fff3d9;
  --white: #ffffff;
  --red: #d8442e;
  --violet: #7a52c9;

  --radius: 22px;
  --shadow: 0 3px 0 rgba(122, 78, 30, .14);
  --font-title: "PaperlogyUI", "RandomMapleUI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-body: "RandomMapleUI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  /* 글자색 4가지 + 금색 위 글자 1가지로 통일 */
  --c-title: var(--wood-4);
  --c-text: var(--ink);
  --c-sub: var(--ink-2);
  --c-link: var(--leaf-4);
  --c-on-gold: #432500;
  --c-mute: #59616b;   /* 무직·비활성 */
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--paper);
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--c-link); }
h1, h2, h3, h4 { margin: 0; font-weight: normal; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky-3); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--white); color: var(--c-text); padding: 10px 16px; border-radius: 10px;
  border: 2px solid var(--gold-3); font-weight: 700;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(#ffdc6e, #f5a91a);
  border: 2px solid #c47a00; color: var(--c-on-gold);
  font-family: var(--font-title); font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #a86300;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a86300; }
.btn--small { padding: 8px 18px; font-size: 16px; }
.btn--ghost {
  background: var(--white); border-color: var(--leaf-3); color: var(--leaf-4);
  box-shadow: 0 4px 0 var(--leaf-3);
}
.btn--ghost:active { box-shadow: 0 1px 0 var(--leaf-3); }

/* Big start button: our own button plate art + live text from i18n (no text in the image). */
.btn-start {
  position: relative; display: inline-grid; place-items: center;
  width: 300px; max-width: 100%; aspect-ratio: 1434 / 545;
  background: url("../img/art/btn-plate.png") center / contain no-repeat;
  font-family: var(--font-title); font-size: 32px; line-height: 1;
  color: var(--c-on-gold); text-decoration: none;
  text-shadow: 0 2px 0 #fff4b8, 0 0 1px #fff4b8;
  filter: drop-shadow(0 6px 10px rgba(90, 56, 24, .35));
  transition: transform .15s ease, filter .15s ease;
}
.btn-start span { transform: translateY(-4%); }
.btn-start:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 10px 14px rgba(90, 56, 24, .4)) brightness(1.04); }
.btn-start:active { transform: translateY(2px) scale(.99); }
.btn-start--soon { font-size: 22px; filter: grayscale(.35) drop-shadow(0 6px 10px rgba(90, 56, 24, .25)); cursor: default; }
.btn-start--soon:hover { transform: none; }

.round-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--wood-2); color: var(--c-title);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 0 3px;
  box-shadow: 0 3px 0 var(--wood-2);
}
.round-btn:hover { background: var(--gold-1); }

/* ---------------- top navigation ---------------- */

.gnb {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, .94);
  border-bottom: 3px solid var(--gold-2);
  transition: box-shadow .2s ease;
}
.gnb.is-scrolled { box-shadow: 0 6px 18px rgba(61, 42, 23, .14); }
.gnb__inner {
  max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.gnb__brand { display: flex; align-items: center; flex: none; }
.gnb__brand img { height: 48px; width: auto; display: block; }
.gnb__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gnb__menu ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.gnb__menu ul a {
  display: block; padding: 10px 13px; border-radius: 12px;
  font-family: var(--font-title); font-size: 18px; color: var(--c-title); text-decoration: none;
}
.gnb__menu ul a:hover { background: var(--gold-1); color: var(--c-title); }
.gnb__menu ul a[aria-current="page"] { background: var(--gold-2); color: var(--c-on-gold); box-shadow: inset 0 -3px 0 var(--gold-4); }
.gnb__tools { display: flex; align-items: center; gap: 12px; }
.gnb__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 2px solid var(--wood-2); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.gnb__bars, .gnb__bars::before, .gnb__bars::after {
  display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--wood-4); position: relative;
}
.gnb__bars::before, .gnb__bars::after { content: ""; position: absolute; left: 0; }
.gnb__bars::before { top: -7px; }
.gnb__bars::after { top: 7px; }

.lang { display: inline-flex; border: 2px solid var(--wood-2); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang__btn {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 14px; color: var(--c-sub);
}
.lang__btn.is-on { background: var(--leaf-3); color: var(--white); }

/* ---------------- hero ---------------- */

.hero { position: relative; min-height: clamp(600px, 84vh, 780px); overflow: hidden; display: flex; align-items: flex-start; }
.hero__bg {
  position: absolute; inset: 0;
  background: #9fd8f5 url("../img/art/key-visual.jpg") center 62% / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(rgba(255, 250, 240, 0), var(--paper));
}
.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: 780px; margin-inline: auto;
  padding: 36px var(--gutter) 150px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 2px solid var(--gold-2);
  color: var(--c-title); font-weight: 700; font-size: 14px;
}
.hero__logo { line-height: 0; }
.hero__logo img { width: min(560px, 88vw); height: auto; filter: drop-shadow(0 8px 14px rgba(61, 42, 23, .3)); }
.hero__tagline {
  font-family: var(--font-title); font-size: clamp(24px, 3.6vw, 38px); line-height: 1.25;
  color: #fff8dc; padding: 10px 26px; border-radius: 18px;
  background: linear-gradient(#a96b3b, #7a4a22);
  border: 3px solid var(--wood-4);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 rgba(61, 42, 23, .28);
  text-shadow: 0 2px 0 rgba(61, 42, 23, .55);
}
.hero__sub {
  max-width: 640px; padding: 12px 20px; border-radius: 16px;
  background: rgba(255, 250, 240, .9); color: var(--c-text); font-size: 16.5px; line-height: 1.7;
  box-shadow: 0 4px 14px rgba(61, 42, 23, .12);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 4px; }
.hero__note {
  font-size: 13px; font-weight: 700; color: var(--c-title);
  background: rgba(255, 255, 255, .78); padding: 4px 12px; border-radius: 999px;
}

.hero__cast { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cast { position: absolute; height: auto; filter: drop-shadow(0 10px 10px rgba(61, 42, 23, .28)); animation: bob 4.2s ease-in-out infinite alternate; }
.cast--1 { left: 3%;  bottom: 128px; width: 220px; }
.cast--2 { left: 13%; bottom: 330px; width: 150px; animation-delay: -1.2s; }
.cast--3 { left: 1%;  bottom: 370px; width: 140px; animation-delay: -2.4s; }
.cast--4 { right: 13%; bottom: 330px; width: 150px; animation-delay: -.6s; }
.cast--5 { right: 2%; bottom: 370px; width: 150px; animation-delay: -1.8s; }
.cast--6 { right: 3%; bottom: 128px; width: 230px; animation-delay: -3s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* ---------------- dock under the hero ---------------- */

.dock {
  position: relative; z-index: 3; margin-top: -110px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px;
}
.dock__card {
  background: var(--paper); border: 3px solid var(--wood-2); border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow); min-width: 0;
}
.dock__title { font-family: var(--font-title); font-size: 21px; color: var(--c-title); margin-bottom: 8px; }
.dock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dock__more { font-size: 14px; font-weight: 700; color: var(--c-link); text-decoration: none; white-space: nowrap; }
.dock__more:hover { text-decoration: underline; }
.dock__news { list-style: none; margin: 4px 0 0; padding: 0; }
.dock__news li + li { border-top: 2px dashed var(--wood-1); }
.dock__news a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  color: var(--c-text); text-decoration: none; min-width: 0;
}
.dock__news a:hover .dock__news-d { flex: none; font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--c-sub); min-width: 40px; }
.dock__news-t { color: var(--c-link); text-decoration: underline; }
.dock__news-d { flex: none; font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--c-sub); min-width: 40px; }
.dock__news-t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------------- shared section chrome ---------------- */

.section { padding-block: 72px; }
.section--sky { background: #e3f3fc; }
.section--tight { padding-block: 40px 64px; }
.section--leaf { background: #4fa83f; }
.section--cream { background: var(--cream); }

.title {
  font-family: var(--font-title); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2;
  color: var(--c-title); display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.title::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background: var(--leaf-2); border-radius: 50% 0 50% 0; transform: rotate(45deg);
}
.title--center { justify-content: center; text-align: center; }
.title--light { color: var(--white); text-shadow: 0 3px 0 rgba(31, 90, 36, .55); }
.title--light::before { background: var(--gold-2); }
.lead { color: var(--c-sub); max-width: 760px; }
.lead--center { margin-inline: auto; text-align: center; }
.lead--light { color: #f2fbea; }

.panel {
  background: var(--paper); border: 3px solid var(--wood-2); border-radius: 26px;
  padding: 28px; box-shadow: var(--shadow);
}
.panel__head { margin-bottom: 16px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs--center { justify-content: center; margin-top: 22px; }
.tab {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--wood-2);
  background: var(--white); color: var(--c-title); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .15s ease;
}
.tab:hover { background: var(--gold-1); }
.tab.is-active { background: var(--gold-2); border-color: var(--gold-4); color: var(--c-on-gold); box-shadow: 0 3px 0 var(--gold-4); }

.tag {
  display: inline-block; flex: none; padding: 2px 10px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; color: var(--white);
}
.tag--notice { background: var(--red); }
.tag--update { background: var(--leaf-3); }
.tag--event { background: var(--violet); }


/* ---------------- news: dev log ---------------- */


/* ---------------- how it works ---------------- */

.flow { display: grid; grid-template-columns: 1.3fr 34px 1fr 34px 1fr; gap: 14px; align-items: stretch; margin-top: 34px; }
.flow__step { background: var(--white); border: 3px solid var(--sky-2); border-radius: 24px; padding: 22px; box-shadow: 0 5px 0 rgba(31, 111, 174, .18); min-width: 0; }
.flow__label { font-family: var(--font-title); font-size: 21px; color: var(--c-title); margin-bottom: 8px; text-align: center; }
.flow__arrow {
  align-self: center; justify-self: center; width: 34px; height: 34px; background: var(--leaf-2);
  clip-path: polygon(0 30%, 55% 30%, 55% 5%, 100% 50%, 55% 95%, 55% 70%, 0 70%);
}

.slots { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.slot__lv { font-size: 12px; font-weight: 700; color: var(--c-sub); background: var(--sky-1); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.slot__orb {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe5ec 60%, #b3bfcc);
  border: 3px solid #8b9aac; color: var(--c-mute); font-family: var(--font-title); font-size: 26px;
  transition: transform .25s ease;
}
.slot.is-open .slot__orb { animation: pop .35s ease; border-color: var(--fc); background: radial-gradient(circle at 35% 30%, #fff, var(--fc-bg) 45%, var(--fc) 100%); }
.slot.is-open .slot__q { display: none; }
.slot.is-open .slot__orb::after { content: ""; width: 20px; height: 20px; background: #fff; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.slot__name { font-size: 12px; font-weight: 700; line-height: 1.3; min-height: 2.6em; color: var(--ft, var(--ink)); }

.demo { text-align: center; margin-top: 6px; }
.demo__result { font-family: var(--font-title); font-size: 19px; min-height: 1.7em; margin: 12px 0 4px; color: var(--c-sub); }
.demo__result.is-awake { color: var(--leaf-3); }
.demo__result.is-jobless { color: var(--c-mute); }
.demo__note { font-size: 12.5px; color: var(--c-sub); }

.flow__check { display: flex; flex-direction: column; gap: 12px; }
.check__q { font-family: var(--font-title); font-size: 20px; color: var(--c-title); text-align: center; }
.branch { display: grid; gap: 12px; }
.branch__card { border: 3px solid; border-radius: 18px; padding: 14px 16px; transition: transform .25s ease, box-shadow .25s ease; }
.branch__card h3 { font-family: var(--font-title); font-size: 22px; margin: 6px 0 4px; }
.branch__card p { font-size: 14.5px; color: var(--c-sub); }
.branch__card--yes { border-color: var(--leaf-2); background: var(--leaf-1); }
.branch__card--yes h3 { color: var(--leaf-4); }
.branch__card--no { border-color: #b9c0c8; background: #f1f3f5; }
.branch__card--no h3 { color: var(--c-mute); }
.branch__pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 999px; color: var(--white); background: var(--leaf-3); }
.branch__card--no .branch__pill { background: #6b737c; }
.branch__card.is-lit { transform: scale(1.03); box-shadow: 0 0 0 4px var(--gold-2), 0 8px 18px rgba(61, 42, 23, .15); }

.rebirth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rebirth__col { border-radius: 16px; padding: 12px 14px; border: 2px solid; }
.rebirth__col h3 { font-family: var(--font-title); font-size: 18px; margin-bottom: 4px; }
.rebirth__col p { font-size: 14px; line-height: 1.55; }
.rebirth__col--reset { background: #fde9e4; border-color: #f0a898; }
.rebirth__col--reset h3 { color: #a8321f; }
.rebirth__col--keep { background: var(--leaf-1); border-color: var(--leaf-2); }
.rebirth__col--keep h3 { color: var(--leaf-4); }
.loop { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; color: var(--c-title); font-size: 15px; }
.loop__icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 4px solid var(--sky-2); border-right-color: transparent;
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.rules { margin-top: 48px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px 40px; align-items: start; }
.rules__title { font-family: var(--font-title); font-size: 26px; color: var(--c-title); margin-bottom: 14px; }
.rule-list { margin: 0; padding: 0 0 0 1.4em; }
.rule-list li { padding: 4px 0 16px 6px; }
.rule-list li::marker { font-family: var(--font-title); font-size: 20px; color: var(--c-title); }
.rule-list h3 { font-family: var(--font-title); font-size: 20px; color: var(--c-title); margin-bottom: 4px; }
.rule-list p { color: var(--c-sub); font-size: 15.5px; line-height: 1.75; }
.odds-box { background: var(--white); border: 2px solid var(--wood-2); border-radius: 10px; padding: 18px 20px; transform: rotate(.4deg); box-shadow: 3px 4px 0 var(--wood-1); }
.odds-box__title { font-family: var(--font-title); font-size: 19px; color: var(--c-title); margin-bottom: 8px; }
.odds { margin: 0; }
.odds div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--wood-2); }
.odds dt { font-family: var(--font-title); font-size: 24px; line-height: 1.1; color: var(--c-title); }
.odds dd { margin: 0; color: var(--c-sub); font-size: 14px; line-height: 1.5; }

/* ---------------- home: screenshot rows + plain list ---------------- */

.also { margin-top: 48px; padding-top: 22px; border-top: 2px dashed var(--wood-2); }
.also__title { font-family: var(--font-title); font-size: 22px; color: var(--c-title); margin-bottom: 10px; }
.also__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; margin: 0; }
.also__list div { padding: 8px 0; }
.also__list dt { font-weight: 700; color: var(--c-text); }
.also__list dd { margin: 2px 0 0; color: var(--c-sub); font-size: 15px; line-height: 1.7; }

/* ---------------- world ---------------- */

/* 지역 1~11 은 항상 한 줄. 좁은 화면에선 줄 안에서 옆으로 민다(페이지는 가로로 넘치지 않음). */
.route { list-style: none; margin: 30px 0 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 8px; }
.route > li { display: flex; min-width: 0; }
.town {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0;
  padding: 9px 4px 8px; border-radius: 18px; cursor: pointer;
  background: var(--paper); border: 3px solid var(--leaf-4); color: var(--c-title);
  box-shadow: 0 4px 0 var(--leaf-4); transition: transform .12s ease;
}
.town:hover { transform: translateY(-2px); }
.town__no {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-3); color: var(--white); font-family: var(--font-title); font-size: 15px;
}
.town__name { font-family: var(--font-title); font-size: 15px; line-height: 1.3; white-space: nowrap; }
.town__lv { font-size: 11px; font-weight: 700; color: var(--c-sub); white-space: nowrap; }
.town.is-active { background: var(--gold-2); border-color: var(--gold-4); box-shadow: 0 4px 0 var(--gold-4); }
.town.is-active .town__no { background: var(--wood-4); }
.town.is-active .town__lv { color: var(--c-on-gold); }

.grounds { margin-top: 26px; }
.grounds__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.grounds__head h2 { font-family: var(--font-title); font-size: 26px; color: var(--c-title); }
.grounds__lv { font-weight: 700; color: var(--c-sub); }
.grounds__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grounds__list > li { display: flex; }
.ground {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: var(--cream); border: 2px solid var(--wood-1); border-radius: 14px; padding: 11px 14px; font-weight: 700; color: var(--c-text);
}
.ground:hover { border-color: var(--wood-2); }
.ground__no {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--wood-2); font-family: var(--font-title); font-size: 14px; color: var(--c-title);
}
.ground.is-active { background: var(--gold-1); border-color: var(--gold-3); }
.ground.is-active .ground__no { background: var(--gold-2); border-color: var(--gold-4); color: var(--c-on-gold); }

/* 사냥터 상세: 사진 자리 + 몬스터 표 */
.gd { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gd__photo {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; text-align: center;
  background: var(--cream); border: 2px dashed var(--wood-2); border-radius: 12px; color: var(--c-sub); font-size: 14px; font-weight: 700;
}
.gd__name { font-family: var(--font-title); font-size: 22px; color: var(--c-title); }
.gd__meta { margin: 4px 0 10px; font-weight: 700; color: var(--c-sub); }
.gd .prob-tbl { margin-top: 0; }

/* ---------------- news board ---------------- */

.log-page { max-width: 900px; }
.log-page__head { margin-bottom: 18px; }

.board { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--wood-2); max-width: 900px; }
.board__item { border-bottom: 1px solid var(--wood-1); }
.board__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 6px; text-decoration: none; color: var(--c-text); }
.board__link:hover .board__title { color: var(--c-title); text-decoration: underline; }
.board__title { font-weight: 700; font-size: 16.5px; }
.board__date { font-size: 14px; color: var(--c-sub); white-space: nowrap; }
.board__empty { padding: 28px 6px; color: var(--c-sub); }
.post { max-width: 900px; margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--wood-2); }
.post__back { display: inline-block; margin-bottom: 16px; font-weight: 700; color: var(--c-link); text-decoration: none; }
.post__back:hover { text-decoration: underline; }
.post__title { font-family: var(--font-title); font-size: 26px; line-height: 1.35; color: var(--c-title); }
.post__title .tag { vertical-align: 4px; margin-right: 4px; }
.post__date { display: block; margin: 6px 0 18px; font-size: 14px; color: var(--c-sub); }
.post__text { margin-top: 12px; line-height: 1.85; max-width: 68ch; }

/* ---------------- jobs ---------------- */

.jobs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.fam-warrior { --fc: #e5533d; --fc-bg: #ffe3dc; --ft: #b0301d; }
.fam-mage    { --fc: #5c6bd6; --fc-bg: #e5e8ff; --ft: #3d4ab3; }
.fam-archer  { --fc: #4aa636; --fc-bg: #e1f5d6; --ft: #2b7520; }
.fam-thief   { --fc: #7a5fb0; --fc-bg: #ece4f8; --ft: #57398c; }
.fam-pirate  { --fc: #2a9cc0; --fc-bg: #dcf3fa; --ft: #12698a; }
.fam-jobless { --fc: #8a929c; --fc-bg: #eef0f2; --ft: #535b64; }
.job {
  background: var(--white); border: 3px solid var(--fc); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 4px 0 var(--fc-bg);
}
.job__art {
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, #fff 0 28%, var(--fc-bg) 72%);
}
.job__art img { max-width: 78%; max-height: 90%; object-fit: contain; transition: transform .25s ease; }
.job:nth-child(even) .job__art img { transform: scaleX(-1); }
.job:hover .job__art img { transform: scale(1.05); }
.job:nth-child(even):hover .job__art img { transform: scaleX(-1) scale(1.05); }
.job__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.job__fam { align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: var(--fc-bg); color: var(--ft); }
.job__name { font-family: var(--font-title); font-size: 22px; line-height: 1.25; color: var(--c-text); }
.job__weapon { font-size: 14px; color: var(--c-sub); }
.job__k { font-weight: 800; color: var(--ft); }
.job__rule { margin-top: auto; padding-top: 8px; border-top: 2px dashed var(--fc-bg); font-size: 13px; font-weight: 700; color: var(--ft); }
.job--jobless { border-style: dashed; }
.job--jobless .job__art img { max-width: 46%; }
.job .job__art { aspect-ratio: 16 / 9; }
.job__desc { font-size: 14px; color: var(--c-sub); line-height: 1.55; }
.job__tiers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.tier { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--fc-bg); }
.tier__no {
  flex: none; min-width: 40px; padding: 1px 8px; border-radius: 999px; text-align: center;
  background: var(--white); color: var(--ft); font-family: var(--font-title); font-size: 14px;
}
.tier__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tier__name { font-family: var(--font-title); font-size: 17px; color: var(--c-text); }
.tier__trait { font-size: 12.5px; font-weight: 700; color: var(--ft); }
.tier--top { background: linear-gradient(90deg, var(--fc-bg), var(--gold-1)); box-shadow: inset 0 0 0 2px var(--gold-2); }
.tier--top .tier__no { background: var(--gold-2); color: var(--c-on-gold); }

/* ---------------- sub pages ---------------- */

.section--page { padding-top: 48px; }
.rebirth__gate { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--c-title); background: var(--gold-1); border-radius: 12px; padding: 8px 12px; }
.odds__note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--c-sub); }

/* ---------------- home: plain list of the other pages ---------------- */


/* ---------------- FAQ ---------------- */

.faq { margin-top: 26px; }
.faq details { border-bottom: 1px dashed var(--wood-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 48px 16px 2px; font-weight: 700; font-size: 17px; color: var(--c-title);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-1); color: var(--c-on-gold); font-weight: 800; font-size: 20px; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--gold-2); color: var(--c-on-gold); }
.faq details p { padding: 0 2px 18px; color: var(--c-sub); line-height: 1.8; }

/* ---------------- probability disclosure (prob.html) ---------------- */

.prob-intro { display: grid; gap: 10px; margin-top: 6px; line-height: 1.75; }
.prob-intro__key { padding: 10px 14px; border-radius: 8px; background: var(--gold-1); color: var(--c-title); font-weight: 700; }
.prob-note { font-size: 13.5px; color: var(--c-sub); line-height: 1.7; }
.prob-index { margin-top: 28px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--wood-1); border-radius: 12px; }
.prob-index__t { font-family: var(--font-title); font-size: 21px; color: var(--c-title); margin-bottom: 8px; }
.prob-index ol { margin: 0 0 12px; padding-left: 2.2em; columns: 3; column-gap: 3em; font-size: 15px; line-height: 1.5; }
.prob-index li { break-inside: avoid; padding: 3px 0; }
.prob-index a { color: var(--c-link); text-decoration: none; }
.prob-index a:hover { text-decoration: underline; }
.prob-sec { display: grid; gap: 12px; min-width: 0; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--wood-2); }
.prob-sec > * { min-width: 0; }
.prob-sec__t { font-family: var(--font-title); font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; color: var(--c-title); }
.prob-sub { margin-top: 6px; font-weight: 700; font-size: 16.5px; color: var(--c-title); }
.prob-sec p, .prob-list { font-size: 15.5px; line-height: 1.75; }
.prob-list { margin: 0; padding-left: 1.3em; }
.prob-list li + li { margin-top: 4px; }
.prob-list ul { margin: 4px 0 0; padding-left: 1.2em; }
.prob-formula {
  margin: 0; padding: 12px 16px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--wood-1); border-left: 4px solid var(--gold-2);
  font-family: inherit; font-size: 14.5px; line-height: 1.7; color: var(--c-text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Tables scroll inside their own box on narrow screens, never the page. */
.prob-tbl { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--wood-1); border-radius: 10px; }
.prob-tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; overflow-wrap: normal; }
.prob-tbl th { padding: 9px 12px; background: var(--cream); color: var(--c-title); font-weight: 700; text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--wood-1); }
.prob-tbl td { padding: 8px 12px; border-bottom: 1px solid #f3e8d2; vertical-align: top; }
.prob-tbl tbody tr:last-child td { border-bottom: 0; }
.prob-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.prob-tbl td.n { white-space: nowrap; }
.prob-tbl--wrap td:first-child { min-width: 7.5em; font-weight: 700; }
.prob-tbl--wide th:first-child, .prob-tbl--wide td:first-child { min-width: 10em; }
.prob-swipe { display: none; }
.prob-top { justify-self: end; font-size: 13px; font-weight: 700; color: var(--c-link); text-decoration: none; }
.prob-top:hover { text-decoration: underline; }

/* ---------------- play: a short strip above the footer ---------------- */

.play { position: relative; overflow: hidden; padding: 40px 0; background: #cfeafa; border-top: 3px solid var(--sky-2); }
.play__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding-right: 170px; }
.play__inner .title { margin: 0; font-size: clamp(24px, 2.6vw, 30px); }
.play__inner .lead { grid-column: 1; }
.play__inner .btn-start { grid-column: 2; grid-row: 1 / span 2; width: 260px; font-size: 22px; }
.play__critter { position: absolute; height: auto; }
.play__critter--2 { right: max(16px, calc(50% - 600px)); bottom: -6px; width: 140px; }

/* ---------------- footer ---------------- */

.footer { background: #3d2a17; color: #f3e2c0; padding: 44px 0 56px; text-align: center; border-top: 6px solid var(--gold-3); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo { width: 190px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer__links a, .footer__made a { color: #ffe08a; text-decoration: none; font-weight: 700; }
.footer__links a:hover, .footer__made a:hover { text-decoration: underline; }
.footer__disclaimer { font-weight: 700; color: #f3e2c0; font-size: 15px; }
.footer__note { font-size: 13px; color: #dcc8a4; max-width: 720px; }
.footer__made { font-size: 13px; color: #dcc8a4; }

/* ---------------- lightbox ---------------- */


/* ---------------- responsive ---------------- */

@media (max-width: 1240px) {
  .cast--2, .cast--4 { display: none; }
  .cast--1, .cast--6 { width: 180px; }
  .cast--3, .cast--5 { width: 120px; bottom: 330px; }
}

@media (max-width: 1100px) {
  .hero__cast { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); }
  .rules { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .gnb__toggle { display: inline-flex; }
  .gnb__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 10px var(--gutter) 18px; background: var(--paper);
    border-bottom: 3px solid var(--gold-2); box-shadow: 0 12px 20px rgba(61, 42, 23, .14);
  }
  .gnb__menu.is-open { display: flex; }
  .gnb__menu ul { flex-direction: column; }
  .gnb__menu ul a { padding: 11px 12px; }
  .gnb__tools { justify-content: space-between; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .section { padding-block: 52px; }
  .gnb__inner { height: 62px; }
  .gnb__brand img { height: 40px; }
  .hero { min-height: 0; }
  .hero__content { padding: 26px var(--gutter) 120px; }
  .hero__sub { font-size: 15px; }
  .btn-start { width: 250px; font-size: 27px; }
  .dock { grid-template-columns: 1fr; margin-top: -84px; }
  .panel { padding: 20px 16px; }
  .also__list { grid-template-columns: 1fr; }
  .flow__step { padding: 18px 12px; }
  .slot__orb { width: 46px; height: 46px; font-size: 22px; }
  .slot__name { font-size: 11px; }
  .route { grid-template-columns: repeat(11, 84px); overflow-x: auto; }
  .grounds__list { grid-template-columns: 1fr; }
  .gd { grid-template-columns: 1fr; }
  .board__link { grid-template-columns: auto minmax(0, 1fr); }
  .board__date { grid-column: 2; }
  .post__title { font-size: 22px; }
  .prob-index { padding: 14px 14px; }
  .prob-index ol { columns: 1; font-size: 14.5px; }
  .prob-swipe { display: block; }
  .prob-sec { margin-top: 32px; padding-top: 20px; }
  .prob-sec p, .prob-list { font-size: 15px; }
  .prob-formula { padding: 10px 12px; font-size: 13.5px; }
  .prob-tbl table { font-size: 13.5px; }
  .prob-tbl th, .prob-tbl td { padding: 7px 9px; }
  .play { padding: 32px 0 120px; }
  .play__inner { grid-template-columns: 1fr; padding-right: 0; }
  .play__inner .btn-start { grid-column: 1; grid-row: auto; width: 240px; margin-top: 8px; }
  .play__critter--2 { width: 96px; right: 12px; }
}

