:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #edf4f2;
  --ink: #201f1b;
  --muted: #6b6e68;
  --line: #dfe6e2;
  --accent: #0a817b;
  --accent-strong: #055d58;
  --coral: #d65f46;
  --gold: #c4942f;
  --green: #4d8b57;
  --shadow: 0 18px 50px rgba(32, 31, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#profile-title,
#games-title,
#maps-title {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 247, 245, 0), #f4f7f5 420px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  width: min(1040px, calc(100% - 32px));
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 8px 10px 8px 16px;
  background: rgba(24, 24, 21, 0.7);
  color: white;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.brand,
.site-nav a {
  text-decoration: none;
}

.brand {
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.hero {
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding: clamp(96px, 12vw, 144px) 24px 64px;
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.9), rgba(21, 21, 18, 0.62) 52%, rgba(21, 21, 18, 0.36)),
    url("assets/map-chunithm.png") center / cover;
  color: white;
  border-bottom: 1px solid var(--line);
}

.hero__inner,
.section {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  gap: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7de0d9;
}

h1,
h2,
h3,
p,
dd {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.profile-motto {
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  border: 1px solid rgba(125, 224, 217, 0.45);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(125, 224, 217, 0.12);
  color: #baf5f0;
  font-weight: 900;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 880px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.profile-highlights li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 880px;
  margin: 22px 0 0;
}

.profile-stats div {
  min-height: 82px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.profile-stats dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 4px 0 0;
  color: white;
  font-weight: 900;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.links a:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.section {
  padding: clamp(64px, 8vw, 104px) 24px;
}

.section__heading {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.section__heading .eyebrow {
  padding-top: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section__heading p:not(.eyebrow) {
  grid-column: 2;
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
}

.game-list {
  display: grid;
  gap: 22px;
}

.game {
  --game-accent: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 32px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--game-accent);
}

.game--chunithm {
  --game-accent: var(--accent);
}

.game--ongeki {
  --game-accent: var(--coral);
}

.game--maimai {
  --game-accent: var(--gold);
}

.game__media {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
    var(--surface-soft);
  overflow: hidden;
}

.game__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(32, 31, 27, 0.16));
}

.game__label {
  margin: 0 0 6px;
  color: var(--game-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.game__body p:not(.game__label) {
  margin: 14px 0 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.stats div {
  padding: 14px;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  background: #f8faf8;
}

.stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stats dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 900;
  text-underline-offset: 4px;
}

.map-section {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  background: #191814;
  color: white;
}

.map-section > * {
  width: min(1040px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.map-section .eyebrow {
  color: #78ded5;
}

.map-section .section__heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.map-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.map-links a {
  min-height: 106px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.map-links a:hover {
  border-color: rgba(125, 224, 217, 0.75);
  background: rgba(125, 224, 217, 0.1);
  transform: translateY(-2px);
}

.map-links span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-links strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.map-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.map-previews img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

@media (max-width: 900px) {
  .profile-stats,
  .map-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section__heading .eyebrow {
    padding-top: 0;
  }

  .section__heading p:not(.eyebrow) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .hero {
    min-height: 76svh;
    padding: 92px 18px 44px;
    background-position: center;
  }

  .section {
    padding: 56px 18px;
  }

  .map-section {
    padding-inline: 0;
  }

  .map-section > * {
    width: calc(100% - 36px);
  }

  .game,
  .map-previews {
    grid-template-columns: 1fr;
  }

  .game {
    padding-left: 22px;
  }

  .stats,
  .profile-stats,
  .map-links {
    grid-template-columns: 1fr;
  }
}
