@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap');

:root {
  --bg-deep: #0a0a0b;
  --bg-card: #111113;
  --bg-elevated: #17171b;
  --border-dark: #2a2a2e;
  --amber: #ffb020;
  --amber-dark: #ff9f1c;
  --purple: #7c5cff;
  --purple-light: #a855f7;
  --pink: #ec4899;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* OBS Standalone Fullscreen Mode */
body.obs-mode {
  background: transparent;
  overflow: hidden;
}
body.obs-mode .site-wrapper {
  display: none !important;
}
body.obs-mode #studioModal {
  display: flex !important;
  background: transparent !important;
  padding: 0 !important;
}
body.obs-mode .studio-modal-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
}
body.obs-mode .studio-right-controls,
body.obs-mode .studio-modal-header {
  display: none !important;
}

/* PlayTok.fan Sticky Navbar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 42, 46, 0.7);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffb020, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(255, 176, 32, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .main-name {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1;
}

.brand-text .sub-badge {
  display: inline-block;
  margin-top: 2px;
  background: #ffb020;
  color: #0a0a0b;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.8px;
  width: fit-content;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber);
}

.nav-links a.active {
  border-bottom: 2px solid var(--amber);
  padding-bottom: 4px;
}

.badge-new {
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* Hero Section */
.hero-sec {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 176, 32, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 78% 75%, rgba(168, 85, 247, 0.14) 0%, transparent 48%),
    var(--bg-deep);
}

.hero-sec h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #fff;
  max-width: 920px;
  margin: 0 auto 22px;
}

.hero-gradient {
  background: linear-gradient(90deg, #ffb020 0%, #f97316 45%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-sub strong {
  color: #fff;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-amber {
  background: linear-gradient(90deg, #ffb020, #ff9f1c);
  color: #0a0a0b;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(255, 176, 32, 0.25);
  transition: all 0.2s;
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 176, 32, 0.4);
}

.btn-dark {
  background: #141417;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-dark:hover {
  border-color: var(--amber);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat-item .num {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--amber);
}

.stat-item .lbl {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* PlayPilot AI Featured Banner */
.ai-banner {
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 64px;
  background:
    linear-gradient(#111113, #111113) padding-box,
    linear-gradient(135deg, #7c5cff, #a855f7 55%, #ffb020) border-box;
  border: 2px solid transparent;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.14);
}

@media (max-width: 960px) {
  .ai-banner {
    grid-template-columns: 1fr;
  }
}

.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Games Store Section (#games) */
.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.5;
}

/* Filter & Search Bar */
.store-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: #fff;
  padding: 16px 20px 16px 46px;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--amber);
}

.search-box .s-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover {
  border-color: rgba(255, 176, 32, 0.5);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(90deg, #ffb020, #ff9f1c);
  color: #0a0a0b;
  border-color: transparent;
  font-weight: 800;
}

/* PlayTok.fan 2-Column Store Grid */
.games-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 920px) {
  .games-store-grid {
    grid-template-columns: 1fr;
  }
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 32, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.card-visual {
  position: relative;
  height: 245px;
  overflow: hidden;
  cursor: pointer;
}

.card-art-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.store-card:hover .card-art-svg {
  transform: scale(1.06);
}

/* Floating Glass Badges on Card Visual */
.badge-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 176, 32, 0.45);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 99px;
}

.badges-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.glass-pill {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ribbon-bottom-left {
  position: absolute;
  bottom: 14px;
  left: 14px;
  transform: rotate(-2.5deg);
  background: linear-gradient(135deg, #f59e0b, #ec4899 60%, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

.play-hover-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}

.card-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--amber);
  background: rgba(255, 176, 32, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.card-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-cta {
  background: linear-gradient(90deg, #ffb020, #ff9f1c);
  color: #0a0a0b;
  font-weight: 900;
  font-size: 13.5px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s;
}

.btn-card-cta:hover {
  filter: brightness(1.1);
}

.btn-card-play {
  background: #1a1a20;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #32323a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-card-play:hover {
  border-color: #00f2fe;
  color: #00f2fe;
}

/* 9:16 Interactive Live Game Modal / Studio */
.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.studio-modal-backdrop.open {
  display: flex;
}

.studio-modal-box {
  background: #111115;
  border: 1px solid #2e2e38;
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.studio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #26262e;
}

.studio-modal-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .studio-modal-grid {
    grid-template-columns: 1fr;
  }
}

.phone-frame {
  width: 380px;
  height: 640px;
  border-radius: 26px;
  border: 4px solid #2b2b36;
  background: #05060a;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

#liveGameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gift-trigger-btn {
  background: #18181f;
  border: 1px solid #2d2d39;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gift-trigger-btn:hover {
  border-color: var(--amber);
  background: rgba(255, 176, 32, 0.12);
}

/* Pricing Grid */
.pricing-sec {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 22px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.popular {
  border: 2px solid var(--amber);
  box-shadow: 0 0 36px rgba(255, 176, 32, 0.16);
}

.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin: 14px 0;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}
