  /* 게임 UI (UiTheme) 와 같은 색: 짙은 건메탈 + 경고 호박색 + 전술 하늘색 */
  :root {
    --bg: #14171b;
    --panel: #1d2127;
    --line: #2c323a;
    --text: #e6e8e3;
    --dim: #9aa1a8;
    --amber: #f5b335;
    --sky: #5cc8f0;
    --hazard: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.7 "Noto Sans KR", system-ui, sans-serif;
    word-break: keep-all;   /* 한글이 낱말 중간에서 끊기지 않게 */
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  .en { font-family: "Barlow Condensed", "Noto Sans KR", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

  /* 첫 화면 */
  .hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: flex; align-items: center;
    overflow: hidden;
    background: #0d0f12;
  }
  .hero > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 78% 50%;
  }
  .hero::after {   /* 왼쪽 글 쪽을 어둡게 */
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(13,15,18,.92) 0%, rgba(13,15,18,.7) 38%, rgba(13,15,18,0) 70%),
      linear-gradient(0deg, var(--bg) 0%, rgba(20,23,27,0) 30%);
  }
  .hero .wrap { position: relative; z-index: 1; width: 100%; }
  .hero-copy { max-width: 520px; }
  .hero-copy .kicker { color: var(--sky); font-size: 15px; margin: 0 0 12px; }
  .hero-copy h1 { margin: 0; }
  .hero-copy h1 img { width: min(460px, 100%); height: auto; }
  .hero-copy p.lead { font-size: 18px; margin: 20px 0 28px; color: #d3d6d1; }

  .btns { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    font: 700 18px/1 "Barlow Condensed", "Noto Sans KR", sans-serif;
    letter-spacing: .08em; text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  }
  .btn-main { background: var(--amber); color: #15120a; }
  .btn-main:hover { background: #ffc552; }
  .btn-sub { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
  .btn-sub:hover { background: #262b32; }
  .note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }

  .hazard { height: 10px; background: var(--hazard); }

  /* 구역 */
  section { padding: 72px 0; }
  .label { color: var(--amber); font-size: 15px; margin: 0 0 6px; }
  h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.3; }
  .about p { max-width: 720px; color: #cfd2cd; margin: 0; }

  .hero-copy .genre { margin: 18px 0 0; font-size: 20px; color: var(--text); }
  .hero-copy .genre b { color: var(--amber); padding: 0 4px; }
  .hero-copy .genre + .lead { margin-top: 8px; }

  /* 턴제 → 실시간 두 단계 */
  .phases { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 32px; align-items: stretch; }
  .phase {
    background: var(--panel);
    border-top: 3px solid var(--sky);
    padding: 22px 24px;
  }
  .phase.rt { border-top-color: var(--amber); }
  .phase .en { color: var(--sky); font-size: 14px; }
  .phase.rt .en { color: var(--amber); }
  .phase h3 { margin: 2px 0 12px; font-size: 21px; }
  .phase ul { margin: 0; padding-left: 18px; color: #cfd2cd; font-size: 15px; }
  .phase li { margin: 4px 0; }
  .phase-arrow {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--amber); font-size: 13px;
  }
  .phase-arrow::before { content: "▶"; font-size: 22px; line-height: 1; }

  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
  .card {
    background: var(--panel);
    border-left: 3px solid var(--amber);
    padding: 20px 22px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  }
  .card .en { color: var(--sky); font-size: 14px; }
  .card h3 { margin: 2px 0 8px; font-size: 19px; }
  .card p { margin: 0; color: var(--dim); font-size: 15px; }

  .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery a { display: block; position: relative; overflow: hidden; background: #0d0f12; }
  .gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
  .gallery a:hover img { transform: scale(1.03); }
  .gallery a::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  }

  .cta { text-align: center; background: var(--panel); }
  .cta h2 { margin-bottom: 8px; }
  .cta p { color: var(--dim); margin: 0 0 24px; }
  .cta .btns { justify-content: center; }

  footer { padding: 32px 0; font-size: 13px; color: var(--dim); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

  @media (max-width: 720px) {
    .hero { min-height: 640px; align-items: flex-end; padding: 64px 0 48px; }   /* 위는 언어 버튼 자리 */
    .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(13,15,18,.85) 45%, rgba(13,15,18,.1) 100%); }
    .gallery { grid-template-columns: 1fr; }
    .hero-copy .genre { font-size: 16px; letter-spacing: .08em; }
    .phases { grid-template-columns: 1fr; }
    .phase-arrow { flex-direction: row; }
    .phase-arrow::before { content: "▼"; font-size: 18px; }
    section { padding: 56px 0; }
    h2 { font-size: 25px; }
  }

/* 언어 바꾸기 (오른쪽 위) */
.lang {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; gap: 2px;
  font: 700 14px/1 "Barlow Condensed", "Noto Sans KR", sans-serif; letter-spacing: .1em;
}
.lang a, .lang span { padding: 7px 10px; text-decoration: none; background: rgba(13,15,18,.6); color: var(--dim); }
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: #15120a; background: var(--amber); }
