@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  /* sampled directly from the reference image with a pixel eyedropper */
  --navy: #1c1259;          /* main ink: headings, body text, phone number */
  --navy-soft: #7c62d9;     /* subheading tint ("в которые хочется...") */
  --violet: #8a6ffe;        /* core accent: buttons, icons, illustrations */
  --violet-ring: #4622ca;   /* deep accent for thin rings/underlines only */
  --violet-light: #cabcf5;  /* light accent for gradient endpoints */
  --pink: #d56bf3;          /* soundwave / glow pink */
  --pink-light: #f6d9f0;
  --blue: #698af1;          /* soundwave / glow blue */
  --blue-light: #d3e3fb;
  --primary: #8a6ffe;
  --primary-dark: #7355e0;
  --ink: #1c1259;
  --text: #1c1259;
  --muted: #6f6398;
  --bg: #e9e1fb;
  --card-bg: #e9e0fb;
  --card-bg-light: #f2ecfd;
  --glass: rgba(233, 224, 251, 0.72);
  --glass-light: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --border: #e9e1fa;
  --radius: 18px;
  --shell: 1360px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: #f7f4fc;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.38)),
    url("/images/quiz/background-source.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-width: 320px;
  line-height: 1.55;
}

.container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 48px), var(--shell));
    max-width: none;
    padding-inline: 0;
  }
}

a { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 10px 10px 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
  font-family: inherit;
}

.btn > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.btn-primary {
  background: linear-gradient(100deg, #c99bef 0%, #9b7ff6 45%, #7d6dff 75%, #7fa0f7 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(126, 108, 179, 0.14), 0 0 22px rgba(125, 109, 255, 0.16), inset 0 1px rgba(255, 255, 255, 0.5);
}

.btn-primary .btn-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #6f52d6;
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(126, 108, 179, 0.16), 0 0 26px rgba(125, 109, 255, 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-disabled {
  background: #e4dff2;
  color: #a79ecb;
  cursor: not-allowed;
  box-shadow: none;
  border-color: transparent;
}

.btn-disabled:hover {
  background: #e4dff2;
  transform: none;
}

.btn-reserve {
  background: linear-gradient(100deg, #ef82d8 0%, #db68d3 46%, #a860e8 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(200, 87, 211, 0.2), 0 0 22px rgba(218, 103, 211, 0.16), inset 0 1px rgba(255, 255, 255, 0.5);
}

.btn-reserve .btn-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #a45ae4;
}

.btn-reserve:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 16px 0 0;
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}


.header-glass {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 14px 30px;
  border-radius: 24px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.mobile-page-heading { display: none; }
.mobile-page-title { display: none; }

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  white-space: nowrap;
  padding: 4px 0;
}

.main-nav a:hover { color: var(--violet); }

.main-nav a.active { font-weight: 700; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
}

.nav-loyalty-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-new-badge {
  position: absolute;
  top: -25px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: linear-gradient(110deg, #ee9ada 0%, #bd79ef 55%, #9f7af4 100%);
  color: #fff;
  box-shadow: 0 5px 13px rgba(179, 100, 214, .28);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.public-admin-link {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(100% + 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 124px;
  min-height: 52px;
  margin-left: 0;
  padding: 14px 24px;
  border: 1px solid rgba(92, 62, 190, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--violet);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(88, 58, 154, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%);
  transition: background-color var(--ease), border-color var(--ease);
}

.public-admin-link:hover { border-color: var(--violet); background: #fff; }
.public-admin-link:focus-visible { outline: 3px solid rgba(129, 95, 238, .28); outline-offset: 2px; }

.social-icon {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity var(--ease);
}

.social-icon:hover { opacity: 0.7; }

.social-icon svg,
.social-icon .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet-light), var(--violet));
  color: #fff;
  padding: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(126, 108, 179, 0.16);
}

.social-icon svg { fill: currentColor; }

.social-icon .icon-badge { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}

/* Keep the desktop header identical to the homepage hero header on inner pages. */
@media (min-width: 881px) {
  .site-header {
    padding-top: 32px;
  }

  .site-header-inner {
    width: min(calc(100% - 48px), var(--shell));
    min-height: 122px;
  }

  .header-glass {
    min-height: 122px;
    padding: 20px 28px;
    justify-content: space-between;
    gap: 36px;
    border-radius: 37px;
    background: rgba(255, 255, 255, .56);
    border-color: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 55px rgba(99, 65, 151, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .main-nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(34px, 3.9vw, 65px);
  }

  .main-nav a {
    padding: 0;
    font-size: clamp(18px, 1.45vw, 24px);
    line-height: 1.2;
  }

  .main-nav a.active::after {
    bottom: -22px;
    height: 3px;
    border-radius: 999px;
  }

  .social-icons {
    flex: 0 0 auto;
    gap: 25px;
  }

  .site-header .social-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #ad87f4 0%, #7254f2 100%);
    box-shadow: 0 10px 26px rgba(111, 77, 213, .18);
  }

  .site-header .social-icon svg,
  .site-header .social-icon .icon-badge {
    width: 60px;
    height: 60px;
    padding: 14px;
    background: transparent;
    box-shadow: none;
  }

  .site-header .social-icon .icon-badge {
    font-size: 17px;
  }
}

@media (min-width: 881px) and (max-width: 1279px) {
  .site-header {
    padding-top: 24px;
  }

  .site-header-inner,
  .header-glass {
    min-height: 96px;
  }

  .header-glass {
    padding: 16px 28px;
    border-radius: 29px;
  }

  .main-nav {
    gap: clamp(15px, 2vw, 26px);
  }

  .main-nav a {
    font-size: clamp(15px, 1.55vw, 18px);
  }

  .nav-new-badge {
    top: -21px;
    right: -9px;
    min-height: 19px;
    padding: 2px 7px;
    font-size: 8px;
  }

  .site-header .social-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .site-header .social-icon svg,
  .site-header .social-icon .icon-badge {
    width: 50px;
    height: 50px;
    padding: 11px;
  }

  .site-header .social-icon .icon-badge {
    font-size: 15px;
  }
}

@media (min-width: 881px) and (max-width: 1100px) {
  .main-nav .desktop-photos-link { display: none; }
}

@media (min-width: 881px) and (max-width: 1023px) {
  .header-glass {
    padding-inline: 24px;
  }

  .main-nav {
    gap: 24px;
  }
}

@media (min-width: 881px) and (max-width: 1720px) {
  .site-header-inner--admin {
    padding-top: 62px;
  }

  .site-header-inner--admin > .public-admin-link {
    top: 0;
    right: 0;
    left: auto;
    transform: none;
  }
}

/* Hero markup lives in views/index.ejs using public/css/hero.css (self-contained hero-* classes). */

/* ---------- Schedule ---------- */
.quiz-schedule {
  padding: 56px 0 28px;
  scroll-margin-top: 24px;
}

.quiz-schedule__head {
  position: relative;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 15px 32px 17px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: linear-gradient(105deg, rgba(248, 238, 255, .87), rgba(228, 220, 255, .75), rgba(221, 236, 255, .8));
  box-shadow: 0 14px 30px rgba(100, 74, 167, .12), inset 0 1px rgba(255, 255, 255, .85);
}

.quiz-schedule__eyebrow {
  margin: 0 0 2px;
  color: #9575dd;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quiz-schedule h2 {
  margin: 0;
  color: var(--navy);
  font: 700 clamp(40px, 4.2vw, 58px)/.88 var(--serif);
  letter-spacing: -.025em;
}

.quiz-schedule__month {
  margin: 8px 0 0;
  background: linear-gradient(100deg, #7658ff, #b061ed 54%, #ed71ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #9662e9;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.quiz-schedule__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quiz-schedule__item {
  display: grid;
  grid-template-columns: 105px 88px minmax(0, 1fr) 42px;
  align-items: stretch;
  min-height: 122px;
  overflow: hidden;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid rgba(132, 102, 235, .3);
  border-radius: 20px;
  background: rgba(248, 244, 255, .83);
  box-shadow: 0 8px 0 rgba(121, 92, 186, .12), inset 0 1px rgba(255, 255, 255, .85);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.quiz-schedule__item:hover {
  transform: translateY(-3px);
  border-color: rgba(121, 87, 238, .62);
  box-shadow: 0 13px 23px rgba(104, 72, 175, .16), inset 0 1px rgba(255, 255, 255, .85);
}

.quiz-schedule__date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px 8px;
  border-right: 1px solid rgba(132, 102, 235, .2);
  background: linear-gradient(155deg, rgba(230, 213, 255, .88), rgba(246, 235, 255, .76));
}

.quiz-schedule__date strong {
  background: linear-gradient(105deg, #e746bc, #895df2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b35ce3;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.quiz-schedule__date span {
  color: #4d3d96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}

.quiz-schedule__image {
  width: 88px;
  height: 100%;
  object-fit: cover;
}

.quiz-schedule__info {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 13px 10px 12px 14px;
}

.quiz-schedule__format,
.quiz-schedule__era,
.quiz-schedule__venue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-schedule__format {
  color: #785bd8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.quiz-schedule__music {
  overflow: hidden;
  background: linear-gradient(100deg, #634cf2, #9b61f1 50%, #dc65ca);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7758ef;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-schedule__era { color: #d057a9; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.quiz-schedule__venue { color: #675a94; font-size: 12px; font-weight: 650; }
.quiz-schedule__venue::before { content: '⌖ '; color: #a15eea; }

.quiz-schedule__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d568dc, #7659ef);
  box-shadow: 0 5px 12px rgba(124, 86, 225, .26);
}
.quiz-schedule__arrow svg { width: 16px; height: 16px; }
.quiz-schedule__empty { margin: 0; text-align: center; color: var(--muted); }

/* ---------- Games section ---------- */
.games-section {
  padding: 40px 0 60px;
  scroll-margin-top: 100px;
}

.games-section h2 {
  text-align: center;
  font: 700 clamp(34px, 3vw, 38px)/1.05 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  color: var(--navy);
}

@media (min-width: 768px) {
  .games-section h2 {
    padding-inline: 28px;
    text-align: center;
  }
}

.games-section h2 .deco {
  color: var(--pink);
  margin: 0 18px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 768px;
  height: 100%;
  max-height: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(93, 61, 142, 0.13);
}

.game-card-image-area {
  position: relative;
  overflow: hidden;
  height: 248px;
  background: var(--glass-light);
}

.game-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-package-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 28px);
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: linear-gradient(135deg, #6740c9, #482990);
  box-shadow: 0 3px 12px rgba(35, 18, 88, 0.25);
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
}

.game-card-body {
  flex: 1;
  padding: 12px 24px 24px;
  display: grid;
  grid-template-rows: 80px 44px 108px 158px auto;
  align-content: stretch;
  border-top: 1px solid rgba(138, 111, 254, 0.2);
  background: linear-gradient(180deg, rgba(244, 238, 255, 0.98), rgba(234, 225, 251, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.64);
}

.game-card-body h3 {
  font: 700 clamp(23px, 2vw, 28px)/1.18 var(--sans);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.game-card-taxonomy {
  display: grid;
  grid-template-rows: 20px 34px 26px;
  align-content: start;
  position: relative;
  padding: 2px 0 0 20px;
  overflow: hidden;
}

.game-card-taxonomy::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 2px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #8268ff 0%, #d76ef0 100%);
  box-shadow: 0 0 12px rgba(181, 103, 246, 0.62);
}

.game-card-taxonomy p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-format {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.game-card-music-scope,
.game-card-music-era {
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.game-card-music-scope {
  white-space: nowrap;
  font-size: clamp(22px, 1.75vw, 27px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
  background: linear-gradient(100deg, #7658ff 0%, #9a61fa 42%, #e46ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8a6ffe;
}
.game-card-music-scope span { vertical-align: baseline; }
.game-card-music-era {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #d95bdd 0%, #ac62f1 48%, #7458fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #9b60ef;
}

.game-card-music-era-value { font-size: 20px; font-weight: 850; letter-spacing: .01em; }

.game-card-body > .difficulty-badge {
  align-self: start;
  margin: 5px 0 0 !important;
}

.game-card-desc {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.game-card-title-link,
.event-detail h1,
.event-detail__description {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.game-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-rows: 22px 22px 44px 22px;
  align-content: start;
  gap: 10px;
}

.game-card-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.game-card-meta li > span:last-child {
  min-width: 0;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
}

.game-card-meta li:nth-child(3) > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.game-card-meta li svg {
  width: 21px;
  height: 21px;
  color: var(--violet);
  stroke-width: 1.9;
  flex-shrink: 0;
}

.game-card-ruble {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  color: var(--violet);
  font: 700 22px/1 var(--sans);
  flex-shrink: 0;
}

.game-card-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.game-card-body .btn {
  min-height: 54px;
  margin-top: 0;
  padding: 8px 10px 8px 22px;
  gap: 8px;
  font-size: 15px;
}

.game-card-admin-edit {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 62, 190, .35);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.game-card-admin-edit:hover { border-color: var(--violet); background: #fff; transform: translateY(-1px); }
.game-card-admin-edit:focus-visible { outline: 3px solid rgba(129, 95, 238, .28); outline-offset: 2px; }

.game-card-body .btn .btn-icon {
  width: 40px;
  height: 40px;
}

/* Desktop cards should end immediately after the price and registration action. */
@media (min-width: 900px) {
  .game-card { min-height: 732px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 10px 0 40px;
  margin-top: 10px;
}

.footer-inner {
  position: relative;
  min-height: 106px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}

.footer-icon {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--violet-light), var(--violet));
  color: #fff;
  box-shadow: 0 10px 25px rgba(113, 71, 198, 0.22);
  flex-shrink: 0;
  text-decoration: none;
}

.footer-icon svg { width: 38px; height: 38px; }

.footer-contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-question {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.footer-phone {
  font: 700 clamp(28px, 3vw, 34px)/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.footer-social {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* Feature tiles ("Преимущества") live in public/css/perks.css (.quiz-perks / .quiz-perk). */

.footer-equalizer {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: min(46%, 520px);
  opacity: 0.34;
  pointer-events: none;
}


.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.alert-success {
  background: #e9f7ee;
  color: #1c7c3f;
  border: 1px solid #b6e6c6;
}

/* ---------- About / FAQ ---------- */
.faq-section {
  padding: 26px 0 70px;
}

.faq-section h2 {
  text-align: center;
  font: 700 clamp(32px, 2.25vw, 40px)/1.2 var(--sans);
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 34px;
}

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .accordion {
    width: calc(100% - 56px);
    max-width: none;
  }
}

.accordion-item {
  background: linear-gradient(135deg, rgba(241, 234, 255, 0.97), rgba(228, 216, 253, 0.95));
  border: 1.5px solid rgba(119, 82, 219, 0.62);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(78, 50, 146, 0.09), inset 0 1px rgba(255, 255, 255, 0.58);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.accordion-item:hover,
.accordion-item:focus-within {
  border-color: rgba(105, 65, 211, 0.82);
  background: linear-gradient(135deg, rgba(238, 229, 255, 0.98), rgba(222, 207, 251, 0.97));
}

.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
  border-color: rgba(105, 65, 211, 0.9);
  background: linear-gradient(135deg, rgba(235, 225, 255, 0.99), rgba(219, 204, 250, 0.98));
  box-shadow: 0 12px 30px rgba(78, 50, 146, 0.13), inset 0 1px rgba(255, 255, 255, 0.62);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font: 600 1.02rem/1.3 var(--sans);
  color: var(--navy);
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.accordion-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-panel ul {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  list-style-position: inside;
}

@media (min-width: 768px) {
  .accordion-trigger {
    font-size: 18px;
    line-height: 1.4;
  }

  .accordion-panel p,
  .accordion-panel ul {
    font-size: 17px;
    line-height: 1.65;
  }
}

.accordion-panel li + li {
  margin-top: 4px;
}

.accordion-panel a {
  color: var(--navy);
  text-decoration: underline;
}

.faq-contact-paragraph {
  display: block;
}

.faq-contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px 2px;
  vertical-align: middle;
}

.faq-contact-call {
  display: inline;
}

.faq-contact-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 6px 4px 2px;
  padding: 10px;
  border-radius: 50%;
  color: #fff !important;
  background: linear-gradient(145deg, var(--violet-light), var(--violet));
  box-shadow: 0 8px 20px rgba(126, 108, 179, 0.18);
  text-decoration: none !important;
  vertical-align: middle;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.faq-contact-icons .faq-contact-logo {
  margin: 0;
}

.faq-contact-logo:hover,
.faq-contact-logo:focus-visible {
  opacity: 0.86;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(108, 76, 210, 0.27);
}

.faq-contact-logo:focus-visible {
  outline: 3px solid rgba(129, 95, 238, 0.32);
  outline-offset: 2px;
}

.faq-contact-logo svg {
  width: 22px;
  height: 22px;
}

.faq-contact-logo-vk {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Popup */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(76, 67, 128, 0.42);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overscroll-behavior: none;
}

.popup-overlay.open {
  display: flex;
}

.popup {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

body.page-scroll-locked {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.popup h3 {
  font-family: var(--serif);
  margin: 0 0 4px;
  padding-right: 24px;
  color: var(--navy);
}

.registration-success-overlay {
  z-index: 1200;
  background: rgba(53, 39, 105, 0.5);
  backdrop-filter: blur(7px);
}

.registration-success-popup {
  max-width: 520px;
  padding: 38px 34px 32px;
  border: 1px solid rgba(138, 111, 254, 0.2);
  text-align: center;
  box-shadow: 0 26px 80px rgba(54, 33, 126, 0.24);
}

.registration-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 14px 32px rgba(125, 85, 225, 0.3);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.registration-success-popup h3 {
  margin: 0;
  padding: 0;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.08;
}

.registration-success-popup p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.registration-success-button {
  min-height: 54px;
  margin-top: 24px;
  padding: 12px 24px;
  justify-content: center;
}

.registration-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.registration-success-telegram {
  min-height: 56px;
  padding: 11px 20px;
  justify-content: center;
  background: linear-gradient(105deg, #b77eea 0%, #8a72f5 48%, #699ce9 100%);
}

.registration-success-telegram svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.registration-success-telegram span {
  overflow: visible;
  white-space: normal;
  text-align: center;
  text-overflow: clip;
}

.registration-success-dismiss {
  min-height: 38px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.registration-success-dismiss:hover { color: var(--navy); }

.popup-meta {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.reg-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.reg-form input,
.reg-form select,
.reg-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 400;
}

.reg-form input::placeholder,
.reg-form textarea::placeholder {
  color: #aaa3bd;
  opacity: 1;
}

.reg-form .required {
  color: var(--pink);
}

.phone-input-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.phone-input-shell:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138, 111, 254, 0.16);
}

.phone-prefix {
  display: inline-flex;
  min-width: 46px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  background: #f7f4ff;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.reg-form .phone-input-control {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.phone-input-shell.is-invalid,
.phone-input-shell.is-invalid:focus-within {
  border-color: #d83b55;
  box-shadow: 0 0 0 3px rgba(216, 59, 85, 0.14);
}

.phone-input-shell.is-invalid .phone-prefix {
  border-right-color: rgba(216, 59, 85, 0.34);
  background: #fff1f3;
  color: #bd2943;
}

.phone-hint,
.phone-error {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.phone-hint { color: var(--muted); }
.phone-error { color: #bd2943; font-weight: 650; }
.phone-error[hidden] { display: none; }

.birthday-details {
  margin: -2px 0 14px;
  padding: 13px 14px 1px;
  border: 1px solid rgba(138, 111, 254, 0.22);
  border-radius: 10px;
  background: rgba(247, 244, 255, 0.72);
}

.birthday-details[hidden] { display: none; }

.birthday-window-note {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(138, 111, 254, 0.18);
  border-radius: 999px;
  background: #f5f1ff;
  color: #706696;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .quiz-schedule__grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .main-nav, .social-icons { display: none; }

  .mobile-page-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-back-link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(105, 77, 190, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--navy);
    text-decoration: none;
  }

  .mobile-back-link svg { width: 22px; height: 22px; }
  .mobile-back-link:focus-visible { outline: 3px solid rgba(129, 95, 238, .28); outline-offset: 2px; }

  .mobile-page-title {
    display: block;
    color: var(--navy);
    font: 700 1.15rem/1.2 var(--serif);
  }

  .header-glass.nav-open {
    flex-wrap: wrap;
  }

  .header-glass.nav-open .main-nav,
  .header-glass.nav-open .social-icons {
    display: flex;
  }

  .header-glass.nav-open .main-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.6);
    margin-top: 12px;
  }

  .header-glass.nav-open .main-nav a {
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
  }

  .header-glass.nav-open .main-nav .nav-loyalty-link {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
  }

  .header-glass.nav-open .main-nav .nav-new-badge {
    position: static;
    min-height: 20px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .header-glass.nav-open .main-nav a:first-child,
  .header-glass.nav-open .main-nav .desktop-photos-link { display: none; }

  .header-glass.nav-open .main-nav a:hover,
  .header-glass.nav-open .main-nav a.active {
    background: rgba(138, 111, 254, 0.11);
  }

  .header-glass.nav-open .main-nav a.active::after { display: none; }

  .header-glass.nav-open .social-icons {
    order: 4;
    flex-basis: 100%;
    padding-top: 10px;
  }

  .nav-toggle { display: flex; }
  .header-glass { justify-content: space-between; }

  .site-header-inner--admin {
    padding-top: 40px;
    gap: 8px;
  }

  .site-header-inner--admin .header-glass {
    flex-basis: 100%;
  }

  .site-header-inner > .public-admin-link {
    top: 0;
    right: 0;
    left: auto;
    min-width: auto;
    min-height: 38px;
    padding: 8px 13px;
    font-size: .75rem;
    transform: none;
  }
}

@media (max-width: 767px) {
  .site-header .container {
    padding-inline: 16px;
  }

  .site-header-inner,
  .header-glass {
    min-height: 74px;
  }

  .header-glass {
    width: 100%;
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
  }

  .mobile-page-title {
    font-family: var(--sans);
    font-size: clamp(14px, 3.8vw, 15px);
    font-weight: 600;
    line-height: 1.2;
  }

  .faq-section {
    font-family: var(--sans);
  }

  .faq-section h2 {
    font-family: var(--sans);
    font-size: clamp(26px, 7vw, 30px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .accordion-trigger {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
  }

  .accordion-panel p,
  .accordion-panel ul {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--navy);
  }

  .footer-equalizer { width: 55%; opacity: 0.18; }

  .registration-success-popup {
    width: min(100%, 430px);
    padding: 34px 22px 26px;
  }

  .registration-success-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .registration-success-popup p { font-size: 15px; }
}

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

  .quiz-schedule { padding: 34px 0 16px; }
  .quiz-schedule__head { margin-bottom: 20px; padding: 13px 20px 15px; border-radius: 23px; }
  .quiz-schedule h2 { font-size: 43px; }
  .quiz-schedule__month { margin-top: 7px; font-size: 23px; }
  .quiz-schedule__grid { gap: 12px; }
  .quiz-schedule__item { grid-template-columns: 82px 70px minmax(0, 1fr) 35px; min-height: 104px; border-radius: 17px; }
  .quiz-schedule__date { gap: 5px; padding-inline: 4px; }
  .quiz-schedule__date strong { font-size: 23px; }
  .quiz-schedule__date span { font-size: 10px; }
  .quiz-schedule__image { width: 70px; }
  .quiz-schedule__info { gap: 2px; padding: 10px 6px 10px 10px; }
  .quiz-schedule__format { font-size: 9px; }
  .quiz-schedule__music { font-size: 18px; }
  .quiz-schedule__era { font-size: 12px; }
  .quiz-schedule__venue { font-size: 10px; }
  .quiz-schedule__arrow { width: 27px; height: 27px; margin-right: 7px; }
  .quiz-schedule__arrow svg { width: 14px; height: 14px; }

  .game-card {
    min-height: 0;
    height: auto;
  }

  .game-card-image-area {
    height: auto;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #efe8ff, #ddd2fa);
  }

  .game-card-image {
    object-fit: contain;
  }

  .game-card-body {
    padding-top: 14px;
    grid-template-rows: auto 44px auto 158px auto;
    align-content: start;
  }

  .game-card-taxonomy {
    grid-template-rows: 18px minmax(26px, auto) 26px;
    overflow: visible;
  }

  .game-card-taxonomy p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .game-card-desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    margin-bottom: 14px;
  }

  .game-card-body h3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .game-card-music-scope {
    font-size: clamp(18px, 5.8vw, 22px);
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }
  .game-card-music-scope-tail { white-space: nowrap; }
  .game-card-music-era { font-size: 18px; }
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-social { margin-left: 0; }
}

@media (max-width: 479px) {
  .games-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(28px, 8.5vw, 34px);
    white-space: nowrap;
  }
  .games-section h2 .deco { margin: 0; flex-shrink: 0; }
  .footer-inner { padding-inline: 18px; gap: 16px; }
  .footer-icon { width: 62px; height: 62px; }
  .footer-phone { font-size: 23px; }
}

/* ---------- Admin ---------- */
.admin-page { padding: 32px 0 80px; }
.admin-page h1 { margin-bottom: 8px; }
.admin-section { margin-top: 40px; }
.admin-section h2 { border-bottom: 2px solid var(--border); padding-bottom: 10px; }

.hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }

.event-regs {
  background: #f8f6fd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 4px 0 16px;
}
.event-regs h3 { margin: 0; font-size: 1rem; }
.event-regs .admin-table { background: #fff; }

.admin-table-totals td {
  font-weight: 700;
  background: #f0eafa;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 16px;
}

.admin-table th, .admin-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f3effa;
}

.event-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.event-form label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.event-form input,
.event-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
}

.event-form .full { grid-column: 1 / -1; }

.event-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.inline-form { display: inline; }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-page {
  max-width: 360px;
  margin: 100px auto;
  padding: 0 20px;
  font-family: var(--sans);
}

.login-page form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.login-page input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0 16px;
}

.error-text { color: #c0392b; margin: 0 0 10px; }

.admin-page, .login-page { font-family: var(--sans); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.game-card-title-link {
  color: inherit;
  text-decoration: none;
}

.game-card-title-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 22px;
}

.game-card-title-link:focus-visible::after {
  outline: 3px solid rgba(129, 95, 238, 0.42);
  outline-offset: -4px;
}

.game-card-title-link:hover,
.game-card-title-link:focus-visible {
  color: #7048e8;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.event-page {
  padding: 32px 0 80px;
}

.event-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #716a9a;
  font-size: 14px;
}

.event-breadcrumbs a {
  color: #5e38d8;
}

.event-detail,
.event-registration {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid rgba(112, 72, 232, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(54, 33, 126, 0.1);
}

.event-detail__image {
  position: relative;
  min-width: 0;
}

.event-detail__image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 22px;
  background: #f3efff;
}

.event-detail__eyebrow {
  margin: 0 0 8px;
  color: #7a50eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-detail h1,
.event-registration h2 {
  margin: 0 0 18px;
  color: #191055;
}

.event-detail h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.event-detail__description,
.event-registration__intro p {
  color: #554d7c;
  line-height: 1.7;
}

.event-detail__meta {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.event-detail__meta div {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f2ff;
}

.event-detail__meta dt {
  margin-bottom: 5px;
  color: #8178a7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-detail__meta dd {
  margin: 0;
  color: #211761;
  font-weight: 600;
}

.event-registration {
  grid-template-columns: minmax(240px, 0.65fr) minmax(320px, 1.35fr);
}

.event-registration__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-registration__form .registration-comment-field,
.event-registration__form .btn {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .event-page { padding-top: 18px; }
  .event-detail,
  .event-registration {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    border-radius: 22px;
  }
  .event-registration__form { grid-template-columns: 1fr; }
  .event-registration__form label,
  .event-registration__form .registration-comment-field,
  .event-registration__form .btn { grid-column: 1; }
}

/* ---------- Ссылка на политику в форме регистрации ---------- */
.registration-privacy-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(138, 111, 254, 0.22);
  border-radius: 14px;
  background: rgba(246, 243, 255, 0.82);
  color: #393064;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.48;
}

.registration-privacy-note a {
  color: #5b3cda;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.birthday-privacy-note {
  display: block;
  margin: -3px 0 9px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

/* ---------- Правовые страницы ---------- */
.legal-page-body {
  background: linear-gradient(135deg, #f7f2ff 0%, #fff8fd 48%, #eef4ff 100%);
}

.legal-page {
  padding: 34px 0 72px;
}

.legal-document {
  max-width: 1080px;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(138, 111, 254, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(69, 48, 142, 0.1);
  color: #302958;
}

.legal-document--compact { max-width: 900px; }

.legal-document__header {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(138, 111, 254, 0.17);
}

.legal-document__eyebrow {
  margin: 0 0 10px;
  color: #7555e6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(31px, 5vw, 52px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-document__subtitle {
  margin: 16px 0 0;
  color: #5f5682;
  font-size: 17px;
}

.legal-document__version {
  margin: 8px 0 0;
  color: #8177a6;
  font-size: 14px;
}

.legal-document section {
  margin-top: 34px;
  scroll-margin-top: 20px;
}

.legal-document h2 {
  margin: 0 0 14px;
  color: #211761;
  font-family: var(--sans);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  font-size: 15.5px;
  line-height: 1.72;
}

.legal-document p { margin: 10px 0; }
.legal-document ul { margin: 12px 0; padding-left: 24px; }
.legal-document li + li { margin-top: 7px; }

.legal-document a {
  color: #5a39d5;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.legal-summary {
  margin: 28px 0 6px;
  padding: 20px 22px;
  border: 1px solid rgba(138, 111, 254, 0.23);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 232, 255, 0.9), rgba(247, 244, 255, 0.86));
}

.legal-summary strong { color: #342275; font-size: 17px; }
.legal-summary p { margin-bottom: 0; }
.legal-summary--soft { background: #faf7ff; }

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(138, 111, 254, 0.18);
  border-radius: 18px;
}

.legal-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

.legal-table th,
.legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #ebe6fa;
  border-right: 1px solid #f0ecfb;
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.55;
}

.legal-table th {
  background: #f5f1ff;
  color: #332373;
  font-weight: 800;
}

.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th:last-child,
.legal-table td:last-child { border-right: 0; }

/* ---------- Нижняя правовая навигация ---------- */
.footer-legal {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(138, 111, 254, 0.16);
  color: #756c98;
  font-size: 12px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-legal-links a {
  padding: 0;
  border: 0;
  background: none;
  color: #5a4a98;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(90, 74, 152, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .registration-privacy-note { grid-column: 1; }
  .legal-page { padding: 18px 12px 50px; }
  .legal-document { padding: 24px 18px 30px; border-radius: 22px; }
  .legal-document h1 { font-size: 26px; overflow-wrap: anywhere; }
  .legal-document section { margin-top: 28px; }
  .legal-document p,
  .legal-document li { font-size: 14px; line-height: 1.65; }
  .legal-table-wrap { margin-right: -4px; }
  .footer-legal { flex-direction: column; align-items: flex-start; padding-inline: 18px; }
  .footer-legal-links { justify-content: flex-start; }
}
