/* Rules landing — VIP full-bleed bands */

.rules-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.rules-section-title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  text-shadow: 0 0 28px rgba(240, 208, 96, 0.28);
}

/* Hero */
.rules-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(58vh, 520px);
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  overflow: hidden;
  background-color: #05020c;
  background-image: url("../assets/rules-hero-bg.jpg");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.rules-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(5, 2, 12, 0.82) 0%,
      rgba(5, 2, 12, 0.45) 48%,
      rgba(5, 2, 12, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(5, 2, 12, 0.35) 0%, transparent 40%, rgba(5, 2, 12, 0.65) 100%);
}

.rules-hero__inner {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  text-align: center;
}

.rules-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff4c4;
  text-shadow: 0 0 16px rgba(240, 208, 96, 0.4);
}

.rules-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #ffe9a8;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(240, 208, 96, 0.35);
}

.rules-hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: #e8dcf5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.rules-hero__cta {
  min-width: min(320px, 100%);
  margin-inline: auto;
}

/* How to play */
.rules-how {
  position: relative;
  padding: clamp(3rem, 7vw, 4.75rem) 1.25rem;
  overflow: hidden;
  background-color: #080414;
  background-image: url("../assets/rules-how-bg.jpg");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.rules-how__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 2, 12, 0.72) 0%, rgba(5, 2, 12, 0.55) 50%, rgba(5, 2, 12, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(107, 47, 181, 0.22), transparent 65%);
}

.rules-how__inner {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0 auto;
}

.rules-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rules-step {
  --border-w: 2px;
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(28, 12, 52, 0.92), rgba(8, 4, 18, 0.94));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(107, 47, 181, 0.2);
  backdrop-filter: blur(10px);
}

.rules-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: var(--border-w);
  pointer-events: none;
  background: conic-gradient(
    from var(--border-angle),
    #4a1a78 0%,
    #b8922a 12%,
    #fff6c8 20%,
    #f0d060 28%,
    #6b2fb5 42%,
    #d4af37 55%,
    #ffe9a8 64%,
    #5a2499 78%,
    #c9a227 90%,
    #4a1a78 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderAngleSpin var(--rim-duration) linear infinite;
}

.rules-step__num,
.rules-step__body {
  position: relative;
  z-index: 1;
}

.rules-step__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffe08a;
  text-shadow: 0 0 18px rgba(240, 208, 96, 0.45);
  line-height: 1.2;
}

.rules-step__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff4c4;
}

.rules-step__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbb8e0;
}

@media (min-width: 721px) {
  .rules-step:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 1rem) / 2);
  }
}

/* Paytable band */
.rules-pay {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  overflow: hidden;
  background-color: #05020c;
  background-image: url("../assets/rules-pay-bg.jpg");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.rules-pay__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(5, 2, 12, 0.75) 0%,
      rgba(5, 2, 12, 0.4) 50%,
      rgba(5, 2, 12, 0.75) 100%
    ),
    linear-gradient(180deg, rgba(5, 2, 12, 0.5) 0%, rgba(5, 2, 12, 0.35) 40%, rgba(5, 2, 12, 0.7) 100%);
}

.rules-pay__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.rules-pay__card {
  --border-w: 2px;
  position: relative;
  width: min(720px, 100%);
  padding: 1.75rem 1.6rem 1.5rem;
  border-radius: 18px;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(28, 12, 52, 0.92), rgba(8, 4, 18, 0.94));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(107, 47, 181, 0.3);
  backdrop-filter: blur(12px);
  text-align: center;
}

.rules-pay__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: var(--border-w);
  pointer-events: none;
  background: conic-gradient(
    from var(--border-angle),
    #4a1a78 0%,
    #b8922a 12%,
    #fff6c8 20%,
    #f0d060 28%,
    #6b2fb5 42%,
    #d4af37 55%,
    #ffe9a8 64%,
    #5a2499 78%,
    #c9a227 90%,
    #4a1a78 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderAngleSpin var(--rim-duration) linear infinite;
}

.rules-pay__eyebrow,
.rules-pay__card h2,
.rules-pay__hint,
.rules-pay__sub,
.rules-pay__table,
.rules-bonus-list {
  position: relative;
  z-index: 1;
}

.rules-pay__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff4c4;
}

.rules-pay__card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: 0.08em;
  color: #ffe9a8;
  text-shadow: 0 0 24px rgba(240, 208, 96, 0.3);
}

.rules-pay__hint {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: #cbb8e0;
}

.rules-pay__eyebrow--bonuses {
  margin-top: 1.75rem;
}

.rules-pay__sub {
  margin: 0.15rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #ffe9a8;
}

.rules-pay__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.rules-pay__table th,
.rules-pay__table td {
  padding: 0.65rem 0.35rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.rules-pay__table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff4c4;
}

.rules-pay__table th:not(:first-child),
.rules-pay__table td:not(:first-child) {
  text-align: right;
}

.rules-pay__table td {
  font-size: 1.05rem;
  color: var(--text);
}

.rules-pay__table td:not(:first-child) {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffe08a;
  text-shadow: 0 0 12px rgba(240, 208, 96, 0.35);
}

.rules-pay__table tbody tr:last-child td {
  border-bottom: none;
}

.pay-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.pay-sym {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.pay-name {
  font-size: 0.95rem;
  color: #f7f1e4;
}

.rules-bonus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.rules-bonus {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.rules-bonus__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #ffe08a;
}

.rules-bonus__detail {
  margin: 0;
  font-size: 0.88rem;
  color: #cbb8e0;
  line-height: 1.4;
}

/* Coins note */
.rules-note {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem) 1.25rem;
  overflow: hidden;
  background-color: #05020c;
  background-image: url("../assets/rules-note-bg.jpg");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.rules-note__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 2, 12, 0.7), rgba(5, 2, 12, 0.85));
}

.rules-note__inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto;
}

.rules-note__card {
  --border-w: 2px;
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  isolation: isolate;
  text-align: center;
  background: linear-gradient(160deg, rgba(32, 14, 58, 0.94), rgba(10, 4, 20, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.rules-note__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: var(--border-w);
  pointer-events: none;
  background: conic-gradient(
    from var(--border-angle),
    #4a1a78 0%,
    #b8922a 12%,
    #fff6c8 20%,
    #f0d060 28%,
    #6b2fb5 42%,
    #d4af37 55%,
    #ffe9a8 64%,
    #5a2499 78%,
    #c9a227 90%,
    #4a1a78 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderAngleSpin var(--rim-duration) linear infinite;
}

.rules-note__card h2,
.rules-note__card p,
.rules-note__card .btn {
  position: relative;
  z-index: 1;
}

.rules-note__card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #ffe9a8;
}

.rules-note__card p {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbb8e0;
}

.rules-note__card .btn {
  text-decoration: none;
}

.rules-note__card .btn:hover {
  text-decoration: none;
}

@media (max-width: 900px) {
  .rules-how__inner,
  .rules-pay__inner,
  .rules-note__inner {
    width: min(720px, 100%);
  }

  .rules-pay__card,
  .rules-note__card {
    padding: 1.35rem 1.25rem;
  }
}

@media (max-width: 720px) {
  .rules-hero {
    min-height: min(46vh, 400px);
    padding: 2rem max(0.85rem, env(safe-area-inset-right)) 2.25rem max(0.85rem, env(safe-area-inset-left));
  }

  .rules-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .rules-hero__cta {
    width: 100%;
    min-width: 0;
    font-size: 1.05rem;
    padding: 1.1rem 1.35rem;
  }

  .rules-how,
  .rules-pay,
  .rules-note {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
  }

  .rules-steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .rules-step {
    padding: 1.05rem 1.05rem;
  }

  .rules-pay__table {
    font-size: 0.85rem;
  }

  .rules-pay__table th,
  .rules-pay__table td {
    padding: 0.55rem 0.4rem;
  }

  .rules-note__card .btn {
    width: 100%;
    text-align: center;
  }
}
