:root {
  color-scheme: light;
  --ink: #102840;
  --navy: #0d2d4b;
  --muted: #667d8c;
  --line: #dce6e9;
  --soft: #f4f8f8;
  --teal: #16aeb5;
  --coral: #f7665f;
  --gold: #f4b93d;
  --shadow: 0 18px 42px rgba(23, 58, 75, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: #fff; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: "Montserrat", "Noto Sans KR", Arial, sans-serif; }
img { display: block; }
a { color: inherit; }

.games-app { width: min(1450px, calc(100% - 30px)); margin: 0 auto; padding: 18px 0 32px; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 8px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 7px solid var(--navy);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 17%, #fff 18% 33%, var(--navy) 34% 43%, transparent 44%);
  box-shadow: 0 9px 20px rgba(17, 63, 84, .18);
  transform: rotate(-10deg);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 23px;
  border-radius: 8px;
  background: var(--navy);
  transform-origin: 50% 0;
}
.brand-mark::before { transform: rotate(120deg) translate(-50%, -1px); }
.brand-mark::after { transform: rotate(240deg) translate(-50%, -1px); }
.brand-mark i { transform: translate(-50%, -1px); }
.brand small { display: block; color: var(--teal); font-size: 9px; font-weight: 1000; letter-spacing: .17em; }
.brand strong { display: block; margin-top: 2px; font-size: clamp(25px, 3vw, 36px); font-style: italic; font-weight: 1000; letter-spacing: -.055em; line-height: .92; }
.brand strong b { color: var(--coral); }
.header-status { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: #526b79; background: #fff; font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.header-status i { width: 8px; height: 8px; border-radius: 50%; background: #33c77a; box-shadow: 0 0 0 5px rgba(51,199,122,.12); }

.lobby-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 48px clamp(28px, 6vw, 88px);
  border: 1px solid #e3ddd0;
  border-radius: 30px;
  background: url("./assets/word-arcade-commercial-v2/runtime/background-games.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.lobby-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0 35%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.16) 78%); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy { max-width: 670px; }
.hero-copy > p { margin: 0 0 13px; color: var(--teal); font-size: 11px; font-weight: 1000; letter-spacing: .2em; }
.hero-copy h1 { margin: 0; color: var(--navy); font-size: clamp(39px, 5vw, 68px); font-weight: 1000; letter-spacing: -.065em; line-height: .98; }
.hero-copy h1 b { color: var(--coral); font-weight: 1000; }
.hero-copy > span { display: block; max-width: 560px; margin-top: 21px; color: #5f7685; font-size: 14px; font-weight: 700; line-height: 1.7; }
.hero-copy > a { min-width: 160px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; margin-top: 25px; padding: 0 22px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--navy), #176486); box-shadow: 0 11px 22px rgba(19, 63, 84, .2); font-size: 12px; font-weight: 1000; text-decoration: none; }
.hero-copy > a b { color: #75e2de; font-size: 17px; }

.learning-strip { min-height: 78px; display: grid; grid-template-columns:220px 1fr 390px; align-items:center; gap:22px; margin-top:16px; padding:14px 20px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 9px 24px rgba(24,64,79,.07); }
.learning-strip > div { min-width:0; }
.learning-strip > div:last-child { padding-left:22px; border-left:1px solid var(--line); }
.learning-strip small { display:block; color:var(--teal); font-size:7px; font-weight:1000; letter-spacing:.15em; }
.learning-strip strong { display:block; margin-top:3px; overflow:hidden; color:var(--navy); font-size:11px; font-weight:1000; white-space:nowrap; text-overflow:ellipsis; }
.learning-strip p { display:flex; align-items:center; justify-content:center; gap:7px; margin:0; }
.learning-strip p span { min-width:55px; padding:7px 9px; border-radius:8px; color:#55717f; background:var(--soft); font-size:8px; font-weight:1000; text-align:center; letter-spacing:.05em; }

.catalog-section { padding-top: 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 4px 20px; padding-bottom: 17px; border-bottom: 2px solid var(--ink); }
.section-heading small { color: var(--coral); font-size: 9px; font-weight: 1000; letter-spacing: .18em; }
.section-heading h2 { margin: 4px 0 2px; font-size: clamp(27px, 4vw, 43px); font-style: italic; font-weight: 1000; letter-spacing: -.05em; line-height: .95; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.section-heading > span { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: #fff; background: var(--navy); font-size: 8px; font-weight: 1000; letter-spacing: .12em; }
.campaign-section .section-heading small { color: var(--teal); }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card {
  --accent: var(--teal);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 64, 80, .09);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 65%, #dce6e9); box-shadow: 0 20px 38px rgba(22, 64, 81, .15); }
.game-card:focus-visible { outline: 4px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 3px; }
.game-scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: var(--scene) center / cover no-repeat; }
.game-scene::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(8,40,58,.12)); pointer-events: none; }
.game-screenshot { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-number { position: absolute; z-index: 8; left: 14px; top: 13px; display: grid; width: 37px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.88); border-radius: 9px; color: #fff; background: rgba(10,43,68,.84); box-shadow: 0 7px 14px rgba(10,43,68,.16); font-size: 10px; font-weight: 1000; letter-spacing: .06em; backdrop-filter: blur(5px); }
.story-badge { position: absolute; z-index: 8; right: 12px; top: 13px; padding: 7px 9px; border-radius: 8px; color: #fff; background: rgba(10,43,68,.84); font-size: 7px; font-weight: 1000; letter-spacing: .12em; backdrop-filter: blur(5px); }
.object { position: absolute; z-index: 4; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 9px rgba(12,47,59,.22)); }
.game-copy { min-height: 180px; display: flex; flex-direction: column; padding: 18px 19px 17px; }
.game-copy > small { color: var(--accent); font-size: 8px; font-weight: 1000; letter-spacing: .15em; }
.game-copy h3 { margin: 5px 0 8px; color: var(--navy); font-size: 21px; font-style: italic; font-weight: 1000; letter-spacing: -.035em; line-height: 1; }
.game-copy p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.55; }
.game-copy > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.game-copy > div span { overflow: hidden; color: #8193a0; font-size: 7px; font-weight: 1000; letter-spacing: .08em; white-space: nowrap; text-overflow: ellipsis; }
.game-copy > div b { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; color: #fff; background: var(--navy); font-size: 8px; font-weight: 1000; letter-spacing: .04em; transition: background .2s, transform .2s; }
.game-card:hover .game-copy > div b { background: var(--accent); transform: translateX(2px); }

.drum { --accent:#e45c61; }
.boxing { --accent:#ef5b59; }
.zombie { --accent:#2a9c7e; }
.shot { --accent:#e89b31; }
.strike { --accent:#1b9aad; }
.whack { --accent:#6fae3f; }
.jegi { --accent:#18a9ad; }
.racer { --accent:#14a9c5; }
.bubble { --accent:#6a63d7; }
.claw { --accent:#dc5d9e; }
.hockey { --accent:#2a86c8; }
.fishing { --accent:#188e83; }
.crossing { --accent:#57a94d; }
.cannon { --accent:#de6a4c; }
.rider { --accent:#d88635; }
.pinball { --accent:#18a9aa; }

.drum .main { width:43%; left:50%; bottom:2%; transform:translateX(-50%); }
.drum .action { width:36%; right:1%; bottom:-8%; }
.boxing .main { width:37%; left:50%; top:6%; transform:translateX(-50%); }
.boxing .left { width:35%; left:2%; bottom:-12%; }
.boxing .right { width:35%; right:2%; bottom:-12%; }
.zombie .target { width:35%; left:63%; top:10%; }
.zombie .action { width:50%; left:4%; bottom:-9%; }
.shot .target { width:38%; right:4%; top:5%; }
.shot .action { width:53%; left:3%; bottom:-12%; }
.strike .target { width:44%; right:6%; top:7%; }
.strike .action { width:47%; left:1%; bottom:-9%; }
.whack .main { width:38%; right:14%; bottom:0; }
.whack .action { width:48%; left:1%; bottom:-13%; }
.jegi .main { width:50%; left:7%; bottom:-22%; }
.jegi .action { width:14%; right:16%; top:8%; }
.racer .target { width:36%; left:50%; top:5%; transform:translateX(-50%); }
.racer .action { width:76%; left:50%; bottom:-15%; transform:translateX(-50%); }
.bubble .main { width:32%; left:14%; top:27%; }
.bubble .target { width:34%; right:13%; top:24%; }
.claw .main { width:36%; right:16%; bottom:1%; }
.claw .action { width:33%; left:30%; top:-4%; }
.hockey .target { width:45%; right:5%; top:8%; }
.hockey .action { width:37%; left:6%; bottom:-3%; }
.hockey .puck { width:10%; left:48%; bottom:19%; }
.fishing .target { width:43%; right:8%; top:24%; }
.fishing .action { width:46%; left:0; bottom:-9%; }
.crossing .target { width:44%; right:7%; bottom:2%; }
.crossing .action { width:32%; left:13%; bottom:0; }
.cannon .target { width:41%; right:3%; top:16%; }
.cannon .action { width:38%; left:2%; bottom:-10%; }
.cannon-assembly { position:absolute; z-index:5; left:11%; bottom:-4%; width:42%; aspect-ratio:1; pointer-events:none; filter:drop-shadow(0 10px 8px rgba(12,47,59,.22)); }
.cannon-assembly img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.rider .target { width:40%; right:4%; top:18%; }
.rider .action { width:72%; left:50%; bottom:-19%; transform:translateX(-50%); }
.pinball .target { width:33%; left:50%; top:7%; transform:translateX(-50%); }
.pinball .left { width:39%; left:15%; bottom:-8%; }
.pinball .right { width:39%; right:15%; bottom:-8%; }
.pinball .puck { width:9%; right:19%; top:50%; }

.site-footer { min-height: 86px; display: grid; grid-template-columns:auto 1fr auto; align-items: center; gap: 25px; margin-top: 60px; padding: 22px 8px; border-top: 1px solid var(--line); color: #7a8d99; }
.site-footer strong { color: var(--navy); font-size: 17px; font-style: italic; font-weight: 1000; }
.site-footer p { margin: 0; font-size: 10px; font-weight: 700; }
.site-footer span { font-size: 8px; font-weight: 1000; letter-spacing: .1em; }

@media (max-width: 1080px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .learning-strip { grid-template-columns:190px minmax(0,1fr); }
  .learning-strip > div:last-child { grid-column:1 / -1; padding:11px 0 0; border-left:0; border-top:1px solid var(--line); text-align:center; }
}

@media (max-width: 700px) {
  .games-app { width: min(100% - 10px, 560px); padding-top: 8px; }
  .site-header { min-height: 63px; padding: 0 4px; }
  .brand-mark { width: 43px; height: 43px; border-width: 6px; }
  .brand-mark::before,.brand-mark::after,.brand-mark i { width:6px; height:18px; }
  .brand small { display:none; }
  .brand strong { font-size:23px; }
  .header-status { min-height:33px; padding:0 10px; font-size:7px; }
  .lobby-hero { min-height: 520px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; padding: 32px 22px; border-radius: 23px; background-position: 58% center; }
  .lobby-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.96) 0 48%, rgba(255,255,255,.64) 76%, rgba(255,255,255,.3)); }
  .hero-copy h1 { font-size:40px; }
  .hero-copy > span { font-size:12px; }
  .hero-copy > a { min-height:46px; margin-top:18px; }
  .learning-strip { grid-template-columns:1fr; gap:11px; padding:14px; text-align:center; }
  .learning-strip > div:last-child { padding:11px 0 0; border-left:0; border-top:1px solid var(--line); }
  .learning-strip p { flex-wrap:wrap; gap:5px; }
  .learning-strip p span { min-width:50px; padding:6px; }
  .catalog-section { padding-top:48px; }
  .section-heading { align-items:start; }
  .section-heading h2 { font-size:30px; }
  .section-heading p { max-width:260px; font-size:10px; }
  .section-heading > span { margin-top:13px; }
  .game-grid { grid-template-columns: 1fr; gap:13px; }
  .game-card { display:grid; grid-template-columns:43% 57%; min-height:188px; border-radius:18px; }
  .game-scene { min-height:188px; aspect-ratio:auto; }
  .game-copy { min-height:188px; padding:16px 14px 14px; }
  .game-copy h3 { font-size:17px; }
  .game-copy p { font-size:9px; }
  .game-copy > div { grid-template-columns:1fr; gap:7px; padding-top:10px; }
  .game-copy > div span { font-size:6px; }
  .game-copy > div b { width:100%; min-height:48px; font-size:8px; }
  .game-number { left:9px; top:9px; width:32px; height:27px; }
  .story-badge { right:8px; top:9px; padding:6px; }
  .site-footer { grid-template-columns:1fr; gap:6px; margin-top:42px; padding:18px 5px; text-align:center; }
}

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