:root {
  --bg: #111113;
  --bg-elevated: #161618;
  --text: #ece8ea;
  --text-body: #a8a2a6;
  --text-soft: #7d777c;
  --accent: #c97a9a;
  --accent-hover: #d891ae;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --android-color: #6fbf87;
  --ios-color: #c97a9a;
  --radius: 10px;
  --radius-pill: 9999px;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Legacy aliases used across pages */
  --bg-dark: var(--bg);
  --bg-surface: var(--bg);
  --bg-card: transparent;
  --bg-card-hover: transparent;
  --accent-pink: var(--accent);
  --accent-emerald: var(--accent);
  --accent-mint: var(--accent-hover);
  --accent-cyan: var(--accent);
  --text-light: var(--text);
  --text-muted: var(--text-body);
  --text-dim: var(--text-soft);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

h1, h2, h3, h4,
.brand-title-text,
.btn-cta,
.store-app-name {
  font-family: var(--font-display);
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

@media (min-width: 768px) {
  h1 { font-size: 2.45rem; }
}

h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 2.75rem 0 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.25rem 0 0.4rem;
}

p {
  margin: 0 0 1.1rem;
}

ul, ol {
  margin: 0 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.brand-terminal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-tag-apk {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 0.4rem;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  color: var(--text-soft) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.7rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: transparent;
  text-decoration: none;
}

/* Buttons only */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 650;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-cta-emerald,
.btn-cta-pink {
  background: var(--accent);
  color: #1a1014 !important;
  border-color: var(--accent);
}

.btn-cta-emerald:hover,
.btn-cta-pink:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #1a1014 !important;
}

.btn-cta-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--line-strong);
}

.btn-cta-ghost:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text) !important;
}

.btn-cta-lg {
  padding: 0.78rem 1.5rem;
  font-size: 1rem;
}

/* Store hero */
.store-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.store-listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .store-listing {
    grid-template-columns: 96px 1fr;
    gap: 1.5rem;
  }
}

.store-icon-frame {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .store-icon-frame {
    width: 96px;
    height: 96px;
    margin: 0;
  }
}

.store-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-listing-body {
  text-align: center;
}

@media (min-width: 768px) {
  .store-listing-body {
    text-align: left;
  }
}

.store-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  text-transform: none;
}

.dot-green {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.store-app-name {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.store-developer {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.store-developer strong {
  color: var(--text-body);
  font-weight: 600;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

@media (min-width: 768px) {
  .rating-row {
    justify-content: flex-start;
  }
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
  color: var(--text-soft);
}

.rating-chip i {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.rating-chip.pink i {
  color: var(--accent);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
  .store-actions {
    justify-content: flex-start;
  }
}

.info-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  justify-content: center;
}

@media (min-width: 768px) {
  .info-chip-strip {
    justify-content: flex-start;
  }
}

.info-chip {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
}

.info-chip .chip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.1rem;
  font-family: var(--font-body);
}

.info-chip .chip-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}

/* Article body: open, no outer box */
.repo-content-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem 0 3rem;
  margin: 0 auto;
  box-shadow: none;
  max-width: 760px;
}

@media (min-width: 992px) {
  .repo-content-box {
    max-width: 820px;
  }
}

.content-img {
  margin: 1.75rem 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

.content-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.content-img figcaption {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 0.7rem 0 0;
  background: transparent;
  border-top: none;
  line-height: 1.5;
}

.change-list,
.safety-list {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--text-body);
}

.change-list li,
.safety-list li {
  margin-bottom: 0.45rem;
}

/* Spec rows: hairlines only */
.spec-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}

.deck-meta-list,
.spec-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.deck-meta-list li,
.spec-panel-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-body);
}

.deck-meta-list li:last-child,
.spec-panel-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.deck-meta-list li strong,
.spec-panel-list li strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 0.75rem 0 1.25rem;
}

@media (min-width: 768px) {
  .req-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.req-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.req-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.req-card .deck-meta-list {
  margin: 0;
}

/* Feature links: divider rows */
.feature-rows {
  display: flex;
  flex-direction: column;
  margin: 0.75rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.05rem 0;
  text-decoration: none !important;
  color: inherit;
  transition: none;
}

.feature-row:hover {
  background: transparent;
  transform: none;
  color: inherit;
}

.feature-row:hover .feature-row-body h3 {
  color: var(--accent-hover);
}

.feature-row-icon {
  display: none;
}

.feature-row-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  color: var(--text);
}

.feature-row-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.feature-row-arrow {
  color: var(--text-soft);
  font-size: 1rem;
  margin-top: 0.15rem;
}

/* Games: plain list, no cards */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 0;
}

@media (min-width: 700px) {
  .game-card:nth-child(odd) {
    padding-right: 1.25rem;
  }

  .game-card:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
  }
}

.game-card:hover {
  background: transparent;
  border-color: var(--line);
}

.game-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--text);
}

.game-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* Steps: numbered text, no cards */
.installer-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--line);
  counter-reset: step;
}

@media (min-width: 768px) {
  .installer-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card-tech {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 0;
  counter-increment: step;
}

@media (min-width: 768px) {
  .step-card-tech {
    border-bottom: none;
    padding: 1.1rem 1.25rem 1.1rem 0;
    border-right: 1px solid var(--line);
  }

  .step-card-tech:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.step-card-tech:hover {
  transform: none;
  border-color: var(--line);
}

.step-tag-pill {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  background: none;
  border: none;
  padding: 0;
}

.step-card-tech h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: var(--text);
}

.step-card-tech p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* CTA band: divider + text, not a neon box */
.terminal-cta-box {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  margin: 2.25rem 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .terminal-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.terminal-cta-box h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.terminal-cta-box p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* Platform cards on download page: quiet bordered panels only where needed for pairing actions */
.platform-deck-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .platform-deck-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.platform-deck-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .platform-deck-card {
    border-bottom: none;
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-right: 1px solid var(--line);
  }

  .platform-deck-card:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 1.5rem;
  }
}

.platform-deck-card.android,
.platform-deck-card.ios {
  border-top: none;
}

.deck-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.deck-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: transparent !important;
}

.platform-deck-card.android .deck-icon {
  color: var(--android-color);
}

.platform-deck-card.ios .deck-icon {
  color: var(--ios-color);
}

.deck-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.deck-info span {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* Diagnostic / FAQ: open stacks */
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1rem 0 1.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .diagnostic-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.diagnostic-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 0;
  position: static;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diagnostic-card::before {
  display: none;
}

.diagnostic-card:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  border-color: var(--line);
}

@media (min-width: 768px) {
  .diagnostic-card:nth-child(odd) {
    padding-right: 1.25rem;
  }

  .diagnostic-card:nth-child(even) {
    padding-left: 1.25rem;
  }
}

.diagnostic-icon {
  display: none;
}

.diagnostic-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.diagnostic-card p {
  color: var(--text-body);
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
}

.diagnostic-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tech-faq-stack {
  display: flex;
  flex-direction: column;
  margin: 0.75rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.tech-faq-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 0;
}

.tech-faq-card:hover {
  background: transparent;
  border-color: var(--line);
}

.tech-faq-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--text);
  display: block;
}

.tech-faq-card h3 i {
  display: none;
}

.tech-faq-card p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* Inner pages */
.inner-repo-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.repo-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.repo-crumb a {
  color: var(--text-soft);
}

.repo-crumb a:hover {
  color: var(--accent);
}

.hero-repo {
  padding: 2.25rem 0 1.5rem;
}

.terminal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.hero-lead-text {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.spec-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spec-strip i {
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  background: #0c0c0e;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.45rem;
}

.footer-nav-list a {
  color: var(--text-soft);
}

.footer-nav-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-col-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.footer-bottom-bar {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Mobile sticky: flat bar */
.store-sticky-get {
  display: none;
}

@media (max-width: 767.98px) {
  .store-sticky-get {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(17, 17, 19, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }

  .store-sticky-get .btn-cta {
    flex: 1;
    min-height: 44px;
  }

  body.has-sticky-get {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}
