:root {
  color-scheme: light dark;
  --bg: #f0ece8;
  --surface: #ffffff;
  --surface-soft: #ddd9d4;
  --text: #26282d;
  --muted: #69727a;
  --line: #ded8d1;
  --accent: #1294f6;
  --accent-strong: #0984dd;
  --shadow: 0 12px 28px rgb(32 26 20 / 12%);
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: #211d1a;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
}

.topbar {
  width: min(100%, 1840px);
  height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-word {
  color: #fff;
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 2px 0 rgb(0 0 0 / 24%);
}

.brand-word span {
  color: var(--letter);
}

.brand-word .brand-tail {
  color: #ffffff;
  font-size: .66em;
  margin-left: 4px;
  text-shadow: 0 2px 0 rgb(0 0 0 / 24%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  white-space: nowrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
}

.nav-pill-orange { background: #ff8a3d; }
.nav-pill-lime { background: #9dc440; }
.nav-pill-aqua { background: #79b9be; }

.search-box {
  width: clamp(220px, 18vw, 360px);
  height: 38px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background: #302f2f;
  border: 1px solid #101010;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #e9e9e9;
  background: transparent;
  padding: 0 12px;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #888;
}

.search-box button {
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #bbb;
  cursor: pointer;
}

.search-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  right: -8px;
  bottom: -5px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(45deg);
}

.profile-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #333;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.profile-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  background:
    radial-gradient(circle at 50% 28%, #9bc43a 0 25%, transparent 26%),
    radial-gradient(circle at 50% 88%, #9bc43a 0 44%, transparent 45%);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #333;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 99px;
  margin: 4px 0;
}

.portal-shell {
  width: min(100%, 1860px);
  margin: 0 auto;
  padding: 20px 18px 56px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(620px, 1fr) minmax(360px, 430px);
  gap: 18px;
  align-items: start;
}

.left-column,
.right-column,
.center-column {
  min-width: 0;
}

.side-section h2,
.section-heading h2 {
  margin: 0;
  color: #282b31;
  font-size: 21px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-slot {
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgb(41 48 57 / 12%);
  background:
    linear-gradient(135deg, rgb(18 148 246 / 10%), rgb(255 138 61 / 8%)),
    var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
  overflow: hidden;
}

.ad-slot strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.ad-slot small {
  display: block;
  max-width: 22ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ad-label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #33a6cf;
  color: #0d1d25;
  font-size: 12px;
  font-weight: 800;
}

.ad-slot-rail {
  min-height: 250px;
  margin: 0 0 18px;
  gap: 8px;
}

.ad-slot-leader {
  min-height: 280px;
  margin: 0 0 20px;
  gap: 8px;
}

.ad-slot-banner {
  min-height: 90px;
  margin-top: 18px;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 18px;
}

.ad-slot-native {
  min-height: 100%;
  aspect-ratio: 16 / 10;
  gap: 6px;
}

.ad-slot-tower {
  min-height: 520px;
  margin-top: 20px;
  gap: 8px;
  position: sticky;
  top: 84px;
}

.heading-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid #293039;
  display: inline-block;
  position: relative;
}

.heading-mark::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -10px;
  width: 4px;
  height: 8px;
  border-radius: 8px;
  background: #293039;
}

.game-grid {
  display: grid;
  gap: 12px;
}

.game-grid-side {
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.game-grid-compact {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.game-card {
  display: block;
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-grid-wide .ad-slot-native,
.game-grid-listing .ad-slot-native {
  min-height: 156px;
}

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

.thumb {
  aspect-ratio: 16 / 9;
  display: block;
  background: #ccc;
  overflow: hidden;
}

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

.game-title {
  display: block;
  height: 34px;
  padding: 7px 9px 0;
  color: #202226;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-compact .game-title {
  font-size: 15px;
}

.more-link {
  display: inline-flex;
  margin-top: 14px;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: #26282d;
  font-weight: 800;
  font-size: 14px;
}

.game-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 8px rgb(0 0 0 / 12%);
}

.game-stage {
  height: clamp(420px, 43vw, 690px);
  position: relative;
  background: var(--surface-soft);
}

.game-preloader,
.game-frame {
  position: absolute;
  inset: 0;
}

.game-preloader {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.game-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-poster {
  border: 0;
  padding: 0;
  width: min(360px, 54vw);
  border-radius: 9px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 2px 10px rgb(0 0 0 / 24%);
  cursor: pointer;
}

.play-button {
  min-width: 190px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #16a4ff, #0b86ee);
  font-size: 27px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgb(18 148 246 / 26%);
}

.play-button:active {
  transform: translateY(1px);
}

.domain-stamp {
  margin: 10px 0 0;
  color: #8797a1;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 12px;
}

.game-frame {
  display: none;
  border: 0;
  background: #111;
}

.game-frame.is-loaded {
  display: block;
}

.game-info {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
}

.game-info-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-info-title img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
}

.game-info-title .game-heading {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fullscreen-button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgb(0 0 0 / 18%);
}

.fullscreen-button span {
  width: 22px;
  height: 22px;
  display: block;
  border: 3px solid #fff;
  border-radius: 3px;
  box-shadow: inset 0 0 0 4px var(--accent);
}

.share-bar {
  display: grid;
  grid-template-columns: 84px repeat(5, minmax(110px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 18px 24px 22px;
}

.share-count {
  text-align: right;
  color: #69727a;
  font-size: 12px;
  line-height: 1.1;
}

.share-count strong {
  display: block;
  color: #4e555c;
  font-size: 18px;
}

.share-button {
  height: 38px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.share-facebook { background: #4167b2; }
.share-x { background: #050505; }
.share-reddit { background: #ff4500; }
.share-whatsapp { background: #25d366; }
.share-more { background: #8fcf35; }

.content-section,
.detail-copy,
.resource-panel,
.page-description,
.category-strip,
.inventory-section,
.question-list {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading a {
  color: var(--accent-strong);
  font-weight: 800;
}

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

.category-strip a {
  min-height: 88px;
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  color: #202226;
  font-weight: 800;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.category-strip span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--cat) 80% 60%), hsl(calc(var(--cat) + 70) 82% 52%));
}

.collection-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.collection-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 65%);
  padding: 7px 12px;
  color: var(--text);
  font-size: 0.92rem;
}

.listing-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-description,
.detail-copy,
.resource-panel,
.submit-panel,
.empty-state,
.inventory-section {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

.page-description h2,
.detail-copy h2,
.resource-panel h2,
.submit-panel h1,
.empty-state h2,
.inventory-section h2 {
  margin: 0 0 10px;
}

.page-description p,
.detail-copy p,
.resource-panel p,
.submit-panel p,
.empty-state p,
.listing-header p {
  color: var(--muted);
  line-height: 1.65;
}

.resource-table {
  display: grid;
  gap: 10px;
}

.resource-table div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.resource-table code {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgb(18 148 246 / 10%);
  color: var(--accent-strong);
  font-size: 13px;
}

.wiki-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wiki-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.listing-wrap {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 38px 18px 60px;
}

.listing-wrap.narrow {
  max-width: 720px;
}

.listing-header {
  margin-bottom: 22px;
}

.listing-header h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.search-page-form {
  display: flex;
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 18px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
}

.search-page-form button,
.primary-link {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.inventory-table {
  display: grid;
  gap: 10px;
}

.inventory-table div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(160px, 260px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.inventory-table code {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgb(18 148 246 / 10%);
  color: var(--accent-strong);
  font-size: 13px;
}

.inventory-table span {
  color: var(--muted);
  line-height: 1.45;
}

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

.question-list-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.question-card strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.28;
}

.question-card span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgb(18 148 246 / 12%);
  color: var(--accent-strong);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.question-card small,
.question-keyword,
.source-note {
  color: var(--muted);
}

.question-page {
  max-width: 1100px;
}

.answer-panel {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

.answer-panel h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.answer-panel h2 {
  margin: 26px 0 10px;
}

.answer-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.source-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.topic-layout {
  max-width: 1180px;
}

.topic-layout .game-embed {
  margin-bottom: 24px;
}

.topic-article,
.video-embed {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

.topic-article h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.topic-article h2 {
  margin: 28px 0 10px;
}

.topic-article h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.topic-article p,
.video-embed p {
  color: var(--muted);
  line-height: 1.7;
}

.article-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0 8px;
}

.article-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fafafa;
}

.article-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-media figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.video-embed {
  margin-top: 24px;
}

.video-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  aspect-ratio: 16 / 9;
  height: auto;
}

.source-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-radius: var(--radius);
  background: rgb(18 148 246 / 8%);
  padding: 14px;
}

.source-list a {
  color: var(--accent-strong);
  font-weight: 800;
}

.source-list p {
  margin: 6px 0 0;
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.breadcrumb-links span {
  color: var(--muted);
}

.qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.qa-meta span {
  border-radius: 999px;
  background: rgb(255 138 61 / 13%);
  color: #9a4c14;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191d;
    --surface: #24272c;
    --surface-soft: #343434;
    --text: #f2f3f5;
    --muted: #b4bdc7;
    --line: #3b3f46;
    --shadow: 0 12px 28px rgb(0 0 0 / 30%);
  }

  .side-section h2,
  .section-heading h2,
  .game-title,
  .category-strip a {
    color: var(--text);
  }

  .heading-mark,
  .heading-mark::before {
    border-color: #e8edf2;
    background: #e8edf2;
  }
}

@media (max-width: 1500px) {
  .portal-shell {
    grid-template-columns: minmax(210px, 260px) minmax(560px, 1fr) 336px;
  }

  .nav-pill {
    padding: 0 11px;
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .left-column {
    display: none;
  }

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

  .question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header,
  .topbar {
    height: auto;
    min-height: 64px;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .menu-button {
    display: block;
  }

  .nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .nav-pills {
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .portal-shell {
    grid-template-columns: 1fr;
    padding: 16px 12px 36px;
  }

  .right-column {
    order: 3;
  }

  .ad-slot-tower {
    position: static;
    min-height: 280px;
  }

  .share-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .share-count {
    grid-column: 1 / -1;
    text-align: left;
  }

  .game-grid-compact,
  .game-grid-wide,
  .game-grid-listing,
  .category-strip,
  .question-list,
  .question-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .resource-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .domain-stamp {
    font-size: 14px;
    letter-spacing: 7px;
  }
}

@media (max-width: 560px) {
  .game-stage {
    height: 360px;
  }

  .game-poster {
    width: min(300px, 82vw);
  }

  .play-button {
    min-width: 160px;
    height: 54px;
    font-size: 22px;
  }

  .game-grid-compact,
  .game-grid-wide,
  .game-grid-listing,
  .category-strip,
  .question-list,
  .question-list-compact {
    grid-template-columns: 1fr;
  }

  .search-page-form {
    flex-direction: column;
  }
}