/* Structural primitives for public pages. The light visual tokens and
   component skins live in site-v4.css; this file contains no neon theme. */

/* ===== RESET & BASE ===== */
:root { --vh: 1vh; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gilroy", "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Montserrat", sans-serif;
  background: var(--sv4-canvas, #fbf9ff);
  color: var(--sv4-ink, #171824);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
p { margin: 0; }
img { display: block; }

/* ===== ICONS (replace Font Awesome) ===== */
.icon-check, .icon-close, .icon-users, .icon-play, .icon-clock {
  font-style: normal;
  display: inline-block;
}
.icon-close { cursor: pointer; font-size: 18px; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}
@media (min-width: 768px) { .container { padding: 0 20px; } }
@media (min-width: 1400px) { .container { padding: 0 75px; } }

/* ===== TYPOGRAPHY ===== */
.title {
  margin: 0;
  font-size: 32px;
  line-height: 36px;
  font-weight: bold;
  text-align: center;
}
@media (min-width: 768px) { .title { font-size: 48px; line-height: 54px; } }
@media (min-width: 1200px) { .title { font-size: 60px; line-height: 73px; text-align: left; } }

.subtitle {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
}
@media (min-width: 1200px) { .subtitle { margin: 0 0 50px; font-size: 48px; line-height: 59px; } }

/* ===== BUTTON ===== */
.button {
  position: relative;
  border-radius: 14px;
  background: var(--sv4-orange, #fa4010);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: 15px 22px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-family: "Gilroy", "Open Sans", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  text-align: center;
}
.button::before { display: none; }
.button--icon { gap: .65em; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 25px rgb(250 64 16 / 18%); }

/* ===== LAYOUT ===== */
.main {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  background: var(--sv4-canvas, #fbf9ff);
  overflow-x: hidden;
}
.content {
  padding-top: 30px;
  padding-bottom: 50px;
  flex-grow: 1;
}
@media (min-width: 1200px) { .content { padding-bottom: 100px; } }

/* Old dark header fades are no longer part of the public page frame. */
.blur { display: none; }

/* ===== LOGO ===== */
.logo {
  display: inline-block;
  flex-grow: 1;
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  font-family: 'Gilroy', sans-serif;
}
.logo__salo { color: var(--sv4-orange, #fa4010); }
.logo__dot  { color: #cfcffd; }
.logo__fun  { color: #fea036; }

/* ===== HEADER ===== */
.header {
  width: 100%;
  margin: 0;
  position: relative;
  padding: 20px 0 0;
  background: var(--sv4-canvas, #fbf9ff);
  z-index: 99;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.header__text { display: none; }
@media (min-width: 768px) {
  .header__text { display: block; font-size: 20px; line-height: 37px; font-weight: 600; }
}
@media (min-width: 992px) { .header__text { font-size: 24px; } }
.header__btn { display: none; }
@media (min-width: 576px) { .header__btn { display: block; padding: 15px 30px; } }

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  margin: 0;
  position: relative;
  background: var(--sv4-canvas, #fbf9ff);
  z-index: 99;
  padding: 0 0 40px;
}

.link { color: var(--sv4-brand, #6540cd); text-decoration: none; font-size: 14px; padding: 6px 0; display: inline-block; }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  z-index: 99999;
}
.modal.modal--visible { display: flex; }

.modal__backdrop {
  position: absolute;
  width: 100%; height: 100%;
  z-index: -1;
  background: rgba(0,0,0,0.8);
}

.modal__box {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (min-width: 576px) { .modal__box { padding: 20px; } }

.form {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 50px 10px;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
  border-radius: 30px;
  font-family: "Gilroy", "Open Sans", sans-serif;
}
.form::before { display: none; }
@media (min-width: 576px) { .form { padding: 50px 50px 60px; } }

.form__close {
  position: absolute;
  right: 30px; top: 20px;
  padding: 0;
  background: 0;
  border: 0;
  cursor: pointer;
}
.form__close .icon-close { font-size: 28px; color: var(--sv4-muted, #667078); }

.form__title {
  font-weight: 600;
  line-height: 37px;
  font-size: 26px;
  margin: 0 0 15px;
}
@media (min-width: 576px) { .form__title { font-size: 30px; margin: 0 0 30px; } }

.form__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
@media (min-width: 576px) { .form__item { gap: 30px; } }

.form__input {
  width: 100%;
  height: 60px;
  background: #fff;
  border: 1px solid #d8d3df;
  padding: 0 0 0 15px;
  border-radius: 50px;
  font-size: 30px;
  letter-spacing: 15px;
  color: var(--sv4-ink, #171824);
  font-weight: 600;
  text-align: center;
}
.form__input::placeholder { color: var(--sv4-muted, #667078); }
@media (min-width: 576px) { .form__input { width: calc(50% - 15px); } }

.form__button { width: 100%; }
@media (min-width: 576px) { .form__button { width: calc(50% - 15px); } }

.form__error {
  position: absolute;
  bottom: 15px; left: 50%;
  transform: translate(-50%, 0);
  font-size: 16px;
  width: 100%;
  display: none;
}

/* ===== RETURN TO PARTY BUTTON ===== */
.home__return {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  animation: slide-up 0.6s ease-in;
  width: 260px;
  z-index: 999;
  display: none;
}
@keyframes slide-up {
  from { top: -80px; }
  to   { top: 20px; }
}

/* ===== TAGS (catalog & game) ===== */
.tags {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.tags__list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  visibility: hidden;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.tags__list.visible {
  visibility: visible;
  opacity: 1;
  height: auto;
  width: 100%;
  transition: opacity 0.5s;
  overflow: visible;
}
@media (min-width: 576px) {
  .tags__list { visibility: visible; opacity: 1; height: auto; width: 100%; overflow: visible; }
}

.tag { text-align: center; padding: 15px 20px; font-size: 16px; }
.tag.active::before { display: none; }

.more { display: none; }
.more.active { display: block; }
@media (min-width: 576px) { .more.active { display: none; } }

/* ===== CARD — Gradient-border card ===== */
.card {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
  padding: 25px;
}
.card::before { display: none; }
.card--sm { border-radius: 20px; }
.card--sm::before { border-radius: 20px; }
.card:hover { box-shadow: 0 14px 36px rgb(30 24 48 / 9%); }

/* ===== BLOG CARD ===== */
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--sv4-ink, #171824);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.blog-card:hover {
  box-shadow: 0 14px 36px rgb(30 24 48 / 9%);
  transform: translateY(-4px);
}
.blog-card__img { width: 100%; height: auto; display: block; }
.blog-card__body { padding: 15px; }
.blog-card__title { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
@media (min-width: 768px) { .blog-card__title { font-size: 24px; } }
.blog-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sv4-muted, #667078); }

/* ===== MARKER — Gradient-border number marker ===== */
.marker {
  position: relative;
  border-radius: 20px;
  background: #fff0e3;
  width: 50px; height: 50px;
  font-size: 28px;
  color: var(--sv4-orange, #fa4010);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
  flex-shrink: 0;
}
.marker::before { display: none; }
@media (min-width: 576px) { .marker { width: 70px; height: 70px; font-size: 36px; } }

/* ===== REVIEW ===== */
.review {
  position: relative;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
}
.review::before { display: none; }
.review__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.review__title { margin: 0; font-size: 20px; font-weight: 600; }
.review__score { flex-shrink: 0; font-size: 36px; font-weight: 700; color: #6540cd; }
.review__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sv4-muted, #667078); }

/* ===== PROSE — Rich text content ===== */
.prose { font-size: 16px; line-height: 1.7; color: var(--sv4-ink, #171824); }
@media (min-width: 768px) { .prose { font-size: 18px; } }
.prose h1, .prose h2, .prose h3 { margin: 1.5em 0 0.5em; font-weight: 600; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: #6540cd; }

/* Intent pages: a compact recap after the people-first page content. */
.intent-guide { margin: 48px 0 32px; }
.intent-guide > .subtitle { white-space: normal; overflow-wrap: anywhere; }
.intent-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.intent-guide__grid--games { grid-template-columns: minmax(0, 1fr); }
.intent-guide__item { min-width: 0; padding: 20px; }
.intent-guide__option { margin: 0 0 16px; font-size: 20px; }
.intent-guide__option a { color: #6540cd; }
.format-inline-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  font-weight: 700;
}
.format-inline-brand--link { text-decoration: none; }
.format-inline-brand__salo { color: var(--sv4-orange, #fa4010); }
.format-inline-brand__dot { color: #cfcffd; }
.format-inline-brand__fun { color: #fea036; }
.format-inline-brand__suffix { margin-left: 7px; }
.format-inline-brand__suffix--team { color: #a978ff; }
.format-inline-brand__suffix--marathon { color: #6540cd; }
.intent-guide__facts { margin: 0; }
.intent-guide__facts div { margin-top: 12px; }
.intent-guide__facts dt {
  color: var(--sv4-muted, #667078);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.intent-guide__facts dd { margin: 3px 0 0; line-height: 1.45; }
.intent-guide__more { display: inline-flex; margin-top: 18px; }
.intent-guide__game .game-card__title a { color: #fff; text-decoration: none; }
.intent-guide__game .intent-guide__facts { width: 100%; }
@media (max-width: 1199px) {
  .intent-guide > .subtitle { font-size: 26px; }
}

/* ===== LOADING ===== */
.loading { text-align: center; padding: 60px 0; color: var(--sv4-muted, #667078); font-size: 18px; }

/* ===== VIDEO EMBED ===== */
.video-embed { width: 100%; max-width: 480px; }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 0; }

/* ===== PAGE — page-level padding ===== */
.page { padding: 0 10px; }
@media (min-width: 768px) { .page { padding: 0 20px; } }

.page__container { max-width: 1440px; margin: 0 auto; padding: 0 10px; }
@media (min-width: 768px) { .page__container { padding: 0 20px; } }
@media (min-width: 1400px) { .page__container { padding: 0 65px; } }

.page__container--narrow { max-width: 900px; margin: 0 auto; }

/* ===== SECTION ===== */
.section { padding-top: 50px; }
@media (min-width: 768px) { .section { padding-top: 100px; } }


.section__desc {
  text-align: center; font-size: 16px; line-height: 1.6;
  color: var(--sv4-muted, #667078); max-width: 800px; margin: 0 auto 40px;
}
@media (min-width: 768px) { .section__desc { font-size: 18px; } }

/* ===== GRID ===== */
.grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.card-grid { grid-template-columns: minmax(0, 1fr); }
.blog-card-grid { max-width: 520px; margin: 0 auto; }
@media (min-width: 768px) { .grid { gap: 20px; } .grid--2-md { grid-template-columns: 1fr 1fr; } .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .blog-card-grid { max-width: 1040px; } }
@media (min-width: 992px) { .grid { gap: 30px; } .grid--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ===== GLOW — decorative blurred circle ===== */
.glow { position: relative; }

/* ===== GAME CARD ===== */
.game-card {
  position: relative; border-radius: 30px;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
  padding: 18px 15px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  text-decoration: none; color: var(--sv4-ink, #171824); transition: transform .16s ease, box-shadow .16s ease;
}
.game-card::before { display: none; }
.game-card:hover, .game-card:focus { box-shadow: 0 14px 36px rgb(30 24 48 / 9%); transform: translateY(-2px); }
@media (min-width: 992px) { .game-card { padding: 30px; flex-direction: row; gap: 20px; } }

.game-card__info { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
@media (min-width: 992px) { .game-card__info { align-items: flex-start; text-align: left; } }

.game-card__title { font-size: 20px; line-height: 24px; font-weight: 600; margin: 0; }
@media (min-width: 1200px) { .game-card__title { font-size: 30px; line-height: 37px; } }

.game-card__count { font-size: 14px; color: var(--sv4-muted, #667078); display: flex; align-items: center; gap: 6px; }
.game-card__count--stat { color: var(--sv4-muted, #667078); }
.game-card__text { font-size: 15px; line-height: 1.5; color: var(--sv4-muted, #667078); margin: 0; }
@media (min-width: 768px) { .game-card__text { font-size: 16px; } }
.game-card__stat { font-size: 13px; color: #6540cd; margin: 0; font-weight: 500; }
@media (min-width: 768px) { .game-card__stat { font-size: 14px; } }
.section__hint { font-size: 14px; color: var(--sv4-muted, #667078); margin: 6px 0 0; }
.game-card__btn { margin-top: auto; align-self: flex-start; }
.game-card__cover { order: -1; flex-shrink: 0; }
@media (min-width: 992px) { .game-card__cover { order: 0; width: 40%; } }
.game-card__img { width: 100%; height: auto; }

/* ===== STATS BAR ===== */
.stats {
  position: relative; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 62px; padding: 40px; z-index: 0;
}
.stats::before {
  display: none;
}
@media (min-width: 768px) {
  .stats { flex-direction: row; background: #ffffff; }
}
@media (max-width: 575px) {
  .stats {
    flex-direction: column;
    align-items: center;
    padding: 22px 20px;
    gap: 28px;
  }
  .stats .stats__item {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  .stats__item:not(:last-child)::after { bottom: -15px; }
  .stats__icon { width: 48px; height: 48px; }
  .stats .stats__text {
    min-width: 128px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
  }
  .stats .stats__text span {
    margin: 0 0 4px;
    font-size: 28px;
  }
}

.stats__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
@media (min-width: 768px) { .stats__item { flex-direction: row; } }
.stats__item:not(:last-child)::after {
  content: ""; position: absolute; bottom: -30px; right: 50%; transform: translate(50%, 0);
  height: 1px; width: 60px; background: var(--sv4-line, #e8e5e7);
}
@media (min-width: 768px) {
  .stats__item:not(:last-child)::after { top: 50%; right: -30px; transform: translate(0, -50%); height: 60px; width: 2px; bottom: auto; }
}
.stats__item:nth-child(2) .stats__icon span { font-size: 30px; }

.stats__icon {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: var(--sv4-soft, #f3effb);
}
.stats__icon span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; line-height: 1; }

.stats__text { display: flex; flex-direction: column; align-items: center; margin: 0; }
@media (min-width: 768px) { .stats__text { align-items: flex-start; } }
.stats__text span {
  display: block; margin: 0 0 10px; font-size: 34px; line-height: 1;
  text-transform: uppercase; font-weight: 700;
}

/* ===== FEATURES LIST ===== */
.features { margin-top: 60px; }
@media (min-width: 768px) { .features { margin-top: 80px; } }
.features__container {
  position: relative;
  z-index: 0;
}

@media (min-width: 768px) { .features__row { display: flex; align-items: flex-start; gap: 30px; } }
@media (min-width: 1200px) { .features__row { gap: 50px; } }
@media (min-width: 1400px) { .features__row { gap: 70px; } }

.features__col { width: 100%; margin: 20px 0 0; }
@media (min-width: 768px) { .features__col { margin: 0; } }

.features__list { margin: 20px 0 0; }
.features__item { position: relative; text-align: left; }
.features__item:not(:first-child) { margin: 25px 0 0; }
@media (min-width: 1200px) { .features__item { padding: 0 0 0 90px; } .features__item:not(:first-child) { margin: 50px 0 0; } }

.features__marker {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  width: 30px; height: 30px;
  background: #fff0e3;
}
.features__marker::before { display: none; }
.features__marker span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16px; }
@media (min-width: 1200px) { .features__marker { width: 60px; height: 60px; } .features__marker span { font-size: 24px; } }

.features__title { padding: 0 0 0 45px; font-weight: 600; font-size: 20px; line-height: 24px; }
@media (min-width: 1200px) { .features__title { padding: 0; font-size: 30px; line-height: 37px; } }
.features__text { margin: 20px 0 0; }
@media (min-width: 1200px) { .features__text { margin: 10px 0 0; } }

/* ===== FAQ ===== */
.faq__list { max-width: 850px; margin: 0 auto; }
.faq__item {
  position: relative; border-radius: 30px;
  border: 1px solid var(--sv4-line, #e8e5e7);
  background: #ffffff;
  padding: 20px; text-align: left;
}
.faq__item::before { display: none; }
.faq__item:not(:first-child) { margin: 15px 0 0; }
@media (min-width: 1200px) { .faq__item { padding: 30px; } .faq__item:not(:first-child) { margin: 30px 0 0; } }
.faq__title { font-size: 20px; line-height: 24px; font-weight: 600; }
@media (min-width: 1200px) { .faq__title { font-size: 30px; line-height: 37px; } }
.faq__text { margin: 20px 0 0; }

/* ===== DISCOUNT PRICE ===== */
.price-discount { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: inherit; gap: .2em .38em; }
.price-discount__old { color: var(--sv4-muted, #667078); font-size: .56em; font-weight: 600; line-height: 1; text-decoration: line-through; text-decoration-thickness: 2px; }
.price-discount__current { color: inherit; font: inherit; }

/* BEGIN button-loading contract; source: party/css/button-loading.css */
/* Button loading contract. Site copy: css/site-base.css; parity: tests/button-loading.test.mjs. */
.button-loading { position: relative; }
.button-loading[aria-busy="true"] { cursor: wait; pointer-events: none; }
.button-loading[aria-busy="true"] > .button-loading__label { animation: button-loading-label 0s .25s forwards; }
.button-loading[aria-busy="true"]::after {
  content: ""; transform: rotate(0deg); position: absolute; inset: 0; margin: auto;
  width: 1em; height: 1em; box-sizing: border-box;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  opacity: 0; animation: button-loading-show 0s .25s forwards, button-loading-spin .75s .25s linear infinite;
}
@keyframes button-loading-label { to { opacity: 0; } }
@keyframes button-loading-show { to { opacity: 1; } }
@keyframes button-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .button-loading[aria-busy="true"]::after { animation: button-loading-show 0s .25s forwards; }
}
/* END button-loading contract */

.button:disabled { opacity: .75; cursor: default; pointer-events: none; }
