:root {
  --ink: #11110f;
  --paper: #f7f2e8;
  --yellow: #ffe500;
  --cyan: #00cbe7;
  --coral: #ff604d;
  --white: #fffdf7;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14px 14px, rgba(17, 17, 15, .08) 1.5px, transparent 1.6px) 0 0 / 28px 28px,
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-weight: 700;
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.profile-link {
  padding: 9px 12px;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  font-size: .86rem;
}

.profile-link:hover,
.profile-link:focus-visible { background: var(--yellow); }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font: 900 .76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.profile-copy h1,
.play-title h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 20px;
  border: var(--line);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: inherit;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.games-section {
  min-height: calc(100vh - 176px);
  padding: 52px 0 100px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px 22px;
}

.game-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.game-art {
  aspect-ratio: 1;
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line);
  background: var(--cyan);
  box-shadow: 5px 5px 0 var(--ink);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(1.04) contrast(1.03);
}

.game-title {
  display: block;
  margin-top: 13px;
  font-size: 1rem;
  line-height: 1.45;
}

.game-card:hover .game-art,
.game-card:focus-visible .game-art {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100px;
  border-top: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .74rem;
}

.profile-page { min-height: calc(100vh - 192px); display: grid; place-items: center; padding: 64px 0 96px; }

.profile-card {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-portrait {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 36px;
  background: var(--yellow);
  border-right: var(--line);
  overflow: hidden;
}

.profile-portrait img { width: min(100%, 320px); transform: rotate(-4deg); }

.profile-copy { padding: clamp(32px, 6vw, 68px); }
.profile-copy h1 { font-size: clamp(3rem, 7vw, 5rem); }
.profile-copy p { line-height: 1.85; }
.profile-reading { margin: 8px 0 0; font: 800 .9rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.profile-lead { margin-top: 30px; font-size: 1.2rem; }
.profile-copy .primary-action { margin-top: 16px; }

.site-header--play { min-height: 76px; }
.site-header--play .brand img { width: 44px; height: 44px; }
.play-page { min-height: 100vh; }
.play-shell { padding: 38px 0 80px; }
.play-title { width: min(720px, 100%); margin: 0 auto 30px; }
.play-title h1 { font-size: clamp(2rem, 5vw, 4rem); }
.play-title > p:last-child { line-height: 1.7; }

.game-frame {
  width: min(540px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  position: relative;
  border: var(--line);
  background: var(--cyan);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-frame > img { width: 100%; height: 100%; object-fit: cover; }
.coming-soon {
  position: absolute;
  inset: auto 18px 18px;
  padding: 16px 18px;
  border: var(--line);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  display: grid;
  gap: 4px;
}
.coming-soon strong { font-size: 1.35rem; }
.coming-soon span { font-size: .78rem; }

@media (max-width: 720px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1120px); }

  .site-header { min-height: 76px; }
  .brand { gap: 8px; font-size: .92rem; }
  .brand img { width: 44px; height: 44px; }
  .profile-link { padding: 7px 6px; font-size: .76rem; }

  .games-section { min-height: calc(100vh - 162px); padding: 32px 0 72px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h1 { font-size: 2rem; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .game-art { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .game-title { margin-top: 9px; font-size: .72rem; line-height: 1.4; }

  footer { min-height: 86px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }

  .profile-page { padding: 26px 0 72px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-portrait { min-height: 270px; border-right: 0; border-bottom: var(--line); }
  .profile-portrait img { width: min(70%, 250px); }
  .profile-copy { padding: 30px 24px 36px; }

  .play-shell { padding-top: 24px; }
  .play-title { margin-bottom: 20px; }
  .game-frame { width: min(100% - 12px, 440px); }
}

@media (prefers-reduced-motion: no-preference) {
  .game-art,
  .primary-action { transition: transform .15s ease, box-shadow .15s ease; }
}

:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
