@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/poppins-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/poppins-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/poppins-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-v51-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-v51-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

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

body {
  background: #171522;
  color: #f4f0ff;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ── Nav ──────────────────────────────────────────────── */
.bot-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  padding: 0 48px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.bot-nav .nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #FF1139;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

/* ── Page layout ──────────────────────────────────────── */
.bot-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 32px 48px;
}

/* ── Header ───────────────────────────────────────────── */
.agreement-header {
  margin-bottom: 28px;
}

.agreement-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FF1139;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF1139;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.agreement-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.agreement-intro {
  font-size: 0.92rem;
  color: #a8a4b8;
  line-height: 1.75;
  max-width: 580px;
  margin: 0;
}

.agreement-meta {
  font-size: 0.78rem;
  color: #7F7B91;
  margin-top: 12px;
}

/* ── Rules section ────────────────────────────────────── */
.rules-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.rule-card {
  background: #202439;
  border: 1px solid #303D53;
  border-radius: 16px;
  padding: 26px 28px;
}

.rule-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.rule-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 17, 57, 0.1);
  border: 1px solid rgba(255, 17, 57, 0.18);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pixel-star {
  width: 13px;
  height: 13px;
  fill: #FF1139;
}

.rule-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.rule-card ol {
  margin: 0;
  padding-left: 17px;
  list-style: decimal;
}

.rule-card li {
  font-size: 0.855rem;
  color: #a8a4b8;
  line-height: 1.65;
  margin-bottom: 5px;
  padding-left: 3px;
}

.rule-card li:last-child { margin-bottom: 0; }

.rule-card--ban {
  border-color: rgba(255, 17, 57, 0.2);
  background: rgba(255, 17, 57, 0.04);
}

.rule-card--full {
  grid-column: 1 / -1;
}

/* ── Ban warning ──────────────────────────────────────── */
.ban-warning {
  font-size: 0.82rem;
  color: #868392;
  line-height: 1.65;
  padding: 18px 22px;
  border: 1px solid rgba(255, 17, 57, 0.12);
  border-radius: 10px;
  background: rgba(255, 17, 57, 0.03);
  margin-top: 16px;
}

/* ── Sentinel ─────────────────────────────────────────── */
#scroll-sentinel {
  height: 1px;
}

/* ── Sticky agree bar ─────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(23, 21, 34, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 -12px 40px rgba(23, 21, 34, 0.65), 0 -2px 10px rgba(23, 21, 34, 0.4);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sticky-bar-hint {
  font-size: 0.82rem;
  color: #7F7B91;
  line-height: 1.4;
  flex-shrink: 0;
}

.sticky-bar-hint strong {
  display: block;
  color: #a8a4b8;
  font-weight: 500;
  margin-bottom: 1px;
}

/* ── Agree button ─────────────────────────────────────── */
.btn-agree {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.9rem 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: not-allowed;
  white-space: nowrap;
  flex-shrink: 0;
  background: #2a2840;
  color: #4a4760;
  transition: filter 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  --step: 6px;
  --corner: 12px;
  clip-path: polygon(
    0 var(--corner),
    var(--step) var(--corner),
    var(--step) var(--step),
    var(--corner) var(--step),
    var(--corner) 0,
    calc(100% - var(--corner)) 0,
    calc(100% - var(--corner)) var(--step),
    calc(100% - var(--step)) var(--step),
    calc(100% - var(--step)) var(--corner),
    100% var(--corner),
    100% calc(100% - var(--corner)),
    calc(100% - var(--step)) calc(100% - var(--corner)),
    calc(100% - var(--step)) calc(100% - var(--step)),
    calc(100% - var(--corner)) calc(100% - var(--step)),
    calc(100% - var(--corner)) 100%,
    var(--corner) 100%,
    var(--corner) calc(100% - var(--step)),
    var(--step) calc(100% - var(--step)),
    var(--step) calc(100% - var(--corner)),
    0 calc(100% - var(--corner))
  );
}

.btn-agree.ready {
  background: #FF1139;
  color: #fff;
  cursor: pointer;
}

.btn-agree.ready:hover {
  filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 17, 57, 0.55));
  transform: translateY(-2px);
}

.btn-agree.ready:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

@media (hover: none) {
  .btn-agree.ready:hover { filter: none; transform: none; }
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .bot-nav { display: none; }
  .bot-page { padding: 40px 20px 48px; }

  .rules-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rule-card { padding: 22px 20px; }

  .sticky-bar { padding: 14px 20px; justify-content: center; }
  .sticky-bar-hint { display: none; }

  .btn-agree {
    justify-content: center;
    width: 100%;
  }

  body { padding-bottom: 100px; }
}
