/* Aura Project public pages */
:root {
  --bg: #070609;
  --bg-soft: #111015;
  --panel: rgba(18, 16, 22, 0.78);
  --panel-strong: rgba(28, 23, 31, 0.94);
  --text: #f4ead7;
  --muted: #b7a992;
  --gold: #f0c36a;
  --amber: #d98232;
  --violet: #8e5ce6;
  --danger: #d94b50;
  --success: #69d199;
  --border: rgba(240, 195, 106, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --stone: #252228;
  --steel: #8a8174;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body.lp {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 12%, rgba(142, 92, 230, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 8%, rgba(217, 130, 50, 0.16), transparent 24rem),
    linear-gradient(180deg, #08070a 0%, #100d13 44%, #070609 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.lp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

body.lp::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 6, 9, 0.16), rgba(7, 6, 9, 0.7));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.mist {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 38%;
  filter: blur(42px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: aura-mist 42s linear infinite;
}

.mist-a {
  bottom: -8%;
  background: linear-gradient(90deg, transparent, rgba(142, 92, 230, 0.22), rgba(240, 195, 106, 0.12), transparent);
}

.mist-b {
  top: 18%;
  animation-duration: 68s;
  animation-direction: reverse;
  background: linear-gradient(90deg, transparent, rgba(72, 67, 83, 0.12), rgba(142, 92, 230, 0.16), transparent);
}

.ember {
  position: absolute;
  width: 52%;
  height: 28%;
  opacity: 0.28;
  filter: blur(70px);
  background: linear-gradient(90deg, transparent, rgba(217, 130, 50, 0.34), transparent);
  animation: aura-glow 8s ease-in-out infinite;
}

.ember-a {
  right: -20%;
  top: 9%;
}

.ember-b {
  left: -25%;
  bottom: 14%;
  animation-delay: -3s;
  background: linear-gradient(90deg, transparent, rgba(142, 92, 230, 0.32), transparent);
}

@keyframes aura-mist {
  0% { transform: translateX(0); }
  100% { transform: translateX(16%); }
}

@keyframes aura-glow {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.34; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(7, 6, 9, 0.76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.compact-header {
  position: relative;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark strong,
.footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--text);
}

.brand-mark small {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.brand-sigil {
  position: relative;
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(240, 195, 106, 0.55);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(217, 130, 50, 0.22), rgba(142, 92, 230, 0.14)),
    rgba(12, 10, 15, 0.9);
  box-shadow: 0 0 24px rgba(217, 130, 50, 0.18);
}

.brand-sigil::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: inset 0 0 14px rgba(142, 92, 230, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.72rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(240, 195, 106, 0.08);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: 7.25rem 1rem 3rem;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-fog {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.86) 0%, rgba(7, 6, 9, 0.58) 46%, rgba(7, 6, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 6, 9, 0.18) 0%, rgba(7, 6, 9, 0.8) 88%),
    url("/static/img/hero-bg.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-fog {
  z-index: -1;
  opacity: 0.76;
  background:
    linear-gradient(180deg, transparent 45%, rgba(185, 177, 166, 0.13) 72%, transparent 100%),
    radial-gradient(ellipse at 42% 72%, rgba(240, 195, 106, 0.14), transparent 36rem),
    radial-gradient(ellipse at 78% 58%, rgba(142, 92, 230, 0.18), transparent 30rem);
  animation: aura-fog 24s ease-in-out infinite;
}

.hero::after,
.page-hero::after,
.profile-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

@keyframes aura-fog {
  0%, 100% { transform: translateX(0); opacity: 0.68; }
  50% { transform: translateX(1.4rem); opacity: 0.88; }
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 0 1.5rem;
}

.eyebrow,
.section-kicker,
.panel-label,
.world-preset {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1,
.profile-title h1 {
  margin: 0.75rem 0 1rem;
  max-width: 820px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.05rem;
  line-height: 0.98;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 12px 56px rgba(0, 0, 0, 0.7);
}

.hero-lead,
.page-hero p,
.section-heading p,
.ranking-cta p,
.lore-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1rem;
}

.btn,
.copy-action,
.copy-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn {
  padding: 0.78rem 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.btn-primary {
  color: #190f08;
  background: linear-gradient(135deg, #ffd98b, var(--amber));
  border-color: rgba(255, 225, 160, 0.58);
  box-shadow: 0 16px 44px rgba(217, 130, 50, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(18, 16, 22, 0.72);
  border-color: rgba(142, 92, 230, 0.45);
}

.btn:hover,
.copy-action:hover,
.copy-line:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 20px 60px rgba(217, 130, 50, 0.36);
}

.server-copy-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: min(100%, 540px);
  margin-top: 1.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(240, 195, 106, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 16, 22, 0.84), rgba(28, 23, 31, 0.7));
  box-shadow: var(--shadow);
}

.server-copy-panel code,
.copy-line code,
.profile-tags code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.94rem;
}

.server-copy-panel > div {
  display: grid;
  gap: 0.25rem;
}

.copy-action {
  width: 100%;
  color: var(--text);
  background: rgba(240, 195, 106, 0.1);
  border-color: rgba(240, 195, 106, 0.32);
  font-weight: 800;
}

.copy-action.is-copied,
.copy-line.is-copied {
  border-color: rgba(105, 209, 153, 0.72);
  color: var(--success);
}

.hero-status {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 6, 9, 0.58);
  backdrop-filter: blur(14px);
}

.hero-status strong {
  display: block;
  font-size: 0.98rem;
}

.hero-status span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.status-orb,
.timeline-dot {
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-orb.is-online,
.status-pill.is-online,
.timeline-dot.is-online {
  background: var(--success);
  color: #07140e;
  box-shadow: 0 0 24px rgba(105, 209, 153, 0.42);
}

.status-orb.is-offline,
.status-pill.is-offline,
.timeline-dot.is-offline {
  background: var(--danger);
  color: #fff1f1;
  box-shadow: 0 0 24px rgba(217, 75, 80, 0.38);
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section-tight {
  padding-top: 2.4rem;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.section-heading.align-left {
  justify-items: start;
  text-align: left;
  margin: 0;
}

.section-heading h2,
.lore-panel h2,
.ranking-cta h2,
.online-now h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.world-grid {
  display: grid;
  gap: 1rem;
}

.world-card {
  --world-color: var(--violet);
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(240, 195, 106, 0.2);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.world-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--world-color) 62%, var(--gold));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
}

.world-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 0.06), rgba(7, 6, 9, 0.9) 72%, rgba(7, 6, 9, 0.96)),
    url("/static/img/world-casual.webp") center / cover no-repeat;
  transition: transform 420ms ease, filter 420ms ease;
}

.world-hardcore .world-art {
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 0.06), rgba(7, 6, 9, 0.88) 70%, rgba(7, 6, 9, 0.97)),
    url("/static/img/world-hardcore.webp") center / cover no-repeat;
}

.world-card:hover .world-art {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(240, 195, 106, 0.18), transparent 28%),
    linear-gradient(315deg, color-mix(in srgb, var(--world-color) 30%, transparent), transparent 38%);
  opacity: 0.8;
}

.world-card-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.95rem;
  padding: 1rem;
}

.world-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.status-pill,
.world-preset,
.badge-role {
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.world-preset,
.badge-role {
  color: var(--gold);
  border: 1px solid rgba(240, 195, 106, 0.25);
  background: rgba(7, 6, 9, 0.58);
}

.world-card h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.world-card p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.world-note {
  font-size: 0.92rem;
}

.stat-row,
.stat-grid,
.profile-stat-grid {
  display: grid;
  gap: 0.75rem;
}

.stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-row > div,
.stat-grid article,
.server-stat-card {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 6, 9, 0.52);
}

.stat-row strong,
.stat-grid strong,
.server-stat-card strong,
.rank-meta strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-row strong span {
  color: var(--muted);
  font-size: 1rem;
}

.stat-row em,
.stat-grid em,
.server-stat-card em,
.rank-meta span,
.stat-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0;
}

.copy-line {
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.72rem 0.78rem;
  color: var(--text);
  background: rgba(7, 6, 9, 0.62);
  border-color: rgba(240, 195, 106, 0.26);
}

.copy-line span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
}

.avatar-strip img,
.avatar-strip span,
.avatar-strip b,
.small-avatar,
.rank-avatar,
.podium-avatar,
.profile-avatar {
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 195, 106, 0.34);
  background: linear-gradient(135deg, rgba(217, 130, 50, 0.24), rgba(142, 92, 230, 0.24));
}

.avatar-strip img,
.avatar-strip span,
.avatar-strip b {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
}

.avatar-strip span,
.avatar-strip b,
.small-avatar span,
.rank-avatar span,
.podium-avatar span,
.profile-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 900;
}

.avatar-strip b {
  color: var(--gold);
  font-size: 0.8rem;
}

.quiet-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  gap: 1.4rem;
}

.steps-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 16, 22, 0.88), rgba(28, 23, 31, 0.62));
}

.steps-list li > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #1a1007;
  background: linear-gradient(135deg, #ffd98b, var(--amber));
  font-weight: 900;
}

.steps-list strong {
  color: var(--text);
}

.steps-list small {
  color: var(--muted);
  line-height: 1.45;
}

.steps-list code {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.lore-section {
  width: min(100%, 1280px);
  padding-left: 1rem;
  padding-right: 1rem;
}

.lore-panel {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid rgba(240, 195, 106, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.9), rgba(7, 6, 9, 0.58)),
    url("/static/img/hero-bg.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.lore-panel h2 {
  margin: 0.5rem 0 1rem;
}

.lore-panel p + p {
  margin-top: 0.8rem;
}

.rules-grid,
.event-grid,
.online-grid,
.podium-grid,
.per-server-grid {
  display: grid;
  gap: 1rem;
}

.rules-grid article,
.event-grid article,
.online-player,
.server-stat-card,
.empty-state,
.ranking-cta,
.stat-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 16, 22, 0.9), rgba(28, 23, 31, 0.66));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

.rules-grid article,
.event-grid article {
  padding: 1rem;
}

.rules-grid strong,
.event-grid strong,
.online-player strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.rules-grid span,
.event-grid p,
.online-player span,
.empty-state span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}

.event-grid article > span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-scroll {
  margin-top: 1rem;
  border: 1px solid rgba(240, 195, 106, 0.22);
  border-radius: 8px;
  background: rgba(7, 6, 9, 0.48);
}

.rules-scroll summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--gold);
  font-weight: 800;
}

.rules-scroll pre {
  margin: 0;
  padding: 0 1rem 1rem;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: inherit;
  line-height: 1.7;
}

.ranking-cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.88), rgba(7, 6, 9, 0.58)),
    url("/static/img/ranking-banner.webp") center / cover no-repeat;
}

.ranking-cta h2 {
  margin: 0.45rem 0 0.55rem;
}

.online-now {
  margin-top: 1rem;
}

.online-now h3 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.online-player {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem;
}

.small-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 7px;
}

.small-avatar img,
.rank-avatar img,
.podium-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-avatar span {
  width: 100%;
  height: 100%;
}

.timeline {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(18, 16, 22, 0.72);
}

.timeline time {
  color: var(--gold);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.timeline li > span:last-child {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.timeline strong,
.text-success {
  color: var(--text);
}

.text-success {
  color: var(--success);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 2.2rem 1rem 2.6rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(7, 6, 9, 0.72);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
}

.site-footer a {
  color: var(--gold);
}

.site-footer p {
  max-width: 44rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.public-page .site-header {
  background: rgba(7, 6, 9, 0.92);
}

.page-hero,
.profile-banner {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(240, 195, 106, 0.24);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 1.1rem;
}

.page-hero-media,
.profile-banner-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ranking-hero .page-hero-media {
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.84), rgba(7, 6, 9, 0.52), rgba(7, 6, 9, 0.82)),
    linear-gradient(180deg, rgba(7, 6, 9, 0.2), rgba(7, 6, 9, 0.9)),
    url("/static/img/ranking-banner.webp") center / cover no-repeat;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.page-hero .btn {
  margin-top: 1.2rem;
}

.podium-grid {
  align-items: stretch;
}

.podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.2rem;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 195, 106, 0.12), transparent),
    rgba(18, 16, 22, 0.9);
  transition: transform 180ms ease, border-color 180ms ease;
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 195, 106, 0.58);
}

.podium-rank {
  color: var(--gold);
  font-weight: 900;
}

.podium-avatar {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
}

.podium-avatar span {
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.podium-card strong {
  font-size: 1.08rem;
}

.podium-card small {
  color: var(--muted);
}

.ranking-table {
  display: grid;
  gap: 0.55rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(18, 16, 22, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(240, 195, 106, 0.45);
  background: rgba(28, 23, 31, 0.94);
}

.ranking-row.is-top {
  border-color: rgba(240, 195, 106, 0.28);
}

.rank-number {
  min-width: 2.4rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.rank-avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 7px;
}

.rank-avatar span {
  width: 100%;
  height: 100%;
}

.rank-identity {
  min-width: 0;
}

.rank-identity strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-identity small {
  display: block;
  overflow: hidden;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  text-align: right;
}

.hide-small {
  display: none;
}

.online-pip,
.profile-online {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(105, 209, 153, 0.68);
}

.profile-banner {
  min-height: 500px;
  padding: 1rem;
  display: grid;
  align-items: end;
}

.profile-banner-media {
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.84), rgba(7, 6, 9, 0.44), rgba(7, 6, 9, 0.8)),
    linear-gradient(180deg, rgba(7, 6, 9, 0.15), rgba(7, 6, 9, 0.92)),
    url("/static/img/profile-banner.webp") center / cover no-repeat;
}

.profile-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: end;
}

.profile-avatar {
  position: relative;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

.profile-avatar span {
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
}

.profile-title h1 {
  margin-bottom: 0.6rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.role-admin {
  color: #1b1106;
  background: linear-gradient(135deg, #ffe4a5, var(--gold));
}

.role-friend {
  color: #f2ebff;
  border-color: rgba(142, 92, 230, 0.56);
  background: rgba(142, 92, 230, 0.22);
}

.role-default {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-stat-grid article {
  min-height: 9rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
}

.server-stat-card {
  --world-color: var(--violet);
  display: grid;
  gap: 0.8rem;
  border-color: color-mix(in srgb, var(--world-color) 38%, rgba(255, 255, 255, 0.06));
}

.profile-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.2rem;
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 1.1rem;
}

.empty-large {
  padding: 3rem 1rem;
}

@media (min-width: 520px) {
  .brand-mark small {
    display: block;
  }

  .server-copy-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copy-action {
    width: auto;
    min-width: 7rem;
  }

  .ranking-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  }

  .hide-small {
    display: block;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding: 1rem 1.4rem;
  }

  .hero {
    min-height: 720px;
    padding-top: 8rem;
  }

  .hero h1,
  .page-hero h1,
  .profile-title h1 {
    font-size: 4.2rem;
  }

  .hero-lead,
  .page-hero p,
  .section-heading p,
  .ranking-cta p,
  .lore-panel p {
    font-size: 1.07rem;
  }

  .section {
    width: min(100% - 3rem, var(--max));
    padding: 4.5rem 0;
  }

  .world-grid,
  .rules-grid,
  .event-grid,
  .online-grid,
  .podium-grid,
  .per-server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 2rem;
  }

  .lore-panel,
  .ranking-cta {
    padding: 2rem;
  }

  .ranking-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-hero,
  .profile-banner {
    width: min(100% - 3rem, var(--max));
    margin-top: 1.5rem;
  }

  .page-hero {
    padding: 2rem;
  }

  .profile-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .profile-actions {
    grid-column: 2;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-nav {
    gap: 0.45rem;
  }

  .site-nav a {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1,
  .page-hero h1,
  .profile-title h1 {
    font-size: 5rem;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-card {
    min-height: 580px;
  }

  .world-card-content {
    padding: 1.35rem;
  }

  .rules-grid,
  .event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .podium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-actions {
    grid-column: auto;
    justify-content: end;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 660px;
    padding-top: 5.6rem;
  }

  .hero h1,
  .page-hero h1,
  .profile-title h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .profile-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .world-card {
    min-height: 560px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
    text-align: left;
  }

  .page-hero,
  .profile-banner {
    width: min(100% - 1rem, var(--max));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
