:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(12, 20, 33, 0.72);
  --panel-strong: rgba(16, 28, 45, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9ca8ba;
  --emerald: #25f2a6;
  --gold: #f6c860;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 242, 166, 0.18), transparent 26rem),
    radial-gradient(circle at 80% 5%, rgba(246, 200, 96, 0.14), transparent 22rem),
    linear-gradient(135deg, #04060b 0%, #07111f 48%, #05070d 100%);
  color: var(--text);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 30px;
  flex-wrap: wrap;
}

.brand,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(37, 242, 166, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 242, 166, 0.22), rgba(246, 200, 96, 0.12));
  color: var(--emerald);
  box-shadow: 0 0 30px rgba(37, 242, 166, 0.16);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-links .nav-link-boss-feature {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(56, 189, 248, 0.08));
  color: #bae6fd;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
  font-weight: 900;
}

.nav-links .nav-link-boss-feature::after {
  content: "Novo";
  position: absolute;
  top: -0.62rem;
  right: -0.48rem;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  color: #02111f;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.2;
}

.nav-links .nav-link-boss-feature:hover {
  border-color: rgba(186, 230, 253, 0.65);
  color: #f8fafc;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.42);
}

.nav-links .nav-link-bear-simulator {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.34rem;
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(246, 200, 96, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(246, 200, 96, 0.12));
  color: #fef3c7;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-links .nav-link-bear-simulator small,
.mobile-nav-panel .nav-link-bear-simulator small {
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  background: #f6c860;
  color: #111827;
  font-size: 0.52rem;
  font-weight: 1000;
  line-height: 1.1;
}

.nav-links .nav-link-bear-simulator:hover,
.nav-links .nav-link-bear-simulator.is-active {
  border-color: rgba(125, 211, 252, 0.7);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(246, 200, 96, 0.18));
  color: #fff;
}

.nav-links .nav-link-login,
.nav-links .nav-link-account {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(248, 250, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.nav-links .nav-link-login:hover,
.nav-links .nav-link-account:hover {
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(14, 165, 233, 0.12);
  color: #f8fafc;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-nav-toggle,
.mobile-nav-panel {
  display: none;
}

.language-switcher {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.language-switcher a.active,
.language-switcher a:hover {
  background: rgba(37, 242, 166, 0.13);
  color: var(--emerald);
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(246, 200, 96, 0.34);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.1);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(246, 200, 96, 0.08);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash-message {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.flash-message.success {
  border-color: rgba(37, 242, 166, 0.32);
  background: rgba(37, 242, 166, 0.1);
  color: var(--emerald);
}

.flash-message.error {
  border-color: rgba(255, 107, 122, 0.32);
  background: rgba(255, 107, 122, 0.1);
  color: var(--danger);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  min-height: 620px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.alliance-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c8d1df;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-panel {
  width: min(820px, 100%);
  margin-top: 34px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(2, 8, 16, 0.62);
}

.search-panel label {
  display: block;
  margin: 0 0 8px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.player-search-panel {
  display: grid;
  gap: 14px;
}

.player-search-mode {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.player-search-mode legend {
  margin: 0 0 8px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.player-search-mode-options {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.player-search-mode-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-search-mode-options label {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.player-search-mode-options input:checked + label {
  background: rgba(37, 242, 166, 0.14);
  color: var(--emerald);
}

.player-search-mode-options input:focus-visible + label {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.player-search-query-field > [hidden] {
  display: none;
}

.field-error {
  margin: 7px 6px 0;
  color: #ff9b9b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ranking-empty-state {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.58);
}

.ranking-empty-state strong {
  color: #f8fafc;
  font-size: 1rem;
}

.ranking-empty-state p {
  margin: 0;
  color: var(--muted);
}

.ranking-empty-state .button {
  justify-self: start;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.36fr) auto;
  gap: 10px;
  align-items: end;
}

.player-search-results-page {
  display: grid;
  gap: 28px;
  padding: 28px 0 72px;
}

.player-lookup-limit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(8px);
}

.player-lookup-limit-modal {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(77, 225, 183, 0.38);
  border-radius: 8px;
  background: #0d1726;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  text-align: center;
}

.player-lookup-limit-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid rgba(77, 225, 183, 0.4);
  border-radius: 50%;
  background: rgba(77, 225, 183, 0.1);
  font-size: 24px;
}

.player-lookup-limit-modal h1 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.player-lookup-limit-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.player-lookup-limit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 540px) {
  .player-lookup-limit-modal {
    padding: 24px 18px;
  }

  .player-lookup-limit-actions {
    flex-direction: column;
  }

  .player-lookup-limit-actions .button {
    width: 100%;
  }
}

.player-search-results-hero {
  margin: 0;
}

.player-search-results-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.player-search-results-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.player-search-submitted-query {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-search-submitted-query strong {
  color: var(--text);
}

.player-search-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.player-search-result-card {
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
}

.player-search-result-card__top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.player-search-result-card__top img,
.player-search-result-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.player-search-result-card__top img {
  display: block;
  object-fit: cover;
}

.player-search-result-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 242, 166, 0.13);
  color: var(--emerald);
  font-weight: 900;
}

.player-search-result-card h2 {
  margin: 0 0 5px;
  font-size: 1.08rem;
}

.player-search-result-card__top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.player-search-link-state {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.player-search-link-state.is-linked {
  border-color: rgba(37, 242, 166, 0.3);
  color: var(--emerald);
}

.player-search-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.player-search-result-stats div {
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.player-search-result-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.player-search-result-stats dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.player-search-again {
  margin: 0;
}

.player-search-again h2 {
  margin-top: 0;
}

.field-group {
  min-width: 0;
}

.kingdom-field input {
  text-align: center;
}

input,
button,
.button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: 1px solid transparent;
}

select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  outline: 1px solid transparent;
}

select {
  min-height: 52px;
  padding: 0 44px 0 18px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 22px) 22px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 15px) 22px / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.08);
}

select option {
  background: #111a28;
  color: var(--text);
}

input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid rgba(37, 242, 166, 0.55);
  border-radius: 6px;
  accent-color: var(--emerald);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  outline-color: rgba(37, 242, 166, 0.55);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--emerald), #8fffd3);
  color: #02130d;
  cursor: pointer;
  font-weight: 900;
}

.button.secondary {
  margin-top: 16px;
  border: 1px solid rgba(246, 200, 96, 0.35);
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
}

.hero-dashboard {
  padding: 28px;
  background: linear-gradient(145deg, rgba(16, 28, 45, 0.9), rgba(11, 17, 30, 0.62));
}

.hero-dashboard p,
.hero-dashboard strong {
  display: block;
  margin: 0;
}

.hero-dashboard strong {
  margin-top: 8px;
  font-size: 2.7rem;
}

.home-boss-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 640px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(56, 189, 248, 0.42);
  background:
    radial-gradient(circle at 74% 18%, rgba(56, 189, 248, 0.24), transparent 16rem),
    radial-gradient(circle at 18% 86%, rgba(246, 200, 96, 0.12), transparent 14rem),
    linear-gradient(145deg, rgba(8, 22, 40, 0.94), rgba(5, 9, 19, 0.8));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 44px rgba(56, 189, 248, 0.18);
}

.home-boss-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.52;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(125, 211, 252, 0.45) 0 1px, transparent 1.5px);
  background-position: 0 0, 32px 44px;
  background-size: 74px 74px, 98px 98px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.home-boss-card__frost {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 28%, rgba(56, 189, 248, 0.08) 58%, transparent),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07), transparent 42%);
  pointer-events: none;
}

.home-boss-card__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  align-self: start;
  padding: 14px 0 0;
}

.home-boss-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-boss-card__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.9);
}

.home-boss-card h2 {
  max-width: 100%;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.9);
}

.home-boss-card__content p {
  margin: 14px 0 0;
  color: #c7d8ea;
  font-size: 0.98rem;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(2, 6, 23, 0.85);
}

.home-boss-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.home-boss-card__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 45%, #38bdf8 100%);
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #02111f;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.home-boss-card__primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 34px rgba(125, 211, 252, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-boss-card__art-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  margin: -8px -18px -6px;
  pointer-events: none;
}

.home-boss-card__art-wrap::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 4%;
  left: 14%;
  height: 34%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.24), transparent 68%);
  filter: blur(12px);
}

.home-boss-card__art {
  position: relative;
  z-index: 1;
  width: min(94%, 350px);
  max-height: 330px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 32px rgba(56, 189, 248, 0.72))
    drop-shadow(0 28px 54px rgba(0, 0, 0, 0.5));
  animation: homeBossFloat 4.5s ease-in-out infinite;
  pointer-events: none;
}

.home-boss-card__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
  margin-top: 28px;
}

.home-boss-card__stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(12px);
}

.home-boss-card__stats strong,
.home-boss-card__stats span {
  display: block;
}

.home-boss-card__stats strong {
  color: #e0f2fe;
  font-size: 1.15rem;
  font-weight: 900;
}

.home-boss-card__stats span {
  margin-top: 4px;
  color: #93a9bd;
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes homeBossFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 28px var(--emerald);
}

.mini-grid,
.feature-grid,
.kpi-grid {
  display: grid;
  gap: 16px;
}

.mini-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.mini-grid span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.mini-grid b {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.panel,
.kpi-card,
.profile-card,
.alliance-hero {
  padding: 24px;
}

.feature-card h2,
.panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p,
.muted,
.alliance-hero p,
.profile-card p {
  color: var(--muted);
  line-height: 1.65;
}

.compact-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.compact-list li {
  color: var(--muted);
}

.compact-list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.compact-list span {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.compact-player,
.ranking-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.ranking-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ranking-position {
  width: 1.75rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  text-align: right;
}

.ranking-player-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ranking-player-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ranking-tg-cell {
  width: 1%;
  white-space: nowrap;
}

.ranking-tg-empty {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  color: var(--muted);
  font-weight: 900;
}

.ranking-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.ranking-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
}

.ranking-player-info {
  min-width: 0;
}

.ranking-player-name {
  color: var(--text);
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-player-id {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-player-avatar,
.player-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-player-avatar-placeholder,
.player-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
  background: rgba(12, 20, 33, 0.92);
}

.ranking-player-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.ranking-search-count {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  color: #d1fae5;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.16);
}

.stove-level-icon {
  width: 22px;
  height: 22px;
  margin-left: 6px;
  vertical-align: middle;
  object-fit: contain;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 54px 0 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.global-top-section {
  margin-top: 22px;
}

.global-top-heading {
  align-items: flex-start;
}

.global-top-source-note {
  max-width: 740px;
  margin-top: 8px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.92rem;
}

.global-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.global-top-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 242, 166, 0.24);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.1);
  color: #d1fae5;
  font-size: 0.85rem;
  font-weight: 900;
}

.global-top-cta {
  margin-top: 0;
}

.global-top-scroll {
  display: grid;
  grid-auto-columns: minmax(245px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.global-player-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: 330px;
  padding: 18px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.global-player-card::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(37, 242, 166, 0.18), transparent 66%);
  pointer-events: none;
}

.global-player-card:hover {
  border-color: rgba(37, 242, 166, 0.36);
  box-shadow: 0 24px 72px rgba(37, 242, 166, 0.1), var(--shadow);
  transform: translateY(-3px);
}

.global-player-card:focus-visible {
  outline: 3px solid rgba(37, 242, 166, 0.72);
  outline-offset: 3px;
}

.global-player-card--gold {
  border-color: rgba(246, 200, 96, 0.42);
  background:
    radial-gradient(circle at 20% 0%, rgba(246, 200, 96, 0.2), transparent 14rem),
    rgba(10, 18, 31, 0.78);
}

.global-player-card--silver {
  border-color: rgba(226, 232, 240, 0.3);
}

.global-player-card--bronze {
  border-color: rgba(251, 146, 60, 0.3);
}

.global-player-rank {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(246, 200, 96, 0.34);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.global-player-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
}

.global-player-avatar {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 6px rgba(37, 242, 166, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.global-player-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 242, 166, 0.3), transparent 42%),
    rgba(12, 20, 33, 0.94);
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 900;
}

.global-player-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.global-player-name {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.global-player-meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.global-player-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.global-player-stats strong {
  color: #d1fae5;
  font-size: 1.2rem;
  font-weight: 900;
}

.global-player-stove {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 900;
}

.global-player-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid rgba(37, 242, 166, 0.28);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.1);
  color: #d1fae5;
  font-weight: 900;
}

.global-top-empty {
  padding: 24px;
  border-color: rgba(37, 242, 166, 0.18);
}

.global-top-empty h3 {
  margin: 0;
  font-size: 1.18rem;
}

.global-top-empty p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.global-ranking-page {
  margin-top: 28px;
}

.global-ranking-list {
  display: grid;
  gap: 12px;
}

.global-ranking-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.global-ranking-row:hover {
  border-color: rgba(37, 242, 166, 0.32);
  box-shadow: 0 18px 54px rgba(37, 242, 166, 0.08), var(--shadow);
  transform: translateY(-2px);
}

.global-ranking-row:focus-visible {
  outline: 3px solid rgba(37, 242, 166, 0.72);
  outline-offset: 3px;
}

.global-ranking-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.global-ranking-main,
.global-ranking-power {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.global-ranking-main strong {
  overflow-wrap: anywhere;
}

.global-ranking-main span,
.global-ranking-power span {
  color: var(--muted);
  font-size: 0.88rem;
}

.global-ranking-power {
  justify-items: end;
  text-align: right;
}

.global-ranking-power strong {
  color: #d1fae5;
  font-size: 1.1rem;
}

.home-latest-news {
  margin-top: 18px;
}

.home-news-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-news-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(37, 242, 166, 0.13), transparent 62%);
  pointer-events: none;
}

.home-news-card:hover {
  border-color: rgba(37, 242, 166, 0.34);
  box-shadow: 0 28px 86px rgba(37, 242, 166, 0.12), var(--shadow);
  transform: translateY(-4px);
}

.news-image-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.home-news-card img {
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.14), rgba(37, 242, 166, 0.08)),
    rgba(7, 10, 14, 0.72);
  transition: transform 0.28s ease;
}

.home-news-card:hover img {
  transform: scale(1.035);
}

.home-news-card h3 {
  font-size: 1.18rem;
  line-height: 1.35;
}

.home-news-card p {
  margin: 0;
}

.news-read-link {
  width: fit-content;
  min-height: 42px;
  margin-top: 0;
  border-radius: 14px;
}

.latest-guides-section {
  margin-top: 4rem;
}

.latest-guides-section .section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.latest-guides-section .section-header-row h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.latest-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.latest-guide-card,
.latest-guide-empty {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.latest-guide-empty {
  padding: 1.25rem;
}

.latest-guide-image-link {
  display: block;
}

.latest-guide-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.latest-guide-body {
  padding: 1rem;
}

.latest-guide-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.latest-guide-body h3 a {
  color: inherit;
  text-decoration: none;
}

.latest-guide-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.latest-guide-read-link,
.view-all-link {
  color: var(--emerald);
  font-weight: 800;
  text-decoration: none;
}

.bear-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 6vw, 46px);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.16), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(246, 200, 96, 0.18), transparent 18rem),
    rgba(12, 20, 33, 0.72);
}

.bear-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.bear-hero-copy > p:not(.eyebrow) {
  max-width: 780px;
  margin: 20px 0 0;
  color: #cbd7e8;
  font-size: clamp(1rem, 2.5vw, 1.24rem);
  line-height: 1.65;
}

.bear-hero-cta {
  display: grid;
  gap: 6px;
  max-width: 640px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(37, 242, 166, 0.24);
  border-radius: 18px;
  background: rgba(37, 242, 166, 0.08);
}

.bear-hero-cta span {
  color: var(--emerald);
  font-weight: 900;
}

.bear-hero-cta small {
  color: var(--muted);
  line-height: 1.55;
}

.bear-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 10px;
  align-items: end;
  min-height: 170px;
}

.bear-hero-panel span,
.bear-hero-panel strong {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
}

.bear-hero-panel strong {
  min-height: 168px;
  border-color: rgba(37, 242, 166, 0.42);
  background: linear-gradient(145deg, rgba(37, 242, 166, 0.22), rgba(246, 200, 96, 0.1));
  color: var(--emerald);
  font-size: 1.35rem;
  box-shadow: 0 18px 54px rgba(37, 242, 166, 0.14);
}

.bear-intro {
  margin-top: 20px;
  padding: 20px;
}

.bear-intro p {
  margin: 0;
  color: #cbd7e8;
  line-height: 1.75;
}

.bear-optimizer-grid,
.bear-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.bear-form {
  display: grid;
  gap: 18px;
}

.bear-form label,
.bear-copy-box label {
  color: var(--muted);
  font-weight: 800;
}

.bear-form input {
  margin-top: 8px;
}

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

.bear-actions button {
  flex: 1 1 180px;
}

.bear-actions button.secondary {
  border: 1px solid rgba(246, 200, 96, 0.35);
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
}

.bear-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 122, 0.34);
  border-radius: 14px;
  background: rgba(255, 107, 122, 0.1);
  color: var(--danger);
  font-weight: 800;
}

.bear-result-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.bear-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.bear-result-row span {
  color: var(--muted);
  font-weight: 800;
}

.bear-result-row strong {
  color: var(--text);
  font-size: clamp(1.35rem, 5vw, 2rem);
  text-align: right;
}

.bear-result-row em {
  grid-column: 1 / -1;
  font-style: normal;
  font-weight: 900;
}

.bear-result-row.infantry em {
  color: #7dd3fc;
}

.bear-result-row.cavalry em {
  color: var(--gold);
}

.bear-result-row.archers em {
  color: var(--emerald);
}

.bear-stack {
  display: flex;
  overflow: hidden;
  height: 24px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.66);
}

.bear-stack span {
  min-width: 4px;
  transition: width 0.24s ease;
}

.bear-stack .infantry {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
}

.bear-stack .cavalry {
  background: linear-gradient(90deg, #f59e0b, #f6c860);
}

.bear-stack .archers {
  background: linear-gradient(90deg, #10b981, #25f2a6);
}

.bear-copy-box {
  display: grid;
  gap: 10px;
}

.bear-copy-box textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.bear-explanation summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
}

.bear-explanation p,
.bear-warning p,
.bear-credit {
  color: var(--muted);
  line-height: 1.7;
}

.formula-card {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(37, 242, 166, 0.24);
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.54);
  color: var(--emerald);
  font-weight: 900;
}

.bear-warning {
  border-color: rgba(246, 200, 96, 0.26);
}

.bear-warning p:last-child {
  margin-bottom: 0;
}

.bear-credit {
  margin-top: 18px;
  text-align: center;
}

.bear-credit a {
  color: var(--emerald);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 860px) {
  .bear-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
  }

  .bear-optimizer-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: start;
  }

  .bear-info-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }
}

.featured {
  border-color: rgba(37, 242, 166, 0.36);
  box-shadow: 0 24px 80px rgba(37, 242, 166, 0.12);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 900;
}

.page-hero.compact {
  padding-top: 24px;
}

.profile-card,
.alliance-hero,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.profile-photo {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(92px, 16vw, 132px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 200, 96, 0.46);
  border-radius: 30px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(246, 200, 96, 0.18), rgba(37, 242, 166, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.06),
    0 0 54px rgba(246, 200, 96, 0.14);
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(37, 242, 166, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-shadow: 0 0 24px rgba(246, 200, 96, 0.28);
}

.profile-card h1,
.alliance-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.profile-power {
  min-width: 180px;
  text-align: right;
}

.search-context {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 8px;
  padding: 0 11px;
  border: 1px solid rgba(37, 242, 166, 0.24);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.09);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-levels > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(246, 200, 96, 0.3);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.09);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.official-stove-badge {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.24rem 0.68rem;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 251, 255, 0.16), transparent 60%),
    rgba(7, 18, 32, 0.74);
  color: #d9fbff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.06);
}

.ks-tg-badge {
  vertical-align: middle;
}

.ks-tg-badge--compact {
  min-height: 30px;
  padding: 0.16rem 0.52rem;
  font-size: 0.78rem;
}

.ks-tg-badge--profile {
  min-height: 36px;
  padding: 0.24rem 0.68rem;
  font-size: 0.84rem;
}

.ranking-tg-cell .ks-tg-badge,
.ranking-player-meta .ks-tg-badge {
  min-height: 28px;
  padding: 0.12rem 0.5rem;
  font-size: 0.76rem;
}

.official-stove-badge.compact {
  min-height: 30px;
  padding: 0.16rem 0.52rem;
  font-size: 0.78rem;
}

.official-stove-badge img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.32));
}

.official-stove-badge.compact img {
  width: 28px;
  height: 28px;
}

.ks-tg-badge--compact .ks-tg-badge__icon {
  width: 24px;
  height: 24px;
}

.ks-tg-badge--profile .ks-tg-badge__icon {
  width: 34px;
  height: 34px;
}

.ranking-tg-cell .ks-tg-badge__icon,
.ranking-player-meta .ks-tg-badge__icon {
  width: 24px;
  height: 24px;
}

.official-stove-badge span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-power span,
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-power strong,
.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.kpi-card.accent strong {
  color: var(--emerald);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.alliance-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.alliance-hero-premium {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(24px, 5vw, 46px);
  border-color: rgba(37, 242, 166, 0.24);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(17, 29, 48, 0.92), rgba(4, 8, 16, 0.72)),
    radial-gradient(circle at 88% 24%, rgba(246, 200, 96, 0.22), transparent 18rem);
}

.alliance-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    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: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.alliance-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(96px, 16vw, 148px);
  aspect-ratio: 1;
  margin-right: clamp(18px, 4vw, 34px);
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.5);
  border-radius: 32px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(246, 200, 96, 0.2), rgba(37, 242, 166, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.06),
    0 0 70px rgba(246, 200, 96, 0.18);
}

.alliance-emblem::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(37, 242, 166, 0.36);
  border-radius: 24px;
}

.alliance-emblem span {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-shadow: 0 0 28px rgba(246, 200, 96, 0.32);
}

.alliance-hero-copy,
.alliance-hero-side {
  position: relative;
  z-index: 1;
}

.alliance-hero-copy {
  max-width: 760px;
}

.alliance-hero-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: #cbd7e8;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.alliance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.alliance-meta span,
.live-chip,
.gold-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e2ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-chip {
  border-color: rgba(37, 242, 166, 0.34);
  color: var(--emerald);
}

.gold-badge {
  border-color: rgba(246, 200, 96, 0.32);
  color: var(--gold);
}

.alliance-hero-side {
  display: grid;
  justify-items: end;
  gap: 14px;
  min-width: 190px;
}

.alliance-kpis {
  perspective: 900px;
}

.alliance-kpi {
  position: relative;
  overflow: hidden;
  animation: kpi-rise 0.7s ease both;
}

.alliance-kpi:nth-child(2) {
  animation-delay: 0.08s;
}

.alliance-kpi:nth-child(3) {
  animation-delay: 0.16s;
}

.alliance-kpi:nth-child(4) {
  animation-delay: 0.24s;
}

.alliance-kpi::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 84px;
  background: radial-gradient(circle, rgba(37, 242, 166, 0.16), transparent 62%);
  transition: transform 0.28s ease;
}

.alliance-kpi:hover::after {
  transform: translateY(-16px);
}

.alliance-kpi i {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  box-shadow: 0 0 24px rgba(37, 242, 166, 0.38);
}

.alliance-kpi small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.podium-section {
  margin: 24px 0;
  padding: 24px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(2, 8, 16, 0.52);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: -42% -18% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(246, 200, 96, 0.2), transparent 64%);
}

.podium-1 {
  min-height: 280px;
  border-color: rgba(246, 200, 96, 0.42);
  box-shadow: 0 24px 80px rgba(246, 200, 96, 0.11);
}

.podium-2,
.podium-3 {
  min-height: 242px;
}

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

.podium-avatar {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  margin: 22px 0;
  place-items: center;
  border: 1px solid rgba(37, 242, 166, 0.42);
  border-radius: 20px;
  background: rgba(37, 242, 166, 0.1);
  color: var(--emerald);
  font-weight: 900;
}

.podium-card h3,
.podium-card strong,
.podium-card small {
  position: relative;
  display: block;
  margin: 0;
}

.podium-card h3 {
  font-size: 1.05rem;
}

.podium-card strong {
  margin-top: 10px;
  font-size: 1.6rem;
}

.podium-card small {
  margin-top: 6px;
  color: var(--muted);
}

.member-power-list {
  display: grid;
  gap: 14px;
}

.member-power-row {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.member-power-heading {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.member-power-heading span {
  color: var(--gold);
  font-weight: 900;
}

.member-power-heading em {
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

.member-power-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.alliance-source-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--emerald);
  background: rgba(37, 242, 166, 0.08);
  color: #d9e9e3;
  font-size: 0.88rem;
  font-weight: 700;
}

.podium-avatar-image {
  object-fit: cover;
}

.alliance-roster-section {
  margin: 40px 0;
}

.alliance-roster-heading {
  align-items: end;
  margin-bottom: 18px;
}

.alliance-roster-heading p {
  max-width: 760px;
  color: var(--muted);
}

.alliance-roster-summary {
  display: grid;
  min-width: 180px;
  justify-items: end;
}

.alliance-roster-summary strong {
  color: var(--emerald);
  font-size: 2rem;
}

.alliance-roster-summary span,
.alliance-roster-summary small {
  color: var(--muted);
  font-size: 0.8rem;
}

.alliance-roster-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 17, 30, 0.76);
}

.alliance-roster-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.alliance-roster-filters label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.alliance-roster-filters input,
.alliance-roster-filters select,
.alliance-roster-filters button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.alliance-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alliance-roster-card {
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(37, 242, 166, 0.18);
  border-radius: 8px;
  background: rgba(8, 17, 30, 0.82);
}

.alliance-roster-card.is-inactive {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.72;
}

.alliance-roster-card-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.alliance-roster-card-top img,
.alliance-roster-avatar-placeholder {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(37, 242, 166, 0.32);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(37, 242, 166, 0.1);
  color: var(--emerald);
  font-weight: 900;
}

.alliance-roster-card h3,
.alliance-roster-card p {
  overflow-wrap: anywhere;
  margin: 0;
}

.alliance-roster-card h3 {
  font-size: 1rem;
}

.alliance-roster-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.alliance-roster-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.alliance-roster-stats div {
  min-width: 0;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.alliance-roster-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.alliance-roster-stats dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 900;
}

.alliance-roster-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.alliance-roster-card-footer small {
  color: var(--muted);
}

.roster-link-status {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.roster-link-status.is-linked {
  color: var(--emerald);
}

.alliance-roster-empty {
  padding: 28px 0;
  text-align: center;
}

.power-track {
  overflow: hidden;
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.power-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  box-shadow: 0 0 18px rgba(37, 242, 166, 0.32);
  animation: power-fill 0.9s ease both;
}

.growth-panel .growth-row {
  border-color: rgba(37, 242, 166, 0.11);
}

.alliance-warning-panel {
  border-color: rgba(255, 107, 122, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 107, 122, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(10, 14, 22, 0.72);
}

.yearbook-page {
  display: grid;
  gap: 28px;
  padding-bottom: 42px;
}

.yearbook-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(24px, 5vw, 52px);
  border-color: rgba(246, 200, 96, 0.3);
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(16, 25, 42, 0.96), rgba(5, 9, 17, 0.78));
}

.yearbook-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.yearbook-hero-card,
.yearbook-cover {
  position: relative;
  z-index: 1;
}

.yearbook-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
}

.yearbook-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d3deed;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.yearbook-pill-row,
.yearbook-actions,
.featured-mvp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yearbook-pill-row {
  margin-top: 24px;
}

.yearbook-pill,
.award-badge,
.featured-mvp-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(246, 200, 96, 0.28);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.1);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.yearbook-actions {
  margin-top: 28px;
}

.yearbook-actions .button.secondary {
  margin-top: 0;
}

.yearbook-cover {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
}

.yearbook-cover-frame {
  display: grid;
  overflow: hidden;
  width: min(100%, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.36);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(246, 200, 96, 0.2), rgba(37, 242, 166, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 44px rgba(255, 255, 255, 0.06);
}

.yearbook-cover-crown {
  font-size: clamp(3rem, 8vw, 5rem);
}

.yearbook-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yearbook-cover strong {
  color: var(--gold);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
}

.yearbook-cover small {
  color: var(--muted);
  font-weight: 900;
}

.featured-mvp-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border-color: rgba(37, 242, 166, 0.28);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.14), rgba(246, 200, 96, 0.08)),
    rgba(8, 14, 24, 0.84);
}

.yearbook-king-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border-color: rgba(246, 200, 96, 0.42);
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.2), rgba(37, 242, 166, 0.08)),
    rgba(8, 14, 24, 0.86);
}

.yearbook-king-crown {
  display: grid;
  width: clamp(64px, 12vw, 108px);
  height: clamp(64px, 12vw, 108px);
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.42);
  border-radius: 28px;
  background: rgba(246, 200, 96, 0.12);
  font-size: clamp(2rem, 5vw, 3.5rem);
  box-shadow: inset 0 0 34px rgba(246, 200, 96, 0.12);
}

.featured-mvp-avatar,
.award-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(246, 200, 96, 0.24), rgba(37, 242, 166, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.featured-mvp-avatar {
  width: clamp(96px, 18vw, 152px);
  height: clamp(96px, 18vw, 152px);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.featured-mvp-avatar img,
.award-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.featured-mvp-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
}

.featured-mvp-meta {
  margin: 10px 0 16px;
  color: var(--gold);
  font-weight: 900;
}

.featured-mvp-copy p:not(.eyebrow):not(.featured-mvp-meta) {
  max-width: 720px;
  color: #d7e2f1;
  font-size: 1.05rem;
}

.yearbook-section {
  display: grid;
  gap: 18px;
}

.yearbook-whales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yearbook-whale-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-height: 310px;
  padding: 22px;
  border-color: rgba(37, 242, 166, 0.24);
  background:
    linear-gradient(150deg, rgba(37, 242, 166, 0.12), rgba(246, 200, 96, 0.07)),
    rgba(8, 14, 24, 0.82);
}

.yearbook-whale-avatar {
  width: 76px;
  height: 76px;
}

.yearbook-whale-card h3,
.yearbook-whale-card p {
  margin: 0;
}

.yearbook-whale-card h3 {
  font-size: 1.3rem;
}

.yearbook-whale-card strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.yearbook-whale-card p:not(.featured-mvp-meta) {
  color: #c8d4e4;
  line-height: 1.5;
}

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

.award-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 20px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.award-card-top,
.award-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.award-card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.7rem;
}

.award-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.award-winner-row {
  justify-content: flex-start;
}

.award-avatar {
  width: 56px;
  height: 56px;
}

.award-winner-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.award-winner {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.award-description {
  margin: 0;
  color: #c8d4e4;
  line-height: 1.55;
}

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

.fun-stat-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.fun-stat-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 242, 166, 0.1);
  font-size: 1.45rem;
}

.fun-stat-card h3,
.fun-stat-card p {
  margin: 0;
}

.fun-stat-card h3 {
  font-size: 0.95rem;
}

.fun-stat-card strong {
  display: block;
  margin: 6px 0;
  color: var(--gold);
  font-size: 1.12rem;
}

.fun-stat-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.yearbook-empty-state {
  padding: 28px;
  text-align: center;
}

.yearbook-empty-state h3 {
  margin: 0 0 8px;
}

.yearbook-empty-state p {
  margin: 0;
  color: var(--muted);
}

.yearbook-landing-page {
  display: grid;
  gap: 32px;
  padding-bottom: 48px;
}

.yearbook-landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  overflow: hidden;
  min-height: 500px;
  padding: clamp(28px, 6vw, 64px);
  border-color: rgba(246, 200, 96, 0.34);
  background:
    radial-gradient(circle at 80% 20%, rgba(246, 200, 96, 0.2), transparent 32%),
    radial-gradient(circle at 16% 82%, rgba(37, 242, 166, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(16, 25, 42, 0.97), rgba(5, 9, 17, 0.82));
}

.yearbook-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.yearbook-landing-hero-content,
.yearbook-landing-cover {
  position: relative;
  z-index: 1;
}

.yearbook-landing-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.yearbook-landing-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--gold);
  font-size: clamp(1.14rem, 2vw, 1.45rem);
  font-weight: 900;
}

.yearbook-landing-hero-content p:not(.eyebrow):not(.yearbook-landing-subtitle) {
  max-width: 760px;
  color: #d7e2f1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.yearbook-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.yearbook-landing-actions .button.secondary {
  margin-top: 0;
}

.yearbook-landing-cover {
  display: grid;
  place-items: center;
}

.yearbook-landing-cover-card {
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(246, 200, 96, 0.38);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(246, 200, 96, 0.2), rgba(37, 242, 166, 0.08)),
    rgba(255, 255, 255, 0.06);
  text-align: center;
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, 0.06),
    0 28px 90px rgba(0, 0, 0, 0.28);
}

.yearbook-landing-cover-card span {
  font-size: clamp(3rem, 8vw, 5rem);
}

.yearbook-landing-cover-card strong {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.yearbook-landing-cover-card small {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.35;
}

.yearbook-landing-section {
  display: grid;
  gap: 18px;
}

.yearbook-explainer-grid,
.yearbook-alliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yearbook-explainer-card,
.yearbook-sample-card,
.yearbook-alliance-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.yearbook-explainer-card,
.yearbook-alliance-card {
  border-color: rgba(246, 200, 96, 0.2);
  background:
    linear-gradient(150deg, rgba(246, 200, 96, 0.1), rgba(37, 242, 166, 0.06)),
    rgba(8, 14, 24, 0.82);
}

.yearbook-explainer-card span,
.yearbook-sample-card span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.28);
  border-radius: 18px;
  background: rgba(246, 200, 96, 0.1);
  font-size: 1.7rem;
}

.yearbook-explainer-card h3,
.yearbook-sample-card h3,
.yearbook-alliance-card h3 {
  margin: 0;
}

.yearbook-explainer-card p,
.yearbook-sample-card p,
.yearbook-alliance-card p {
  margin: 0;
  color: #c8d4e4;
  line-height: 1.58;
}

.yearbook-sample-awards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.yearbook-sample-card {
  min-height: 280px;
  border-color: rgba(37, 242, 166, 0.2);
  background:
    linear-gradient(150deg, rgba(37, 242, 166, 0.1), rgba(246, 200, 96, 0.07)),
    rgba(8, 14, 24, 0.82);
}

.yearbook-directory-section {
  scroll-margin-top: 120px;
}

.yearbook-alliance-card {
  min-height: 290px;
  overflow: hidden;
  padding: 0;
}

.yearbook-alliance-card > div:not(.yearbook-alliance-image-link):not(.yearbook-alliance-image):not(.yearbook-alliance-image-placeholder),
.yearbook-alliance-card > p,
.yearbook-alliance-card > .yearbook-alliance-stats,
.yearbook-alliance-card > .button {
  margin-right: 22px;
  margin-left: 22px;
}

.yearbook-alliance-card > div:not(.yearbook-alliance-image-link):not(.yearbook-alliance-image):not(.yearbook-alliance-image-placeholder) {
  margin-top: 20px;
}

.yearbook-alliance-card > .button {
  margin-bottom: 22px;
}

.yearbook-alliance-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 200, 96, 0.18);
  text-decoration: none;
}

.yearbook-alliance-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.yearbook-alliance-image-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(246, 200, 96, 0.18), rgba(37, 242, 166, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: var(--gold);
  text-align: center;
}

.yearbook-alliance-image-placeholder span {
  font-size: 2.3rem;
}

.yearbook-alliance-image-placeholder strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.yearbook-alliance-meta {
  color: var(--gold) !important;
  font-weight: 900;
}

.yearbook-alliance-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.yearbook-alliance-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(246, 200, 96, 0.24);
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.09);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.yearbook-alliance-card .button {
  justify-self: start;
  margin-top: 4px;
}

.yearbook-demo-grid .yearbook-alliance-card {
  opacity: 0.86;
}

.yearbook-cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  border-color: rgba(246, 200, 96, 0.3);
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.14), rgba(37, 242, 166, 0.08)),
    rgba(8, 14, 24, 0.86);
}

.yearbook-cta-section h2,
.yearbook-cta-section p {
  margin: 0;
}

.yearbook-cta-section p:not(.eyebrow) {
  max-width: 720px;
  color: #d7e2f1;
}

.yearbook-awards-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.yearbook-admin-section {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.yearbook-award-admin-card {
  display: grid;
  gap: 14px;
}

.yearbook-award-admin-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.yearbook-award-admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.yearbook-awards-admin-actions {
  grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {
  .award-card:hover {
    transform: translateY(-6px);
    border-color: rgba(246, 200, 96, 0.42);
    box-shadow: 0 24px 70px rgba(246, 200, 96, 0.13);
  }
}

.warning-count {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

@keyframes kpi-rise {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes power-fill {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.warning-panel {
  grid-column: 1 / -1;
}

.tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(18, 29, 47, 0.9), rgba(6, 10, 18, 0.74));
}

.tool-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1;
}

.tool-hero p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.65;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.last-updated {
  margin-top: 12px;
  color: var(--gold) !important;
  font-weight: 800;
}

.codes-grid,
.status-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.status-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}

.code-list {
  display: grid;
  gap: 14px;
}

.code-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 242, 166, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.08), transparent),
    rgba(255, 255, 255, 0.04);
}

.code-card.expired {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.7;
}

.codes-panel.expired {
  grid-column: 1 / -1;
}

.code-card span,
.code-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.code-card strong {
  display: block;
  margin: 6px 0;
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.copy-code-button {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-badge.active {
  border: 1px solid rgba(37, 242, 166, 0.35);
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.status-badge.expired {
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
}

.status-badge.warning {
  border: 1px solid rgba(246, 200, 96, 0.4);
  background: rgba(246, 200, 96, 0.14);
  color: var(--gold);
}

.admin-profile-progress {
  display: grid;
  width: 120px;
  gap: 0.35rem;
}

.admin-profile-progress__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  line-height: 1;
}

.admin-profile-progress__label strong {
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 1000;
}

.admin-profile-progress__label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-profile-progress__bar {
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-profile-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 107, 122, 0.24);
}

.admin-profile-progress--medium .admin-profile-progress__fill {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(246, 200, 96, 0.24);
}

.admin-profile-progress--good .admin-profile-progress__fill {
  background: #7dd3fc;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.24);
}

.admin-profile-progress--complete .admin-profile-progress__fill {
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(37, 242, 166, 0.24);
}

.admin-profile-progress--complete .admin-profile-progress__label span {
  color: var(--emerald);
}

.admin-charm-summary {
  display: grid;
  gap: 0.2rem;
  min-width: 96px;
}

.admin-charm-summary span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  color: #d7fbff;
  background: rgba(8, 20, 38, 0.72);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-titan-status {
  display: grid;
  min-width: 150px;
  gap: 0.45rem;
}

.admin-titan-status .status-badge {
  margin-top: 0;
}

.admin-titan-stats {
  display: grid;
  gap: 0.16rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-titan-moderation {
  position: relative;
}

.admin-titan-moderation summary {
  width: fit-content;
  cursor: pointer;
  color: #d7fbff;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-titan-moderation form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.86);
}

.admin-titan-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-titan-moderation textarea {
  min-width: 180px;
  min-height: 68px;
  resize: vertical;
}

.admin-titan-moderation small {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-user-email-form textarea {
  min-height: 260px;
}

.admin-email-preview {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-email-preview strong {
  color: #f8fafc;
}

.admin-email-preview pre {
  overflow: auto;
  max-height: 320px;
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
}

.admin-email-preview__image {
  display: block;
  width: min(100%, 640px);
  border-radius: 12px;
}

.admin-email-preview__button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 22px;
  color: #06111f;
  background: #48f0a6;
  font-weight: 1000;
  text-decoration: none;
}

.admin-email-preview small {
  color: var(--muted);
  font-weight: 800;
}

.admin-campaign-actions {
  flex-wrap: wrap;
  align-items: center;
}

.admin-campaign-actions form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
}

.admin-campaign-test-form {
  min-width: min(100%, 420px);
}

.admin-campaign-test-form input {
  min-width: 220px;
}

.muted-text {
  color: var(--muted);
  font-weight: 750;
}

.table-wrap small {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 720px) {
  .admin-campaign-actions,
  .admin-campaign-actions form {
    align-items: stretch;
    width: 100%;
  }

  .admin-campaign-actions form,
  .admin-campaign-test-form input {
    width: 100%;
  }
}

.subscribe-panel {
  grid-column: 1 / -1;
  border-color: rgba(37, 242, 166, 0.2);
}

.subscribe-panel[data-web-push-widget] {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.subscribe-panel[data-web-push-state="subscribed"] {
  border-color: rgba(37, 242, 166, 0.42);
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 242, 166, 0.13), transparent 14rem),
    var(--panel);
  box-shadow: 0 18px 46px rgba(37, 242, 166, 0.08);
}

.subscribe-panel[data-web-push-state="blocked"],
.subscribe-panel[data-web-push-state="error"] {
  border-color: rgba(255, 107, 122, 0.32);
}

.subscribe-panel[data-web-push-widget] button:disabled {
  cursor: default;
  opacity: 1;
}

.subscribe-panel[data-web-push-widget] button.is-success:disabled {
  border: 1px solid rgba(37, 242, 166, 0.4);
  background: rgba(37, 242, 166, 0.15);
  color: #baf7dd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.subscribe-panel[data-web-push-widget] button.is-blocked:disabled {
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.12);
  color: #ffd3d8;
}

.privacy-note.success {
  color: var(--emerald);
}

.gift-titan-cta {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 86% 18%, rgba(125, 211, 252, 0.2), transparent 15rem),
    linear-gradient(135deg, rgba(5, 18, 33, 0.94), rgba(8, 27, 45, 0.82));
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.28), inset 0 0 28px rgba(255, 255, 255, 0.035);
}

.gift-titan-cta__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.gift-titan-cta__eyebrow,
.gift-titan-cta__title,
.gift-titan-cta__description {
  margin: 0;
}

.gift-titan-cta__eyebrow {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.gift-titan-cta__title {
  color: #d9fbff;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.05;
}

.gift-titan-cta__description {
  max-width: 46rem;
  color: #b9d3e8;
  font-weight: 800;
}

.gift-titan-cta__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 18px;
  color: #061525;
  background: linear-gradient(135deg, #d9fbff, #62d9ff 58%, #ffd166);
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(98, 217, 255, 0.22);
}

.gift-titan-cta__art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(220px, 100%);
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(125, 211, 252, 0.42));
}

.gift-titan-cta__art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.titan-ranking-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  margin: 1.5rem 0;
  padding: 1.35rem;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 8%, rgba(125, 211, 252, 0.18), transparent 16rem),
    radial-gradient(circle at 6% 92%, rgba(246, 200, 96, 0.12), transparent 14rem),
    linear-gradient(135deg, rgba(5, 18, 33, 0.94), rgba(8, 27, 45, 0.84));
  box-shadow: 0 22px 54px rgba(8, 47, 73, 0.3), inset 0 0 28px rgba(255, 255, 255, 0.035);
}

.titan-ranking-feature__content {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.titan-ranking-feature__eyebrow,
.titan-ranking-feature h2,
.titan-ranking-feature p {
  margin: 0;
}

.titan-ranking-feature__eyebrow {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.titan-ranking-feature h2 {
  color: #d9fbff;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.04;
}

.titan-ranking-feature p {
  max-width: 38rem;
  color: #b9d3e8;
  font-weight: 800;
}

.titan-ranking-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.titan-ranking-feature__primary,
.titan-ranking-feature__secondary,
.titan-ranking-feature__empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 1000;
  text-decoration: none;
}

.titan-ranking-feature__primary,
.titan-ranking-feature__empty a {
  color: #061525;
  background: linear-gradient(135deg, #d9fbff, #62d9ff 58%, #ffd166);
  box-shadow: 0 14px 30px rgba(98, 217, 255, 0.22);
}

.titan-ranking-feature__secondary {
  border: 1px solid rgba(125, 211, 252, 0.32);
  color: #d9fbff;
  background: rgba(125, 211, 252, 0.08);
}

.titan-ranking-feature__board {
  min-width: 0;
}

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

.titan-ranking-feature__list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 12px;
  background: rgba(2, 11, 21, 0.48);
}

.titan-ranking-feature__rank {
  color: #ffd166;
  font-weight: 1000;
}

.titan-ranking-feature__avatar img,
.titan-ranking-avatar-fallback {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  color: #d9fbff;
  font-weight: 1000;
}

.titan-ranking-feature__player,
.titan-ranking-feature__damage {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.titan-ranking-feature__player strong {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.titan-ranking-feature__player > span,
.titan-ranking-feature__damage span {
  color: #9fb8ca;
  font-size: 0.82rem;
  font-weight: 800;
}

.titan-ranking-feature__damage {
  justify-items: end;
  text-align: right;
}

.titan-ranking-feature__damage strong {
  color: #d9fbff;
}

.titan-ranking-feature__empty {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding: 1rem;
  border: 1px dashed rgba(125, 211, 252, 0.28);
  border-radius: 14px;
  color: #d9fbff;
  background: rgba(2, 11, 21, 0.42);
}

.subscriber-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 900;
}

.conditional-field {
  display: grid;
  gap: 8px;
}

.conditional-field label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.status-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.news-featured,
.news-card,
.news-article {
  padding: 24px;
}

.news-featured {
  margin-bottom: 24px;
  border-color: rgba(246, 200, 96, 0.28);
  background:
    linear-gradient(135deg, rgba(246, 200, 96, 0.1), transparent),
    rgba(255, 255, 255, 0.045);
}

.news-featured h2,
.news-card h2,
.news-card h3,
.news-article h1 {
  margin: 0;
}

.news-featured p,
.news-card p,
.article-summary {
  color: var(--muted);
  line-height: 1.7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: grid;
  gap: 16px;
}

.news-card img,
.news-hero-image {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.news-card img {
  aspect-ratio: 16 / 9;
}

.news-meta,
.breadcrumb,
.tag-list,
.article-cta,
.admin-actions,
.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.news-meta span,
.breadcrumb,
.tag-list a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb a,
.tag-list a {
  color: var(--emerald);
}

.news-article {
  max-width: 920px;
  margin: 0 auto 28px;
}

.news-article h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.article-summary {
  font-size: 1.15rem;
}

.article-content {
  margin-top: 28px;
  color: #d9e2ef;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 30px;
  color: var(--text);
}

.article-content a {
  color: var(--emerald);
  font-weight: 800;
}

.tag-list {
  margin-top: 26px;
}

.tag-list a {
  padding: 8px 11px;
  border: 1px solid rgba(37, 242, 166, 0.22);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.08);
}

.article-cta {
  margin-top: 28px;
}

.related-posts {
  margin-top: 32px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-checks {
  gap: 16px;
}

.admin-form .admin-checks label,
.admin-form .checkbox-line {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-form select,
.admin-form input:not([type="checkbox"]),
.admin-form textarea {
  background: rgba(255, 255, 255, 0.08);
}

.admin-form textarea {
  min-height: 110px;
  padding: 16px;
}

.admin-form .form-help {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-image-preview {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.admin-image-preview img {
  width: min(360px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.admin-actions form {
  display: inline-flex;
}

.admin-actions button {
  min-height: 34px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label,
.admin-inline-form {
  display: grid;
  gap: 8px;
}

.admin-inline-form {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.35fr) auto auto;
  align-items: end;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.admin-member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.admin-member-cell img,
.admin-member-cell span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.14);
  color: var(--gold);
  font-weight: 900;
  object-fit: cover;
}

.admin-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

.admin-readonly-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.admin-readonly-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-readonly-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.growth-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.growth-pill.positive {
  background: rgba(37, 242, 166, 0.13);
  color: var(--emerald);
}

.growth-pill.negative,
.warning-count {
  background: rgba(255, 107, 122, 0.14);
  color: var(--danger);
}

.chart-placeholder {
  display: grid;
  min-height: 260px;
  margin-top: 20px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(37, 242, 166, 0.08), rgba(255, 255, 255, 0.03));
}

.player-stove-chart {
  position: relative;
  min-height: 280px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.11), rgba(15, 23, 42, 0.36));
}

.player-stove-chart canvas {
  width: 100% !important;
  height: 240px !important;
}

.player-stove-chart-empty {
  display: none;
  margin: 0;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.player-stove-chart.is-empty canvas {
  display: none !important;
}

.player-stove-chart.is-empty .player-stove-chart-empty {
  display: grid;
}

.stove-history-label {
  display: inline-flex;
  align-items: center;
  min-width: 64px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.08);
  font-weight: 800;
}

.player-profile-card {
  align-items: stretch;
}

.player-profile-main {
  align-items: center;
  flex: 1 1 auto;
}

.player-profile-identity {
  min-width: 0;
}

.player-profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.player-profile-title-row h1 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.player-profile-meta,
.player-profile-alliance,
.player-source-line {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.76);
  overflow-wrap: anywhere;
}

.player-profile-alliance {
  color: #d9fbff;
  font-weight: 800;
}

.player-source-line {
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.86rem;
}

.player-status-badge,
.player-global-rank-badge,
.player-source-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.player-status-badge {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

.player-status-badge--verified {
  border-color: rgba(37, 242, 166, 0.32);
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.player-status-badge--directory {
  border-color: rgba(246, 200, 96, 0.34);
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
}

.player-global-rank-badge {
  border: 1px solid rgba(246, 200, 96, 0.34);
  background: rgba(246, 200, 96, 0.11);
  color: #fde68a;
}

.player-source-pill {
  min-height: 26px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(125, 211, 252, 0.08);
  color: #bae6fd;
  font-size: 0.72rem;
}

.player-profile-power {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-section {
  margin-top: 26px;
}

.player-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.player-section-heading h2,
.player-section-heading p {
  margin: 0;
}

.player-section-heading > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.player-kpi-grid {
  margin: 14px 0;
}

.player-kpi-grid--compact .kpi-card strong {
  font-size: clamp(1.08rem, 2vw, 1.52rem);
  overflow-wrap: anywhere;
}

.troop-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.troop-tier-card {
  padding: 18px;
  border-color: rgba(37, 242, 166, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 242, 166, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.troop-tier-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.troop-tier-card strong {
  display: block;
  margin-top: 8px;
  color: #d9fbff;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.player-skins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.player-skin-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.player-skin-card--quality-4 {
  border-color: rgba(192, 132, 252, 0.38);
}

.player-skin-card--quality-5 {
  border-color: rgba(250, 204, 21, 0.4);
}

.player-skin-image-wrap {
  display: grid;
  min-height: 142px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 8, 23, 0.58);
}

.player-skin-image {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
  padding: 8px;
}

.player-skin-placeholder {
  color: rgba(226, 232, 240, 0.72);
  font-size: 1.35rem;
  font-weight: 900;
}

.player-skin-copy {
  min-width: 0;
  padding: 16px;
}

.player-skin-category {
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-skin-copy h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.player-skin-copy p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.8rem;
  line-height: 1.4;
}

.player-skin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-skin-meta span {
  color: rgba(186, 230, 253, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.player-history-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.09), rgba(15, 23, 42, 0.28));
  color: var(--muted);
  text-align: center;
}

.player-history-empty strong {
  color: #d9fbff;
  font-size: 1.05rem;
}

.player-history-empty p {
  max-width: 460px;
  margin: 0;
}

.admin-email-upload-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.5);
}

.admin-email-upload-card .muted {
  margin: 4px 0 0;
}

.admin-email-upload-dropzone {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(125, 211, 252, 0.42);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-email-upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-email-upload-dropzone.is-dragging,
.admin-email-upload-dropzone:hover {
  border-color: rgba(52, 245, 197, 0.78);
  color: #dffcff;
  background: rgba(20, 184, 166, 0.1);
}

.admin-email-upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-email-upload-meta span {
  color: var(--muted);
}

.admin-email-upload-result {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.admin-email-upload-result.is-error {
  border: 1px solid rgba(255, 107, 122, 0.35);
}

.admin-email-upload-result.is-success {
  border: 1px solid rgba(52, 245, 197, 0.32);
}

.admin-email-upload-result img {
  width: 86px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.admin-email-upload-result strong {
  display: block;
  color: #e2e8f0;
}

.admin-email-upload-result small {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

td span {
  color: var(--muted);
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.growth-list,
.inactive-list {
  display: grid;
  gap: 12px;
}

.growth-row,
.inactive-list div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.growth-row span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(246, 200, 96, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.growth-row em {
  color: var(--emerald);
  font-style: normal;
  font-weight: 900;
}

.inactive-list div {
  grid-template-columns: 1fr;
}

.inactive-list span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .content-grid,
  .alliance-grid,
  .kpi-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 28px;
  }

  .home-boss-card {
    min-height: auto;
    padding: 24px;
  }

  .home-boss-card__content {
    max-width: none;
  }

  .home-boss-card__art {
    display: block;
    width: min(90%, 320px);
    max-height: 340px;
  }

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

  .titan-ranking-feature {
    grid-template-columns: 1fr;
  }

  .global-top-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-top-actions {
    width: 100%;
    align-items: flex-start;
  }

  .global-top-scroll {
    grid-auto-columns: minmax(238px, 78vw);
  }

  .profile-card,
  .alliance-hero,
  .panel-header,
  .tool-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-main {
    align-items: flex-start;
  }

  .player-profile-main {
    width: 100%;
  }

  .player-profile-power {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .troop-tier-grid {
    grid-template-columns: 1fr;
  }

  .player-skins-grid {
    grid-template-columns: 1fr;
  }

  .player-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .alliance-hero-premium {
    grid-template-columns: 1fr;
  }

  .alliance-emblem {
    margin: 0 0 20px;
  }

  .alliance-hero-side {
    justify-items: start;
    min-width: 0;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .podium-card,
  .podium-1,
  .podium-2,
  .podium-3 {
    min-height: auto;
  }

  .alliance-roster-heading {
    align-items: start;
    flex-direction: column;
  }

  .alliance-roster-summary {
    justify-items: start;
  }

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

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

  .codes-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

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

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

  .yearbook-hero,
  .yearbook-landing-hero,
  .yearbook-king-card,
  .featured-mvp-card {
    grid-template-columns: 1fr;
  }

  .yearbook-cover-frame {
    width: min(100%, 260px);
  }

  .yearbook-whales-grid,
  .awards-grid,
  .yearbook-explainer-grid,
  .yearbook-alliance-grid,
  .yearbook-sample-awards,
  .fun-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yearbook-cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-actions {
    justify-content: flex-start;
  }

  .profile-power {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    margin-inline: -10px;
    padding: 0.75rem 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.86);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-nav,
  .desktop-language-switcher {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(56, 189, 248, 0.16);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #e0f2fe;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav-panel {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.2rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 24px;
    background:
      radial-gradient(circle at 14% 0%, rgba(37, 242, 166, 0.12), transparent 13rem),
      radial-gradient(circle at 100% 20%, rgba(56, 189, 248, 0.16), transparent 12rem),
      rgba(15, 23, 42, 0.94);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  }

  .mobile-nav-panel.is-open {
    display: flex;
  }

  .mobile-nav-links {
    display: grid;
    gap: 0.55rem;
  }

  .mobile-nav-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: #dbeafe;
    font-size: 0.94rem;
    font-weight: 800;
  }

  .mobile-nav-link:hover {
    border-color: rgba(125, 211, 252, 0.32);
    background: rgba(14, 165, 233, 0.1);
    color: #f8fafc;
  }

  .mobile-nav-link.is-active {
    border-color: rgba(125, 211, 252, 0.26);
    background: rgba(14, 165, 233, 0.08);
    color: #f8fafc;
  }

  .mobile-nav-panel .nav-link-boss-feature {
    position: relative;
    width: 100%;
    border-color: rgba(125, 211, 252, 0.42);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.1));
    color: #bae6fd;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
  }

  .mobile-nav-panel .nav-link-boss-feature::after {
    display: none;
  }

  .mobile-nav-panel .nav-link-bear-simulator {
    width: 100%;
    gap: 0.5rem;
    border-color: rgba(246, 200, 96, 0.4);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(246, 200, 96, 0.1));
    color: #fef3c7;
  }

  .mobile-nav-panel .nav-link-bear-simulator small { margin-left: auto; }

  .mobile-nav-panel .nav-link-login,
  .mobile-nav-panel .nav-link-account {
    justify-content: center;
    border-color: rgba(248, 250, 252, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(56, 189, 248, 0.16);
  }

  .mobile-language-switcher {
    display: inline-flex;
    width: fit-content;
    gap: 0.35rem;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
  }

  .mobile-language-switcher a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 0.65rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
  }

  .mobile-language-switcher a.active,
  .mobile-language-switcher a:hover {
    background: rgba(37, 242, 166, 0.13);
    color: var(--emerald);
  }

  .hero {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .player-search-result-grid {
    grid-template-columns: 1fr;
  }

  .player-search-result-card__top {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .player-search-result-card__top img,
  .player-search-result-avatar-placeholder {
    width: 48px;
    height: 48px;
  }

  .player-search-link-state {
    grid-column: 2;
    justify-self: start;
  }

  .player-search-mode-options {
    display: grid;
    width: 100%;
  }

  .alliance-roster-filters,
  .alliance-roster-grid {
    grid-template-columns: 1fr;
  }

  .alliance-roster-card-top {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .alliance-roster-card-top img,
  .alliance-roster-avatar-placeholder {
    width: 44px;
    height: 44px;
  }

  .alliance-roster-stats {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-links .nav-link-boss-feature::after {
    display: none;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row,
  .section-heading {
    display: grid;
  }

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

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .home-boss-card__primary {
    width: 100%;
  }

  .global-player-card {
    min-height: 310px;
    padding: 16px;
  }

  .global-player-avatar {
    width: 82px;
    height: 82px;
  }

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

  .global-ranking-power,
  .global-ranking-row .global-player-stove {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }

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

  .titan-ranking-feature {
    padding: 1rem;
  }

  .titan-ranking-feature__actions,
  .titan-ranking-feature__primary,
  .titan-ranking-feature__secondary {
    width: 100%;
  }

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

  .titan-ranking-feature__damage {
    grid-column: 3;
    justify-items: start;
    text-align: left;
  }

  .alliance-hero-premium,
  .podium-section,
  .panel,
  .kpi-card {
    border-radius: 20px;
    padding: 18px;
  }

  .member-power-heading,
  .growth-row,
  .code-card,
  .status-list div {
    grid-template-columns: 32px 1fr;
  }

  .profile-main {
    flex-direction: column;
  }

  .ranking-avatar {
    width: 44px;
    height: 44px;
  }

  .ranking-player-link {
    gap: 0.7rem;
  }

  .ranking-position {
    width: 1.35rem;
  }

  .ranking-player-meta {
    font-size: 0.82rem;
  }

  .member-power-heading em,
  .growth-row em {
    grid-column: 2;
  }

  .code-card,
  .status-list div {
    grid-template-columns: 1fr;
  }

  .gift-titan-cta {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .gift-titan-cta__content {
    justify-items: stretch;
  }

  .gift-titan-cta__button {
    width: 100%;
  }

  .gift-titan-cta__art {
    grid-row: 1;
    justify-self: center;
    width: min(180px, 64vw);
    opacity: 0.78;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .latest-guides-section .section-header-row {
    align-items: start;
    flex-direction: column;
  }

  .latest-guides-grid {
    grid-template-columns: 1fr;
  }

  .latest-guide-image {
    height: 180px;
  }

  .admin-inline-form,
  .admin-readonly-list {
    grid-template-columns: 1fr;
  }

  .yearbook-hero {
    min-height: auto;
    padding: 22px;
  }

  .yearbook-landing-hero {
    min-height: auto;
    padding: 22px;
  }

  .yearbook-actions,
  .yearbook-landing-actions,
  .yearbook-landing-actions .button,
  .yearbook-actions .button {
    width: 100%;
  }

  .yearbook-cover-frame {
    width: min(100%, 220px);
  }

  .featured-mvp-card {
    justify-items: start;
  }

  .yearbook-king-card {
    justify-items: start;
  }

  .awards-grid,
  .fun-stats-grid,
  .yearbook-explainer-grid,
  .yearbook-alliance-grid,
  .yearbook-sample-awards,
  .yearbook-whales-grid,
  .yearbook-awards-admin-grid {
    grid-template-columns: 1fr;
  }

  .award-card {
    min-height: auto;
  }
}

.ai-image-review {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-image-review img {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(42, 255, 167, 0.08)),
    rgba(7, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  max-width: 360px;
  object-fit: cover;
  width: 100%;
}

.ai-reference-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-list li {
  padding: 8px 11px;
  border: 1px solid rgba(37, 242, 166, 0.22);
  border-radius: 999px;
  background: rgba(37, 242, 166, 0.08);
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 800;
}

.message-preview {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(2, 8, 16, 0.56);
  color: var(--text);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label,
.checkbox-line {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.compact-actions {
  align-items: center;
  gap: 8px;
}

.compact-actions form {
  margin: 0;
}

.compact-actions button,
.compact-actions a {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-login-wrap {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.admin-login-card {
  display: grid;
  width: min(100%, 440px);
  gap: 16px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  display: block;
  border: 2px solid rgba(255,255,255,0.12);
}

.live-page {
  width: min(1200px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.live-hero {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid rgba(37, 242, 166, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 242, 166, 0.13), transparent 45%),
    rgba(12, 20, 33, 0.78);
  box-shadow: var(--shadow);
}

.live-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.live-hero > div > p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: #c8d1df;
  font-size: clamp(1rem, 3vw, 1.22rem);
  line-height: 1.65;
}

.live-update-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(37, 242, 166, 0.18);
  border-radius: 14px;
  background: rgba(8, 17, 28, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
}

.live-update-strip strong {
  color: var(--text);
}

.live-update-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 14px rgba(37, 242, 166, 0.8);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.live-update-separator {
  color: rgba(255, 255, 255, 0.28);
}

.live-data-refreshed .live-update-strip {
  animation: live-data-pulse 0.9s ease;
}

.live-data-refreshed .live-window-ranking {
  border-color: rgba(56, 189, 248, 0.42);
  transition: border-color 0.35s ease;
}

@keyframes live-data-pulse {
  50% {
    border-color: rgba(37, 242, 166, 0.46);
    box-shadow: 0 0 24px rgba(37, 242, 166, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-data-refreshed .live-update-strip,
  .live-update-dot,
  .live-status span {
    animation: none;
  }
}

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

.admin-titan-grid .panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.admin-titan-reset {
  grid-column: 1 / -1;
  border-color: rgba(248, 113, 113, 0.28);
}

.admin-titan-new-round {
  grid-column: 1 / -1;
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.08);
}

.global-titan-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label value"
    "detail value";
  align-items: center;
  column-gap: 12px;
  min-width: 164px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 8px;
  background: rgba(4, 12, 24, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), 0 0 18px rgba(56, 189, 248, 0.12);
  color: #e2e8f0;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.global-titan-counter:hover {
  border-color: rgba(52, 245, 197, 0.68);
  transform: translateY(-2px);
}

.global-titan-counter__label {
  grid-area: label;
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.global-titan-counter > strong {
  grid-area: value;
  color: #34f5c5;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.global-titan-counter > small {
  grid-area: detail;
  color: #94a3b8;
  font-size: 0.68rem;
}

.global-titan-counter.is-empty {
  border-color: rgba(248, 113, 113, 0.4);
}

.global-titan-counter.is-empty > strong {
  color: #fca5a5;
}

.global-titan-counter.is-test {
  border-color: rgba(251, 191, 36, 0.48);
}

.global-titan-counter.is-test > strong {
  color: #fcd34d;
}

@media (max-width: 760px) {
  .admin-titan-grid {
    grid-template-columns: 1fr;
  }

  .admin-titan-reset {
    grid-column: auto;
  }

  .global-titan-counter {
    right: 10px;
    bottom: 10px;
    min-width: 142px;
    padding: 8px 10px;
  }
}

/* Discord ingestion admin */
.discord-admin-hero {
  margin-bottom: 1rem;
}

.discord-admin-counts {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.discord-admin-counts .mock-badge {
  flex: 0 0 auto;
  text-decoration: none;
}

.discord-admin-counts .mock-badge.active {
  border-color: rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
}

.discord-admin-filters form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
}

.discord-admin-filters label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.discord-admin-filters select {
  width: 100%;
}

.discord-message-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.discord-message-card {
  min-width: 0;
  padding: 1.25rem;
}

.discord-message-card > header,
.discord-message-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.discord-message-card > header > div,
.discord-message-meta,
.discord-attachment-list,
.discord-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.discord-message-card time,
.discord-message-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.discord-source-badge,
.discord-webhook-badge {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 800;
}

.discord-webhook-badge {
  border-color: rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
}

.discord-message-meta {
  margin-top: 0.9rem;
}

.discord-message-content {
  margin-top: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.discord-payload-summary,
.discord-attachment-list {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
  overflow-wrap: anywhere;
}

.discord-payload-summary > div + div {
  margin-top: 0.7rem;
}

.discord-payload-summary p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.discord-message-card > footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.discord-message-card .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discord-message-card .admin-actions form {
  margin: 0;
}

.discord-message-card button.danger {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.discord-admin-empty {
  text-align: center;
}

.discord-inline-live-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.07);
}

.discord-inline-live-preview > span {
  font-size: 1.65rem;
}

.discord-inline-live-preview small,
.discord-inline-live-preview strong {
  display: block;
}

.discord-inline-live-preview small {
  color: var(--emerald);
  font-weight: 800;
}

.discord-inline-live-preview strong {
  margin-top: 0.25rem;
}

.discord-inline-live-preview p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.discord-live-preview-shell {
  max-width: 760px;
  margin: 1rem auto;
}

.discord-live-preview-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 8px;
  background: rgba(12, 20, 33, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.discord-live-preview-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 1.45rem;
}

.discord-live-preview-card h2 {
  margin: 0.65rem 0 0.5rem;
  font-size: 1.15rem;
}

.discord-live-preview-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.discord-preview-source {
  max-width: 760px;
  margin-inline: auto;
}

.discord-message-card button:disabled {
  cursor: default;
  opacity: 0.68;
}

@media (max-width: 760px) {
  .discord-admin-filters form {
    grid-template-columns: 1fr;
  }

  .discord-message-card > header,
  .discord-message-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .discord-message-card .admin-actions,
  .discord-message-card .admin-actions form,
  .discord-message-card .admin-actions button {
    width: 100%;
  }

  .discord-inline-live-preview,
  .discord-live-preview-card {
    grid-template-columns: 1fr;
  }
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(37, 242, 166, 0.9);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.45; transform: scale(0.78); }
}

.live-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.live-hero-stats div {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.live-hero-stats strong,
.live-hero-stats span {
  display: block;
}

.live-hero-stats strong {
  color: var(--gold);
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.live-hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.live-filters {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 24px;
  padding: 10px 0;
  background: rgba(5, 7, 13, 0.9);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

.live-filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.live-filters button.active,
.live-filters button:hover {
  border-color: rgba(37, 242, 166, 0.38);
  background: rgba(37, 242, 166, 0.12);
  color: var(--emerald);
}

.live-layout {
  display: grid;
  gap: 28px;
}

.live-stream {
  position: relative;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.live-timeline-line {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 1px;
  background: linear-gradient(rgba(37, 242, 166, 0.34), rgba(255, 255, 255, 0.06) 72%, transparent);
}

.live-card {
  --live-accent: var(--emerald);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.live-card[hidden],
.live-filter-empty[hidden] {
  display: none;
}

.live-card-gift_code { --live-accent: var(--gold); }
.live-card-trending_player { --live-accent: #7dd3fc; }
.live-card-trending_kingdom { --live-accent: #c4b5fd; }
.live-card-news { --live-accent: #f9a8d4; }
.live-card-alliance { --live-accent: #fb923c; }
.live-card-event { --live-accent: #f87171; }
.live-card-community { --live-accent: var(--emerald); }
.live-card-alert { --live-accent: #fde047; }
.live-card-ranking_update { --live-accent: #38bdf8; }
.live-card-yearbook_award { --live-accent: #c084fc; }
.live-card-official_discord { --live-accent: #60a5fa; }

.live-card-official_discord .live-card-content {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 48%),
    rgba(12, 20, 33, 0.76);
}

.live-card-yearbook_award .live-card-content {
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.09), transparent 46%),
    rgba(12, 20, 33, 0.76);
}

.live-card-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--live-accent) 48%, transparent);
  border-radius: 14px;
  background: #0a1320;
  box-shadow: 0 0 24px color-mix(in srgb, var(--live-accent) 18%, transparent);
}

.live-card-marker span {
  font-size: 1rem;
  font-weight: 900;
}

.live-card-content {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 2px solid var(--live-accent);
  border-radius: 18px;
  background: rgba(12, 20, 33, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.live-card-content:hover {
  border-color: color-mix(in srgb, var(--live-accent) 46%, rgba(255, 255, 255, 0.12));
  transform: translateY(-2px);
}

.live-card-header,
.live-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.live-card-header {
  justify-content: space-between;
  margin-bottom: 15px;
}

.live-card-header time,
.live-card-time {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--live-accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--live-accent) 10%, transparent);
  color: var(--live-accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-card-main {
  min-width: 0;
}

.live-card-main.has-media {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.live-card-main h2 {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.3;
}

.live-card-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.live-card-source {
  margin-top: 12px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.live-avatar,
.live-thumbnail {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.live-avatar {
  border-radius: 999px;
}

.live-card-actions {
  margin-top: 20px;
}

.live-card-actions button,
.live-card-actions .button {
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 0.82rem;
}

.live-filter-empty {
  display: grid;
  gap: 6px;
  margin-left: 60px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--muted);
}

.live-filter-empty strong {
  color: var(--text);
}

.live-window-ranking {
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.11), transparent 48%),
    rgba(12, 20, 33, 0.76);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.26);
}

.live-window-ranking-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.live-window-ranking-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.live-window-ranking-header p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
}

.live-window-ranking-header > span {
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-window-ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-window-ranking-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.live-window-ranking-list li:first-child {
  border-color: rgba(246, 200, 96, 0.25);
  background: rgba(246, 200, 96, 0.07);
}

.live-window-rank {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.live-window-player {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.live-window-player img,
.live-window-avatar-placeholder {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  object-fit: cover;
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-weight: 900;
}

.live-window-player-copy {
  min-width: 0;
}

.live-window-player-copy strong,
.live-window-player-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-window-player-copy strong {
  font-size: 0.92rem;
}

.live-window-player-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.live-window-searches,
.live-window-movement {
  grid-column: 2;
  font-size: 0.75rem;
}

.live-window-searches {
  color: var(--muted);
}

.live-window-searches strong {
  color: var(--text);
}

.live-window-movement {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 800;
}

.live-window-movement.up,
.live-window-movement.new {
  background: rgba(37, 242, 166, 0.1);
  color: var(--emerald);
}

.live-window-movement.down {
  background: rgba(255, 107, 122, 0.1);
  color: var(--danger);
}

.live-window-ranking-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px dashed rgba(56, 189, 248, 0.24);
  border-radius: 14px;
}

.live-window-ranking-empty strong,
.live-window-ranking-empty span {
  display: block;
}

.live-window-ranking-empty span {
  margin-top: 5px;
  color: var(--muted);
}

.live-window-ranking-empty .button {
  margin: 0;
}

.live-feed-ranking-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.live-feed-ranking-avatars {
  display: flex;
  padding-left: 8px;
}

.live-feed-ranking-avatars a {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid #0c1421;
  border-radius: 999px;
  overflow: hidden;
  background: #13263a;
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-feed-ranking-avatars img,
.live-feed-ranking-avatars a > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
}

.live-award-recognition {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(246, 200, 96, 0.2);
  border-radius: 14px;
  background: rgba(246, 200, 96, 0.055);
}

.live-award-seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(246, 200, 96, 0.3);
  border-radius: 13px;
  background: rgba(246, 200, 96, 0.1);
  box-shadow: 0 0 24px rgba(246, 200, 96, 0.1);
}

.live-award-recognition strong,
.live-award-recognition small {
  display: block;
}

.live-award-recognition strong {
  color: var(--gold);
  font-size: 0.94rem;
}

.live-award-recognition p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.live-award-recognition small {
  margin-top: 7px;
  color: #d8b4fe;
  font-weight: 800;
}

.live-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.live-sidebar-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(12, 20, 33, 0.7);
}

.live-sidebar-heading span {
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-sidebar-heading h2 {
  margin: 5px 0 14px;
  font-size: 1.05rem;
}

.live-ranking-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-ranking-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.live-ranking-list li:last-child {
  border-bottom: 0;
}

.live-ranking-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.live-rank {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(246, 200, 96, 0.09);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.live-ranking-list img,
.live-mini-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.live-ranking-list a > span:last-child {
  min-width: 0;
}

.live-ranking-list strong,
.live-ranking-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-ranking-list strong {
  font-size: 0.86rem;
}

.live-ranking-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.live-sidebar-empty,
.live-kingdom-list p,
.live-code-list p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.live-sidebar-empty {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px dashed rgba(255, 255, 255, 0.13) !important;
  border-radius: 12px;
}

.live-sidebar-empty a {
  width: fit-content;
  color: var(--emerald);
  font-weight: 900;
}

.live-kingdom-list .live-sidebar-empty > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.live-kingdom-list,
.live-code-list {
  display: grid;
  gap: 8px;
}

.live-kingdom-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-kingdom-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.live-kingdom-list li > a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-code-list div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.live-kingdom-list span,
.live-code-list code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-kingdom-list strong {
  color: var(--gold);
  font-size: 0.76rem;
  white-space: nowrap;
}

.live-code-list code {
  color: var(--emerald);
  font-weight: 900;
}

.live-code-list button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.live-sidebar-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 900;
}

.live-yearbook-sidebar {
  border-color: rgba(192, 132, 252, 0.2);
  background:
    linear-gradient(145deg, rgba(192, 132, 252, 0.07), transparent 52%),
    rgba(12, 20, 33, 0.7);
}

.live-award-sidebar-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-award-sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.live-award-sidebar-list li:last-child {
  border-bottom: 0;
}

.live-award-sidebar-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.live-award-sidebar-list img,
.live-award-sidebar-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 999px;
  object-fit: cover;
  background: rgba(192, 132, 252, 0.1);
  color: #e9d5ff;
  font-weight: 900;
}

.live-award-sidebar-list a > span:last-child {
  min-width: 0;
}

.live-award-sidebar-list strong,
.live-award-sidebar-list small,
.live-award-sidebar-list em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-award-sidebar-list strong {
  font-size: 0.84rem;
}

.live-award-sidebar-list small {
  margin-top: 2px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.live-award-sidebar-list em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.live-yearbook-sidebar-empty {
  padding: 14px;
  border: 1px dashed rgba(192, 132, 252, 0.24);
  border-radius: 13px;
}

.live-yearbook-sidebar-empty strong {
  color: #e9d5ff;
}

.live-yearbook-sidebar-empty p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.live-yearbook-sidebar-empty a {
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 900;
}

@media (min-width: 920px) {
  .live-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
  }

  .live-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
  }

  .live-sidebar {
    position: sticky;
    top: 72px;
  }

  .live-window-ranking-list li {
    grid-template-columns: 42px minmax(0, 1fr) 82px 128px;
    gap: 12px;
  }

  .live-window-searches,
  .live-window-movement {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .live-page {
    width: min(100%, calc(100vw - 24px));
  }

  .live-update-separator {
    display: none;
  }

  .live-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .live-card-marker {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .live-timeline-line {
    left: 18px;
  }

  .live-card-content {
    padding: 18px;
  }

  .live-filter-empty {
    margin-left: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-boss-card__art {
    animation: none;
  }
}

/* Admin kingdom ingestion control center */
.kingdom-demand-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px 24px;
}

.kingdom-demand-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.kingdom-demand-hero p:last-child {
  max-width: 760px;
}

.kingdom-demand-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kingdom-demand-summary article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
}

.kingdom-demand-summary span {
  display: block;
  min-height: 2.4em;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.kingdom-demand-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.45rem;
}

.kingdom-demand-filters form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.kingdom-demand-filters label,
.kingdom-demand-command-preview label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.kingdom-demand-filters input,
.kingdom-demand-filters select,
.kingdom-demand-batch select,
.kingdom-demand-batch textarea,
.kingdom-demand-command-preview textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
}

.kingdom-demand-batch,
.kingdom-demand-table-panel,
.kingdom-demand-command-preview {
  margin-top: 20px;
}

.kingdom-demand-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 12px;
}

.kingdom-demand-batch-actions select {
  width: auto;
  min-width: 190px;
}

.kingdom-demand-batch textarea,
.kingdom-demand-command-preview textarea {
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.kingdom-demand-table {
  min-width: 1860px;
}

.kingdom-demand-table td {
  vertical-align: top;
}

.kingdom-demand-table td small {
  display: block;
  max-width: 220px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kingdom-fetch-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.kingdom-fetch-status--fresh {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.kingdom-fetch-status--aging {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(234, 179, 8, 0.14);
  color: #fde047;
}

.kingdom-fetch-status--stale,
.kingdom-fetch-status--failed {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.kingdom-fetch-status--never_fetched {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(100, 116, 139, 0.16);
  color: #cbd5e1;
}

.kingdom-fetch-status--fetching {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

.kingdom-demand-actions {
  display: grid;
  gap: 6px;
  min-width: 148px;
}

.kingdom-demand-actions a,
.kingdom-demand-actions button {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.74);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.kingdom-demand-actions a:hover,
.kingdom-demand-actions button:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.kingdom-demand-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.kingdom-demand-command-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.kingdom-demand-command-preview .section-heading,
.kingdom-demand-command-preview > p {
  grid-column: 1 / -1;
}

.kingdom-demand-command-preview button {
  min-height: 42px;
}

.kingdom-fid-enrichment-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(8, 47, 73, 0.32);
}

.kingdom-fid-enrichment-alert h2 {
  margin: 4px 0 8px;
  font-size: 1.2rem;
}

.kingdom-fid-enrichment-alert p:last-child {
  margin: 0;
  color: var(--muted);
}

.kingdom-fid-enrichment-alert button {
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .kingdom-demand-filters form {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .kingdom-demand-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 24px 16px;
  }

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

  .kingdom-demand-filters form,
  .kingdom-demand-command-preview {
    grid-template-columns: 1fr;
  }

  .kingdom-demand-command-preview .section-heading,
  .kingdom-demand-command-preview > p {
    grid-column: auto;
  }

  .kingdom-demand-batch-actions > * {
    width: 100%;
  }

  .kingdom-demand-batch-actions select {
    width: 100%;
  }

  .kingdom-fid-enrichment-alert {
    align-items: stretch;
    flex-direction: column;
  }
}
