body {
  min-height: 100vh;
  background: #f4f6f8;
  color: #212529;
}

.site-header {
  width: 100%;
  background: linear-gradient(135deg, #181a1f, #22252c);
  color: #fff;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0;
  line-height: 1.2;
  color: #ffffffc7;
  padding-left:10px;
}

.navbar-toggler {
  border-color: #ffffff40;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.header-menu {
  gap: .5rem;
}

.header-menu .nav-link {
  color: #ffffffc7;
  font-weight: 500;
  padding-left: .85rem;
  padding-right: .85rem;
  border-radius: .65rem;
}

.header-menu .nav-link:hover,
.header-menu .nav-link:focus {
  color: #fff;
  background: #ffffff14;
}

.hero-card {
  border: 1px solid #e6e8ec;
  border-radius: 1.25rem;
  overflow: hidden;
}

.hero-card-header {
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
}

.form-select,
.form-control,
.alert,
.font-card,
.about-card,
.content-card {
  border-radius: .85rem;
}

.about-card {
  border: 1px solid #e6e8ec;
}

.content-card {
  border: 1px solid #e6e8ec;
}

.accordion-button {
  font-weight: 600;
}

.accordion-button:focus {
  box-shadow: none;
}

.site-footer {
  width: 100%;
  background: #181a1f;
  color: #ffffffb8;
}

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

.footer-links a {
  color: #ffffffc7;
  text-decoration: none;
  font-size: .925rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .header-navbar-row {
    flex-wrap: wrap;
  }

  .site-logo {
    flex: 0 0 auto;
  }

  .site-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-toggler {
    flex: 0 0 auto;
  }

  .navbar-collapse {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 1rem;
    padding: .75rem;
    background: #ffffff0f;
    border: 1px solid #ffffff1a;
    border-radius: 1rem;
  }

  .header-menu {
    width: 100%;
  }

  .header-menu .nav-link {
    padding: .75rem .85rem;
  }
}

.hero-intro {
  max-width: 780px;
}

.site-logo {
  border-radius: .9rem;
}

.game-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff12;
  border: 1px solid #ffffff26;
  font-size: 1.6rem;
  line-height: 1;
}

.game-board {
  border: 1px solid #e6e8ec;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
}

.score-label {
  color: #6b7280;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.score-card strong {
  color: #111827;
  font-size: 2rem;
  line-height: 1.1;
}

.choices-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.choice-preview {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  text-align: center;
  padding: 1rem;
}

.preview-label {
  color: #6b7280;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.preview-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .6rem 0;
  border-radius: 50%;
  background: #f4f6f8;
  border: 1px solid #e6e8ec;
  color: #111827;
  font-size: 2.8rem;
  line-height: 1;
}

.versus-badge {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #181a1f;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
}

.result-alert {
  font-weight: 700;
  text-align: center;
}

.choice-button {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  background: #fff;
  color: #212529;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.choice-button:hover,
.choice-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 .75rem 1.5rem #11182714;
  border-color: #22252c;
  background: #fff;
  color: #111827;
}

.choice-art {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: #f4f6f8;
  border: 1px solid #e6e8ec;
  font-size: 2.9rem;
  line-height: 1;
}

.choice-title {
  color: #181a1f;
  font-size: 1.1rem;
  font-weight: 800;
}

.choice-rule {
  color: #6b7280;
  font-size: .9rem;
  font-weight: 600;
}

.reset-button {
  min-width: 150px;
  font-weight: 700;
}

.keyword-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.keyword-pill {
  display: inline-flex;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #f4f6f8;
  color: #343a40;
  border: 1px solid #e6e8ec;
  font-weight: 600;
  font-size: .92rem;
}

.step-list {
  padding-left: 1.15rem;
}

.step-list li {
  margin-bottom: .45rem;
}

.mini-info-card {
  background: #f9fafb;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  padding: 1rem;
}

.mini-info-card h3 {
  color: #181a1f;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  main.py-5 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .hero-card .card-body {
    padding: 1rem !important;
  }

  .hero-intro {
    margin-bottom: .9rem !important;
  }

  .hero-intro .h1 {
    font-size: 1.45rem;
    margin-bottom: .5rem !important;
  }

  .hero-intro p {
    font-size: .95rem;
  }

  .game-board {
    padding: .7rem;
  }

  .score-row {
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    margin-bottom: .7rem !important;
  }

  .score-card {
    min-height: 56px;
    border-radius: .75rem;
  }

  .score-label {
    font-size: .62rem;
    letter-spacing: .02em;
  }

  .score-card strong {
    font-size: 1.35rem;
  }

  .choices-display {
    grid-template-columns: 1fr 36px 1fr;
    gap: .45rem;
    margin-bottom: .7rem !important;
  }

  .choice-preview {
    min-height: 86px;
    padding: .55rem .35rem;
    border-radius: .75rem;
  }

  .preview-label {
    font-size: .62rem;
    letter-spacing: .02em;
  }

  .preview-icon {
    width: 44px;
    height: 44px;
    margin: .25rem 0;
    font-size: 1.55rem;
  }

  .choice-preview strong {
    font-size: .82rem;
  }

  .versus-badge {
    width: 36px;
    height: 36px;
    font-size: .8rem;
  }

  .result-alert {
    padding: .55rem .65rem;
    font-size: .92rem;
    margin-bottom: .7rem !important;
  }

  .choice-buttons {
    --bs-gutter-x: .45rem;
    --bs-gutter-y: .45rem;
  }

  .choice-buttons > [class*="col-"] {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .choice-button {
    min-height: 82px;
    padding: .45rem .25rem;
    border-radius: .75rem;
    gap: .15rem;
  }

  .choice-art {
    width: 40px;
    height: 40px;
    border-radius: .75rem;
    font-size: 1.5rem;
  }

  .choice-title {
    font-size: .78rem;
  }

  .choice-rule {
    display: none;
  }

  .reset-button {
    min-width: 120px;
    padding: .5rem .85rem;
    font-size: .95rem;
  }

  .game-board .text-center.mt-4 {
    margin-top: .75rem !important;
  }
}

.footer-language-switcher {
  border-top: 1px solid #ffffff1a;
  margin-top: 1rem;
  padding-top: 1rem;
}


.footer-language-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  padding: .3rem .65rem;
  line-height: 1.2;
}

.footer-language-links a:hover,
.footer-language-links a:focus {
  background: #ffffff12;
}


.legal-card .lead {
  font-size: 1.05rem;
}

.legal-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6e8ec;
}

.legal-section:last-of-type {
  border-bottom: 0;
}

[dir="rtl"] .step-list {
  padding-right: 1.15rem;
  padding-left: 0;
}

[dir="rtl"] .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}
