@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 66px;
  padding-bottom: 60px;
  counter-reset: h2counter;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  color: #1c1c1c;
  background: #FDFBF7;
}

.navbar-inverse {
  background: #1a1a2e;
  border: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  min-height: 66px;
}
.navbar-inverse .navbar-brand {
  color: #E8A81E !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.navbar-inverse .navbar-brand > div {
  background: #B8860B;
  transition: background 0.25s;
}
.navbar-inverse .navbar-brand:hover {
  color: rgb(239.0947580645, 194.8366935484, 99.4052419355) !important;
}
.navbar-inverse .navbar-brand:hover > div {
  background: #E8A81E;
}
.navbar-inverse .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 24px 14px;
  transition: color 0.2s;
}
.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
  color: #E8A81E;
  background: transparent;
}
.navbar-inverse .dropdown-menu {
  background: #16213e;
  border: 1px solid rgba(184, 134, 11, 0.45);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
  margin-top: 2px;
}
.navbar-inverse .dropdown-menu > li > a {
  color: rgba(255, 255, 255, 0.8);
  padding: 9px 20px;
  font-size: 14px;
  transition: all 0.15s;
}
.navbar-inverse .dropdown-menu > li > a:hover, .navbar-inverse .dropdown-menu > li > a:focus {
  background: rgba(232, 168, 30, 0.15);
  color: #E8A81E;
}
.navbar-inverse .dropdown-menu .divider {
  background: rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  padding: 10px 15px;
}
.navbar-brand > div {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  transition: background 0.25s;
}
.navbar-brand > div img {
  position: absolute;
  top: 0;
  left: 0;
}

.site-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 460px;
  margin-bottom: 0;
}
.site-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(1.15);
}
.site-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, rgba(26, 26, 46, 0.08) 0%, rgba(26, 26, 46, 0.65) 55%, rgba(26, 26, 46, 0.9) 100%);
  padding-bottom: 44px;
}
.site-hero__inner {
  padding: 0 16px;
}
.site-hero__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 3.4em;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.site-hero__tagline {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
}
.site-hero__tagline em {
  color: #E8A81E;
  font-style: normal;
  font-weight: 600;
}

.home-intro {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 0;
  font-size: 0.9em;
  text-align: center;
  letter-spacing: 0.5px;
  border-bottom: 3px solid #E8A81E;
}
.home-intro a {
  color: #E8A81E;
  font-weight: 600;
  text-decoration: none;
  margin: 0 12px;
}
.home-intro a:hover {
  color: rgb(239.0947580645, 194.8366935484, 99.4052419355);
}

.home-body {
  padding-top: 48px;
}
.home-body > h1:first-child {
  display: none;
}
.home-body h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.7em;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 48px;
  margin-bottom: 20px;
  padding: 0;
  border: none;
  border-bottom: 2px solid #E0D0B0;
  padding-bottom: 12px;
}
.home-body h2::before {
  display: none;
}
.home-body h3 {
  font-size: 1.15em;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 0;
  scroll-margin-top: 82px;
}
.home-body h3::before {
  display: none;
}
.home-body h4 {
  color: #B8860B;
  font-weight: 700;
  font-size: 1.05em;
  margin-top: 20px;
  margin-bottom: 6px;
}
.home-body h4 + p {
  padding: 0;
}
.home-body p {
  margin-bottom: 14px;
}
.home-body hr {
  border: none;
  border-top: 1px solid #E0D0B0;
  margin: 36px 0;
}
.home-body blockquote {
  background: #FFF8E1;
  border-left: 4px solid #E8A81E;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.1em;
  color: #555;
}
.home-body blockquote p:last-child {
  margin: 0;
}

.game-card {
  background: #fff;
  border: 1px solid #E0D0B0;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.game-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.game-card h4 {
  color: #C17D11;
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
}
.game-card h4 a {
  color: inherit;
  text-decoration: none;
}
.game-card h4 a:hover {
  color: #B8860B;
  text-decoration: underline;
}
.game-card p {
  margin: 0;
  font-size: 0.95em;
  color: #6b6b6b;
}

.rule-page {
  padding-top: 36px;
}
.rule-page h2, .rule-page h3, .rule-page h4 {
  scroll-margin-top: 80px;
}

h1 {
  counter-reset: h2counter;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.1em;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 3px solid #E8A81E;
  padding-bottom: 10px;
  margin-bottom: 32px;
}

h2 {
  counter-reset: h3counter;
  counter-increment: h2counter;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.48em;
  color: #1a1a2e;
  border-left: 4px solid #E8A81E;
  padding-left: 12px;
  margin-top: 40px;
  margin-bottom: 16px;
}
h2::before {
  content: counter(h2counter) ".  ";
  color: #C17D11;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82em;
  font-weight: 600;
}

h3 {
  counter-increment: h3counter;
  font-weight: 600;
  font-size: 1.12em;
  color: #1e2a3a;
  margin-top: 28px;
  margin-bottom: 10px;
}
h3::before {
  content: counter(h2counter) "." counter(h3counter) ". ";
  color: #C17D11;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82em;
  font-weight: 600;
}

h4 {
  color: #B8860B;
  font-weight: 600;
  font-size: 0.98em;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a {
  color: #B8860B;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: rgb(126.2523076923, 91.9446153846, 7.5476923077);
  text-decoration: underline;
}

blockquote {
  background: #FFF8E1;
  border-left: 4px solid #E8A81E;
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.02em;
  color: #555;
}
blockquote p:last-child {
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid #E0D0B0;
  margin: 32px 0;
}

table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 0.93em;
}
table th {
  background: #1a1a2e;
  color: #E8A81E;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
table td {
  padding: 10px 16px;
  border-bottom: 1px solid #E0D0B0;
  vertical-align: top;
}
table tr:nth-child(even) td {
  background: rgba(232, 168, 30, 0.05);
}
table tr:hover td {
  background: rgba(232, 168, 30, 0.1);
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 5px;
}

#sidebar-menu {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 66px - 32px);
  overflow-y: auto;
  padding: 18px 14px 18px 18px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E0D0B0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
#sidebar-menu ol.main-menu {
  counter-reset: roman;
  padding: 0;
  list-style: none;
  margin: 0;
}
#sidebar-menu ol.main-menu > li {
  margin-bottom: 2px;
}
#sidebar-menu ol.main-menu > li a {
  display: block;
  color: #6b6b6b;
  font-size: 0.875em;
  padding: 5px 8px;
  border-radius: 5px;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.35;
}
#sidebar-menu ol.main-menu > li a:hover {
  color: #B8860B;
  background: rgba(232, 168, 30, 0.09);
}
#sidebar-menu ol.main-menu > li::before {
  counter-increment: roman;
  content: counter(roman) ". ";
  color: #E8A81E;
  font-weight: 700;
  font-size: 0.8em;
}
#sidebar-menu ol.main-menu li ol {
  list-style: none;
  counter-reset: inner;
  padding: 2px 0 4px 12px;
}
#sidebar-menu ol.main-menu ol li::before {
  counter-increment: inner;
  content: counter(roman) "." counter(inner) ". ";
  color: #ccc;
  font-size: 0.78em;
}
#sidebar-menu ol.main-menu > li ol a {
  font-size: 0.83em;
  color: #aaa;
  padding: 3px 8px;
}
#sidebar-menu ol.main-menu > li ol a:hover {
  color: #B8860B;
  background: rgba(232, 168, 30, 0.07);
}
#sidebar-menu li.active > a,
#sidebar-menu .sub-menu li.active > a {
  color: #B8860B !important;
  font-weight: 600;
  background: rgba(232, 168, 30, 0.1);
}

.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.5);
  padding: 32px 0 20px;
  margin-top: 60px;
  font-size: 0.9em;
}
.footer strong {
  color: #E8A81E;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.1em;
}
.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 16px 0 12px;
}
.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover {
  color: #E8A81E;
}
.footer .footer-tagline {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  font-size: 0.85em;
  margin: 3px 0 0;
}
.footer .footer-nav {
  text-align: right;
}
.footer .footer-nav a {
  margin-left: 14px;
  font-size: 0.9em;
}

#qrCode {
  margin: 15px;
}

@media (max-width: 991px) {
  #sidebar-menu {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .site-hero {
    height: 280px;
  }
  .site-hero__title {
    font-size: 2.2em;
  }
  .site-hero__tagline {
    font-size: 0.95em;
  }
  .home-intro {
    font-size: 0.82em;
  }
  .footer .footer-nav {
    text-align: left;
    margin-top: 12px;
  }
  .footer .footer-nav a {
    margin-left: 0;
    margin-right: 14px;
  }
}
.carousel-caption {
  display: none;
}

.carousel-caption p {
  font-size: 20px;
  line-height: 1.4;
}

.carousel-inner .item img[src$=".svg"] {
  width: 100%;
}
