:root {
  --bg-page: #120304;
  --bg-surface: #0b0b0b;
  --bg-surface-alt: #151515;
  --bg-muted: #1f1f1f;
  --border: rgba(255, 255, 255, 0.12);
  --text-main: #f5f5f5;
  --text-muted: #c9c9c9;
  --text-soft: #9f9f9f;
  --accent-red: #ec1c23;
  --accent-green: #01b400;
  --accent-red-dark: #b31318;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(236, 28, 35, 0.28), transparent 38%),
    linear-gradient(180deg, #2b0709 0%, var(--bg-page) 24%, #070707 100%);
}

a {
  color: var(--accent-green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #28d33d;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

.page-shell {
  padding: 24px 12px 40px;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.site-header {
  margin-bottom: 24px;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(140px, 28vw, 220px);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: var(--accent-green);
}

.button-secondary {
  background: var(--accent-red);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
}

.subnav a,
.subnav span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.2;
}

.subnav span {
  background: rgba(236, 28, 35, 0.18);
  border-color: rgba(236, 28, 35, 0.3);
}

.page-main {
  display: block;
}

.hero,
.article-card,
.site-footer {
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  max-width: 860px;
  color: var(--text-muted);
  font-size: clamp(18px, 2.4vw, 22px);
}

.article-card {
  padding: 28px;
}

.article-content > p:first-of-type {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.article-content h2,
.article-content h3 {
  margin: 40px 0 16px;
  line-height: 1.2;
}

.article-content h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.article-content h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content figure,
.article-content .table-wrap,
.article-content .contents-card,
.article-content .faq-card {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2em;
}

.article-content li + li {
  margin-top: 8px;
}

.section-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
}

.section-image img {
  width: 100%;
}

.section-image figcaption {
  padding: 14px 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}

.contents-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(236, 28, 35, 0.16), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(236, 28, 35, 0.28);
}

.contents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.contents-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.contents-caption {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contents-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.contents-toggle-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-green);
}

.contents-body {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contents-card:has(.contents-toggle-input:checked) .contents-body {
  display: block;
}

.contents-body ul {
  margin-bottom: 0;
}

.contents-body ul ul {
  margin-top: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
}

.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.95rem;
}

.table-wrap tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.casino-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at top, rgba(236, 28, 35, 0.22), transparent 34%),
    rgba(7, 7, 7, 0.96);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.casino-popup.show {
  visibility: visible;
  opacity: 1;
}

.roulette-wheel {
  position: relative;
  width: 120px;
  height: 120px;
  animation: spin 3s linear infinite;
}

.wheel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-red) 0deg 45deg,
    #000 45deg 90deg,
    var(--accent-green) 90deg 135deg,
    #000 135deg 180deg,
    var(--accent-red) 180deg 225deg,
    #000 225deg 270deg,
    var(--accent-green) 270deg 315deg,
    #000 315deg 360deg
  );
  box-shadow: 0 0 30px rgba(236, 28, 35, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.ball {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  animation: ballBounce 0.6s ease-in-out infinite alternate;
}

.redirect-notice {
  max-width: 420px;
  text-align: center;
}

.notice-title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.progress-container {
  width: min(100%, 320px);
  text-align: center;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 12px rgba(1, 180, 0, 0.25);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-red), #ff8b4d, var(--accent-green));
  background-size: 200% 100%;
  transition: width 0.1s linear;
  animation: progressShine 1.8s linear infinite;
}

.progress-text {
  margin-top: 12px;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 700;
}

.faq-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.faq-card h2 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  margin: 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.34);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(236, 28, 35, 0.35);
  background: rgba(236, 28, 35, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  gap: 16px;
}

.faq-question-text {
  flex: 1;
}

.faq-arrow {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  background: var(--accent-red);
  -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIyNyI+PGcgZGF0YS1uYW1lPSJEZXBvc2l0IEljb24iIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiI+PHBhdGggZGF0YS1uYW1lPSJQYXRoIDM3NjQiIGQ9Ik0uNSAxMy41YTEzIDEzIDAgMSAxIDEzIDEzIDEzIDEzIDAgMCAxLTEzLTEzWiIvPjxwYXRoIGRhdGEtbmFtZT0iTGluZSAxIiBkPSJNMTMuNSA2Ljk3OVYyMC4wMiIgc3Ryb2tlLXdpZHRoPSIxLjYiLz48cGF0aCBkYXRhLW5hbWU9IkxpbmUgMiIgZD0iTTYuNzQ2IDEzLjVoMTMuNTA3IiBzdHJva2Utd2lkdGg9IjEuNiIvPjwvZz48L3N2Zz4=);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 23px;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 24px;
  padding: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-nav a,
.footer-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.footer-nav span {
  background: rgba(236, 28, 35, 0.18);
}

.footer-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .header-bar,
  .hero,
  .article-card,
  .site-footer {
    padding: 22px;
  }

  .contents-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .page-shell {
    padding: 12px 8px 28px;
  }

  .header-bar,
  .hero,
  .article-card,
  .site-footer {
    padding: 18px;
    border-radius: 20px;
  }

  .button,
  .subnav a,
  .subnav span,
  .footer-nav a,
  .footer-nav span {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .roulette-wheel {
    width: 96px;
    height: 96px;
  }

  .faq-question {
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ballBounce {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.3);
  }
}

@keyframes progressShine {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}
