:root {
  --s31d-bg: #171717;
  --s31d-surface: #2d2d2d;
  --s31d-panel: #393136;
  --s31d-primary: #db7093;
  --s31d-primary-dark: #b94f73;
  --s31d-accent: #ffd166;
  --s31d-text: #e0e0e0;
  --s31d-muted: #bdb5b9;
  --s31d-border: rgba(224, 224, 224, .14);
  --s31d-success: #74d3ae;
  --s31d-radius: 1.4rem;
  --s31d-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: 8rem; }
body { margin: 0; overflow-x: hidden; background: var(--s31d-bg); color: var(--s31d-text); font-family: Inter, Arial, sans-serif; font-size: 1.5rem; line-height: 1.5rem; }
body.s31d-scroll-lock { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.s31d-container { width: min(100% - 2.4rem, 118rem); margin-inline: auto; }
.s31d-wrapper { min-height: 100vh; }
.s31d-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: 6.8rem; border-bottom: 1px solid var(--s31d-border); background: rgba(23, 23, 23, .96); backdrop-filter: blur(1.6rem); }
.s31d-header-row { height: 100%; display: flex; align-items: center; gap: .7rem; }
.s31d-brand { min-width: 0; display: inline-flex; align-items: center; gap: .7rem; color: var(--s31d-text); text-decoration: none; font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.s31d-logo { width: 3rem; height: 3rem; border-radius: .8rem; object-fit: cover; }
.s31d-brand-text { white-space: nowrap; }
.s31d-header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.s31d-btn { min-height: 4.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid transparent; border-radius: 1rem; padding: .8rem 1.2rem; color: #fff; background: var(--s31d-primary); font-size: 1.3rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.s31d-btn:hover, .s31d-btn:focus-visible { background: var(--s31d-primary-dark); box-shadow: 0 .7rem 2rem rgba(219, 112, 147, .3); }
.s31d-btn:active { transform: scale(.96); }
.s31d-btn-outline { border-color: var(--s31d-primary); color: var(--s31d-primary); background: transparent; }
.s31d-btn-small { min-height: 4.4rem; padding-inline: 1rem; }
.s31d-menu-trigger { width: 4.4rem; min-width: 4.4rem; min-height: 4.4rem; display: inline-grid; place-items: center; border: 1px solid var(--s31d-border); border-radius: 1rem; color: var(--s31d-text); background: var(--s31d-surface); cursor: pointer; }
.s31d-menu-trigger .material-icons-outlined { font-size: 2.5rem; }
.s31d-desktop-nav { display: none; }
.s31d-mobile-menu { position: fixed; inset: 6.8rem 0 auto; z-index: 9999; padding: 1.2rem; border-bottom: 1px solid var(--s31d-border); background: #211f20; box-shadow: var(--s31d-shadow); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.s31d-mobile-menu.s31d-menu-open { transform: translateY(0); visibility: visible; }
.s31d-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.s31d-menu-grid a { min-height: 4.8rem; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--s31d-border); border-radius: 1rem; padding: 1rem; color: var(--s31d-text); background: var(--s31d-surface); text-decoration: none; font-weight: 700; }

.s31d-main { padding-top: 6.8rem; }
.s31d-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 10%, rgba(219,112,147,.28), transparent 40%), linear-gradient(145deg, #241e21, #171717); }
.s31d-carousel { position: relative; min-height: 28rem; }
.s31d-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.s31d-slide.s31d-slide-active { position: relative; opacity: 1; pointer-events: auto; }
.s31d-slide img { width: 100%; height: 28rem; object-fit: cover; filter: brightness(.55); }
.s31d-slide-copy { position: absolute; inset: auto 1.6rem 3.5rem; max-width: 56rem; }
.s31d-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--s31d-accent); font-size: 1.2rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.s31d-slide h1, .s31d-slide h2 { margin: 0 0 1rem; font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1.08; }
.s31d-slide p { max-width: 52rem; margin: 0 0 1.5rem; line-height: 2.2rem; color: #f0e9ec; }
.s31d-carousel-controls { position: absolute; inset: auto 1.2rem 1rem; z-index: 4; display: flex; justify-content: space-between; align-items: center; }
.s31d-carousel-arrow { width: 4.4rem; height: 4.4rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(0,0,0,.45); cursor: pointer; }
.s31d-carousel-dots { display: flex; gap: .7rem; }
.s31d-carousel-dot { width: 1rem; height: 1rem; border: 0; border-radius: 50%; padding: 0; background: #8a8286; cursor: pointer; }
.s31d-carousel-dot.s31d-dot-active { width: 2.6rem; border-radius: 1rem; background: var(--s31d-primary); }

.s31d-section { padding: 3.6rem 0; }
.s31d-section-soft { background: #211f20; }
.s31d-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.s31d-section-head h2, .s31d-content-card h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.3rem); line-height: 1.15; }
.s31d-section-head p { max-width: 48rem; margin: .8rem 0 0; color: var(--s31d-muted); line-height: 2.2rem; }
.s31d-category-nav { display: flex; gap: .8rem; overflow-x: auto; padding: .2rem 0 1.3rem; scrollbar-width: none; }
.s31d-category-nav::-webkit-scrollbar { display: none; }
.s31d-chip { min-width: max-content; min-height: 4.4rem; display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--s31d-border); border-radius: 2.2rem; padding: .8rem 1.3rem; color: var(--s31d-text); background: var(--s31d-surface); font-weight: 800; cursor: pointer; }
.s31d-category-block { margin-top: 2.4rem; scroll-margin-top: 8rem; }
.s31d-category-title { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; font-size: 2rem; line-height: 2.4rem; }
.s31d-category-title i, .s31d-category-title ion-icon { color: var(--s31d-primary); font-size: 2.4rem; }
.s31d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.s31d-card { overflow: hidden; border: 1px solid var(--s31d-border); border-radius: 1.1rem; background: var(--s31d-surface); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.16); }
.s31d-game-link { min-height: 100%; display: flex; flex-direction: column; color: var(--s31d-text); text-decoration: none; cursor: pointer; transition: transform .2s, border-color .2s; }
.s31d-game-link:hover { transform: translateY(-.3rem); }
.s31d-game-link img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #181818; }
.s31d-game-name { display: grid; place-items: center; min-height: 4.4rem; padding: .6rem; text-align: center; font-size: 1.1rem; line-height: 1.35rem; font-weight: 800; }

.s31d-content-grid { display: grid; gap: 1.2rem; }
.s31d-content-card { border: 1px solid var(--s31d-border); border-radius: var(--s31d-radius); padding: 1.8rem; background: var(--s31d-surface); box-shadow: var(--s31d-shadow); }
.s31d-content-card h3 { margin: 0 0 1rem; color: var(--s31d-primary); font-size: 1.8rem; line-height: 2.2rem; }
.s31d-content-card p, .s31d-content-card li { color: var(--s31d-muted); line-height: 2.3rem; }
.s31d-content-card strong { color: var(--s31d-text); }
.s31d-steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.s31d-steps li { position: relative; min-height: 4.6rem; margin-bottom: 1rem; padding-left: 5.6rem; counter-increment: steps; }
.s31d-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 1.2rem; color: #fff; background: var(--s31d-primary); font-weight: 900; }
.s31d-feature-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.s31d-feature-item { display: flex; gap: 1rem; border: 1px solid var(--s31d-border); border-radius: 1.1rem; padding: 1.2rem; background: #252324; }
.s31d-feature-item i, .s31d-feature-item ion-icon { flex: 0 0 auto; color: var(--s31d-accent); font-size: 2.4rem; }
.s31d-feature-item h3 { margin: 0 0 .4rem; }
.s31d-feature-item p { margin: 0; }
.s31d-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.s31d-metric { border: 1px solid var(--s31d-border); border-radius: 1.1rem; padding: 1.3rem; background: #252324; }
.s31d-metric strong { display: block; margin-bottom: .7rem; color: var(--s31d-primary); font-size: 2rem; line-height: 2.4rem; }
.s31d-progress { height: .7rem; overflow: hidden; border-radius: 1rem; background: #171717; }
.s31d-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s31d-primary), var(--s31d-accent)); }
.s31d-inline-link { color: var(--s31d-primary); font-weight: 900; text-decoration-thickness: .2rem; cursor: pointer; }
.s31d-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; border: 1px solid rgba(219,112,147,.45); border-radius: var(--s31d-radius); padding: 2rem; background: linear-gradient(135deg, #4a2d3a, #292426); }
.s31d-faq details { border-top: 1px solid var(--s31d-border); }
.s31d-faq summary { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 800; }
.s31d-faq p { margin-top: 0; }
.s31d-badge { display: inline-flex; align-items: center; border-radius: 2rem; padding: .5rem .9rem; color: #191919; background: var(--s31d-success); font-size: 1.1rem; font-weight: 900; }

.s31d-footer { padding: 3.2rem 0 9rem; border-top: 1px solid var(--s31d-border); background: #101010; }
.s31d-footer-grid { display: grid; gap: 2rem; }
.s31d-footer h2, .s31d-footer h3 { margin-top: 0; }
.s31d-footer p { color: var(--s31d-muted); line-height: 2.2rem; }
.s31d-footer-links, .s31d-footer-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.s31d-footer-links a { min-height: 4.4rem; display: inline-flex; align-items: center; color: var(--s31d-text); font-weight: 700; text-underline-offset: .4rem; }
.s31d-copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--s31d-border); font-size: 1.2rem; }
.s31d-bottom-nav { position: fixed; inset: auto 0 0; z-index: 1000; height: 6.2rem; display: flex; justify-content: space-around; border-top: 1px solid rgba(219,112,147,.4); background: #242122; box-shadow: 0 -1rem 2.5rem rgba(0,0,0,.35); }
.s31d-bottom-item { min-width: 6rem; min-height: 6rem; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 0; color: var(--s31d-muted); background: transparent; font-size: 1rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: color .2s, transform .2s; }
.s31d-bottom-item i, .s31d-bottom-item ion-icon, .s31d-bottom-item .material-icons { font-size: 2.4rem; }
.s31d-bottom-item.s31d-active { color: var(--s31d-primary); }
.s31d-bottom-item:hover, .s31d-bottom-item:focus-visible { color: var(--s31d-accent); transform: translateY(-.3rem) scale(1.04); }

@media (max-width: 430px) {
  .s31d-container { width: min(100% - 1.6rem, 43rem); }
  .s31d-brand-text { max-width: 8.2rem; overflow: hidden; text-overflow: ellipsis; }
  .s31d-btn-small { padding-inline: .8rem; font-size: 1.15rem; }
  .s31d-slide img { height: 31rem; }
  .s31d-carousel { min-height: 31rem; }
  .s31d-slide-copy { inset-inline: 1.2rem; }
  .s31d-slide p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .s31d-grid { gap: .7rem; }
  .s31d-game-name { font-size: 1.05rem; }
}

@media (max-width: 768px) {
  .s31d-main { padding-bottom: 8rem; }
}

@media (min-width: 600px) {
  .s31d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .s31d-content-grid { grid-template-columns: repeat(2, 1fr); }
  .s31d-feature-list { grid-template-columns: repeat(2, 1fr); }
  .s31d-footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 769px) {
  body { font-size: 1.6rem; line-height: 1.6rem; }
  .s31d-header { height: 7.4rem; }
  .s31d-main { padding-top: 7.4rem; }
  .s31d-menu-trigger, .s31d-mobile-menu, .s31d-bottom-nav { display: none; }
  .s31d-desktop-nav { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
  .s31d-desktop-nav a { min-height: 4.4rem; display: inline-flex; align-items: center; padding: .7rem 1rem; color: var(--s31d-text); text-decoration: none; font-weight: 700; }
  .s31d-header-actions { margin-left: 0; }
  .s31d-slide img { height: 48rem; }
  .s31d-carousel { min-height: 48rem; }
  .s31d-slide-copy { inset: auto auto 6rem 7%; }
  .s31d-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1.2rem; }
  .s31d-game-name { font-size: 1.25rem; line-height: 1.6rem; }
  .s31d-section { padding-block: 5.5rem; }
  .s31d-content-card { padding: 2.4rem; }
  .s31d-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .s31d-footer { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
