* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #151519;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Font1', 'Georgia', serif;
  min-height: 100vh;
  color: #efefef;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 21, 25, 0.85);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

:root {
  --bg-card: rgba(21, 21, 25, 0.85);
  --border-light: #7a55ff;
  --text-primary: #efefef;
  --text-secondary: #747982;
  --accent-violet: #7a55ff;
  --accent-green: #32126e;
  --glitch-duration: 4s;
  --glitch-delay: 0s;
  --sparkle-duration: 3s;
}

.page-container {
  max-width: 950px;
  width: 100%;
  background-color: rgba(21, 21, 25, 0.6);
  padding: 1.5rem 2.5rem;
  box-shadow: 0 4px 20px rgba(50, 18, 110, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1.8rem;
  backdrop-filter: blur(3px);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid rgba(239, 239, 239, 0.3);
  padding-bottom: 0.9rem;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #efefef;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

/* Глитч-эффект для логотипа */
.logo h1::before,
.logo h1::after {
  content: 'H.U.R.T.';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.logo h1::before {
  color: #ff6b8a;
  z-index: -1;
  animation: glitchText var(--glitch-duration) infinite var(--glitch-delay);
}

.logo h1::after {
  color: #7a55ff;
  z-index: -2;
  animation: glitchText var(--glitch-duration) infinite calc(var(--glitch-delay) + 0.3s);
}

@keyframes glitchText {
  0%, 92%, 96%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }
  93% {
    opacity: 0.7;
    transform: translate(-2px, 1px) skewX(-1deg);
  }
  94% {
    opacity: 0.3;
    transform: translate(2px, -1px) skewX(1deg);
  }
  95% {
    opacity: 0;
    transform: translate(0, 0);
  }
  97% {
    opacity: 0.5;
    transform: translate(1px, -1px);
  }
  98% {
    opacity: 0.2;
    transform: translate(-1px, 1px);
  }
}

/* Случайные глитч-помехи на странице */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(122, 85, 255, 0.03) 2px,
    rgba(122, 85, 255, 0.03) 4px
  );
  animation: glitchOverlay var(--glitch-duration) infinite;
}

@keyframes glitchOverlay {
  0%, 90%, 100% {
    opacity: 0;
  }
  91% {
    opacity: 0.3;
  }
  92% {
    opacity: 0;
  }
  94% {
    opacity: 0.2;
  }
  95% {
    opacity: 0;
  }
}

/* Горизонтальные глитч-полосы */
.glitch-line {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(122, 85, 255, 0.08);
  pointer-events: none;
  z-index: 9998;
  animation: glitchLine var(--glitch-duration) infinite;
}

.glitch-line:nth-child(1) {
  top: 20%;
  animation-delay: 0.2s;
}

.glitch-line:nth-child(2) {
  top: 50%;
  animation-delay: 1.1s;
}

.glitch-line:nth-child(3) {
  top: 75%;
  animation-delay: 2.3s;
}

@keyframes glitchLine {
  0%, 95%, 100% {
    opacity: 0;
    transform: scaleX(0);
  }
  96% {
    opacity: 1;
    transform: scaleX(0.3);
  }
  97% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  98% {
    opacity: 0.8;
    transform: scaleX(0.1);
  }
  99% {
    opacity: 0.3;
    transform: scaleX(0.6);
  }
}

/* Четырёхконечная звезда (Sparkle) */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  animation: sparkleFloat var(--sparkle-duration) infinite ease-in-out;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: rgba(122, 85, 255, 0.6);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(122, 85, 255, 0.3), 0 0 20px rgba(122, 85, 255, 0.1);
}

.sparkle::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.sparkle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Размеры звёзд */
.sparkle-sm {
  width: 12px;
  height: 12px;
}

.sparkle-md {
  width: 18px;
  height: 18px;
}

.sparkle-lg {
  width: 24px;
  height: 24px;
}

.sparkle-xl {
  width: 32px;
  height: 32px;
}

/* Позиции звёзд */
.sparkle-1 {
  top: 8%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 4.2s;
}

.sparkle-2 {
  top: 15%;
  right: 8%;
  animation-delay: 1.3s;
  animation-duration: 3.8s;
}

.sparkle-3 {
  bottom: 20%;
  left: 3%;
  animation-delay: 2.7s;
  animation-duration: 5s;
}

.sparkle-4 {
  bottom: 10%;
  right: 5%;
  animation-delay: 0.8s;
  animation-duration: 3.5s;
}

.sparkle-5 {
  top: 45%;
  left: 50%;
  animation-delay: 1.9s;
  animation-duration: 4.5s;
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg) translateY(0);
  }
  10% {
    opacity: 0.2;
  }
  20% {
    opacity: 0.8;
    transform: scale(1) rotate(45deg) translateY(-5px);
  }
  30% {
    opacity: 0.4;
    transform: scale(0.8) rotate(90deg) translateY(0);
  }
  40% {
    opacity: 1;
    transform: scale(1.1) rotate(135deg) translateY(-8px);
    box-shadow: 0 0 15px rgba(122, 85, 255, 0.4);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9) rotate(180deg) translateY(0);
  }
  60% {
    opacity: 0.9;
    transform: scale(1) rotate(225deg) translateY(-3px);
  }
  70% {
    opacity: 0.3;
    transform: scale(0.7) rotate(270deg) translateY(0);
  }
  80% {
    opacity: 0.7;
    transform: scale(1.05) rotate(315deg) translateY(-4px);
  }
  90% {
    opacity: 0.1;
    transform: scale(0.6) rotate(360deg) translateY(0);
  }
}

.logo .accent-dot {
  color: #7a55ff;
  font-size: 2.8rem;
}

.logo .sub {
  font-size: 0.9rem;
  color: #7a55ff;
  margin-top: 0.1rem;
  font-style: italic;
}

.welcome-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(153deg, rgba(27, 27, 51, 0.9), rgba(0, 0, 0, 0.2));
  border-radius: 1.2rem;
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid #7a55ff;
}

/* Свечение на границах баннера */
.welcome-banner::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(122, 85, 255, 0.15), transparent 30%, transparent 70%, rgba(122, 85, 255, 0.05));
  pointer-events: none;
  z-index: 0;
  animation: borderGlow 4s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.welcome-text {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.welcome-text h1 {
  width: 100%;
  font-size: 1.14rem;
  font-weight: 700;
  color: #efefef;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.31rem;
}

.welcome-text p {
  color: #8a8f99;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 0.39rem;
}

.sq {
  position: relative;
  width: 100%;
  height: 3px;
  background: #7a55ff;
  margin-bottom: 0.7rem;
  border-radius: 2px;
}

.sq::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-left: 3px solid #7a55ff;
  border-top: 3px solid #7a55ff;
  border-radius: 4px 0 0 0;
}

.sq::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #7a55ff;
  border-top: 3px solid #7a55ff;
  border-radius: 0 4px 0 0;
}

.footer-note {
  text-align: center;
  color: #747982;
  font-size: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(122, 85, 255, 0.2);
  padding-top: 1.2rem;
}

.sq1 {
  position: relative;
  width: 50%;
  height: 1px;
  background: #efefef;
  margin: 0.5rem auto;
  display: block;
}

.sq2 {
  position: relative;
  width: 50%;
  height: 1px;
  background: #32126e;
  margin-bottom: 0.5rem;
}

.sq4 {
  position: relative;
  width: 100%;
  height: 1px;
  background: #ffffff;
}

.sq3 {
  position: relative;
  width: 100%;
  height: 3px;
  background: #7a55ff;
  margin-bottom: 0.7rem;
  border-radius: 2px;
}

.sq3::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-left: 3px solid #7a55ff;
  border-top: 3px solid #7a55ff;
  border-radius: 4px 0 0 0;
  transform: scaleY(-1);
}

.sq3::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #7a55ff;
  border-top: 3px solid #7a55ff;
  border-radius: 0 4px 0 0;
  transform: scaleY(-1);
}

.welcome-banner .hero-img,
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
  object-fit: cover;
  transition: all 0.4s ease;
  animation: fadeInUp 2s ease 0.5s both;
  margin-bottom: 2rem;
}

.welcome-banner .hero-img {
  width: 110%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blocks-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.block1,
.block2 {
  background: linear-gradient(20deg, rgba(27, 27, 51, 0.9), rgba(0, 0, 0, 0.1));
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  animation: fadeInUp 3s ease 0.5s both;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.block-number {
  font-family: 'Font1', 'Georgia', serif;
  font-size: 0.8rem;
  color: #7a55ff;
  margin-bottom: 0.2rem;
  opacity: 0.8;
}

.block1 h3,
.block2 h3 {
  font-size: 1.1rem;
  color: #efefef;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.block1 p,
.block2 p {
  font-size: 0.8rem;
  color: #8a8f99;
  line-height: 1.4;
  margin: 0;
}

.block1::before {
  content: '01';
  position: absolute;
  right: 10px;
  bottom: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(122, 85, 255, 0.04);
  font-family: 'Font1', 'Georgia', serif;
  pointer-events: none;
}

.block2::before {
  content: '02';
  position: absolute;
  right: 10px;
  bottom: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(122, 85, 255, 0.04);
  font-family: 'Font1', 'Georgia', serif;
  pointer-events: none;
}

.block3 {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.8), rgba(0, 0, 0, 0.3));
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  animation: fadeInUp 2s ease 0.3s both;
  position: relative;
  overflow: hidden;
  margin-bottom: -1rem;
}

.block3 p {
  font-size: 1rem;
  color: #efefef;
  text-align: center;
}

.welcome-text p,
.block1 p,
.block2 p,
.block3 p {
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.video-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(153deg, rgba(27, 27, 51, 0.9), rgba(0, 0, 0, 0.2));
  border-radius: 1.2rem;
  padding: 1.2rem 1.8rem;
  border: 1px solid #7a55ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: fadeInUp 3s ease 0.6s both;
}

.video-banner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #efefef;
  text-align: center;
}

.video-player {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(122, 85, 255, 0.3);
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background: rgba(21, 21, 25, 0.6);
  border-radius: 2.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(122, 85, 255, 0.1);
  animation: fadeInUp 2s ease 0.5s both;
  backdrop-filter: blur(4px);
  justify-content: center;
}

.filter-label {
  font-size: 0.7rem;
  color: #7a55ff;
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.3rem;
}

.filter-btn {
  background: transparent;
  color: #8a8f99;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #7a55ff;
  color: #efefef;
  font-weight: 600;
  border-color: #7a55ff;
}

.filter-btn:hover:not(.active) {
  color: #efefef;
  border-color: rgba(122, 85, 255, 0.2);
  background: rgba(122, 85, 255, 0.06);
}

.anketa-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  animation: fadeInUp 3s ease 0.3s both;
}

.anketa-item {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.8), rgba(0, 0, 0, 0.3));
  border-radius: 1rem;
  border: 1px solid rgba(122, 85, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.anketa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #efefef;
  user-select: none;
  transition: background 0.3s ease;
}

.anketa-header:hover {
  background: rgba(122, 85, 255, 0.05);
}

.anketa-arrow {
  font-size: 0.8rem;
  color: #7a55ff;
  transition: transform 0.3s ease;
}

.anketa-item.active .anketa-arrow {
  transform: rotate(180deg);
}

.anketa-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none;
  color: #8a8f99;
  font-size: 0.9rem;
  line-height: 1.6;
}

.anketa-item.active .anketa-body {
  display: block;
  animation: fadeInUp 0.4s ease both;
}

.anketa-body p {
  margin-bottom: 0.5rem;
}

.anketa-body ul {
  list-style: none;
  padding: 0;
  align-items: center;
}

.anketa-body ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.anketa-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #7a55ff;
}

.setting-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.setting-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.setting-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #efefef;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-family: 'Font1', 'Georgia', serif;
}

.setting-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.setting-text-block p {
  color: #b0b5c0;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

.highlight {
  color: #7a55ff;
  font-weight: 600;
  font-style: italic;
}

.setting-races-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.race-item {
  background: rgba(122, 85, 255, 0.05);
  border-left: 2px solid #7a55ff;
  padding: 0.7rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
}

.race-item:hover {
  background: rgba(122, 85, 255, 0.1);
  border-left-color: #a88bff;
}

.race-name {
  display: block;
  color: #efefef;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  font-family: 'Font1', 'Georgia', serif;
}

.race-item p {
  color: #8a8f99;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.setting-rules-block {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.6), rgba(0, 0, 0, 0.2));
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(122, 85, 255, 0.15);
}

.setting-rules-block p {
  color: #b0b5c0;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.5rem 0;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rules-list li {
  color: #8a8f99;
  font-size: 0.85rem;
  padding: 0.3rem 0 0.3rem 1.8rem;
  position: relative;
  font-style: italic;
}

.rules-list li::before {
  content: '𖥔';
  position: absolute;
  left: 0;
  color: #7a55ff;
  font-size: 0.7rem;
}

.setting-emphasis {
  color: #efefef !important;
  font-weight: 600;
  font-size: 1rem !important;
  margin-top: 0.8rem !important;
  letter-spacing: 0.05em;
}

.setting-final-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spark-line {
  color: #7a55ff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-style: italic;
}

.final-welcome {
  color: #efefef;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Font1', 'Georgia', serif;
  letter-spacing: 0.05em;
}

.final-question {
  color: #7a55ff;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Font1', 'Georgia', serif;
  letter-spacing: 0.1em;
  margin-top: -0.3rem;
}

.rules-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.5rem 0;
}

.rules-content .hero-img {
  width: 100%;
  height: auto;
}

.rules-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rules-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7a55ff;
  font-family: 'Font1', 'Georgia', serif;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(122, 85, 255, 0.2);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.rule-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(239, 239, 239, 0.05);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-number {
  color: #7a55ff;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 1.8rem;
  font-family: 'Font1', 'Georgia', serif;
}

.rule-content {
  flex: 1;
}

.rule-content p {
  color: #b0b5c0;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0.1rem 0;
}

.rule-name {
  color: #efefef;
  font-weight: 600;
  font-size: 0.92rem;
}

.rule-content .highlight {
  color: #7a55ff;
  font-weight: 600;
  font-style: italic;
}

.rules-inner-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0.2rem 0.5rem;
}

.rules-inner-list li {
  color: #8a8f99;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.15rem 0 0.15rem 1.4rem;
  position: relative;
}

.rules-inner-list li::before {
  content: '𖥔';
  position: absolute;
  left: 0;
  color: #7a55ff;
  font-size: 0.7rem;
}

.rules-final-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rules-final-list li {
  color: #b0b5c0;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.3rem 0 0.3rem 1.8rem;
  position: relative;
}

.rules-final-list li::before {
  content: '𖥔';
  position: absolute;
  left: 0;
  color: #7a55ff;
  font-size: 0.7rem;
  top: 0.35rem;
}

@media (max-width: 650px) {
  .filter-bar {
    border-radius: 1.5rem;
    padding: 0.5rem 0.8rem;
    gap: 0.3rem;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
  }

  .filter-label {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.2rem;
  }

  .setting-title {
    font-size: 1.1rem;
    white-space: normal;
  }

  .setting-races-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .setting-rules-block {
    padding: 1rem 1.2rem;
  }

  .setting-text-block p {
    font-size: 0.85rem;
    text-align: left;
  }

  .race-item p {
    font-size: 0.78rem;
  }

  .final-welcome {
    font-size: 0.95rem;
  }

  .final-question {
    font-size: 1.1rem;
  }

  .rules-section-title {
    font-size: 0.95rem;
  }

  .rule-item {
    gap: 0.4rem;
  }

  .rule-number {
    font-size: 0.8rem;
    min-width: 1.5rem;
  }

  .rule-content p {
    font-size: 0.82rem;
  }

  .rule-name {
    font-size: 0.85rem;
  }

  .rules-inner-list li {
    font-size: 0.8rem;
  }

  .rules-final-list li {
    font-size: 0.82rem;
  }
}

@media (max-width: 550px) {
  .page-container {
    padding: 1.2rem;
  }

  .welcome-text p,
  .block1 p,
  .block2 p,
  .block3 p {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .welcome-text h1 {
    font-size: 1rem;
    line-height: 1.3;
  }
}

@media (max-width: 450px) {
  .setting-header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .setting-rules-block {
    padding: 0.8rem 1rem;
  }

  .rules-list li {
    font-size: 0.8rem;
  }

  .rule-item {
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem 0;
  }

  .rule-number {
    min-width: auto;
  }

  .rules-inner-list {
    margin-left: 0;
  }

  .rules-inner-list li {
    padding-left: 1.2rem;
  }
}

a.custom-link {
  color: #7a55ff;
  text-align: center;
  align-items: center;
}

.bots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.bot-card {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.85), rgba(0, 0, 0, 0.3));
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(122, 85, 255, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 2s ease 0.3s both;
}

.bot-card:hover {
  border-color: #7a55ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(122, 85, 255, 0.15);
}

.bot-icon {
  font-size: 2.2rem;
  color: #7a55ff;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 0.4rem;
  font-family: 'Font1', 'Georgia', serif;
}

.bot-desc {
  font-size: 0.85rem;
  color: #8a8f99;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.bot-link {
  display: inline-block;
  background: rgba(122, 85, 255, 0.12);
  color: #7a55ff;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(122, 85, 255, 0.15);
  transition: all 0.3s ease;
  font-family: 'Font1', 'Georgia', serif;
}

.bot-link:hover {
  background: #7a55ff;
  color: #efefef;
  border-color: #7a55ff;
}

@media (max-width: 650px) {
  .bots-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bot-card {
    padding: 1.5rem 1.2rem;
  }
}.bots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.bot-card {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.85), rgba(0, 0, 0, 0.3));
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(122, 85, 255, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 2s ease 0.3s both;
}

.bot-card:hover {
  border-color: #7a55ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(122, 85, 255, 0.15);
}

.bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 0.4rem;
  font-family: 'Font1', 'Georgia', serif;
}

.bot-desc {
  font-size: 0.85rem;
  color: #8a8f99;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.bot-link {
  display: inline-block;
  background: rgba(122, 85, 255, 0.12);
  color: #7a55ff;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(122, 85, 255, 0.15);
  transition: all 0.3s ease;
  font-family: 'Font1', 'Georgia', serif;
}

.bot-link:hover {
  background: #7a55ff;
  color: #efefef;
  border-color: #7a55ff;
}

@media (max-width: 650px) {
  .bots-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bot-card {
    padding: 1.5rem 1.2rem;
  }
}

.race-info-block {
  background: linear-gradient(145deg, rgba(27, 27, 51, 0.7), rgba(0, 0, 0, 0.2));
  border-radius: 1.2rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(122, 85, 255, 0.15);
  margin-top: 0.5rem;
  animation: fadeInUp 2.5s ease 0.3s both;
}

.race-link-container {
  display: flex;
  justify-content: center;
  margin: 0.8rem 0 0.3rem 0;
}

.race-link-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(122, 85, 255, 0.08);
  color: #efefef;
  padding: 0.7rem 2rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(122, 85, 255, 0.25);
  transition: all 0.3s ease;
  font-family: 'Font1', 'Georgia', serif;
  letter-spacing: 0.04em;
}

.race-link-main:hover {
  background: #7a55ff;
  border-color: #7a55ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 85, 255, 0.25);
}

.race-link-icon {
  color: #7a55ff;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.race-link-main:hover .race-link-icon {
  color: #efefef;
}

.race-link-arrow {
  color: #7a55ff;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.race-link-main:hover .race-link-arrow {
  transform: translateX(4px);
  color: #efefef;
}

@media (max-width: 550px) {
  .race-info-block {
    padding: 1.2rem 1rem;
  }
  
  .race-link-main {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
}

.page-container {
  filter: url(#siteGlitchFilter);
  box-shadow: none; 
}

@keyframes shakeSite {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3px, 2px); }
}
