:root {
  color-scheme: dark;
  --bg: #080a10;
  --panel: #111722;
  --panel-strong: #161d2b;
  --line: #263245;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --cyan: #27e1f2;
  --lime: #b8ff5c;
  --pink: #ff4f9a;
  --amber: #ffc857;
  --danger: #ff6675;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(39, 225, 242, 0.08), transparent 38rem),
    radial-gradient(circle at 12% 12%, rgba(255, 79, 154, 0.12), transparent 22rem),
    #080a10;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.portal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.brand {
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a,
.chip,
.card-action,
.status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
}

.nav-links a {
  padding: 10px 12px;
  font-size: 0.88rem;
}

.portal-hero {
  min-height: 54vh;
  display: grid;
  align-content: start;
  gap: clamp(56px, 10vh, 108px);
}

.hero-copy {
  max-width: 760px;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.game-card {
  min-height: 290px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(22, 29, 43, 0.96), rgba(8, 10, 16, 0.96));
  box-shadow: var(--shadow);
  text-decoration: none;
}

.game-card.featured {
  border-color: rgba(39, 225, 242, 0.5);
}

.status,
.card-action,
.chip {
  width: fit-content;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.game-icon {
  width: 92px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0d111a;
  color: var(--lime);
  font-size: 1.4rem;
  font-weight: 900;
}

.game-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.game-card p {
  color: var(--muted);
  line-height: 1.75;
}

.card-action {
  margin-top: auto;
  color: var(--text);
  background: rgba(39, 225, 242, 0.1);
}

.page-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title h1 {
  margin-bottom: 6px;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1;
}

.page-title p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .topbar,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero {
    min-height: 48vh;
    gap: 46px;
  }

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