/* Top Players — from tyrone-top-players-page.html, scoped + ad rail */
.tp {
  --tp-page: #f0f4f8;
  --tp-paper: #fff;
  --tp-ink: #202633;
  --tp-muted: #657386;
  --tp-line: #dfe7f0;
  --tp-accent: #d86a28;
  --tp-green: #4c7654;
  --tp-green-soft: #eff8f1;
  --tp-shadow: 0 12px 34px rgba(34, 48, 62, .055);
  color: var(--tp-ink);
  font: 14px/1.55 Arial, Helvetica, sans-serif;
  padding: 0 0 40px;
}
.tp * { box-sizing: border-box; }
.tp a { color: inherit; text-decoration: none; }
.tp h1, .tp h2, .tp h3, .tp p { margin: 0; text-transform: none; }
.tp a:focus-visible { outline: 3px solid var(--tp-accent); outline-offset: 4px; }

.tp-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 14px 0 17px;
  color: #8793a0;
  font-size: 11px;
}
.tp-crumb a:hover { color: var(--tp-accent); }
.tp-crumb .sep { color: #b5c0c9; }

.tp-hero {
  position: relative;
  display: flex;
  min-height: 168px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  overflow: hidden;
  padding: 29px 34px;
  border: 1px solid #dce7df;
  border-radius: 20px;
  background: linear-gradient(110deg, #eff8f1 0%, #f8faf7 58%, #fff7ed 100%);
}
.tp-hero:after {
  position: absolute;
  top: -102px;
  right: 95px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(92, 133, 94, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(92, 133, 94, .035), 0 0 0 52px rgba(92, 133, 94, .025);
  content: "";
}
.tp-hero-copy { position: relative; z-index: 1; max-width: 760px; min-width: 0; }
.tp-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bd7135;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.tp-eyebrow:before {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--tp-accent);
  content: "";
}
.tp-hero h1 {
  margin: 10px 0 7px !important;
  color: #24342e !important;
  font: 700 clamp(34px, 4vw, 48px)/1.08 Georgia, "Times New Roman", serif !important;
  letter-spacing: -1.3px;
}
.tp-hero p {
  max-width: 650px;
  margin: 0;
  color: #68786d;
  font-size: 12px;
  line-height: 1.75;
}
.tp-hero p a { color: var(--tp-accent); font-weight: 700; }
.tp-hero-badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 92px;
  flex: none;
  place-items: center;
  border: 1px solid #ecd9ba;
  border-radius: 25px;
  background: linear-gradient(145deg, #fff9eb, #fff1d8);
  color: #b78337;
  box-shadow: 0 10px 22px rgba(120, 87, 39, .08);
  font-size: 42px;
  transform: rotate(4deg);
}

/* Main + standing ad rail */
.tp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}
.tp-main { min-width: 0; }
.tp-rail {
  width: 300px;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}
.tp-rail-ad {
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: var(--tp-paper);
  box-shadow: var(--tp-shadow);
  padding: 12px;
  min-height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.tp-rail-ad.tp-rail-tall { min-height: 620px; }
.tp-rail-ad ins { width: 100%; max-width: 300px; }

.tp-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 14px;
}
.tp-heading h2 {
  margin: 0 !important;
  color: #25332d !important;
  font: 700 24px/1.2 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.55px;
}
.tp-heading p {
  margin: 5px 0 0;
  color: #83909b;
  font-size: 11px;
}
.tp-heading-link {
  font-size: 11px;
  font-weight: 800;
  color: #a95d31;
  white-space: nowrap;
}
.tp-heading-link:hover { color: var(--tp-accent); }

.tp-card {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 18px;
  background: var(--tp-paper);
  box-shadow: var(--tp-shadow);
}
.tp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
}
.tp-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526170;
  font-size: 11px;
  font-weight: 800;
}
.tp-label-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--tp-green-soft);
  color: var(--tp-green);
  font-size: 13px;
}
.tp-all-time {
  padding: 6px 10px;
  border: 1px solid #e4e9e5;
  border-radius: 20px;
  background: #f8faf8;
  color: #728071;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.tp-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
  padding: 20px 23px 21px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f7faf7 100%);
}
.tp-podium-player {
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 19px 12px 14px;
  border: 1px solid #e2e8e2;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tp-podium-player:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 18px rgba(39, 57, 43, .08);
}
.tp-podium-player.rank-one {
  min-height: 172px;
  border-color: #ead8b8;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8e9 100%);
  box-shadow: 0 8px 20px rgba(160, 119, 50, .08);
}
.tp-podium-rank {
  position: absolute;
  top: 11px;
  left: 11px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #f2f5f3;
  color: #738078;
  font-size: 10px;
  font-weight: 900;
}
.rank-one .tp-podium-rank {
  background: #f8e9c9;
  color: #a6782d;
}
.tp-medal {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid #e8e6df;
  border-radius: 15px;
  background: linear-gradient(145deg, #f9faf8, #edf2ee);
  color: #78837b;
  font-size: 24px;
  overflow: hidden;
}
.tp-medal img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.rank-one .tp-medal {
  width: 57px;
  height: 57px;
  border-color: #f0dbad;
  background: linear-gradient(145deg, #fff3cf, #f5d88f);
  font-size: 29px;
}
.rank-one .tp-medal img { width: 34px; height: 34px; }
.tp-podium-name {
  max-width: 100%;
  overflow: hidden;
  color: #334039;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-one .tp-podium-name { color: #6c5124; font-size: 13px; }
.tp-podium-xp {
  margin-top: 3px;
  color: #82908a;
  font-size: 10px;
}
.tp-podium-xp strong { color: #5c6f61; }
.rank-one .tp-podium-xp strong { color: #a6782d; }
.tp-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid #e4ebe4;
  border-radius: 20px;
  background: #f6faf6;
  color: #66806a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.rank-one .tp-level-pill {
  border-color: #efdfbd;
  background: #fffaf0;
  color: #9a762e;
}

.tp-list { padding: 7px 20px 16px; }
.tp-list-heading,
.tp-player-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 120px 95px;
  align-items: center;
  gap: 12px;
}
.tp-list-heading {
  min-height: 37px;
  color: #99a3ac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tp-list-heading span:last-child,
.tp-list-heading span:nth-last-child(2),
.tp-player-row .tp-player-xp,
.tp-player-row .tp-player-level { text-align: right; }
.tp-player-row {
  min-height: 58px;
  border-top: 1px solid #eef1f3;
  color: #47545f;
  font-size: 11px;
  transition: background .16s ease;
}
.tp-player-row:hover { background: #fbfcfb; }
.tp-row-rank {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #e8ecef;
  border-radius: 9px;
  background: #f8fafb;
  color: #72808c;
  font-size: 10px;
  font-weight: 900;
}
.tp-player-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.tp-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce9dd;
  border-radius: 11px;
  background: linear-gradient(145deg, #f0f8f0, #e5efe5);
  color: #5d7c61;
  font-size: 10px;
  font-weight: 900;
}
.tp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-player-name {
  overflow: hidden;
  color: #36434c;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-player-xp {
  color: #5c6a73;
  font-weight: 800;
  white-space: nowrap;
}
.tp-player-xp small {
  color: #9ba5ac;
  font-size: 9px;
  font-weight: 600;
}
.tp-player-level {
  color: #75857a;
  font-size: 10px;
  font-weight: 700;
}

.tp-empty {
  padding: 36px 20px;
  text-align: center;
  color: #83909b;
  font-size: 13px;
}

.tp-games { margin-top: 28px; }
.tp-game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tp-game-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 48, 62, .035);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tp-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(34, 48, 62, .08);
}
.tp-game-art {
  display: block;
  aspect-ratio: 1.42;
  overflow: hidden;
  border: 1px solid #e7ecee;
  border-radius: 10px;
  background: linear-gradient(140deg, #edf5ee, #fff1df);
}
.tp-game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-game-name {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: #46535d;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-game-views {
  margin-top: 3px;
  color: #929da6;
  font-size: 9px;
}

.tp-seo {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--tp-line);
  border-radius: 15px;
  background: #fff;
}
.tp-seo h2 {
  margin: 0 0 8px !important;
  color: #36433c !important;
  font: 700 18px/1.3 Georgia, "Times New Roman", serif !important;
}
.tp-seo p {
  margin: 0 0 9px;
  color: #73808c;
  font-size: 11px;
  line-height: 1.75;
}
.tp-seo p:last-child { margin-bottom: 0; }
.tp-seo a { color: #a95d31; font-weight: 700; }

.tp-ad-inline {
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 1050px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); }
  .tp-rail {
    width: 100%;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-rail-ad.tp-rail-tall { min-height: 280px; }
  .tp-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tp-hero {
    min-height: auto;
    padding: 23px 20px;
    border-radius: 16px;
  }
  .tp-hero h1 { font-size: 35px !important; }
  .tp-hero-badge { width: 72px; height: 72px; font-size: 32px; border-radius: 20px; }
  .tp-podium { gap: 8px; padding: 14px; }
  .tp-podium-player { min-height: 128px; padding: 17px 7px 11px; }
  .tp-podium-player.rank-one { min-height: 148px; }
  .tp-list { padding-left: 12px; padding-right: 12px; }
  .tp-list-heading,
  .tp-player-row { grid-template-columns: 40px minmax(0, 1fr) 70px; gap: 8px; }
  .tp-player-row .tp-player-level,
  .tp-list-heading span:last-child { display: none; }
  .tp-rail { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tp-hero-badge { display: none; }
  .tp-podium { grid-template-columns: 1fr; }
  .tp-podium-player,
  .tp-podium-player.rank-one { min-height: 0; }
  .tp-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tp * { transition: none !important; }
}
