:root {
  --ink: #101621;
  --muted: #637083;
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #dfe5ef;
  --blue: #216fed;
  --green: #12a06f;
  --pink: #e94372;
  --amber: #e3a018;
  --shadow: 0 20px 50px rgba(16, 22, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  background:
    linear-gradient(135deg, rgba(33, 111, 237, 0.92), rgba(16, 22, 33, 0.94)),
    url("https://www.playretrogames.com/gameimages/2379-super-mario-world-n.jpg?v=1") center/cover;
  color: #fff;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 58px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffd66e;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.2rem;
  line-height: 1.12;
  font-weight: 900;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-btn {
  background: #fff;
  color: var(--blue);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.hero-stage {
  display: grid;
  place-items: center;
}

.screen {
  width: min(100%, 430px);
  aspect-ratio: 1.05;
  background: #111827;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.screen-top {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.screen-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.screen-top span:nth-child(2) {
  background: var(--amber);
}

.screen-top span:nth-child(3) {
  background: var(--green);
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tile {
  min-height: 118px;
  display: grid;
  place-items: center;
  background: #263246;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.78);
}

.tile.hot {
  background: var(--blue);
  color: #fff;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 7px, rgba(255, 255, 255, 0.04) 8px);
  pointer-events: none;
}

.stats-band {
  width: min(1050px, calc(100% - 32px));
  margin: -48px auto 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.stats-band div {
  padding: 24px;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
}

.stats-band span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.45rem;
}

.channels .eyebrow,
.catalog .eyebrow {
  color: var(--blue);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.channel-card {
  min-height: 240px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 22, 33, 0.1);
}

.channel-card.live {
  border-color: rgba(33, 111, 237, 0.4);
}

.channel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f1ff;
  color: var(--blue);
  font-family: "Outfit", sans-serif;
  font-weight: 900;
}

.channel-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

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

.channel-card b {
  margin-top: auto;
  color: var(--green);
  font-size: 0.86rem;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.catalog-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  margin-bottom: 14px;
}

.search-box,
.select-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.search-box span,
.select-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters button,
.pager button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filters button.active,
.pager button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.result-line {
  min-height: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 22, 33, 0.12);
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #d9e1ee;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(16, 22, 33, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.game-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.game-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  min-height: 2.8em;
}

.game-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.1rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding: 34px 0 74px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

  .hero-stage {
    display: none;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .channel-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
