/* Game Factory — toy-factory palette: ink navy, cobalt, signal yellow. One bold device: the conveyor belt. */
:root {
  --ink: #1D2340;
  --ink-soft: #4A5172;
  --cobalt: #2E4BF0;
  --cobalt-deep: #1E35C2;
  --signal: #FFC531;
  --paper: #FFFFFF;
  --cloud: #EEF2FB;
  --line: #D5DCEF;
  --display: 'Do Hyeon', 'SUIT Variable', sans-serif;
  --body: 'SUIT Variable', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1120px;
  --r-s: 6px;
  --r-m: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--body); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt-deep); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { font-family: var(--display); font-size: 19px; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); white-space: nowrap; }
.nav a:hover { background: var(--cloud); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--ink-soft); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--ink-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 400 19px/1 var(--display); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-signal:hover { color: var(--ink); transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn-signal:active { transform: translateY(4px); box-shadow: none; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn[disabled] { opacity: .6; cursor: default; }

/* hero + conveyor */
.hero { background: var(--cobalt); color: var(--paper); padding-top: 56px; overflow: hidden; }
.hero h1 { max-width: 15em; }
.hero .lede { max-width: 38em; font-size: 19px; color: #E4E9FF; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 44px; }
.belt { position: relative; padding: 26px 0 0; }
.belt-track { display: flex; gap: 28px; width: max-content; padding: 0 28px 18px; animation: belt 70s linear infinite; }
.belt:hover .belt-track, .belt:focus-within .belt-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.crate { position: relative; flex: none; width: 160px; text-decoration: none; color: var(--ink); }
.crate img { width: 160px; height: 320px; object-fit: cover; border-radius: 18px; border: 4px solid var(--ink); background: var(--ink); }
.crate .tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(-2deg); background: var(--signal); border: 2px solid var(--ink); padding: 2px 12px; font: 400 17px/1.5 var(--display); white-space: nowrap; border-radius: 4px; }
.crate:nth-child(even) .tag { transform: translateX(-50%) rotate(2deg); }
.belt-rail { height: 46px; background:
  radial-gradient(circle at 17px 23px, #3A4377 9px, transparent 10px) 0 0 / 34px 46px repeat-x,
  linear-gradient(var(--signal) 0 8px, var(--ink) 8px); }
@media (prefers-reduced-motion: reduce) {
  .belt-track { animation: none; }
  .belt { overflow-x: auto; }
}

/* sections */
.band { padding: 64px 0; }
.band-cloud { background: var(--cloud); }
.section-lede { max-width: 40em; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 64px 20px; align-items: start; }
.split p { max-width: 36em; }
.facts { margin: 0; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--display); font-size: 20px; }

/* catalog: product rows with a colour edge, like labelled stock on a shelf */
.catalog { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px; border: 2px solid var(--ink); border-left: 12px solid var(--c); border-radius: var(--r-m); background: var(--paper); }
.product-shot img { width: 112px; height: 224px; object-fit: cover; border-radius: 10px; }
.product .genre { margin: 0 0 4px; font-size: 14px; color: var(--ink-soft); }
.product h2, .product h3 { font-size: 26px; margin-bottom: 6px; }
.product h2 a, .product h3 a { color: var(--ink); text-decoration: none; }
.product h2 a:hover, .product h3 a:hover { text-decoration: underline; }
.product-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-weight: 600; }

/* guides list */
.guide-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.guide-list a { display: grid; gap: 4px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--ink); }
.guide-list strong { font: 400 22px/1.35 var(--display); }
.guide-game { justify-self: start; font-size: 13px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--c); color: var(--paper); text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.guide-desc { color: var(--ink-soft); font-size: 15px; }

/* page heads */
.page-head { padding: 40px 20px 12px; }
.page-head .lede, .article-head .lede { font-size: 19px; color: var(--ink-soft); max-width: 38em; }
.byline { color: var(--ink-soft); font-size: 14px; }

/* game detail */
.game-head { background: var(--c); color: var(--ci); padding: 32px 0 48px; }
.game-head .btn-line { color: var(--ci); }
.game-head-in { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
.game-head .genre { font-weight: 700; margin-bottom: 4px; opacity: .85; }
.tagline { font: 400 24px/1.4 var(--display); }
.game-head .lede { max-width: 34em; }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.note { font-size: 14px; opacity: .85; }
.phone { width: 300px; height: 600px; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink); justify-self: center; box-shadow: 0 18px 0 -6px rgba(0,0,0,.18); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-body { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 32px; align-items: start; }
.plate { position: sticky; top: 16px; border: 3px solid var(--ink); border-radius: var(--r-m); padding: 18px 18px 8px; background:
  radial-gradient(circle at 12px 12px, var(--ink) 3px, transparent 4px), radial-gradient(circle at calc(100% - 12px) 12px, var(--ink) 3px, transparent 4px), var(--paper); }
.plate h2 { font-size: 22px; margin: 6px 0 10px; text-align: center; }
.plate dl { margin: 0; }
.plate dl div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.5; }
.plate dt { color: var(--ink-soft); }
.plate dd { margin: 0; }
.plate-toc-title { margin-top: 18px !important; }
.toc { margin: 0 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.9; }

.prose { max-width: 720px; }
.prose.narrow { margin-bottom: 64px; }
.prose section { margin-bottom: 44px; }
.prose h2 { padding-top: 8px; }
.prose h3 { margin-top: 1.4em; font-size: 21px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--cobalt)); color: var(--ci, #fff); font: 400 19px/34px var(--display); text-align: center; border: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--cloud); font-weight: 700; }
tbody th { width: 30%; font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.features div { padding: 16px; background: var(--cloud); border-radius: var(--r-m); }
.features dt { font: 400 20px/1.35 var(--display); margin-bottom: 4px; }
.features dd { margin: 0; font-size: 16px; }
.tips li::marker { color: var(--c, var(--cobalt)); }
.more { font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 22px 0 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 3px solid var(--ink); aspect-ratio: 1 / 2; object-fit: cover; width: 100%; }
.shots figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.mini { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mini a { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--paper); border-radius: var(--r-m); border-left: 8px solid var(--c); text-decoration: none; color: var(--ink); }
.mini img { width: 44px; height: 88px; object-fit: cover; border-radius: 8px; }
.mini strong { display: block; font: 400 19px/1.3 var(--display); }
.mini span { font-size: 14px; color: var(--ink-soft); }

/* article */
.article { padding-top: 32px; padding-bottom: 64px; }
.article-head { max-width: 760px; }
.article-head .genre { font-weight: 700; }
.article-toc { max-width: 720px; background: var(--cloud); border-radius: var(--r-m); padding: 16px 20px; margin: 20px 0 32px; }
.article-toc h2 { font-size: 20px; margin: 0 0 6px; }
.article-toc ol { margin: 0; padding-left: 1.3em; }
.article-cta { max-width: 720px; display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; padding: 18px; border: 2px solid var(--ink); border-left: 12px solid var(--c); border-radius: var(--r-m); }
.article-cta img { border-radius: 10px; width: 90px; height: 180px; object-fit: cover; }
.article-cta h2 { font-size: 26px; margin: 0; }
.article-cta .btn-line { color: var(--ink); }

/* about */
.career { list-style: none; padding: 0 !important; border-left: 3px solid var(--ink); margin-left: 6px; }
.career > li { position: relative; padding: 0 0 18px 22px; }
.career > li::before { content: ''; position: absolute; left: -9px; top: 8px; width: 15px; height: 15px; background: var(--signal); border: 2px solid var(--ink); border-radius: 50%; }
.career h3 { margin: 0; }
.career .when { color: var(--ink-soft); font-size: 15px; margin: 2px 0 6px; }
.biz-table tbody th { width: 9em; }
.contact-mail { font: 400 28px/1.3 var(--display); }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.legal table { font-size: 14px; }

/* footer */
.site-foot { background: var(--ink); color: #C7CCE4; padding: 44px 0 28px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; }
.foot-brand img { height: 34px; width: auto; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-links a { color: var(--paper); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--signal); }
.biz { grid-column: 1 / -1; font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; line-height: 1.6; border-top: 1px solid #343B60; padding-top: 18px; }
.biz a { color: #C7CCE4; }
.copy { grid-column: 1 / -1; margin: 0; color: #8E95B5; }

@media (max-width: 880px) {
  .split, .game-head-in, .game-body, .foot-in { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .plate { position: static; }
  .phone { width: 260px; height: 520px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .head-in { padding-top: 10px; padding-bottom: 6px; }
  .brand img { height: 34px; }
  .nav { width: 100%; }
  .nav a { font-size: 17px; padding: 6px 10px; }
  .product { grid-template-columns: 84px 1fr; padding: 12px; }
  .product-shot img { width: 84px; height: 168px; }
  .crate, .crate img { width: 130px; }
  .crate img { height: 260px; }
}
