/* reyoy · sponsor slots. Kept in its own file so styles.css stays untouched.
   All of the colour comes from the variables styles.css already defines. */

.sponsors {
  margin: 30px auto 8px;
}

.sponsors[hidden] { display: none; }

.sponsors-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sponsors-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c6479;
}

.sponsors-link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.sponsors-link:hover { color: var(--text); }

.sponsor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsor-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sponsor-card:hover { border-color: #39405a; background: var(--panel-2); }

.sponsor-card.is-empty {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}
.sponsor-card.is-empty:hover { border-color: var(--accent); color: var(--text); }

.sponsor-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}

.sponsor-initial {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #c9bcff;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.3) inset;
}

.sponsor-copy { min-width: 0; }

.sponsor-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-line {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-plus {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.sponsors-foot {
  margin: 9px 0 0;
  font-size: 11.5px;
  color: #5c6479;
}

@media (min-width: 620px) {
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- the advertise page ---------------------------------------------------- */

.ad-page { padding: 30px 0 10px; }

.price-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: var(--accent-soft);
  border-radius: 16px;
}
.price-now .amount { font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-now .per { color: var(--muted); font-size: 15px; }
.price-now .free-count { flex: 1 1 100%; margin: 0; color: #c3b6ff; font-size: 13.5px; }

.buy-block { margin: 0 0 26px; }
.buy-block .btn-big { max-width: 420px; }
.buy-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.buy-note.error { color: #ff8f8f; }

.slot-board {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .slot-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .slot-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.slot-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}
.slot-tile.free { background: transparent; border-style: dashed; }
.slot-tile.next { border-color: var(--accent); background: var(--accent-soft); }

.slot-rank {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c6479;
  font-weight: 700;
}
.slot-tile.next .slot-rank { color: #c3b6ff; }
.slot-body { font-size: 14.5px; font-weight: 600; }
.slot-sub { font-size: 13px; color: var(--muted); }

.ladder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 6px 0 4px;
}
.ladder-table th,
.ladder-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.ladder-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.ladder-table td { font-variant-numeric: tabular-nums; }
.ladder-table tr.is-now td { background: var(--accent-soft); color: #ded6ff; font-weight: 600; }
.ladder-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

.use-rules {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 16px 18px;
}
.use-rules p { margin: 0; font-size: 14.5px; color: #c3c9da; }

/* --- the sponsor dashboard -------------------------------------------------- */

.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }

.stat-row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
@media (min-width: 620px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 13px 14px;
}
.stat dt { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #5c6479; font-weight: 700; }
.stat dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

.state-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.state-pill.live { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.35); background: rgba(110, 231, 168, 0.1); }
.state-pill.warn { color: #ffcf8f; border-color: rgba(255, 207, 143, 0.35); background: rgba(255, 207, 143, 0.1); }
.state-pill.off { color: #ff8f8f; border-color: rgba(255, 143, 143, 0.35); background: rgba(255, 143, 143, 0.1); }

.card-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 14px;
}
.card-preview .sponsor-card { cursor: default; }

.bookmark-box {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.bookmark-box h2 { font-size: 17px; margin-bottom: 6px; }
.bookmark-box p { margin: 0 0 10px; font-size: 14px; color: #ded6ff; }
.bookmark-url {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  word-break: break-all;
}

.char-count { float: right; font-size: 12px; color: #5c6479; font-weight: 500; }

.dash-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.dash-note.error { color: #ff8f8f; }
.dash-note.ok { color: #6ee7a8; }

.gate { max-width: 560px; }
