:root {
  --sky: #36aeea;
  --sky-dark: #147caf;
  --ink: #18232d;
  --muted: #66737e;
  --line: #dbe8ee;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.45rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.site-nav > a,
.language-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease;
}
.site-nav > a:hover,
.site-nav > a:focus-visible,
.language-button:hover,
.language-button:focus-visible { color: var(--sky); }
.language { position: relative; }
.language-button { display: inline-flex; align-items: center; gap: 7px; font-size: 1rem; }
.language-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 132px;
  padding: 7px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(20, 58, 78, .13);
}
.language-menu.open { display: grid; }
.language-menu button { padding: 10px 12px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.language-menu button:hover,
.language-menu button.active { color: var(--sky-dark); background: #f1faff; }

main { flex: 1; }
.pending-page {
  min-height: calc(100vh - var(--header-height) - 150px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
}
.pending-page h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: -.04em; }
.pending-page p { margin: 14px 0 0; color: var(--muted); }

.site-footer { padding: 30px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); background: #fff; }
.games-portal { max-width: 1280px; margin: 0 auto 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.games-portal a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: .035em; text-decoration: none; transition: color .18s ease; }
.games-portal a:hover,
.games-portal a:focus-visible { color: var(--sky); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.footer-inner p { margin: 5px 0; color: var(--muted); font-size: .86rem; }
.footer-inner a { text-decoration: none; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--muted); font-size: 1.3rem; line-height: 1; }
.footer-social a:hover { color: var(--sky); }

@media (max-width: 760px) {
  .site-header { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 64px 0 auto;
    padding: 24px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .language-menu { left: 0; right: auto; top: calc(100% + 8px); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
