@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Blue Winter";
  src: url("/fonts/BlueWinter.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8e6;
  --bg-soft: #f6efd2;
  --surface: #fffdf4;
  --text: #332606;
  --muted: #6a5824;
  --primary: #ffd123;
  --primary-bright: #ffd123;
  --primary-dark: #8a6a10;
  --primary-rgb: 255, 209, 35;
  --primary-bright-rgb: 255, 209, 35;
  --line: rgba(51, 38, 6, 0.12);
  --nav-height: 4.6rem;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Unbounded", "Nunito", sans-serif;
  --hero-ink: #332606;
  --shadow: 0 18px 40px -24px rgba(51, 38, 6, 0.45);
  --radius: 22px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  transform: translateZ(0);
  background: #fffaf1;
}

.site-main {
  flex: 1 0 auto;
  position: relative;
  z-index: 0;
}

.site-nav {
  min-height: var(--nav-height);
  background: #fffaf1;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}

.site-nav-inner {
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit !important;
  line-height: 1;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: inherit !important;
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(2.55rem, 6.4vw, 3.55rem);
  max-width: min(62vw, 16rem);
  object-fit: contain;
}

.site-tabs {
  gap: 0.15rem;
}

@media (min-width: 992px) {
  .site-nav > .site-nav-inner {
    position: relative;
  }

  .site-nav .navbar-collapse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max-content;
    transform: translate(-50%, -50%);
  }

  .site-nav .site-tabs {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.site-nav .nav-link {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--primary);
}

.site-nav .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.site-logout {
  border: 0;
  background: transparent;
  text-decoration: none;
}

.site-logout:hover {
  color: var(--primary);
}

.navbar-light .navbar-toggler {
  border-color: var(--line);
}

.hero {
  --hero-image: url("/images/hero.jpg");
  --hero-text-x: 18%;
  --hero-text-y: 28%;
  --hero-btn-x: 18%;
  --hero-btn-y: 58%;
  --hero-text-x-mobile: 50%;
  --hero-text-y-mobile: 18%;
  --hero-btn-x-mobile: 50%;
  --hero-btn-y-mobile: 78%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  padding: 3rem 1.25rem;
  background-color: #fff6dc;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 241, 0.18) 0%, rgba(255, 250, 241, 0.55) 100%),
    var(--hero-image),
    radial-gradient(ellipse at 50% 42%, #ffd123 0%, #ffe9a3 40%, #fffaf1 74%);
  background-size: cover;
  background-position: center;
}

.hero:not(.hero-editor) {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero:not(.hero-editor):has(.hero-pcb) {
  background-color: #f2e600;
  background-image: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding-bottom: 4.75rem;
}

.hero-pcb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  contain: layout paint;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content,
.hero:not(.hero-editor):has(.hero-pcb) .community-points,
.hero:not(.hero-editor):has(.hero-pcb) > .edit-only {
  position: relative;
  z-index: 1;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content {
  isolation: isolate;
  width: min(54rem, 94%);
  min-width: 0;
  max-width: min(54rem, 94%);
  margin: 0 auto;
}

.hero:not(.hero-editor):has(.hero-pcb)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  --hero-wash: 100%;
  --hero-fade: 5.5rem;
  width: min(100%, var(--hero-wash));
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 34% at 50% 34%, rgba(255, 209, 35, 0.16) 0%, rgba(255, 232, 150, 0.06) 42%, transparent 70%),
    linear-gradient(180deg, #fffaf1 0%, #fff6d4 40%, #fffaf1 100%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    transparent 100%
  );
}

@media (min-width: 576px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(540px - 1.5rem);
  }
}

@media (min-width: 768px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(720px - 1.5rem);
  }
}

@media (min-width: 992px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(960px - 1.5rem);
  }
}

@media (min-width: 1200px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(1140px - 1.5rem);
  }
}

@media (min-width: 1400px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(1320px - 1.5rem);
  }
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content::before {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-heading {
  flex-direction: column;
  gap: 0;
  align-self: stretch;
  width: 100%;
  transform: translateY(-1rem);
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-heading::before {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-community {
  width: 100%;
  padding-bottom: 0;
}

.hero-community-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Unbounded", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.03em;
  text-anchor: middle;
}

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

.hero-community-stroke {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hero-community-glint {
  fill: none;
  stroke: #fff6c4;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 18 120 8 180 24 150 10 210;
  animation: hero-outline-glint 14s linear infinite;
}

.hero-community-fill {
  fill: #111;
  stroke: none;
}

@keyframes hero-outline-glint {
  to {
    stroke-dashoffset: -720;
  }
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-community::before,
.hero:not(.hero-editor):has(.hero-pcb) .hero-community::after {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-quotes {
  width: 100%;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-quote {
  width: min(34rem, 100%);
  margin-top: 0.95rem;
  margin-left: auto;
  margin-right: auto;
  max-width: min(34rem, 100%);
  color: #6a5018;
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
  letter-spacing: 0.01em;
  text-align: center;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point {
  padding: 1.15rem 1rem 1.2rem;
  background: rgba(255, 253, 246, 0.82);
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point-icon {
  width: clamp(5.4rem, 54%, 11rem);
  max-width: calc(100% - 1.4rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.85rem;
  padding: 0.7rem;
  box-sizing: content-box;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 35, 0.34) 0%, rgba(255, 209, 35, 0.08) 58%, transparent 74%);
  opacity: 1;
  transition: background 0.22s ease;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point:hover {
  background: #fffef9;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point:hover .community-point-icon {
  background: radial-gradient(circle, rgba(255, 209, 35, 0.62) 0%, rgba(255, 209, 35, 0.18) 58%, transparent 76%);
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point strong {
  color: #332606;
  letter-spacing: -0.01em;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-points {
  isolation: isolate;
  width: min(60rem, 80%);
  min-width: 0;
  margin: 0.5rem auto 0;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-points::before {
  content: none;
}

.hero-content {
  position: absolute;
  left: var(--hero-text-x);
  top: var(--hero-text-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(720px, calc(100% - 2.5rem));
  text-align: center;
}

.hero:not(.hero-editor) .hero-content {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 auto;
}

.hero-cta {
  position: absolute;
  left: var(--hero-btn-x);
  top: var(--hero-btn-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.hero-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: 190%;
  height: 220%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 46% at 50% 50%,
      rgba(var(--primary-bright-rgb), 0.95) 0%,
      rgba(var(--primary-bright-rgb), 0.55) 28%,
      rgba(var(--primary-rgb), 0.28) 52%,
      transparent 76%);
  filter: blur(8px);
}

.hero-logo {
  display: block;
  height: 2.15em;
  width: auto;
  flex-shrink: 0;
}

.hero-title {
  font-family: "Blue Winter", var(--display);
  font-weight: normal;
  color: var(--primary);
  width: max-content;
  font-size: 1em;
  line-height: 0.95;
  margin: 0 0 1rem;
  text-align: left;
  text-shadow: 0 2px 16px rgba(237, 180, 57, 0.28);
}

.hero:not(.hero-editor) .hero-title {
  margin-bottom: 0;
  text-shadow: none;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title-gamedev {
  color: var(--primary-bright);
  -webkit-text-stroke: 0.07em var(--hero-ink);
  paint-order: stroke fill;
}

.hero-title-city {
  color: var(--hero-ink);
  font-size: 0.62em;
}

.hero-community {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-community-line {
  display: block;
  white-space: nowrap;
  color: var(--hero-ink);
  font-size: clamp(1.2rem, 3.5vw, 2.35rem);
  text-shadow:
    0 0 16px rgba(255, 250, 241, 0.95),
    0 1px 0 rgba(255, 250, 241, 0.8);
}

.hero-community-accent {
  margin-top: 0.08em;
  color: var(--primary-bright);
  font-size: clamp(1.55rem, 4.8vw, 3.25rem);
  -webkit-text-stroke: 0.04em var(--hero-ink);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 rgba(255, 250, 241, 0.28);
}

.hero-quote {
  margin: 0.85rem 0 0;
  max-width: min(36rem, 100%);
  min-height: 2.8em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
  color: var(--hero-ink);
  text-align: center;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-quote.is-fading {
  opacity: 0;
}

.hero-more {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin: 0;
  padding: 0.2rem 0.6rem 0;
  border: 0;
  background: none;
  color: var(--hero-ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.hero-more-arrow {
  width: 1.45rem;
  height: 1.45rem;
  animation: hero-more-bob 1.6s ease-in-out infinite;
}

@keyframes hero-more-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.28rem); }
}

body.is-editing .hero-more {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-quote {
    transition: none;
  }

  .hero-community-glint {
    animation: none;
    stroke: none;
  }

  .hero-more-arrow {
    animation: none;
  }
}

html.is-low-power .hero-community-glint,
html.is-low-power .hero-more-arrow {
  animation: none;
}

html.is-low-power .hero-community-glint {
  stroke: none;
}

@media (update: slow) {
  .hero-community-glint {
    animation: none;
    stroke: none;
  }

  .hero-more-arrow {
    animation: none;
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(255, 250, 241, 0.8);
}

.btn-register,
.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
  font-weight: 800;
  font-size: 1.05rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  animation: pulse-scale 1.6s ease-in-out infinite;
}

.btn-register:hover,
.btn-register:focus,
.btn-support:hover,
.btn-support:focus {
  background: var(--primary);
  color: var(--hero-ink);
  transform: scale(1.08);
  animation: none;
}

.btn-support svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.page-shell,
.home-section {
  padding: 4.5rem 0;
  background: var(--bg);
  contain: layout paint;
}

.home-section-alt {
  background: var(--bg-soft);
}

.section-title,
.page-title {
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: 1rem;
}

.page-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.community-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  width: 100%;
  margin-top: 2rem;
}

.community-point {
  position: relative;
  padding: 1.15rem 1rem 1.2rem;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 24px rgba(166, 124, 26, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.community-point:hover {
  transform: translateY(-6px);
  background: #fffef9;
  border-color: rgba(237, 180, 57, 0.95);
  box-shadow:
    0 18px 34px rgba(237, 180, 57, 0.24),
    0 0 22px rgba(255, 209, 35, 0.28);
}

.community-point-icon {
  display: block;
  width: clamp(5.4rem, 54%, 11rem);
  max-width: calc(100% - 1.4rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  padding: 0.7rem;
  box-sizing: content-box;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .community-point,
  .community-point-icon {
    transition: none;
  }

  .community-point:hover {
    transform: none;
  }
}

.community-point p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.community-point strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
}

.home-carousel {
  position: relative;
  width: 100%;
  min-height: 26rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.home-carousel-track {
  position: relative;
  width: 100%;
  height: 22rem;
}

.home-card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(100% - 7rem);
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
  overflow: hidden;
  cursor: pointer;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 35, 0.22), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.home-card:hover::before {
  left: 100%;
}

.home-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(237, 180, 57, 0.22);
}

.home-carousel .home-card.is-active,
.home-carousel .home-card.is-neighbor {
  visibility: visible;
  pointer-events: auto;
}

.home-carousel:has(.home-game-card) {
  min-height: 17rem;
}

.home-carousel:has(.home-game-card) .home-carousel-track {
  height: 15rem;
}

.home-carousel .home-game-card {
  top: 50%;
  bottom: auto;
  width: 19.15rem;
  max-width: calc(100% - 6rem);
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.home-carousel .home-game-card::before,
.home-carousel .home-game-card:hover::before {
  display: none;
}

.home-carousel .home-game-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.home-card-title,
.home-card-team,
.home-card-text,
.home-card-links {
  position: relative;
  z-index: 1;
}

.home-card-team {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.home-game-card .home-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.home-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.home-carousel-nav:hover,
.home-carousel-nav:focus-visible {
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(237, 180, 57, 0.28);
}

.home-carousel-nav-prev {
  left: 0.5rem;
}

.home-carousel-nav-next {
  right: 0.5rem;
}

.home-carousel-dots {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 25;
}

.home-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 180, 57, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.home-carousel-dot.active {
  width: 1.4rem;
  border-radius: 1rem;
  background: var(--primary);
}

.home-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ghost-btn:hover,
.ghost-btn:focus {
  opacity: 1;
  color: var(--hero-ink);
  border-color: var(--primary-bright);
  background: var(--primary-bright);
}

.home-events {
  display: grid;
  grid-template-columns: minmax(18rem, 28rem) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}

.home-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-event-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 5.4rem;
  margin: 0;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 3px solid var(--primary-bright);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fffefb 0%, #fff6d4 100%);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(237, 180, 57, 0.18);
}

.home-event-option:hover {
  background: linear-gradient(180deg, #fffdf6 0%, #ffeaa8 100%);
  border-color: var(--primary);
}

.home-event-option:has(input:checked) {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 209, 35, 0.72), transparent 62%),
    linear-gradient(165deg, #fffef8 0%, #ffe58a 100%);
  border-color: var(--primary-bright);
  box-shadow: 0 14px 28px rgba(255, 209, 35, 0.42);
}

.home-event-option:focus-within {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.home-event-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-event-date {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 6.1rem;
  min-height: 4.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 2px solid rgba(255, 209, 35, 0.95);
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.home-event-name {
  font-size: 1rem;
  font-weight: 700;
}

.home-event-panel {
  display: flex;
  min-width: 0;
}

.home-event-detail {
  position: relative;
  display: none;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 209, 35, 0.55), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff4cc 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.5rem;
  padding: 1.6rem 1.7rem 1.7rem;
  box-shadow:
    0 18px 42px rgba(237, 180, 57, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-event-detail-mark {
  position: absolute;
  top: -0.35rem;
  right: 0.85rem;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(237, 180, 57, 0.28);
  pointer-events: none;
  user-select: none;
}

.home-event-detail-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-event-detail .event-title {
  max-width: calc(100% - 7.5rem);
  margin-bottom: 1.1rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.home-event-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  margin: 0;
}

.home-event-facts div {
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 209, 35, 0.7);
  border-radius: 1rem;
}

.home-event-facts dt {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-event-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-event-detail .event-description {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(201, 148, 31, 0.35);
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-event-more {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: 0.35rem;
  opacity: 1;
}

.home-events:has(.home-event-list > :nth-child(1) input:checked) .home-event-panel > :nth-child(1),
.home-events:has(.home-event-list > :nth-child(2) input:checked) .home-event-panel > :nth-child(2),
.home-events:has(.home-event-list > :nth-child(3) input:checked) .home-event-panel > :nth-child(3),
.home-events:has(.home-event-list > :nth-child(4) input:checked) .home-event-panel > :nth-child(4),
.home-events:has(.home-event-list > :nth-child(5) input:checked) .home-event-panel > :nth-child(5),
.home-events:has(.home-event-list > :nth-child(6) input:checked) .home-event-panel > :nth-child(6),
.home-events:has(.home-event-list > :nth-child(7) input:checked) .home-event-panel > :nth-child(7),
.home-events:has(.home-event-list > :nth-child(8) input:checked) .home-event-panel > :nth-child(8) {
  display: flex;
  flex: 1;
}

.home-events-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-events-all {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .home-events {
    grid-template-columns: 1fr;
  }

  .home-event-detail-body {
    flex: none;
  }

  .home-event-facts {
    grid-template-columns: 1fr;
  }

  .home-event-detail-mark {
    display: none;
  }

  .home-event-detail .event-title {
    max-width: none;
  }
}

.auth-card,
.profile-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.profile-card {
  max-width: 640px;
}

.profile-label {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.profile-saved {
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.skill-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.skill-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--text);
}

.quiet-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf6;
  color: var(--text);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.auth-input,
.auth-input:focus {
  background: #fffdf6;
  border-color: var(--line);
  color: var(--text);
}

.auth-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-bright-rgb), 0.35);
}

.form-label {
  color: var(--muted);
}

.page-shell a {
  color: var(--primary);
}

.site-footer {
  flex-shrink: 0;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
}

.site-footer-copy {
  margin: 0;
}

.text-danger {
  color: #c45c2a !important;
}

@media (max-width: 991.98px) {
  .hero:not(.hero-editor) .hero-cta {
    left: var(--hero-btn-x-mobile);
    top: var(--hero-btn-y-mobile);
  }

  .navbar-collapse {
    flex-direction: column;
    align-items: stretch;
  }

  .site-tabs,
  .site-auth {
    width: 100%;
    margin: 0;
  }

  .site-nav .nav-link.active {
    box-shadow: inset 3px 0 0 var(--primary);
  }

  .community-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero:not(.hero-editor):has(.hero-pcb) .hero-content {
    max-width: min(40rem, 78%);
  }

  .hero:not(.hero-editor):has(.hero-pcb) .community-points {
    width: min(60rem, 88%);
  }
}

@media (max-width: 575.98px) {
  .hero:not(.hero-editor):has(.hero-pcb) .hero-content {
    max-width: 100%;
    padding-inline: 1rem;
  }

  .hero:not(.hero-editor):has(.hero-pcb) .community-points {
    width: auto;
    margin-inline: -0.65rem;
  }

  .hero:not(.hero-editor):has(.hero-pcb)::after {
    width: 100%;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  }

  .hero-heading {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
  }

  .home-section {
    padding: 3rem 0;
  }

  .home-carousel {
    min-height: 24rem;
  }

  .home-carousel-track {
    height: 18rem;
  }

  .home-card {
    width: calc(100% - 5.5rem);
    padding: 1.5rem;
  }

  .community-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .community-point,
  .hero:not(.hero-editor):has(.hero-pcb) .community-point {
    min-height: 0;
    min-width: 0;
    padding: 0.7rem 0.4rem 0.8rem;
  }

  .community-point p,
  .community-point strong {
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .community-point-icon,
  .hero:not(.hero-editor):has(.hero-pcb) .community-point-icon {
    width: clamp(3.2rem, 58%, 5rem);
    margin-bottom: 0.45rem;
    padding: 0.3rem;
  }

  .community-point p {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    line-height: 1.35;
  }

  .skill-options {
    grid-template-columns: 1fr;
  }
}

.hero-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-editor-modes {
  display: flex;
  gap: 0.5rem;
}

.hero-editor-mode {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
}

.hero-editor-mode:hover,
.hero-editor-mode.is-active {
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
  border-color: var(--primary-bright);
}

.hero-editor-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-editor-upload .form-control {
  width: auto;
  min-width: 12rem;
}

.hero-editor {
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  container-type: inline-size;
}

.hero-editor.is-mobile {
  width: min(390px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.hero-editor .hero-heading {
  font-size: clamp(1.5rem, 8cqi, 3.4rem);
}

.hero-editor .hero-subtitle {
  font-size: clamp(0.9rem, 3.4cqi, 1.2rem);
}

.hero-editor [data-hero-item] {
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: 2px dashed rgba(var(--primary-rgb), 0.75);
  outline-offset: 8px;
}

.hero-editor [data-hero-item].is-dragging {
  cursor: grabbing;
}

.hero-editor .btn-register,
.hero-editor .btn-support {
  animation: none;
  pointer-events: none;
}

body:not(.is-editing) .edit-only {
  display: none !important;
}

.edit-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem;
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(237, 180, 57, 0.24);
}

.edit-bar-btn {
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.edit-bar-save {
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
}

body.is-editing [data-edit] {
  outline: 1px dashed rgba(237, 180, 57, 0.9);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.edit-bar-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.edit-handle,
.edit-remove,
.edit-add {
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.edit-handle,
.edit-remove {
  position: absolute;
  z-index: 5;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
}

.edit-handle {
  top: 0.4rem;
  left: 0.4rem;
  cursor: grab;
}

.edit-remove {
  top: 0.4rem;
  right: 0.4rem;
}

.edit-handle-section {
  top: 1rem;
  left: 1rem;
}

.edit-remove-section {
  top: 1rem;
  right: 1rem;
}

body:not(.is-editing) .home-actions:not(:has(.home-link)) {
  display: none;
}

.home-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

body.is-editing .community-point {
  padding-top: 2.15rem;
}

body.is-editing .home-link {
  padding: 1.7rem 1.5rem 0;
}

.edit-link-target {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf6;
  color: var(--text);
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}

.home-section {
  position: relative;
}

.edit-add {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.edit-add-row {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

body.is-editing .hero-quotes,
body.is-editing .hero:not(.hero-editor):has(.hero-pcb) .hero-quotes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(40rem, 100%);
}

body.is-editing .edit-quote {
  position: relative;
  margin: 0;
  padding: 0.4rem 2.4rem;
  min-height: 0;
}

body.is-editing .home-carousel,
body.is-editing .home-carousel-track {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

body.is-editing .home-carousel-nav,
body.is-editing .home-carousel-dots {
  display: none;
}

body.is-editing .home-card {
  position: relative;
  left: auto;
  top: auto;
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.is-editing .is-dragging {
  opacity: 0.55 !important;
}

.hero-editor-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-shell-form {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.games-status,
.games-empty,
.games-error {
  text-align: center;
  margin: 1.5rem 0 0;
}

.games-status {
  color: var(--primary-dark);
  font-weight: 700;
}

.games-error {
  color: #c45c2a;
}

.games-board {
  min-height: 8rem;
  margin-top: 2rem;
}

.games-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
}

.games-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: games-spin 0.8s linear infinite;
}

@keyframes games-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .games-spinner {
    animation: none;
  }
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.games-list .game-poster {
  width: 100%;
}

.game-poster {
  display: block;
  width: 22rem;
  max-width: 100%;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px rgba(51, 38, 6, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.game-poster:hover,
a.game-poster:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(237, 180, 57, 0.22);
  color: var(--text);
  transform: translateY(-3px);
}

.game-poster-frame {
  display: block;
  padding: 0.4rem;
  border-radius: 1rem;
  background: var(--primary-bright);
}

.game-poster-image,
.game-poster-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  border-radius: 0.75rem;
}

.game-poster-image {
  object-fit: cover;
}

.game-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, #fffefb 0%, #fff3d6 100%);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-shell a.game-poster,
.page-shell a.game-poster:hover,
.page-shell a.game-poster:focus {
  color: var(--text);
}

.game-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.game-page-title {
  margin-bottom: 0.5rem;
}

.game-page-team {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.game-page .game-full,
.game-page .game-links {
  width: 100%;
}

.game-page .game-links {
  justify-content: center;
}

.game-back {
  margin: 0 0 1.5rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .game-poster {
    transition: none;
  }

  a.game-poster:hover,
  a.game-poster:focus-visible {
    transform: none;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 22rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.game-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.game-meta {
  margin: 0.45rem 0 0;
  color: var(--text);
}

.game-meta span {
  color: var(--muted);
  margin-right: 0.35rem;
}

.game-full {
  margin: 0.85rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.game-links,
.game-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.game-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.page-shell a.game-link,
.page-shell a.btn-register {
  color: var(--hero-ink);
}

.page-shell a.game-link:hover,
.page-shell a.game-link:focus {
  background: var(--primary-bright);
  color: var(--hero-ink);
}

.games-add-row {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
}

.games-add-row .btn-register,
.game-form-card .btn-register,
.game-review-actions .btn-register {
  animation: none;
}

.game-form-card {
  width: 100%;
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.game-optional {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.game-form-card textarea.auth-input {
  min-height: 0;
  resize: vertical;
}

.events-page {
  background:
    radial-gradient(42rem 16rem at 50% -2rem, rgba(255, 209, 35, 0.34), transparent 70%);
}

.events-head {
  max-width: 40rem;
  margin: 0 auto 0.25rem;
}

.events-head .page-lead {
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.55;
}

.events-empty {
  max-width: 36rem;
  margin: 2.25rem auto 0;
  padding: 1.6rem 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(180deg, #fffefb 0%, #fff6d4 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.35rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  width: 100%;
  padding: 0.9rem 1.2rem 1.05rem 0.85rem;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 209, 35, 0.38), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff6d8 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.35rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-shell a.event-card,
.page-shell a.event-card:hover,
.page-shell a.event-card:focus {
  color: var(--text);
  text-decoration: none;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(237, 180, 57, 0.28);
}

a.event-card:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.event-date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 6.1rem;
  padding: 0.45rem 0.35rem 0.5rem;
  background: #fff;
  border: 2px solid rgba(255, 209, 35, 0.95);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.event-date-day {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  margin-top: 0.2rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date-year {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.event-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.event-place {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 209, 35, 0.7);
  border-radius: 999px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-place span {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-description {
  margin: 0.85rem 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@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;
    gap: 0.05rem;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0 0.7rem 0 0;
  }

  .event-date-month,
  .event-date-year {
    margin-top: 0;
  }

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

.event-page {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}

.event-page-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  text-shadow: 0 10px 28px rgba(237, 180, 57, 0.28);
  animation: event-rise 0.7s ease both;
}

.event-page-when {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  animation: event-rise 0.7s ease 0.08s both;
}

.event-page-rule {
  width: 4.75rem;
  height: 3px;
  margin: 1.05rem auto 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-bright), var(--primary-dark), transparent);
  background-size: 200% 100%;
  animation: event-shimmer 3.8s ease-in-out infinite, event-rise 0.7s ease 0.12s both;
}

.event-page-place {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  animation: event-rise 0.7s ease 0.16s both;
}

.event-page-place span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-page .event-description {
  margin-top: 1.55rem;
  font-size: 1.06rem;
  line-height: 1.7;
  animation: event-rise 0.75s ease 0.2s both;
}

.event-page-actions {
  margin: 1.75rem 0 0;
  text-align: center;
  animation: event-rise 0.7s ease 0.24s both;
}

.event-page .btn-register {
  animation: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.event-page .btn-register:hover,
.event-page .btn-register:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(237, 180, 57, 0.34);
}

@keyframes event-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card {
    transition: none;
  }

  .event-card:hover {
    transform: none;
  }

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

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.55rem;
  padding: 0;
  list-style: none;
}

.social-link {
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(237, 180, 57, 0.38);
}

.social-link:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 4px;
}

.partnership-page {
  background:
    radial-gradient(42rem 16rem at 50% -2rem, rgba(255, 209, 35, 0.34), transparent 70%);
}

.partnership-head {
  max-width: 46rem;
  margin: 0 auto;
}

.partnership-head .page-title {
  margin-bottom: 1.35rem;
  line-height: 1.25;
}

.partnership-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partnership-copy p {
  margin: 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
}

.partnership-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 34rem);
  padding: 1rem 1.35rem 1rem 1rem;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 209, 35, 0.38), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff6d8 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.5rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
}

.contact-photo {
  flex-shrink: 0;
  width: 7.75rem;
  height: 7.75rem;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 1.2rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-bright);
}

.contact-body {
  min-width: 0;
}

.contact-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-role {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.page-shell a.contact-telegram {
  display: inline-block;
  width: 2.15rem;
  height: 2.15rem;
  margin-top: 0.75rem;
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-telegram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-shell a.contact-telegram:hover,
.page-shell a.contact-telegram:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
}

.page-shell a.contact-telegram:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.partnership-note {
  max-width: 40rem;
  margin: 2.35rem auto 0;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 1rem 1.3rem;
  }

  .contact-photo {
    width: 8.5rem;
    height: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell a.contact-telegram {
    transition: none;
  }

  .page-shell a.contact-telegram:hover,
  .page-shell a.contact-telegram:focus-visible {
    transform: none;
  }
}
