/* ==========================================================================
   PopTag! Classic — Modern Rounded-Rectangle Crazy Arcade Portal Theme
   Clean normal typography · Soft rounded rectangles · Chibi Crazy Arcade art
   ========================================================================== */

:root {
  --bg-top: #eaf5ff;
  --bg-mid: #f3f9ff;
  --bg-bot: #e6f3ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-tint: #eff8ff;
  --border: #d9eafb;
  --border-strong: #bddbf7;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;

  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #dcfce7;

  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fef3c7;

  --coral: #f43f5e;
  --coral-soft: #ffe4e6;

  --violet: #6366f1;
  --violet-soft: #e0e7ff;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 76, 129, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 14px 36px rgba(14, 116, 194, 0.13);

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.20) 0%, rgba(56, 189, 248, 0) 36%),
    radial-gradient(circle at 88% 14%, rgba(251, 191, 36, 0.16) 0%, rgba(251, 191, 36, 0) 34%),
    radial-gradient(circle at 80% 78%, rgba(52, 211, 153, 0.14) 0%, rgba(52, 211, 153, 0) 38%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

/* ==========================================================================
   TOP NAVIGATION BAR (Clean Rounded Floating Bar)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 16px 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(234, 245, 255, 0.78);
}

.header-bar {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.brand-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.brand-logo-box img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.status-dot.on {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.status-dot.off {
  background: var(--coral);
}

.status-dot.maint {
  background: var(--amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}

.nav-link:hover {
  background: var(--surface-tint);
  color: var(--primary-dark);
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
}

.lang-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ==========================================================================
   PAGE CONTAINER & NOTICE TICKER
   ========================================================================== */

.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.notice-tag {
  background: var(--amber);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.notice-text {
  font-size: 13.5px;
  color: var(--text-body);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   HERO SHOWCASE (Rounded Rectangle Split Card + Chibi Artwork)
   ========================================================================== */

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 60%, #e0f2fe 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--primary-dark);
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-body);
  margin-bottom: 18px;
  max-width: 490px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
}

.hero-art-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: #dbeafe;
}

.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BUTTONS (Clean Rounded Rectangles)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.36);
}

.btn-success {
  background: linear-gradient(180deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.28);
}

.btn-success:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.36);
}

.btn-amber {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1e293b;
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.28);
}

.btn-amber:hover {
  color: #0f172a;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-tint);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ==========================================================================
   MAIN TWO-COLUMN GRID & CARDS
   ========================================================================== */

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: start;
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf5fe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-chibi-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-tint);
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.card-link:hover {
  text-decoration: underline;
}

.card-body {
  padding: 18px 20px;
}

/* ==========================================================================
   DOWNLOAD CARDS (Rounded Rectangular Packages)
   ========================================================================== */

.dl-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dl-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.10);
  transform: translateY(-1px);
}

.dl-card.featured {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  border: 1.5px solid #6ee7b7;
}

.dl-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dl-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  font-size: 24px;
}

.dl-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.dl-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pill-green { background: var(--green-soft); color: #047857; }
.pill-blue  { background: var(--primary-soft); color: #0369a1; }
.pill-amber { background: var(--amber-soft); color: #b45309; }
.pill-coral { background: var(--coral-soft); color: #be123c; }
.pill-violet { background: var(--violet-soft); color: #4338ca; }

/* ==========================================================================
   IN-GAME SCREENSHOT GALLERY (Clean Rounded Showcase)
   ========================================================================== */

.gallery-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1628;
}

.gallery-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
}

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-tab {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-body);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.gallery-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.gallery-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   SIDEBAR CARDS (Play 1P/2P, Server Status, Mini Rankings)
   ========================================================================== */

.play-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.play-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.play-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.play-mode-btn small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 2px;
}

.play-mode-btn.p1 {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.25);
}

.play-mode-btn.p2 {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 5px 14px rgba(244, 63, 94, 0.24);
}

.play-mode-btn:hover {
  transform: translateY(-2px);
}

.info-note {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid #edf5fe;
  font-size: 13.5px;
}

.stat-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.stat-row strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   NEWS ACCORDION
   ========================================================================== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.news-item:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.news-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tag-EVENT  { background: var(--coral-soft); color: #be123c; }
.tag-UPDATE { background: var(--primary-soft); color: #0369a1; }
.tag-NOTICE { background: var(--amber-soft); color: #b45309; }

.news-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-plus {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.news-summary {
  display: none;
  padding: 0 14px 14px;
  font-size: 13.5px;
  color: var(--text-body);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.news-item.open {
  background: #ffffff;
  border-color: var(--border-strong);
}

.news-item.open .news-summary {
  display: block;
}

/* ==========================================================================
   CLEAN ROUNDED TABLES & TAB PILLS
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
}

.clean-table thead th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-tint);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.clean-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
}

.clean-table tbody tr:last-child td {
  border-bottom: 0;
}

.clean-table tbody tr:hover td {
  background: #f8fbff;
}

.tab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-pill {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-body);
  font-size: 13.5px;
  font-weight: 600;
}

.tab-pill:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tab-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* ==========================================================================
   SUBPAGE BANNER & FEATURE GRIDS
   ========================================================================== */

.sub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #eff8ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.sub-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sub-hero-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.sub-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sub-hero p {
  font-size: 14px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.step-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 18px;
}

.feature-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-body);
}

.alert-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: #78350f;
}

/* ==========================================================================
   MODALS & FOOTER
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.modal-chibi {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.modal-box h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 18px;
}

.site-footer {
  max-width: 1140px;
  margin: 10px auto 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 600;
}

code {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--primary-dark);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-bar {
    padding: 10px 12px;
  }
  .hero-title {
    font-size: 24px;
  }
  .dl-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .dl-card .btn {
    width: 100%;
  }
  .gallery-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
