/* ===================================================================
   RAJA GAMES - Unique White-Background Mobile Marketing Stylesheet
   Theme: Crisp Pure White, Royal Maroon (#780c19) & Champagne Gold
=================================================================== */

:root {
  --bg-outer: #f1f5f9;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-cream: #fffbeb;
  --bg-rose-soft: #fff1f2;

  --maroon: #780c19;
  --maroon-dark: #4f0610;
  --maroon-grad: linear-gradient(135deg, #991222 0%, #6d0b17 100%);
  --gold: #c98f1d;
  --gold-soft: #fef3c7;
  --emerald: #0d9488;
  --emerald-soft: #ecfdf5;

  --ink: #0f172a;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;

  --app-width: 480px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-outer);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

/* ===================================================================
   CENTERED WHITE MOBILE VIEW SHELL
=================================================================== */
.raja-mobile-shell {
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-white);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  padding-bottom: 86px;
  position: relative;
}

/* TOP ANNOUNCEMENT RIBBON */
.promo-ribbon {
  background: var(--maroon-grad);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: 0.2px;
}

.promo-ribbon span {
  color: #fde68a;
}

/* STICKY WHITE APP HEADER */
.raja-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 64px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.raja-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

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

.raja-brand-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--maroon);
  letter-spacing: 0.3px;
}

.raja-brand-sub {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-weight: 600;
}

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

.pill-cta-sm {
  padding: 8px 13px;
  border-radius: var(--radius-full);
  background: var(--maroon-grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(120, 12, 25, 0.24);
}

.pill-cta-sm:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SLIDE-DOWN DRAWER */
.raja-drawer {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 2px solid var(--maroon);
  padding: 10px 14px 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 890;
  box-shadow: var(--shadow-md);
}

.raja-drawer.open {
  display: flex;
}

.raja-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.raja-drawer a.active,
.raja-drawer a:hover {
  background: var(--bg-rose-soft);
  color: var(--maroon);
}

/* HORIZONTAL PILL SUB-NAV (APP STORE / MARKETING STYLE) */
.quick-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 4px;
  scrollbar-width: none;
}

.quick-pills-bar::-webkit-scrollbar {
  display: none;
}

.quick-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--bg-white);
  color: var(--ink-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-pill.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

/* MAIN AREA */
.raja-main {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* APP STORE HERO CARD (WHITE SURFACE) */
.app-hero-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: var(--shadow-md);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.app-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(120, 12, 25, 0.2);
  flex-shrink: 0;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald-soft);
  color: #047857;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
}

.app-title {
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--ink);
}

.app-title span {
  color: var(--maroon);
}

.app-lead {
  font-size: 0.87rem;
  color: var(--ink-body);
  margin-bottom: 13px;
}

/* METRIC STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 13px;
}

.metric-cell {
  text-align: center;
  border-right: 1px solid var(--line);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-num {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--maroon);
}

.metric-lbl {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* INVITE CODE COPY BAR */
.invite-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 12px;
}

.invite-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.invite-meta small {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.invite-meta strong {
  font-size: 0.92rem;
  color: var(--maroon);
  letter-spacing: 0.6px;
}

.copy-code-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--maroon);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

/* MARKETING BUTTONS */
.btn-royal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--maroon-grad);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(120, 12, 25, 0.28);
}

.btn-royal:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 12, 25, 0.36);
}

.btn-royal-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--maroon);
  background: var(--bg-white);
  color: var(--maroon);
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 9px;
}

/* ===================================================================
   INTERACTIVE MEDIA SHOWCASE (WHITE CARD + PHONE MOCKUP FOR PORTRAIT)
=================================================================== */
.gallery-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 1.04rem;
  font-weight: 900;
  color: var(--ink);
}

.pill-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--bg-rose-soft);
  color: var(--maroon);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.g-tab {
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-body);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.g-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.gallery-stage {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
}

.g-panel {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.g-panel.active {
  display: block;
}

.g-panel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.g-panel.portrait-frame {
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  text-align: center;
}

.g-panel.portrait-frame img {
  max-width: 240px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  border: 1px solid var(--line);
}

.g-caption {
  padding: 10px 12px;
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-body);
  font-weight: 600;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TRUST PILLARS GRID */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trust-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 10px;
}

.trust-ico {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.trust-item h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.trust-item p {
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* WHITE CONTENT CARDS */
.content-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--maroon);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
}

.content-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 6px;
}

.content-card p {
  font-size: 0.88rem;
  color: var(--ink-body);
  margin-bottom: 10px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul,
.content-card ol {
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-body);
  font-size: 0.87rem;
}

.content-card li {
  margin-bottom: 6px;
}

/* CLEAN TABLE */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.info-table tr {
  border-bottom: 1px solid var(--line-soft);
}

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

.info-table td {
  padding: 9px 4px;
}

.info-table td:first-child {
  color: var(--ink-muted);
  font-weight: 600;
}

.info-table td:last-child {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.info-table .accent {
  color: var(--maroon);
}

/* STEP TIMELINE (CLEAN WHITE) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-box h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.step-box p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* FAQ ACCORDION (WHITE) */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}

.faq-row.active {
  background: var(--bg-white);
  border-color: var(--maroon);
}

.faq-trigger {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-sign {
  color: var(--maroon);
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-row.active .faq-sign {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  font-size: 0.83rem;
  color: var(--ink-body);
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-row.active .faq-content {
  max-height: 280px;
  padding: 0 12px 12px;
}

/* PAGE LINKS LIST */
.page-nav-list {
  list-style: none;
  padding-left: 0 !important;
}

.page-nav-list li {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
}

.page-nav-list li:last-child {
  border-bottom: none;
}

.page-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.page-nav-list a:hover {
  color: var(--maroon);
}

/* FOOTER */
.raja-footer {
  margin-top: auto;
  padding: 18px 14px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid var(--line);
  color: var(--ink-body);
}

.footer-links a:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

/* STICKY WHITE BOTTOM NAVIGATION */
.raja-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 950;
  padding: 0 4px;
}

.b-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.b-tab.active,
.b-tab:hover {
  color: var(--maroon);
}

.b-tab .b-ico {
  font-size: 1.1rem;
  line-height: 1;
}

.b-tab-center {
  position: relative;
  top: -12px;
}

.b-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--maroon-grad);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-white);
  box-shadow: 0 6px 16px rgba(120, 12, 25, 0.35);
}

.b-tab-center span:last-child {
  color: var(--maroon);
  font-weight: 800;
}
