﻿:root {
  --bg: #fff7ef;
  --panel: #fff1e7;
  --card: #ffffff;
  --text: #221d1a;
  --muted: #756b63;
  --line: #f0ded0;
  --brand: #e66f45;
  --brand-2: #b82e3d;
  --accent: #d6a455;
  --rose: #d09590;
  --cream: #fffaf5;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 18px 48px rgba(91, 53, 41, 0.12);
}

* {
  box-sizing: border-box;
}

body.ov-page {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(214, 164, 85, 0.16), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(208, 149, 144, 0.18), transparent 26%),
    linear-gradient(180deg, #fffaf5 0%, #fff7ef 44%, #f7efe8 100%);
  color: var(--text);
}

.ov-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.ov-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.ov-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ov-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  white-space: nowrap;
}

.ov-logo span {
  color: var(--brand);
}

.ov-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  flex-wrap: wrap;
}

.ov-menu a {
  text-decoration: none;
  color: #4a4039;
  font-weight: 800;
  font-size: 14px;
}

.ov-menu a.active {
  color: var(--brand-2);
}

.ov-header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-header-search input,
.ov-search input {
  height: 42px;
  border: 1px solid #ead7c9;
  border-radius: 999px;
  padding: 0 12px;
  min-width: 260px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.ov-btn {
  border: 0;
  border-radius: 999px;
  height: 42px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #e66f45 0%, #c95d24 48%, #b82e3d 100%);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 12px 24px rgba(184, 46, 61, 0.2);
}

.ov-btn.ghost {
  background: #fff0e8;
  color: #9b3426;
  box-shadow: none;
}

.ov-hero {
  margin-top: 24px;
  padding: 48px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 18%, rgba(238, 234, 226, 0.96), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(214, 164, 85, 0.28), transparent 30%),
    linear-gradient(135deg, #5b1733 0%, #7a3f2e 46%, #34211c 100%);
  color: #fff;
  box-shadow: 0 22px 60px rgba(91, 23, 51, 0.2);
}

.ov-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: 340px;
  background:
    radial-gradient(circle at 82% 12%, rgba(225, 154, 181, 0.2), transparent 28%),
    radial-gradient(circle at 14% 0%, rgba(214, 179, 106, 0.24), transparent 32%),
    linear-gradient(135deg, #5b1733 0%, #78382d 52%, #34211c 100%);
}

.ov-directory-hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(225, 154, 181, 0.22), transparent 26%),
    radial-gradient(circle at 8% 92%, rgba(214, 179, 106, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff7ef 100%);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ov-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
}

.ov-hero p {
  margin-top: 14px;
  color: #f9e9dd;
  max-width: 760px;
}

.ov-directory-hero p {
  color: var(--muted);
}

.ov-directory-hero .ov-tag {
  background: #fff0e8;
  color: #9b3426;
  border: 1px solid #f3cfbd;
  font-weight: 800;
}

.ov-hero-media {
  display: grid;
  gap: 12px;
  grid-template-rows: repeat(2, 158px);
}

.ov-spotlight-card {
  height: 158px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #34211c;
  box-shadow: 0 20px 50px rgba(91, 53, 41, 0.24);
}

.ov-spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ov-spotlight-card img[src$=".svg"] {
  object-fit: contain;
  padding: 18px;
  background:
    radial-gradient(circle at 82% 14%, rgba(225, 154, 181, 0.16), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #fff0e8 100%);
}

.ov-spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(52, 33, 28, 0.82), rgba(52, 33, 28, 0.1));
}

.ov-spotlight-card span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.ov-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  max-width: 720px;
}

.ov-hero-stat {
  border: 1px solid rgba(255, 240, 232, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 250, 245, 0.11);
  color: #f9e9dd;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 48px;
  line-height: 1;
}

.ov-hero-stat strong {
  display: inline-block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.ov-genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ov-genre-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #9b3426;
  background: #fff0e8;
  border: 1px solid #f3cfbd;
  font-size: 13px;
  font-weight: 800;
}

.ov-search {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ov-search input {
  min-width: min(560px, 100%);
  background: #fff;
}

.ov-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ov-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.18);
  color: #fff7ef;
  text-decoration: none;
  font-size: 13px;
}

.ov-section {
  margin-top: 28px;
}

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

.ov-section h2 {
  margin: 0;
  font-size: 26px;
}

.ov-section p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ov-grid {
  display: grid;
  gap: 16px;
}

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

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

.ov-grid.latest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ov-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ov-grid.apps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 12px;
}

.ov-grid.categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.ov-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ov-card:hover {
  transform: translateY(-3px);
  border-color: #efc0ad;
  box-shadow: 0 20px 44px rgba(91, 53, 41, 0.16);
}

.ov-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  object-fit: cover;
  background: #f4e8df;
}

.ov-card-cover[src$=".svg"] {
  object-fit: contain;
  padding: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(225, 154, 181, 0.16), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #fff0e8 100%);
}

.ov-card-cover[src*="forge-of-empires.png"] {
  object-fit: contain;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 179, 106, 0.22), transparent 30%),
    linear-gradient(145deg, #fffdf9 0%, #fff0e8 100%);
}

.ov-card-body {
  padding: 12px;
}

.ov-chip {
  display: inline-block;
  font-size: 12px;
  background: #fff0e8;
  color: #9b3426;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  border: 1px solid #f3cfbd;
}

.ov-card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.ov-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ov-category-card {
  min-height: 240px;
}

.ov-category-icon {
  width: 74px;
  height: 74px;
  margin: 18px 0 0 18px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.ov-guide-card {
  min-height: 260px;
}

.ov-guide-icon {
  width: 92px;
  height: 92px;
  margin: 20px 0 0 20px;
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.ov-guide-card .ov-guide-icon[src*="/images/apps/"] {
  object-fit: contain;
  padding: 14px;
}

.ov-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ov-actions .ov-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.ov-app {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  text-align: center;
  padding: 14px 8px 16px;
  min-height: 206px;
}

.ov-app img,
.ov-app-icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.ov-app img {
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(91, 53, 41, 0.14);
}

.ov-app-icon {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #9b3426;
  background: linear-gradient(135deg, #fff0e8, #f9e9dd);
  border: 1px solid #f3cfbd;
}

.ov-app h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  line-height: 1.2;
}

.ov-app p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.ov-breadcrumb {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.ov-breadcrumb a {
  color: #b82e3d;
  text-decoration: none;
}

.ov-prose {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.ov-detail-hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.ov-app-detail-hero {
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background:
    linear-gradient(90deg, rgba(230, 111, 69, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(91, 53, 41, 0.1);
  overflow: visible;
}

.ov-detail-cover {
  min-height: 260px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 25% 20%, #d6b36a 0%, #d77a50 42%, #5b1733 100%);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.ov-detail-cover.has-image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
  justify-content: flex-end;
  background: #34211c;
}

.ov-detail-cover.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ov-detail-cover.ov-art-cover {
  background:
    radial-gradient(circle at 82% 14%, rgba(225, 154, 181, 0.18), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #fff0e8 100%);
}

.ov-detail-cover.ov-art-cover img {
  object-fit: contain;
  padding: 24px;
}

.ov-detail-cover.has-image img[src*="/images/apps/"] {
  object-fit: contain;
  padding: 72px;
  background:
    radial-gradient(circle at 78% 12%, rgba(225, 154, 181, 0.16), transparent 28%),
    radial-gradient(circle at 2% 100%, rgba(214, 179, 106, 0.14), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fffaf5 58%, #fff0e8 100%);
}

.ov-detail-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52, 33, 28, 0.02), rgba(52, 33, 28, 0.72));
}

.ov-detail-cover.ov-art-cover::after {
  display: none;
}

.ov-detail-cover.ov-art-cover .ov-detail-cover-caption {
  display: none;
}

.ov-detail-cover-caption {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.ov-detail-cover-caption strong,
.ov-detail-cover-caption p {
  margin: 0;
}

.ov-detail-cover-caption strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #fffaf5;
}

.ov-detail-cover-caption p {
  margin-top: 8px;
  color: #dbeafe;
}

.ov-detail-cover span {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: auto;
}

.ov-app-detail-cover {
  position: relative;
  overflow: visible;
  min-height: 0;
  width: 126px;
  height: 126px;
  padding: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #0b1220;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ov-app-detail-cover::before {
  display: none;
}

.ov-app-detail-cover::after {
  display: none;
}

.ov-app-detail-cover img {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 126px;
  border-radius: 30px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(240, 222, 208, 0.68);
  padding: 0;
  box-shadow: 0 14px 30px rgba(91, 53, 41, 0.13);
}

.ov-app-detail-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: flex-start;
  justify-content: stretch;
  background: transparent;
}

.ov-app-detail-panel .ov-chip,
.ov-app-detail-panel h1,
.ov-app-detail-panel p,
.ov-app-detail-panel .ov-detail-meta {
  grid-column: 1;
}

.ov-app-detail-panel .ov-chip {
  justify-self: start;
}

.ov-app-detail-panel h1 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.045em;
}

.ov-app-detail-panel p {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

.ov-app-detail-panel .ov-detail-meta {
  margin: 16px 0 0;
}

.ov-app-detail-panel .ov-detail-meta span {
  background: rgba(255, 240, 232, 0.72);
}

.ov-app-detail-panel .ov-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  justify-self: end;
  margin-top: 0;
  min-width: 190px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ov-app-detail-panel .ov-actions .ov-btn {
  height: 44px;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 14px;
  width: 100%;
}

.ov-app-detail-hero + .ov-detail-layout {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}

.ov-app-detail-hero + .ov-detail-layout .ov-detail-card {
  padding: 22px;
  box-shadow: 0 14px 38px rgba(91, 53, 41, 0.08);
}

.ov-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.ov-detail-panel.ov-app-detail-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.ov-detail-hero > .ov-detail-panel:not(.ov-app-detail-panel) > .ov-chip {
  display: none;
}

.ov-detail-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.ov-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.ov-detail-meta span {
  border-radius: 999px;
  background: #fff0e8;
  color: #4f352c;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #f3cfbd;
}

.ov-detail-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.ov-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
}

.ov-detail-card h2 {
  margin-top: 0;
}

.ov-detail-card li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

.ov-game-overview {
  display: grid;
  gap: 18px;
}

.ov-game-overview > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.ov-game-summary {
  display: grid;
  gap: 0;
  border-top: 1px solid #f0ded0;
}

.ov-game-summary-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #f0ded0;
}

.ov-game-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4f352c;
  font-weight: 900;
}

.ov-game-summary-icon {
  display: none;
}

.ov-game-summary-value {
  color: var(--muted);
  line-height: 1.6;
}

.ov-game-summary-value strong {
  color: var(--text);
}

.ov-game-start {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.ov-side-list {
  display: grid;
  gap: 10px;
}

.ov-side-list a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ef;
  color: #9b3426;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #f3dfd1;
}

.ov-faq {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ov-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.ov-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.ov-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.9);
}

.ov-footer-inner {
  padding: 20px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.ov-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ov-footer a {
  color: #5b3529;
  text-decoration: none;
  font-size: 14px;
}

.ov-section-head h2,
.ov-detail-card h2 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.ov-detail-card,
.ov-detail-panel {
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1024px) {
  .ov-grid.featured,
  .ov-grid.cols-3,
  .ov-grid.guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-grid.latest,
  .ov-grid.cols-4,
  .ov-grid.categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ov-grid.apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.ov-page {
    overflow-x: hidden;
  }
  .ov-topbar-inner {
    min-height: 62px;
    padding: 8px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .ov-menu {
    order: 3;
    margin-left: 0;
  }
  .ov-header-search {
    order: 2;
    margin-left: 0;
    width: 100%;
  }
  .ov-header-search input {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }
  .ov-grid.featured,
  .ov-grid.cols-3,
  .ov-grid.latest,
  .ov-grid.cols-4,
  .ov-grid.categories,
  .ov-grid.guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-grid.apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ov-hero {
    padding: 32px 16px;
  }
  .ov-home-hero {
    grid-template-columns: 1fr;
  }
  .ov-hero-stats {
    max-width: none;
  }
  .ov-detail-hero,
  .ov-detail-layout {
    grid-template-columns: 1fr;
  }
  .ov-game-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }
  .ov-app-detail-hero {
    justify-items: center;
    text-align: center;
    padding: 24px;
    gap: 18px;
  }
  .ov-app-detail-cover {
    width: 110px;
    height: 110px;
  }
  .ov-app-detail-cover img {
    width: 110px;
    height: 110px;
    border-radius: 26px;
  }
  .ov-app-detail-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    min-width: 0;
  }
  .ov-app-detail-panel > * {
    max-width: 100%;
  }
  .ov-app-detail-panel p {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ov-app-detail-panel .ov-actions {
    display: flex;
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .ov-app-detail-panel .ov-detail-meta {
    width: 100%;
  }
  .ov-app-detail-hero + .ov-detail-layout {
    grid-template-columns: 1fr;
  }
  .ov-app-detail-panel .ov-detail-meta,
  .ov-app-detail-panel .ov-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .ov-grid.featured,
  .ov-grid.cols-3,
  .ov-grid.latest,
  .ov-grid.cols-4,
  .ov-grid.categories,
  .ov-grid.guides {
    grid-template-columns: 1fr;
  }
  .ov-grid.apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-app {
    min-height: 184px;
  }
  .ov-app img,
  .ov-app-icon {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }
  .ov-app-detail-hero {
    padding: 20px 16px;
  }
  .ov-app-detail-cover,
  .ov-app-detail-cover img {
    width: 96px;
    height: 96px;
  }
  .ov-app-detail-cover img {
    border-radius: 22px;
  }
  .ov-app-detail-panel .ov-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ov-app-detail-panel .ov-detail-meta span {
    max-width: 100%;
  }
  .ov-app-detail-panel .ov-actions .ov-btn {
    width: auto;
  }
}

/* Compact classic-game cards: tighter scan pattern for the homepage classics shelf. */
.ov-classics-section {
  margin-top: 24px;
}

.ov-classics-section .ov-section-head {
  margin-bottom: 12px;
}

.ov-classics-section h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.035em;
}

.ov-classics-section .ov-section-head p {
  max-width: 860px;
  font-size: 16px;
  line-height: 1.45;
}

.ov-classics-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
}

.ov-classics-section .ov-card {
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(91, 53, 41, 0.10);
}

.ov-classics-section .ov-card-cover {
  aspect-ratio: 16 / 9;
  max-height: 132px;
}

.ov-classics-section .ov-card-cover[src$=".svg"] {
  padding: 12px;
}

.ov-classics-section .ov-card-body {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 12px 12px 14px;
}

.ov-classics-section .ov-chip {
  align-self: flex-start;
  font-size: 11px;
  padding: 4px 9px;
}

.ov-classics-section .ov-card h3 {
  margin: 9px 0 6px;
  font-size: 16px;
  line-height: 1.2;
}

.ov-classics-section .ov-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.45;
}

.ov-classics-section .ov-actions {
  margin-top: auto;
  padding-top: 14px;
}

.ov-classics-section .ov-btn {
  min-height: 0;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .ov-classics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-classics-section .ov-card-body {
    min-height: 174px;
  }
}

@media (max-width: 520px) {
  .ov-classics-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact game-card system: use the same dense shelf layout across home and game category pages. */
.ov-grid.featured,
.ov-grid.cols-3,
.ov-grid.cols-4,
.ov-grid.latest {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
}

.ov-grid.apps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 14px;
}

.ov-grid.featured .ov-card,
.ov-grid.cols-3 .ov-card,
.ov-grid.cols-4 .ov-card,
.ov-grid.latest .ov-card {
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(91, 53, 41, 0.10);
}

.ov-grid.featured .ov-card-cover,
.ov-grid.cols-3 .ov-card-cover,
.ov-grid.cols-4 .ov-card-cover,
.ov-grid.latest .ov-card-cover {
  aspect-ratio: 16 / 9;
  max-height: 132px;
}

.ov-grid.featured .ov-card-cover[src$=".svg"],
.ov-grid.cols-3 .ov-card-cover[src$=".svg"],
.ov-grid.cols-4 .ov-card-cover[src$=".svg"],
.ov-grid.latest .ov-card-cover[src$=".svg"] {
  padding: 12px;
}

.ov-grid.featured .ov-card-body,
.ov-grid.cols-3 .ov-card-body,
.ov-grid.cols-4 .ov-card-body,
.ov-grid.latest .ov-card-body {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 12px 12px 14px;
}

.ov-grid.featured .ov-chip,
.ov-grid.cols-3 .ov-chip,
.ov-grid.cols-4 .ov-chip,
.ov-grid.latest .ov-chip {
  align-self: flex-start;
  font-size: 11px;
  padding: 4px 9px;
}

.ov-grid.featured .ov-card h3,
.ov-grid.cols-3 .ov-card h3,
.ov-grid.cols-4 .ov-card h3,
.ov-grid.latest .ov-card h3 {
  margin: 9px 0 6px;
  font-size: 16px;
  line-height: 1.2;
}

.ov-grid.featured .ov-card p,
.ov-grid.cols-3 .ov-card p,
.ov-grid.cols-4 .ov-card p,
.ov-grid.latest .ov-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.45;
}

.ov-grid.featured .ov-actions,
.ov-grid.cols-3 .ov-actions,
.ov-grid.cols-4 .ov-actions,
.ov-grid.latest .ov-actions {
  margin-top: auto;
  padding-top: 14px;
}

.ov-grid.featured .ov-btn,
.ov-grid.cols-3 .ov-btn,
.ov-grid.cols-4 .ov-btn,
.ov-grid.latest .ov-btn {
  min-height: 0;
  height: auto;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.ov-grid.apps .ov-app {
  min-height: 178px;
  padding: 10px 6px 12px;
}

.ov-grid.apps .ov-app img,
.ov-grid.apps .ov-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.ov-grid.apps .ov-app h3 {
  margin: 10px 0 4px;
  font-size: 15px;
}

.ov-grid.apps .ov-app p {
  font-size: 12px;
}

.ov-grid.apps .ov-app .ov-actions {
  margin-top: 10px;
  justify-content: center;
}

.ov-grid.apps .ov-app .ov-btn {
  height: auto;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 9px;
}

@media (max-width: 1120px) {
  .ov-grid.apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ov-grid.apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ov-grid.apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ov-category-card {
  min-height: 210px;
}

.ov-category-icon {
  width: 62px;
  height: 62px;
  margin: 14px 0 0 14px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .ov-grid.featured,
  .ov-grid.cols-3,
  .ov-grid.cols-4,
  .ov-grid.latest,
  .ov-classics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-grid.featured .ov-card-body,
  .ov-grid.cols-3 .ov-card-body,
  .ov-grid.cols-4 .ov-card-body,
  .ov-grid.latest .ov-card-body {
    min-height: 174px;
  }
}

@media (max-width: 520px) {
  .ov-grid.featured,
  .ov-grid.cols-3,
  .ov-grid.cols-4,
  .ov-grid.latest,
  .ov-classics-grid {
    grid-template-columns: 1fr;
  }
}

/* Category browsing cards should visually match the game-card shelves above. */
.ov-category-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
}

.ov-category-grid .ov-category-card {
  min-height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(91, 53, 41, 0.10);
}

.ov-category-grid .ov-category-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 132px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.ov-category-grid .ov-card-body {
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 12px 12px 14px;
}

.ov-category-grid .ov-card h3 {
  margin: 9px 0 6px;
  font-size: 16px;
  line-height: 1.2;
}

.ov-category-grid .ov-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.45;
}

.ov-category-grid .ov-actions {
  margin-top: auto;
  padding-top: 14px;
}

.ov-category-grid .ov-btn {
  height: auto;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .ov-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Search result cards: compact body (no big min-height reserved for description) */
.ov-grid.cols-4 .ov-search-card .ov-card-body {
  min-height: 0;
  padding: 10px 12px 12px;
}
.ov-grid.cols-4 .ov-search-card .ov-card-body h3 {
  margin-bottom: 2px;
  font-size: 15px;
}

/* FAQ card (Q&A card box) — used inside .ov-game-overview on game detail pages */
.ov-faq-card {
  display: grid;
  gap: 10px;
  /* 抵消 .ov-game-overview 的 gap，让卡片贴近上方的 FAQ 标题 */
  margin-top: -22px;
}
.ov-faq-card .qa {
  background: var(--panel, #fff1e7);
  border: 1px solid var(--line, #f0ded0);
  border-radius: 12px;
  padding: 13px 15px;
}
.ov-faq-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--brand-2, #b82e3d);
}
.ov-faq-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text, #221d1a);
}

/* ShouyouRadar official partner site button */
.ov-btn.site-btn{background:var(--accent,#d6a455);color:#fff}
.ov-btn.site-btn:hover{background:#c8953f;color:#fff}
