:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #0e0f11;
  --panel-strong: #13110e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 106, 0, 0.34);
  --text: #f4efe6;
  --muted: #8a8680;
  --muted-strong: #cdc8bf;
  --accent: #ff7a1a;
  --accent-strong: #ff4d00;
  --accent-deep: #d63a00;
  --accent-light: #ffb35e;
  --accent-soft: rgba(255, 122, 26, 0.13);
  --accent-glow: rgba(255, 106, 0, 0.45);
  --accent-gradient: linear-gradient(135deg, #ffbb54 0%, #ff7a1a 42%, #ff3d00 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(255, 179, 94, 0.16), rgba(255, 61, 0, 0.1));
  --yellow: #ffd76a;
  --green: #46d36d;
  --red: #ff4d3d;
  --container: 1280px;
  --surface: rgba(14, 15, 17, 0.85);
  --surface-soft: rgba(10, 11, 12, 0.6);
  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 30px 70px -24px rgba(0, 0, 0, 0.62);
  --shadow-glow: 0 0 0 1px rgba(255, 122, 26, 0.14), 0 18px 46px -16px rgba(255, 90, 0, 0.38);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Clash Display', 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-pixel: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.5px);
  background-attachment: fixed;
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

body.has-open-dialog { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell { position: relative; overflow: hidden; min-height: 100vh; }

.page-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.page-shell-flat::before { content: none; }

/* HEADER */
.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  width: min(calc(100% - 140px), var(--container));
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 9, 10, 0.82);
  padding: 10px 16px;
  backdrop-filter: blur(24px) saturate(1.4);
}

.logo-link, .footer-brand { display: inline-flex; align-items: center; }
.logo { display: block; width: 42px; height: 42px; border-radius: 50%; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
}

.main-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted-strong);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav svg { width: 15px; height: 15px; stroke-width: 2.2; }

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.032);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(255,138,31,0.2);
  background: rgba(255,138,31,0.07);
}

/* BUTTONS */
.login-button, .primary-button, .reviews-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-body);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  cursor: pointer;
}

.login-button { justify-self: end; min-width: 90px; padding: 0 22px; font-size: 14px; }

.login-button:hover, .primary-button:hover, .reviews-button:hover {
  border-color: var(--accent-strong);
  background: rgba(255, 138, 31, 0.08);
  color: #ffb36a;
}

.login-button:active, .primary-button:active { transform: translateY(0); }

.is-authenticated .login-button {
  min-width: 0;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18,18,20,0.92);
  padding: 6px;
  box-shadow: none;
}

.is-authenticated .login-button:hover {
  background: rgba(24,24,26,0.96);
  box-shadow: none;
  transform: none;
}

.header-avatar {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  image-rendering: pixelated;
  object-fit: cover;
}

.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: rgba(16,17,19,0.8);
  color: var(--muted-strong);
  font-weight: 600;
  font-family: var(--font-body);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: rgba(22,19,16,0.9);
  color: var(--text);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,9,0) 0%, rgba(8,9,9,0.55) 100%);
}

.hero::after {
  content: none;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 140px), var(--container));
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 0 110px;
}

.hero-grid-centered { display: grid; place-items: center; }

.hero-copy { width: min(860px, 100%); text-align: center; }

.hero .eyebrow {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.95;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9a35 10%, #ff6200 60%, #ffb347 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero-kicker {
  margin: 0 0 28px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero-lead {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.version {
  margin: 28px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,138,31,0.2);
  border-radius: 999px;
  background: rgba(255,138,31,0.06);
  color: #ffb36a;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-button, .secondary-button { min-width: 200px; padding: 0 28px; font-size: 15px; }

/* STATS */
.stats-strip {
  display: grid;
  width: min(calc(100% - 140px), var(--container));
  grid-template-columns: repeat(4, 1fr);
  margin: -42px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 12, 13, 0.92);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255,255,255,0.025) inset;
  overflow: hidden;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.stat-item {
  position: relative;
  padding: 30px 28px;
  text-align: center;
  transition: background 200ms ease;
}

.stat-item:hover { background: rgba(255,138,31,0.06); }
.stat-item + .stat-item { border-left: 1px solid var(--line); }

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.stat-status strong { display: inline-flex; align-items: center; gap: 10px; }

.stat-status strong::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8b8984;
}

.stat-status.is-online strong::before {
  background: var(--green);
}

.stat-status.is-offline strong::before {
  background: var(--red);
}

.stat-status.is-loading strong::before {
  background: var(--accent);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* SECTIONS */
.features-section, .reviews-section, .links-section { padding: 110px 0; }

.section-heading {
  width: min(calc(100% - 140px), var(--container));
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  color: #fff;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-heading h2 span { color: var(--accent); }

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  width: min(calc(100% - 140px), var(--container));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  transition: border-color 200ms ease;
}

.feature-card::before {
  content: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, rgba(255,138,31,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 250ms ease;
}

.feature-card:hover {
  border-color: rgba(255,138,31,0.18);
}

.feature-card:hover::before { opacity: 1; }

.feature-card h3, .reviews-empty h3, .footer-links h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.feature-card h3 { font-size: 22px; line-height: 1.2; }

.feature-card p {
  max-width: 430px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.feature-card-large {
  min-height: 320px;
  grid-column: span 2;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(7,8,9,0.9), rgba(7,8,9,0.66) 48%, rgba(7,8,9,0.28)),
    url("assets/vanilla-card-bg.webp") center / cover no-repeat;
}

.feature-card-large::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,9,0.1), rgba(7,8,9,0.68));
  z-index: 0;
}

.feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.9) contrast(1.06);
}

.feature-content { position: relative; z-index: 1; width: min(500px, 100%); padding: 36px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }

.tags span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffb36a;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
}

.team-card { display: flex; min-height: 320px; flex-direction: column; }

.team-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 160ms ease;
}

.team-card a:hover { gap: 9px; }
.team-card a::after { content: '→'; }
.text-link { display: inline-flex; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* REVIEWS */
.reviews-section { min-height: 520px; }

.reviews-empty {
  display: grid;
  width: min(calc(100% - 140px), 680px);
  min-height: 140px;
  place-items: center;
  margin: 0 auto;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  text-align: center;
}

.reviews-empty h3 { font-size: 22px; font-family: var(--font-display); }
.reviews-empty p, .review-login-note { color: var(--muted); font-size: 15px; line-height: 1.5; font-weight: 400; }
.reviews-empty p { max-width: 420px; margin: 8px 0 0; }
.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
}

.reviews-button { display: flex; width: 170px; margin: 0; font-size: 14px; }
.has-own-review .reviews-leave-button { display: none; }
.review-login-note { margin: 24px 0 0; text-align: center; }

.reviews-billboard {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 48px), 1640px);
  margin: 18px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reviews-row {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 12px;
}

.reviews-billboard.is-moving .reviews-row {
  width: max-content;
  justify-content: flex-start;
  animation: reviews-marquee 44s linear infinite;
}
.reviews-billboard.is-moving .reviews-row:nth-child(2) { animation-duration: 52s; animation-direction: reverse; }
.reviews-row:hover { animation-play-state: paused; }

@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

.review-card, .review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 44px auto;
  column-gap: 13px;
  row-gap: 9px;
  width: 280px;
  min-height: 118px;
  flex: 0 0 auto;
  padding: 18px;
  transition: border-color 180ms ease;
}

.review-card:hover { border-color: rgba(255,138,31,0.16); }

.review-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  font-family: var(--font-display);
}

.review-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: calc(1.45em * 3);
  white-space: pre-wrap;
}

.review-card-head, .review-form-avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(5,6,7,0.9);
  overflow: hidden;
}

.review-card-head img, .review-form-avatar img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
}

.review-card-meta {
  display: grid;
  min-width: 0;
  height: 44px;
  grid-template-rows: 18px 16px;
  align-content: center;
  gap: 5px;
}

.review-card-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card-stars, .review-stars { display: flex; gap: 4px; color: var(--yellow); line-height: 1; font-size: 13px; }
.review-card-stars .is-empty { opacity: 0.75; }
.review-card small, .review-form small { color: var(--muted); font-size: 12px; font-weight: 500; }

.review-form {
  width: min(calc(100% - 48px), 580px);
  display: grid;
  gap: 16px;
  margin: 24px auto 0;
  background: rgba(14,15,17,0.95);
  padding: 22px;
}

.review-form textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  outline: 0;
  background: rgba(5,6,7,0.5);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 160ms ease;
}

.review-form textarea:focus { border-color: var(--line-strong); color: #fff; }
.review-form-head { display: flex; align-items: center; gap: 13px; }

.review-form-avatar { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,0.07); border-radius: 11px; }

.review-form-head strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-display);
}

.review-stars { margin-top: 4px; }

.review-stars button {
  border: 0;
  background: transparent;
  color: var(--yellow);
  opacity: 0.75;
  padding: 0;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.review-stars button:hover { transform: scale(1.15); }
.review-stars button.is-active { opacity: 1; }

.review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}

.review-form-footer .primary-button { min-width: 140px; cursor: pointer; }

.auth-only { display: none; }
.is-authenticated .auth-only { display: flex; }
.is-authenticated .review-form.auth-only { display: grid; }
.is-authenticated .guest-only { display: none; }

/* LINKS */
.links-section { padding-top: 40px; padding-bottom: 88px; }
.links-section .section-heading { margin-bottom: 30px; }
.links-section .eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.links-section .eyebrow::before, .links-section .eyebrow::after { display: none; }
.links-section h2 { color: var(--muted-strong); font-size: 32px; line-height: 1.15; }
.links-section h2 span { color: #c87a3a; }

.link-stack {
  display: grid;
  width: min(calc(100% - 140px), 620px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto;
}

.link-stack .link-chip:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 305px);
}

.link-chip {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted-strong);
  padding: 13px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}

.link-chip:hover {
  border-color: var(--line-strong);
  background: rgba(22,18,13,0.88);
  color: #fff;
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); background: rgba(6,7,8,0.95); padding: 64px 0 28px; }

.footer-grid {
  display: grid;
  width: min(calc(100% - 140px), var(--container));
  grid-template-columns: 1.4fr 1fr 1fr 1fr 0.8fr;
  gap: 40px;
  align-items: start;
  margin: 0 auto;
}

.footer-brand { grid-column: 1; gap: 14px; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; }
.footer-brand strong, .footer-brand span { display: block; }

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand span {
  margin-top: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 340px;
  margin: -20px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 400;
}

.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links,
.developer {
  grid-row: 1 / span 2;
  padding-top: 6px;
}
.footer-links h3 { margin-bottom: 4px; font-size: 16px; font-family: var(--font-display); font-weight: 700; }
.footer-links a, .footer-links span { color: var(--muted); font-size: 14.5px; font-weight: 400; }
.footer-links a { transition: color 160ms ease; }
.footer-links a:hover, .developer a:hover { color: var(--text); }

.developer { justify-self: end; text-align: right; }
.developer span, .developer a, .developer strong { display: block; }
.developer span { color: #6a6762; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.developer a, .developer strong { margin-top: 14px; color: var(--muted-strong); font-weight: 600; }
.developer strong { font-size: 15px; }

.footer-bottom {
  display: flex;
  width: min(calc(100% - 140px), var(--container));
  justify-content: space-between;
  gap: 24px;
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: #5a5752;
  font-size: 12.5px;
  font-weight: 500;
}

/* SUBPAGES */
.subpage-main { min-height: 100vh; padding: 132px 0 90px; }

.subpage-panel {
  width: min(calc(100% - 140px), 900px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}

.subpage-heading { max-width: 660px; }

.subpage-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  color: #fff;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
}

.subpage-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}

.stats-source {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7,8,9,0.6);
  padding: 16px;
}

.stats-source span, .stats-source small, .top-player-stat span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stats-source strong { color: #fff; font-size: 19px; font-weight: 700; font-family: var(--font-display); }

/* TOP PLAYERS */
.top-players-panel { width: min(calc(100% - 48px), 1280px); border: 0; background: transparent; box-shadow: none; padding: 0; }
.top-players-panel .subpage-heading { display: block; margin-bottom: 22px; }

.top-players-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.top-player-item {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.94), rgba(10,10,10,0.68)),
    var(--profile-cover, var(--surface-soft));
  background-position: center;
  background-size: cover;
  color: inherit;
  padding: 13px 16px;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 120ms ease;
}

.top-player-item:hover {
  border-color: rgba(255,138,31,0.2);
  background:
    linear-gradient(90deg, rgba(10,10,10,0.9), rgba(10,10,10,0.58)),
    var(--profile-cover, rgba(14,12,10,0.9));
  background-position: center;
  background-size: cover;
  transform: translateY(-2px);
}


.top-player-item > * {
  position: relative;
  z-index: 1;
}


.top-player-head {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: #101010;
  image-rendering: pixelated;
  object-fit: cover;
}

.top-player-name { display: grid; min-width: 0; gap: 4px; }

.top-player-name strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-player-name small {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8,9,10,0.5);
  padding: 20px;
  color: var(--muted-strong);
  text-align: center;
  font-weight: 500;
}

/* REVIEWS PAGE */
.reviews-page-main { padding-top: 112px; }

.reviews-page-shell {
  width: min(calc(100% - 30px), 1180px);
  margin: 0 auto;
}

.reviews-page-title {
  margin-bottom: 24px;
}

.reviews-page-title h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.05;
  font-weight: 900;
}

.reviews-page-title h1 span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #171a20;
  color: #9ca3af;
  padding: 0 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
}

.reviews-summary-panel {
  display: grid;
  grid-template-columns: 48px 160px minmax(320px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #121316;
  padding: 26px 24px;
}

.reviews-summary-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 138, 31, 0.13);
  color: var(--accent);
}

.reviews-summary-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.3;
}

.reviews-summary-copy {
  display: grid;
  gap: 2px;
}

.reviews-summary-copy strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.reviews-summary-copy span {
  color: #9b9b9d;
  font-size: 14px;
  font-weight: 600;
}

.reviews-summary-copy b {
  color: inherit;
  font-weight: inherit;
}

.reviews-average {
  display: grid;
  grid-column: 1 / 3;
  gap: 7px;
  align-self: end;
}

.reviews-average > strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.9;
  font-weight: 900;
}

.reviews-page-stars,
.reviews-page-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffc400;
  line-height: 1;
}

.reviews-page-stars {
  font-size: 17px;
}

.reviews-page-stars .is-empty,
.reviews-page-rating .is-empty {
  color: #4a4b50;
}

.reviews-distribution {
  display: grid;
  grid-column: 3 / -1;
  grid-row: 1 / 3;
  gap: 10px;
}

.reviews-rating-row {
  display: grid;
  grid-template-columns: 18px 14px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  color: #85868b;
  font-size: 13px;
  font-weight: 600;
}

.reviews-rating-star {
  color: #ffc400;
  font-size: 13px;
  line-height: 1;
}

.reviews-rating-row i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #222328;
}

.reviews-rating-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffc400;
}

.reviews-rating-row strong {
  color: #85868b;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reviews-page-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 338px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111214;
  padding: 20px;
}

.reviews-page-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-page-card-head img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  image-rendering: pixelated;
  object-fit: cover;
}

.reviews-page-card-head span {
  display: grid;
  min-width: 0;
  height: 48px;
  grid-template-rows: 20px 17px;
  align-content: center;
  gap: 2px;
}

.reviews-page-card-head strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-page-card-head small {
  color: #8f9298;
  font-size: 12px;
  font-weight: 600;
}

.reviews-page-rating {
  gap: 2px;
  font-size: 17px;
}

.reviews-page-rating strong {
  margin-left: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.reviews-page-card p {
  margin: 0;
  color: #f6f6f7;
  font-size: 15.5px;
  line-height: 1.48;
  font-weight: 500;
  white-space: pre-wrap;
}

.reviews-page-empty {
  margin-top: 24px;
}

/* ORGANIZATIONS */
.organizations-page-main { padding-top: 112px; }
.organizations-shell { width: min(calc(100% - 30px), 1780px); margin: 0 auto 48px; }
.organizations-title { display: grid; gap: 8px; margin-bottom: 18px; }
.organizations-title h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}
.organizations-title h1 span {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #bfc2c7;
  font-family: var(--font-body);
  font-size: 14px;
}
.organizations-title p { margin: 0; color: var(--muted); font-size: 15px; }
.organizations-search { display: block; margin-bottom: 22px; }
.organizations-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.organizations-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 16, 18, 0.86);
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.organizations-search input:focus { border-color: rgba(255, 138, 31, 0.35); }
.organizations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.organization-card {
  position: relative;
  display: grid;
  min-height: 282px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 8px;
  background: rgba(13, 14, 16, 0.92);
}
.organization-card:hover { border-color: rgba(255, 138, 31, 0.18); }
.organization-card-content {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 26px 114px 24px 24px;
}
.organization-owner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.organization-owner img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  image-rendering: pixelated;
}
.organization-owner strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.organization-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.1;
}
.organization-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #f3f3f3;
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.organization-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.organization-card li::marker { color: #f3f3f3; }
.organizations-empty { margin-top: 18px; }

.organization-detail {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.organization-back-link {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,13,15,0.78);
  color: var(--muted-strong);
  padding: 0 14px;
  font-weight: 700;
}

.organization-detail-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,14,16,0.92);
  padding: 34px;
}

.organization-detail-owner {
  margin-bottom: 22px;
}

.organization-detail-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
}

.organization-detail-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: #f3f3f3;
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
}


.organization-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.organization-members-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,14,16,0.82);
  padding: 24px;
}

.organization-members-section h2 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
}

.organization-members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.organization-member {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 8px;
  background: rgba(7,8,9,0.56);
  padding: 10px;
}

.organization-member img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.organization-member span {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* PROFILE */
.profile-layout { width: min(calc(100% - 140px), 1040px); margin: 0 auto; }
.profile-main-page { padding-top: 128px; }

.profile-hero-card {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(10,10,10,0.94), rgba(10,10,10,0.6)),
    var(--profile-cover, linear-gradient(135deg, rgba(255,138,31,0.18), rgba(20,20,20,0.8)));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.profile-hero-modern {
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10,11,12,0.97), rgba(10,11,12,0.74) 56%, rgba(10,11,12,0.48)),
    linear-gradient(135deg, rgba(255,138,31,0.1), rgba(16,17,19,0.85));
}

.profile-identity { display: flex; min-height: 160px; align-items: end; gap: 20px; }

.profile-head {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: #101010;
  image-rendering: pixelated;
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

.profile-identity h1 { margin: 0; font-family: var(--font-display); color: #fff; font-size: 44px; line-height: 1; font-weight: 800; }
.profile-identity p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted-strong); font-size: 16px; font-weight: 500; }
.profile-title-block { min-width: 0; }

.profile-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.profile-badges span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,8,8,0.6);
  color: var(--muted-strong);
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
}

.profile-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 14px; }
.profile-console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr); gap: 14px; margin-top: 14px; }
.profile-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-card { padding: 24px; }
.profile-card-wide { grid-column: 1 / -1; }

.profile-login-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 128px;
}

.profile-login-card .profile-card-head { max-width: 600px; }
.profile-login-card .profile-actions { margin-top: 0; }
.profile-login-card .primary-button { min-width: 140px; }

/* AUTH DIALOG */
.auth-dialog { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.auth-dialog-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,0.76); cursor: pointer; backdrop-filter: blur(4px); }

.auth-dialog-card {
  position: relative;
  width: min(100%, 330px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: #131416;
  box-shadow: 0 30px 100px rgba(0,0,0,0.52);
  padding: 26px 20px 22px;
  text-align: center;
  animation: dialog-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--muted-strong);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.auth-dialog-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.auth-dialog-close svg, .auth-dialog-icon svg { width: 16px; height: 16px; }
.auth-dialog-icon { display: none; }

.auth-dialog-title-label {
  margin: 0;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1;
  text-transform: uppercase;
}

.auth-dialog-subtitle { max-width: 260px; margin: 10px auto 0; color: #aaa7a0; font-size: 14.5px; line-height: 1.35; font-weight: 400; }
.auth-dialog-note { max-width: 250px; margin: 38px auto 0; color: #aaa7a0; font-size: 12.5px; line-height: 1.3; font-weight: 400; }

.auth-dialog .auth-command-card {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 50px;
  border: 0;
  border-radius: 20px;
  background: #1e2024;
  padding: 0 16px 0 20px;
  text-align: left;
}

.auth-dialog .auth-command-card code {
  overflow: hidden;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  font-family: var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-copy-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #77736d;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.auth-copy-button:hover { color: #fff; background: rgba(255,255,255,0.06); }
.auth-copy-button svg { width: 22px; height: 22px; stroke-width: 1.8; }

.auth-regenerate {
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid rgba(170,167,160,0.4);
  background: transparent;
  color: #aaa7a0;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease;
}

.auth-regenerate:hover { color: var(--text); }
.auth-status-line { min-height: 16px; margin: 12px 0 -22px; color: #6f6b65; font-size: 12px; line-height: 1.3; }

/* PROFILE DETAILS */
.profile-overview-card { grid-column: 1 / -1; display: flex; min-height: 160px; flex-direction: column; }
.profile-actions-bottom { margin-top: auto; }

.profile-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }

.profile-mini-stat {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  background: rgba(7,8,9,0.52);
  padding: 14px;
  display: grid;
  gap: 5px;
}

.profile-mini-stat span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.profile-mini-stat strong { color: #fff; font-size: 20px; line-height: 1.1; font-weight: 700; font-family: var(--font-display); }
.profile-mini-stat small { margin: 0; color: var(--muted-strong); font-size: 12.5px; line-height: 1.45; font-weight: 400; }

.profile-data-list { display: grid; gap: 9px; margin-top: 12px; }

.profile-data-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  background: rgba(5,6,7,0.44);
  padding: 13px 15px;
}

.profile-data-item strong { display: block; overflow: hidden; color: #fff; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-data-item p { margin: 3px 0 0; overflow: hidden; color: var(--muted-strong); font-size: 12.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.profile-data-item span { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.profile-data-item small { color: var(--muted); font-size: 12px; font-weight: 500; }
.profile-data-item .profile-data-moderator { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }

.requires-auth { display: none; }
.profile-authenticated .requires-auth { display: block; }
.profile-authenticated .profile-overview-card { display: flex; }
.profile-authenticated .requires-guest { display: none; }

.profile-card-head { display: flex; gap: 13px; align-items: flex-start; }

.profile-card-head > i, .profile-card-head > svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,138,31,0.08);
  color: var(--accent);
  padding: 7px;
}

.profile-card h2 { margin: 0 0 10px; font-family: var(--font-display); color: #fff; font-size: 22px; line-height: 1.15; font-weight: 700; }
.profile-muted, .profile-feedback { color: var(--muted); font-size: 14.5px; line-height: 1.5; font-weight: 400; }
.profile-muted { margin: 0; }

.login-steps { display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,9,10,0.44); padding: 14px; }
.login-steps span { color: var(--muted-strong); font-size: 13.5px; font-weight: 500; }

.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.profile-actions .primary-button, .profile-actions .secondary-button, .profile-form .primary-button {
  min-width: 0;
  gap: 7px;
  padding: 0 18px;
  font-size: 14px;
}

.profile-actions svg { width: 15px; height: 15px; }

.profile-form { display: grid; gap: 13px; margin-top: 14px; }
.profile-form label { display: grid; gap: 7px; }
.profile-form label span { color: var(--muted-strong); font-size: 12.5px; font-weight: 600; }

.profile-form input, .profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(8,9,10,0.7);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  resize: vertical;
  transition: border-color 160ms ease;
}

.profile-form input:disabled, .profile-form textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.profile-form input:focus, .profile-form textarea:focus { border-color: var(--line-strong); }

.auth-command-card {
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8,9,10,0.7);
  padding: 13px;
}

.auth-command-card span { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.auth-command-card code { color: #fff; font-size: 17px; font-weight: 700; font-family: var(--font-display); }

.profile-facts { display: grid; gap: 9px; }

.profile-fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14.5px;
}

.profile-fact strong { color: #fff; text-align: right; font-weight: 600; }

.profile-form .primary-button { justify-self: start; cursor: pointer; }

.profile-player-layout {
  width: min(calc(100% - 140px), 980px);
}

.profile-player-hero {
  position: relative;
  min-height: 196px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.94), rgba(10,10,10,0.62) 58%, rgba(10,10,10,0.42)),
    var(--profile-cover, rgba(14,15,17,0.92));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 32px;
}

.profile-edit-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5,6,7,0.62);
  padding: 0;
  cursor: pointer;
}

.profile-edit-icon img {
  width: 17px;
  height: 17px;
  opacity: 0.82;
}


.profile-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-section-title h2 {
  margin: 0;
}

.profile-player-layout > .profile-player-hero {
  margin-bottom: 22px;
}

.profile-player-hero::after {
  content: none;
}

.profile-player-layout .profile-identity {
  min-height: 0;
  align-items: center;
}

.profile-player-layout .profile-title-block .eyebrow,
.profile-player-layout [data-profile-status]:empty,
.profile-player-layout .profile-overview-card {
  display: none !important;
}

.profile-player-layout .profile-head {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border-color: rgba(255,255,255,0.1);
  background: #101010;
}

.profile-player-layout .profile-identity h1,
.profile-player-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.profile-player-layout .profile-title-block > p,
.profile-player-hero .profile-title-block > p {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 600;
}

.profile-player-layout .profile-badges {
  margin-top: 18px;
}

.profile-player-layout .profile-badges span {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255,255,255,0.035);
  color: #fff;
}

.profile-about {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10,11,12,0.72);
  padding: 26px 32px;
}

.profile-about h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.profile-about .profile-section-title h2 {
  margin: 0;
}

.profile-section-title + p {
  margin-top: 0;
}

.profile-edit-form {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background: rgba(5,6,7,0.42);
  padding: 16px;
}

.profile-edit-form label {
  display: grid;
  gap: 8px;
}

.profile-edit-form label span,
.profile-edit-form small,
.profile-edit-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

.profile-edit-form input,
.profile-edit-form textarea,
.profile-edit-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(8,9,10,0.82);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  resize: vertical;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus,
.profile-edit-form select:focus {
  border-color: var(--line-strong);
}

.profile-edit-form input[type="color"] {
  height: 44px;
  padding: 6px;
  cursor: pointer;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-edit-actions .primary-button,
.profile-edit-actions .secondary-button {
  min-width: 130px;
}

.profile-about p {
  max-width: 760px;
  margin: 0;
  white-space: pre-wrap;
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.profile-discord-card {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.profile-discord-title {
  justify-content: space-between;
  margin-bottom: 0;
}

.profile-discord-card > p {
  display: flex;
  max-width: none;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0 0;
  white-space: normal;
}

.profile-discord-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.profile-discord-copy svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: #5865f2;
}

.profile-discord-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-discord-copy:hover span {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.34);
  text-underline-offset: 4px;
}

.profile-discord-empty {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.profile-discord-form {
  margin-top: 0;
}

.profile-org-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.profile-org-card .profile-section-title {
  margin-bottom: 0;
}

.profile-org-current {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
}

.profile-org-current strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}



.profile-stats-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: rgba(10,11,12,0.72);
  padding: 26px 32px;
}

.profile-stats-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.profile-stats-row,
.profile-stats-card .profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-stats-row span,
.profile-stats-card .profile-facts span {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background: rgba(5,6,7,0.42);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-stats-row span small,
.profile-stats-card .profile-facts span small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-stats-row strong,
.profile-stats-card .profile-facts strong {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.profile-player-layout .profile-console {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.profile-player-layout .profile-card-wide {
  border-color: rgba(255, 77, 61, 0.22);
  background: rgba(18, 8, 8, 0.62);
}

.profile-player-layout .profile-profile-actions,
.profile-player-layout > .profile-feedback {
  padding: 0 24px;
}

.profile-authenticated .profile-profile-actions {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .site-header, .hero-grid, .stats-strip, .section-heading, .feature-grid,
  .reviews-empty, .review-form, .link-stack, .subpage-panel, .profile-layout,
  .footer-grid, .footer-bottom { width: min(calc(100% - 48px), var(--container)); }

  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav { gap: 10px; font-size: 13.5px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .stat-item { padding: 22px 20px; }
  .stat-item + .stat-item { border-left: 0; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--line); }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .top-players-list, .organizations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-summary-panel { grid-template-columns: 48px minmax(0, 1fr); }
  .organization-detail-stats, .organization-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-average { grid-column: 1 / 2; }
  .reviews-distribution { grid-column: 2 / -1; }
  .reviews-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .link-stack { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-feature-grid { grid-template-columns: 1fr; }
  .profile-data-item { grid-template-columns: 1fr; align-items: start; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-console, .profile-login-card { grid-template-columns: 1fr; }
  .profile-login-card { align-items: flex-start; flex-direction: column; }
  .developer { justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; width: calc(100% - 24px); min-height: 60px; grid-template-columns: auto auto; padding: 9px 12px; }
  .main-nav { display: none; }
  .login-button { min-width: 78px; padding: 0 14px; }
  .hero-grid, .section-heading, .feature-grid, .reviews-empty, .review-form,
  .subpage-panel, .profile-layout,
  .footer-grid, .footer-bottom { width: calc(100% - 32px); }
  .hero-grid { min-height: 100vh; padding: 100px 0 60px; }
  .hero-copy h1 { font-size: 52px; letter-spacing: -1px; }
  .hero-kicker { font-size: 28px; }
  .hero-lead { font-size: 16px; }
  .primary-button, .secondary-button { width: 100%; min-width: 0; }
  .stats-strip { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); }
  .top-players-panel, .organizations-shell { width: calc(100% - 24px); }
  .top-players-list, .organizations-grid { grid-template-columns: 1fr; gap: 10px; }
  .reviews-page-main, .organizations-page-main { padding-top: 92px; }
  .reviews-page-shell { width: calc(100% - 24px); }
  .reviews-page-title { margin-bottom: 18px; }
  .reviews-page-title h1 { font-size: 30px; }
  .reviews-summary-panel {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 20px;
  }
  .reviews-summary-copy,
  .reviews-average,
  .reviews-distribution {
    grid-column: auto;
  }
  .reviews-average > strong { font-size: 44px; }
  .reviews-page-grid { grid-template-columns: 1fr; gap: 12px; }
  .reviews-page-card { min-height: auto; padding: 20px; }
  .organization-card { min-height: 250px; }
  .organization-card-content { padding: 22px 104px 22px 22px; }
  .organization-card h2 { font-size: 24px; }
  .organization-detail-hero { grid-template-columns: 1fr; min-height: auto; padding: 24px; }
  .organization-detail-hero h1 { font-size: 34px; }
  .organization-detail-stats, .organization-members-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 18px 14px; }
  .stat-item strong { font-size: 30px; }
  .stat-status strong { gap: 8px; font-size: 26px; }
  .features-section, .reviews-section, .links-section { padding: 80px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .links-section h2 { font-size: 36px; line-height: 1.1; }
  .feature-card, .feature-content { padding: 22px; }
  .feature-card-large, .team-card { min-height: 290px; }
  .footer-grid { grid-template-columns: 1fr; }
  .subpage-main { padding: 92px 0 52px; }
  .subpage-panel { padding: 22px; }
  .subpage-heading h1 { font-size: 32px; }
  .profile-hero-card { min-height: auto; padding: 22px; }
  .profile-player-hero { align-items: flex-start; flex-direction: column-reverse; gap: 18px; }
  .profile-identity { min-height: 0; align-items: start; flex-direction: column; }
  .profile-identity h1 { font-size: 32px; }
  .profile-head { width: 72px; height: 72px; }
  .profile-about, .profile-stats-card, .profile-player-layout .profile-profile-actions, .profile-player-layout > .profile-feedback { padding: 0; }
  .profile-about, .profile-stats-card { padding: 20px; }
  .profile-stats-card { margin-top: 34px; }
  .profile-stats-row, .profile-stats-card .profile-facts { grid-template-columns: 1fr; gap: 10px; }
  .profile-card { padding: 18px; }
  .footer-copy { margin-top: -14px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}


.profile-hero-card.profile-player-hero,
.profile-player-layout > .profile-player-hero {
  isolation: isolate;
  background-image: var(--profile-cover, linear-gradient(135deg, rgba(18,18,20,0.96), rgba(8,9,10,0.96))) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.profile-player-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(6,7,8,0.84), rgba(6,7,8,0.55) 58%, rgba(6,7,8,0.28));
  pointer-events: none;
}

.profile-player-hero > * {
  position: relative;
  z-index: 1;
}

.profile-player-hero .profile-identity,
.profile-player-hero .profile-head,
.profile-player-hero .profile-title-block {
  position: relative;
  z-index: 2;
}

/* Clip custom profile covers to the card and keep the dark glass layer inside it. */
.profile-player-hero.has-profile-cover,
.profile-hero-card.profile-player-hero.has-profile-cover,
.profile-player-layout > .profile-player-hero.has-profile-cover {
  overflow: hidden !important;
  background: #111214 !important;
  background-image: none !important;
  border-radius: var(--radius) !important;
}

.profile-player-hero.has-profile-cover::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background-image: var(--profile-cover) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
}

.profile-player-hero.has-profile-cover::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(5,6,7,0.86), rgba(5,6,7,0.58) 52%, rgba(5,6,7,0.34)) !important;
  pointer-events: none !important;
}

.top-player-item.top-player-item-cover {
  overflow: hidden !important;
  contain: paint !important;
  clip-path: inset(0 round 10px) !important;
  border-radius: 10px !important;
  background: #111214 !important;
  background-image: none !important;
}

.top-player-item.top-player-item-cover::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background-image: var(--profile-cover) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  transform: none !important;
  pointer-events: none !important;
}

.top-player-item.top-player-item-cover::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(5,6,7,0.88), rgba(5,6,7,0.48)) !important;
  transform: none !important;
  pointer-events: none !important;
}

.top-player-item.top-player-item-cover > * {
  position: relative;
  z-index: 2;
}

/* ORGANIZATIONS — visual refresh */
.organizations-shell { width: min(calc(100% - 48px), 1380px); }
.organizations-title {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 138, 31, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(19, 16, 13, 0.94), rgba(9, 10, 11, 0.92));
  padding: 34px;
}
.organizations-title::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
}
.organizations-title h1 { position: relative; z-index: 1; font-size: clamp(38px, 6vw, 70px); letter-spacing: -0.06em; }
.organizations-title h1 span { min-width: 42px; height: 34px; background: rgba(255, 138, 31, 0.14); color: var(--accent); }
.organizations-title p { position: relative; z-index: 1; max-width: 680px; color: var(--muted-strong); font-size: 17px; line-height: 1.6; }
.organizations-search { margin: 18px 0 20px; }
.organizations-search input { min-height: 54px; border-radius: 14px; background: rgba(12,13,15,0.82); padding: 0 18px; }
.organizations-grid { gap: 18px; }
.organization-card {
  min-height: 310px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent),
    rgba(13, 14, 16, 0.88);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.organization-card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 31, 0.32); background-color: rgba(16,17,19,0.96); }
.organization-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(255,138,31,0.08), transparent);
  pointer-events: none;
}
.organization-card-content { position: relative; z-index: 1; padding: 26px 120px 24px 24px; }
.organization-card h2 { font-size: 30px; letter-spacing: -0.035em; }
.organization-card p { color: var(--muted-strong); }
.organization-card ul { list-style: none; padding: 0; }
.organization-card li {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  padding: 7px 11px;
  color: #fff;
  font-size: 13px;
}
.organization-owner { width: max-content; max-width: 100%; border: 1px solid rgba(255,255,255,0.07); border-radius: 999px; background: rgba(0,0,0,0.22); padding: 5px 9px 5px 5px; }

@media (max-width: 760px) {
}
.organizations-title-modern { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.organizations-title-copy { position: relative; z-index: 1; display: grid; gap: 8px; }
.organizations-title-actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; }
.organizations-title-actions .secondary-button { min-width: 160px; padding: 0 18px; }
@media (max-width: 760px) { .organizations-title-modern { grid-template-columns: 1fr; } .organizations-title-actions { justify-content: stretch; } .organizations-title-actions .secondary-button { width: 100%; } }

.organizations-page-main::before,

.organizations-page-main,

.organizations-title,
.organization-detail-hero {
  border-color: var(--line) !important;
  background: rgba(13, 14, 16, 0.86) !important;
}

.organizations-title::after,
.organization-card::before {
  content: none !important;
}

.organizations-title h1 span {
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--muted-strong) !important;
}

.organizations-title p,

.organizations-title-actions .secondary-button {
  border-color: var(--line);
  color: var(--muted-strong);
  background: rgba(255,255,255,0.025);
}

.organization-card {
  display: flex;
  min-height: 280px !important;
  flex-direction: column;
  border-color: var(--line) !important;
  background: rgba(13, 14, 16, 0.86) !important;
}

.organization-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255,255,255,0.13) !important;
  background: rgba(16, 17, 19, 0.92) !important;
}

.organization-card-content {
  flex: 1;
  padding: 24px 116px 10px 24px !important;
}


.organization-card h2 {
  font-size: 26px !important;
}

.organization-card ul {
  display: none !important;
}

.organization-card-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 24px 22px;
}

.organization-card-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  padding: 0 12px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.organization-owner {
  background: rgba(0,0,0,0.16) !important;
}


.organization-detail-hero {
  background: rgba(13,14,16,0.88) !important;
}

.organization-members-section {
  background: rgba(13,14,16,0.82) !important;
}



















@media (max-width: 1100px) {
}

@media (max-width: 760px) {
  .organization-card-content { padding-right: 96px !important; }
  .organization-card h2 { font-size: 23px !important; }
}

/* Final: organizations without glow */
.organizations-page-main::before { content: none !important; display: none !important; background: none !important; }
.organizations-page-main { background: transparent !important; }
.organizations-title { border-color: var(--line) !important; background: rgba(13, 14, 16, 0.86) !important; }
.organizations-title::after, .organization-card::before { content: none !important; display: none !important; }
.organization-card { display: flex; min-height: 280px !important; flex-direction: column; border-color: var(--line) !important; background: rgba(13, 14, 16, 0.86) !important; }
.organization-card:hover { transform: translateY(-2px) !important; border-color: rgba(255,255,255,0.13) !important; background: rgba(16, 17, 19, 0.92) !important; }
.organization-card-content { flex: 1; padding: 24px 24px 10px !important; }
.organization-detail-hero { grid-template-columns: 1fr !important; background: rgba(13,14,16,0.88) !important; }
.profile-org-current { justify-content: flex-start; }

/* PROFILE MODERATION */
.profile-ban-alert {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 45, 66, 0.58);
  border-radius: 11px;
  background: rgba(15, 16, 20, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 45, 66, 0.06) inset;
  padding: 22px 24px;
}

.profile-ban-alert[hidden],
.profile-warnings-card[hidden] {
  display: none !important;
}

.profile-ban-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #ff3046;
  color: #fff;
}

.profile-ban-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.profile-ban-alert strong {
  display: block;
  color: #f5f5f7;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.profile-ban-alert p {
  margin: 8px 0 0;
  color: rgba(245, 245, 247, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-warnings-card {
  border-color: rgba(255, 77, 61, 0.22) !important;
  background: rgba(18, 8, 8, 0.62) !important;
}

.profile-warning-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-warning-title-row h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-warning-count {
  display: inline-flex;
  min-width: 25px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.profile-warning-list {
  display: grid;
  gap: 8px;
}

.profile-warning-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(8, 8, 10, 0.58);
  padding: 14px;
}

.profile-warning-item strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-warning-item p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-warning-item small {
  display: block;
  margin-top: 8px;
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.profile-warning-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  white-space: nowrap;
}

.profile-warning-meta span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.profile-warning-meta time {
  color: rgba(245, 245, 247, 0.52);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .profile-ban-alert {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .profile-warning-title-row h2 {
    font-size: 23px;
  }

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

  .profile-warning-meta {
    justify-content: flex-start;
  }
}

/* Final: compact organizations heading */
.organizations-title,
.organizations-title-modern {
  display: none !important;
}

.organizations-simple-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.organizations-simple-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.organizations-simple-head h1 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.organizations-search {
  margin-top: 0 !important;
}

/* Profile banners */
.profile-banner-edit {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 5 !important;
  margin: 0 !important;
  transform: none !important;
  flex: 0 0 auto !important;
}

.profile-player-hero.has-profile-cover .profile-banner-edit {
  background: rgba(5, 6, 7, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

/* Final: punishment panels use the same calm style everywhere */
.profile-warnings-card {
  border: 1px solid rgba(255, 77, 61, 0.24) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 91, 43, 0.045), transparent 34%),
    rgba(8, 8, 10, 0.82) !important;
  box-shadow: none !important;
  padding: 24px !important;
}

.profile-warnings-card[hidden] {
  display: none !important;
}

.profile-warning-card-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-warning-card-head > i,
.profile-warning-card-head > svg {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 138, 0, 0.18);
  border-radius: 9px;
  background: rgba(255, 138, 0, 0.08);
  color: var(--accent);
  padding: 8px;
}

.profile-warning-card-head h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-warning-card-head .profile-muted {
  margin: 6px 0 0;
}

.profile-warning-title-row {
  display: none !important;
}

.profile-warning-summary {
  display: grid;
  max-width: 460px;
  margin-bottom: 12px;
}

.profile-warning-summary-card {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(5, 5, 7, 0.52);
  padding: 14px;
}

.profile-warning-summary-card span {
  display: block;
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.profile-warning-summary-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.profile-warning-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.profile-warning-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9px !important;
  background: rgba(3, 3, 5, 0.55) !important;
  padding: 15px 14px !important;
}

.profile-warning-item strong {
  display: block !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.profile-warning-item p {
  margin: 7px 0 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.profile-warning-item small {
  display: block !important;
  margin-top: 9px !important;
  color: rgba(245, 245, 247, 0.47) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.profile-warning-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.profile-warning-meta span {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.profile-warning-meta time {
  color: rgba(245, 245, 247, 0.56) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

@media (max-width: 620px) {
  .profile-warnings-card {
    padding: 18px !important;
  }

  .profile-warning-card-head h2 {
    font-size: 23px;
  }

  .profile-warning-item {
    grid-template-columns: 1fr !important;
  }

  .profile-warning-meta {
    justify-content: flex-start !important;
  }
}


/* Exact punishment panel requested */
.profile-player-layout {
  gap: 22px !important;
}

.profile-ban-alert:not([hidden]) {
  margin: 10px 0 0 !important;
}

.profile-console,
.profile-card-wide:has([data-moderation-summary]),
.profile-card-wide:has([data-moderation-list]) {
  display: none !important;
}

.profile-warnings-card {
  display: block !important;
  margin-top: 14px !important;
  border: 1px solid rgba(255, 77, 61, 0.28) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 83, 31, 0.06), transparent 36%),
    rgba(8, 8, 10, 0.84) !important;
  box-shadow: none !important;
  padding: 24px !important;
}

.profile-warnings-card[hidden] {
  display: none !important;
}

.profile-warning-card-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
}

.profile-warning-card-head > i,
.profile-warning-card-head > svg {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 138, 0, 0.18) !important;
  border-radius: 9px !important;
  background: rgba(255, 138, 0, 0.08) !important;
  color: var(--accent) !important;
  padding: 8px !important;
}

.profile-warning-card-head h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.profile-warning-card-head .profile-muted {
  margin: 8px 0 0 !important;
  color: rgba(245, 245, 247, 0.52) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.profile-warning-summary {
  display: grid !important;
  max-width: 460px !important;
  margin: 0 0 12px !important;
}

.profile-warning-summary-card {
  min-height: 74px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 9px !important;
  background: rgba(5, 5, 7, 0.52) !important;
  padding: 14px !important;
}

.profile-warning-summary-card span {
  display: block !important;
  color: rgba(245, 245, 247, 0.48) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.profile-warning-summary-card strong {
  display: block !important;
  margin-top: 6px !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.profile-warning-list {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.profile-warning-list .profile-warning-item,
.profile-warning-list .warning-row,
.profile-warning-list .warning-item,
.profile-warning-list .profile-data-item {
  display: none !important;
}

.punishment-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 92px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9px !important;
  background: rgba(3, 3, 5, 0.55) !important;
  padding: 15px 14px !important;
}

.punishment-item-main strong {
  display: block !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.punishment-item-main p {
  margin: 7px 0 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.punishment-item-main small {
  display: block !important;
  margin-top: 9px !important;
  color: rgba(245, 245, 247, 0.47) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.punishment-item-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.punishment-item-meta span {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.punishment-item-meta time {
  color: rgba(245, 245, 247, 0.56) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

@media (max-width: 620px) {
  .profile-warnings-card {
    padding: 18px !important;
  }

  .profile-warning-card-head h2 {
    font-size: 23px !important;
  }

  .punishment-item {
    grid-template-columns: 1fr !important;
  }

  .punishment-item-meta {
    justify-content: flex-start !important;
  }
}

/* Banned players: make nicknames slightly darker and struck through everywhere */
.player-name-banned {
  color: rgba(255, 255, 255, 0.56) !important;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 80, 96, 0.72);
  text-decoration-skip-ink: none;
}


/* Final profile fixes: role colors, spacing and punishment cards */
.profile-ban-alert + .profile-warnings-card,
.profile-ban-alert + .profile-card {
  margin-top: 16px;
}

.profile-role-badge[data-role="default"] {
  color: rgba(245,245,247,0.72);
  border-color: rgba(255,255,255,0.08);
}
.profile-role-badge[data-role="donator"] {
  color: #f1c40f;
  border-color: rgba(241,196,15,0.22);
  background: rgba(241,196,15,0.07);
}
.profile-role-badge[data-role="intern"] {
  color: #d5ff6b;
  border-color: rgba(213,255,107,0.2);
  background: rgba(213,255,107,0.06);
}
.profile-role-badge[data-role="helper"] {
  color: #e2914a;
  border-color: rgba(226,145,74,0.22);
  background: rgba(226,145,74,0.06);
}
.profile-role-badge[data-role="admin"] {
  color: #d4843d;
  border-color: rgba(212,132,61,0.24);
  background: rgba(212,132,61,0.06);
}
.profile-role-badge[data-role="st_admin"] {
  color: #aa3b3b;
  border-color: rgba(170,59,59,0.28);
  background: rgba(170,59,59,0.08);
}

/* Keep space between an active ban alert and the next profile block */
.profile-player-layout > .profile-ban-alert:not([hidden]) {
  margin-bottom: 22px !important;
}

.profile-player-layout > .profile-ban-alert:not([hidden]) + .profile-about,
.profile-player-layout > .profile-ban-alert:not([hidden]) + .profile-card,
.profile-player-layout > .profile-ban-alert:not([hidden]) + .profile-warnings-card {
  margin-top: 0 !important;
}


/* Hard fix: visible spacing after active ban alert before Bio/next block */
.profile-player-layout > section.profile-ban-alert:not([hidden]) {
  margin-bottom: 28px !important;
}

.profile-player-layout > section.profile-ban-alert:not([hidden]) + section.profile-about,
.profile-player-layout > section.profile-ban-alert:not([hidden]) + section.profile-card,
.profile-player-layout > section.profile-ban-alert:not([hidden]) + section.profile-warnings-card {
  margin-top: 28px !important;
}

/* ============================================================
   UI REFINEMENTS — subtle depth, icons, restrained motion.
   ============================================================ */

::selection { background: var(--accent); color: #200b00; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes sl-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal uses an animation with backwards fill only, so once it ends the element
   falls back to its own transform (hover states) instead of being pinned. */
@keyframes sl-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.reveal-pending { opacity: 0; }
.reveal-pending.reveal-in {
  opacity: 1;
  animation: sl-reveal 640ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms) backwards;
}

/* --- header --- */
.site-header {
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 10, 0.94);
  border-color: rgba(255, 122, 26, 0.14);
  box-shadow: var(--shadow-soft);
}

.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* --- buttons --- */
.login-button, .primary-button, .reviews-button {
  border: 1px solid transparent;
  background: var(--accent);
  color: #200b00;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 160ms ease, transform 160ms ease, box-shadow 200ms ease;
}

.login-button:hover, .primary-button:hover, .reviews-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.login-button:active, .primary-button:active, .reviews-button:active { transform: translateY(0); }

.is-authenticated .login-button {
  background: rgba(18,18,20,0.92);
  box-shadow: none;
  color: inherit;
}
.is-authenticated .login-button:hover {
  background: rgba(24,24,26,0.96);
  box-shadow: none;
  transform: none;
  filter: none;
}

.secondary-button {
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 160ms ease, box-shadow 200ms ease;
}
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.secondary-button:active { transform: translateY(0); }

/* --- hero --- */
.hero-copy h1 {
  background: linear-gradient(135deg, #ff9a35 10%, #ff6200 60%, #ffb347 90%);
  -webkit-background-clip: text;
  background-clip: text;
}


/* --- stats strip --- */
.stats-strip { position: relative; }
.stats-strip::before {
  content: '';
  position: absolute;
  top: -1px; left: 6%; right: 6%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.4;
}

.stat-item svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 10px;
  color: var(--accent);
  stroke-width: 2.1;
  opacity: 0.85;
}

/* --- feature cards --- */
.feature-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 11px;
  background: var(--accent-gradient-soft);
  color: var(--accent-light);
  transition: background 200ms ease, color 200ms ease;
}
.feature-icon svg { width: 19px; height: 19px; stroke-width: 2.2; }

.feature-card {
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 220ms ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* --- reviews --- */
.review-card {
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.review-form { position: relative; }
.review-form::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

/* --- links section --- */
.link-chip:hover { box-shadow: var(--shadow-soft); background: rgba(255, 122, 26, 0.06); }

/* --- footer --- */
.site-footer { position: relative; }
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 8%; right: 8%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

/* --- shared cards across subpages --- */
.top-player-item, .profile-card {
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.top-player-item:hover { box-shadow: var(--shadow-soft); }
.profile-card:hover { border-color: rgba(255, 122, 26, 0.14); }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-lead, .hero-actions { animation: none !important; }
}

/* ============================= */
/* WIKI                          */
/* ============================= */

.wiki-main { min-height: 100vh; padding: 132px 0 90px; }

.wiki-shell {
  display: grid;
  width: min(calc(100% - 140px), var(--container));
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  margin: 0 auto;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.wiki-nav-group {
  margin: 14px 0 4px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.wiki-nav-group:first-child { margin-top: 4px; }

.wiki-sidebar a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 160ms ease, background 160ms ease;
}
.wiki-sidebar a svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  opacity: 0.8;
}
.wiki-nav-sub a svg { width: 13px; height: 13px; }
.wiki-sidebar a:hover { color: var(--text); background: rgba(255,255,255,0.032); }
.wiki-sidebar a[aria-current="page"] { color: var(--accent); background: rgba(255,138,31,0.08); font-weight: 700; }
.wiki-sidebar a[aria-current="page"] svg { opacity: 1; }

.wiki-nav-sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 2px 17px;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}
.wiki-nav-sub .wiki-nav-sub { margin-left: 12px; }
.wiki-nav-sub a { min-height: 30px; font-size: 13.5px; }

.wiki-article-wrap {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 40px 44px;
}

.wiki-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.wiki-breadcrumbs a { color: var(--muted); transition: color 160ms ease; }
.wiki-breadcrumbs a:hover { color: var(--accent); }
.wiki-breadcrumbs .is-current { color: var(--muted-strong); }

.wiki-article h1 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  color: #fff;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
}

.wiki-price-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 4px 14px;
  color: #ffb36a;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

.wiki-lead {
  margin: 0 0 30px;
  color: var(--muted-strong);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 400;
}

.wiki-article h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}
.wiki-article h2:first-child { margin-top: 0; }
.wiki-article h2::before {
  content: '';
  width: 4px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.wiki-article h2 svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--accent-light); stroke-width: 2.2; }

.wiki-article h3 {
  margin: 26px 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
}

.wiki-article p { margin: 0 0 14px; color: var(--muted-strong); font-size: 15.5px; line-height: 1.65; font-weight: 400; }
.wiki-article ul, .wiki-article ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted-strong); font-size: 15.5px; line-height: 1.7; }
.wiki-article li { margin-bottom: 6px; }
.wiki-article li::marker { color: var(--accent); font-weight: 700; }
.wiki-article a { color: var(--accent-light); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,122,26,0.35); text-underline-offset: 3px; }
.wiki-article a:hover { color: var(--accent); }
.wiki-article strong { color: var(--text); }
.wiki-article code {
  font-family: var(--font-pixel);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13.5px;
  color: var(--accent-light);
  white-space: nowrap;
}

/* callouts */
.wiki-hint {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  padding: 14px 16px;
  color: var(--muted-strong);
  font-size: 14.5px;
  line-height: 1.6;
}
.wiki-hint svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.wiki-hint p { margin: 0; }
.wiki-hint p + p { margin-top: 8px; }
.wiki-hint-warning { border-left-color: var(--yellow); }
.wiki-hint-warning svg { color: var(--yellow); }
.wiki-hint-danger { border-left-color: var(--red); }
.wiki-hint-danger svg { color: var(--red); }

/* command tables */
.wiki-cmd-table {
  display: grid;
  gap: 1px;
  margin: 16px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}
.wiki-cmd-row {
  display: grid;
  grid-template-columns: minmax(150px, 300px) 1fr;
  gap: 4px 16px;
  background: rgba(10,11,12,0.7);
  padding: 11px 16px;
}
.wiki-cmd-row code { justify-self: start; white-space: normal; word-break: break-word; }
.wiki-cmd-row strong { align-self: center; color: #fff; font-size: 14.5px; font-weight: 700; }
.wiki-cmd-row span { align-self: center; color: var(--muted-strong); font-size: 14px; line-height: 1.5; }

/* steps */
.wiki-steps { display: grid; gap: 16px; margin: 18px 0 26px; }
.wiki-step { display: flex; gap: 14px; align-items: flex-start; }
.wiki-step-num {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-gradient-soft);
  border: 1px solid rgba(255,122,26,0.24);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.wiki-step-body strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.wiki-step-body p { margin: 4px 0 0; }

/* details / accordions */
.wiki-details { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); overflow: hidden; }
.wiki-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--muted-strong);
  font-weight: 600;
  font-size: 14.5px;
}
.wiki-details summary::-webkit-details-marker { display: none; }
.wiki-details summary::after { content: '+'; flex: 0 0 auto; color: var(--accent); font-size: 18px; font-weight: 700; }
.wiki-details[open] summary::after { content: '\2212'; }
.wiki-details[open] summary { border-bottom: 1px solid var(--line); }
.wiki-details-body { padding: 16px; color: var(--muted-strong); font-size: 14.5px; line-height: 1.6; }
.wiki-details-body > *:first-child { margin-top: 0; }

/* figures */
.wiki-figure { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(8,9,10,0.5); padding: 14px; text-align: center; }
.wiki-figure img { max-width: 100%; border-radius: 6px; }
.wiki-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.wiki-figure-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 16px 0; }
.wiki-figure-row .wiki-figure { flex: 1 1 200px; max-width: 260px; margin: 0; }

/* recipe table */
.wiki-recipe-scroll { margin: 16px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wiki-recipe-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.wiki-recipe-table th {
  background: rgba(20,16,12,0.95);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.wiki-recipe-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--muted-strong); white-space: nowrap; }
.wiki-recipe-table tr:last-child td { border-bottom: 0; }
.wiki-recipe-table tr:hover td { background: rgba(255,255,255,0.025); }
.wiki-recipe-table td:first-child { color: #fff; font-weight: 600; }
.wiki-ing { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; white-space: nowrap; }
.wiki-ing img { width: 20px; height: 20px; image-rendering: pixelated; border-radius: 3px; background: rgba(255,255,255,0.06); }

/* index / overview card grids (reuse feature-card visuals) */
.wiki-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 18px 0 8px; }
.wiki-card-grid .feature-card { display: block; min-height: 132px; }
.wiki-card-grid .feature-card p { font-size: 14px; }

/* rules list */
.wiki-rules { display: grid; gap: 9px; margin: 0 0 22px; padding-left: 0; list-style: none; }
.wiki-rules li { display: flex; gap: 11px; align-items: baseline; }
.wiki-rules .num {
  flex: 0 0 auto;
  min-width: 48px;
  color: var(--accent-light);
  font-family: var(--font-pixel);
  font-size: 12.5px;
  font-weight: 700;
}
.wiki-rules span:last-child { color: var(--muted-strong); font-size: 15px; line-height: 1.6; }
.wiki-rules-nested { margin: 2px 0 6px 48px; }

.wiki-mods-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; margin: 16px 0; }
.wiki-mods-group strong { display: block; margin-bottom: 6px; color: #fff; font-size: 14px; font-weight: 700; }
.wiki-mods-group p { margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.6; }

.wiki-next-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.wiki-next-link a { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--accent); font-weight: 700; transition: gap 160ms ease; }
.wiki-next-link a::after { content: '\2192'; }
.wiki-next-link a:hover { gap: 10px; }

@media (max-width: 1100px) {
  .wiki-shell { width: min(calc(100% - 48px), var(--container)); grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; max-height: none; }
  .wiki-article-wrap { padding: 30px; }
}

@media (max-width: 760px) {
  .wiki-main { padding: 92px 0 52px; }
  .wiki-shell { width: calc(100% - 32px); }
  .wiki-article-wrap { padding: 22px; }
  .wiki-article h1 { font-size: 28px; }
  .wiki-cmd-row { grid-template-columns: 1fr; }
  .wiki-card-grid { grid-template-columns: 1fr; }
  .wiki-mods-grid { grid-template-columns: 1fr; }
  .wiki-recipe-table { min-width: 620px; }
}

/* Profile comments (guestbook-style comments left on another player's public profile) */
.profile-comments-card .profile-card-head { margin-bottom: 20px; }
.profile-comment-list { display: grid; gap: 12px; margin: 0 0 14px; }

.profile-comment-item {
  display: flex;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(3,3,5,0.55);
}

.profile-comment-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  background: rgba(5,6,7,0.9);
  image-rendering: pixelated;
  object-fit: cover;
}

.profile-comment-body { min-width: 0; }

.profile-comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-comment-meta strong {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-display);
}

.profile-comment-meta small { color: var(--muted); font-size: 12px; font-weight: 500; }

.profile-comment-delete {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  background: rgba(5,6,7,0.5);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}

.profile-comment-delete i, .profile-comment-delete svg { width: 14px; height: 14px; }

.profile-comment-delete:hover {
  border-color: rgba(255,77,61,0.4);
  background: rgba(255,77,61,0.12);
  color: #ff6b5e;
}

.profile-comment-item p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-comment-form .profile-edit-actions {
  align-items: center;
  justify-content: space-between;
}

/* .profile-edit-form sets display:grid after .auth-only in the cascade, so pin
   the hide/show behavior with a compound selector instead of relying on source order. */
.profile-comment-form.auth-only { display: none; }
.is-authenticated .profile-comment-form.auth-only { display: grid; }

/* Header notifications bell — wraps the login-button/avatar so the header grid still has 3 tracks. */
.header-account { display: flex; align-items: center; gap: 10px; justify-self: end; }

.header-notify { position: relative; }
.header-notify[hidden] { display: none; }

.header-notify-btn {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18,18,20,0.92);
  color: var(--muted-strong);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.header-notify-btn:hover { background: rgba(24,24,26,0.96); color: #fff; }
.header-notify-btn svg { width: 19px; height: 19px; stroke-width: 2.1; }

.header-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--accent-strong);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

.header-notify-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.header-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.header-notify-panel-head strong { color: #fff; font-size: 15px; font-weight: 700; }

.header-notify-read-all {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.header-notify-read-all:hover { color: var(--accent-light); }

.header-notify-list { display: flex; flex-direction: column; overflow-y: auto; }

.header-notify-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 12px 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}
.header-notify-item:last-child { border-bottom: 0; }
.header-notify-item:hover { background: rgba(255,255,255,0.03); }
.header-notify-item.is-unread { background: rgba(255,122,26,0.05); }

.header-notify-item i, .header-notify-item svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent-light);
}

.header-notify-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.header-notify-item-text { font-size: 13.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.header-notify-item small { color: var(--muted); font-size: 11.5px; font-weight: 500; }

.header-notify-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.header-notify-empty { margin: 0; padding: 24px 16px; color: var(--muted); font-size: 13.5px; text-align: center; }

@media (max-width: 480px) {
  .header-notify-panel { position: fixed; top: 74px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 100px); }
}


/* ==========================================================================
   FLAT EDITORIAL LAYER — solid colour, hairlines, real imagery, pixel labels.
   Appended last; it retunes the tokens above and restyles the home page.
   ========================================================================== */

@font-face {
  font-family: 'SL Pixel';
  src: url('assets/fonts/pixelFont.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0f0f0e;
  --panel: #161615;
  --panel-strong: #1c1c1a;
  --line: #2a2927;
  --line-strong: #403d39;
  --text: #ecebe7;
  --muted: #8d8a84;
  --muted-strong: #bdb9b1;
  --accent: #ff7a1a;
  --accent-strong: #ff8f3d;
  --accent-deep: #e5620a;
  --accent-light: #ff9d57;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --accent-glow: transparent;
  --accent-gradient: #ff7a1a;
  --accent-gradient-soft: rgba(255, 122, 26, 0.1);
  --on-accent: #160b03;
  --surface: #161615;
  --surface-soft: #131312;
  --shadow-soft: none;
  --shadow-lift: 0 16px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: none;
  --radius: 6px;
  --radius-sm: 4px;
  --font-display: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --font-label: 'Martian Mono', ui-monospace, monospace;
  --font-pixel-num: 'SL Pixel', ui-monospace, monospace;
  --gutter: 48px;
  --wrap: min(calc(100% - var(--gutter) * 2), var(--container));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  background: var(--bg);
  background-image: none;
  -webkit-font-smoothing: antialiased;
}

.page-shell::before { content: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.label,
.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow { color: var(--accent); }
.eyebrow::before, .eyebrow::after { content: none; }
.section-label { color: var(--accent); }

/* ---------- Header: a plain bar ---------- */
.site-header {
  top: 0;
  left: 0;
  width: 100%;
  min-height: 68px;
  transform: none;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--bg);
  box-shadow: none;
}

.logo-link { gap: 12px; }
.logo { width: 36px; height: 36px; }
.logo-link::after {
  content: 'SailLand';
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main-nav {
  justify-content: flex-start;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a,
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  position: relative;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}

.main-nav a { color: var(--muted-strong); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav svg { display: none; }

.main-nav a::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 0;
  transition: transform 240ms var(--ease);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 160ms ease, top 260ms var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.is-menu-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-menu-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons: flat fills ---------- */
.login-button, .primary-button, .reviews-button {
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.login-button:hover, .primary-button:hover, .reviews-button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: none;
  transform: none;
}

.login-button:active, .primary-button:active, .reviews-button:active {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  transform: none;
}

.login-button { min-width: 0; min-height: 40px; padding: 0 18px; font-size: 14px; }

.secondary-button,
.reviews-all-button {
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-weight: 600;
  backdrop-filter: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.secondary-button:hover,
.reviews-all-button:hover {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.btn-arrow { width: 16px; height: 16px; flex: 0 0 auto; transition: transform 220ms var(--ease); }
a:hover > .btn-arrow { transform: translateX(3px); }

.is-authenticated .login-button,
.header-notify-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: none;
  padding: 3px;
}

.is-authenticated .login-button:hover,
.header-notify-btn:hover { border-color: var(--text); background: none; }
.header-avatar { border-radius: 2px; }
.header-notify-btn { padding: 0; }

/* ---------- Hero: full-bleed photo with the copy set on top ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: min(100vh, 900px);
  min-height: min(100svh, 900px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 0;
}

.hero::before, .hero::after { content: none; }

.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--panel);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Flat darkening for legibility: heavier at the bottom-left where the copy sits. */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 15, 14, 0.78) 30%, rgba(15, 15, 14, 0.2) 70%, rgba(15, 15, 14, 0.55) 100%),
    linear-gradient(90deg, rgba(15, 15, 14, 0.7) 0%, rgba(15, 15, 14, 0) 65%);
}

.hero-inner {
  display: flex;
  width: var(--wrap);
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 140px 0 0;
}

.hero-copy { width: auto; max-width: 640px; text-align: left; }
.hero-copy .label { color: var(--muted-strong); }

.hero-copy h1 {
  margin: 0 0 24px;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #fff;
  filter: none;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 440px;
  margin: 0;
  color: #dcd8d0;
  font-size: 19px;
  line-height: 1.5;
}

.hero-actions { justify-content: flex-start; gap: 10px; margin-top: 34px; }
.hero-actions .primary-button,
.hero-actions .secondary-button { min-width: 0; min-height: 50px; padding: 0 22px; font-size: 15.5px; }
.hero-actions .secondary-button { border-color: rgba(255, 255, 255, 0.35); background: rgba(15, 15, 14, 0.35); }
.hero-actions .secondary-button:hover { border-color: #fff; background: rgba(15, 15, 14, 0.35); }

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0 18px;
}

.hero-caption .label { margin: 0; }

.hero-copy > * { animation: sl-rise 720ms var(--ease) backwards; }
.hero-copy > :nth-child(1) { animation-delay: 200ms; }
.hero-copy > :nth-child(2) { animation-delay: 280ms; }
.hero-copy > :nth-child(3) { animation-delay: 360ms; }
.hero-copy > :nth-child(4) { animation-delay: 440ms; }
.hero-caption { animation: sl-fade 900ms ease 700ms backwards; }
.hero-photo { animation: sl-fade 900ms ease backwards; }
.hero-photo img { animation: sl-settle 2200ms var(--ease) backwards; }

@keyframes sl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes sl-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sl-settle {
  from { transform: scale(1.08); }
  to { transform: none; }
}

/* The bar always keeps a solid background so content never shows through it. */
.site-header { background: var(--bg); border-bottom-color: var(--line); }
.wiki-step-body p strong { display: inline; font-size: inherit; }

/* ---------- Facts row ---------- */
.stats-strip {
  width: var(--wrap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stats-strip::before { content: none; }

.stat-item {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px 24px 30px 0;
  text-align: left;
}

.stat-item + .stat-item { border-left: 1px solid var(--line); padding-left: 24px; }
.stat-item:hover { background: none; }
.stat-item svg { display: none; }

.stat-item span {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-item strong,
.stat-status strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat-status strong { gap: 12px; }
.stat-status strong::before { width: 10px; height: 10px; border-radius: 0; }
.stat-status.is-loading strong::before { animation: sl-blink 1s steps(2, jump-none) infinite; }

@keyframes sl-blink {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: sl-ticker 48s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: 0 32px;
  background: var(--accent);
}

@keyframes sl-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About: numbered list ---------- */
.about {
  display: grid;
  width: var(--wrap);
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  margin: 0 auto;
  padding: 120px 0;
}

.about-head { position: sticky; top: 108px; align-self: start; }

.about-head h2,
.section-head h2,
.cta-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-head p:not(.label),
.section-head p:not(.label) {
  max-width: 360px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.about-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.about-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 30px 0 32px;
}

.about-num {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--font-pixel-num);
  font-size: 16px;
  transition: color 200ms ease;
}

.about-item:hover .about-num { color: var(--accent); }

.about-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.about-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 200ms ease;
}

.about-link:hover { border-color: var(--accent); }

.tags { gap: 6px; margin-top: 16px; }
.tags span {
  min-height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: none;
  color: var(--muted-strong);
  padding: 0 9px;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 400;
  backdrop-filter: none;
}

/* ---------- Reviews ---------- */
.reviews-section { min-height: 0; padding: 0 0 120px; }

.section-head {
  display: flex;
  width: var(--wrap);
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto 40px;
}

.section-head .reviews-actions { margin: 0; flex: 0 0 auto; }
.reviews-button { width: auto; min-width: 0; padding: 0 18px; }

.reviews-empty {
  width: var(--wrap);
  min-height: 0;
  place-items: start;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: none;
  padding: 28px;
  text-align: left;
}

.reviews-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.review-login-note { width: var(--wrap); margin: 20px auto 0; color: var(--muted); text-align: left; }

.reviews-billboard { margin-top: 0; }

.review-card {
  width: 320px;
  min-height: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto 36px;
  row-gap: 18px;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  transition: border-color 200ms ease;
}

.review-card:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }

.review-card p {
  grid-column: 1 / -1;
  grid-row: 1;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-line-clamp: 4;
  max-height: calc(1.5em * 4);
}

.review-card-head { grid-row: 2; width: 36px; height: 36px; border-radius: 3px; box-shadow: none; }
.review-card-meta { grid-row: 2; height: 36px; grid-template-rows: auto auto; gap: 3px; }
.review-card strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.review-card-stars, .review-stars { color: var(--accent); font-size: 12px; gap: 2px; }

.review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.review-form::before { content: none; }
.review-form textarea { border-radius: var(--radius-sm); border-color: var(--line); background: var(--bg); }
.review-form textarea:focus { border-color: var(--line-strong); box-shadow: none; }
.review-form-avatar { border-radius: var(--radius-sm); }

/* ---------- Links band ---------- */
.cta-band { background: var(--accent); color: var(--on-accent); }

.cta-inner {
  display: grid;
  width: var(--wrap);
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  margin: 0 auto;
  padding: 96px 0;
}

.cta-band .label { color: var(--on-accent); opacity: 0.7; }
.cta-copy h2 { color: var(--on-accent); }

.cta-links { display: grid; border-top: 1px solid rgba(22, 11, 3, 0.28); }

.cta-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(22, 11, 3, 0.28);
  padding: 24px 0;
  color: var(--on-accent);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  transition: padding 320ms var(--ease);
}

.cta-links a:hover { padding-left: 14px; }
.cta-links svg { width: 28px; height: 28px; flex: 0 0 auto; transition: transform 320ms var(--ease); }
.cta-links a:hover svg { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 0; background: var(--bg); padding: 72px 0 32px; }
.site-footer::before { content: none; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-transform: none; }
.footer-brand span { margin-top: 6px; color: var(--muted); font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-copy { color: var(--muted); }
.footer-links h3 { margin-bottom: 6px; color: var(--muted); font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.06em; font-weight: 400; text-transform: uppercase; }
.footer-links a, .footer-links span { color: var(--muted-strong); font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.developer span { color: var(--muted); font-family: var(--font-label); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; }
.footer-bottom { color: var(--muted); }

/* ---------- Shared components on sub-pages ---------- */
.subpage-heading h1 { letter-spacing: -0.045em; }

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 200ms ease;
}

.feature-card:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }

.feature-icon {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--accent);
}

.top-player-item { border-radius: var(--radius); transition: border-color 200ms ease; }
.top-player-item:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
.top-player-head { border-radius: 3px; }

.organization-card { border-radius: var(--radius); }
.reviews-page-card, .reviews-summary-panel { border-radius: var(--radius); }

.wiki-article-wrap, .wiki-sidebar { border-radius: var(--radius); box-shadow: none; }
.wiki-article h2::before { width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
.wiki-hint { border-left-width: 1px; border-left-color: var(--line); }
.wiki-sidebar a[aria-current="page"] { background: var(--panel-strong); }

.auth-dialog-backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: none; }
.auth-dialog-card { border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-lift); animation: sl-rise 260ms var(--ease); }
.auth-dialog .auth-command-card { border-radius: var(--radius-sm); background: var(--bg); }
.auth-dialog-title-label { font-family: var(--font-label); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }

.header-notify-panel { border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 24px; }

  .site-header { width: 100%; grid-template-columns: auto 1fr auto; }
  .hero-inner { padding-top: 116px; }
  .about, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-head { position: static; }

  .stats-strip { width: var(--wrap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .stat-item, .stat-item + .stat-item { border-left: 0; padding: 22px 16px 24px 0; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section-head, .reviews-empty, .review-login-note { width: var(--wrap); }

  /* The desktop footer pins link columns to rows 1-2; on narrow grids that spawned
     implicit columns and pushed the footer wider than the screen. */
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand, .footer-copy { grid-column: 1 / -1; grid-row: auto; }
  .footer-copy { margin: -16px 0 0; }
  .footer-links, .developer { grid-row: auto; padding-top: 0; }
  .developer { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  .site-header {
    top: 0;
    width: 100%;
    min-height: 60px;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 0 16px;
  }

  .nav-toggle { display: block; }

  .site-header .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 260ms var(--ease), visibility 0s linear 260ms;
  }

  .site-header.is-menu-open { border-color: var(--line); }
  .site-header.is-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 260ms var(--ease), visibility 0s;
  }

  .main-nav a,
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .main-nav a::after { content: none; }
  .main-nav a[aria-current="page"] { color: var(--accent); }

  .hero { min-height: 660px; }
  .hero-inner { padding-top: 100px; }
  .hero-caption { margin-top: 40px; }
  .hero-photo img { object-position: 60% 40%; }
  .hero-copy h1 { font-size: clamp(56px, 17vw, 84px); }
  .hero-lead { font-size: 17px; }

  .stat-item strong, .stat-status strong { font-size: 30px; }
  .stat-status strong { font-size: 24px; gap: 10px; }
  .stat-item span { margin-bottom: 12px; font-size: 11px; }

  .about { padding: 80px 0; }
  .about-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; padding: 24px 0; }
  .about-body { grid-column: 2; }
  .about-item h3 { font-size: 21px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-head .reviews-actions { width: 100%; }
  .section-head .reviews-button { flex: 1 1 0; }
  .reviews-section { padding-bottom: 80px; }
  .review-card { width: 280px; }

  .cta-inner { padding: 72px 0; }
  .cta-links a { padding: 20px 0; font-size: 24px; }

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

/* ==========================================================================
   SUB-PAGES — the home page's editorial system applied to every other page:
   big left-aligned headings, mono labels, hairlines, flat panels.
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); }

.subpage-main,
.reviews-page-main,
.organizations-page-main,
.profile-main-page {
  min-height: 70vh;
  padding: 132px 0 120px;
}

/* ---------- Page heading ---------- */
.subpage-panel,
.subpage-panel.top-players-panel {
  width: var(--wrap);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.subpage-panel .subpage-heading,
.reviews-page-title {
  display: block;
  max-width: none;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
}

.subpage-heading h1,
.reviews-page-title h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.subpage-heading p:not(.eyebrow),
.reviews-page-title p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.subpage-panel > .primary-button { min-width: 0; padding: 0 22px; }

.empty-panel {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: none;
  padding: 24px;
  color: var(--muted);
  text-align: left;
}

/* ---------- Top players ---------- */
.top-players-list { counter-reset: rank; gap: 12px; }
.top-players-list > .empty-panel { grid-column: 1 / -1; }

.top-player-item {
  counter-increment: rank;
  min-height: 88px;
  border: 1px solid var(--line);
  padding: 16px;
}

.top-player-item:not(.top-player-item-cover),
.top-player-item:not(.top-player-item-cover):hover { background: var(--panel); }

.top-player-head { width: 48px; height: 48px; border-color: var(--line); }

.top-player-name::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--muted);
  font-family: var(--font-pixel-num);
  font-size: 13px;
  line-height: 1;
}

.top-player-item:hover .top-player-name::before { color: var(--accent); }
.top-player-name strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.top-player-name small { color: var(--muted); }

/* ---------- Reviews page ---------- */
.reviews-page-shell { width: var(--wrap); }

.reviews-page-title { margin-bottom: 0; }
.reviews-page-title h1 { display: flex; align-items: flex-start; gap: 14px; }

.reviews-page-title h1 span {
  min-width: 0;
  height: auto;
  margin-top: 0.35em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: none;
  color: var(--muted-strong);
  padding: 4px 8px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.reviews-summary-panel {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-rows: auto auto;
  grid-template-areas: "copy dist" "avg dist";
  align-items: start;
  gap: 16px 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 36px 0 40px;
}

.reviews-summary-icon { display: none; }
.reviews-summary-copy { grid-area: copy; }
.reviews-average { grid-area: avg; align-self: start; }
.reviews-distribution { grid-area: dist; align-self: center; }

.reviews-summary-copy strong {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reviews-summary-copy span { color: var(--muted); font-size: 14px; font-weight: 400; }
.reviews-average > strong { font-family: var(--font-display); font-size: 88px; font-weight: 700; letter-spacing: -0.06em; }

.reviews-page-stars,
.reviews-page-rating,
.reviews-rating-star { color: var(--accent); }

.reviews-page-stars .is-empty,
.reviews-page-rating .is-empty { color: var(--line-strong); }

.reviews-rating-row { color: var(--muted); font-family: var(--font-label); font-size: 12px; }
.reviews-rating-row i { height: 6px; border-radius: 0; background: var(--line); }
.reviews-rating-row b { border-radius: 0; background: var(--accent); }
.reviews-rating-row strong { color: var(--muted); font-size: 12px; font-weight: 500; }

.reviews-page-grid { gap: 12px; margin-top: 40px; }

.reviews-page-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  transition: border-color 200ms ease;
}

.reviews-page-card:hover { border-color: var(--line-strong); }
.reviews-page-rating { order: -2; font-size: 14px; gap: 2px; }
.reviews-page-rating strong { margin-left: 8px; color: var(--muted); font-family: var(--font-label); font-size: 12px; font-weight: 500; }
.reviews-page-card p { order: -1; color: var(--text); font-size: 15.5px; font-weight: 400; line-height: 1.55; }
.reviews-page-card-head { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.reviews-page-card-head img { width: 36px; height: 36px; border-radius: 3px; }
.reviews-page-card-head span { height: 36px; grid-template-rows: auto auto; }
.reviews-page-card-head strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.reviews-page-card-head small { color: var(--muted); font-weight: 400; }
.reviews-page-empty { margin-top: 40px; }

/* ---------- Wiki ---------- */
.wiki-main { min-height: 70vh; padding: 120px 0 100px; }

.wiki-shell {
  width: var(--wrap);
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
}

.wiki-sidebar {
  top: 92px;
  gap: 1px;
  max-height: calc(100vh - 120px);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 4px 20px 4px 0;
}

.wiki-sidebar a {
  min-height: 32px;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  color: var(--muted-strong);
  font-size: 14px;
}

.wiki-sidebar a svg { display: none; }
.wiki-sidebar a:hover { padding-left: 10px; background: none; color: var(--text); }
.wiki-sidebar a[aria-current="page"] { background: var(--panel-strong); color: var(--accent); font-weight: 600; }
.wiki-sidebar a[aria-current="page"]::before { content: none; }

.wiki-nav-group {
  margin: 22px 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.wiki-nav-sub { margin-left: 14px; border-left-color: var(--line); padding-left: 6px; }

.wiki-article-wrap {
  max-width: 860px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.wiki-breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-breadcrumbs .is-current { color: var(--accent); }

.wiki-article h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.wiki-price-badge {
  border-color: var(--line-strong);
  border-radius: 3px;
  background: none;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
}

.wiki-lead {
  margin: 0 0 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.6;
}

.wiki-article h2 { margin: 48px 0 16px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.wiki-article h2 svg { display: none; }
.wiki-article h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.wiki-article li::marker { color: var(--muted); font-weight: 400; }
.wiki-article a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.wiki-article a:hover { color: var(--accent); }

.wiki-article code {
  border-color: var(--line);
  border-radius: 3px;
  background: var(--panel-strong);
  color: var(--accent-light);
  font-family: var(--font-label);
  font-size: 12.5px;
}

.wiki-cmd-table { gap: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.wiki-cmd-row { border-bottom: 1px solid var(--line); background: none; padding: 14px 0; }

.wiki-hint { border-color: var(--line); border-radius: var(--radius); background: var(--panel); }

.wiki-step-num {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-pixel-num);
  font-size: 13px;
  font-weight: 400;
}

.wiki-details, .wiki-figure { border-color: var(--line); border-radius: var(--radius); background: var(--panel); }
.wiki-details summary::after { font-family: var(--font-label); font-weight: 400; }
.wiki-recipe-scroll { border-color: var(--line); border-radius: var(--radius); }
.wiki-recipe-table th { background: var(--panel-strong); font-family: var(--font-label); font-weight: 500; }
.wiki-rules .num { color: var(--accent); font-family: var(--font-label); font-weight: 500; }

.wiki-card-grid .feature-card { min-height: 0; padding: 22px; }
.wiki-card-grid .feature-icon { display: none; }
.wiki-card-grid .feature-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.wiki-card-grid .feature-card h3::after { content: ' →'; color: var(--accent); }
.wiki-card-grid .feature-card p { color: var(--muted); }

.wiki-next-link {
  margin-top: 48px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-next-link a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  text-decoration: none;
}

.wiki-next-link a:hover { color: var(--accent); }

/* ---------- Profiles ---------- */
.profile-layout { width: min(calc(100% - var(--gutter) * 2), 1040px); }
.profile-player-layout { width: min(calc(100% - var(--gutter) * 2), 980px); }

.profile-hero-card { border-color: var(--line); box-shadow: none; }
.profile-head { border-radius: var(--radius-sm); box-shadow: none; }
.profile-player-layout .profile-head { border-radius: var(--radius-sm); }

.profile-identity h1,
.profile-player-layout .profile-identity h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.profile-badges span,
.profile-player-layout .profile-badges span {
  min-height: 26px;
  border-radius: 3px;
  padding: 0 9px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-about,
.profile-card,
.profile-stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.profile-card:hover { border-color: var(--line); }

.profile-about h2,
.profile-card h2,
.profile-stats-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.profile-about p { font-weight: 400; }

.profile-stats-row span,
.profile-stats-card .profile-facts span {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.profile-stats-row strong,
.profile-stats-card .profile-facts strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.profile-card-head > i,
.profile-card-head > svg { border-radius: var(--radius-sm); background: var(--panel-strong); }

.profile-edit-icon { border-radius: var(--radius-sm); background: var(--panel-strong); }

.profile-edit-form {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.profile-edit-form input,
.profile-edit-form textarea,
.profile-edit-form select,
.profile-form input,
.profile-form textarea { border-radius: var(--radius-sm); background: var(--panel); }

.profile-comment-item { border-color: var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.profile-comment-avatar { border-radius: 3px; }
.profile-comment-meta strong { font-family: var(--font-display); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wiki-shell { width: var(--wrap); grid-template-columns: 1fr; gap: 40px; }
  /* Article first on narrow screens; the long section list moves below it. */
  .wiki-sidebar { order: 2; position: static; max-height: none; border-right: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .wiki-article-wrap { padding: 0; }
}

@media (max-width: 760px) {
  .subpage-main,
  .reviews-page-main,
  .organizations-page-main,
  .profile-main-page { padding: 96px 0 80px; }

  .wiki-main { padding: 88px 0 72px; }
  .wiki-article-wrap { padding: 0; }

  .subpage-panel .subpage-heading,
  .reviews-page-title { margin-bottom: 28px; padding-bottom: 28px; }

  .reviews-summary-panel {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "avg" "dist";
    gap: 16px;
    padding: 28px 0;
  }

  .reviews-average > strong { font-size: 64px; }
  .reviews-page-title { margin-bottom: 0; }
}

/* Wiki overview cards are links inside the article: keep them out of the inline-link styling. */
.wiki-article a.feature-card,
.wiki-article a.feature-card:hover {
  color: var(--text);
  font-weight: inherit;
  text-decoration: none;
}
.wiki-article a.feature-card p { margin: 10px 0 0; color: var(--muted); }
.wiki-article a.feature-card h3 { margin: 0; }
