:root {
  --ink: #171411;
  --paper: #fffaf3;
  --muted: #6c6258;
  --line: rgba(23, 20, 17, 0.14);
  --amber: #f5ad37;
  --red: #dd4a3a;
  --teal: #0f6f70;
  --plum: #6d375f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 20, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    system-ui,
    sans-serif;
  line-height: 1.6;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  z-index: -3;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(12, 9, 7, 0.78), rgba(12, 9, 7, 0.4) 46%, rgba(12, 9, 7, 0.16)),
    linear-gradient(0deg, rgba(12, 9, 7, 0.8), rgba(12, 9, 7, 0.04) 48%);
  z-index: -2;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 900;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0;
  font-family: "Outfit", sans-serif;
}

.topbar__link,
.hero__button,
.game-card__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.topbar__link {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero__content {
  width: min(760px, 100%);
  padding: 108px clamp(18px, 5vw, 56px) clamp(42px, 9vw, 86px);
}

.hero__eyebrow,
.section-kicker,
.game-card__meta {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

.hero__eyebrow {
  color: #ffd27a;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

h1 {
  margin: 8px 0 12px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(3rem, 8vw, 5.7rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__copy {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 700;
  line-height: 1.85;
}

.hero__button {
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: clamp(18px, 5vw, 56px);
  align-items: end;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 56px) 18px;
}

.section-kicker {
  color: var(--red);
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  text-wrap: balance;
}

.intro p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.games {
  padding: 22px clamp(18px, 5vw, 56px) clamp(46px, 8vw, 88px);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  min-height: 246px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--accent, var(--amber));
}

.game-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.game-card__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, var(--amber)) 18%, white);
  border: 1px solid color-mix(in srgb, var(--accent, var(--amber)) 28%, white);
  color: var(--accent-dark, var(--ink));
  font-weight: 900;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

.game-card__meta {
  color: var(--accent-dark, var(--teal));
}

.game-card h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.28rem, 2vw, 1.56rem);
  font-weight: 900;
  line-height: 1.22;
  text-wrap: balance;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.game-card__link {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  color: var(--white);
  background: var(--ink);
}

.game-card__link--disabled {
  color: rgba(23, 20, 17, 0.58);
  background: rgba(23, 20, 17, 0.09);
  cursor: not-allowed;
}

.game-card__status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.placeholder {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    linear-gradient(140deg, rgba(245, 173, 55, 0.18), transparent 44%),
    linear-gradient(320deg, rgba(15, 111, 112, 0.16), transparent 46%),
    var(--paper);
}

.placeholder__panel {
  width: min(620px, 100%);
  padding: clamp(22px, 5vw, 42px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.placeholder__panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 9vw, 4.8rem);
  color: var(--ink);
}

.placeholder__panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.placeholder__actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.placeholder__actions a:first-child {
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 84svh;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__link {
    padding-inline: 11px;
  }

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

  .game-card {
    min-height: 232px;
  }

  .hero__content {
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 3.65rem);
  }

  .footer {
    flex-direction: column;
  }
}
