/* ============================================================
   太妃物语 (Toffee Story) — Toffee Candy Sweet Theme
   Caramel-golden browns & cream-whites, wrapped-sweet motifs
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "STSong", "SimSun", "KaiTi", Georgia, serif;

  /* Toffee candy palette */
  --caramel-deep: #8B4513;
  --caramel: #A0522D;
  --caramel-light: #C68E58;
  --golden: #D4A574;
  --cream: #FFF8F0;
  --cream-warm: #FFFDF7;
  --cream-bg: #FFFBF5;
  --toffee-accent: #B8860B;
  --toffee-dark: #5C3317;
  --wrapper-beige: #F5E6D3;
  --sweet-pink: #F4C2A3;
  --text-dark: #3E2723;
  --text-medium: #5D4037;
  --text-light: #8D6E63;
  --white: #FFFFFF;
  --shadow: rgba(139, 69, 19, 0.12);

  --header-height: 64px;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream-bg);
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(196, 142, 88, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(180, 130, 70, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 194, 163, 0.05) 0%, transparent 60%);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Body decorative wrapper-sweet pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(139, 69, 19, 0.02) 40px, rgba(139, 69, 19, 0.02) 42px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(139, 69, 19, 0.02) 40px, rgba(139, 69, 19, 0.02) 42px);
  opacity: 0.4;
}

/* ---------- Screen reader only ---------- */
.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;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--caramel-deep) 0%, var(--toffee-dark) 100%);
  border-bottom: 3px solid var(--caramel-light);
  box-shadow: 0 2px 16px rgba(92, 51, 23, 0.2);
  height: var(--header-height);
}

header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

header .logo img {
  height: 36px;
  width: 36px;
  border-radius: 6px;
}

header .logo span {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 2px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--cream-warm);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.1);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--caramel-light);
  border-radius: 1px;
}

/* Header CTA Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--caramel-light) 0%, var(--golden) 100%);
  color: var(--toffee-dark);
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(139, 69, 19, 0.25);
  white-space: nowrap;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
}

.btn-download::before {
  content: "🍬";
  font-size: 1rem;
}

/* ---------- Main Layout ---------- */
main {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0 40px;
  box-shadow: 0 8px 32px rgba(92, 51, 23, 0.18);
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 300px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(92, 51, 23, 0.15) 0%,
    rgba(92, 51, 23, 0.45) 50%,
    rgba(92, 51, 23, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 24px;
  text-align: center;
}

.hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.hero-overlay .hero-subtitle {
  font-size: 1.2rem;
  color: var(--sweet-pink);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-overlay .hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-overlay .hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-overlay .hero-tags span {
  background: rgba(255, 248, 240, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 248, 240, 0.3);
  color: var(--cream);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Wrapped-sweet divider ---------- */
.sweet-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 32px;
  color: var(--caramel);
}

.sweet-divider::before,
.sweet-divider::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--golden), transparent);
}

.sweet-divider .candy-icon {
  font-size: 1.6rem;
  animation: candyBounce 2s ease-in-out infinite;
}

@keyframes candyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Section Headings ---------- */
section {
  margin-bottom: 48px;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--caramel-deep);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 16px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--caramel-light), var(--golden));
  border-radius: 2px;
}

section .section-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 12px auto 32px;
  max-width: 600px;
}

/* ---------- Game Info Cards ---------- */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--caramel-light);
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(139, 69, 19, 0.18);
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--caramel);
  margin-bottom: 8px;
}

.info-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Feature Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--wrapper-beige);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(196, 142, 88, 0.08) 50%);
  border-bottom-left-radius: var(--radius);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(139, 69, 19, 0.15);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--caramel);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- Screenshot Gallery ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.screenshot-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.2);
}

.screenshot-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ---------- Player Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px var(--shadow);
  position: relative;
}

.review-card::before {
  content: """;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--caramel-light);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.review-card blockquote {
  font-style: italic;
  color: var(--text-medium);
  margin: 12px 0 16px;
  padding-left: 8px;
  border-left: 3px solid var(--caramel-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

.review-card .reviewer {
  color: var(--caramel);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- CTA Banner (Index only) ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--caramel-deep) 0%, var(--toffee-dark) 60%, var(--caramel) 100%);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(92, 51, 23, 0.25);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(244, 194, 163, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(196, 142, 88, 0.1) 0%, transparent 50%);
  animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, -10px); }
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.cta-banner h2::after {
  background: var(--golden);
}

.cta-banner p {
  color: var(--sweet-pink);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.cta-banner .btn-download-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--caramel-light) 0%, var(--golden) 100%);
  color: var(--toffee-dark);
  padding: 14px 40px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.cta-banner .btn-download-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

.cta-banner .btn-download-lg::before {
  content: "🍬";
  font-size: 1.2rem;
}

/* ---------- Content Pages ---------- */
.content-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 32px;
  border: 1px solid var(--wrapper-beige);
}

.content-article h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--caramel);
  margin-bottom: 16px;
  text-align: left;
  padding-bottom: 8px;
}

.content-article h2::after {
  left: 0;
  transform: none;
}

.content-article h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--caramel-deep);
  margin: 24px 0 10px;
}

.content-article p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.content-article ul,
.content-article ol {
  color: var(--text-medium);
  margin: 8px 0 16px 24px;
  line-height: 1.9;
}

.content-article li {
  margin-bottom: 8px;
}

.content-article .highlight-box {
  background: linear-gradient(135deg, var(--cream) 0%, var(--wrapper-beige) 100%);
  border-left: 4px solid var(--caramel-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.content-article .highlight-box strong {
  color: var(--caramel-deep);
}

/* ---------- Chapter Titles (story page) ---------- */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--caramel);
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}

.story-chapter {
  margin-bottom: 12px;
}

/* ---------- Step List (guide page) ---------- */
.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
  min-height: 44px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-light) 100%);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
}

.step-list li h3 {
  margin-top: 0;
}

.tip-box {
  background: linear-gradient(135deg, var(--cream) 0%, var(--wrapper-beige) 100%);
  border: 1px solid var(--golden);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  position: relative;
}

.tip-box::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 1.2rem;
}

.tip-box p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* ---------- Character Cards Grid ---------- */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.char-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--wrapper-beige);
}

.char-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.char-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.char-card .char-info {
  padding: 20px;
}

.char-card .char-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--caramel);
  margin-bottom: 4px;
}

.char-card .char-info .char-role {
  font-size: 0.8rem;
  color: var(--caramel-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.char-card .char-info .char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.char-card .char-info .char-traits span {
  background: var(--cream);
  color: var(--caramel);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
}

.char-card .char-info p {
  color: var(--text-medium);
  font-size: 0.88rem;
  line-height: 1.75;
}

.char-card .char-info .char-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.char-card .char-info .char-stats strong {
  color: var(--text-dark);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--wrapper-beige);
  overflow: hidden;
  box-shadow: 0 1px 6px var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 48px 18px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--cream);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--caramel-light);
  transition: transform var(--transition);
  font-weight: 300;
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 20px 18px 56px;
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- System Requirements Table ---------- */
.sys-req-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.sys-req-table th {
  background: linear-gradient(135deg, var(--caramel-deep) 0%, var(--toffee-dark) 100%);
  color: var(--cream);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.sys-req-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.sys-req-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.sys-req-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--wrapper-beige);
  color: var(--text-medium);
}

.sys-req-table tr:nth-child(even) td {
  background: var(--cream);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Hero h1 for SEO (index page) ---------- */
.index-hero-h1 {
  /* When hero overlay exists, hide this h1 visually */
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(135deg, var(--caramel-deep) 0%, var(--toffee-dark) 100%);
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

footer p {
  color: var(--cream-warm);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox .lightbox-close:hover {
  opacity: 1;
}

/* ---------- Page Hero (non-index pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0 40px;
  box-shadow: 0 4px 20px rgba(92, 51, 23, 0.15);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(244, 194, 163, 0.2) 0%, transparent 60%);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--cream);
  position: relative;
  letter-spacing: 3px;
}

.page-hero p {
  color: var(--sweet-pink);
  font-size: 1rem;
  position: relative;
  margin-top: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 20px 0 8px;
}

.breadcrumb a {
  color: var(--caramel);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

/* ---------- Tables (general) ---------- */
.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.content-article th {
  background: linear-gradient(135deg, var(--caramel-deep) 0%, var(--toffee-dark) 100%);
  color: var(--cream);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.content-article td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--wrapper-beige);
  color: var(--text-medium);
}

.content-article tr:nth-child(even) td {
  background: var(--cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  header .header-inner {
    padding: 0 16px;
  }

  nav a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .btn-download {
    font-size: 0.82rem;
    padding: 8px 16px;
  }

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

  .hero-overlay .hero-subtitle {
    font-size: 0.95rem;
  }

  main {
    padding: 0 16px 40px;
  }

  .content-article {
    padding: 24px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .feature-grid,
  .characters-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  section h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  header .header-inner {
    flex-wrap: wrap;
  }

  header .logo span {
    font-size: 1.1rem;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .btn-download {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero-overlay h1 {
    font-size: 1.4rem;
  }

  .hero-overlay .hero-tags span {
    font-size: 0.75rem;
  }

  .page-hero {
    padding: 32px 20px;
  }

  .page-hero h1 {
    font-size: 1.3rem;
  }

  .content-article {
    padding: 20px;
  }
}
