:root {
  --bg: #f8f8f8;
  --text: #303030;
  --muted: #6b7280;
  --dark: #303030;
  --on-dark: #ffffff;
  --accent-from: rgb(115, 217, 245);
  --accent-to: rgb(61, 72, 145);
  --link: #3d4891;
  --max: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: var(--link); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--dark); color: var(--on-dark); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px;
}
.site-title { color: var(--on-dark); font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Page title band */
.page-title { background: #fff; text-align: center; padding: 32px 16px; margin: 0; font-size: 1.8rem; }

main { padding-bottom: 48px; }

h1, h2, h3 { line-height: 1.25; }
h1.section { font-size: 2.2rem; margin: 64px 0 8px; }
h2 { font-size: 1.6rem; margin: 48px 0 16px; }

/* Hero (home) */
.hero { background: var(--dark); color: var(--on-dark); }
.hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.hero h2 { margin: 0 0 8px; }
.hero p { margin: 0; }
.hero img { width: 166px; height: 166px; border-radius: 50%; flex-shrink: 0; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.buttons:first-child { margin-top: 32px; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-from) 0%, var(--accent-to) 100%);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.btn:hover { filter: brightness(1.1); }

/* Two-column rows */
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; margin: 16px 0 32px; }
.row.even { grid-template-columns: 1fr 1fr; }
.row p { margin-top: 0; }
.game-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; }

.embed { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

video { width: 100%; height: auto; background: #000; }

/* Slideshow */
.slideshow { position: relative; background: #000; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides figure {
  flex: 0 0 100%; margin: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
}
.slides img { margin: 0 auto; max-height: 520px; width: auto; }
.slides figcaption { color: #fff; background: rgba(0,0,0,.6); font-size: 0.9rem; padding: 8px 12px; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.slide-btn:hover { background: rgba(0,0,0,.8); }
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.slide-count { position: absolute; bottom: 8px; right: 12px; color: #fff; font-size: 0.8rem; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 10px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; margin-top: 48px; }
.about img { border-radius: 50%; }

/* Footer */
.site-footer { border-top: 1px solid #e2e2e2; padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .row, .row.even, .about { grid-template-columns: 1fr; gap: 16px; }
  .hero .wrap { flex-direction: column-reverse; align-items: flex-start; }
  .hero img { width: 120px; height: 120px; }
  h1.section { font-size: 1.8rem; }
}
