:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --text: #1e2850;
  --muted: #6d7694;
  --pink: #f264c9;
  --pink-soft: #fbe8f7;
  --sky: #24b4de;
  --sky-soft: #e3f6fb;
  --orange: #ff664f;
  --orange-soft: #fff0ec;
  --shadow: 0 18px 48px rgba(32, 47, 93, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.mobile-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.page-stack {
  display: grid;
  gap: 20px;
}

.mobile-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
  padding: 10px 0 18px;
}

.icon-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 1.9rem;
  line-height: 1;
  border: none;
  color: #101010;
}

.site-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.brand-text {
  display: grid;
  gap: 2px;
  text-align: center;
}

.brand-text strong {
  font-size: 1.2rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-banner,
.content-panel,
.detail-hero-card,
.search-panel {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 16px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f4f7fd;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
}

.quick-links {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
}

.quick-link-pill {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, #eef3ff 0%, #f8eefe 100%);
  border-radius: 999px;
  color: #43527a;
  font-size: 0.92rem;
  font-weight: 700;
}

.top-banner {
  padding: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f8ebff 0%, #effaf8 100%);
}

.top-banner h1,
.hero-copy-block h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.top-banner p,
.hero-copy-block p,
.wide-game-copy p,
.content-panel p,
.mini-category-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  color: #3159d4;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-showcase {
  padding: 12px;
  border-radius: var(--radius-xl);
}

.category-showcase:nth-child(3n + 1) {
  background: var(--pink-soft);
}

.category-showcase:nth-child(3n + 2) {
  background: var(--sky-soft);
}

.category-showcase:nth-child(3n + 3) {
  background: var(--orange-soft);
}

.category-hero-card {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: var(--radius-xl);
}

.category-hero-image,
.detail-hero-image {
  height: 260px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 24px;
  color: white;
  background: linear-gradient(90deg, rgba(42, 28, 79, 0.44) 0%, rgba(42, 28, 79, 0.08) 60%);
}

.category-hero-overlay h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
}

.category-hero-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  font-size: 1.8rem;
}

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

.thumb-card {
  display: block;
  overflow: hidden;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(32, 47, 93, 0.08);
}

.category-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.category-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a63dc;
  font-size: 0.95rem;
  font-weight: 700;
}

.category-more-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 20px rgba(74, 99, 220, 0.14);
}

.thumb-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb-card-body {
  padding: 10px 12px 14px;
}

.thumb-card-body strong,
.wide-game-copy h3,
.panel-head h2,
.detail-copy-card h2,
.detail-copy-card h3 {
  display: block;
  margin: 0 0 6px;
}

.thumb-card-body span {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-hero-card {
  overflow: hidden;
}

.detail-hero-media {
  position: relative;
}

.hero-copy-block {
  padding: 20px 20px 24px;
}

.hero-start-link {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a63dc 0%, #6ea8ff 100%);
  color: white;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(74, 99, 220, 0.26);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-pill {
  padding: 10px 14px;
  background: #f1f4fb;
  border-radius: 999px;
  color: #4e5878;
  font-size: 0.92rem;
  font-weight: 700;
}

.content-panel {
  padding: 20px;
}

.category-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.load-more-button {
  min-width: 140px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a63dc 0%, #6ea8ff 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(74, 99, 220, 0.22);
}

.content-panel.no-pad {
  padding: 20px 0 0;
  overflow: hidden;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head.with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.panel-head.with-link a {
  color: #4a63dc;
  font-weight: 700;
}

.panel-head h2 {
  font-size: 1.5rem;
}

.featured-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 20px 20px;
}

.featured-slide {
  position: relative;
  flex: 0 0 min(88vw, 680px);
  overflow: hidden;
  border-radius: 26px;
}

.featured-slide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  color: white;
  background: linear-gradient(180deg, rgba(14, 19, 52, 0.02) 0%, rgba(14, 19, 52, 0.76) 100%);
}

.featured-overlay h2 {
  margin: 8px 0;
  font-size: 2rem;
}

.featured-overlay p {
  color: rgba(255, 255, 255, 0.88);
}

.list-stack {
  display: grid;
  gap: 16px;
}

.wide-game-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  background: #f8faff;
  border-radius: 24px;
}

.wide-game-card img {
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.wide-game-copy {
  padding: 16px 16px 16px 0;
}

.wide-game-copy h3 {
  font-size: 1.25rem;
}

.wide-game-copy .tag-row {
  margin-top: 12px;
}

.detail-copy-card {
  display: grid;
  gap: 14px;
}

.detail-topline a {
  color: #4060d8;
  font-weight: 700;
}

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

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

.mini-category-card {
  display: block;
  overflow: hidden;
  background: #f8faff;
  border-radius: 22px;
  padding-bottom: 14px;
}

.mini-category-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 12px;
}

.mini-category-card strong,
.mini-category-card span {
  display: block;
  padding: 0 14px;
}

.site-legal {
  margin-top: 20px;
  padding: 18px 16px 8px;
  text-align: center;
}

.site-legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-legal a {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  text-decoration: underline;
}

.search-page {
  display: grid;
  gap: 18px;
}

.search-box-panel {
  padding: 18px;
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #dde5f6;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text);
  background: #f8faff;
}

.search-submit {
  min-width: 110px;
  min-height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #4a63dc 0%, #6ea8ff 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.search-result-list {
  display: grid;
  gap: 14px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-result-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.search-result-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.search-result-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.search-empty {
  padding: 22px;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .thumb-grid {
    gap: 12px;
  }

  .featured-slide {
    flex-basis: 88vw;
  }

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

  .wide-game-copy {
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .mobile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .featured-overlay h2 {
    font-size: 1.6rem;
  }

  .thumb-card-body {
    padding: 8px 8px 12px;
  }

  .thumb-card-body strong {
    font-size: 0.92rem;
  }

  .thumb-card-body span {
    font-size: 0.78rem;
  }

  .category-hero-overlay {
    padding: 18px;
  }

  .category-hero-overlay h2 {
    font-size: 1.8rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-result-item {
    grid-template-columns: 88px 1fr;
  }
}
