:root {
  --bg-deep: #130526;
  --bg-surface: #1e093b;
  --bg-panel: rgba(41, 14, 79, 0.78);
  --bg-card: rgba(29, 9, 58, 0.9);
  --gold: #f5c451;
  --gold-bright: #ffe189;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --border-gold: rgba(245, 196, 81, 0.28);
  --border-soft: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top center, #38116e 0%, var(--bg-deep) 58%, #0b0317 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

main,
section,
header,
footer {
  max-width: 100%;
}

/* Prevent CSS Grid children with long text/tables from expanding page width */
.hero-grid > *,
.two-col > *,
.combo-grid > *,
.download-banner > *,
.ribbon-grid > *,
.steps-row > * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  color: var(--gold-bright);
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 5, 38, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #4b148c, #240748);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.2);
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-text strong {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.brand-text small {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #d8b4fe;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--gold-bright);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.btn-download {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #ffffff;
  border-color: rgba(245, 196, 81, 0.65);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}

.btn-download:hover {
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.42);
}

.btn-admin {
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold-bright);
  border-color: rgba(245, 196, 81, 0.48);
}

.btn-admin:hover {
  background: rgba(245, 196, 81, 0.22);
}

.btn-lg {
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.96rem;
  text-align: left;
  white-space: normal;
}

.btn-lg small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px 9px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
}

.mobile-menu {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border-soft);
  background: #17062d;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-weight: 600;
  color: #e2e8f0;
  padding: 4px 0;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

/* Hero Section */
.hero-promo {
  position: relative;
  padding: 52px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.26;
  pointer-events: none;
}

.hero-glow-left {
  background: #9333ea;
  top: -120px;
  left: -140px;
}

.hero-glow-right {
  background: #10b981;
  bottom: -160px;
  right: -120px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.gold-text {
  background: linear-gradient(120deg, #ffe99d, #f5c451, #e89e14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-subtitle strong {
  color: #ffffff;
}

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

.hero-highlights span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-soft);
  color: #f1f5f9;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.apk-meta-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 4, 24, 0.65);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 8px 12px;
  max-width: 100%;
  width: 100%;
}

.apk-url-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.apk-url-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.apk-url-box code {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
}

.copy-btn {
  background: rgba(245, 196, 81, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 196, 81, 0.4);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(245, 196, 81, 0.28);
}

/* Right Stage Card */
.stage-card {
  background: linear-gradient(160deg, rgba(61, 18, 117, 0.92), rgba(22, 6, 46, 0.95));
  border: 1.5px solid var(--border-gold);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.stage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stage-tag,
.stage-mode {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
}

.stage-tag {
  background: rgba(245, 196, 81, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 196, 81, 0.4);
}

.stage-mode {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.card-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 140px;
  margin: 10px 0 16px;
  padding-top: 8px;
}

.fan-card {
  width: 74px;
  max-width: 18vw;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  margin-left: -16px;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fan-card:first-child {
  margin-left: 0;
}

.fan-card.c1 { transform: rotate(-12deg) translateY(8px); }
.fan-card.c2 { transform: rotate(-6deg) translateY(2px); }
.fan-card.c3 { transform: rotate(0deg); }
.fan-card.c4 { transform: rotate(6deg) translateY(2px); }
.fan-card.c5 { transform: rotate(12deg) translateY(8px); border: 2px solid var(--gold); }

.stage-bonus-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 3, 28, 0.68);
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.chest-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.bonus-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.06em;
}

.stage-bonus-banner strong {
  display: block;
  font-size: 1rem;
  color: var(--gold-bright);
}

.stage-bonus-banner small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stage-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.stat-tile strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.stat-tile span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Ribbon */
.ribbon-stats {
  background: rgba(28, 8, 56, 0.85);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-gold);
  padding: 18px 0;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ribbon-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.ribbon-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.ribbon-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-alt {
  background: rgba(14, 4, 29, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 34px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  color: #ffffff;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 100%;
}

.glass-panel h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.panel-note {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rummy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rummy-table th {
  text-align: left;
  padding: 10px 10px;
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold-bright);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-gold);
}

.rummy-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.rummy-table tr:last-child td {
  border-bottom: none;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 14px;
}

.check-list strong {
  display: block;
  color: #ffffff;
  font-size: 0.93rem;
  margin-bottom: 3px;
}

.check-list span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Combo Grid */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.combo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.combo-card.highlight-gold {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(245, 196, 81, 0.12);
}

.combo-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 196, 81, 0.45);
}

.combo-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.combo-card h3 {
  margin: 0;
  font-size: 1.14rem;
  color: #ffffff;
}

.combo-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mini-hand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mini-hand img {
  width: 50px;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.mini-hand img.joker-card {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.45);
}

.plus-sep {
  font-weight: 800;
  color: var(--gold);
  padding: 0 4px;
}

.combo-hint {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--gold-bright);
}

/* Settlement Grid */
.penalty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pen-box {
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
}

.pen-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pen-box strong {
  display: block;
  font-size: 1.3rem;
  margin: 2px 0;
}

.pen-box small {
  font-size: 0.74rem;
  color: #94a3b8;
}

.pen-box.win strong { color: #34d399; }
.pen-box.base strong { color: var(--gold-bright); }
.pen-box.max strong { color: #fbbf24; }
.pen-box.invalid strong { color: #f87171; }

.commission-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 15px;
}

.commission-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.commission-box h4 {
  margin: 0 0 4px;
  color: #6ee7b7;
  font-size: 0.98rem;
}

.commission-box p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Download Banner */
.download-banner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(59, 17, 114, 0.9), rgba(19, 6, 42, 0.96));
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  padding: 28px;
  align-items: center;
  max-width: 100%;
}

.download-left h2 {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
}

.download-left p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.step-pill {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
}

.step-pill > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1e073b;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-pill strong {
  display: block;
  font-size: 0.84rem;
}

.step-pill small {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.download-specs {
  background: rgba(12, 3, 24, 0.72);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px;
  max-width: 100%;
}

.download-specs h4 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.98rem;
}

.download-specs dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-specs dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.download-specs dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.download-specs dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.download-specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.download-specs dd a {
  color: #6ee7b7;
  text-decoration: underline;
}

/* FAQ */
.faq-container {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  text-align: left;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-item.open .faq-a {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-gold);
  background: #0d031c;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner strong {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--emerald-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet & Small Laptop */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-grid,
  .two-col,
  .combo-grid,
  .download-banner {
    grid-template-columns: 1fr;
  }
  .ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Phones (Portrait & Narrow Screens 320px-640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .topbar-inner {
    min-height: 62px;
    gap: 8px;
  }
  .brand {
    gap: 7px;
    overflow: hidden;
  }
  .brand-crest {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    padding: 3px;
  }
  .brand-text strong {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.08;
    max-width: 76px;
  }
  .brand-text small {
    display: none;
  }
  .hide-xs {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn {
    padding: 7px 10px;
    font-size: 0.75rem;
    border-radius: 9px;
    gap: 5px;
  }
  .header-actions .btn svg {
    width: 13px;
    height: 13px;
  }
  .hero-promo {
    padding: 28px 0 40px;
  }
  .live-pill {
    font-size: 0.66rem;
    padding: 5px 10px;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .hero-highlights span {
    font-size: 0.72rem;
    padding: 5px 9px;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .btn-lg {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
  }
  .apk-meta-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .stage-card {
    padding: 16px;
    border-radius: 18px;
  }
  .card-fan {
    height: 112px;
    margin: 6px 0 12px;
  }
  .fan-card {
    width: 54px;
    margin-left: -14px;
    border-radius: 7px;
  }
  .section {
    padding: 40px 0;
  }
  .glass-panel,
  .combo-card,
  .download-banner,
  .download-specs {
    padding: 16px;
    border-radius: 16px;
  }
  .rummy-table {
    font-size: 0.78rem;
  }
  .rummy-table th,
  .rummy-table td {
    padding: 8px 6px;
  }
  .mini-hand img {
    width: 42px;
  }
  .ribbon-grid,
  .penalty-grid {
    grid-template-columns: 1fr;
  }
  .commission-box {
    flex-direction: column;
    gap: 10px;
  }
  .download-specs dl > div {
    flex-direction: column;
    gap: 2px;
  }
  .download-specs dd {
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .brand-text strong {
    font-size: 0.68rem;
    max-width: 68px;
  }
  .header-actions .btn {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
  .mobile-menu-actions {
    grid-template-columns: 1fr;
  }
}
