:root {
  --ink: #050505;
  --paper: #fff;
  --muted: #666;
  --line: rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: max(28px, calc((100vw - 1180px) / 2));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, a, .drop-zone { -webkit-tap-highlight-color: transparent; }
.section-pad { padding-inline: var(--pad); }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: width 180ms var(--ease), height 180ms var(--ease), margin 180ms var(--ease);
}
.cursor.is-hovering { width: 48px; height: 48px; margin: -24px 0 0 -24px; }

@media (hover: none) or (pointer: coarse) {
  .cursor, .noise { display: none !important; }
}

.inapp-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #18181b;
  color: #f4f4f5;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.45;
}
.inapp-banner[hidden] { display: none; }
.inapp-banner-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
}
.inapp-banner-icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.inapp-banner-text { flex: 1; }
.inapp-banner-text strong { display: block; font-size: 13px; font-weight: 600; color: #fbbf24; margin-bottom: 2px; }
.inapp-banner-text span { display: block; color: #d4d4d8; font-size: 11.5px; }
.inapp-banner-text strong strong { display: inline; color: #fff; }
.inapp-banner-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.inapp-banner-close:hover { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: #fff; }

body.has-inapp-banner .site-header { top: 80px; }
body.has-inapp-banner main { padding-top: 60px; }
@media (max-width: 560px) {
  body.has-inapp-banner .site-header { top: 96px; }
  body.has-inapp-banner main { padding-top: 84px; }
}

.site-header {
  position: fixed;
  top: 16px;
  left: var(--pad);
  right: var(--pad);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 11px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-logo-frame { width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; background: #1238b3; }
.brand-logo { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.55); transform-origin: 50% 38%; }
.brand-copy { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.brand-sub { display: block; font-size: 11px; letter-spacing: 0; line-height: 1.2; opacity: 0.75; }
.desktop-nav { display: flex; gap: 28px; font-size: 13px; }
.desktop-nav a { position: relative; }
.facebook-link, .facebook-link-copy { display: inline-flex; align-items: center; gap: 8px; }
.facebook-icon { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 34px; height: 34px; border: 0; background: transparent; position: relative; color: inherit; }
.menu-toggle span { position: absolute; width: 18px; height: 1px; background: currentColor; left: 8px; top: 17px; }
.menu-toggle span:last-child { transform: rotate(90deg); }
.mobile-support { display: none; padding: 9px 13px; color: #fff; background: var(--ink); border-radius: 999px; font-size: 12px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(400px, 32vw, 540px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 84px var(--pad) 32px;
  overflow: hidden;
  color: #fff;
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,12,32,.58) 0%, rgba(5,12,32,.12) 48%, rgba(5,12,32,.05) 70%), linear-gradient(0deg, rgba(4,9,23,.55) 0%, transparent 42%); }
.hero-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-kicker { align-self: start; color: rgba(255,255,255,.82); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-title {
  align-self: start;
  margin: clamp(14px, 1.6vw, 24px) 0 0;
  max-width: 900px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 5px 0 rgba(7,29,76,.9), 0 14px 34px rgba(0,0,0,.45);
}
.hero-line { display: block; overflow: hidden; padding: 0 0.07em 0.09em 0; }
.hero-line > span { display: block; transform: none; }
.hero-line:nth-child(2) > span { animation-delay: 80ms; }
.hero-line:nth-child(3) > span { animation-delay: 160ms; }
.hero-line-offset { text-align: right; }
.hero-foot { display: flex; align-items: end; justify-content: space-between; opacity: 0; animation: fade 1s 700ms var(--ease) forwards; }
.hero-foot p { margin: 0; color: #fff; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.35; text-shadow: 0 2px 14px rgba(0,0,0,.72); }
.circle-link {
  width: 78px;
  height: 78px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 600ms var(--ease), color 600ms var(--ease), transform 600ms var(--ease);
}
.circle-link:hover { color: #fff; background: var(--ink); transform: rotate(-20deg); }
.circle-link svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 21px; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: marquee 35s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-size: clamp(20px, 2.4vw, 38px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.ticker i { font-style: normal; font-size: 9px; margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.manifesto { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
.section-label { margin: 0 0 18px; color: var(--muted); }
.manifesto-copy { font-size: clamp(20px, 2.2vw, 32px); font-weight: 600; line-height: 1.35; letter-spacing: -0.03em; }
.manifesto-copy span { display: block; }
.manifesto-meta { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.manifesto-meta p { margin: 0; color: var(--muted); line-height: 1.55; }
.manifesto-meta p:last-child { justify-self: end; text-align: right; color: var(--ink); }
.manifesto-notice { margin-top: 40px; padding: clamp(20px, 2.6vw, 32px); background: #f3f3f1; border: 1px solid var(--line); border-radius: 8px 40px 8px 8px; }
.notice-head { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.notice-head .mono { color: var(--muted); }
.notice-head h3 { margin: 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.notice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.notice-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-list li .mono { color: var(--muted); padding-top: 3px; }
.notice-list p { margin: 0; color: #333; font-size: 14px; line-height: 1.65; }
.notice-list strong { color: var(--ink); font-weight: 600; }
.notice-en { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.support-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); align-items: center; padding-top: 48px; padding-bottom: 48px; color: #fff; background: #0a0a0a; scroll-margin-top: 96px; }
.support-copy h2 { margin: 0; max-width: 680px; font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.support-copy > p:not(.section-label) { max-width: 560px; margin: 20px 0 0; color: #aaa; font-size: clamp(14px, 1vw, 16px); line-height: 1.6; }
.support-community-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: min(100%, 330px); margin-top: 22px; padding: 14px 18px; color: #0a0a0a; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 600; }
.support-community-link .facebook-icon { width: 22px; height: 22px; flex-basis: 22px; }
.support-community-link strong { font-size: 18px; font-weight: 400; transition: transform .2s ease; }
.support-community-link:hover strong { transform: translate(3px, -3px); }
.support-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.support-note span { padding: 9px 12px; color: #d8d8d8; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.support-qr-card { width: min(100%, 180px); justify-self: end; margin: 0; padding: 10px; color: var(--ink); background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); text-align: center; }
.support-qr-card img { width: 100%; display: block; border-radius: 10px; image-rendering: auto; }
.support-qr-card figcaption { display: grid; gap: 4px; padding: 8px 4px 2px; }
.support-qr-card figcaption strong { font-size: 13px; font-weight: 600; color: #111; }
.support-qr-card figcaption span { color: #666; font-size: 11.5px; line-height: 1.45; }

.games { padding-top: 48px; padding-bottom: 64px; background: #f3f3f1; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-head h2, .patcher-intro h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-note { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.platform-filter-shell { position: relative; margin-bottom: 24px; }
.platform-filter-shell::before, .platform-filter-shell::after { display: none; }
.platform-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
  border: none;
  padding: 4px 0;
  overflow: visible;
}
.platform-filter-help { display: none !important; }
.platform-scroll-controls { display: none; }
.platform-scroll-button { display: none; }
.platform-tab {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.platform-tab:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.platform-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.platform-tab span {
  grid-column: 1;
  grid-row: 1;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.1;
}
.platform-tab.is-active span {
  color: #94a3b8;
}
.platform-tab strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.platform-tab.is-active strong {
  color: #ffffff;
}
.platform-tab em {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  border-radius: 999px;
}
.platform-tab.is-active em {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.platform-result { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; color: var(--muted); }
.platform-result-copy { display: flex; gap: 22px; }
.sort-control { position: relative; display: flex; align-items: center; gap: 12px; min-width: 260px; padding: 7px 14px 7px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.sort-control > .mono { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.sort-control select { width: 100%; padding: 5px 24px 5px 0; color: var(--ink); background: transparent; border: 0; outline: none; appearance: none; font-size: 13px; }
.catalog-controls { display: flex; align-items: center; gap: 10px; }
.search-control { display: flex; align-items: center; gap: 12px; min-width: 300px; padding: 7px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.search-control > .mono { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.search-control input { width: 100%; padding: 5px 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 13px; }
.search-control:focus-within { border-color: var(--ink); }
.detail-untranslated b { color: #fff; font-weight: 500; }
.sort-control:focus-within { border-color: var(--ink); }
.sort-arrow { position: absolute; right: 14px; pointer-events: none; color: var(--ink); }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 14px; }
.game-card { display: block; outline: none; }
.game-card[hidden] { display: none; }
.game-card:focus-visible .poster { border-radius: 8px; box-shadow: 0 0 0 3px var(--ink); }
.poster { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: #dededb; transition: transform 700ms var(--ease), border-radius 700ms var(--ease); }
.poster::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; transition: opacity 700ms var(--ease); pointer-events: none; }
.poster-a { border-radius: 110px 8px 8px 8px; }
.poster-b { border-radius: 8px 110px 44px 8px; }
.poster-c { border-radius: 44px 8px 110px 8px; }
.poster-d { border-radius: 8px 44px 8px 110px; }
.poster-e { border-radius: 110px 110px 8px 8px; }
.game-card:hover .poster { transform: scale(0.985); border-radius: 8px; }
.game-card:hover .poster::after { opacity: 0; }
.cover-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.001); transition: transform 700ms var(--ease); }
.game-card:hover .cover-poster img { transform: scale(1.045); }
.poster-arrow { position: absolute; top: 18px; right: 18px; z-index: 4; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #000; background: #fff; font-size: 24px; opacity: 0; transform: translate(-10px, 10px); transition: 600ms var(--ease); }
.game-card:hover .poster-arrow { opacity: 1; transform: translate(0, 0); }
.game-meta { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.game-meta h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.game-tag-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.status-badges { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.badge-group { display: inline-flex; align-items: stretch; border: 1px solid #111; border-radius: 4px; overflow: hidden; line-height: 1; }
.game-platform-tag { padding: 3px 7px; background: #f0f0ed; color: #222; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; display: flex; align-items: center; border-right: 1px solid #111; }
.game-version-badge { padding: 3px 8px; background: #050505; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; display: flex; align-items: center; }
.game-info-block { display: flex; flex-direction: column; gap: 3px; }
.game-patch-date { margin: 0; font-size: 12px; color: #555; line-height: 1.45; letter-spacing: normal; }
.game-patch-count { display: inline-flex; align-items: center; gap: 5.5px; margin: 0; font-size: 12px; color: #555; line-height: 1.45; letter-spacing: normal; }
.game-patch-count strong { color: var(--ink); font-weight: 600; }
.stat-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; transition: transform 200ms ease, color 200ms ease; }
.stat-icon-patch { color: #64748b; }
.stat-icon-download { color: #16a34a; }
.game-card:hover .stat-icon-patch { color: #0284c7; transform: scale(1.12); }
.game-card:hover .stat-icon-download { color: #15803d; transform: translateY(1.5px); }
@keyframes shimmerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseRing {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; text-transform: uppercase; margin-left: auto; }
.status-badge.is-new { background: linear-gradient(115deg, #fef3c7 15%, #ffffff 50%, #fef3c7 85%); background-size: 200% 100%; animation: shimmerSweep 3s infinite linear; color: #b45309; border: 1px solid #fde68a; box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15); }
.status-badge.is-new .beacon-dot { width: 5px; height: 5px; background: #d97706; border-radius: 50%; display: inline-block; animation: pulseRing 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1); }
.status-badge.is-update { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.status-badge.is-updating { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-badge.is-updating .beacon-dot { width: 5px; height: 5px; background: #f59e0b; border-radius: 50%; display: inline-block; animation: pulseRing 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1); }
.platform-empty { min-height: 380px; display: grid; place-content: center; text-align: center; border: 1px solid var(--line); border-radius: 80px 8px 80px 8px; background: #ecece8; }
.platform-empty[hidden] { display: none; }
.platform-empty .mono { color: var(--muted); }
.platform-empty h3 { margin: 20px 0 14px; font-size: clamp(24px, 3.2vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.platform-empty p { max-width: 480px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.game-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.game-pagination button { color: var(--ink); background: transparent; border: 0; }
.pagination-arrow { min-height: 44px; padding: 10px 0; font-size: 13px; }
.pagination-arrow:first-child { justify-self: start; }
.pagination-arrow:last-child { justify-self: end; }
.pagination-arrow:disabled { opacity: .25; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination-page { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line) !important; border-radius: 50%; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; letter-spacing: .08em; }
.pagination-page.is-active { color: #fff; background: var(--ink); border-color: var(--ink) !important; }

@media (max-width: 1366px) and (min-width: 861px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
}

.patcher-section { background: #0a0a0a; color: #fff; }
.patcher-intro { padding-top: 52px; padding-bottom: 32px; }
.patcher-intro .section-label { color: #8d8d8d; }
.patcher-facts { display: flex; justify-content: flex-end; gap: 32px; margin-top: 24px; color: #a4a4a4; font-size: 13px; }
.patcher-facts span { display: flex; gap: 11px; }
.patcher-facts b { color: #fff; font-weight: 500; }
.workspace-wrap { padding-bottom: 56px; }
.workspace { background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 44px); border-radius: 6px; }
[data-xdelta-only][hidden] { display: none !important; }
.workspace-top { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.workspace-top > div { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #20a45b; box-shadow: 0 0 0 5px rgba(32,164,91,.12); }
.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.field-row label { font-size: 20px; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 14px 36px 14px 0; appearance: none; outline: none; }
.select-wrap span { position: absolute; right: 0; top: 14px; pointer-events: none; }
.drop-zone { position: relative; text-align: center; margin-top: 24px; padding: 32px 20px 24px; border: 1px dashed #999; border-radius: 14px; transition: background 400ms var(--ease), border-color 400ms var(--ease); outline: none; }
.drop-zone:hover, .drop-zone.is-dragging, .drop-zone:focus-visible { background: #f0f0ed; border-color: var(--ink); }
.drop-zone.is-valid { border-color: #188b4b; background: #eef9f2; }
.drop-zone.is-invalid { border-color: #b33131; background: #fff1f1; }
.drop-number { position: absolute; top: 14px; left: 16px; color: var(--muted); font-size: 9.5px; }
.drop-icon { width: 42px; height: 42px; margin: 0 auto 12px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.drop-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.drop-zone h3 { margin: 0 0 6px; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.03em; }
.drop-zone p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.file-types { display: block; margin-top: 14px; font-size: 10px; }
.file-summary { display: grid; grid-template-columns: 1.3fr .5fr 1.2fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.file-summary > div { min-width: 0; }
.summary-label { display: block; color: var(--muted); margin-bottom: 9px; }
.file-summary strong { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.patch-progress { padding: 24px 0 4px; }
.patch-progress[hidden] { display: none; }
.patch-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.patch-progress-copy span { color: var(--muted); }
.patch-progress-copy strong { font-size: 14px; font-weight: 500; }
.patch-progress-track { height: 7px; overflow: hidden; background: #e2e2df; border-radius: 999px; }
.patch-progress-track span { display: block; width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width 250ms ease; }
.workspace-actions { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding-top: 28px; }
.workspace-actions p { max-width: 600px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.workspace-actions p span { color: var(--ink); font-weight: 600; }
.patch-button { min-width: 230px; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: 600ms var(--ease); }
.patch-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.patch-button:disabled { background: #d8d8d5; border-color: #d8d8d5; color: #777; }
.workspace-buttons { min-width: 260px; display: grid; gap: 10px; }
.download-button { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; color: #fff; background: var(--ink); border: 1px solid var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: 300ms var(--ease); }
.download-button:hover { background: #222; }
.download-button[hidden] { display: none; }
.ios-warning-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 18px; background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 6px; color: #92400e; line-height: 1.5; }
.ios-warning-banner[hidden] { display: none; }
.ios-warning-icon { font-size: 16px; line-height: 1.3; flex-shrink: 0; }
.ios-warning-text strong { display: block; font-size: 12.5px; font-weight: 600; color: #78350f; margin-bottom: 2px; }
.ios-warning-text span { display: block; font-size: 11.5px; color: #92400e; }
.ios-warning-text b { color: #78350f; font-weight: 600; }
.workspace-sub-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.workspace-sub-panel[hidden] { display: none; }
.sub-panel-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-panel-title { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; cursor: pointer; transition: all 180ms ease; user-select: none; }
.mode-pill input[type="radio"] { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; margin: 0; display: inline-grid; place-content: center; cursor: pointer; }
.mode-pill input[type="radio"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform 120ms ease; }
.mode-pill input[type="radio"]:checked::before { transform: scale(1); }
.mode-pill:hover { border-color: var(--ink); color: var(--ink); }
.mode-pill.is-active { background: #f0f0ee; border-color: var(--ink); color: var(--ink); font-weight: 500; }
.sub-panel-hint { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sub-panel-hint span { color: var(--ink); font-weight: 500; }
.external-download-panel { padding: clamp(28px, 4vw, 56px) 0 12px; }
.external-download-panel[hidden] { display: none; }
.external-download-label { color: var(--muted); }
.external-download-panel h3 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.external-download-description { max-width: 720px; margin: 20px 0 0; color: var(--muted); line-height: 1.65; }
.external-file-grid { display: grid; grid-template-columns: 1.5fr .65fr .65fr .75fr; margin-top: 32px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.external-file-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.external-file-grid span { color: var(--muted); }
.external-file-grid strong, .external-file-grid code { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; }
.external-file-hash { grid-column: 1 / -1; }
.external-download-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 18px 22px; color: #fff; background: var(--ink); border: 1px solid var(--ink); font-size: 16px; font-weight: 600; transition: color 500ms var(--ease), background 500ms var(--ease); }
.external-download-link:hover { color: var(--ink); background: transparent; }
.external-download-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* --- Method Switcher (Editorial Swiss / Cyberpunk Black & Subtle Neon) --- */
.method-switcher {
  margin: 20px 0 28px;
}
.method-switcher[hidden] {
  display: none !important;
}

.method-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fff8eb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #78350f;
}
.method-alert-banner .alert-icon {
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
}
.method-alert-banner .alert-text strong {
  font-weight: 600;
  color: #78350f;
  margin-right: 4px;
}
.method-alert-banner .alert-text b {
  font-weight: 600;
  color: #b45309;
}

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.method-tab {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 18px 20px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  transition: all 180ms var(--ease);
}
.method-tab:hover {
  border-color: var(--ink);
  background: #fafaf9;
}

/* Selected Tab: Pitch Black Card matching site branding */
.method-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.method-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.method-tab-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  transition: all 180ms ease;
}
.method-tab.is-active .method-tab-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ddd;
}
/* Cyber Neon Accent on Method 1 (Recommended) */
.method-tab-patcher.is-active .method-tab-tag {
  color: #39ff14;
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.08);
}
/* Cyber Blue Accent on Method 2 (Alternative) */
.method-tab-luma.is-active .method-tab-tag {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.method-tab-status {
  display: flex;
  align-items: center;
}
.method-tab-status .status-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
}
.method-tab.is-active .status-indicator {
  border-color: #fff;
  background: #fff;
}
.method-tab.is-active .status-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.method-tab-patcher.is-active .status-indicator {
  border-color: #39ff14;
  background: #39ff14;
}
.method-tab-patcher.is-active .status-indicator::after {
  background: #000;
}
.method-tab-luma.is-active .status-indicator {
  border-color: #38bdf8;
  background: #38bdf8;
}
.method-tab-luma.is-active .status-indicator::after {
  background: #000;
}

.method-tab-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.method-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #f4f4f2;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all 180ms ease;
}
.method-tab.is-active .method-tab-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.method-tab-patcher.is-active .method-tab-icon {
  color: #39ff14;
  background: rgba(57, 255, 20, 0.12);
  border-color: rgba(57, 255, 20, 0.3);
}
.method-tab-luma.is-active .method-tab-icon {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.method-tab-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.method-tab-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.method-tab.is-active .method-tab-title {
  color: #fff;
}
.method-tab-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.method-tab.is-active .method-tab-desc {
  color: #999;
}

@media (max-width: 680px) {
  .method-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .method-tab {
    padding: 14px 16px;
  }
}

/* --- Luma / LayeredFS Download Panel --- */
.luma-download-panel {
  margin: 12px 0 0;
  padding: 8px 0 0;
}
.luma-download-panel[hidden] {
  display: none !important;
}
.luma-panel-head {
  margin-bottom: 24px;
}
.luma-panel-badge {
  color: var(--muted);
  font-size: 11px;
}
.luma-panel-head h3 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 600;
}
.luma-panel-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.luma-panel-head code {
  font-size: 12px;
  padding: 1px 4px;
  background: #eee;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
}
.luma-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 28px;
}
@media (max-width: 768px) {
  .luma-guide-grid {
    grid-template-columns: 1fr;
  }
}
.luma-guide-card {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.luma-guide-card .guide-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.luma-guide-card .guide-card-content {
  min-width: 0;
}
.luma-guide-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.luma-guide-card ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #444;
}
.luma-guide-card li {
  margin-bottom: 8px;
}
.luma-guide-card li:last-child {
  margin-bottom: 0;
}
.luma-guide-card code,
.luma-guide-card kbd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0ee;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: ui-monospace, monospace;
}
.luma-download-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
  background: #fff;
}
.luma-download-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  border-bottom: 1px solid var(--line);
  background: #fcfcfb;
}
@media (max-width: 640px) {
  .luma-download-meta {
    grid-template-columns: 1fr;
  }
}
.luma-download-meta > div {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.luma-download-meta > div:last-child {
  border-right: none;
}
.luma-download-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.luma-download-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: normal;
  color: var(--ink);
}
.luma-download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 300ms var(--ease), background 300ms var(--ease);
}
.luma-download-btn:hover {
  color: var(--ink);
  background: transparent;
}
.luma-download-btn .luma-size-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 200ms ease;
}
.luma-download-btn:hover .luma-size-badge {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
  border-color: var(--line);
}
.luma-download-btn.disabled {
  background: #eee;
  color: #888;
  pointer-events: none;
  border-color: #ddd;
}
.luma-warning-footer {
  margin-top: 18px;
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #991b1b;
}
.luma-warning-footer b {
  color: #7f1d1d;
  font-weight: 600;
}

/* --- Popular Section (Cinematic Hero Spotlight & Modern Cards) --- */
.popular-section { padding-top: 52px; padding-bottom: 64px; scroll-margin-top: 96px; }
.popular-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr); gap: 16px; align-items: stretch; }

/* Feature Card (TOP 01) */
.popular-feature-card {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #11141c;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.popular-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}
.popular-backdrop {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.8) brightness(0.32);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}
.popular-feature-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
  padding: 28px;
  width: 100%;
  align-items: center;
}
.popular-feature-poster-wrap {
  flex: 0 0 240px;
  height: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 500ms var(--ease);
}
.popular-feature-card:hover .popular-feature-poster-wrap {
  transform: scale(1.02);
}
.popular-feature-poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.popular-feature-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.popular-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.popular-feature-card .badge-group {
  border-color: rgba(255, 255, 255, 0.25);
}
.popular-feature-card .game-platform-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.popular-feature-card .game-version-badge {
  background: rgba(0, 0, 0, 0.45);
  color: #ffd700;
}
.popular-feature-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}
.popular-feature-subtitle {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.4;
}
.popular-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  width: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 6px;
}
.popular-stat-pill strong {
  color: #ffd700;
  font-weight: 700;
}
.popular-stat-pill .stat-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.popular-stat-pill .stat-icon-patch {
  width: 14px;
  height: 14px;
  color: #ffd700;
}
.popular-stat-pill .stat-icon-download {
  width: 14px;
  height: 14px;
  color: #86efac;
}
.stat-sep {
  opacity: 0.5;
}

/* Side List (TOP 02, 03, 04, 05) */
.popular-side-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.popular-small-card {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  align-items: center;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.popular-small-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}
.popular-small-poster {
  flex: 0 0 68px;
  height: 90px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: #eee;
}
.popular-small-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.popular-small-card:hover .popular-small-poster img {
  transform: scale(1.04);
}
.popular-small-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: center;
}
.popular-small-card .badge-group {
  border-radius: 3px;
  font-size: 8.5px;
}
.popular-small-card .game-platform-tag {
  padding: 1.5px 5px;
  font-size: 8.5px;
}
.popular-small-card .game-version-badge {
  padding: 1.5px 6px;
  font-size: 9px;
}
.popular-small-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popular-small-detail {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popular-small-stat {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}
.popular-small-stat strong {
  color: var(--ink);
  font-weight: 700;
}
.popular-small-stat .stat-icon-patch {
  width: 12px;
  height: 12px;
  color: #64748b;
}
.popular-small-stat .stat-icon-download {
  width: 12px;
  height: 12px;
  color: #16a34a;
}
.popular-small-card:hover .popular-small-stat .stat-icon-patch {
  color: #0284c7;
  transform: scale(1.12);
}
.popular-small-card:hover .popular-small-stat .stat-icon-download {
  color: #15803d;
  transform: translateY(1.5px);
}

/* Rank Badges */
.popular-rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 2.5px 7px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.popular-rank-badge.rank-gold {
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.popular-rank-badge.rank-silver {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.popular-rank-badge.rank-bronze {
  background: linear-gradient(135deg, #ffedd5, #ea580c);
  color: #fff;
}
.popular-rank-badge.rank-slate {
  background: #334155;
  color: #fff;
}

.updates-section { padding-top: 52px; padding-bottom: 64px; scroll-margin-top: 96px; border-top: 1px solid var(--line); }
.updates-feed { display: grid; gap: 28px; margin-top: 24px; }
.update-day-group { display: grid; gap: 10px; }
.update-day-header { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.update-day-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 10px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 4px; }
.update-day-badge.is-today { background: #0066cc; }
.update-day-badge.is-today::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%; box-shadow: 0 0 6px #fff; }
.update-day-title { margin: 0; font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.update-day-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.update-day-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.update-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px 18px; background: #fff; color: var(--ink); text-decoration: none; transition: background 160ms var(--ease), padding-left 160ms var(--ease); }
.update-row:hover { background: #f8f8f5; padding-left: 22px; }
.update-lead { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.update-time { color: var(--muted); font-size: 12px; font-weight: 600; min-width: 42px; }
.update-platform { display: inline-block; padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; border-radius: 4px; background: #f0f0ed; color: #222; border: 1px solid rgba(0, 0, 0, 0.08); }
.update-type { display: inline-block; padding: 2px 7px; font-size: 10px; font-weight: 600; border-radius: 4px; white-space: nowrap; }
.update-type.is-new { background: #050505; color: #fff; }
.update-type.is-update { background: #eaf2ff; color: #0055bb; border: 1px solid #c2daff; }
.update-info { display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; }
.update-game-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.update-desc { color: #555; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-trail { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.update-version { color: var(--muted); font-size: 11px; white-space: nowrap; }
.update-arrow { color: var(--muted); font-size: 14px; transition: transform 180ms var(--ease), color 180ms var(--ease); }
.update-row:hover .update-arrow { transform: translate(2px, -2px); color: var(--ink); }

.latest-section { padding-top: 52px; padding-bottom: 64px; background: #f3f3f1; scroll-margin-top: 96px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.latest-game-card { min-width: 0; display: block; }
.latest-game-cover { aspect-ratio: 3 / 4; overflow: hidden; background: #dededb; border-radius: 44px 6px 6px 6px; transition: border-radius 500ms var(--ease), transform 500ms var(--ease); }
.latest-game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 600ms var(--ease); }
.latest-game-card:hover .latest-game-cover { border-radius: 6px; transform: translateY(-3px); }
.latest-game-card:hover .latest-game-cover img { transform: scale(1.035); }
.latest-game-copy { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.latest-game-copy > span, .latest-game-copy > time { color: var(--muted); }
.latest-game-copy h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.legal-strip { overflow: hidden; background: #efefec; border-top: 1px solid var(--line); padding: 18px 0; }
.legal-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.legal-track span { white-space: nowrap; }

.footer { background: #0a0a0a; color: #fff; padding-top: 48px; padding-bottom: 28px; }
.footer-main { display: grid; grid-template-columns: 2fr .6fr .8fr; gap: 40px; padding-bottom: 36px; }
.footer-brand h2 { margin: 18px 0 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 13px; padding-top: 4px; }
.footer-col .mono { color: #777; margin-bottom: 18px; }
.footer-col a, .footer-col p { margin: 0; color: #d0d0d0; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; display: flex; justify-content: space-between; color: #888; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 130px); padding: 13px 18px; background: #fff; color: #000; border: 1px solid #000; font-size: 12px; transition: transform 600ms var(--ease); }
.toast.show { transform: translate(-50%, 0); }

.detail-back { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; place-items: center; font-size: 18px; }
.detail-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: 130px;
  padding-bottom: 32px;
}
.detail-cover-wrap { position: relative; width: min(100%, 320px); }
.detail-cover { width: 100%; aspect-ratio: 3 / 4; display: block; object-fit: cover; border-radius: 48px 8px 8px 8px; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.detail-copy { min-width: 0; }
.detail-breadcrumb { display: inline-block; margin-bottom: 16px; color: var(--muted); }
.detail-eyebrow { margin: 0 0 10px; color: var(--muted); }
.detail-copy h1 { margin: 0; max-width: 900px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-description { max-width: 690px; margin: 14px 0 0; color: var(--muted); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.detail-original-title { margin: 8px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 20px; border-top: 1px solid var(--line); }
.detail-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-meta span { color: var(--muted); }
.detail-meta strong { font-size: 13px; font-weight: 500; text-align: right; }
.detail-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.detail-platform-link:hover {
  opacity: 0.7;
  transform: translateX(2px);
}
.detail-platform-link strong {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.detail-platform-arrow {
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}
.detail-platform-link:hover .detail-platform-arrow {
  transform: translateX(3px);
  color: var(--ink);
}
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.detail-support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 240px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff2a5f 0%, #ff6b35 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(255, 42, 95, 0.32);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), filter 250ms var(--ease);
}
.detail-support-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 42, 95, 0.45);
  filter: brightness(1.08);
  color: #fff;
}
.detail-support-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 42, 95, 0.3);
}
.detail-support-heart {
  display: inline-block;
  font-size: 16px;
  color: #fff;
  transition: transform 250ms var(--ease);
}
.detail-support-cta:hover .detail-support-heart {
  transform: scale(1.3);
}
.detail-guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 13px 22px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.detail-guide-cta[hidden] {
  display: none !important;
}
.detail-guide-cta:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.detail-guide-cta:active {
  transform: translateY(0);
}
.detail-guide-cta .guide-icon,
.external-guide-link .guide-icon {
  font-size: 16px;
  line-height: 1;
}
.detail-guide-cta .guide-arrow,
.external-guide-link .guide-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform 200ms var(--ease);
}
.detail-guide-cta:hover .guide-arrow,
.external-guide-link:hover .guide-arrow {
  transform: translate(2px, -2px);
}
.external-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
  padding: 15px 22px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.external-guide-link[hidden] {
  display: none !important;
}
.external-guide-link:hover {
  background: #f8f8f6;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.external-guide-link:active {
  transform: translateY(0);
}
.detail-view-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 0; padding-bottom: 0; }
.detail-view-tab { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 10px 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-align: left; }
.detail-view-tab:first-child { border-radius: 999px 10px 10px 999px; }
.detail-view-tab:last-child { border-radius: 10px 999px 999px 10px; }
.detail-view-tab span { color: var(--muted); }
.detail-view-tab strong { font-size: 14px; font-weight: 500; }
.detail-view-tab.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.detail-view-tab.is-active span { color: #aaa; }
.detail-view-panel[hidden] { display: none !important; }
.detail-patcher { scroll-margin-top: 90px; }
.game-overview { padding-top: 36px; padding-bottom: 48px; scroll-margin-top: 90px; }
.overview-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px 48px; align-items: start; }
.overview-heading .section-label { grid-column: 1 / -1; }
.overview-heading h2 { margin: 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.overview-lead { max-width: 700px; margin: 4px 0 0; color: var(--muted); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.game-fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.game-fact-grid article { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-fact-grid span, .story-grid span, .release-feature-wrap > .mono, .source-identity span { color: var(--muted); }
.game-fact-grid strong { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.detail-more { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-more summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px; list-style: none; font-weight: 500; }
.detail-more summary::-webkit-details-marker { display: none; }
.detail-more summary b { font-size: 20px; font-weight: 300; transition: transform 250ms var(--ease); }
.detail-more[open] summary b { transform: rotate(45deg); }
.detail-more-body { padding-bottom: 28px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 20px; }
.story-grid > div { border-top: 1px solid var(--line); padding-top: 16px; }
.story-grid p { margin: 14px 0 0; color: #292929; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.compact-release { margin-top: 28px; padding: 24px; color: #fff; background: #0a0a0a; border-radius: 8px 36px 8px 8px; }
.compact-release .coverage-number { margin-top: 12px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; letter-spacing: -.01em; font-weight: 600; }
.compact-release .coverage-note { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: #aaa; }
.compact-release .release-feature-wrap, .compact-release .source-identity { margin-top: 24px; }
.compact-release .release-features { margin-top: 12px; }
.compact-release .release-features li { padding: 10px 0; }
.compact-release .source-identity > div { grid-template-columns: 200px minmax(0, 1fr); padding: 10px 0; }
.release-detail { padding-top: 56px; padding-bottom: 64px; color: #fff; background: #0a0a0a; }
.release-detail .section-label { color: #777; }
.release-summary { max-width: 1120px; }
.coverage-number { display: block; margin-top: 14px; font-family: Inter, sans-serif; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.coverage-note { max-width: 860px; margin: 24px 0 0; color: #aaa; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; }
.release-feature-wrap { margin-top: 48px; }
.release-features { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.release-features li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.release-features span { color: #777; }
.release-features strong { font-size: clamp(15px, 1.2vw, 18px); font-weight: 400; }
.source-identity { display: grid; grid-template-columns: 1fr; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.source-identity > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.source-identity strong, .source-identity code { min-width: 0; overflow-wrap: anywhere; color: #e8e8e8; font-size: 13px; font-weight: 400; }
.engine-credit { color: var(--muted); }
.selected-game-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.selected-game-row > .mono:first-child { color: var(--muted); }
.selected-game-row strong { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.03em; }
.selected-game-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.selected-platform { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.selected-version { padding: 6px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.selected-version b { color: var(--ink); font-weight: 600; letter-spacing: 0; }
.selected-counter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.selected-counter .mono { color: var(--muted); font-size: 9px; }
.selected-counter b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.patcher-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  grid-template-areas:
    "drop side"
    "coffee side";
  gap: 16px clamp(20px, 3vw, 36px);
  align-items: start;
  margin-top: 24px;
}
#drop-zone { grid-area: drop; }
#patch-success-coffee { grid-area: coffee; margin-top: 0; }
.patcher-side { grid-area: side; }
.detail-page .detail-patcher .patcher-intro { display: none; }
.detail-page .detail-patcher .workspace-wrap { padding-top: 32px; padding-bottom: 48px; }
.detail-page .detail-patcher .workspace { padding: clamp(18px, 2.5vw, 36px); }
.detail-page .detail-patcher .selected-game-row { padding: 18px 0; }
.detail-page .detail-patcher .drop-zone { min-height: 160px; height: auto; margin-top: 0; padding: 24px 18px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; }
.detail-page .detail-patcher .drop-icon { width: 36px; height: 36px; margin-bottom: 8px; }
.detail-page .detail-patcher .drop-icon svg { width: 16px; height: 16px; }
.detail-page .detail-patcher .drop-zone h3 { font-size: 16px; margin: 0 0 4px; }
.detail-page .detail-patcher .drop-zone p { font-size: 12px; line-height: 1.45; }
.detail-page .detail-patcher .file-types { margin-top: 8px; font-size: 9.5px; }
.detail-page .detail-patcher .drop-number { top: 10px; left: 12px; font-size: 9px; }
.detail-page .detail-patcher .file-summary { grid-template-columns: 1fr; gap: 0; padding: 0; border-top: 1px solid var(--line); }
.detail-page .detail-patcher .file-summary > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-page .detail-patcher .workspace-actions { grid-template-columns: 1fr; gap: 18px; margin-top: auto; padding-top: 20px; }
.detail-page .detail-patcher .workspace-actions p { max-width: none; }
.detail-page .detail-patcher .workspace-buttons { width: 100%; min-width: 0; }
.detail-page .detail-patcher .patch-button, .detail-page .detail-patcher .download-button { width: 100%; }
.detail-page .detail-patcher .workspace-sub-panel { flex-direction: column; align-items: flex-start; gap: 12px; }
.detail-page .requirements, .detail-page .legal-strip, .detail-page > .footer { display: none; }
.requirements { padding-top: 52px; padding-bottom: 64px; scroll-margin-top: 90px; }
.requirement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.requirement-grid article { min-height: 220px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.requirement-grid article:nth-child(2) { border-radius: 0 0 60px 0; }
.requirement-grid span { color: var(--muted); }
.requirement-grid h3 { margin: 40px 0 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.035em; }
.requirement-grid p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Site-wide statistics strip */
.site-stats-strip {
  background: #fbfbf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.stats-strip-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.stats-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--accent, #e53935);
  padding-left: 18px;
}
.stats-item .mono {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.stats-item strong {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.stats-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .site-stats-strip { padding: 24px 0; }
  .stats-strip-container { grid-template-columns: 1fr; gap: 20px; padding: 0 20px; }
  .stats-item { padding-left: 14px; }
}

@media (pointer: fine) { body, a, button, select, .drop-zone { cursor: none; } }
@media (pointer: coarse) { .cursor { display: none; } }

@media (max-width: 860px) {
  .catalog-controls { flex-direction: column; align-items: stretch; width: 100%; }
  .search-control { min-width: 0; }
  :root { --pad: 24px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-support { display: inline-flex; }
  .detail-page .menu-toggle { display: none; }
  .detail-back { display: grid; }
  .hero { min-height: 480px; padding-top: 84px; }
  .hero-cover { object-position: center; }
  .hero-title { max-width: 760px; font-size: clamp(26px, 5.5vw, 38px); line-height: 1.15; }
  .manifesto-copy span { display: inline; }
  .manifesto-meta { grid-template-columns: 1fr; gap: 20px; }
  .manifesto-meta p:last-child { justify-self: start; text-align: left; }
  .notice-list { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-note { margin-top: 20px; }
  .platform-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .platform-filter::-webkit-scrollbar { display: none; }
  .platform-tab {
    padding: 7px 14px;
    column-gap: 10px;
    flex-shrink: 0;
  }
  .platform-tab strong { font-size: 13px; }
  .platform-tab span { font-size: 8px; }
  .platform-tab em { min-width: 20px; height: 20px; font-size: 10px; padding: 0 6px; }
  .platform-result { align-items: stretch; flex-direction: column; }
  .sort-control { width: 100%; min-width: 0; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 10px; }
  .patcher-facts { justify-content: flex-start; flex-wrap: wrap; gap: 14px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .file-summary { grid-template-columns: 1fr 1fr; }
  .file-summary > div:last-child { grid-column: 1 / -1; }
  .workspace-actions { grid-template-columns: 1fr; }
  .popular-layout { grid-template-columns: 1fr; }
  .popular-feature-card { min-height: 420px; }
  .popular-side-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; }
  .popular-small-card { min-height: 0; grid-template-columns: 1fr; }
  .popular-small-card .popular-card-media { aspect-ratio: 4 / 3; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .detail-hero { min-height: auto; grid-template-columns: minmax(170px, .62fr) minmax(0, 1.38fr); gap: 24px; padding-top: 84px; padding-bottom: 28px; }
  .detail-cover-wrap { width: min(100%, 260px); }
  .detail-breadcrumb { margin-bottom: 20px; }
  .detail-copy h1 { font-size: clamp(23px, 3.8vw, 31px); line-height: 1.16; }
  .detail-meta { margin-top: 24px; }
  .overview-heading { grid-template-columns: 1fr; }
  .overview-heading .section-label { grid-column: auto; }
  .game-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .selected-game-row { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .selected-game-row > .mono:first-child { grid-column: 1 / -1; }
  .selected-game-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .patcher-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "drop"
      "side"
      "coffee";
    gap: 20px;
  }
  .detail-page .detail-patcher .drop-zone { min-height: 140px; padding: 22px 16px 18px; }
  .patch-success-coffee .coffee-card-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: center;
    gap: 18px;
  }
  .patch-success-coffee .coffee-card-copy h4 {
    justify-content: flex-start;
  }
  .patch-success-coffee .coffee-qr-wrap {
    width: 124px;
    margin: 0;
  }
  .external-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .external-file-hash { grid-column: 1 / -1; }
  .requirement-grid { grid-template-columns: 1fr; }
  .requirement-grid article { min-height: 180px; }
  .requirement-grid article:nth-child(2) { border-radius: 0; }
  .requirement-grid h3 { margin-top: 32px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .site-header { top: 10px; left: 12px; right: 12px; min-height: 50px; padding: 8px 12px 8px 14px; }
  .brand-sub { display: none; }
  .hero { min-height: 420px; }
  .hero-cover { object-position: 34% center; }
  .hero-title { font-size: clamp(22px, 6.5vw, 30px); line-height: 1.2; }
  .hero-foot { align-items: end; }
  .circle-link { width: 52px; height: 52px; }
  .games, .patcher-intro, .popular-section, .latest-section, .updates-section { padding-top: 40px; }
  .update-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 14px; }
  .update-row:hover { padding-left: 14px; }
  .update-info { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .update-game-title { white-space: normal; line-height: 1.25; font-size: 15px; }
  .update-desc { white-space: normal; font-size: 13px; line-height: 1.45; }
  .update-trail { width: 100%; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--line); margin-left: 0; }
  .section-label { margin-bottom: 16px; }
  .game-pagination { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; }
  .pagination-arrow { grid-row: 2; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; }
  .game-meta { margin-top: 8px; padding-top: 8px; gap: 5px; }
  .game-meta h3 { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .badge-group { border-radius: 3px; }
  .game-platform-tag { padding: 1.5px 4.5px; font-size: 9px; }
  .game-version-badge { padding: 1.5px 5.5px; font-size: 10px; }
  .status-badge { padding: 1.5px 5.5px; font-size: 9px; gap: 3.5px; }
  .status-badge.is-new .beacon-dot { width: 4px; height: 4px; }
  .game-info-block { gap: 1px; }
  .game-patch-date { font-size: 10px; color: #666; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-patch-count { font-size: 10px; gap: 4px; color: #666; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-patch-count .stat-icon { width: 11px; height: 11px; }
  .drop-zone { padding-inline: 16px; }
  .file-summary { grid-template-columns: 1fr; }
  .file-summary > div:last-child { grid-column: auto; }
  .popular-layout { grid-template-columns: 1fr; gap: 14px; }
  .popular-feature-card { min-height: 0; border-radius: 14px; }
  .popular-feature-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .popular-feature-poster-wrap { flex: 0 0 auto; width: 140px; height: 186px; }
  .popular-feature-title { font-size: 20px; }
  .popular-stat-pill { font-size: 11.5px; padding: 6px 12px; }
  .popular-side-list { grid-template-columns: 1fr; gap: 10px; }
  .popular-small-card { padding: 10px 12px; gap: 12px; border-radius: 10px; }
  .popular-small-poster { flex: 0 0 64px; height: 86px; }
  .popular-small-title { font-size: 13.5px; }
  .popular-small-stat { font-size: 10.5px; gap: 4px; }
  .popular-small-stat .stat-icon { width: 11px; height: 11px; }
  .latest-game-copy h3 { font-size: 13.5px; }
  .latest-game-copy > span, .latest-game-copy > time { font-size: 9.5px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .detail-cover-wrap { width: 100%; }
  .detail-cover { border-radius: 40px 8px 8px 8px; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 80px; }
  .detail-cover-wrap { width: min(72vw, 260px); }
  .detail-breadcrumb { margin-bottom: 14px; }
  .detail-copy h1 { font-size: clamp(21px, 5.8vw, 27px); }
  .detail-actions { width: 100%; }
  .detail-support-cta { width: 100%; }
  .detail-guide-cta { width: 100%; }
  .detail-view-switch { gap: 4px; }
  .detail-view-tab { min-height: 52px; padding: 10px 12px; }
  .game-overview { padding-top: 28px; padding-bottom: 40px; }
  .game-fact-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .game-fact-grid article { min-height: 90px; }
  .story-grid { padding-top: 16px; }
  .compact-release { padding: 18px; border-radius: 8px 28px 8px 8px; }
  .compact-release .source-identity > div { grid-template-columns: 1fr; }
  .source-identity > div { grid-template-columns: 1fr; gap: 10px; }
  .selected-game-row { grid-template-columns: 1fr; }
  .selected-game-row > .mono:first-child { grid-column: auto; }
  .selected-game-tags { grid-column: auto; }
  .selected-platform { justify-self: start; }
  .detail-page .detail-patcher .drop-zone { min-height: 130px; padding: 20px 14px 16px; }
  .patch-success-coffee .coffee-card-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }
  .patch-success-coffee .coffee-card-copy h4 {
    justify-content: center;
  }
  .patch-success-coffee .coffee-qr-wrap {
    margin: 0 auto;
  }
  .external-file-grid { grid-template-columns: 1fr; }
  .external-file-hash { grid-column: auto; }
  .external-download-link { padding: 16px 18px; }
  .requirements { padding-top: 40px; padding-bottom: 48px; }
}

/* Game Detail Changelog / Update History */
.game-changelog-wrapper {
  padding-top: 0;
  padding-bottom: 24px;
}
.game-changelog-card {
  margin-top: 0;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px 24px 8px 8px;
  display: grid;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.changelog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.changelog-header-text {
  display: grid;
  gap: 4px;
}
.changelog-header-text .mono {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.changelog-header-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.changelog-badge-total {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.changelog-timeline {
  display: grid;
  gap: 12px;
}
.changelog-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.changelog-item.is-latest {
  background: #ffffff;
  border-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.changelog-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.changelog-version {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  background: #111;
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.changelog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}
.changelog-tag.is-current {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.changelog-tag.is-history {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}
.changelog-date {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.changelog-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2c3036;
}
.changelog-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 8px;
  background: #fff8e1;
  color: #b76e00;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.changelog-highlight-badge .badge-icon {
  font-size: 15px;
}
.changelog-main-text {
  font-size: 14px;
  line-height: 1.6;
  color: #2c3036;
}
.update-guide-badge {
  display: inline-block;
  font-weight: 700;
  color: #d97706;
  margin-right: 4px;
}
.luma-guide-bonus {
  background: #fffdf5 !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12) !important;
}
.luma-guide-bonus .guide-card-icon {
  font-size: 26px;
}
.luma-guide-bonus strong {
  color: #b45309;
  font-size: 15px;
}
.luma-guide-bonus-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  background: #f59e0b;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.luma-guide-bonus-btn:hover {
  background: #d97706;
  color: #ffffff !important;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .support-section { grid-template-columns: 1fr; gap: 28px; }
  .support-copy > p:not(.section-label) { font-size: 15px; line-height: 1.6; }
  .support-qr-card { justify-self: center; width: min(100%, 200px); }
  .support-qr-card figcaption strong { font-size: 13px; white-space: nowrap; }
  .support-qr-card figcaption span { font-size: 11.5px; line-height: 1.45; }
  .game-changelog-card {
    padding: 18px;
    border-radius: 8px 20px 8px 8px;
  }
  .changelog-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .changelog-date {
    margin-left: 0;
    width: 100%;
  }
}

/* Cute & Cozy Coffee / PromptPay Support Cards */
.patch-success-coffee {
  background: #181715;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  padding: 18px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 16px rgba(245, 158, 11, 0.06);
  animation: fadeInCoffee 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.patch-success-coffee::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.patch-success-coffee[hidden] {
  display: none;
}
@keyframes fadeInCoffee {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.patch-success-coffee .coffee-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.patch-success-coffee .coffee-badge {
  margin-bottom: 4px;
}
.patch-success-coffee .coffee-card-copy h4 {
  font-size: 15px;
  justify-content: center;
  margin: 0 0 4px;
}
.patch-success-coffee .coffee-card-copy p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #b8b8b2;
}
.patch-success-coffee .coffee-qr-wrap {
  width: 128px;
  padding: 9px 9px 7px;
  margin: 0 auto;
}
.coffee-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.coffee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.coffee-card-copy h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.coffee-card-copy p {
  margin: 0;
  font-size: 13.5px;
  color: #b8b8b2;
  line-height: 1.6;
  max-width: 520px;
}
.coffee-qr-wrap {
  margin: 0;
  padding: 12px 12px 10px;
  background: #ffffff;
  border: 2px solid rgba(254, 243, 199, 0.95);
  border-radius: 18px;
  width: 144px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.coffee-qr-wrap:hover {
  transform: scale(1.02) rotate(-0.5deg);
}
.coffee-qr-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.coffee-qr-wrap figcaption {
  font-size: 10.5px;
  color: #4b5563;
  margin-top: 7px;
  line-height: 1.35;
  font-weight: 600;
}
.luma-coffee-card, .external-coffee-card {
  margin-top: 22px;
  background: #181715;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 20px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 16px rgba(245, 158, 11, 0.06);
}
.support-coffee-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.support-coffee-tiers span {
  font-size: 11.5px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f3f3f1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.support-coffee-tiers span:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}
@media (max-width: 680px) {
  .coffee-card-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 18px;
  }
  .coffee-card-copy p {
    margin-inline: auto;
  }
  .coffee-tiers {
    justify-content: center;
  }
  .coffee-qr-wrap {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .hero-line > span, .hero-foot, .reveal-on-scroll { opacity: 1; transform: none; }
}

/* Multi-Disc Dual Channel Layout (สำหรับเกม 2 แผ่น เช่น Shadow Hearts: Covenant) */
.multi-disc-workspace {
  margin-top: 18px;
  width: 100%;
}
.multi-disc-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  margin-bottom: 22px;
}
.multi-disc-notice .notice-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.multi-disc-notice .notice-text strong {
  display: block;
  font-size: 13.5px;
  color: #0369a1;
  margin-bottom: 2px;
}
.multi-disc-notice .notice-text span {
  font-size: 12px;
  color: #0c4a6e;
  line-height: 1.45;
}
.multi-disc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.disc-channel {
  background: #fcfcfb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.disc-channel:hover {
  border-color: #999;
}
.disc-channel-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.disc-tag {
  display: inline-block;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.disc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.disc-title-row h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.disc-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.disc-channel .drop-zone {
  margin-top: 0;
  min-height: 145px;
  padding: 20px 16px;
}
.disc-summary {
  display: grid;
  grid-template-columns: 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  border-top: none;
}
.disc-summary > div {
  padding: 6px 0;
}
.disc-summary strong {
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.4;
}
.disc-buttons {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disc-buttons .patch-button,
.disc-buttons .download-button {
  width: 100%;
}
@media (max-width: 860px) {
  .multi-disc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
