:root {
  color-scheme: light;
  font-family: "Geist", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #172b47;
  background: #f7faff;
  --ink: #172b47;
  --muted: #50677f;
  --blue: #2556b2;
  --line: #dae5f0;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #3570db; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 16px; top: 12px; padding: 12px; transform: translateY(-180%); background: white; }
.skip:focus { transform: none; }

.site-header { background: #ffffffd9; border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-row { min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.055em; }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e5efff; color: var(--blue); font-size: 22px; }
.nav-link { color: var(--muted); font-weight: 700; font-size: .9rem; padding: 10px 0; }
.nav-link:hover { color: var(--blue); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 374px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid #d4e4f7;
  border-radius: 30px;
  background: linear-gradient(108deg, #f0f7ff 0%, #e6f0fd 50%, #d5e7fa 100%);
}
.hero-copy { position: relative; width: 56%; padding: 50px 20px 52px clamp(30px, 5.6vw, 78px); }
.hero h1 { margin: 0; color: #152c4e; font-size: clamp(2.25rem, 5vw, 4.35rem); font-weight: 900; line-height: 1.12; letter-spacing: -.09em; }
.hero p { margin: 0 0 10px; color: #3b5674; line-height: 1.85; letter-spacing: -.03em; word-break: keep-all; }
.hero h1 + p { margin-top: 18px; }
.hero-copy p a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero-copy .primary { margin-top: 8px; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: .9rem;
  font-weight: 800;
}
.primary:hover { background: #1a438f; }
.hero-scene { position: absolute; inset: 0 0 0 44%; pointer-events: none; }
.hero-scene::before {
  content: "";
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  top: -14%;
  left: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #f5fbff 0%, #edf7ff8a 54%, #e6f3ff00 72%);
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: auto -9% -34% -6%;
  height: 59%;
  border-radius: 47% 57% 0 0 / 35% 62% 0 0;
  background: #f9fcffab;
  transform: rotate(-6deg);
}
.hero-fox { position: absolute; z-index: 1; width: min(73%, 425px); height: 94%; object-fit: contain; left: 12%; bottom: 2%; filter: drop-shadow(0 14px 22px #5278a727); }
.snow { position: absolute; z-index: 1; color: #fff; line-height: 1; }
.snow-a { left: 17%; top: 26%; font-size: 24px; }
.snow-b { right: 18%; top: 23%; font-size: 34px; }
.snow-c { right: 11%; bottom: 24%; font-size: 15px; }
.snow-d { left: 10%; bottom: 22%; font-size: 38px; }

.library { margin-block: 52px 65px; }
.section-head, .filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: 2rem; line-height: 1.2; letter-spacing: -.07em; }
.search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 245px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.search:focus-within { outline: 2px solid #3570db; outline-offset: 2px; }
.search[hidden], .filter-row[hidden] { display: none; }
.search input { width: 100%; min-width: 0; padding: 10px 0; outline: none; border: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search input::placeholder { color: var(--muted); }
.search-icon { position: relative; flex: 0 0 13px; height: 13px; margin-right: 2px; border: 1.5px solid #627b97; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; height: 1.5px; background: #627b97; transform: rotate(45deg); }
.filter-row { align-items: center; margin: 24px 0 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 36px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .82rem; font-weight: 700; }
.filters button:hover { border-color: #9ab7df; }
.filters [aria-pressed="true"] { border-color: #c8dcfa; background: #e5efff; color: #214e9d; }
.count { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: white; transition: box-shadow .18s, transform .18s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #355c9120; }
.cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 2; overflow: hidden; background-color: #dceaf9; color: #3b6aa3; font-size: 64px; }
.cover .thumbnail { width: 100%; height: 100%; object-fit: cover; }
.game-details { position: relative; padding: 17px 52px 21px 18px; }
.genre { color: #325d9b; font-size: .74rem; font-weight: 800; }
.game-details h3 { margin: 6px 0 7px; font-size: 1.16rem; letter-spacing: -.045em; }
.game-details p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; word-break: keep-all; }
.game-arrow { position: absolute; right: 15px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #edf4fd; color: #28589c; }
.empty { padding: 30px 16px; border: 1px dashed #b7c9df; border-radius: 15px; color: var(--muted); text-align: center; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 84px; }
.footer-row .brand { color: var(--muted); font-size: .88rem; }
.footer-row .brand-icon { width: 28px; height: 28px; font-size: 17px; }
.footer-links { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; column-gap: clamp(12px, 3vw, 28px); }
.footer-links a { white-space: nowrap; }

.policy-page { width: min(760px, calc(100% - 32px)); margin: 36px auto 60px; }
.policy-page > a { display: inline-block; padding-block: 8px; margin-bottom: 12px; color: var(--blue); font-size: .9rem; font-weight: 800; }
.policy-panel { padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.policy-panel h1 { margin: 0; font-size: clamp(1.85rem, 5vw, 2.65rem); letter-spacing: -.07em; }
.policy-panel section { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy-panel h2 { margin: 0 0 13px; font-size: 1.2rem; letter-spacing: -.045em; }
.policy-panel p, .policy-panel dl { margin: 0; color: var(--muted); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.policy-panel p + p { margin-top: 12px; }
.policy-panel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.policy-panel dt { color: var(--ink); font-weight: 700; }
.policy-panel dd { margin: 0; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 330px; }
  .hero-copy { padding-left: 28px; }
  .hero-scene { inset-inline-start: 48%; }
  .game-grid { gap: 12px; }
  .game-details { padding-left: 13px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 62px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 415px; margin-top: 17px; border-radius: 22px; }
  .hero-copy { width: 100%; padding: 28px 18px 0 23px; }
  .hero p { font-size: .88rem; }
  .hero-scene { position: relative; inset: auto; order: 1; height: clamp(180px, 50vw, 245px); }
  .hero-fox { width: 76%; height: 100%; left: 16%; }
  .library { margin-block: 32px 42px; }
  .section-head { align-items: stretch; flex-direction: column; gap: 13px; }
  .section-head h2 { font-size: 1.65rem; }
  .search { width: 100%; }
  .filter-row { gap: 8px; margin-top: 14px; }
  .game-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none; }
}
