/* ============================================
   Polar Spin Arcade — Candy Pop Stylesheet
   Saturated pastels, gradient-heavy, bubbly shapes
   ============================================ */

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

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
}

/* --- Design Tokens --- */
:root {
  --primary: #A855F7;
  --primary-dark: #7C3AED;
  --primary-light: #D8B4FE;
  --accent: #F472B6;
  --accent-dark: #EC4899;
  --bg: #FFF5F7;
  --surface: #FFFFFF;
  --text: #1E1B4B;
  --text-muted: #6B7280;
  --font: 'Nunito', sans-serif;
  --max-w: 1200px;
  --radius-card: 20px;
  --radius-btn: 999px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
  --shadow-hover: 0 12px 40px rgba(168, 85, 247, 0.25);
  --shadow-accent: 0 8px 30px rgba(244, 114, 182, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
}

/* --- Utility Classes --- */
.ps-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.ps-section {
  padding: var(--sp-10) 0;
  position: relative;
}

.ps-heading {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.ps-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.ps-heading p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.ps-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(244, 114, 182, 0.15));
  color: var(--primary-dark);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.ps-gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll Reveal --- */
.ps-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.ps-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.ps-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

.ps-btn-secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.35);
}

.ps-btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.5);
}

.ps-btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

.ps-btn-outline:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.ps-btn-glow {
  background: linear-gradient(135deg, var(--accent), #C084FC, var(--primary));
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(244, 114, 182, 0.15);
  animation: glowShift 4s ease-in-out infinite;
}

@keyframes glowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ps-btn-glow:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 80px rgba(244, 114, 182, 0.25);
  transform: translateY(-3px) scale(1.03);
}

.ps-btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* --- Header --- */
.ps-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: var(--sp-2) 0;
  background: rgba(255, 245, 247, 0.5);
}

.ps-header.ps-header-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  box-shadow: 0 4px 30px rgba(168, 85, 247, 0.08);
}

.ps-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  position: relative;
}

.ps-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  order: 2;
  margin: 0 var(--sp-6);
  flex-shrink: 0;
}

.ps-logo-icon {
  font-size: 1.75rem;
}

.ps-nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.ps-nav-desktop.ps-nav-left {
  order: 1;
  justify-content: flex-end;
}

.ps-nav-desktop.ps-nav-right {
  order: 3;
  justify-content: flex-start;
}

.ps-nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 4px 0;
}

.ps-nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.ps-nav-desktop a:hover,
.ps-nav-desktop a.active {
  color: var(--primary-dark);
}

.ps-nav-desktop a:hover::after,
.ps-nav-desktop a.active::after {
  width: 100%;
}

.ps-nav-toggle {
  display: none;
  order: 4;
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-nav-toggle:hover {
  background: rgba(168, 85, 247, 0.1);
}

.ps-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  position: relative;
  transition: var(--transition);
}

.ps-nav-toggle span::before,
.ps-nav-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.ps-nav-toggle span::before { top: -7px; }
.ps-nav-toggle span::after { top: 7px; }

/* --- Mobile Nav (Full-screen Overlay) --- */
.ps-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: linear-gradient(135deg, #FFF5F7 0%, #FAE8FF 50%, #FDF2F8 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ps-nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.ps-nav-mobile__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-dark);
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  transition: var(--transition);
}

.ps-nav-mobile__close:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: rotate(90deg);
}

.ps-nav-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-btn);
  transition: var(--transition);
}

.ps-nav-mobile a:hover {
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}

/* --- Hero (Split 50/50) --- */
.ps-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--sp-3) var(--sp-10);
  position: relative;
  overflow: hidden;
}

.ps-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroBubble1 12s ease-in-out infinite alternate;
}

.ps-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroBubble2 15s ease-in-out infinite alternate;
}

@keyframes heroBubble1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes heroBubble2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

.ps-hero-grid {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ps-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ps-hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.ps-hero-text p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.ps-hero-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.ps-hero-visual {
  position: relative;
}

.ps-hero-preview {
  background: var(--surface);
  border: 2px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(168, 85, 247, 0.08);
  position: relative;
}

.ps-hero-preview::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-card) + 2px);
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary));
  z-index: -1;
  opacity: 0.4;
}

.ps-hero-preview iframe {
  width: 100%;
  min-height: 500px;
  display: block;
  border: none;
}

.ps-hero-preview-label {
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  background: rgba(168, 85, 247, 0.03);
}

.ps-hero-preview-label span {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Wave Dividers --- */
.ps-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.ps-wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

.ps-wave svg path {
  fill: rgba(168, 85, 247, 0.06);
}

.ps-wave-pink svg path {
  fill: rgba(244, 114, 182, 0.06);
}

/* --- Features --- */
.ps-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
}

.ps-feature-card {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-5);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ps-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ps-feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 85, 247, 0.2);
}

.ps-feature-card:hover::before {
  opacity: 1;
}

.ps-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(244, 114, 182, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--sp-3);
  transition: var(--transition);
}

.ps-feature-card:hover .ps-feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(244, 114, 182, 0.2));
}

.ps-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-1);
  color: var(--text);
}

.ps-feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Game Section --- */
.ps-game-bg {
  padding: var(--sp-10) 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(216, 180, 254, 0.08) 50%, var(--bg) 100%);
}

.ps-game-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.ps-game-card {
  background: var(--surface);
  border: 2px solid rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ps-game-frame {
  position: relative;
  width: 100%;
  background: #1E1B4B;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.ps-game-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 650px;
  display: block;
  border: none;
}

.ps-game-fullscreen {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  color: var(--primary-dark);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ps-game-fullscreen:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.ps-game-details {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.ps-game-details h3 {
  font-size: 1.125rem;
  color: var(--text);
}

.ps-game-warning {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid rgba(168, 85, 247, 0.06);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.04), rgba(244, 114, 182, 0.04));
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* --- Steps --- */
.ps-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
}

.ps-step-card {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
}

.ps-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ps-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 auto var(--sp-3);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.ps-step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--sp-1);
  color: var(--text);
}

.ps-step-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- FAQ --- */
.ps-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ps-faq-item {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.ps-faq-item.is-open {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: var(--shadow-hover);
}

.ps-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.ps-faq-toggle:hover {
  color: var(--primary);
}

.ps-faq-chevron {
  font-size: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: var(--sp-2);
  color: var(--accent);
}

.ps-faq-item.is-open .ps-faq-chevron {
  transform: rotate(45deg);
}

.ps-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.ps-faq-text {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.ps-cta-section {
  padding: var(--sp-10) 0;
}

.ps-cta-section .cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-4);
  background: linear-gradient(135deg, var(--primary), var(--accent-dark), var(--accent));
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(168, 85, 247, 0.3);
}

.ps-cta-section .cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.ps-cta-section .cta-inner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.ps-cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--sp-2);
  color: #fff;
  position: relative;
  z-index: 1;
}

.ps-cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

/* --- Article --- */
.ps-article-bg {
  padding: var(--sp-10) 0;
}

.ps-article-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}

.ps-article-body h2 {
  font-size: 1.75rem;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.ps-article-body h3 {
  font-size: 1.25rem;
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--primary);
}

.ps-article-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}

/* --- Footer --- */
.ps-footer {
  background: linear-gradient(180deg, var(--bg) 0%, #F3E8FF 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  padding: var(--sp-8) 0 var(--sp-4);
  margin-top: var(--sp-10);
}

.ps-footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-6);
}

.ps-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ps-footer-brand .footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.ps-footer-brand .footer-logo span {
  font-size: 1.5rem;
}

.ps-footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ps-footer-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(244, 114, 182, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: var(--sp-1);
  width: fit-content;
}

.ps-footer-links h4 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.ps-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.ps-footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
  display: block;
  padding: 2px 0;
}

.ps-footer-links a:hover {
  color: var(--primary);
}

.ps-footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-3) 0;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  text-align: center;
}

.ps-footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ps-footer-disclaimer {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* --- Legal Pages --- */
.ps-legal-page {
  padding: 140px 0 var(--sp-10);
  max-width: 900px;
  margin: 0 auto;
}

.ps-legal-toc {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow);
}

.ps-legal-toc h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.ps-legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ps-legal-toc a:hover {
  color: var(--accent);
}

.ps-legal-content {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow);
}

.ps-legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.ps-legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}

.ps-legal-content ul {
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.ps-legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}

/* --- Contact Page --- */
.ps-contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-4);
  max-width: var(--max-w);
  margin: 0 auto;
}

.ps-contact-form {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}

.ps-contact-field {
  margin-bottom: var(--sp-3);
}

.ps-contact-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--sp-1);
  color: var(--text);
}

.ps-contact-field input,
.ps-contact-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(168, 85, 247, 0.04);
  border: 2px solid rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.ps-contact-field input:focus,
.ps-contact-field textarea:focus {
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.ps-contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.ps-contact-field .error-text {
  color: #EF4444;
  font-size: 0.8125rem;
  margin-top: 4px;
  display: none;
  font-weight: 600;
}

.ps-contact-success {
  display: none;
  padding: var(--sp-3);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-card);
  color: #16A34A;
  text-align: center;
  font-weight: 700;
  margin-top: var(--sp-3);
}

.ps-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ps-contact-item {
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.ps-contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.ps-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(244, 114, 182, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}

.ps-contact-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--text);
}

.ps-contact-item p,
.ps-contact-item a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Age Modal --- */
#ageModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 75, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#ageModal.hidden {
  display: none;
}

.age-modal__card {
  background: #fff;
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-radius: 32px;
  padding: var(--sp-6);
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(168, 85, 247, 0.25);
}

.age-modal__card .modal-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-3);
}

.age-modal__card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.age-modal__card p {
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.age-modal__actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
}

/* --- Cookie Banner --- */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: var(--sp-3);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  box-shadow: 0 -4px 30px rgba(168, 85, 247, 0.1);
}

#cookieBanner.hidden {
  display: none;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cookie-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-inner p a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}

/* --- Toast Notifications --- */
.ps-toast-container {
  position: fixed;
  top: 100px;
  right: var(--sp-3);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  pointer-events: none;
}

.ps-toast {
  background: #fff;
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
}

.ps-toast--success {
  border-left: 4px solid #22C55E;
}

.ps-toast--error {
  border-left: 4px solid #EF4444;
}

.ps-toast--info {
  border-left: 4px solid var(--primary);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* --- Game Page Hero --- */
.game-page-hero {
  padding: 140px 0 var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.game-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.game-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.game-page-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.game-tags {
  display: flex;
  gap: var(--sp-1);
  justify-content: center;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

/* --- Disclaimer Box --- */
.disclaimer-box {
  max-width: 800px;
  margin: var(--sp-6) auto;
  padding: var(--sp-4);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(244, 114, 182, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: center;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .ps-nav-desktop { display: none; }
  .ps-nav-toggle { display: flex; }
  .ps-nav-mobile { display: flex; }
  .ps-logo { margin: 0; order: 1; }
  .ps-header-inner { justify-content: space-between; }
  .ps-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .ps-hero-text { align-items: center; }
  .ps-hero-text p { max-width: 100%; }
  .ps-hero-actions { justify-content: center; }
  .ps-hero-preview iframe { min-height: 300px; }
  .ps-features-grid { grid-template-columns: 1fr; }
  .ps-steps-grid { grid-template-columns: 1fr; }
  .ps-footer-cols { grid-template-columns: 1fr; gap: var(--sp-4); }
  .ps-game-frame iframe { min-height: 400px; }
  .ps-contact-layout { grid-template-columns: 1fr; }
  .ps-hero { padding-top: 120px; min-height: auto; }
  .ps-hero-actions { flex-direction: column; align-items: center; }
  .age-modal__actions { flex-direction: column; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .ps-section { padding: var(--sp-8) 0; }
  .ps-heading { margin-bottom: var(--sp-6); }
  .ps-article-body { padding: var(--sp-3); }
  .ps-legal-page { padding: 120px var(--sp-3) var(--sp-8); }
  .ps-cta-section .cta-inner { border-radius: var(--radius-card); padding: var(--sp-6) var(--sp-3); }
}

@media (max-width: 480px) {
  .ps-features-grid { gap: var(--sp-2); }
  .ps-hero { padding-top: 100px; }
  .ps-hero-text h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
}
