
/* Royalstarpla — unique social casino theme */
:root {
  --bg: #0f1a14;
  --bg-elevated: #16241c;
  --bg-panel: #1c2e24;
  --text: #eef5e8;
  --text-secondary: #a8bba0;
  --text-tertiary: #6d8070;
  --accent: #b8e62e;
  --accent-deep: #8fb820;
  --accent-alt: #5fd4a0;
  --accent-glow: rgba(184, 230, 46, 0.28);
  --border: rgba(184, 230, 46, 0.14);
  --border-strong: rgba(184, 230, 46, 0.4);
  --radius: 4px;
  --radius-lg: 8px;
  --btn-primary-text: #0f1a14;
  --font: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --header-h: 72px;
  --max: 1100px;
  --max-wide: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 40% at 90% 0%, rgba(184,230,46,0.07), transparent 55%), linear-gradient(180deg, #122018 0%, #0f1a14 100%);
  pointer-events: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.12;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lede { font-size: 18px; line-height: 1.55; color: var(--text-secondary); }
.fine { font-size: 12px; line-height: 1.45; color: var(--text-tertiary); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 11px 18px;
}
.btn-secondary:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-block { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: calc(var(--radius) - 2px); object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; }
.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.age-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-alt) 15%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--accent-alt);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  z-index: 201;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list a {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text-secondary);
}
.mobile-nav-list a:hover, .mobile-nav-list a.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.mobile-nav-foot { margin-top: auto; padding-top: 24px; }
.nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.nav-close svg { width: 20px; height: 20px; }

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,26,20,0.94) 0%, rgba(22,36,28,0.8) 48%, rgba(184,230,46,0.18) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 64px; }
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 8px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 520px;
  line-height: 1.5;
}
.hero-note strong { color: var(--accent-alt); }

.statement {
  padding: 80px 0;
  text-align: center;
}
.statement h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.statement p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 17px;
}

.section { padding: 72px 0; }
.section-panel {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 10px; }

.pillars, .steps, .missions, .rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rg-grid { grid-template-columns: repeat(2, 1fr); }
.pillar, .step, .mission, .rg-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: var(--radius);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3, .step h3, .mission h3, .rg-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.pillar p, .step p, .mission p, .rg-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.games-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.game-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.game-tile-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}
.game-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.game-tile:hover .game-tile-media img { transform: scale(1.04); }
.game-tile-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.game-tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-alt);
  margin-bottom: 6px;
}
.game-tile-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.game-tile-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.split-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.split-copy p { color: var(--text-secondary); margin-bottom: 14px; }

.cta-band {
  padding: 64px 0;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-panel));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 10px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 22px; font-size: 17px; }

.newsletter { text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 10px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--accent); }

.note-bar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-panel));
  border: 1px solid var(--border-strong);
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.note-bar svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.filters { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-panel);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.side-card h3 { font-size: 16px; margin-bottom: 14px; }
.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.meta-row span:last-child { color: var(--text); font-weight: 600; }
.side-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.side-link:hover { color: var(--accent); }
.side-link:last-child { border-bottom: none; }

.article {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.article h2 { font-size: 28px; margin-bottom: 14px; }
.article h3 { font-size: 20px; margin: 24px 0 10px; }
.article p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-meta label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.contact-meta > div { margin-bottom: 22px; }
.contact-meta span { font-size: 16px; font-weight: 600; }
.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-success {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-alt) 15%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--accent-alt);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

.tips { margin-top: 24px; }
.tips li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.tips strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.legal {
  padding: 48px 0 80px;
  max-width: 760px;
}
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p, .legal li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.legal ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal a { color: var(--accent); text-decoration: underline; }

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand img { width: 32px; height: 32px; border-radius: calc(var(--radius) - 2px); }
.footer-desc { font-size: 14px; color: var(--text-secondary); max-width: 360px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 960px) {
  .pillars, .steps, .missions { grid-template-columns: 1fr; }
  .split, .contact-grid, .game-layout, .footer-top { grid-template-columns: 1fr; }
  .rg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-desktop, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
}


.site-header { border-bottom: 3px solid var(--accent); }
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(184,230,46,0.04) 40px, rgba(184,230,46,0.04) 41px);
}
.brand-name { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
h1, h2, h3, .hero-brand { text-transform: uppercase; letter-spacing: 0.02em; }
.hero { clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); }
.hero-brand { font-size: clamp(40px, 7vw, 72px); line-height: 0.95; }
.game-tile { border-left: 4px solid var(--accent); }
.game-tile:hover { border-left-color: var(--accent-alt); box-shadow: 0 12px 32px rgba(184,230,46,0.12); }
.pillar-icon, .step-num { border-radius: 2px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.cta-band { background: linear-gradient(115deg, var(--accent) 0%, var(--accent-deep) 100%); }
.cta-band h2, .cta-band p { color: var(--btn-primary-text); }
.cta-band .btn-primary { background: var(--bg); color: var(--text); }
.eyebrow { color: var(--accent); letter-spacing: 0.18em; }

