:root {
  color-scheme: dark;
  --ink: #171813;
  --dark: #151613;
  --surface: #20211c;
  --cream: #f3eee3;
  --paper: #eee9dd;
  --gold: #e3c292;
  --bronze: #86623e;
  --muted: #c2baaa;
  --hairline: rgba(227, 194, 146, .21);
  --sans: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --serif: "Noto Serif KR", "Batang", "AppleMyungjo", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--dark); font: 16px/1.65 var(--sans); word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, [role=tabpanel]:focus-visible { outline: 2px solid #c58f4f; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h2 { font: 700 clamp(34px, 4vw, 54px)/1.17 var(--serif); letter-spacing: -.05em; }
h3 { line-height: 1.35; letter-spacing: -.035em; }
section[id] { scroll-margin-top: 88px; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: min(1220px, calc(100% - 88px)); margin-inline: auto; }
.section { padding-block: 102px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; inset: 12px auto auto 12px; background: var(--cream); color: var(--ink); padding: 12px 20px; }

.topbar { position: sticky; z-index: 5; top: 0; background: #151614; border-bottom: 1px solid var(--hairline); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; width: min(1490px, calc(100% - 72px)); margin-inline: auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--gold); }
.brand span { display: grid; line-height: 1; }
.brand strong { font: bold 24px Georgia, serif; letter-spacing: .075em; }
.brand small { margin-top: 5px; color: #d1b685; text-align: center; font: 700 8px/1.2 var(--sans); letter-spacing: .26em; }
.site-nav { display: flex; align-items: stretch; gap: clamp(14px, 2.4vw, 37px); align-self: stretch; }
.site-nav a { position: relative; display: grid; align-items: center; font-size: 14px; font-weight: 700; color: #e1ddd3; white-space: nowrap; }
.site-nav a:hover { color: var(--gold); }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-play, .button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 13px; font-size: 14px; font-weight: 800; border: 1px solid transparent; transition: background-color .18s, color .18s, border-color .18s; }
.nav-play { min-height: 41px; padding: 0 16px; background: #cba77a; color: #221c16; white-space: nowrap; }
.nav-play:hover, .button-gold:hover { background: #f0d3a4; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; align-items: center; isolation: isolate; min-height: clamp(630px, 52vw, 800px); overflow: hidden; background: #1b1915; }
.hero::before, .hero::after, .hero-veil { position: absolute; inset: 0; pointer-events: none; }
.hero::before { content: ""; z-index: -3; background: linear-gradient(90deg, #191815 6%, rgba(30,25,19,.88) 42%, rgba(52,35,24,.65)), url('/media/cover-world.webp') center 41% / cover no-repeat; }
.hero::after { content: ""; z-index: -2; background: radial-gradient(ellipse at 73% 53%, rgba(172,106,65,.48), transparent 47%), repeating-linear-gradient(112deg, transparent 0 91px, #ccad760a 92px, transparent 93px 178px); }
.hero-art { position: absolute; z-index: -1; height: min(112%, 900px); width: auto; max-width: none; right: max(1%, calc((100% - 1460px) / 2)); bottom: -8%; object-fit: contain; filter: drop-shadow(0 26px 38px #100d0bcf); }
.hero-veil { z-index: 0; background: linear-gradient(90deg, #171612f5 0%, #1a1711d6 26%, #19161030 57%, transparent 76%), linear-gradient(0deg, #151511 0%, transparent 25%); }
.hero-content { position: relative; z-index: 1; padding-top: 18px; padding-bottom: 76px; }
.hero-eyebrow, .eyebrow { color: var(--gold); font: 700 12px/1.4 var(--sans); letter-spacing: .23em; }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; }
.hero-eyebrow span { width: 22px; height: 1px; background: var(--gold); }
.hero h1 { margin: 13px 0 10px; color: #f5dfb7; font: bold clamp(86px, 11vw, 150px)/1.01 var(--serif); letter-spacing: -.115em; text-shadow: 0 6px 26px #0f0d0a8c; }
.hero-line { color: #f5eee0; font: bold clamp(34px, 4.1vw, 59px)/1.16 var(--serif); letter-spacing: -.065em; }
.hero-copy { color: #e0d5c5; font-size: 15px; max-width: 490px; margin-top: 19px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { padding-inline: 21px; }
.button-gold { background: #d7b688; color: #221b13; }
.button-ghost { background: #17140f57; border-color: #d2b78e75; color: #f1e5cc; }
.button-ghost:hover { border-color: var(--gold); background: #36291b; }
.hero-foot { position: absolute; z-index: 1; inset: auto 0 0; border-top: 1px solid #d3b18555; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #dbccb6; font-size: 12px; }
.hero-foot span { display: flex; align-items: center; gap: 9px; }
.hero-foot .art-label { color: #c5b49c; margin-left: auto; }
.hero-foot i { width: 30px; border-top: 1px solid #b79560; }
.hero-foot b { margin-left: 7px; color: var(--gold); }

.light-section { background: var(--paper); color: var(--ink); color-scheme: light; }
.light-section .eyebrow { color: #795634; }
.eyebrow { margin-bottom: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 35px; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 4px; border-bottom: 1px solid #a18d71a1; }
.filters button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 13px 10px; margin-bottom: -1px; font-size: 13px; color: #534938; white-space: nowrap; }
.filters button[aria-pressed=true] { border-color: #8c6036; font-weight: 800; color: #231c13; }
.filters button:hover { color: #1f1b12; }
.news-grid, .world-notes, .guide-grid, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.news-card { display: flex; flex-direction: column; background: #faf6ed; border: 1px solid #cfc1aa; min-width: 0; }
.news-image { width: 100%; aspect-ratio: 16/8.3; height: auto; object-fit: cover; object-position: center 45%; }
.news-emblem { display: grid; align-content: center; justify-items: center; gap: 9px; background: radial-gradient(ellipse at 50% 40%, #513929, #211e19 78%); color: #dfc18f; }
.news-emblem img { width: clamp(48px, 6vw, 75px); height: auto; }
.news-emblem span { font: bold 12px Georgia, serif; letter-spacing: .25em; }
.news-body { display: flex; flex: 1; flex-direction: column; gap: 11px; padding: 23px 24px 24px; }
.news-body .meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #645744; }
.tag { display: inline-flex; padding: 2px 8px; border: 1px solid #bca58a; color: #694b31; font-size: 11px; font-weight: 800; }
.news-body h3, .guide-grid h3 { font-size: 21px; }
.news-body > p:not(.meta), .guide-grid p { color: #585246; font-size: 14px; }
.news-body a, .guide-grid a, .text-link { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 13px; font-weight: 800; color: #714923; }
.news-body a { margin-top: auto; padding-top: 7px; }
.news-body a:hover, .guide-grid a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.world-section { background: #1a1c18; }
.world-feature { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(30px, 6vw, 85px); }
.world-copy > p:not(.eyebrow), .play-layout > div > p:not(.eyebrow) { color: #cec6b8; max-width: 490px; }
.world-copy > p:not(.eyebrow) { margin-top: 17px; font-size: 14px; }
.world-copy p.lead, .play-layout p.lead { color: #f0e4cf; font-size: clamp(19px, 2.3vw, 30px); line-height: 1.35; font-family: var(--serif); font-weight: 700; letter-spacing: -.04em; }
.world-copy .text-link { margin-top: 25px; color: var(--gold); }
.world-shot { border: 1px solid #a68c6a58; padding: 8px; background: #10120f; }
.world-shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.world-shot figcaption { padding: 8px 6px 2px; color: #e2d1b5; font-size: 13px; }
.world-shot figcaption span { color: #c4a371; font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-right: 10px; }
.world-notes { margin-top: 47px; border-top: 1px solid var(--hairline); }
.world-notes article { padding: 21px 10px 0 0; }
.world-notes article > span, .guide-grid li > span, .play-steps li > span { color: var(--gold); font: bold 14px Georgia, serif; letter-spacing: .12em; }
.world-notes h3 { margin: 7px 0 5px; font-size: 18px; }
.world-notes p { color: var(--muted); font-size: 13px; }

.class-section { background: #25201b; border-top: 1px solid var(--hairline); }
.class-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 15px; }
.class-tabs { display: grid; gap: 8px; align-content: start; }
.class-tabs button { display: flex; gap: 13px; align-items: center; text-align: left; background: #211e19; border: 1px solid #a98c6e63; padding: 18px 20px; min-height: 73px; color: #e4d8c4; }
.class-tabs button[aria-selected=true] { background: #d5b58b; color: #221b14; border-color: #e4cda9; }
.class-tabs button:hover:not([aria-selected=true]) { background: #3e3025; }
.class-tabs button span { display: grid; gap: 3px; font-size: 17px; font-weight: 800; }
.class-tabs button small { font: 700 9px/1.2 var(--sans); letter-spacing: .18em; }
.class-panel { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); min-height: 405px; align-items: center; background: #181814; border: 1px solid #9e7d5a79; overflow: hidden; }
.class-panel img { width: 100%; height: 405px; object-fit: cover; object-position: center 19%; }
.class-panel > div { padding: 26px clamp(22px, 4vw, 52px); }
.class-panel h3 { font: 700 clamp(38px, 5vw, 65px)/1.07 var(--serif); }
.class-panel p:not(.eyebrow) { color: #cec4b4; margin-top: 12px; font-size: 14px; }
.class-panel p.class-lead { color: #f0dfc4; font-weight: 800; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin-top: 20px; }
.chips li { border: 1px solid #be9c7566; padding: 4px 8px; color: #dfc5a1; font-size: 11px; }

.guide-grid, .play-steps { list-style: none; padding: 0; }
.guide-grid li { padding: 25px 25px 28px; border: 1px solid #caba9e; background: #f5f0e5; }
.guide-grid li > span { color: #855933; }
.guide-grid h3 { margin: 10px 0; }
.guide-grid a { margin-top: 18px; }
.media-section { background: #191b17; }
.gallery-item { min-width: 0; background: #20221b; border: 1px solid var(--hairline); overflow: hidden; }
.gallery-item img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; transition: filter .18s; }
.gallery-item:hover img { filter: brightness(1.16); }
.gallery-item span { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 14px; color: #e6d4bb; font-size: 13px; font-weight: 700; }
.gallery-item .icon { color: var(--gold); }
dialog { max-width: min(1020px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 8px; border: 1px solid #ae8f63; background: #171611; color: #f4e7d3; }
dialog::backdrop { background: #0e0d0bea; }
dialog form { display: flex; justify-content: end; margin-bottom: 4px; }
.dialog-close { font-size: 29px; width: 38px; height: 38px; line-height: 1; color: var(--gold); border: 1px solid var(--hairline); background: #2e251c; }
#gallery-image { max-height: 72vh; width: 100%; object-fit: contain; }
#gallery-caption { padding: 9px; font-size: 13px; }

.play-section { background: radial-gradient(ellipse at 16% 35%, #493428, #211e18 69%); border-top: 1px solid var(--hairline); }
.play-layout, .support-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 7vw, 100px); align-items: start; }
.play-layout > div > p:not(.eyebrow) { margin-top: 12px; }
.play-status { border: 1px solid var(--hairline); background: #1c1914b3; padding: 14px 17px; margin-top: 24px; }
.play-status span { display: inline-block; background: #d8aa74; height: 6px; width: 6px; transform: rotate(45deg); vertical-align: middle; margin-right: 7px; }
.play-status strong { color: #efd4a9; font-size: 14px; }
.play-status p { margin-top: 4px; color: #d8c9b4; font-size: 13px; }
.play-steps { border-top: 1px solid var(--hairline); }
.play-steps li { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--hairline); padding: 17px 4px; }
.play-steps h3 { font-size: 17px; }
.play-steps p { color: #d0c6b6; margin-top: 4px; font-size: 13px; }
.support-layout > div:first-child > p:last-child { margin-top: 14px; color: #5d5141; }
.faq { border-top: 1px solid #aa9273; }
.faq details { border-bottom: 1px solid #c4b297; }
.faq summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; padding: 14px 3px; font-weight: 800; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: #805d3c; font-size: 21px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #504738; margin: 0 3px 17px; font-size: 14px; }
.faq a { text-decoration: underline; text-underline-offset: 3px; }
.footer { padding: 29px 0; background: #11120f; border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer p { color: #d7ccba; font-size: 12px; }
.footer p span { margin-left: 7px; color: #bcb1a0; }
.top-link { color: var(--gold); font-size: 12px; white-space: nowrap; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 64px); }
  .nav-shell { width: calc(100% - 38px); gap: 14px; }
  .site-nav { gap: 17px; }
  .nav-play { padding-inline: 11px; }
  .hero-art { right: -11%; }
  .class-layout { grid-template-columns: 170px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 38px); }
  .section { padding-block: 72px; }
  .nav-shell { min-height: 64px; }
  .brand strong { font-size: 21px; }
  .brand img { width: 31px; }
  .nav-play { margin-left: auto; font-size: 12px; min-height: 37px; }
  .menu-toggle { order: 2; display: grid; gap: 5px; width: 40px; height: 38px; align-content: center; justify-content: center; border: 1px solid var(--hairline); background: #24231c; }
  .menu-toggle span { width: 17px; height: 1px; background: #e5c99e; }
  .site-nav { position: absolute; display: none; top: 100%; inset-inline: 0; padding: 9px 19px 14px; background: #1d1e17; border-bottom: 1px solid var(--hairline); grid-template-columns: 1fr 1fr; gap: 1px 10px; }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a::after { inset-inline: 8px; }
  .hero { min-height: 650px; }
  .hero-art { right: -25%; height: 93%; bottom: 2%; }
  .hero-veil { background: linear-gradient(90deg, #171511ed, #1b1712be 33%, #19161015 85%), linear-gradient(0deg, #151511 0%, transparent 25%); }
  .world-feature { gap: 23px; }
  .news-body { padding: 15px; }
  .news-body h3, .guide-grid h3 { font-size: 17px; }
  .news-grid, .world-notes, .guide-grid, .gallery { gap: 11px; }
  .guide-grid li { padding: 16px; }
  .class-layout { grid-template-columns: 135px minmax(0, 1fr); }
  .class-tabs button { padding: 12px; gap: 7px; min-height: 63px; }
  .class-panel { min-height: 330px; }
  .class-panel img { height: 330px; }
}

@media (max-width: 590px) {
  .wrap { width: calc(100% - 34px); }
  .section { padding-block: 54px; }
  .nav-shell { width: calc(100% - 30px); gap: 7px; }
  .brand { gap: 5px; }
  .brand strong { font-size: 18px; }
  .brand img { width: 26px; height: 32px; }
  .brand small { font-size: 7px; }
  .nav-play { gap: 5px; padding-inline: 8px; }
  .hero { min-height: 680px; align-items: end; }
  .hero::before { background-position: 57% 10%; }
  .hero-art { height: 495px; right: -105px; bottom: auto; top: -60px; opacity: .86; }
  .hero-veil { background: linear-gradient(0deg, #151511 5%, #181610f7 29%, #1c1711b9 53%, #19161022 81%), linear-gradient(90deg,#17151150,transparent 80%); }
  .hero-content { padding-top: 210px; padding-bottom: 90px; }
  .hero-eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(70px, 17vw, 93px); margin: 10px 0; }
  .hero-line { font-size: clamp(30px, 8vw, 42px); }
  .hero-copy { font-size: 13px; margin-top: 15px; max-width: 330px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 7px; margin-top: 20px; }
  .button { padding-inline: 12px; min-height: 43px; font-size: 12px; gap: 7px; }
  .hero-foot { min-height: 55px; font-size: 10px; }
  .hero-foot .art-label { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 23px; }
  .filters { max-width: 100%; }
  .filters button { padding-inline: 10px; }
  .news-grid, .guide-grid, .gallery, .world-feature, .world-notes, .play-layout, .support-layout { grid-template-columns: 1fr; }
  .world-notes { margin-top: 24px; }
  .world-notes article { padding-top: 12px; }
  .news-body, .guide-grid li { padding: 17px; }
  .class-layout { grid-template-columns: 1fr; }
  .class-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .class-tabs button { justify-content: center; padding: 8px 5px; gap: 5px; min-height: 52px; }
  .class-tabs button .icon { width: 14px; }
  .class-tabs button span { font-size: 13px; }
  .class-tabs button small { font-size: 7px; letter-spacing: .11em; }
  .class-panel { grid-template-columns: 1fr; }
  .class-panel img { height: 268px; object-position: center 16%; }
  .class-panel > div { padding: 20px; }
  .footer-inner { flex-wrap: wrap; }
  .footer p { order: 2; flex-basis: 100%; }
}

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