/* =================================================================
   mc.zone — extra sections (HowToBuy, LivePlayers, Rules)
   ================================================================= */

/* ---------- HOW TO BUY ---------- */
.howto { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.howto-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative;
}
.howto-grid::before {
  content: ''; position: absolute;
  top: 64px; left: 16%; right: 16%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.howto-card {
  position: relative; z-index: 1;
  padding: 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: all .2s ease;
}
.howto-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.howto-num {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--accent); background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.howto-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.25;
}
.howto-desc { font-size: 14px; color: var(--text-mid); line-height: 1.55; margin: 0; }
.howto-cta { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- LIVE PLAYERS ---------- */
.live-players { padding: 80px 0; }

.top-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 32px;
  padding: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.top-tab {
  display: grid;
  grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  padding: 14px 18px; border-radius: 12px;
  background: transparent; cursor: pointer;
  text-align: left; transition: all .15s ease;
  border: 1px solid transparent;
}
.top-tab:hover { background: rgba(255,255,255,0.025); }
.top-tab.active { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); }
.top-tab-icon {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.04); color: var(--text-mid);
}
.top-tab.active .top-tab-icon { background: var(--accent); color: #062013; }
.top-tab-label {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--text-mid);
}
.top-tab.active .top-tab-label { color: var(--text); }
.top-tab-desc { font-size: 12px; color: var(--text-dim); }

/* Podium */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; align-items: end;
  margin: 48px 0 24px;
}
.podium-col { display: flex; flex-direction: column; align-items: center; }
.podium-player {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding-bottom: 16px;
}
.podium-medal {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: #062013; background: var(--medal);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--medal) 60%, transparent);
}
.podium-avatar {
  position: relative;
  width: 72px; height: 72px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 20px; color: #fff;
  border: 3px solid;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.rank-1 .podium-avatar { width: 88px; height: 88px; font-size: 24px; }
.podium-online {
  position: absolute; bottom: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 8px var(--accent);
}
.podium-nick {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  margin-top: 8px;
}
.podium-rank { font-family: var(--font-mono); font-size: 11px; }
.podium-value {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.podium-value strong {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--medal); letter-spacing: -0.01em;
}
.rank-1 .podium-value strong { font-size: 28px; }
.podium-value span { font-size: 13px; color: var(--text-mid); }
.podium-base {
  width: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 25%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--medal) 35%, var(--line));
  border-bottom: 3px solid var(--medal);
  border-radius: 14px 14px 0 0;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.podium-base::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--medal) 12%, transparent));
}
.podium-base-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; color: color-mix(in srgb, var(--medal) 70%, transparent);
  line-height: 1; letter-spacing: -0.04em;
  position: relative;
}
.rank-1 .podium-base-num { font-size: 72px; }

/* Existing list — now used for ranks 4+ */
.live-list {
  margin-top: 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
}
.live-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 140px;
  align-items: center;
  gap: 16px; padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.live-row:last-child { border-bottom: 0; }
.live-row:not(.live-head):hover { background: rgba(255,255,255,0.025); }
.live-head {
  background: rgba(255,255,255,0.025);
  font-size: 11px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim);
}
.live-rank-num {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--text-mid);
}
.live-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.live-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: #fff;
  flex-shrink: 0;
}
.live-nick { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.live-rank { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.live-hours { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

.top-foot {
  margin-top: 16px; text-align: center;
  font-size: 12px; color: var(--text-dim);
}
.top-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- RULES PAGE ---------- */
.rules-page { padding: 60px 0 100px; }
.rules-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-mid);
  margin-bottom: 32px; transition: color .15s ease;
}
.rules-back:hover { color: var(--accent); }
.rules-grid {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 60px; align-items: start;
  margin-top: 40px;
}
.rules-toc {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 4px;
}
.rules-toc a {
  padding: 8px 12px;
  font-size: 13px; color: var(--text-mid);
  border-radius: 6px; transition: all .15s ease;
  border-left: 2px solid transparent;
}
.rules-toc a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.rules-toc a.active { color: var(--accent); border-left-color: var(--accent); }
.rules-content { display: flex; flex-direction: column; gap: 40px; }
.rules-section h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  margin: 0 0 16px; letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.rules-section ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: rule;
}
.rules-section li {
  counter-increment: rule;
  padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--text-mid); line-height: 1.55;
}
.rules-section li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); flex-shrink: 0;
  padding-top: 2px;
}
.rules-section li.allowed::before { color: var(--accent); }
.rules-section li.forbidden::before { color: #ef4444; }
.rules-section strong { color: var(--text); font-weight: 600; }

@media (max-width: 1100px) {
  .howto-grid { grid-template-columns: 1fr; }
  .howto-grid::before { display: none; }
  .top-tabs { grid-template-columns: 1fr; }
  .top-tab-desc { display: none; }
  .podium { gap: 8px; }
  .podium-base-num { font-size: 40px; }
  .rank-1 .podium-base-num { font-size: 52px; }
  .podium-avatar { width: 56px; height: 56px; font-size: 16px; }
  .rank-1 .podium-avatar { width: 68px; height: 68px; font-size: 18px; }
  .podium-value strong { font-size: 16px; }
  .rank-1 .podium-value strong { font-size: 20px; }
  .live-row { grid-template-columns: 40px 1fr 100px 100px; gap: 10px; padding: 14px 16px; font-size: 12px; }
  .rules-grid { grid-template-columns: 1fr; gap: 32px; }
  .rules-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
