@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --char: #18191c;
  --char-2: #202226;
  --char-3: #272a2f;
  --line: #2f3238;
  --chrome: #eaebed;
  --steel: #9ba0a8;
  --pink: #ff005a;
  --pink-hi: #ff4d8a;

  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 5vw, 3.5rem);

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--char);
  color: var(--chrome);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-hi); text-underline-offset: 3px; }
a:hover { color: var(--chrome); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--pink-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header { padding: 20px 0; border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--chrome);
}
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--steel); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chrome); }

/* Hero: the logo under a soft studio light */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(234, 235, 237, 0.07), transparent);
  pointer-events: none;
}
.hero h1 { margin: 0; line-height: 0; position: relative; }
.hero h1 img { width: 100%; }
.hero-copy { position: relative; }
.hero-copy p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-copy .sub {
  margin-top: 18px;
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--step-1);
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--steel);
  max-width: 40ch;
}
.rule {
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--pink);
  border-radius: 2px;
}

/* Games */
.section { padding: 8px 0 80px; }
.section > h2 {
  font-size: var(--step-3);
  margin: 0 0 24px;
}
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.game-art { background: var(--char-3); aspect-ratio: 616 / 353; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3.5vw, 40px);
}
.game-head h3 { margin-bottom: 0; }
.game-body h3 { font-size: var(--step-2); margin: 0 0 10px; }
.game-body p { margin: 0 0 14px; max-width: var(--measure); }
.status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 90, 0.12);
  color: var(--pink-hi);
  font-size: var(--step--1);
  font-weight: 600;
}
.meta { font-size: var(--step--1); color: var(--steel); }
.button {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--pink-hi); color: #fff; }

.game-list { margin-top: 16px; }
.game-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(22px, 3.5vw, 40px);
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.game-row h3 { margin: 0; font-size: var(--step-1); }
.game-row p { margin: 2px 0 0; color: var(--steel); }

/* Text pages */
.page { max-width: var(--measure); padding: 48px 0 80px; }
.page h1 { font-size: var(--step-3); line-height: 1.15; margin: 0 0 8px; }
.page h2 { font-size: var(--step-1); margin: 36px 0 8px; }
.page .updated { color: var(--steel); margin-top: 0; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.page code {
  font-size: 0.92em;
  background: var(--char-3);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}
.contact-card {
  margin: 20px 0 8px;
  padding: 22px 24px;
  background: var(--char-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 10px;
}
.contact-card a { font-size: var(--step-2); font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--steel);
  font-size: var(--step--1);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--chrome); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; justify-items: start; }
  .hero h1 img { max-width: 240px; }
  .hero::before { width: 100%; left: -20%; height: 60%; }
  .game-body { grid-template-columns: 1fr; }
}
