/*
 * MCRank editorial theme
 * Warm, text-led and intentionally simple. Live data markup stays unchanged.
 */
:root {
  --background: #f4f0f8;
  --surface: #fffdf9;
  --surface-2: #eee8f4;
  --line: #d9d1e2;
  --line-strong: #bfb3cc;
  --muted: #736c79;
  --text: #251f2b;
  --violet: #6f4bd8;
  --violet-bright: #8565e0;
  --violet-soft: #e7def7;
  --blue: #477ea8;
  --green: #24744a;
  --gold: #8a6517;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

html { background: var(--background); }
body {
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

::selection { color: #fff; background: #6f4bd8; }
button:focus-visible,
a:focus-visible,
input:focus-visible { outline: 2px solid #6f4bd8; outline-offset: 3px; }
.ambient,
.ticker { display: none !important; }
.section-shell { width: min(1120px, calc(100% - 48px)); }
.glass-card {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Header */
.site-header {
  width: 100%;
  min-height: 70px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: rgba(244, 240, 248, .94);
  backdrop-filter: blur(14px);
  box-shadow: none;
}
.brand {
  gap: 10px;
  color: #30263c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .09em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 36px;
  object-fit: contain;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #fff;
  background: #6f4bd8;
  box-shadow: none;
  transform: none;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}
.desktop-nav { gap: 28px; color: #625b69; font-size: 12px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  width: 0;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: -5px;
  background: #6f4bd8;
  transition: width .16s ease;
}
.desktop-nav a:hover { color: #2f2835; }
.desktop-nav a:hover::after { width: 100%; }
.header-cta {
  padding: 9px 15px;
  border: 1px solid #44315c;
  border-radius: 999px;
  color: #fff;
  background: #332442;
  font-size: 11px;
  font-weight: 700;
}

/* Hero */
.hero {
  min-height: 660px;
  padding: 92px 0 88px;
  grid-template-columns: minmax(0, 1.07fr) minmax(390px, .78fr);
  gap: 76px;
}
.eyebrow,
.section-kicker,
.micro-label {
  color: #6f4bd8;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.eyebrow {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #5f5766;
  background: transparent;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #3f9b66;
  box-shadow: none;
}
.status-dot--offline { background: #b54c59; box-shadow: none; }
.hero h1 {
  max-width: 690px;
  margin: 25px 0 23px;
  color: #28202f;
  font-family: var(--display);
  font-size: clamp(55px, 6.2vw, 82px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.047em;
}
.hero h1 span { color: #6f4bd8; text-shadow: none; }
.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: #625b68;
  font-size: 16px;
  line-height: 1.72;
}
.hero-actions { margin-top: 31px; gap: 10px; }
.button {
  min-height: 46px;
  padding: 0 18px;
  gap: 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { transform: none; }
.button--primary {
  color: #fff;
  background: #6f4bd8;
  box-shadow: none;
}
.button--primary:hover { background: #5f3dc7; }
.button--ghost {
  color: #45394d;
  background: transparent;
  border-color: #bfb3cc;
}
.button--ghost:hover { border-color: #6f4bd8; color: #6f4bd8; }
.trust-row {
  gap: 0;
  margin-top: 46px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.trust-row div {
  min-width: 125px;
  padding-right: 25px;
  margin-right: 25px;
  border-right: 1px solid var(--line);
}
.trust-row div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.trust-row strong {
  color: #33283e;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.trust-row span { color: #7b7480; font-size: 10px; }

/* Live leader note */
.hero-board {
  padding: 23px;
  position: relative;
  border-radius: 18px;
  transform: rotate(1deg);
  box-shadow: 12px 14px 0 #e2d9eb;
}
.hero-board::before { display: none; }
.board-topline { padding-bottom: 17px; border-bottom-color: var(--line); }
.board-topline h2 {
  margin-top: 5px;
  color: #302638;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
}
.micro-label { color: #786f7e; font-size: 9px; }
.live-pill {
  padding: 5px 9px;
  border: 1px solid #bcd8c6;
  border-radius: 999px;
  color: #24744a;
  background: #edf7f0;
  font-size: 9px;
}
.live-pill i { background: #3c9b65; }
.podium-feature {
  min-height: 88px;
  margin: 15px 0 8px;
  padding: 12px;
  grid-template-columns: 22px 48px 1fr auto;
  border: 1px solid #d6cbea;
  border-radius: 11px;
  background: #f1ebfa;
}
.rank-crown { color: #89621b; }
.pixel-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid #cfc7d6;
  border-radius: 7px;
  box-shadow: none;
}
.pixel-avatar--small { width: 32px; height: 32px; flex-basis: 32px; border-radius: 5px; }
.podium-name strong { color: #302638; }
.podium-name span,
.table-player small { color: #7b7480; }
.tier-badge {
  min-width: 40px;
  padding: 4px 8px;
  border: 1px solid #cfc0e8;
  border-radius: 999px;
  color: #5e3cb8;
  background: #eee6fa;
  font-family: var(--mono);
  font-size: 9px;
}
.tier-badge--high { color: #2f648c; background: #e5f0f8; border-color: #b7d2e4; }
.mini-ranking { gap: 2px; }
.mini-row {
  min-height: 44px;
  padding: 6px;
  grid-template-columns: 22px 32px 1fr auto 38px;
  color: #4f4855;
  border-radius: 7px;
}
.mini-row:hover { background: #f5f0f8; }
.rank-number,
.mini-score { color: #817887; }
.board-link { color: #6f4bd8; border-top-color: var(--line); }

/* Shared section language */
.global-section { padding: 94px 0 36px; scroll-margin-top: 82px; }
.ranking-section { padding: 100px 0; }
.section-heading { align-items: end; gap: 52px; margin-bottom: 37px; }
.section-heading h2,
.search-panel h2,
.final-cta h2 {
  max-width: 690px;
  margin: 9px 0 0;
  color: #2c2333;
  font-family: var(--display);
  font-size: clamp(39px, 4.5vw, 57px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: #6f6874;
  font-size: 13px;
  line-height: 1.7;
}

/* Point scale */
.points-legend {
  margin-bottom: 14px;
  padding: 7px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ebe5f0;
}
.point-rule {
  min-height: 56px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #554c5b;
  background: #f8f4fb;
}
.point-rule strong { color: #6945c7; font-family: var(--mono); }
.point-rule i { color: #7c7482; }
.point-rule--high { border-color: #c3d8e6; background: #eef6fa; }
.point-rule--high strong { color: #356d96; }
.data-loading--inline { background: transparent; }

/* Tables */
.global-ranking-card,
.ranking-card {
  overflow: hidden;
  border-radius: 16px;
}
.global-ranking-header,
.ranking-card__header {
  min-height: 83px;
  padding: 16px 20px;
  border-bottom-color: var(--line);
  background: #f8f3fc;
}
.global-trophy {
  width: 42px;
  height: 42px;
  border: 1px solid #dbc98e;
  border-radius: 50%;
  color: #8a6517;
  background: #fff7dc;
  box-shadow: none;
  font-size: 18px;
}
.global-ranking-header > div:nth-child(2) span,
.ranking-card__header > div:nth-child(2) span {
  color: #786f7e;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.global-ranking-header h3,
.ranking-card__header h3 {
  margin-top: 3px;
  color: #302638;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
}
.ranking-update { color: #77707d; }
.global-ranking-row,
.ranking-row {
  color: #524a57;
  border-bottom-color: #e1dbe5;
  background: var(--surface);
}
.global-ranking-row { min-height: 78px; padding: 9px 20px; }
.ranking-row { min-height: 68px; padding: 0 20px; }
.global-ranking-row--head,
.ranking-row--head {
  min-height: 41px;
  color: #817986;
  background: #f6f2f8;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .07em;
}
.global-ranking-row:not(.global-ranking-row--head):hover,
.ranking-row:not(.ranking-row--head):hover { background: #f9f6fb; }
.global-ranking-row--top,
.global-ranking-row--top-1,
.ranking-row--leader { background: #fbf8ef; }
.global-rank,
.table-rank { color: #837a89; }
.global-ranking-row--top-1 .global-rank,
.ranking-row--leader .table-rank { color: #9a721f; }
.global-ranking-row--top-2 .global-rank { color: #6d7078; }
.global-ranking-row--top-3 .global-rank { color: #9b643d; }
.table-player strong,
.ranking-row > strong { color: #302a34; }
.table-date { color: #837c88; }
.global-tier-list i {
  padding: 4px 6px;
  border: 1px solid #ddd4e8;
  border-radius: 6px;
  color: #675975;
  background: #f6f1fa;
}
.global-tier-list b { color: #3e3545; }
.global-points { color: #7a5a16 !important; font-family: var(--display); font-size: 21px; }
.global-points small { color: #8a7d62; font-family: var(--sans); letter-spacing: .03em; }
.global-kit-count { color: #615968; }

/* Kit navigation */
.kit-tabs {
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eae4ef;
}
.kit-tab {
  padding: 8px 11px 8px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #716a76;
}
.kit-tab:hover { color: #44394b; background: #f4eff7; }
.kit-tab--active {
  color: #372a42;
  background: #fffdf9;
  border-color: #d7cfdd;
  box-shadow: 0 1px 2px rgba(50, 35, 65, .05);
}
.kit-tab small { color: #756d7b; background: #ece6f0; }
.kit-icon,
.kit-emblem { border-radius: 7px; }
.kit-icon { width: 27px; height: 27px; }
.kit-emblem { width: 42px; height: 42px; font-size: 18px; }
.kit-icon--violet { color: #6742c6; background: #e9dffa; }
.kit-icon--blue { color: #477ea8; background: #e1eef7; }
.kit-icon--silver { color: #5b626b; background: #e8e9eb; }
.kit-icon--emerald { color: #24744a; background: #e0f0e6; }
.kit-icon--pink { color: #a54f7c; background: #f7e1ed; }
.kit-icon--gold { color: #8a6517; background: #f7edce; }
.kit-icon--cyan { color: #317d82; background: #dff0f1; }
.kit-icon--orange { color: #a05b2c; background: #f5e4d8; }
.kit-icon--red { color: #a44b58; background: #f5e0e3; }
.ranking-card { margin-top: 14px; }

/* Search and profile */
.search-section {
  padding: 54px 0 112px;
  grid-template-columns: 1fr .83fr;
  gap: 80px;
}
.search-panel > p { margin-top: 18px; color: #6f6874; }
.player-search {
  min-height: 60px;
  margin-top: 28px;
  padding: 6px 6px 6px 16px;
  border: 1px solid #c5b9d0;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 7px 0 #e4daed;
}
.player-search > span { color: #6f4bd8; transform: none; }
.player-search input { color: #302938; }
.player-search input::placeholder { color: #9a929e; }
.player-search button {
  height: 46px;
  padding-inline: 17px;
  border-radius: 9px;
  color: #fff;
  background: #6f4bd8;
}
.search-hint { color: #837b88 !important; }
.profile-preview {
  min-height: 330px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 10px 12px 0 #e4daed;
}
.profile-head { border-bottom-color: var(--line); }
.profile-head h3 { color: #302638; font-family: var(--display); font-weight: 400; }
.profile-head p { color: #7c7481; }
.verified-line { color: #24744a; }
.profile-rank { color: #6f4bd8; }
.profile-stats { border-bottom-color: var(--line); }
.profile-stats div { border-right-color: var(--line); }
.profile-stats span { color: #7c7481; }
.profile-stats strong { color: #342b3a; }
.profile-tiers span {
  color: #6248a5;
  background: #eee7f8;
  border-color: #d6c9e8;
  border-radius: 999px;
}
.profile-foot { color: #847c88; }
.empty-profile > span {
  width: 54px;
  height: 54px;
  border: 1px solid #d3c7e4;
  border-radius: 50%;
  color: #6f4bd8;
  background: #f0e9fa;
}
.empty-profile h3 { color: #382f3e; font-family: var(--display); font-weight: 400; }
.empty-profile p,
.data-loading,
.data-empty { color: #7d7582; }
.data-loading::before,
.loading-ring {
  border-color: #ddd3e7 !important;
  border-top-color: #6f4bd8 !important;
}
.data-empty strong { color: #413746; }

/* Test flow */
.process-section {
  padding: 105px 0;
  border-color: var(--line);
  background: #ebe5f0;
}
.section-heading--center { text-align: left; }
.section-heading--center > p { margin: 12px 0 0; }
.steps-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid #cec3d6;
  border-radius: 16px;
  background: #fffdf9;
}
.step-card {
  min-height: 235px;
  padding: 25px;
  border: 0;
  border-right: 1px solid #ddd5e2;
  border-radius: 0;
  background: transparent;
}
.step-card:last-child { border-right: 0; }
.step-card:hover { border-color: #ddd5e2; background: #faf6fc; }
.step-number {
  color: #6f4bd8;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
}
.step-line { width: 43px; margin: 24px 0 30px; background: #a994d6; }
.step-card h3 { color: #352b3b; font-family: var(--display); font-size: 21px; font-weight: 400; }
.step-card p { color: #736b77; font-size: 12px; }
.step-card::after { display: none; }

/* Stats */
.stats-section { padding: 100px 0; }
.stats-card {
  min-height: 275px;
  padding: 44px;
  border: 0;
  border-radius: 20px;
  color: #f8f2ff;
  background: #3b2850;
}
.stats-card::after {
  content: "M";
  display: block;
  right: 12px;
  bottom: -145px;
  color: rgba(255, 255, 255, .045);
  font-family: var(--display);
  font-size: 350px;
  font-weight: 400;
  transform: none;
}
.stats-card .section-kicker { color: #c8b3ee; }
.stats-copy h2 { color: #fffafc; font-family: var(--display); font-size: 44px; font-weight: 400; }
.stats-copy p { color: #c9bdd2; }
.big-stat strong { color: #fff; font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
.big-stat span,
.stat-stack span { color: #c9bdd2; }
.big-stat i { color: #bde7c9; background: rgba(135, 215, 157, .12); }
.stat-stack strong { color: #fff; font-family: var(--display); font-weight: 400; }

/* Closing note */
.final-cta {
  margin-top: 10px;
  margin-bottom: 90px;
  padding: 54px;
  border: 1px solid #cbbddd;
  border-radius: 20px;
  background: #e7def7;
  box-shadow: none;
}
.final-cta .section-kicker { color: #6f4bd8; }
.final-cta h2 { color: #30233d; font-size: clamp(43px, 5vw, 62px); }
.final-cta p { color: #66596f; }
.button--light { color: #fff; background: #6f4bd8; }
.button--light:hover { background: #5f3dc7; }

/* Footer */
.site-footer { padding: 34px 0 26px; border-top-color: var(--line); }
.site-footer > p { color: #766f7a; }
.site-footer > div:not(.brand) { color: #645c69; }
.site-footer small { color: #8b838f; }

/* Small utility states */
.rank-crown,
.global-rank,
.table-rank,
.rank-number,
.mini-score,
.global-kit-count { font-family: var(--mono); }
.login-dialog {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero {
    min-height: auto;
    padding: 74px 0 82px;
    grid-template-columns: 1fr;
    gap: 58px;
  }
  .hero-copy { text-align: left; }
  .hero-copy .eyebrow,
  .hero-copy > p { margin-inline: 0; }
  .hero-actions,
  .trust-row { justify-content: flex-start; }
  .hero-board { max-width: 660px; margin: 0; transform: none; }
  .search-section { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card { border-right: 0; border-bottom: 1px solid #ddd5e2; }
  .step-card:nth-child(odd) { border-right: 1px solid #ddd5e2; }
  .step-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .stats-copy { grid-column: 1 / -1; }
  .final-cta { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section-shell { width: min(100% - 24px, 1120px); }
  .site-header { min-height: 62px; padding: 0 12px; }
  .site-header .brand-logo { width: 31px; height: 31px; flex-basis: 31px; }
  .header-cta { padding: 9px 11px; font-size: 0; }
  .header-cta span { font-size: 14px; }
  .hero { padding: 58px 0 66px; }
  .hero h1 { font-size: clamp(45px, 14vw, 61px); }
  .hero-copy > p { font-size: 14px; }
  .trust-row { flex-wrap: wrap; row-gap: 17px; }
  .trust-row div { min-width: 92px; margin-right: 14px; padding-right: 14px; }
  .hero-board { padding: 16px; border-radius: 14px; box-shadow: 6px 7px 0 #e2d9eb; }
  .podium-feature { grid-template-columns: 21px 44px 1fr auto; }
  .pixel-avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .pixel-avatar--small { width: 31px; height: 31px; flex-basis: 31px; }
  .global-section { padding: 76px 0 30px; }
  .ranking-section { padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 17px; }
  .section-heading h2,
  .search-panel h2 { font-size: 39px; }
  .points-legend { grid-template-columns: repeat(2, 1fr); }
  .global-ranking-card,
  .ranking-card { overflow-x: auto; }
  .global-ranking-header,
  .global-ranking-table { min-width: 860px; }
  .ranking-card__header,
  .ranking-table { min-width: 650px; }
  .search-section { padding: 40px 0 86px; }
  .player-search { padding-left: 12px; }
  .player-search button { padding-inline: 12px; }
  .profile-preview { padding: 19px; box-shadow: 6px 7px 0 #e4daed; }
  .process-section { padding: 82px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card,
  .step-card:nth-child(odd) { min-height: 190px; border-right: 0; border-bottom: 1px solid #ddd5e2; }
  .step-card:nth-last-child(2) { border-bottom: 1px solid #ddd5e2; }
  .step-card:last-child { border-bottom: 0; }
  .stats-section { padding: 82px 0; }
  .stats-card { padding: 30px 25px; grid-template-columns: 1fr; gap: 34px; }
  .stats-copy { grid-column: auto; }
  .stats-copy h2 { font-size: 37px; }
  .final-cta { margin-bottom: 70px; padding: 36px 25px; }
  .final-cta h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-board { animation: none; }
}

/* Basic browser-level copy protection. Search fields stay editable. */
html[data-copy-protected="true"],
html[data-copy-protected="true"] body,
html[data-copy-protected="true"] body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html[data-copy-protected="true"] input,
html[data-copy-protected="true"] textarea {
  -webkit-user-select: text;
  user-select: text;
}
html[data-copy-protected="true"] img {
  -webkit-user-drag: none;
  user-drag: none;
}
