@import url('https://fonts.googleapis.com/css2?family=Rye&family=Special+Elite&family=Caveat:wght@400;700&display=swap');

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

:root {
  --bg-page:  #13161a;
  --chalk:    #e8eaed;
  --chalk2:   #b8bcc4;
  --chalk3:   #6e7580;
  --blue:     #3a8fd4;
  --blue2:    #7ec8f0;
  --green:    #27a66c;
  --green2:   #50d898;
  --red:      #c0392b;
  --divider:  rgba(180,200,230,0.1);
  --twitch:   #9146ff;
}

body {
  background: var(--bg-page);
  color: var(--chalk);
  font-family: 'Special Elite', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}

.nav-brand {
  font-family: 'Rye', serif;
  font-size: 18px;
  color: var(--blue2);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-right: auto;
}

.nav-links { display: flex; gap: 20px; }

.nav-link {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--chalk3);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--chalk2); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(180,200,230,0.2);
}

.nav-name {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--chalk2);
}

/* ── Buttons ── */
.btn {
  font-family: 'Rye', serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover  { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn-twitch {
  background: var(--twitch);
  color: #fff;
}

.btn-sm {
  font-size: 11px;
  padding: 6px 14px;
}

.btn-reset {
  background: rgba(255,255,255,0.05);
  color: var(--chalk3);
  border: 1px solid rgba(180,200,230,0.12);
}

.btn-admin {
  background: rgba(192,57,43,0.2);
  color: #e08070;
  border: 1px solid rgba(192,57,43,0.35);
}

/* ── Card base ── */
.panel-card, .rules-card {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.007) 0px, rgba(255,255,255,0.007) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.005) 0px, rgba(255,255,255,0.005) 1px, transparent 1px, transparent 52px),
    linear-gradient(160deg, #2a2f38 0%, #181c22 55%, #1e2126 100%);
  border: 2px solid rgba(180,200,230,0.1);
  border-radius: 5px;
  padding: 26px 24px 30px;
  position: relative;
  overflow: hidden;
}

.panel-card::before, .rules-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,143,212,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Nails */
.nail {
  position: absolute;
  width: 11px; height: 11px;
  background: radial-gradient(circle at 35% 35%, #6a8aaa, #2a3a4a);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.nail.tl { top: 14px; left: 14px; }
.nail.tr { top: 14px; right: 14px; }
.nail.bl { bottom: 14px; left: 14px; }
.nail.br { bottom: 14px; right: 14px; }

/* Panel header */
.panel-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}

.panel-title {
  font-family: 'Rye', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  letter-spacing: 0.06em;
  color: var(--chalk);
  text-shadow: 0 0 30px rgba(100,180,255,0.15);
}
.panel-title span { color: var(--blue2); }

.panel-sub {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: var(--chalk3);
  margin-top: 5px;
}

/* ── Rules shared styles ── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 500px) { .rules-grid { grid-template-columns: 1fr; } }

.rsec {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(180,200,230,0.08);
  border-radius: 4px;
  padding: 14px 13px 12px;
  position: relative;
}
.rsec::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
}
.rsec.red::before   { background: linear-gradient(90deg, #a02a20, #e04030); }
.rsec.green::before { background: linear-gradient(90deg, #1a8055, #38cc88); }
.rsec.blue::before  { background: linear-gradient(90deg, #1a5a9a, #7ec8f0); }
.rsec.full          { grid-column: 1 / -1; }

.rsec-title {
  font-family: 'Rye', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rsec-title.red   { color: #e07060; }
.rsec-title.green { color: #50d898; }
.rsec-title.blue  { color: var(--blue2); }

.rev {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(180,200,230,0.1);
}
.rev:last-child { border-bottom: none; }

.rev-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 14px;
  color: var(--chalk);
  line-height: 1.3;
}
.rev-note {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: var(--chalk3);
  margin-top: 1px;
}

.badge {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
}
.badge.kasse { background: rgba(192,57,43,0.2); color: #e08070; border: 1px solid rgba(192,57,43,0.35); }
.badge.hype  { background: rgba(39,166,108,0.18); color: #60e8a0; border: 1px solid rgba(39,166,108,0.35); }

.nope-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(180,200,230,0.1);
}
.nope-label {
  font-family: 'Caveat', cursive;
  font-size: 11px;
  color: var(--chalk3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nope-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nope-list li {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  color: var(--chalk3);
  padding-left: 14px;
  position: relative;
  line-height: 1.35;
}
.nope-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: rgba(192,57,43,0.55);
  font-size: 10px;
  top: 1px;
}

.chal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(180,200,230,0.1);
}
.chal:last-child { border-bottom: none; }

.chal-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 14px;
  color: var(--chalk);
  line-height: 1.3;
}
.chal-desc {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: var(--chalk3);
  margin-top: 1px;
}
.price {
  font-family: 'Rye', serif;
  font-size: 13px;
  color: var(--blue2);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 400px) { .overlay-grid { grid-template-columns: 1fr; } }

.overlay-block {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  color: var(--chalk2);
  line-height: 1.6;
}
.overlay-block em { color: var(--blue2); font-style: normal; }

.cmd {
  display: inline-block;
  background: rgba(100,180,255,0.1);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--chalk);
  border: 1px solid rgba(100,180,255,0.2);
}

.note-strip {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: var(--chalk3);
  text-align: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(180,200,230,0.1);
  line-height: 1.5;
}
.note-strip span { color: #60e8a0; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 16px 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-brand {
  font-family: 'Rye', serif;
  font-size: 13px;
  color: var(--blue2);
  opacity: 0.7;
  letter-spacing: 0.08em;
}
.footer-note {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  color: var(--chalk3);
}

/* ── Landing ── */
.landing { padding: 48px 32px; max-width: 1000px; margin: 0 auto; width: 100%; }

.landing-hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-darts { font-size: 48px; margin-bottom: 12px; }

.hero-title {
  font-family: 'Rye', serif;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.06em;
  color: var(--chalk);
  text-shadow: 0 0 40px rgba(100,180,255,0.18);
}
.hero-title span { color: var(--blue2); }

.hero-sub {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--chalk3);
  margin-top: 10px;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,180,255,0.3), transparent);
}
.ornament-glyph { color: var(--blue2); font-size: 13px; opacity: 0.7; }

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lcard {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(180,200,230,0.1);
  border-radius: 5px;
  padding: 28px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  position: relative;
  overflow: hidden;
}
.lcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 5px 5px 0 0;
}
.lcard:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.lcard-blue::before   { background: linear-gradient(90deg, #1a5a9a, #7ec8f0); }
.lcard-gray::before   { background: linear-gradient(90deg, #3a4050, #8090aa); }
.lcard-placeholder::before { background: rgba(180,200,230,0.15); }

.lcard-placeholder { opacity: 0.45; pointer-events: none; }

.lcard-icon { font-size: 32px; }
.lcard-title {
  font-family: 'Rye', serif;
  font-size: 18px;
  color: var(--chalk);
  letter-spacing: 0.05em;
}
.lcard-desc {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: var(--chalk3);
  line-height: 1.5;
  flex: 1;
}
.lcard-action {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: var(--blue2);
  margin-top: 6px;
}
.lcard-gray .lcard-action  { color: var(--chalk3); }

/* ── Rules standalone ── */
.rules-standalone {
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
