:root {
  color-scheme: light;
  --ink: #163b3a;
  --muted: #5d7774;
  --teal: #0d4f4d;
  --teal-dark: #083b3a;
  --mint: #dff2e8;
  --cream: #fffaf0;
  --line: #cfe2d8;
  --danger: #a33131;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #eff8e9, transparent 36rem), var(--cream);
}

.page-shell { width: min(100% - 32px, 960px); margin: 0 auto; padding: 72px 0 32px; }
.hero { max-width: 720px; margin: 0 auto 30px; }
.eyebrow { margin: 0 0 10px; color: #5a856c; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.07em; }
h1 em { color: var(--teal); font-style: normal; }
h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -.04em; }
.hero-copy, .muted { color: var(--muted); line-height: 1.65; }
.panel { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 24px 70px rgba(13,79,77,.1); }
.login-form { display: grid; max-width: 520px; gap: 12px; }
label { font-weight: 700; }
input { width: 100%; min-height: 52px; padding: 12px 15px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; font: inherit; }
input:focus-visible, a:focus-visible, button:focus-visible { outline: 4px solid #f5c766; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 52px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.primary { color: #fff; background: var(--teal); }
.primary:hover { background: var(--teal-dark); }
.error { margin: 0; color: var(--danger); font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.game-card { display: grid; min-height: 190px; align-content: end; gap: 5px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; background: linear-gradient(145deg, var(--mint), #fff); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(13,79,77,.14); }
.game-number { margin-bottom: auto; color: #5a856c; font-weight: 900; letter-spacing: .1em; }
.game-card strong { font-size: 1.3rem; }
.game-card span:last-child { color: var(--muted); font-size: .9rem; }
footer { padding-top: 28px; color: var(--muted); text-align: center; font-size: .9rem; }

@media (max-width: 700px) {
  .page-shell { padding-top: 42px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 128px; }
}
