/* PAYDIRT 랜딩 — 검정 바탕, 게임 화면은 크게, 글은 짧게. 유머는 스팀 공문 문장(괄호 속 한 줄, '퇴근: 미정')으로만. */
@font-face { font-family: "Bebas Neue"; src: url(../fonts/bebas-latin.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Bebas Neue"; src: url(../fonts/bebas-latinext.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(../fonts/plexmono-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex"; src: url(../fonts/plexmono-700-latinext.woff2) format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(../fonts/plexmono-700-cyr.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url(../fonts/plexmono-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex LED"; src: url(../fonts/plexmono-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --text: #ebe5d8;
  --muted: #8f887c;
  --dim: #5d5850;
  --led: #ffa514;
  --sans: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Hiragino Sans", "Yu Gothic UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Plex", ui-monospace, Consolas, "Malgun Gothic", "Apple SD Gothic Neo", "Hiragino Sans", "Microsoft YaHei", monospace;
  --display: "Bebas Neue", "Arial Narrow", Impact, var(--sans);
  --gutter: clamp(16px, 4vw, 56px);
}
:lang(ja) { --sans: system-ui, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(zh-Hans) { --sans: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --sans: system-ui, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scrollbar-width: none; } html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { margin: 0; background: #000; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.fine { margin: 8px 0 0; font: 500 12px/1.5 var(--mono); color: var(--muted); }

/* ---------- 상단 ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); transition: background .25s; }
.topbar.scrolled { background: rgba(0,0,0,.92); }
.brand { font: 26px/1 var(--display); letter-spacing: .04em; text-decoration: none; }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #333; background: #000; cursor: pointer; }
.icon-btn:hover { border-color: #777; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .spk { fill: var(--text); stroke: none; }
.icon-btn .mute { display: none; }
.icon-btn[aria-pressed="false"] .wave { display: none; }
.icon-btn[aria-pressed="false"] .mute { display: inline; }
.lang { position: relative; }
.lang-btn { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #333; background: #000; cursor: pointer; font: 14px var(--sans); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: #777; }
.lang-btn i { width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid var(--muted); margin-top: 4px; }
.lang-list { position: absolute; right: 0; top: 40px; min-width: 210px; max-height: 70vh; overflow: auto; margin: 0; padding: 6px 0; list-style: none; background: #0a0a0a; border: 1px solid #333; }
.lang-list li { padding: 7px 14px; cursor: pointer; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang-list li:hover, .lang-list li:focus { color: var(--text); background: #161616; outline: 0; }
.lang-list li[aria-selected="true"] { color: var(--led); }

/* ---------- 첫 화면 = 정산기 ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1240px; overflow: hidden; background: #000; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,0) 46%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 18%); }
.hero-shake { position: absolute; inset: 0; }
.hero-shake.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); } 30%, 50%, 70% { transform: translate(-5px, 3px); } 40%, 60% { transform: translate(5px, -1px); } }
.stage { position: absolute; left: 0; top: 0; width: 3840px; height: 1240px; transform-origin: 0 0; }
.stage-bg { width: 3840px; height: 1240px; max-width: none; user-select: none; -webkit-user-drag: none; }
.led { position: absolute; left: 1668.5px; top: 80.5px; width: 392.0px; height: 94.0px; display: flex; align-items: center; justify-content: center; padding-top: 14px; background: #050403; z-index: 3; clip-path: polygon(0.00% 25.30%, 4.35% 21.26%, 8.70% 17.58%, 13.04% 14.26%, 17.39% 11.31%, 21.74% 8.72%, 26.09% 6.50%, 30.43% 4.64%, 34.78% 3.15%, 39.13% 2.02%, 43.48% 1.26%, 47.83% 0.86%, 52.17% 0.83%, 56.52% 1.16%, 60.87% 1.86%, 65.22% 2.92%, 69.57% 4.34%, 73.91% 6.13%, 78.26% 8.29%, 82.61% 10.81%, 86.96% 13.70%, 91.30% 16.95%, 95.65% 20.56%, 100.00% 24.54%, 100% 100%, 0% 100%); }
.led span { font: 700 58px/1 "Plex LED", monospace; color: var(--led); white-space: nowrap; text-shadow: 0 0 10px rgba(255,140,10,.5);
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 64%); mask-image: radial-gradient(circle, #000 58%, transparent 64%); -webkit-mask-size: 5px 5px; mask-size: 5px 5px; }
.board { position: absolute; left: 1593px; top: 226px; width: 558px; height: 472px; border-radius: 24px; z-index: 5; }
.lever { position: absolute; left: 2160px; top: 430px; width: 160px; height: 400px; padding: 0; border: 0; background: none; z-index: 6; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.lever:active { cursor: grabbing; }
.lever:focus-visible { outline: 3px solid var(--led); outline-offset: 4px; }
.lever-hint { position: absolute; z-index: 6; pointer-events: none; font: 600 14px/1.2 var(--sans); color: #fff; text-shadow: 0 1px 2px #000, 0 0 10px #000;
  transform: translate(0, -50%); transition: opacity .4s; white-space: nowrap; }
.lever-hint::before { content: "← "; color: var(--led); }
.lever-hint.left { transform: translate(-100%, -50%); } .lever-hint.left::before { content: ""; } .lever-hint.left::after { content: " →"; color: var(--led); }
.lever-hint.gone { opacity: 0; }

.hero-copy { position: absolute; z-index: 5; left: var(--gutter); top: 50%; transform: translateY(-42%); width: var(--copy-w, 520px); }
.logo { margin: 0 0 18px; }
.logo img { width: 100%; height: auto; }
.tagline { margin: 0 0 26px; font-size: clamp(15px, 1.12vw, 18px); line-height: 1.75; color: #cfc6b6; max-width: 30em; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; text-decoration: none; cursor: pointer; border: 0; border-radius: 0; font: 700 15px/1.2 var(--sans); }
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn-main { background: var(--led); color: #000; }
.btn-main:hover { background: #ffbb45; }
.btn-sub { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #4a4640; }
.btn-sub:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-off { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px #2a2724; }
.btn-off:hover { color: var(--muted); }
.btn-off.deny { animation: deny .4s; }
@keyframes deny { 15%, 45%, 75% { transform: translateX(-6px); } 30%, 60%, 90% { transform: translateX(6px); } }

.hero.narrow { min-height: 0; max-height: none; height: auto; overflow: visible; }
.hero.narrow::before { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 30%); }
.hero.narrow .hero-shake { position: relative; overflow: hidden; height: var(--stage-h, 520px); }
.hero.narrow .hero-copy { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 var(--gutter) 8px; margin-top: -36px; text-align: center; }
.hero.narrow .logo img { width: min(100%, 440px); margin: 0 auto; }
.hero.narrow .tagline { margin-inline: auto; }
.hero.narrow .ctas { justify-content: center; }

/* ---------- 본문 구역 ---------- */
.block { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.label { margin: 0 0 clamp(28px, 4vw, 48px); font: 400 clamp(44px, 7vw, 96px)/0.95 var(--display); letter-spacing: .01em; color: #fff; }
:lang(ko) .label, :lang(ja) .label, :lang(zh-Hans) .label, :lang(zh-Hant) .label { font: 800 clamp(30px, 4.4vw, 56px)/1.15 var(--sans); }

/* 트레일러: 화면 폭 가득 */
.trailer { max-width: 1440px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #0b0b0b; display: grid; place-items: center; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { margin: 0; font: 700 14px/1 var(--mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.play-btn { position: absolute; inset: 0; border: 0; cursor: pointer; background: center / cover no-repeat; }
.play-btn::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 54px; color: #fff; text-shadow: 0 4px 20px #000; }

/* 근무 내용: 큰 스크린샷 + 한 줄 + 괄호 속 회사 사정 */
.duty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.duty { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.duty:nth-child(even) { grid-template-columns: 5fr 7fr; }
.duty:nth-child(even) .duty-shot { order: 2; }
.duty-shot { margin: 0; cursor: zoom-in; }
.duty-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.duty-title { margin: 0 0 10px; font: 800 clamp(24px, 3vw, 40px)/1.2 var(--sans); color: #fff; }
.duty-note { margin: 0; font: 500 clamp(13px, 1.1vw, 15px)/1.5 var(--mono); color: var(--muted); }

/* 더 많은 스크린샷 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; background: #000; cursor: zoom-in; }
.gallery button:hover img { opacity: .75; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lightbox { max-width: min(96vw, 1600px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border: 1px solid #444; background: #000; font-size: 22px; cursor: pointer; }

/* 복리후생: 마지막 줄(휴가: 해당 없음)이 펀치라인 */
.welfare-list { list-style: none; margin: 0; padding: 0; }
.welfare-list li { padding: 14px 0; border-top: 1px solid #1d1b19; font: 600 clamp(18px, 2vw, 26px)/1.4 var(--sans); color: #cfc7b9; }
.welfare-list li.last { color: #fff; font-size: clamp(24px, 3vw, 40px); }

/* 마지막 */
.outro { text-align: center; padding-bottom: clamp(72px, 10vw, 120px); }
.outro-logo { width: min(80%, 560px); height: auto; margin: 0 auto 28px; }
.outro .ctas { justify-content: center; }
.clockout-msg { min-height: 1.4em; margin: 14px 0 0; font: 700 18px/1.4 var(--mono); color: #ff5a3c; opacity: 0; }
.clockout-msg.pop { animation: pop 1.8s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(6px); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* 바닥 */
.footer { padding: 40px var(--gutter) 48px; border-top: 1px solid #161514; text-align: center; color: var(--muted); font-size: 14px; }
.footer p { margin: 6px 0; }
.footer-by a { color: var(--text); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text); text-decoration: none; } .footer-links a:hover { text-decoration: underline; }
.specs-box { max-width: 720px; margin: 14px auto 0; text-align: left; }
.specs-box summary { cursor: pointer; text-align: center; color: var(--muted); font-size: 13px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; font-size: 13px; color: #c3bbae; }
.specs ul { margin: 6px 0 0; padding: 0; list-style: none; } .specs li { padding: 1px 0; } .specs strong { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--dim); }

@media (max-width: 860px) {
  .duty, .duty:nth-child(even) { grid-template-columns: 1fr; }
  .duty:nth-child(even) .duty-shot { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-shake.shake, .btn-off.deny { animation: none; } }

/* 손맛(fx.js) */
.fx-ore { position: fixed; z-index: 100; pointer-events: none; image-rendering: pixelated; }
.duty-shot, .gallery button { transition: transform .25s ease-out; will-change: transform; }
.lever-hint { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { margin-left: -5px; } }
.lever-hint.left { animation-name: bob-r; } @keyframes bob-r { 50% { margin-left: 5px; } }
.welfare-list li.last { transform-origin: left center; display: inline-block; }

/* 키아트 이미지에만 좌우 비네팅(글·버튼은 그 위에 그대로) */
.hero-shake::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 84%, rgba(0,0,0,.85) 100%); }

/* 바닥: 모닥게임즈 로고 + 링크 한 줄 */
.footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px var(--gutter) 48px; border-top: 0; }
.modak img { width: 120px; height: auto; opacity: .9; transition: opacity .2s, transform .2s; }
.modak:hover img { opacity: 1; transform: translateY(-2px); }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; } .footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; font-size: 11px; color: var(--dim); }
.outro .ctas { align-items: center; }
.clock-row { position: relative; max-width: 720px; margin: 22px auto 0; height: 64px; display: flex; justify-content: center; align-items: center; }
.clock-row .btn-off { min-height: 40px; padding: 0 18px; font-size: 13px; }
/* 간단한 소개: 스크린샷 4장 + 한 줄 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps li { position: relative; }
.steps img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.steps p { margin: 12px 0 0; font: 700 clamp(14px, 1.15vw, 17px)/1.4 var(--sans); color: #e6dfd2; word-break: keep-all; }
.steps li + li::before { content: "→"; position: absolute; left: -12px; top: calc((100% - 2.4em) / 2 - 10px); transform: translateX(-50%); color: var(--led); font: 700 16px/1 var(--mono); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } .steps li + li::before { display: none; } }

/* 스토어 버튼 — 두 버튼은 크기·모양을 똑같이, 바탕색과 로고만 각 서비스 것(공식 워드마크) */
.btn-steam, .btn-stove { width: 220px; min-height: 56px; padding: 0 20px; justify-content: center; gap: 10px; border-radius: 6px; color: #fff;
  font: 600 15px/1 var(--sans); box-shadow: none; transition: filter .15s, transform .15s; }
.btn-steam { background: #171d25; box-shadow: inset 0 0 0 1px #2a3f55; }
.btn-steam:hover { background: #1b2838; box-shadow: inset 0 0 0 1px #66c0f4; }
.btn-stove { background: #ff5a1f; }
.btn-stove:hover { filter: brightness(1.08); }
.store-logo { display: inline-flex; align-items: center; }
.store-logo img { display: block; width: auto; }
.btn-steam .store-logo img { height: 22px; }
.btn-stove .store-logo img { height: 16px; }
.store-label { font-weight: 600; opacity: .95; }
.store-label:empty { display: none; }
.logo-after .store-logo { order: 2; }
.logo-after .store-label { order: 1; }
/* 소개: 큰 스크린샷 + 한 줄, 좌우 번갈아 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 96px); }
.steps li { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.steps li:nth-child(even) { grid-template-columns: 5fr 7fr; }
.steps li:nth-child(even) img { order: 2; }
.steps li + li::before { content: none; }
.steps img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.steps p { margin: 0; font: 800 clamp(24px, 3vw, 40px)/1.25 var(--sans); color: #fff; word-break: keep-all; }
@media (max-width: 860px) { .steps li, .steps li:nth-child(even) { grid-template-columns: 1fr; } .steps li:nth-child(even) img { order: 0; } }
/* 바닥: 모닥게임즈 로고 + 홈페이지 바로가기 + 저작권만 */
.modak { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: 13px; }
.modak span { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.modak span::after { content: "↗"; font-size: 12px; }
.modak:hover span { color: var(--text); }
/* 언어 선택 — 테두리 없는 글자 버튼 + 얇은 목록 */
.lang-btn { height: 32px; padding: 0 4px; gap: 7px; border: 0; background: transparent; color: var(--muted); font: 500 13px var(--sans); letter-spacing: .02em; }
.lang-btn::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; opacity: .8; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); border: 0; }
.lang-btn i { border-top-color: currentColor; opacity: .7; }
.lang-list { top: 38px; min-width: 190px; padding: 6px; background: rgba(12,12,12,.97); border: 1px solid #222; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.lang-list li { padding: 8px 12px; border-radius: 5px; font-size: 13px; color: #a8a196; display: flex; align-items: center; justify-content: space-between; }
.lang-list li:hover, .lang-list li:focus { background: #1b1b1b; color: #fff; }
.lang-list li[aria-selected="true"] { color: #fff; }
.lang-list li[aria-selected="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--led); }
/* 상단 바: 로고 글자만 작게, 스크롤 전엔 투명 */
.topbar { height: 58px; }
.topbar.scrolled { background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.brand { font-size: 22px; color: #fff; opacity: .9; }
.lang-btn:focus-visible { outline: 1px solid #555; outline-offset: 4px; border-radius: 4px; }
/* 트레일러 자리: 영상 전에는 키아트를 어둡게 깔고 '공개 예정' */
.video { overflow: hidden; background: #050505; }
/* 로고 없는 키아트를 흐리고 어둡게(트레일러 공개 전 자리 표시) */
.video::before { content: ""; position: absolute; inset: -20px; background: url(../img/hero_blur.webp) 51% 40% / cover no-repeat; filter: blur(8px) brightness(.32) saturate(.8); }
.video-soon { position: relative; padding: 10px 18px; border: 1px solid rgba(255,255,255,.18); color: #cfc7b9; letter-spacing: .2em; font-size: 12px; background: rgba(0,0,0,.35); }
.video:has(iframe)::before, .video:has(video)::before, .video:has(.play-btn)::before { content: none; }
/* 소개 이미지: 아주 얇은 테두리 + 가리키면 살짝 확대 */
.steps img { box-shadow: 0 0 0 1px #1c1a17; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.steps li:hover img { transform: scale(1.02); }
.steps li { overflow: visible; }
.lever-frame { position: absolute; left: 2070px; top: 310px; width: 320px; height: 600px; max-width: none; z-index: 4; pointer-events: none; }
/* 레버 포커스 링 없음(누르면 흰 사각형이 생기던 것) — 키보드 사용자는 안내 문구로 */
.lever:focus, .lever:focus-visible { outline: none; }
/* 키아트 색감: CRT 를 끈 렌더라 납작해 보여서 대비·채도를 살짝 올리고 아주 옅은 주사선 질감을 얹는다(바탕·레버 프레임에 똑같이) */
.stage { filter: contrast(1.08) saturate(.8) brightness(1.03); }
.hero-shake::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 1px, transparent 1px 3px); }

/* ===== 4차 다듬기 ===== */
/* 상단: 언어 버튼은 화면 오른쪽 끝에 붙게 */
.topbar { padding: 0 18px 0 var(--gutter); }
/* 스토어 버튼: 같은 크기·같은 모양에 입체감(위쪽 얇은 빛, 아래 그림자), 가리키면 살짝 떠오름 */
.btn-steam, .btn-stove { position: relative; width: 224px; min-height: 58px; border-radius: 8px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn-steam { background: linear-gradient(180deg, #1f2a38 0%, #121922 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px #2c3e52, 0 10px 24px rgba(0,0,0,.45); }
.btn-steam:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px #66c0f4, 0 14px 30px rgba(0,0,0,.55), 0 0 22px rgba(102,192,244,.18); background: linear-gradient(180deg, #243245 0%, #141c26 100%); }
.btn-stove { background: linear-gradient(180deg, #ff6a2e 0%, #f2470f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px rgba(0,0,0,.45); }
.btn-stove:hover { transform: translateY(-2px); filter: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 30px rgba(0,0,0,.55), 0 0 24px rgba(255,90,31,.3); }
.store-label { font-size: 14px; letter-spacing: .01em; }
/* 퇴근 = 낡은 타임카드. 다가가면 '퇴근: 미정' 쪽지가 붙고, 계속 도망간다 */
.clock-row { height: 96px; }
.clock-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 116px; height: 66px; border: 0; border-radius: 3px; cursor: pointer; transform: rotate(-3deg);
  background: repeating-linear-gradient(0deg, transparent 0 13px, rgba(120,90,50,.18) 13px 14px), linear-gradient(180deg, #efe6cf, #d9cba6);
  box-shadow: 0 6px 14px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.15); color: #b3261a; }
.cc-hole { position: absolute; top: 6px; left: 50%; width: 18px; height: 6px; margin-left: -9px; border-radius: 3px; background: #000; opacity: .85; }
.cc-title { margin-top: 6px; font: 800 18px/1 var(--sans); letter-spacing: .04em; }
.cc-sub { font: 700 9px/1 var(--mono); letter-spacing: .18em; color: #6b5a3c; }
.clock-tip { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%) rotate(2deg); padding: 6px 10px; background: #fffbe6; color: #1a1a1a;
  font: 700 12px/1.2 var(--mono); box-shadow: 0 4px 10px rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.clock-tip.show { opacity: 1; }
/* 바닥: MADE BY · 로고 · 홈페이지 알약 */
.footer { gap: 12px; padding: 64px var(--gutter) 44px; }
.made-by { font: 700 10px/1 var(--mono); letter-spacing: .32em; color: var(--dim); }
.modak img { width: 128px; height: auto; }
.modak-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 16px 10px 18px; border-radius: 999px; text-decoration: none;
  color: #d9d3c8; font: 600 13px/1 var(--sans); background: #0e0e0e; box-shadow: inset 0 0 0 1px #2a2725; transition: box-shadow .2s, color .2s; }
.modak-pill i { font-style: normal; color: #e8443a; transition: transform .2s; }
.modak-pill:hover { color: #fff; box-shadow: inset 0 0 0 1px #e8443a; }
.modak-pill:hover i { transform: translateX(3px); }
.footer-copy { margin-top: 6px; }
/* 첫 화면 등장: 어둠에서 기계가 떠오르고 LED 가 깜빡이며 켜진다 */
.hero-shake { transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.2,.8,.2,1); }
.hero.boot .hero-shake { opacity: 0; transform: scale(1.04); }
.hero.boot .hero-copy, .hero.boot .lever-hint { opacity: 0; }
.hero-copy { transition: opacity .9s ease .5s; }
.led.boot span { animation: ledOn 1s steps(1) forwards; }
@keyframes ledOn { 0%, 20%, 40% { opacity: 0; } 10%, 30%, 55%, 100% { opacity: 1; } }
/* 휴대폰: 레버 잡는 자리를 넓게(레버 쪽 기둥 전체) */
.hero.narrow .lever { left: 2080px; top: 300px; width: 300px; height: 640px; }
.clock-tip { display: none !important; }
/* 기계 불빛 — 아치 전구는 게임처럼 노란(호박) 불만. 렌더 위 전구 자리에 빛을 더한다(화면 혼합) */
.bulbs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bulb { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; mix-blend-mode: screen; opacity: 0; transition: opacity .08s linear;
  background: radial-gradient(circle, rgba(255,246,210,1) 0 12%, rgba(255,196,110,.95) 26%, rgba(255,160,60,.35) 50%, rgba(255,140,40,0) 70%); }
.bulb.on { opacity: 1; }
.lamp-glow { position: absolute; left: 1466px; top: 118px; width: 150px; height: 150px; margin: -75px 0 0 -75px; z-index: 3; pointer-events: none; border-radius: 50%;
  mix-blend-mode: screen; background: radial-gradient(circle, rgba(255,210,140,.55) 0, rgba(255,170,80,.22) 30%, rgba(255,140,40,0) 65%); animation: lamp 4.5s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .75; } 47% { opacity: .95; } 50% { opacity: .55; } 53% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .lamp-glow { animation: none; } }
/* ===== 검토 수정 ===== */
/* 일본어·중국어: 가나·한자 자간을 조이고(palt), 일본어는 문절 단위로 줄바꿈 */
:lang(ja), :lang(zh-Hans), :lang(zh-Hant) { font-feature-settings: "palt"; }
:lang(ja) .tagline, :lang(ja) .steps p { word-break: auto-phrase; line-break: strict; }
:lang(zh-Hans) .tagline, :lang(zh-Hant) .tagline, :lang(zh-Hans) .steps p, :lang(zh-Hant) .steps p { word-break: normal; line-break: strict; }
.video-soon { letter-spacing: .14em; }
:lang(ja) .video-soon, :lang(zh-Hans) .video-soon, :lang(zh-Hant) .video-soon, :lang(ko) .video-soon { letter-spacing: .06em; }
/* 스토어 버튼: 로고와 라벨 크기 균형 */
.btn-steam .store-logo img { height: 26px; }
.btn-stove .store-logo img { height: 18px; }
.store-label { font-size: 15px; font-weight: 700; }
/* ===== 5차 다듬기 ===== */
/* 상단 왼쪽: 글자 대신 키아트 로고(작게), 첫 화면에서는 숨겼다가 스크롤하면 나타남 */
.brand { display: block; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.brand img { height: 22px; width: auto; }
.topbar.scrolled .brand { opacity: 1; transform: none; pointer-events: auto; }
/* 구역 사이를 조금 좁게 */
.block { padding-top: clamp(64px, 8vw, 120px); }
/* 마지막 구역: 정산기 불빛이 번진 듯한 어두운 배경 */
.outro { position: relative; max-width: none; margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/hero_blur.webp) 51% 30% / cover no-repeat; filter: blur(14px) brightness(.28) saturate(1.1);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%); transform: scale(1.1); }
.outro::after { content: ""; position: absolute; left: 50%; top: 42%; z-index: -1; width: 60vw; height: 40vw; max-width: 900px; max-height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255,140,30,.10) 0%, rgba(255,120,20,0) 65%); pointer-events: none; }
/* ===== 1차 ===== */
/* 소개 문장: 키아트 위에서도 또렷하게, 줄 길이 짧게 */
.tagline { color: #e2dacb; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.8); max-width: 27em; }
.logo img { filter: drop-shadow(0 8px 24px rgba(0,0,0,.65)); }
/* 레버 안내: 얇은 화살표 + 글, 가리키면 밝아짐 */
.lever-hint { font-weight: 700; letter-spacing: .01em; }
.hero.lever-hot .lever-hint { color: var(--led); }
/* 당길 때 화면이 아주 살짝 기계 쪽으로 다가감 */
.stage { transition: scale .5s cubic-bezier(.2,.8,.2,1); transform-origin: 0 0; }
.hero.pulling .hero-shake { scale: 1.012; transition: scale .18s ease-out; }
.hero-shake { transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.2,.8,.2,1), scale .6s cubic-bezier(.2,.8,.2,1); transform-origin: 58% 40%; }
/* 정산판: 가리키면 손 모양(눌러도 당겨짐) */
.board { cursor: pointer; }
/* ===== 5차: 태블릿 가로에서 글 칸이 저장통을 덜 가리게 ===== */
@media (min-width: 900px) and (max-width: 1180px) { .hero-copy { width: min(var(--copy-w, 520px), 340px); } .tagline { font-size: 14px; } }
.steps img { filter: saturate(.85); }
/* 레버 외곽선 — 게임 Wide Outline(짙은 주황, 가리킬 때만) */
.lever-outline { opacity: 0; transition: opacity .12s; z-index: 4; }
.hero.lever-hot .lever-outline, .hero.lever-nudge .lever-outline { opacity: 1; }
/* ===== 다음 다듬기 ===== */
/* 키보드로 레버에 오면 게임 외곽선 */
.hero:has(.lever:focus-visible) .lever-outline { opacity: 1; }
/* 첫 화면 글: 로고 → 문장 → 버튼 순서로 차례로 */
.hero-copy > * { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.hero.boot .hero-copy > * { opacity: 0; transform: translateY(14px); }
.hero-copy > .tagline { transition-delay: .12s; } .hero-copy > .ctas { transition-delay: .24s; }
/* 첫 정산이 끝나면 스토어 버튼이 한 번 은은하게 빛난다 */
.ctas.nudge .btn-steam { animation: glowSteam 1.4s ease-out 2; }
.ctas.nudge .btn-stove { animation: glowStove 1.4s ease-out 2; animation-delay: .15s; }
@keyframes glowSteam { 40% { box-shadow: inset 0 0 0 1px #66c0f4, 0 0 26px rgba(102,192,244,.35); } }
@keyframes glowStove { 40% { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 28px rgba(255,90,31,.45); } }
@media (prefers-reduced-motion: reduce) { .ctas.nudge .btn-steam, .ctas.nudge .btn-stove { animation: none; } }
html, body { overflow-x: clip; } main, .footer { overflow-x: clip; }
/* ===== 기계 버튼(원본 좌표) ===== */
/* 부품 숫자판(렌더의 ⚙400 자리) — 톱니는 렌더 그대로, 숫자만 덮어 쓴다 */
.parts-lcd { position: absolute; left: 2219px; top: 151px; width: 36px; height: 28px; z-index: 5; display: flex; align-items: center; background: #0c0805; overflow: hidden; }
.parts-lcd span { display: inline-block; margin-left: 1.5px; font: 700 14px/1 "Plex LED", monospace; color: #ff951c; letter-spacing: -.01em; text-shadow: 0 0 4px rgba(255,120,20,.55);
  transform: scale(var(--sx, 1), 1.42); transform-origin: left center; }
.parts-lcd.deny span { animation: partsDeny .5s steps(1) 3; }
@keyframes partsDeny { 50% { color: #ff2a1a; text-shadow: 0 0 8px rgba(255,30,20,.8); } }
.parts-lcd.spend span { color: #ffd27a; }
/* 버튼 캡: 누르면 들어갔다 튀어나온다 */
.mbtn { position: absolute; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mbtn img { width: 100%; height: 100%; display: block; transition: transform .22s cubic-bezier(.3,1.6,.5,1), filter .15s; }
.mbtn:hover img { filter: brightness(1.12); }
.mbtn.down img { transform: scale(.93) translateY(1px); filter: brightness(.82); transition: transform .05s, filter .05s; }
.mbtn:focus-visible { outline: 2px solid #d96614; outline-offset: 3px; }
.mbtn-salvage { left: 2195px; top: 238px; width: 56px; height: 54px; }
.mbtn-upgrade { left: 2194px; top: 374px; width: 56px; height: 60px; }
.mbtn.shake { animation: btnShake .35s; }
@keyframes btnShake { 20%, 60% { transform: translateX(-2px); } 40%, 80% { transform: translateX(2px); } }
/* 먼지(업그레이드 고장) */
.dust { position: absolute; left: 2072px; top: 254px; width: 300px; height: 300px; z-index: 7; pointer-events: none; }
/* ===== 다음: 소개 스크린샷을 더 크게(화면 폭의 2/3), 글은 옆에 크게 ===== */
.intro { max-width: 1320px; }
.steps li { grid-template-columns: 8fr 4fr; }
.steps li:nth-child(even) { grid-template-columns: 4fr 8fr; }
.steps p { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.2; }
.steps img { box-shadow: 0 0 0 1px #1c1a17, 0 24px 60px rgba(0,0,0,.6); }
@media (max-width: 860px) { .steps li, .steps li:nth-child(even) { grid-template-columns: 1fr; } }
/* SALVAGE·UPGRADE: 가리키면 게임처럼 짙은 주황 외곽 */
.mbtn:hover { box-shadow: 0 0 0 2px #d96614; border-radius: 4px; }
.hero:not(.narrow) .hero-copy { left: clamp(40px, 6.5vw, 132px); }
/* ===== 여백 — 원래(넓음)와 줄인 값의 중간 ===== */
.block { padding-top: clamp(56px, 7vw, 104px); }
.steps { gap: clamp(40px, 5.5vw, 80px); }
.outro { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(64px, 8vw, 116px); padding-bottom: clamp(48px, 6vw, 88px); }
.outro-logo { margin-bottom: 24px; }
.clock-row { height: 84px; margin-top: 18px; }
.footer { padding: 44px var(--gutter) 40px; gap: 12px; }
/* ===== CRT 느낌: 위 금액 LCD·정산판 — 가장자리가 휘는 볼록 화면 + 주사선 + 가장자리 어둡게 ===== */
.board { filter: url(#crtBarrel); }
.led { filter: url(#crtBarrel); }
.board-crt { position: absolute; left: 1593px; top: 226px; width: 558px; height: 472px; border-radius: 24px; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, rgba(0,0,0,0) 1px 3px),
              radial-gradient(ellipse 72% 70% at 50% 48%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%),
              linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 30%);
  box-shadow: inset 0 0 26px 6px rgba(0,0,0,.7); }
.led::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, rgba(0,0,0,0) 1px 3px), radial-gradient(ellipse 75% 85% at 50% 55%, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%); }
