﻿:root {
  --bg: #f6f8f5;
  --bg-soft: #edf5f1;
  --surface: #ffffff;
  --surface-strong: #fdfefa;
  --ink: #17211f;
  --muted: #62706d;
  --line: #dce6e2;
  --brand: #126b5c;
  --brand-strong: #0d4f45;
  --accent: #f0a83a;
  --accent-soft: #fff2d9;
  --shadow: 0 18px 48px rgba(20, 65, 55, 0.11);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% -4%, rgba(18, 107, 92, 0.16), transparent 280px),
    radial-gradient(circle at 88% 8%, rgba(240, 168, 58, 0.18), transparent 260px),
    linear-gradient(180deg, #fbfdfb 0%, var(--bg) 42%, #eef5f3 100%);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 230, 226, 0.86);
  background: rgba(246, 248, 245, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand span {
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
  color: var(--brand);
  outline: none;
}

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 30px;
}

.hero-compact {
  display: block;
  margin-bottom: 16px;
}

.hero-copy {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(237,245,241,0.88));
  box-shadow: var(--shadow);
}

.hero-compact .hero-copy {
  min-height: 0;
  width: 100%;
  padding: 16px 18px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(18, 107, 92, 0.18);
  border-radius: 999px;
  background: rgba(18, 107, 92, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-compact h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-compact .hero-copy p {
  max-width: 620px;
  margin-bottom: 18px;
}

.search-row {
  display: flex;
  width: min(680px, 100%);
  gap: 10px;
}

.hero-compact .search-row {
  width: 100%;
  max-width: none;
}

.list-search-panel {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 246, 0.94));
  box-shadow: var(--shadow);
}

.list-search-panel .search-row {
  width: 100%;
  max-width: none;
}

.list-search-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.list-search-desc {
  max-width: 860px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.search-row button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-row button:hover,
.primary-action:hover {
  background: var(--brand-strong);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.spotlight-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: #10201e;
  box-shadow: var(--shadow);
}

.spotlight-section {
  margin-top: 22px;
}

.spotlight-wide {
  display: block;
  min-height: 280px;
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.72;
}

.spotlight-wide img {
  min-height: 280px;
}

.carousel-actions {
  display: inline-flex;
  gap: 8px;
}

.carousel-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.carousel-actions button:hover,
.carousel-actions button:focus-visible {
  border-color: rgba(18, 107, 92, 0.35);
  background: rgba(18, 107, 92, 0.08);
  outline: none;
}

.featured-carousel {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-slide {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: #10201e;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.featured-slide img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: 0.72;
}

.featured-slide .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.featured-slide h3 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.08;
}

.featured-slide p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spotlight-card .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.spotlight-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 65, 55, 0.07);
}

.category-card strong {
  color: var(--ink);
  font-size: 16px;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.game-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.22;
}

.game-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-card .meta {
  margin-top: auto;
}

.game-card .pill {
  background: var(--accent-soft);
  color: #845008;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.info-card,
.detail-panel,
.policy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.detail-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-media {
  overflow: hidden;
  border-radius: 28px;
  background: #10201e;
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-summary {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
}

.detail-summary h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.summary-list div {
  min-width: 0;
}

.summary-list dt {
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-summary .secondary-action {
  width: 100%;
  margin-top: 18px;
}

.detail-panel {
  padding: clamp(24px, 4vw, 42px);
}

.detail-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-panel p {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
}

.copy-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.copy-block h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.game-frame-page {
  width: 100%;
  min-height: 100vh;
  background: #0b1110;
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 16px;
  background: #111b19;
  color: #fff;
}

.frame-toolbar a {
  color: #b7f0e5;
  font-weight: 800;
}

.frame-toolbar h1 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-frame {
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  background: #000;
}

.frame-note {
  padding: 18px 16px 22px;
  background: #111b19;
  color: #dfe9e6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.frame-note p {
  width: min(960px, 100%);
  margin: 0 auto 12px;
  color: #dfe9e6;
}

.frame-note .footer-links {
  justify-content: center;
}

.policy-panel {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
}

.policy-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 52px);
}

.policy-panel h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.policy-section {
  padding-top: 4px;
}

.policy-section + .policy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-section h2:first-child {
  margin-top: 0;
}

.policy-panel p {
  color: var(--muted);
}

.policy-panel a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: underline;
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--brand);
  font-weight: 750;
}

@media (max-width: 1024px) {
  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .spotlight-card,
  .spotlight-card img {
    min-height: 300px;
  }

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

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

  .featured-carousel {
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 16px;
    padding-bottom: 8px;
  }

  .featured-slide,
  .featured-slide img {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 10px 0;
    gap: 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand span {
    font-size: 21px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
  }

  .site-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .main {
    width: min(100% - 22px, var(--max));
    padding-top: 22px;
  }

  .hero-copy {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-compact {
    margin-bottom: 10px;
  }

  .hero-compact .hero-copy {
    padding: 14px;
  }

  .search-row {
    flex-direction: row;
    gap: 8px;
  }

  .search-row button {
    width: auto;
    min-width: 86px;
    padding: 0 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .spotlight-section .section-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .spotlight-section .section-head > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .spotlight-section .section-head p {
    font-size: 16px;
    line-height: 1.45;
  }

  .section {
    margin-top: 26px;
  }

  .spotlight-section {
    margin-top: 18px;
  }

  .carousel-actions button {
    width: 38px;
    height: 38px;
  }

  .spotlight-section .carousel-actions {
    flex-shrink: 0;
    padding-top: 2px;
  }

  .featured-carousel {
    grid-auto-columns: 100%;
    gap: 12px;
    padding-bottom: 6px;
  }

  .featured-slide,
  .featured-slide img {
    min-height: 260px;
  }

  .featured-slide .overlay {
    padding: 18px;
  }

  .featured-slide h3 {
    font-size: 24px;
  }

  .category-grid,
  .game-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

