/* PvP Club — mcpvp-style theme (original stylesheet) */
:root {
  --bg: #070913;
  --bg-2: #0b0e1d;
  --panel: #111426;
  --panel-2: #0f121c;
  --line: #1e293b;
  --line-2: #303951;
  --text: #e7e9ef;
  --muted: #a4aec4;
  --faint: #8d96ad;
  --accent: #ff4b42;
  --accent-soft: rgba(255, 75, 66, 0.14);
  --accent-ink: #ffffff;
  --danger: #ff4444;
  --ok: #3ddc97;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Menlo', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #c62f28 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-size: 13px; font-weight: 800;
}
.brand .club { color: var(--accent); }
.brand-logo { height: 34px; width: auto; display: block; }
.foot-brand .brand-logo { height: 26px; }
.mh-left .mh-logo { height: 24px; width: auto; display: block; }
.auth-brand .brand-logo { height: 30px; }
.top-links { display: flex; gap: 22px; margin-left: 8px; }
.top-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.top-links a:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 14.5px;
  padding: 10px 20px; transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: scale(0.97); }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff6f68; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(255, 75, 66, 0.25);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.eyebrow .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(42px, 6.5vw, 74px); font-weight: 700; }
.hero h1 .accent { color: var(--accent); }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 480px; margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.ip-card {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 18px; cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s; min-width: 230px;
}
.ip-card:hover { border-color: var(--accent); background: #131730; }
.ip-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 15.5px; }
.ip-top svg { color: var(--faint); }
.ip-sub { color: var(--faint); font-size: 12.5px; }
.ip-card.copied { border-color: var(--ok); }
.ip-card.copied .ip-top { color: var(--ok); }

.hero-visual {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.hero-visual .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.hero-visual .panel-head .chip {
  color: var(--ok); background: rgba(61, 220, 151, 0.1); border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}
.hv-body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hv-stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.hv-stat .k { color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hv-stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.hv-stat .v .accent { color: var(--accent); }
.hv-art { grid-column: 1 / -1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.hv-art svg { display: block; width: 100%; height: auto; }

/* ---------- countdown ---------- */
.countdown-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.countdown-band .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 24px; flex-wrap: wrap; }
.countdown-band .cd-label { color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cd-clocks { display: flex; gap: 8px; }
.cd-cell {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 6px 12px; text-align: center; min-width: 58px;
}
.cd-cell b { display: block; font-size: 17px; font-weight: 700; color: var(--accent); }
.cd-cell span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.section-head .kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 560px; }

/* feature panels */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  border: 1px solid rgba(255, 75, 66, 0.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }
.feature-card .tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase;
}

/* gamemodes */
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; transition: border-color .15s;
}
.mode-card:hover { border-color: var(--accent); }
.mode-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mode-name .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.mode-desc { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* top players */
.ranked-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ranked-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ranked-head h3 { font-size: 16px; font-weight: 700; }
.ranked-head span { color: var(--faint); font-size: 12.5px; }
.ranked-empty { padding: 44px 22px; text-align: center; color: var(--muted); }
.ranked-empty .big { font-size: 30px; margin-bottom: 8px; }
.ranked-empty p { font-size: 14.5px; max-width: 420px; margin: 0 auto 18px; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news-card .date { color: var(--faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.news-card h3 { font-size: 17px; margin: 10px 0 8px; }
.news-card p { color: var(--muted); font-size: 14px; }

/* locations */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.loc-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
}
.loc-card .region { font-weight: 700; font-size: 15px; }
.loc-card .where { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.loc-card .ping { color: var(--ok); font-weight: 700; font-size: 13px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.foot-inner { padding: 44px 24px 36px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-links { display: flex; gap: 40px; }
.foot-links h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 12px; }
.foot-links a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.foot-links a:hover { color: var(--accent); }

/* ---------- register page ---------- */
.auth-shell { min-height: calc(100vh - 64px); display: flex; align-items: flex-start; justify-content: center; padding: 56px 24px 80px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 40px 36px 36px;
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 26px; }
.auth-brand .club { color: var(--accent); }
.auth-title { text-align: center; font-size: 24px; font-weight: 700; }
.step-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 28px; }
.step-dots .dot {
  width: 26px; height: 4px; border-radius: 999px; background: var(--line-2); transition: background .2s;
}
.step-dots .dot.on { background: var(--accent); }

.reg-step { display: none; }
.reg-step.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255, 75, 66, 0.3);
  font-size: 11.5px; font-weight: 700; margin-right: 9px;
}
.reg-step h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; }
.step-sub { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }

.field {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 75, 66, 0.18); }
.code-field { text-align: center; letter-spacing: 0.35em; font-size: 19px; }
.field-msg { min-height: 18px; font-size: 13px; color: var(--danger); margin: 10px 2px 6px; }
.field-msg.ok { color: var(--ok); }
.reg-step .btn { margin-top: 10px; }
.text-btn {
  display: block; margin: 16px auto 0; background: none; border: none; cursor: pointer;
  color: var(--faint); font-size: 13.5px; font-family: inherit; transition: color .15s;
}
.text-btn:hover { color: var(--accent); }
.email-echo { color: var(--accent); font-weight: 600; }
.done-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.35);
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ok);
}
.done-ign { text-align: center; color: var(--muted); font-size: 14.5px; margin: 14px 0 4px; }
.done-ign b { color: var(--text); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .news-grid, .loc-grid { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .foot-inner { flex-direction: column; }
}
@media (max-width: 640px) {
  .top-links { display: none; }
  .feature-grid, .news-grid, .loc-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
  .auth-card { padding: 32px 24px 28px; }
}

/* ---------- register modal (minemen-style, pvp-club palette) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 4, 10, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .22s;
}
#modal-card, #claim-card {
  width: 100%; max-width: 452px;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #12152a, #0b0e1d);
  box-shadow: 0 60px 120px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(18px) scale(.985);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.mh-left { display: flex; align-items: center; gap: 10px; }
.mh-left .mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #c62f28 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-size: 12px; font-weight: 800;
}
.mh-left h3 { font-size: 15px; letter-spacing: -0.01em; font-weight: 700; }
.mclose {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent;
  color: var(--faint); font-size: 20px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.mclose:hover { background: rgba(255, 255, 255, .07); color: #fff; }
#msteps, #csteps { display: flex; gap: 6px; padding: 14px 18px 0; }
.mdot { height: 3px; flex: 1; border-radius: 99px; background: #22283b; transition: background .3s; }
.mdot.on { background: var(--accent); }
.mdot.done { background: rgba(255, 75, 66, .4); }
.mstep { padding: 18px; }
.mnotice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .018); margin-bottom: 14px;
}
.mnotice svg, .mnotice img { flex: 0 0 auto; margin-top: 1px; }
.mnotice p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.mnotice p strong { color: #fff; font-weight: 600; display: block; font-size: 12.5px; margin-bottom: 2px; }
.mnotice p span { display: inline; }
.mnotice p code {
  font-family: 'Menlo', Consolas, monospace; font-size: 11.5px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 1px 5px; color: #fff;
}
.mnotice.ok { border-color: rgba(61, 220, 151, .22); background: rgba(61, 220, 151, .05); }
.mfield { margin-bottom: 12px; }
.mfield label {
  display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-family: 'Menlo', Consolas, monospace; margin-bottom: 7px;
}
.mfield input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  background: #0a0c17; border: 1px solid var(--line-2); color: #fff;
  font-family: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.mfield input::placeholder { color: #4c5470; }
.mfield input:focus {
  outline: none; border-color: rgba(255, 75, 66, .6);
  box-shadow: 0 0 0 3px rgba(255, 75, 66, .14);
}
.mfield input.code {
  font-family: 'Menlo', Consolas, monospace; letter-spacing: .5em;
  font-size: 18px; text-align: center; padding-left: .5em;
}
.malert {
  display: none; font-size: 12.5px; padding: 10px 12px; border-radius: 8px;
  margin-bottom: 12px; border: 1px solid transparent; line-height: 1.5;
}
.malert.err { background: rgba(255, 68, 68, .08); border-color: rgba(255, 68, 68, .3); color: #ffb3b3; }
.malert.ok { background: rgba(61, 220, 151, .07); border-color: rgba(61, 220, 151, .28); color: #8be8b3; }
.mfoot { margin-top: 14px; font-size: 11px; color: var(--faint); text-align: center; line-height: 1.5; }
.pushwait { display: none; align-items: center; gap: 9px; margin: 0 2px 14px; font-size: 12px; color: var(--faint); }
.mspin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .14); border-top-color: var(--accent);
  animation: mspin .8s linear infinite; flex: 0 0 auto; display: none;
}
@keyframes mspin { to { transform: rotate(360deg); } }
.mbtn-row { display: flex; flex-direction: column; gap: 10px; }
body.modal-open { overflow: hidden; }

/* ---------- boot loader (store-style) ---------- */
#bootLoader {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#bootLoader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot-logo { height: 44px; width: auto; animation: bootpulse 1.4s ease-in-out infinite; }
@keyframes bootpulse { 0%, 100% { opacity: .55; transform: scale(.985); } 50% { opacity: 1; transform: none; } }
.boot-bar { width: 148px; height: 2px; border-radius: 99px; background: #1a1f30; overflow: hidden; }
.boot-bar span {
  display: block; width: 40%; height: 100%; border-radius: 99px;
  background: var(--accent); animation: bootslide 1.1s ease-in-out infinite;
}
@keyframes bootslide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- claim modal extras ---------- */
.c-match {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  background: #0a0c17; border: 1px solid var(--line-2); border-radius: 10px;
  color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.c-match:hover { border-color: rgba(255, 75, 66, .6); background: #0d1020; }
.c-match img { width: 30px; height: 30px; border-radius: 50%; background: #15151a; }
.c-match small { display: block; color: var(--faint); font-size: 11px; font-weight: 500; }
.c-hits { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 14px; }
.c-chip {
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 75, 66, .07); border: 1px solid rgba(255, 75, 66, .22);
  color: #ffb3ad; font-size: 12px; font-weight: 600; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.c-chip:hover { background: rgba(255, 75, 66, .16); border-color: rgba(255, 75, 66, .45); }
.c-chip.none { cursor: default; color: var(--faint); background: rgba(255,255,255,.03); border-color: var(--line); }
#cAvatar { width: 34px; height: 34px; border-radius: 8px; background: #15151a; flex: 0 0 auto; }
.trend { display: inline-block; margin-left: 7px; font-size: 12px; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--danger); }
.trend.flat { color: var(--faint); }
