:root {
  --bg: #0e1013;
  --panel: #1c1f24;
  --panel-2: #242830;
  --panel-3: #16191e;
  --text: #f5f7fa;
  --muted: #9da6b3;
  --line: #343a44;
  --line-soft: #262b33;
  --accent: #ff3b30;
  --accent-2: #ff6b35;
  --green: #36d17c;
  --yellow: #ffc247;
  --blue: #58a6ff;
  --purple: #b28cff;
  --max: 1220px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(255,59,48,.09), transparent 28rem),
    linear-gradient(180deg, #111419 0, var(--bg) 35rem);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(52,58,68,.8);
  background: rgba(14,16,19,.9);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { display: block; width: auto; height: 42px; max-width: min(235px, 42vw); object-fit: contain; }
.site-nav { display: flex; gap: 22px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.site-nav a:hover { color: var(--text); }

.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(28,31,36,.88); color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: sticky; top: 71px; z-index: 45; width: 100%; padding: 0 12px 12px; background: rgba(14,16,19,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(52,58,68,.55); }
.mobile-nav-panel { width: 100%; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(28,31,36,.98), rgba(17,20,24,.96)); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.mobile-nav-panel a { display: block; padding: 13px 14px; border-radius: 12px; font-weight: 800; color: var(--text); }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { background: rgba(255,255,255,.05); }

.hero, .section, .site-footer { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.hero { padding: 104px 0 82px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(3.6rem, 8vw, 7rem); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px #aeb6c1; }
.hero-copy { max-width: 720px; margin: 30px 0 34px; font-size: clamp(1.04rem, 2vw, 1.28rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 950; letter-spacing: .19em; color: var(--accent); }

.telemetry-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, #20242a, #111418); box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.telemetry-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,255,255,.018) 30px); }
.telemetry-top, .telemetry-row { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-size: .74rem; letter-spacing: .08em; }
.telemetry-top { color: var(--muted); }
.live-dot { color: var(--green); font-weight: 900; }
.telemetry-main { position: relative; display: grid; padding: 28px 18px 30px; }
.telemetry-main strong { font-size: 4.8rem; line-height: .85; color: var(--accent); }
.telemetry-main span { margin-top: 11px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.telemetry-row b { color: var(--green); }
.telemetry-release-link { color: var(--text); font-weight: 800; transition: color .18s ease; }
.telemetry-release-link:hover, .telemetry-release-link:focus-visible { color: var(--accent); }
.telemetry-row .muted-value { color: #69717c; }
.telemetry-downloads { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 18px 17px; color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.telemetry-downloads strong { color: var(--text); font-size: 1.2rem; letter-spacing: 0; }

.section { padding: 78px 0; border-top: 1px solid var(--line-soft); }
.section-heading { margin-bottom: 34px; }
.section-heading h2, .section h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.55rem); line-height: 1; letter-spacing: -.045em; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.split-heading > p { max-width: 510px; margin: 0; color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.dashboard-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), #171a1f); transition: transform .2s ease, border-color .2s ease; }
.dashboard-card:hover { transform: translateY(-4px); border-color: #515a67; }
.card-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #090b0d; border-bottom: 1px solid var(--line); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.card-kicker { margin: 0 0 5px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-body h3 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.12; }
.card-summary { margin: 0 0 18px; color: var(--muted); font-size: .94rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 20px; }
.meta-pill, .feature-chips span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #c5ccd5; background: rgba(255,255,255,.02); font-size: .72rem; font-weight: 750; }
.status-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: .68rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.status-latest { color: #fff; background: var(--accent); }
.status-stable { color: #08170e; background: var(--green); }
.status-beta { color: #211704; background: var(--yellow); }
.status-experimental { color: #100a20; background: var(--purple); }
.status-legacy { color: #c8ced6; border: 1px solid #606975; background: #2a2f36; }
.download-line { min-height: 24px; margin: -8px 0 12px; }
.download-stat { color: var(--muted); font-size: .78rem; font-weight: 700; }
.download-stat::before { content: "↓"; margin-right: 6px; color: var(--accent); font-weight: 950; }
.download-stat.pending { color: #727b87; }
.download-stat.pending::before { content: "•"; color: #727b87; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px; font: inherit; font-weight: 850; letter-spacing: .01em; cursor: pointer; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px rgba(255,59,48,.16); }
.button.secondary, .button.ghost { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.button.ghost { background: transparent; }
.button.disabled { border: 1px solid var(--line); color: #6f7782; background: #171a1e; cursor: not-allowed; }
.button:disabled, .button.is-pending { border: 1px solid var(--line); background: #171a1e; color: #727b87; box-shadow: none; cursor: not-allowed; }
.button.small { min-height: 40px; padding-inline: 14px; font-size: .86rem; }

.dashboard-detail { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 34px 0; }
.dashboard-detail:first-child { padding-top: 78px; }
.dashboard-detail:last-child { padding-bottom: 78px; }
.dashboard-package-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #454d59;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(28,32,38,.98), rgba(13,16,20,.99));
  box-shadow:
    0 22px 64px rgba(0,0,0,.24),
    inset 0 0 0 1px rgba(255,255,255,.025);
}
.dashboard-package-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 48%, rgba(255,107,53,0) 88%);
}
.dashboard-package-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dashboard-package-marker span { color: var(--accent); }
.dashboard-package-marker strong { color: #cdd3dc; font-size: .68rem; text-align: right; }
.detail-header { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: end; margin-bottom: 30px; }
.detail-title h2 { margin: 6px 0 14px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.detail-title p { margin: 0; max-width: 720px; color: var(--muted); }
.detail-download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.detail-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.spec { min-width: 0; padding: 13px 15px; background: #101216; }
.spec-wide { grid-column: 1 / -1; }
.spec > span:first-child { display: block; font-size: .67rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.spec strong { display: block; margin-top: 3px; font-size: .92rem; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spec-chips span { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #d5dbe3; background: #1b1f25; font-size: .68rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.game-support-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.game-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #181c21; color: #d9dee5; font-size: .69rem; }
.game-pill b { font-size: .69rem; }
.muted-inline { display: inline-block !important; margin-top: 6px; color: var(--muted) !important; font-size: .78rem !important; letter-spacing: 0 !important; text-transform: none !important; }

.page-set-panel { margin: 28px 0 34px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #171a20, #0f1216); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.page-set-header { display: flex; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: 16px; }
.page-set-header h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.page-set-header p { max-width: 560px; margin: 0; color: var(--muted); font-size: .88rem; }
.is-grouped-set { border-color: #414855; box-shadow: 0 16px 48px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.02); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.gallery-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #080a0c; color: var(--text); font: inherit; text-align: left; cursor: zoom-in; }
.gallery-page-badge { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(12,15,19,.9); color: #eef2f7; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #080a0c; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-caption { padding: 13px 14px 15px; }
.gallery-caption strong { display: block; color: var(--text); font-size: .9rem; }
.gallery-caption span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }

.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.info-panel { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-3); }
.info-panel h3 { margin: 0 0 13px; font-size: 1.2rem; }
.info-panel p { margin: 0; color: var(--muted); }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #20242a; font-size: .78rem; font-weight: 750; color: #d7dce3; }
.preview-note { margin-top: 17px !important; padding-top: 15px; border-top: 1px solid var(--line-soft); font-size: .82rem; }
.release-list { display: grid; gap: 8px; margin-top: 14px; }
.release-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.release-item:last-child { border-bottom: 0; }
.release-item strong { font-size: .9rem; }
.release-statuses { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.release-statuses .status-badge { min-height: 21px; padding-inline: 7px; font-size: .58rem; }

.updates-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.update-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-3); }
.update-card time { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.update-card h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.update-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compat-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.compat-table th, .compat-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compat-table th { color: var(--muted); background: #16191d; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.compat-table tr:last-child td { border-bottom: 0; }
.compat-table td { font-size: .9rem; }
.compat-tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.compat-verified { color: #092315; background: var(--green); }
.compat-partial { color: #261a03; background: var(--yellow); }
.compat-tested { color: #071925; background: #55aaff; }
.compat-expected { color: #d5dbe3; border: 1px solid #596473; background: #222832; }
.compat-unverified { color: #aeb5be; background: #2b3037; }
.compat-game-row { margin-bottom: 10px; }
.compat-game-row:last-child { margin-bottom: 0; }
.compat-game-row strong { margin: 0 4px 0 7px; }
.compat-game-row small { display: inline-block; margin: 4px 0 0 0; color: var(--muted); line-height: 1.35; }
.status-legend { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 22px; }
.legend-item { display: flex; align-items: center; gap: 8px; max-width: 330px; color: var(--muted); font-size: .82rem; }

.app-promo, .support-section { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.app-promo-brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.app-icon { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 30px rgba(255,59,48,.12); }
.app-copy { max-width: 760px; }
.app-promo p, .support-section p { color: var(--muted); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.google-play { background: #fff; color: #111; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0 50px; border-top: 1px solid var(--line-soft); color: #757d88; font-size: .86rem; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: #b9c0ca; font-size: .75rem; letter-spacing: .1em; }

.image-modal { width: min(1200px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #090b0d; color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.image-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.image-modal img { width: 100%; max-height: 78vh; object-fit: contain; }
.image-modal p { margin: 0; padding: 13px 48px 16px 16px; color: var(--muted); }
.modal-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #424952; border-radius: 50%; background: rgba(10,12,15,.9); color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 980px) {
  .hero-grid, .detail-header, .detail-grid { grid-template-columns: 1fr; }
  .dashboard-grid, .updates-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-set-header { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { aspect-ratio: auto; max-height: 560px; }
}
@media (max-width: 720px) {
  .site-header { padding-inline: 12px; }
  .brand-logo { height: 34px; max-width: 150px; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav[hidden] { display: none !important; }
  .hero, .section, .dashboard-detail, .site-footer { width: calc(100% - 20px); }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .dashboard-detail { padding: 14px 0; }
  .dashboard-detail:first-child { padding-top: 46px; }
  .dashboard-detail:last-child { padding-bottom: 56px; }
  .dashboard-package-shell { padding: 16px; border-radius: 22px; border-color: #4b5562; }
  .dashboard-package-marker { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 24px; padding-bottom: 12px; }
  .dashboard-package-marker strong { text-align: left; }
  .hero h1 { font-size: clamp(2.9rem, 16vw, 5.2rem); }
  .hero-copy { margin: 24px 0 28px; font-size: 1rem; }
  .dashboard-grid, .updates-list { grid-template-columns: 1fr; }
  .split-heading, .app-promo, .support-section, .site-footer, .page-set-header { align-items: flex-start; flex-direction: column; }
  .card-actions { grid-template-columns: 1fr; }
  .detail-header, .detail-grid { gap: 18px; }
  .detail-title h2 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .detail-download-row { display: grid; grid-template-columns: 1fr; align-items: flex-start; }
  .detail-specs { grid-template-columns: 1fr; }
  .spec-wide { grid-column: auto; }
  .app-promo-brand { align-items: flex-start; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .button, .button.small { width: 100%; }
  .page-set-panel { margin: 24px 0 28px; padding: 13px; border-radius: 16px; border-color: #3d4652; background: linear-gradient(145deg, #15191e, #0b0e12); }
  .gallery-item { border-radius: 12px; }
  .gallery-caption { padding: 12px; }
  .info-panel { padding: 20px; }
}

.legend-block { margin-top: 24px; }
.legend-block + .legend-block { margin-top: 18px; }
.mini-eyebrow { margin-bottom: 10px !important; font-size: .66rem; }


/* Step 4 — Community Feedback & Comments */
.community-overview { padding-top: 72px; }
.community-overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 26px 0 22px; }
.community-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-3); }
.community-card > span { display: inline-flex; margin-bottom: 26px; color: var(--accent); font-size: .72rem; font-weight: 950; letter-spacing: .12em; }
.community-card h3 { margin: 0 0 8px; font-size: 1rem; }
.community-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.dashboard-community-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(255,59,48,.06), #13161a 45%); }
.dashboard-community-panel h3 { margin: 0 0 5px; font-size: 1.15rem; }
.dashboard-community-panel p { margin: 0; max-width: 620px; color: var(--muted); font-size: .86rem; }
.dashboard-community-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; }
.dashboard-community-actions .button { min-height: 40px; font-size: .78rem; }
.community-modal { width: min(980px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #0d0f12; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.72); }
.community-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.community-modal-head { padding: 28px 28px 10px; }
.community-modal-head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.community-modal-head > p:last-child { margin: 8px 0 0; color: var(--muted); }
.community-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 28px 18px; border-bottom: 1px solid var(--line-soft); }
.giscus-shell { min-height: 230px; padding: 18px 28px 30px; }
.giscus, .giscus-frame { width: 100%; }
.community-pending { padding: 22px; border: 1px dashed #46505d; border-radius: 12px; background: #15191e; }
.community-pending strong { display: block; margin-bottom: 6px; }
.community-pending p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 980px) {
  .community-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-community-panel { align-items: flex-start; flex-direction: column; }
  .dashboard-community-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 720px) {
  .community-overview-grid { grid-template-columns: 1fr; }
  .dashboard-community-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .community-modal-head, .community-actions, .giscus-shell { padding-left: 18px; padding-right: 18px; }
}


/* Step 4.2 — Community UX polish + racing corner treatment + Back to Top */
body { position: relative; }
main, .site-footer { position: relative; z-index: 1; }

.race-corner {
  position: absolute;
  z-index: 0;
  width: clamp(312px, 39vw, 600px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  opacity: 1;
  background:
    conic-gradient(from 90deg,
      rgba(255,255,255,.18) 0 25%,
      rgba(255,59,48,.15) 0 50%,
      rgba(255,255,255,.18) 0 75%,
      rgba(255,59,48,.15) 0) 0 0 / 44px 44px;
  filter: saturate(.9);
}
.race-corner-top-left {
  top: 60px;
  left: -86px;
  transform: rotate(-11deg);
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 0 18%, rgba(0,0,0,.86) 32%, rgba(0,0,0,.35) 53%, transparent 75%);
  mask-image: radial-gradient(circle at 0 0, #000 0 18%, rgba(0,0,0,.86) 32%, rgba(0,0,0,.35) 53%, transparent 75%);
}
.race-corner-bottom-right {
  right: -52px;
  bottom: 0;
  transform: rotate(-11deg);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0 18%, rgba(0,0,0,.86) 32%, rgba(0,0,0,.35) 53%, transparent 75%);
  mask-image: radial-gradient(circle at 100% 100%, #000 0 18%, rgba(0,0,0,.86) 32%, rgba(0,0,0,.35) 53%, transparent 75%);
}

.quick-comment-guide {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(88,166,255,.22);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: rgba(88,166,255,.06);
}
.quick-comment-guide strong { color: var(--text); font-size: .83rem; }
.quick-comment-guide span { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 12px 34px rgba(255,59,48,.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, filter .18s ease;
}
.back-to-top span { font-size: 1rem; line-height: 1; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.08); }
.back-to-top:focus-visible { outline: 3px solid rgba(88,166,255,.48); outline-offset: 3px; }

@media (max-width: 720px) {
  .race-corner { width: 338px; opacity: .67; background-size: 34px 34px; }
  .race-corner-top-left { top: 56px; left: -128px; }
  .race-corner-bottom-right { right: -100px; }
  .back-to-top {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
  }
  .back-to-top b { display: none; }
  .back-to-top span { font-size: 1.2rem; }
}


/* Step 5.6 — MOZA hardware compatibility research */
.hardware-support-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.hardware-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #181c21; color: #d9dee5; font-size: .69rem; }
.hardware-pill b { font-size: .69rem; }
.hardware-status { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: .59rem; font-weight: 950; letter-spacing: .04em; white-space: nowrap; }
.hardware-native { color: #071d11; background: var(--green); }
.hardware-shared { color: #071925; background: #66b3ff; }
.hardware-candidate, .hardware-candidate-resolution { color: #d2d8e1; border: 1px solid #596473; background: #252b33; }
.hardware-candidate-block { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hardware-candidate-block .muted-inline { margin-top: 0; }
@media (max-width: 720px) {
  .hardware-support-list { align-items: stretch; flex-direction: column; }
  .hardware-pill { width: 100%; border-radius: 12px; }
  .hardware-status { flex: 0 0 auto; }
}

/* Step 5.11 — Support Bugzila Labs with embedded Ko-fi + Thailand PromptPay */
.nav-support-link {
  color: #fff !important;
  padding: 7px 12px;
  border: 1px solid rgba(255,59,48,.55);
  border-radius: 999px;
  background: rgba(255,59,48,.08);
}
.nav-support-link:hover { background: rgba(255,59,48,.16) !important; border-color: rgba(255,59,48,.85); }
.support-hero-button {
  border: 1px solid rgba(255,59,48,.7);
  background: rgba(255,59,48,.08);
  color: #fff;
}
.support-hero-button:hover { background: rgba(255,59,48,.16); }
.support-donation-section { padding-top: 56px; padding-bottom: 70px; }
.support-donation-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #4a515d;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,59,48,.12), transparent 22rem),
    linear-gradient(145deg, rgba(28,32,38,.98), rgba(13,16,20,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.025);
}
.support-donation-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2) 55%, transparent 95%);
}
.support-donation-copy h2 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 4.5rem); line-height: .95; letter-spacing: -.05em; }
.support-donation-copy > p:not(.eyebrow):not(.support-note) { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 1rem; }
.support-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.support-facts span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #d9dfe7;
  font-size: .72rem;
  font-weight: 850;
}
.support-note { margin: 18px 0 0; color: #c7ced7; font-size: .8rem; }
.support-payment-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; }
.support-payment-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12,15,19,.7);
}
.support-payment-card .button { grid-column: 1 / -1; width: 100%; }
.support-payment-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,59,48,.48);
  border-radius: 12px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.support-payment-kicker { margin: 0 0 2px !important; color: var(--accent) !important; font-size: .64rem !important; font-weight: 950; letter-spacing: .14em; }
.support-payment-card h3 { margin: 0; font-size: 1.45rem; }
.support-payment-card p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.support-link.is-pending { border: 1px solid var(--line); background: #171a1e; color: #737c88; box-shadow: none; cursor: not-allowed; }

.support-kofi-frame-wrap {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 712px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.support-kofi-embed {
  display: block;
  width: 100%;
  height: 712px;
  border: 0;
  background: #fff;
}
.support-thai-copy {
  margin-top: 9px !important;
  color: #d7dde5 !important;
  line-height: 1.65;
}
.support-promptpay-link {
  grid-column: 1 / -1;
  display: block;
  width: min(100%, 430px);
  margin: 2px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.support-promptpay-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,59,48,.65);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.support-promptpay-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.support-provider-note {
  grid-column: 1 / -1;
  margin-top: -4px !important;
  color: #8e97a3 !important;
  font-size: .72rem !important;
}

@media (max-width: 980px) {
  .support-donation-shell { grid-template-columns: 1fr; }
  .support-payment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mobile-nav-panel .nav-support-link { margin-bottom: 4px; border-color: rgba(255,59,48,.55); background: rgba(255,59,48,.09); }
  .support-donation-section { padding-top: 34px; padding-bottom: 50px; }
  .support-donation-shell { padding: 20px 16px; border-radius: 20px; }
  .support-donation-copy h2 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .support-payment-card { padding: 16px; }
}

/* Step 5.12 — Example usage gallery, important tags, and setup guide */
.examples-section { padding-top: 72px; }
.important-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.important-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(88,166,255,.28);
  border-radius: 999px;
  background: rgba(88,166,255,.08);
  color: #dfe8f3;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.example-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(28,31,36,.98), rgba(14,17,21,.99));
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.example-card-media {
  display: block;
  border-bottom: 1px solid var(--line);
  background: #08090c;
}
.example-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.example-card-body {
  padding: 18px 18px 20px;
}
.example-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.example-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.15;
}
.example-card-body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.usage-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.usage-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(19,22,27,.98), rgba(13,16,20,.98));
}
.usage-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,59,48,.45);
  border-radius: 12px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.usage-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.15;
}
.usage-card ol {
  margin: 0;
  padding-left: 18px;
  color: #dde4ec;
}
.usage-card li + li { margin-top: 8px; }
.usage-card p {
  margin: 0 0 12px;
  color: #dde4ec;
  font-size: .93rem;
}
.usage-card code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  font-size: .86em;
}
.usage-note {
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: .8rem !important;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .examples-grid, .usage-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .examples-section { padding-top: 52px; }
  .examples-grid, .usage-guide-grid { grid-template-columns: 1fr; }
  .example-card-body, .usage-card { padding: 16px; }
}

/* Step 5.13 — CM2 V2RQP.P3.003 inspiration credit */
.inspiration-credit {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #3f4650;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,59,48,.07), rgba(255,255,255,.015));
}
.inspiration-credit > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .16em;
}
.inspiration-credit > strong {
  display: block;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.35;
}
.inspiration-credit > p {
  margin-top: 5px !important;
  color: var(--muted) !important;
  font-size: .78rem;
  line-height: 1.5;
}

/* Step 5.14 — add release badge style for import-test dashboards */
.status-ready-for-import-test { color: #071925; background: #66b3ff; }

/* Step 5.17 — V3Practice P3.017 bug-fix update badge */
.status-bug-fix-update { color: #241400; background: #ff9f43; }

/* Step 5.18 — dashboard page-switch guide image */
.usage-guide-image-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090b0d;
  color: var(--muted);
  cursor: zoom-in;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease;
}
.usage-guide-image-button:hover,
.usage-guide-image-button:focus-visible {
  border-color: rgba(255,59,48,.72);
  transform: translateY(-1px);
}
.usage-guide-image-button:focus-visible {
  outline: 3px solid rgba(88,166,255,.42);
  outline-offset: 3px;
}
.usage-guide-image-button img {
  width: 100%;
  height: auto;
  display: block;
}
.usage-guide-image-button span {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}
