:root{color-scheme:dark;--water:#080f1b;--panel:#101b2c;--ink:#eff4fb;--muted:#afbed1;--ice:#b8daf7;--rule:#263650;--gutter:clamp(1rem,4vw,4rem);font:16px/1.6 "Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--water);color:var(--ink)}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
a,button,summary{touch-action:manipulation}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #9bd6ff;outline-offset:4px}
img{display:block;max-width:100%}
h1,h2,p,figure,dl,dd{margin:0}
h1,h2{letter-spacing:-.055em;line-height:1.18}
h1{font-size:clamp(2rem,5vw,4.25rem);overflow-wrap:anywhere}
h2{font-size:clamp(1.65rem,3vw,2.5rem)}
.shell{width:min(1480px,100%);padding-inline:var(--gutter);margin-inline:auto}
.skip{position:absolute;z-index:21;inset:4px auto auto var(--gutter);transform:translateY(-150%);padding:.65rem;background:var(--ink);color:var(--water)}
.skip:focus{transform:none}
.header{position:sticky;top:0;z-index:20;background:#080f1a;border-bottom:1px solid var(--rule)}
.topbar{min-height:74px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:clamp(.65rem,2vw,2rem)}
.brand{display:flex;align-items:center;width:max-content;min-height:48px}
.brand img,.footer img{width:clamp(104px,10.5vw,154px);height:auto}
.desktop-nav{display:flex;gap:clamp(.7rem,2vw,2rem);align-items:center}
.desktop-nav a{display:grid;place-items:center;min-height:52px;font-weight:700;white-space:nowrap;color:var(--muted);font-size:.94rem}
.desktop-nav a:hover,.desktop-nav a[aria-current],.footer a:hover,.section-head a:hover,.field-links a:hover{color:var(--ice)}
.header-actions{justify-self:end}
.button{display:inline-flex;justify-content:center;align-items:center;gap:clamp(.5rem,1.2vw,1.15rem);min-height:48px;padding:.6rem 1.25rem;border:1px solid var(--ice);background:var(--ice);color:#08111d;font-weight:800;white-space:nowrap;transition:background-color .2s,border-color .2s,color .2s}
.button:hover{background:#e3f1ff;border-color:#e3f1ff}
.button.compact{min-height:44px;padding-inline:.85rem;font-size:.88rem}
.button.subtle{background:#0a1625;color:var(--ink);border-color:#687f9b}
.button.subtle:hover{background:#1d3048;border-color:var(--ice)}
.menu-toggle,.mobile-nav{display:none}
.hero{position:relative;isolation:isolate;min-height:clamp(480px,43vw,690px);display:grid;align-items:center;background:#091628;overflow:hidden}
.hero-art,.hero-art img,.hero::after{position:absolute;inset:0;width:100%;height:100%}
.hero-art{z-index:-2}
.hero-art img{object-fit:cover;object-position:50% 18%}
.hero::after{content:"";z-index:-1;background:linear-gradient(90deg,rgba(5,12,23,.72),rgba(5,12,23,.28) 50%,transparent 70%),linear-gradient(0deg,rgba(8,15,27,.62),transparent 27%)}
.hero-inner{padding-block:3rem}
.hero-copy{max-width:720px;animation:arrive .65s ease-out both}
@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.hero-edition{display:flex;align-items:center;gap:.7rem;color:var(--ice);font-size:.95rem;font-weight:700;margin-bottom:1.3rem}
.hero-edition span{width:2.25rem;height:1px;background:currentColor}
.hero h1{width:min(100%,49vw,680px);position:relative;margin-inline-start:-.3rem}
.hero h1 img{width:100%;height:auto}
.hero-line{font-size:clamp(1.15rem,2.05vw,1.8rem);font-weight:700;color:#f1f6ff;margin:.85rem 0 1.6rem;letter-spacing:-.045em}
.hero-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.spec-band { border-block:1px solid #35425a;background:#101a29; }
.front-content{padding-block:clamp(1.3rem,3vw,2.8rem) clamp(3rem,9vw,8rem)}
.promo{display:grid;align-items:center;min-height:clamp(90px,10vw,148px);position:relative;isolation:isolate;background:#0a1730 url('/assets/banner.webp') center/100% 100% no-repeat}
.promo::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(4,11,32,.10)}
.promo-inner{padding:.65rem 17%;display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:clamp(.65rem,2vw,2rem);align-items:center}
.promo strong{font-family:"Batang","AppleMyungjo",serif;font-size:clamp(1.5rem,3.55vw,3.15rem);color:#ffe0a5;letter-spacing:-.09em;line-height:1}
.promo b,.promo small{display:block;line-height:1.45}
.promo b{font-size:clamp(.8rem,1.3vw,1.12rem)}
.promo small{color:#d2dfee;font-size:clamp(.8125rem,1.1vw,.88rem)}
.promo-more{color:#f9dba4;font-weight:700;white-space:nowrap;font-size:.88rem}
.promo:hover .promo-more{text-decoration:underline;text-underline-offset:.25rem}
.home-news{padding-top:clamp(2.4rem,5vw,5rem)}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem}
.section-head a{display:flex;align-items:center;gap:.4rem;min-height:44px;color:var(--muted);white-space:nowrap}
.updates{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.updates li{border-bottom:1px solid var(--rule)}
.updates a{display:grid;grid-template-columns:7rem minmax(0,1fr) max-content 1rem;align-items:center;gap:1rem;padding:1.05rem .6rem;min-height:52px;transition:background-color .2s}
.updates a:hover{background:var(--panel)}
.post-category,.post-arrow{color:var(--ice)}
.post-title{font-weight:700;overflow-wrap:anywhere}
time{color:var(--muted);font-size:.88rem}
.field-guide{margin-top:clamp(3rem,8vw,7.5rem);display:grid;grid-template-columns:1.12fr 1fr;background:var(--panel)}
.field-guide img{width:100%;height:100%;max-height:480px;object-fit:cover}
.field-guide>div{align-self:center;padding:clamp(1.25rem,4.5vw,4rem)}
.field-guide p{margin:.85rem 0 1.1rem;color:var(--muted)}
.field-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1.1rem}
.field-links a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:.25rem;border-bottom:1px solid var(--rule)}
.footer{border-top:1px solid var(--rule);background:#070d16}
.footer-inner{padding-block:1.5rem;display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:center}
.footer nav{display:flex;flex-wrap:wrap;gap:.3rem 1.3rem;color:var(--muted)}
.footer nav a{min-height:44px;display:flex;align-items:center}
.footer small{justify-self:end;color:var(--muted)}
.subpage { min-height:65vh; }
.sub-hero {
  position:relative;isolation:isolate;
  border-bottom:1px solid #71634f;background:#102035;
}
.sub-hero-art,.sub-hero::after { position:absolute;inset:0;width:100%;height:100%;pointer-events:none; }
.sub-hero-art {
  inset-inline-start:auto;width:min(100%,1180px);
  object-fit:cover;object-position:center 47%;
  mask-image:linear-gradient(90deg,transparent,#000 22%);
}
@media(min-width:851px){
  .sub-hero-art[src$="/info.webp"] { width:min(100%,1000px);object-position:center 40%; }
}
.sub-hero::after {
  content:"";
  background:linear-gradient(90deg,#07101df2 0%,#081320bd 27%,#08132220 65%,transparent 100%),
    linear-gradient(0deg,#080f1bd4 0%,transparent 53%);
}
.sub-hero-inner {
  position:relative;z-index:1;
  display:grid;justify-items:start;align-content:end;gap:.5rem;
  min-height:clamp(222px,23vw,340px);padding-block:clamp(2.5rem,6vw,5rem) clamp(1.5rem,3.7vw,3.4rem);
}
.sub-hero h1 { max-width:min(21ch,100%);text-shadow:0 3px 16px #020810; }
.sub-hero--article h1 { max-width:min(30ch,100%);font-size:clamp(1.8rem,4.1vw,3.7rem); }
.sub-hero p { color:#d3e0ee;text-wrap:pretty;word-break:keep-all; }
.sub-crumbs { display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;color:#e2c38c;font-size:.89rem; }
.sub-crumbs a { min-height:32px;display:inline-flex;align-items:center; }
.sub-crumbs a:hover { text-decoration:underline;text-underline-offset:.22em; }
.subpage-body { padding-block:clamp(1.25rem,2.5vw,2.6rem) clamp(3rem,7vw,6rem); }
.subpage-body--split {
  display:grid;grid-template-columns:clamp(190px,17vw,242px) minmax(0,1fr);
  align-items:start;gap:clamp(1rem,2.5vw,2.65rem);
}
.subpage-main,.subpage-side { min-width:0; }
.subpage-side {
  position:sticky;top:104px;max-height:calc(100dvh - 120px);overflow:auto;
  border:1px solid #3f4651;border-top-color:#a1855b;background:#0d1829;
}
.subnav-heading {
  padding:.95rem 1rem;border-bottom:1px solid #3f4651;
  color:#e8cfa5;font-weight:800;overflow-wrap:anywhere;
}
.subnav-links { display:grid;padding:.35rem; }
.subnav-links a {
  display:flex;min-height:45px;align-items:center;padding:.5rem .65rem;
  border-inline-start:2px solid transparent;color:var(--muted);overflow-wrap:anywhere;
}
.subnav-links a:hover,.subnav-links a:focus-visible { background:#17263c;color:var(--ink); }
.subnav-toggle {
  width:100%;min-height:48px;padding:.65rem .85rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  border:0;background:#142237;color:#e8cfa5;font-weight:750;text-align:left;
}
.subnav-toggle[hidden],.subnav-links[hidden] { display:none; }
.subnav-toggle .nav-caret { flex:none; }
.subnav-toggle[aria-expanded="true"] .nav-caret { transform:rotate(225deg); }
.subnav-current { display:block;color:#d8e5f4;font-size:.85rem;font-weight:500; }
@media(max-width:850px){
  .subpage-body--split { grid-template-columns:minmax(0,1fr); }
  .subpage-side { position:static;max-height:none;overflow:visible; }
  .subpage-side:has(.subnav-toggle:not([hidden])) .subnav-heading { display:none; }
  .subnav-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px){
  .sub-hero-art { object-position:70% 43%;mask-image:none; }
  .sub-hero::after { background:linear-gradient(90deg,#07101de6,#08132055 68%,#08132218),linear-gradient(0deg,#080f1bde,transparent 58%); }
  .sub-hero-inner { min-height:186px;padding-block:1.55rem 1.35rem; }
  .sub-hero h1 { max-width:100%; }
}
.reading{width:100%;min-width:0}
.reading>h2{margin-bottom:1rem}
.entry{border-bottom:1px solid var(--rule)}
.entry summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:56px;padding:.55rem .75rem;cursor:pointer}
.entry summary::-webkit-details-marker{display:none}
.entry summary:hover,.entry[open] summary{background:var(--panel)}
.entry[open] summary span{rotate:45deg}
.entry dl{padding:.45rem .75rem 1.25rem}
.entry dl>div,.spec-detail>div{display:grid;grid-template-columns:minmax(6rem,1fr) minmax(0,4fr);gap:.75rem;padding:.65rem 0;border-bottom:1px solid var(--rule)}
.entry dt,.spec-detail dt{color:var(--ice);font-weight:700}
.entry dd,.spec-detail dd,.prose{overflow-wrap:anywhere}
.entry ul{margin:0;padding-left:1.15rem}
.guide-block{padding:0 0 1.6rem}
.guide-block h2{font-size:clamp(1.2rem,2.4vw,1.6rem);margin-bottom:.6rem}
.guide-block p,.empty{color:var(--muted)}
.reading>.button{margin:.4rem .5rem .4rem 0}
.banner-list{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.banner-list figure{background:var(--panel);padding:clamp(.65rem,2vw,1.15rem)}
.banner-list img{max-width:100%;height:auto}
.banner-list figcaption{display:flex;align-items:center;gap:1rem;justify-content:space-between;color:var(--muted);margin-top:.65rem;flex-wrap:wrap}
.banner-list figcaption a{min-height:44px;display:flex;align-items:center;color:var(--ice);text-decoration:underline;text-underline-offset:.25rem}
.search{display:grid;justify-content:start;gap:.4rem;min-width:0}
.search>div{display:flex;gap:.5rem;min-width:0}
.search label{color:var(--muted)}
.search input{min-width:0;width:min(100%,22rem);color:var(--ink);background:var(--panel);border:1px solid #536782;padding:.5rem .65rem}
.search button{flex:none}
.board-tools,.board-pages,.form-actions{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem}
.board-tools{justify-content:space-between;margin-bottom:1.15rem}
.board-pages{justify-content:center;align-items:center;margin-top:1rem}
.site-form{display:grid;gap:1rem;max-width:29rem}
.compose-form{max-width:48rem}
.site-form label{display:grid;gap:.35rem;min-width:0;font-weight:700}
.site-form input:not([type="hidden"]),.site-form select,.site-form textarea{
  width:100%;min-width:0;min-height:44px;padding:.6rem .75rem;
  color:var(--ink);background:#111e30;border:1px solid #556b88;font:inherit;font-weight:400
}
.site-form textarea{resize:vertical}
.site-form small,.post-meta{color:var(--muted)}
.site-form small{margin-top:-.65rem}
.form-message{padding:.7rem .8rem;color:#ffe4ce;background:#332221;border-inline-start:3px solid #e4a583}
.post-meta{display:flex;gap:.75rem;flex-wrap:wrap}
.member-post{max-width:76ch;white-space:pre-wrap}
.empty{padding:1rem 0}
.article>a{display:inline-flex;align-items:center;min-height:44px;color:var(--ice);margin-bottom:.65rem}
.prose{margin-top:1.4rem;padding-top:1.4rem;border-top:1px solid var(--rule);line-height:1.75}
.prose h2,.prose h3,.prose h4{margin:1.35rem 0 .6rem}
.prose p,.table-wrap{margin-bottom:1rem}
.table-wrap{overflow-x:auto;max-width:100%}
.prose table{border-collapse:collapse;width:100%}
.prose th,.prose td{padding:.65rem;border:1px solid var(--rule);text-align:left;min-width:6rem}
@media(max-width:850px){
 .topbar{min-height:63px;grid-template-columns:1fr auto}
 .desktop-nav{display:none}
 .header-actions{display:flex;align-items:center;gap:.5rem}
 .menu-toggle{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.45rem .65rem;border:1px solid var(--rule);color:var(--ink);background:var(--panel)}
 .mobile-nav:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:.6rem}
 .mobile-nav a{min-height:44px;display:flex;align-items:center;padding:.4rem .6rem}
 .mobile-nav a[aria-current],.mobile-nav a:hover{background:var(--panel);color:var(--ice)}
 .hero h1{width:min(68vw,610px)}
 .promo-inner{padding-inline:16%;grid-template-columns:max-content minmax(0,1fr)}
 .promo-more{display:none}
}
@media(max-width:670px){
 .hero{min-height:clamp(390px,112vw,510px);align-items:end}
 .hero-art img{object-position:center 40%}
 .hero::after{background:linear-gradient(0deg,rgba(5,12,23,.98),rgba(5,12,23,.66) 36%,rgba(5,12,23,.06) 78%)}
 .hero-inner{padding-block:3rem 1.55rem}
 .hero h1{width:min(94%,470px)}
 .hero-line{margin:.65rem 0 1rem}
 .hero-edition{margin-bottom:.75rem}
 .hero-actions .button{padding-inline:.75rem;font-size:.91rem}
 .promo{min-height:91px;background-size:auto 100%}
 .promo-inner{padding-inline:12%;grid-template-columns:1fr;gap:.35rem;justify-items:center;text-align:center}
 .promo small{white-space:normal}
 .updates a{grid-template-columns:minmax(0,1fr) max-content;gap:.2rem .55rem;padding:.65rem .15rem}
 .updates .post-category{grid-row:1;font-size:.83rem}
 .updates .post-title{grid-row:2;grid-column:1/-1}
 .updates time{grid-row:1;grid-column:2}
 .post-arrow{display:none}
 .field-guide{grid-template-columns:1fr}
 .field-guide img{aspect-ratio:16/9;height:auto}
 .footer-inner{grid-template-columns:1fr}
 .footer small{justify-self:start}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important}
}

/* The corners retain their proportions while the rails follow the panel. */
.panel-skin {
  --panel-edge: clamp(19px, 2.75vw, 38px);
  --panel-inset: clamp(1.2rem, 3.1vw, 2.85rem);
  padding: var(--panel-inset);
  border: 1px solid #45536a;
  border-image: url("/assets/joseon-frame.webp") 15% fill / var(--panel-edge) stretch;
}
.home-news.panel-skin { margin-top: clamp(2rem, 4vw, 3.6rem); }
.field-guide.panel-skin { margin-top: clamp(1.25rem, 3vw, 2.8rem); }
.field-guide.panel-skin > div { padding: clamp(1.2rem, 3.8vw, 3.2rem); }
.hero::before,.opening-frame {
  content:"";
  position:absolute;
  inset:clamp(.4rem, 1.15vw, 1.2rem);
  z-index:1;
  border: 1px solid #738aa5;
  border-image: url("/assets/joseon-frame.webp") 15% / clamp(16px, 2.4vw, 36px) stretch;
  opacity:.68;
  pointer-events:none;
}
.hero-inner { position:relative; z-index:2; }

.button,.button.subtle,.menu-toggle,.button:hover,.button.subtle:hover {
  border:1px solid #9f8760;
  border-image: url("/assets/joseon-button.webp") 32% 24% fill / .9rem 1.65rem stretch;
  background:#102238;
  color:#f8e8c4;
  font-weight:750;
  text-shadow:0 1px 3px #050c14;
  transition:filter .18s ease, color .18s ease;
}
.button,.button.subtle { min-height:50px; padding-inline:1.5rem; }
.button.compact { min-height:44px; padding-inline:1.15rem; }
.button.subtle { color:#e1edfb; filter:saturate(.66); }
.button:hover,.button.subtle:hover,.menu-toggle:hover { filter:brightness(1.23); color:#fff6e4; }
.button:active,.menu-toggle:active { filter:brightness(.88); }

.intro {
  position:fixed;
  inset:0;
  margin:0;
  border:0;
  padding:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  background:#050c16;
  color:var(--ink);
  overflow:auto;
  overscroll-behavior:contain;
}
.intro::backdrop { background:#050a13; }
body:has(.intro[open]) { overflow:hidden; }
.opening-scene {
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  min-height:100dvh;
  padding:clamp(5rem, 10vh, 7rem) var(--gutter) 3rem;
  overflow:hidden;
}
.opening-art {
  position:absolute;
  z-index:-2;
  inset:0;
  background:#081320 url("/assets/opening.webp") 50% 43% /cover no-repeat;
}
.opening-scene::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:radial-gradient(ellipse at 50% 57%, rgba(2,8,15,.38),transparent 67%), linear-gradient(0deg,rgba(4,9,17,.68),transparent 68%);
  pointer-events:none;
}
.opening-skip {
  position:absolute;
  z-index:2;
  top:max(1.25rem, env(safe-area-inset-top));
  right:max(var(--gutter), env(safe-area-inset-right));
}
.opening-title { width:min(780px,100%); position:relative; z-index:2; text-align:center; }
.opening-title h2 img { width:100%; height:auto; margin-inline:auto; }
.opening-title p { margin:.6rem 0 1.3rem; font-size:clamp(1.08rem, 2.4vw, 1.75rem); font-weight:750; text-shadow:0 2px 5px #06101e; }
@media (prefers-reduced-motion:no-preference) {
  .intro[open] .opening-art { animation: opening-shot 6.2s cubic-bezier(.22,.61,.36,1) both; }
  .intro[open] .opening-title { animation: opening-type 5s .12s ease both; }
}
@keyframes opening-shot {
  0% { opacity:0; transform:scale(1.09); }
  16% { opacity:1; }
  100% { opacity:1; transform:scale(1); }
}
@keyframes opening-type {
  0%,9% { transform:translateY(13px); opacity:0; }
  34%,100% { transform:translateY(0); opacity:1; }
}
@media (max-width:850px) {
  .menu-toggle { padding-inline:.9rem; }
}
@media (max-width:670px) {
  .hero::before { inset:.35rem; }
  .opening-art { background-image:url("/assets/opening-mobile.webp"); background-position:center; }
  .opening-title { align-self:end; padding-bottom:11dvh; }
  .opening-skip { min-height:44px; padding-inline:1.15rem; }
  .hero-actions .button { min-height:48px; padding-inline:.85rem; }
  .field-guide.panel-skin > div { padding:.95rem .15rem .2rem; }
}
@media (forced-colors:active) {
  .button,.button.subtle,.menu-toggle,.panel-skin { border:1px solid ButtonText; border-image:none; }
}

/* A bronze navigation rail with separately framed flyouts. */
.topbar { min-height:84px; gap:clamp(.65rem, 1.5vw, 1.65rem); }
.desktop-nav { gap:clamp(.26rem, .55vw, .66rem); }
.site-nav .nav-group { min-width:0; position:relative; }
.nav-title {
  min-height:48px;
  padding:.4rem clamp(.65rem, 1.14vw, 1.3rem);
  display:flex; align-items:center; justify-content:space-between; gap:.65rem;
  border:1px solid #594c3d;
  color:#d7e1ec; background:#111e30;
  cursor:pointer; font-size:clamp(.83rem, 1.16vw, 1rem); font-weight:750;
  white-space:nowrap; list-style:none;
}
.nav-title::-webkit-details-marker { display:none; }
.desktop-nav .nav-title {
  border-image:url("/assets/joseon-nav.webp") 33% 21% fill / 13px 21px stretch;
  min-width:clamp(76px, 8.4vw, 125px);
  transition:filter .18s ease,color .18s ease;
}
.nav-title:hover,.nav-group[open] .nav-title {
  color:#fff1d2; filter:brightness(1.24);
}
.nav-caret {
  width:.45rem; height:.45rem; margin-top:-.15rem;
  border-right:1px solid #d3b583; border-bottom:1px solid #d3b583;
  transform:rotate(45deg); transition:transform .17s ease;
}
.nav-group[open] .nav-caret { transform:rotate(225deg); margin-top:.15rem; }
.desktop-nav .nav-drop { position:absolute; top:100%; left:0; padding-top:.36rem; min-width:max-content; }
.desktop-nav .nav-group:last-child .nav-drop { left:auto; right:0; }
.site-nav .nav-drop ul {
  margin:0; list-style:none; padding:.65rem; background:#0a1422;
  border-image-width:18px; min-width:10.5rem;
}
.desktop-nav .nav-columns { display:grid; grid-template-columns:repeat(2,minmax(6.25rem,1fr)); column-gap:.5rem; }
.site-nav .nav-drop a {
  display:flex; justify-content:flex-start; min-height:44px;
  padding:.45rem .72rem; color:#dce7f5; font-weight:650; font-size:.9rem; white-space:normal;
}
.site-nav .nav-drop a:hover,.site-nav .nav-drop a:focus-visible { background:#172b44; color:#fff0ce; }
.button.download-button {
  --tablet-side: 39px;
  min-height:54px;
  min-inline-size:164px;
  padding-inline:1.2rem;
  text-align:center;
  border:1px solid #ae8752;
  border-image:url("/assets/royal-download-clean.webp") 26% 15% fill / 12px var(--tablet-side) stretch;
  background:#2e1c16;
  color:#fff1cc;
  font-weight:850;
  letter-spacing:-.025em;
  text-shadow:0 1px 4px #120b08;
}
.button.download-button:hover,.button.download-button:focus-visible {
  color:#fff9e9;filter:brightness(1.17);
}
.button.header-account { min-height:44px;white-space:nowrap;padding-inline:clamp(.75rem,1.4vw,1.2rem);font-size:.9rem; }
.header-account>span { transform:translateY(-2px); }
.login-dialog {
  width:min(460px,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);
  margin:auto;padding:clamp(1.25rem,4vw,2rem);color:var(--ink);background:#0b1422;
  overflow:auto;overscroll-behavior:contain;
}
.login-dialog::backdrop { background:#03070dd6; }
body:has(.login-dialog[open]) { overflow:hidden; }
.login-dialog-head { display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.1rem; }
.login-dialog-head .button { min-height:44px;padding:.45rem .8rem; }
.login-dialog .site-form { max-width:none; }

.banner-list .motion-card { margin:0; padding:clamp(.55rem, 2vw, 1.1rem); }
.banner-motion { display:block; max-width:100%; height:auto; background:#0a1323; }
.banner-list .banner-motion { width:100%; }
.promo .banner-motion { display:none; }
.banner-actions { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.banner-toggle { background:#17283e; border:1px solid #556b88; color:#edf5ff; min-height:44px; padding:.45rem .65rem; }
.banner-toggle:hover { background:#243d59; }
.banner-list figcaption a {
  min-height:44px; padding:.45rem .65rem; border:1px solid #a88b5e;
  color:#ffefc9; text-decoration:none; font-weight:750;
}
.banner-list figcaption a:hover { background:#31304a; }
@media (min-width:671px) {
 .promo { min-height:0; aspect-ratio:911 / 90; border:1px solid #6d5b44; }
 .promo .banner-motion { display:block; width:100%; height:100%; }
 .promo .promo-inner { display:none; }
}
@media (max-width:850px) {
 .topbar { min-height:67px; }
 .mobile-nav:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr); gap:.25rem; max-height:calc(100dvh - 67px); overflow:auto; overscroll-behavior:contain; }
 .mobile-nav .nav-title { min-height:47px; padding-inline:.85rem; border-image:url("/assets/joseon-nav.webp") 33% 21% fill / 13px 23px stretch; }
 .mobile-nav .nav-drop ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:.3rem 0; }
 .mobile-nav .nav-drop a { min-width:0; padding-inline:.6rem; overflow-wrap:anywhere; }
 .mobile-nav > a { min-height:44px; color:#ffe6b4; }
}
@media (max-width:670px) {
 .banner-list figcaption { gap:.3rem; }
 .banner-actions { gap:.38rem; }
}
@media (prefers-reduced-motion:reduce) {
 .nav-title,.nav-caret,.download-button { transition:none; }
}
@media (forced-colors:active) {
 .nav-title,.button.download-button { border:1px solid ButtonText; border-image:none; }
}

.promotion-panel{
  width:100%;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:clamp(1.25rem,3vw,2.7rem) clamp(1.6rem,5vw,5.25rem);
}
.promotion-panel .guide-block{min-width:0;padding:0}
.promotion-panel>.button{grid-column:1/-1;justify-self:start;margin:0}
@media(max-width:670px){
  .promotion-panel{grid-template-columns:minmax(0,1fr);gap:1.25rem}
}

@media (prefers-reduced-motion:no-preference) {
  .site-nav .nav-group[open] > .nav-drop > .panel-skin {
    transform-origin:top center;
    animation:menu-reveal 190ms cubic-bezier(.2,.75,.24,1) both;
  }
  .mobile-nav:not([hidden]) {
    animation:menu-reveal 200ms cubic-bezier(.2,.75,.24,1) both;
  }

  html[data-water-reveal] #content {
    position:relative;z-index:0;
    mask-image:linear-gradient(var(--river-direction, 90deg),
      #000 calc(var(--river-progress) - 32%),
      #000e calc(var(--river-progress) - 23%),
      #0006 calc(var(--river-progress) - 13%),
      transparent calc(var(--river-progress) - 4%));
    animation:river-pass 880ms cubic-bezier(.42,.02,.28,.99) both;
    mix-blend-mode:normal;
  }

  html[data-water-reveal] body::after {
    content:"";position:fixed;inset:0;z-index:4;pointer-events:none;
    background:linear-gradient(175deg, #21769744, #438ead 25%, #c1f2ff 42%, #64a6c9 61%, #23759e76 89%);
    opacity:.73;
    --wave-0:calc(var(--river-progress) - 3%);
    --wave-1:calc(var(--river-progress) + 2%);
    --wave-2:calc(var(--river-progress) + 6%);
    --wave-3:calc(var(--river-progress) + 4%);
    --wave-4:calc(var(--river-progress) - 2%);
    --wave-5:calc(var(--river-progress) - 5%);
    --wave-6:calc(var(--river-progress) - 2%);
    --wave-7:calc(var(--river-progress) + 3%);
    --wave-8:calc(var(--river-progress) + 5%);
    --wave-9:calc(var(--river-progress) + 2%);
    --wave-10:calc(var(--river-progress) - 3%);
    --river-edge:var(--wave-0) 0%,var(--wave-1) 10dvh,var(--wave-2) 20dvh,var(--wave-3) 30dvh,
      var(--wave-4) 40dvh,var(--wave-5) 50dvh,var(--wave-6) 60dvh,var(--wave-7) 70dvh,var(--wave-8) 80dvh,
      var(--wave-9) 90dvh,var(--wave-10) 100dvh;
    clip-path:polygon(var(--river-edge),
      calc(var(--wave-10) - 2.1%) 100dvh,calc(var(--wave-9) - 2.1%) 90dvh,calc(var(--wave-8) - 2.1%) 80dvh,
      calc(var(--wave-7) - 2.1%) 70dvh,calc(var(--wave-6) - 2.1%) 60dvh,calc(var(--wave-5) - 2.1%) 50dvh,
      calc(var(--wave-4) - 2.1%) 40dvh,calc(var(--wave-3) - 2.1%) 30dvh,calc(var(--wave-2) - 2.1%) 20dvh,
      calc(var(--wave-1) - 2.1%) 10dvh,calc(var(--wave-0) - 2.1%) 0%);
    animation:river-pass 880ms cubic-bezier(.42,.02,.28,.99) both;
  }

  html[data-water-reveal="back"] #content { --river-direction:270deg; }
  html[data-water-reveal="back"] body::after { transform:scaleX(-1); }

  @supports (clip-path:shape(from 0 0,line to 1px 1px,close)) {
    html[data-water-reveal] body::after {
      clip-path:shape(from var(--wave-0) 0,
        curve to var(--wave-2) 20dvh with var(--wave-1) 6dvh / var(--wave-2) 12dvh,
        curve to var(--wave-5) 50dvh with var(--wave-2) 33dvh / var(--wave-5) 37dvh,
        curve to var(--wave-8) 80dvh with var(--wave-5) 63dvh / var(--wave-8) 67dvh,
        curve to var(--wave-10) 100dvh with var(--wave-8) 88dvh / var(--wave-9) 94dvh,
        line to calc(var(--wave-10) - 2.1%) 100dvh,
        curve to calc(var(--wave-8) - 2.1%) 80dvh with calc(var(--wave-9) - 2.1%) 94dvh / calc(var(--wave-8) - 2.1%) 88dvh,
        curve to calc(var(--wave-5) - 2.1%) 50dvh with calc(var(--wave-8) - 2.1%) 67dvh / calc(var(--wave-5) - 2.1%) 63dvh,
        curve to calc(var(--wave-2) - 2.1%) 20dvh with calc(var(--wave-5) - 2.1%) 37dvh / calc(var(--wave-2) - 2.1%) 33dvh,
        curve to calc(var(--wave-0) - 2.1%) 0 with calc(var(--wave-2) - 2.1%) 12dvh / calc(var(--wave-1) - 2.1%) 6dvh,close);
    }
  }
}

@property --river-progress {
  syntax:"<percentage>";
  inherits:false;
  initial-value:-13%;
}
@keyframes river-pass {
  from{--river-progress:-13%}
  to{--river-progress:133%}
}

@keyframes menu-reveal{
  from{opacity:0;transform:translateY(-6px) scale(.985)}
  to{opacity:1;transform:none}
}

.catalog-tools {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(9rem,14rem) auto;
  align-items:end;gap:1rem;margin:0 0 1.5rem;
}
.catalog-tools[hidden] { display:none; }
.catalog-tools label { display:grid;gap:.35rem;min-width:0;color:var(--muted);font-weight:700;font-size:.88rem; }
.catalog-tools input,.catalog-tools select {
  width:100%;min-width:0;min-height:44px;padding:.5rem .7rem;
  font:1rem/1.35 "Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  color:var(--ink);background:#0e1928;border:1px solid #576a82;
}
.catalog-tools :is(input,select):focus-visible { outline:2px solid #9bd6ff;outline-offset:2px; }
.catalog-count { min-width:3.45rem;padding:.55rem 0;text-align:right;color:var(--muted);white-space:nowrap; }
.item-grid {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.65rem,1.35vw,1.35rem);
  margin:0;padding:0;list-style:none;
}
.item-grid>li { min-width:0;display:flex; }
.item-grid>li[hidden] { display:none; }
.item-card {
  display:flex;flex:1 1 0;min-width:0;flex-direction:column;
  background:#111e30;border:1px solid #2c3e57;
  transition:border-color .18s ease,background-color .18s ease;
}
.item-card:hover,.item-card:focus-visible { background:#17263a;border-color:#c7a877; }
.item-image {
  display:grid;place-items:center;min-height:clamp(80px,9vw,108px);
  background:#101b2b;border-bottom:1px solid #273750;
}
.item-image img,.item-detail-image img,.evolution-item img {
  width:clamp(44px,6vw,64px);height:auto;image-rendering:pixelated;
}
.item-card-text { min-width:0;display:flex;flex:1;flex-direction:column;gap:.25rem;padding:.78rem .85rem .9rem; }
.item-group { color:#dbc19a;font-size:.81rem;line-height:1.3; }
.item-name { font-size:clamp(1rem,1.42vw,1.28rem);line-height:1.34;overflow-wrap:anywhere; }
.item-summary { display:flex;flex-wrap:wrap;column-gap:.6rem;row-gap:.18rem;margin-top:auto;padding-top:.4rem;color:var(--muted);font-size:.79rem; }
.item-summary>span { min-width:0;overflow-wrap:anywhere; }
.item-summary b { color:var(--ink);font-weight:650; }
.item-summary>span:only-child b {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-weight:400;color:var(--muted);
}
.item-action {
  display:flex;align-items:center;justify-content:space-between;gap:.4rem;
  margin-top:.4rem;padding-top:.55rem;border-top:1px solid #40526b;
  color:#e4c395;font-size:.82rem;font-weight:700;
}
.item-action>span { font-size:1rem;line-height:1; }
.item-card:hover .item-action,.item-card:focus-visible .item-action {
  border-color:#9d8058;color:#ffdfad;
}
.catalog-empty { color:var(--muted);padding:1.2rem 0; }
.item-inline {
  padding:1rem;margin:0 0 1.5rem;background:#111e30;border:1px solid #506582;
  scroll-margin-top:106px;
}
.item-back { display:inline-flex;align-items:center;min-height:44px;color:var(--ice); }
.item-dialog {
  width:min(650px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);
  margin:auto;color:var(--ink);background:#0b1422;overflow:auto;overscroll-behavior:contain;
}
.item-dialog::backdrop { background:#03070dd6; }
body:has(.item-dialog[open]) { overflow:hidden; }
.item-close {
  display:block;min-height:44px;padding:.42rem .85rem;margin:0 0 .45rem auto;
  color:#f2e4c4;background:#142037;border:1px solid #977747;
}
.item-close:hover { background:#253650; }
.item-detail-head { display:flex;align-items:center;gap:1rem;margin-bottom:1rem; }
.item-detail-image {
  display:grid;place-items:center;width:clamp(62px,17vw,88px);
  flex:none;aspect-ratio:1;background:#101b2b;
}
.item-detail-head h3 { margin:0;font-size:clamp(1.2rem,3vw,1.8rem);overflow-wrap:anywhere; }
.item-facts { margin:0; }
.item-facts>div {
  display:grid;grid-template-columns:minmax(5.6rem,1fr) minmax(0,3fr);gap:.6rem;
  border-top:1px solid var(--rule);padding:.6rem 0;
}
.item-facts dt { color:var(--ice);font-weight:750; }
.item-facts dd { overflow-wrap:anywhere; }
.item-facts ul { margin:0;padding-left:1rem; }
@media (max-width:1150px) {
  .item-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:780px) {
  .item-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-tools { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.45rem .65rem;margin-bottom:.8rem; }
  .catalog-count { grid-column:1/-1;padding:0;text-align:left; }
  .item-card-text { padding:.6rem .55rem .7rem; }
  .item-dialog { padding:1rem 1.15rem 1.2rem; }
}

.evolution-item { display:flex;align-items:center;gap:.65rem; }
.evolution-item img { flex:none; }



/* The lacquered selection plate is shared by the header and section navigation. */
.site-nav .nav-current > .nav-title,
.site-nav .nav-drop a[aria-current="page"],
.subnav-links a[aria-current="page"],
.subnav-toggle {
  border:1px solid #b3905e;
  border-image:url("/assets/joseon-nav-selected.webp") 12% 10% fill / 9px 15px stretch;
  padding-inline-start:1.25rem;
  background:#182d46;color:#ffe4b3;font-weight:800;
}
.subnav-current { color:inherit; }
@media(forced-colors:active){
  .site-nav .nav-current > .nav-title,
  .site-nav .nav-drop a[aria-current="page"],
  .subnav-links a[aria-current="page"],
  .subnav-toggle {
    border-image:none;border-color:Highlight;color:Highlight;
  }
}


#home-login { scroll-margin-top: 8rem; }
.home-login-layout { padding-block:clamp(1.15rem, 2.3vw, 2rem); }
.home-account-summary {
  display:grid;
  grid-template-columns:minmax(10rem, 1fr) minmax(15rem, 1.25fr) auto;
  align-items:center;
  gap:1rem clamp(1rem, 2.5vw, 2.5rem);
  min-width:0;
  padding:clamp(.9rem, 2.2vw, 1.6rem);
  border-inline-start:2px solid #a98a5c;
  background:#0c1624;
}
.home-account-locked { border-inline-start-color:#71624c; background:#0e1724; }
.home-account-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem .75rem; min-width:0; }
.home-account-heading h2 { font-size:clamp(1.25rem, 2.2vw, 1.7rem); color:#f1e1c3; }
.home-account-heading p { flex-basis:100%; color:#c1ccdc; font-size:.9rem; word-break:keep-all; overflow-wrap:anywhere; }
.home-account-status {
  display:inline-flex; align-items:center; gap:.3rem;
  color:#b8ddf8; font-size:.8rem; font-weight:750; white-space:nowrap;
}
.home-account-locked .home-account-status { color:#e0c396; }
.home-account-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.65rem; min-width:0; }
.home-account-field { min-width:0; padding:.6rem .8rem; background:#162336; }
.home-account-field dt { color:#b9c9dc; font-size:.79rem; font-weight:700; }
.home-account-field dd, .header-username { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.home-account-field dd { color:var(--ink); font-weight:800; }
.home-account-locked .home-account-field { background:#131d2b; }
.home-account-locked .home-account-field dd { color:#aab8ca; font-size:.85rem; font-weight:600; }
.home-login-actions, .header-session { display:flex; align-items:center; gap:.65rem; min-width:0; }
.home-login-actions { justify-content:flex-end; flex-wrap:wrap; }
.header-username { max-width:clamp(4rem, 8vw, 9rem); color:var(--ice); font-size:.86rem; font-weight:750; }
.header-session form { flex:none; }
.button.home-entry-button {
  min-width:86px; min-height:44px; padding-inline:.85rem; gap:.38rem; color:#fff0ce;
}
.home-entry-button svg { flex:none; color:#e6c489; }
.home-entry-button span { line-height:1.2; }
@media (max-width:1000px) {
  .home-account-summary { grid-template-columns:minmax(0,1fr) auto; }
  .home-account-fields { grid-column:1; grid-row:2; }
  .home-login-actions { grid-column:2; grid-row:1 / 3; }
}
@media (max-width:600px) {
  .home-account-summary { grid-template-columns:minmax(0,1fr); gap:.8rem; }
  .home-account-fields, .home-login-actions { grid-column:auto; grid-row:auto; }
  .home-login-actions { justify-content:flex-start; }
}
@media (max-width:500px) {
  .header-session { gap:.35rem; }
  .header-username { max-width:clamp(2.7rem, 14vw, 4.5rem); }
  .header-session .header-account { padding-inline:.42rem; font-size:.76rem; }
}
.login-dialog {
  width:min(450px, calc(100% - 1.5rem));
  max-height:calc(100dvh - 1.5rem);
  padding:clamp(1.15rem, 5vw, 2rem);
  border:1px solid #7e6849;
  background:#101b2a;
  box-shadow:0 18px 55px #03070db3;
}
.login-dialog-head { padding-bottom:1rem; border-bottom:1px solid #5c4d3b; }
.login-dialog-head h2 { color:#f2e0bd; font-size:clamp(1.5rem, 4.8vw, 1.95rem); }
.login-dialog-head .button { padding-inline:.8rem; font-size:.875rem; }
.login-dialog .site-form { gap:1rem; }
.login-dialog .site-form label { gap:.45rem; color:#e7d8bd; font-size:.9rem; }
.login-dialog .site-form input:not([type="hidden"]) {
  min-height:54px;
  padding:.65rem .88rem;
  border:1px solid #56667a;
  border-radius:3px;
  background:#07101d;
  color:var(--ink);
  font-size:1rem;
  box-shadow:inset 0 1px 5px #02060d80;
}
.login-dialog .site-form input:not([type="hidden"]):hover { border-color:#8e9aae; }
.login-dialog .site-form input:not([type="hidden"]):focus-visible {
  border-color:#dfbb82;
  outline-color:#dfbb82;
  outline-offset:2px;
}
.login-dialog .form-actions {
  display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:stretch; gap:.65rem; margin-top:.3rem;
}
.login-dialog .form-actions .button { min-height:48px; }
.login-dialog .form-message { padding:.6rem .75rem; border-inline-start:2px solid #db856d; background:#392128; }
@media (max-width:420px) {
  .button.home-entry-button { min-width:75px; padding-inline:.58rem; }
}
