:root {
  color-scheme: light dark;
  --bg: #f6f7fb; --surface: #ffffff; --text: #1a1d2e; --muted: #4a5068;
  --border: #d5d9e6; --accent: #4a3fd1; --accent-text: #ffffff; --focus: #1b5fd1;
  --live: #0b6b3a; --beta: #8a5a00; --soon: #4a5068;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141f; --surface: #1c1f30; --text: #eef0fa; --muted: #b4b9d0;
    --border: #343855; --accent: #a79dff; --accent-text: #12141f; --focus: #8fb8ff;
    --live: #6fdc9f; --beta: #f0c06a; --soon: #b4b9d0;
  }
}
:root[data-theme="dark"] {
  --bg: #12141f; --surface: #1c1f30; --text: #eef0fa; --muted: #b4b9d0;
  --border: #343855; --accent: #a79dff; --accent-text: #12141f; --focus: #8fb8ff;
  --live: #6fdc9f; --beta: #f0c06a; --soon: #b4b9d0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
.skip { position: absolute; left: 8px; top: -100px; background: var(--accent); color: var(--accent-text); padding: 12px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.ctl { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ctl:hover { border-color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs .ctl[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
main { flex: 1; padding-bottom: 32px; }
.hero { padding: 24px 0 20px; }
h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15; letter-spacing: -.02em; }
.tagline { margin: 0; color: var(--muted); font-size: clamp(1rem, 3.2vw, 1.2rem); overflow-wrap: anywhere; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; position: relative; display: flex; flex-direction: column; min-width: 0; }
.card .body { padding: 16px 16px 8px; flex: 1; }
.icon { font-size: 2rem; line-height: 1; }
.card h2 { margin: 8px 0 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; padding: 2px 10px; border: 1px solid currentColor; border-radius: 12px; }
.badge.live { color: var(--live); } .badge.beta { color: var(--beta); } .badge.soon { color: var(--soon); }
.open { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 16px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; }
.open::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card:hover { border-color: var(--accent); }
.open[aria-disabled="true"] { background: transparent; color: var(--soon); border: 1px dashed var(--border); }
.open[aria-disabled="true"]::after { display: none; }
.err { color: var(--beta); }
footer { padding: 16px 0 24px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
footer .wrap { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 400px) { .wrap { padding: 0 12px; } .card .body { padding: 14px 14px 6px; } .open { margin: 6px 14px 14px; } }
@media (prefers-reduced-motion: no-preference) { .card, .ctl { transition: border-color .15s; } }
