/* Visual system ported from the Open Design refresh.
   Loaded after site.css so shared families pick up one language. */

body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:root {
  --nav-height: 74px;
}

.site-header {
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
}

.site-nav {
  min-height: var(--nav-height);
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.site-nav-inner {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  min-height: var(--nav-height);
  padding-inline: clamp(18px, 4vw, 40px);
  align-items: center;
}

.site-brand.navbar-brand {
  margin: 0;
  padding: 0;
  gap: 12px;
  align-items: center;
}

.site-nav .nav-link {
  border-radius: 999px;
  font-weight: 700;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  background: #fff1a8;
  color: var(--text);
}

.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 1.8rem;
}

.site-footer-legal {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.site-footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: var(--text);
}

.page-shell,
.home-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.home-section-alt {
  background: #f7f0cc;
}

.section-title,
.page-title {
  text-align: left;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.page-lead,
.section-title + .page-lead {
  text-align: left;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.events-page {
  background: transparent;
}

.events-head,
.partnership-head {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.events-head .page-lead,
.partnership-head,
.partnership-head .page-title,
.partnership-copy,
.partnership-copy p,
.partnership-note {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.partnership-page,
.page-shell-form {
  background: transparent;
}

.partnership-contacts {
  justify-content: start;
}

.games-error,
.games-empty,
.events-empty {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.3rem;
  text-align: left;
  background: var(--surface);
  border: 1px dashed rgba(51, 38, 6, 0.22);
  border-radius: var(--radius);
  box-shadow: none;
}

.games-add-row {
  justify-content: flex-start;
}

.catalog-head {
  margin-bottom: 1.75rem;
}

.catalog-head-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.catalog-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem 2.75rem;
  width: 100%;
  margin-top: 0.85rem;
}

.catalog-head .page-title {
  margin-top: 0.15rem;
}

.page-shell a.catalog-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #2a1d05;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(51, 38, 6, 0.06), 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-shell a.catalog-add:hover,
.page-shell a.catalog-add:focus {
  background: #ffe14a;
  border-color: #ffe14a;
  color: #2a1d05;
  transform: translateY(-1px);
}

.catalog-add svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

.community-points {
  gap: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.community-point {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.4rem 1.1rem 0.4rem;
}

.community-point:last-child {
  border-right: 0;
}

.community-point:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.community-point-icon {
  width: 4.2rem;
  margin: 0 0 0.7rem;
  padding: 0;
}

.community-point strong,
.community-point p {
  text-align: left;
}

.btn-register,
.ghost-btn,
.game-link {
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-register {
  background: var(--primary);
  color: var(--text);
}

.btn-register:hover,
.btn-register:focus,
.ghost-btn:hover,
.ghost-btn:focus {
  transform: translateY(-1px);
  background: #d7a22a;
  color: var(--text);
  border-color: #d7a22a;
}

.ghost-btn,
.game-link {
  background: var(--surface);
  border-color: rgba(51, 38, 6, 0.18);
  color: var(--text);
}

.events-list,
.list-stack {
  display: grid;
  gap: 0.9rem;
  max-width: none;
  margin-top: 1.5rem;
}

.event-card,
.home-event-option,
.home-event-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 1.15rem 1.3rem;
}

.event-card:hover,
.home-event-option:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.event-date,
.home-event-date {
  min-width: 4.6rem;
  min-height: 0;
  padding: 0 1rem 0 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.event-date-day,
.home-event-date {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

.event-date-month {
  color: var(--primary-dark);
  letter-spacing: 0.12em;
}

@media (max-width: 575.98px) {
  .event-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 0.65rem;
    padding: 0.95rem 0.85rem;
  }

  .event-date {
    flex-direction: column;
    align-items: center;
    width: auto;
    min-width: 0;
    padding: 0 0.7rem 0 0;
  }

  .event-body {
    min-width: 0;
    padding-top: 0;
  }
}

.event-place {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0 0;
}

.home-event-option {
  min-height: 4.6rem;
  border-width: 1px;
  background: var(--surface);
}

.home-event-option:has(input:checked) {
  background: #f8edd4;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.home-events {
  gap: 1rem;
}

.home-event-facts div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.2rem 0;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 28.75rem));
  gap: 1.3rem;
  justify-content: center;
}

.games-board .games-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-list > li:has(> .game-poster),
.game-poster {
  width: 100%;
  max-width: none;
  flex: none;
}

.game-poster {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.game-poster-frame {
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.game-poster:hover .game-poster-frame,
a.game-poster:focus-visible .game-poster-frame {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

a.game-poster:hover,
a.game-poster:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.game-poster-image,
.game-poster-fallback {
  aspect-ratio: 460 / 215;
  object-fit: contain;
}

.games-board .game-poster-image,
.games-board .game-poster-fallback,
.entity__aside .game-poster-image,
.entity__aside .game-poster-fallback,
.home-game-card .game-poster-image,
.home-game-card .game-poster-fallback {
  aspect-ratio: 460 / 215;
  object-fit: contain;
  border-radius: 0;
}

.game-poster-fallback {
  background:
    linear-gradient(to right, rgba(51, 38, 6, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 38, 6, 0.08) 1px, transparent 1px),
    linear-gradient(150deg, #ffe56a 0%, var(--primary) 100%);
  background-size: 18px 18px, 18px 18px, auto;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.entity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.entity__main {
  min-width: 0;
}

.entity__aside {
  display: grid;
  gap: 1rem;
}

.game-page .entity__aside {
  gap: 1.25rem;
  align-content: start;
}

.game-page,
.event-page {
  max-width: none;
  margin: 0;
  align-items: stretch;
}

.event-page {
  display: block;
}

.event-page-title,
.event-page-when,
.event-page-rule,
.event-page-place,
.event-page .event-description,
.event-page-actions {
  animation: none;
}

.event-page-title,
.game-page-title,
.game-page-team,
.event-page-when,
.event-page-place {
  text-align: left;
}

.event-page-rule {
  margin-left: 0;
}

.event-page .event-description {
  max-width: none;
  white-space: pre-wrap;
}

.event-page-actions {
  text-align: left;
}

.game-full {
  max-width: 66ch;
  white-space: pre-wrap;
  padding-top: 0;
  border-top: 0;
}

.game-back,
.back-link {
  text-align: left;
  font-weight: 800;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.panel,
.game-form-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card {
  text-align: left;
}

.contact-photo {
  border-radius: 26px;
}

.game-form-card .auth-input,
.game-form-card textarea.auth-input {
  border-radius: 999px;
  border: 1px solid rgba(51, 38, 6, 0.2);
  min-height: 3.1rem;
  background: var(--surface);
}

.game-form-card textarea.auth-input {
  border-radius: 16px;
}

.game-link-fields {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  min-inline-size: 0;
}

.game-link-fields > .form-label {
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.game-link-field + .game-link-field {
  margin-top: 0.75rem;
}

.game-form-card .field-error {
  display: block;
  margin: 0.4rem 0 0 0.9rem;
  color: #c45c2a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.game-form-consent {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.game-form-card .field-error[hidden] {
  display: none;
}

.game-form-card .auth-input.is-invalid,
.game-form-card .auth-input.is-invalid:focus,
.game-form-card textarea.auth-input.is-invalid,
.game-form-card textarea.auth-input.is-invalid:focus {
  border-color: #c45c2a;
  box-shadow: 0 0 0 3px rgba(196, 92, 42, 0.15);
}

.partnership-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--primary);
}

.error-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 1.25rem;
  text-align: center;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
}

.error-page p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .entity {
    grid-template-columns: 1fr;
  }

  .community-points {
    grid-template-columns: 1fr 1fr;
  }

  .community-point:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .games-board .games-list {
    grid-template-columns: 1fr;
  }

  .community-points {
    grid-template-columns: 1fr;
  }

  .community-point {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.section-title,
.page-title {
  text-shadow: 0 0 28px rgba(var(--primary-rgb), 0.22);
}

.btn-register,
.btn-support {
  box-shadow: 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
}

.hero.hero-neon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vh, 1.5rem);
  width: 100%;
  max-width: 100%;
  min-height: calc(100svh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding: clamp(1.25rem, 3.5vh, 2.75rem) 0 clamp(0.6rem, 2vh, 1.15rem);
  background-color: var(--bg);
  background-image: none;
}

.hero.hero-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(51, 38, 6, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 38, 6, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
}

.hero.hero-neon::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: anchor(--hero-title center);
  top: anchor(--hero-title center);
  width: clamp(16rem, 52vw, 40rem);
  width: min(
    46rem,
    max(
      18rem,
      calc(anchor-size(--hero-title width) + 6rem),
      calc(anchor-size(--hero-title height) + 5rem)
    )
  );
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 226, 140, 0.5) 0%, rgba(255, 209, 35, 0.2) 34%, transparent 68%);
  filter: blur(14px);
  animation: hero-aura 7s ease-in-out infinite;
}

.hero-neon-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  flex: 1 1 auto;
  width: min(100%, 1200px);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.hero.hero-neon .hero-content {
  position: relative;
  z-index: 2;
  left: auto;
  top: auto;
  transform: none;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  align-items: stretch;
  text-align: left;
}

.hero.hero-neon .hero-heading {
  font-size: 1rem;
}

.hero.hero-neon .hero-heading::before {
  content: none;
}

.hero.hero-neon .hero-community {
  anchor-name: --hero-title;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2.4rem, 5.6vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--hero-ink);
}

.hero.hero-neon .hero-community-word {
  display: block;
  position: relative;
  width: fit-content;
  color: transparent;
}

.hero.hero-neon .hero-community-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  font-family: inherit;
  font-weight: inherit;
  font-size: 1em;
  letter-spacing: inherit;
}

.hero.hero-neon .hero-community-shadow {
  fill: rgba(20, 12, 0, 0.28);
  stroke: none;
}

.hero.hero-neon .hero-community-stroke,
.hero.hero-neon .hero-community-glint {
  fill: none;
  stroke-width: 0.07em;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hero.hero-neon .hero-community-stroke {
  stroke: var(--primary);
}

.hero.hero-neon .hero-community-glint {
  stroke: #fff6c4;
  stroke-dasharray: 0.25em 1.67em 0.11em 2.5em 0.33em 2.08em 0.14em 2.92em;
  animation: hero-outline-glint 14s linear infinite;
}

.hero.hero-neon .hero-community-fill {
  fill: var(--hero-ink);
  stroke: none;
}

.hero.hero-neon .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.35rem;
}

.hero.hero-neon .hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero.hero-neon .hero-action-primary {
  background: var(--primary);
  color: #2a1d05;
  border-color: var(--primary);
  box-shadow: 0 8px 18px -14px rgba(51, 38, 6, 0.7), 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
}

.hero.hero-neon .hero-action-primary:hover,
.hero.hero-neon .hero-action-primary:focus {
  background: #ffe14a;
  border-color: #ffe14a;
  color: #2a1d05;
  transform: translateY(-1px);
}

.hero.hero-neon .hero-action-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(51, 38, 6, 0.22);
}

.hero.hero-neon .hero-action-secondary:hover,
.hero.hero-neon .hero-action-secondary:focus {
  background: #fff1a8;
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
}

.hero.hero-neon .hero-quote {
  width: 100%;
  max-width: 40rem;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero.hero-neon .hero-more {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  transform: none;
  align-self: center;
  margin: 0.2rem auto 0;
}

.home-reasons {
  padding: clamp(0.35rem, 1vw, 0.75rem) 0 clamp(3.5rem, 8vw, 6.75rem);
  background: var(--bg);
}

.home-reasons-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-reasons-head .eyebrow {
  max-width: 45rem;
}

.home-reasons-title,
.home-join-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: 0 0 28px rgba(var(--primary-rgb), 0.22);
}

.home-reasons-title {
  max-width: 45rem;
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
}

.home-reasons-lead,
.home-join-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.home-reasons-lead {
  width: 100%;
  max-width: none;
}

.home-reasons .community-points {
  width: 100%;
}

.home-join {
  padding: 0 0 clamp(3.5rem, 8vw, 6.75rem);
  background: var(--bg);
}

.home-join-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.home-join-copy {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.home-join-lead {
  max-width: none;
}

.home-join-title {
  white-space: nowrap;
}

.home-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.home-join .hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(51, 38, 6, 0.22);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-join .hero-action:hover,
.home-join .hero-action:focus {
  background: #fff1a8;
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
}


.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  pointer-events: none;
}

.event-feature {
  display: grid;
  overflow: hidden;
  width: 100%;
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.event-feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 22px -6px rgba(var(--primary-rgb), 0.85);
}

.event-feature__media {
  position: relative;
  background: var(--bg-soft);
}

.event-feature__media img {
  width: 100%;
  height: auto;
  display: block;
}

.event-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: clamp(14px, 1.6vw, 18px) clamp(16px, 2vw, 20px);
  background: var(--surface);
  border-top: 1px solid rgba(var(--primary-rgb), 0.45);
  box-shadow: inset 0 1px 0 rgba(var(--primary-rgb), 0.22);
}

.event-feature__actions .hero-action {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  gap: 8px;
}

.event-feature__actions svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.trace-panel {
  position: relative;
  width: min(100%, calc((100dvh - var(--nav-height) - 7rem) * 560 / 440));
  aspect-ratio: 560 / 440;
  margin-inline: auto;
  border-radius: clamp(18px, 2vw, 30px);
  overflow: hidden;
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(51, 38, 6, 0.16);
  box-shadow: var(--shadow), 0 0 36px -14px rgba(var(--primary-rgb), 0.7);
}

.trace-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--primary-rgb), 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--primary-rgb), 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 42%, #000 42%, transparent 88%);
  mask-image: radial-gradient(120% 120% at 50% 42%, #000 42%, transparent 88%);
}

.trace {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.trace__line {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace__pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 86;
  filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.95));
}

.trace__pulse path {
  animation: trace-flow 8s linear infinite;
}

.trace__pulse path:nth-child(2) { animation-delay: 1.1s; animation-duration: 7.4s; }
.trace__pulse path:nth-child(3) { animation-delay: 2.4s; animation-duration: 8.6s; }
.trace__pulse path:nth-child(4) { animation-delay: 3.5s; animation-duration: 7.8s; }
.trace__pulse path:nth-child(5) { animation-delay: 0.7s; animation-duration: 9.2s; }
.trace__pulse path:nth-child(6) { animation-delay: 3s; animation-duration: 8.2s; }
.trace__pulse path:nth-child(7) { animation-delay: 1.7s; animation-duration: 8.8s; }
.trace__pulse path:nth-child(8) { animation-delay: 4.3s; animation-duration: 7.6s; }

.trace__nodes {
  color: var(--primary);
  animation: trace-nodes 4.5s ease-in-out infinite;
}

.trace__chip {
  fill: #fff6cc;
  stroke: var(--primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.7));
}

.trace__chip-inner {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.65);
  stroke-width: 1.4;
}

.trace__core {
  fill: var(--primary);
}

@keyframes hero-aura {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes trace-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}

@keyframes trace-nodes {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .hero.hero-neon {
    min-height: calc(100svh - var(--nav-height));
    justify-content: flex-start;
  }

  .hero-neon-layout {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
  }

  .trace-panel {
    width: 100%;
    max-width: none;
  }

  .event-feature {
    max-width: 520px;
    margin-inline: auto;
  }

  .hero.hero-neon .hero-content,
  .hero.hero-neon .hero-quote,
  .hero.hero-neon .hero-community {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero.hero-neon .hero-community {
    /* Longest line ("Новосибирское") is ~10em; keep it inside the layout padding. */
    font-size: min(clamp(2.4rem, 5.6vw, 4.15rem), 9.5cqi);
  }

  .hero.hero-neon .hero-community-word {
    margin-inline: auto;
  }

  .hero.hero-neon .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .home-join-title {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero.hero-neon .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero.hero-neon .hero-action {
    width: 100%;
    white-space: normal;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero.hero-neon {
    padding-block: 1rem 0.45rem;
    gap: 0.5rem;
  }

  .trace-panel {
    width: min(100%, calc((100dvh - var(--nav-height) - 4.5rem) * 560 / 440));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-neon::after,
  .trace__pulse path,
  .trace__nodes {
    animation: none;
  }

  .hero.hero-neon::after {
    opacity: 0.8;
  }

  .trace__pulse path {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
}

@media (max-width: 640px) {
  .home-reasons {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100dvh;
    padding: clamp(0.35rem, 1vw, 0.75rem) 0 0.75rem;
  }

  .home-reasons > .container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .home-reasons-head {
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }

  .home-reasons-title {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  }

  .home-reasons-lead {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .home-reasons .community-points {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 100%;
    min-height: 0;
    margin-top: 0;
    border-top: 1px solid var(--line);
  }

  .home-reasons .community-point {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: 0.7rem 0.65rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .home-reasons .community-point:nth-child(2n) {
    border-right: 0;
  }

  .home-reasons .community-point:nth-child(n + 3) {
    border-bottom: 0;
  }

  .home-reasons .community-point-icon {
    width: 2.4rem;
    margin: 0 0 0.4rem;
    padding: 0;
  }

  .home-reasons .community-point p,
  .home-reasons .community-point strong {
    text-align: left;
  }

  .home-reasons .community-point p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .home-reasons .community-point strong {
    margin-bottom: 0.2rem;
  }
}

/* Page intros match the template wrap (1200px) and the 60ch lead. */
.events-page,
.catalog-page,
.partnership-page,
.privacy-page {
  padding-top: clamp(40px, 6vw, 76px);
}

.events-page > .container,
.catalog-page > .container,
.partnership-page > .container,
.privacy-page > .container,
.game-detail-page > .container,
.page-shell-form > .container {
  width: 100%;
  max-width: 1200px;
  padding-top: 0 !important;
  padding-inline: clamp(18px, 4vw, 40px);
}

.events-page .page-title,
.catalog-page .page-title,
.partnership-page .page-title,
.privacy-page .page-title {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.events-page .events-head,
.partnership-page .partnership-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}

.catalog-page .catalog-head-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: none;
}

.events-page .page-lead,
.partnership-page .partnership-copy,
.partnership-page .partnership-copy p,
.partnership-page .partnership-note {
  max-width: 60ch;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.catalog-page .page-lead {
  flex: 1 1 auto;
  max-width: 68ch;
  margin-top: 0;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .catalog-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.events-page .page-lead,
.partnership-page .partnership-copy {
  margin-top: 8px;
}

.partnership-page .partnership-copy p {
  margin-top: 0;
}

.partnership-page .partnership-copy {
  gap: 0.9rem;
}

.partnership-page .partnership-note {
  max-width: 640px;
  margin-top: 2.35rem;
}

.partnership-page .partnership-head {
  width: 100%;
  max-width: none;
}

.partnership-page .partnership-copy,
.partnership-page .partnership-copy p,
.partnership-page .partnership-note {
  align-self: stretch;
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: left;
}

.privacy-head,
.privacy-copy {
  width: 100%;
  max-width: none;
}

.privacy-head {
  margin-bottom: 2rem;
}

.privacy-page .page-title {
  width: 100%;
  font-size: clamp(1.05rem, 0.45rem + 1.55vw, 1.875rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
  hyphens: none;
  overflow-wrap: normal;
}

@media (max-width: 720px) {
  .privacy-page .page-title {
    white-space: normal;
    font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  }
}

.privacy-head .page-lead {
  margin-top: 0.85rem;
  max-width: none;
}

.privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: justify;
  text-align-last: left;
}

.privacy-goal {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  text-align-last: auto;
}

.privacy-goal h3 {
  margin: 0;
  padding: 0.9rem 1rem 0;
  font-size: 1.02rem;
}

.privacy-goal dl {
  margin: 0;
}

.privacy-goal dl > div {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.privacy-goal dl > div:first-child {
  border-top: 0;
}

.privacy-goal dt,
.privacy-goal dd {
  margin: 0;
}

.privacy-goal dt {
  font-size: 0.92rem;
  font-weight: 800;
}

.privacy-goal dd ul {
  margin: 0;
}

@media (max-width: 640px) {
  .privacy-copy {
    text-align: left;
    text-align-last: auto;
  }

  .privacy-goal dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.privacy-copy h2,
.privacy-copy h3 {
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.privacy-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.privacy-copy h3 {
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.privacy-copy .privacy-goal h3 {
  margin: 0;
  padding: 0.9rem 1rem 0;
  font-size: 1.02rem;
}

.privacy-copy p,
.privacy-copy li {
  font-size: 1.05rem;
  line-height: 1.55;
}

.privacy-copy p {
  margin: 0 0 0.75rem;
}

.privacy-copy p:last-child {
  margin-bottom: 0;
}

.privacy-copy ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.privacy-copy li + li {
  margin-top: 0.35rem;
}

.privacy-copy code,
.privacy-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}
