:root {
  color-scheme: light;
  --bg: #0f0f11;
  --fg: #f7f7f7;
  --muted: #c5c5c5;
  --accent: #ff7a18;
  --accent-dark: #ff4f79;
  --surface: rgba(15, 15, 17, 0.78);
  --surface-alt: rgba(18, 15, 28, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #2a233d, #0d0d0f 55%);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

button {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 40px), 1080px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9;
  background: rgba(9, 9, 12, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  max-height: 36px;
}

.brand span {
  display: inline-block;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--fg);
}

.hero {
  text-align: center;
  padding: 88px 0 56px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--muted);
}

.cta,
.cta-group {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-tagline {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.featured-intro {
  padding: 24px 0 12px;
  text-align: center;
}

.featured-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.featured-intro p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
}

.games {
  padding: 0 0 40px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.game-card img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  height: auto;
}

.game-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.game-card h2 span {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.8), rgba(255, 79, 121, 0.8));
  -webkit-background-clip: text;
  color: transparent;
}

\.game-card .tags {\n  display: flex;\n  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.game-card .tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.game-card .excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.game-card .card-cta {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.game-card:hover .card-cta,
.game-card:focus-visible .card-cta {
  color: #ffd4b0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--accent);
  color: #0b0812;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(255, 122, 24, 0.35);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(255, 122, 24, 0.45);
}

.btn-primary {
  background: var(--accent);
  color: #0b0812;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(255, 122, 24, 0.45);
}

.what-is p {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq {
  padding: 0 0 48px;
}

.faq h2 {
  margin: 0 0 18px;
  margin-top: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.faq-grid article {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq-grid h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.explore {
  padding: 12px 0 72px;
}

.explore h2 {
  margin-top: 0;
}

.tag-nav {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.tag-nav a {
  color: var(--accent);
}

.tag-nav a:hover,
.tag-nav a:focus-visible {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 7, 12, 0.86);
}

.modal.open {
  display: flex;
}

.modal-inner {
  background: rgba(15, 13, 22, 0.96);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 70px 120px rgba(0, 0, 0, 0.65);
  width: min(960px, 100%);
  max-height: min(90vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 22px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-body {
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.modal-iframe {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #09080c;
  min-height: 420px;
}

.modal-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
}

.modal-footer .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.modal-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-footer .links a {
  color: rgba(255, 255, 255, 0.82);
}

.modal-footer .links a:hover,
.modal-footer .links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumb ol {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb li:last-child::after {
  content: none;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--fg);
}

.page-detail .detail {
  padding: 72px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.detail-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
}

.detail-layout--single {
  grid-template-columns: 1fr;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.frame-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.frame-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #09080c;
  aspect-ratio: var(--aspect, 1.6667);
  min-height: 420px;
}

.frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #09080c;
  margin-top: 18px;
}

.trailer-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.fallback-links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-game {
  background: var(--surface-alt);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
}

.about-game h2 {
  margin-top: 0;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.feature-list li + li {
  margin-top: 8px;
}

.related {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 16px;
  gap: 10px;
}

.mini-card img {
  border-radius: 12px;
}

.mini-card h3 {
  margin: 0;
  font-size: 1rem;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-aside section {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-aside h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.detail-aside dl {
  margin: 0;
}

.detail-aside dt {
  font-weight: 600;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.detail-aside dt:first-of-type {
  margin-top: 0;
}

.detail-aside dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.detail-aside .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.gallery-item img {
  border-radius: 10px;
}

.gallery-item figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.detail-nav {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-nav a {
  color: var(--accent);
}

.page-tags main {
  padding: 72px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tag-page header,
.tag-directory header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-page .card-grid {
  margin-top: 8px;
}

.tag-directory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.tag-directory-list li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.tag-directory-list .count {
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}

.site-footer {
  padding: 36px 0 48px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fg);
  text-decoration: underline;
}

.search-page main {
  padding: 72px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 260px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.search-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .detail-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-aside section {
    flex: 1 1 280px;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .frame-actions {
    justify-content: start;
  }

  .frame-wrapper {
    min-height: 260px;
  }

  .detail-layout--single {
    gap: 24px;
  }

  .modal {
    padding: 12px;
  }

  .modal-inner {
    max-height: 92vh;
  }

  .detail-nav {
    flex-direction: column;
  }

  .tag-directory-list {
    columns: 1;
  }
}









