@font-face {
  font-family: system-ui;
  src: local("Segoe UI");
}

:root {
  color-scheme: dark;
  --games-bg: #05070a;
  --games-surface: rgba(10, 15, 22, 0.92);
  --games-surface-strong: rgba(11, 18, 27, 0.96);
  --games-line: rgba(200, 155, 60, 0.2);
  --games-line-strong: rgba(240, 213, 138, 0.42);
  --games-gold: #f0d58a;
  --games-gold-deep: #c79e3f;
  --games-cyan: #47e3d7;
  --games-copy: #f3eee4;
  --games-muted: #9ca9b8;
  --games-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(71, 227, 215, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(199, 158, 63, 0.08), transparent 28%),
    linear-gradient(180deg, #081018 0%, #05070a 44%, #05070a 100%);
  color: var(--games-copy);
  font-family: "Segoe UI", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(240, 213, 138, 0.06) 0, rgba(240, 213, 138, 0.06) 1px, transparent 1px, transparent 160px),
    linear-gradient(rgba(240, 213, 138, 0.04) 0, rgba(240, 213, 138, 0.04) 1px, transparent 1px, transparent 160px);
  opacity: 0.18;
  content: "";
}

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

.games-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.games-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 28px;
}

.games-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

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

.games-brand strong,
.games-brand small,
.games-backlink,
.games-kicker,
.games-panel small,
.games-mode-chip,
.games-media-copy span {
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.games-brand strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
}

.games-brand small {
  display: block;
  margin-top: 4px;
  color: var(--games-gold-deep);
  font-size: 0.8rem;
}

.games-backlink {
  color: var(--games-gold);
  font-size: 0.76rem;
}

.games-layout {
  display: grid;
  gap: 24px;
}

.games-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--games-line);
  background: linear-gradient(145deg, rgba(7, 12, 18, 0.95), rgba(5, 8, 12, 0.98));
  box-shadow: var(--games-shadow);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  overflow: hidden;
}

.games-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.games-kicker,
.games-panel small,
.games-mode-chip,
.games-media-copy span {
  color: var(--games-gold);
  font-size: 0.76rem;
  font-weight: 700;
}

.games-copy h1,
.games-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.games-copy h1 {
  max-width: 12ch;
  font-size: clamp(4.4rem, 7vw, 6.8rem);
}

.games-tagline {
  margin: 18px 0 0;
  color: #dbe6f0;
  font-size: 1.24rem;
}

.games-body,
.games-panel p,
.games-panel li {
  color: var(--games-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.games-body {
  max-width: 58ch;
  margin: 18px 0 0;
}

.games-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.games-primary-cta,
.games-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--games-line-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.games-primary-cta {
  color: #111318;
  background: linear-gradient(135deg, #f0d58a, #c79e3f);
}

.games-secondary-cta {
  color: var(--games-cyan);
  background: rgba(6, 12, 18, 0.66);
  border-color: rgba(71, 227, 215, 0.32);
}

.games-hero-media {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(240, 213, 138, 0.16);
  background: rgba(8, 12, 18, 0.92);
  overflow: hidden;
}

.games-hero-media::before {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.02);
  content: "";
}

.games-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.12), rgba(7, 12, 18, 0.82) 75%),
    linear-gradient(90deg, rgba(71, 227, 215, 0.14), transparent 52%);
  content: "";
}

.games-media-frame {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 500px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.games-mode-chip {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(71, 227, 215, 0.32);
  background: rgba(5, 11, 17, 0.72);
  color: var(--games-cyan);
}

.games-media-copy {
  max-width: 22rem;
}

.games-media-copy span {
  color: var(--games-cyan);
}

.games-media-copy strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.games-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.games-panel {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--games-line);
  background: var(--games-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.games-panel h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.games-panel p {
  margin: 18px 0 0;
}

.games-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.games-panel li + li {
  margin-top: 12px;
}

body.mode-pixel-peek .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Jhin_0.jpg");
  background-position: center 35%;
}

body.mode-item-forge .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Ornn_0.jpg");
  background-position: center 30%;
}

body.mode-spell-forensics .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Ryze_0.jpg");
  background-position: center 32%;
}

body.mode-loldle .games-hero-media::before {
  background-image: url("/images/modes/loldle-classic.jpg");
  background-position: center 42%;
}

body.mode-kit-check .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Hwei_0.jpg");
  background-position: 58% 31%;
}

body.mode-pick-ban-sfx .games-hero-media::before {
  background-image: url("/images/modes/pick-ban-sfx-sona.jpg");
  background-position: 58% 22%;
}

body.mode-rift-geoguessr .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Teemo_0.jpg");
  background-position: 53% 28%;
}

body.mode-chronoshift .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Ekko_0.jpg");
  background-position: 58% 28%;
}

body.mode-odd-one-out .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Neeko_0.jpg");
  background-position: 58% 24%;
}

body.mode-higher-or-lower .games-hero-media::before {
  background-image: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Renata_0.jpg");
  background-position: 62% 25%;
}

@media (max-width: 960px) {
  .games-shell {
    width: min(100vw - 28px, 1180px);
    padding-top: 18px;
  }

  .games-topbar,
  .games-hero-card,
  .games-info-grid {
    grid-template-columns: 1fr;
  }

  .games-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .games-copy h1 {
    max-width: none;
    font-size: clamp(3.4rem, 14vw, 5.2rem);
  }

  .games-hero-card {
    min-height: 0;
    padding: 22px;
  }

  .games-media-frame {
    min-height: 360px;
  }
}
