@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #fafaf7;
  --ink: #121212;
  --body: #3c3c39;
  --muted: #5e5e5a;
  --line: #dededa;
  --soft: #f0f1ec;
  --stone: #e6e6e0;
  --blue: #2f54ff;
  --blue-deep: #1f3fe0;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
body { min-width: 300px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.num { font-family: var(--num); }
.wrap { width: min(100% - 64px, 1176px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Header */
.masthead { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand strong { font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.brand span { font-family: var(--num); font-weight: 500; font-size: .8rem; letter-spacing: .2em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; font-size: .94rem; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .nav-login { padding: 0 20px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.nav .nav-login:hover { background: var(--blue); color: #fff; }
.nav-login span { width: 6px; height: 6px; border-radius: 3px; background: #6f88ff; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 26px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--blue-deep); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--ink); color: #fff; }

/* Carousel */
.carousel { padding-top: 24px; }
.slide { display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px 56px; }
.slide-media { flex: 1.6 1 520px; min-width: 0; height: clamp(280px, 34vw, 440px); overflow: hidden; border-radius: 4px; background: var(--stone); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
#slide-1 .slide-media { flex: 0 0 auto; width: auto; aspect-ratio: 3 / 4; }
.slide-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 4px 0; }
.slide-num { font-family: var(--num); font-weight: 700; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -.04em; color: var(--blue); }
.eyebrow { font-size: .875rem; color: var(--muted); }
.slide h1, .slide h2 { margin-top: 10px; font-weight: 900; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.slide h1 .num { font-weight: 500; }
.lead { margin-top: 14px; max-width: 26em; color: var(--body); line-height: 1.75; }
.slide .button { margin-top: 24px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tabs button { display: flex; flex-direction: column; gap: 10px; min-height: 48px; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: var(--muted); cursor: pointer; }
.tabs .bar { display: block; width: 100%; height: 3px; background: var(--line); }
.tabs .tab-label { font-size: .875rem; }
.tabs .tab-label .num { margin-right: 10px; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); }
.tabs [aria-selected="true"] .bar { background: var(--blue); }

/* Game list */
.games { padding-top: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
.count { margin-left: 14px; font-weight: 500; font-size: 1.1rem; color: var(--muted); }
.hint { color: var(--muted); font-size: .94rem; }
.game-list > li { border-bottom: 1px solid var(--line); }
.game-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 22px 8px; text-decoration: none; transition: background .15s; }
a.game-row:hover { background: var(--soft); }
a.game-row:hover .go { background: var(--blue); border-color: var(--blue); color: #fff; }
.game-index { flex: 0 0 40px; font-size: .94rem; color: var(--muted); }
.game-thumb { flex: 0 0 112px; width: 112px; height: 70px; object-fit: cover; border-radius: 3px; background: var(--stone); }
.game-text { flex: 1 1 260px; min-width: 0; }
.game-name { display: block; font-weight: 700; font-size: 1.375rem; }
.game-desc { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.game-genre { flex: 0 0 140px; color: var(--muted); font-size: .875rem; }
.status { flex: 0 0 96px; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 4px; box-sizing: border-box; border: 1.5px solid currentColor; }
.status.live::before { background: var(--blue); border-color: var(--blue); }
.status.soon { color: var(--muted); }
.go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--ink); transition: background .15s, color .15s; }
.go-space { width: 44px; height: 44px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-top: 112px; }
.side-label { flex: 0 0 200px; font-size: .94rem; font-weight: 500; color: var(--muted); }
.statement { flex: 1 1 560px; min-width: 0; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.45; letter-spacing: -.01em; }

/* Start */
#start { padding-top: 112px; }
.start { padding: clamp(28px, 5vw, 48px); border-radius: 4px; background: var(--blue); color: #fff; }
.start-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.start-head h2 { font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
.start-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; margin-top: 40px; }
.start-steps li { padding-top: 18px; border-top: 1px solid #ffffff80; }
.start-steps .num { font-size: .94rem; }
.start-steps h3 { margin-top: 10px; font-size: 1.2rem; font-weight: 700; }
.start-steps p { margin-top: 8px; color: #e8ecff; font-size: .875rem; line-height: 1.65; }

/* Footer */
.footer { padding-block: 96px 32px; }
.wordmark { font-family: var(--num); font-weight: 700; font-size: clamp(3.4rem, 12.4vw, 9.25rem); line-height: .9; letter-spacing: -.05em; white-space: nowrap; overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-row nav { display: flex; gap: 0 28px; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-row a:hover { color: var(--blue); }

/* 404 */
.notfound { padding-block: 96px 160px; }
.notfound h1 { margin-top: 24px; font-weight: 900; font-size: 2.5rem; }
.notfound .button { margin-top: 28px; }

@media (max-width: 720px) {
  .wrap { width: min(100% - 40px, 1176px); }
  .nav { gap: 0 20px; }
  .nav a:not(.nav-login):nth-child(3) { display: none; }
  .slide-media, #slide-1 .slide-media { flex: 1 1 100%; height: auto; aspect-ratio: auto; }
  .slide-media img { height: auto; }
  .slide-copy { gap: 12px; }
  .slide-num { font-size: 2.5rem; }
  .games { padding-top: 64px; }
  .game-row { gap: 6px 14px; padding: 16px 0; }
  .game-index, .game-genre, .go-space { display: none; }
  .game-thumb { flex-basis: 72px; width: 72px; height: 54px; }
  .game-text { flex: 1 1 0; }
  .game-name { font-size: 1.06rem; }
  .game-desc { display: none; }
  .status { order: 3; flex: 1 0 100%; padding-left: 86px; font-size: .8rem; }
  .go { width: 40px; height: 40px; }
  .about, #start { padding-top: 72px; }
  .footer { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
