/* src/frontend/styles/indexes/renown.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  --page: #0a0a0a;
  --page-glow: radial-gradient(1200px 600px at 50% -10%, #5fbeeb14, transparent 60%);
  --card: #ffffff0a;
  --card-strong: #ffffff0f;
  --ink: #e4e4e7;
  --text: #f4f4f5;
  --muted: #8b8b95;
  --line: #ffffff14;
  --line-strong: #ffffff24;
  --accent: #5fbeeb;
  --accent-2: #4aa3d6;
  --accent-soft: #5fbeeb24;
  --accent-line: #5fbeeb57;
  --danger: #fca5a5;
  --ok: #86efac;
  --warn: #fde68a;
  --radius: 12px;
  --shadow: 0 24px 80px #00000047;
  --display-font: system-ui, -apple-system, "Segoe UI", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font: 16px / 1.5 var(--display-font);
  background: var(--page);
  background-image: var(--page-glow);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.topbar {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items:  center;
  gap: 18px;
  margin-bottom: 8px;
  padding: 6px 0 18px;
}

.brand {
  display: inline-flex;
  cursor: pointer;
  color: var(--text);
  letter-spacing: -.2px;
  align-items:  center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand .logo {
  color: var(--accent);
  transition: transform .25s;
}

.brand:hover .logo {
  transform: rotate(15deg);
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}

.nav button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 7px 13px;
  transition: background .12s, color .12s;
  font-size: 14px;
}

.nav button:hover {
  color: var(--text);
  background: #ffffff0a;
}

.nav button.on {
  color: var(--text);
  background: var(--accent-soft);
}

.authbox {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-left: auto;
}

.me {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  align-items:  center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 600;
}

.me:hover {
  background: var(--card-strong);
}

.soundToggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 9px;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
  transition: background .12s, border-color .12s;
  font-size: 15px;
}

.soundToggle:hover {
  background: var(--card-strong);
  border-color: var(--accent-line);
}

.adminLink {
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.adminLink:hover {
  color: var(--text);
  border-color: var(--accent-line);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  text-decoration: none;
  font: inherit;
  color: #051018;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 10px 18px;
  transition: transform 80ms, filter .15s, background .15s;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.solid {
  background: var(--accent);
  color: #051018;
}

.btn.solid:hover {
  background: var(--accent-2);
  color: #051018;
}

.btn.ghost {
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--card-strong);
}

.btn.gh {
  color: #fff;
  background: #24292e;
  border: 1px solid #3a3f46;
}

.btn.gg {
  color: #fff;
  background: #1a73e8;
}

.btn.sm {
  padding: 7px 14px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: .45;
  cursor: default;
  filter: none;
  transform: none;
}

.hero {
  text-align: center;
  margin: 36px 0 18px;
}

.hero h1 {
  letter-spacing: -1px;
  color: var(--text);
  font-size: 42px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--accent);
}

.tag {
  color: var(--muted);
  max-width: 520px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.banner {
  display: flex;
  border-radius: 10px;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 16px;
  font-size: 14px;
}

.banner.ok {
  color: var(--ok);
  background: #86efac1a;
  border: 1px solid #86efac4d;
}

.banner.info {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.banner.warn {
  color: var(--warn);
  background: #fde68a1a;
  border: 1px solid #fde68a4d;
}

.banner button {
  color: inherit;
  cursor: pointer;
  opacity: .7;
  background: none;
  border: 0;
  font-size: 15px;
}

.banner button:hover {
  opacity: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
  padding: 22px 26px;
}

.card h2 {
  color: var(--text);
  letter-spacing: -.2px;
  margin-bottom: 8px;
  font-size: 17px;
}

.card.warn {
  border-color: #fde68a4d;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.hint {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ranks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranks li {
  background: #ffffff05;
  border-radius: 9px;
  transition: background .12s;
}

.ranks li:hover {
  background: var(--card);
}

.ranks li.sel {
  background: var(--accent-soft);
  outline: 1px solid var(--accent-line);
}

.rankLink {
  display: grid;
  grid-template-columns: 30px 56px 1fr auto auto auto auto;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  align-items:  center;
  gap: 12px;
  padding: 10px 12px;
}

.rankLink:hover {
  text-decoration: none;
}

.ranks li.fresh {
  animation: rankFreshPulse 2s ease-out 1;
}

@keyframes rankFreshPulse {
  0% {
    background: #60c0ff40;
    box-shadow: 0 0 0 3px #60c0ff59;
  }

  60% {
    background: #60c0ff14;
    box-shadow: 0 0 0 1px #60c0ff26;
  }

  100% {
    background: #ffffff05;
    box-shadow: none;
  }
}

.ranks li.swarm {
  animation: rankSwarmPulse 1.8s ease-out 1;
}

.ranks li.swarmAi {
  animation: rankSwarmPulseAi 1.8s ease-out 1;
}

.ranks li.swarmAiVerified {
  animation: rankSwarmPulseAiVerified 1.8s ease-out 1;
}

@keyframes rankSwarmPulse {
  0% {
    background: #ffc85059;
    box-shadow: 0 0 #ffc850a6;
  }

  60% {
    background: #ffc8501f;
    box-shadow: 0 0 0 14px #ffc85000;
  }

  100% {
    background: #ffffff05;
    box-shadow: none;
  }
}

@keyframes rankSwarmPulseAi {
  0% {
    background: #b478ff59;
    box-shadow: 0 0 #b478ff99;
  }

  60% {
    background: #b478ff1f;
    box-shadow: 0 0 0 16px #b478ff00;
  }

  100% {
    background: #ffffff05;
    box-shadow: none;
  }
}

@keyframes rankSwarmPulseAiVerified {
  0% {
    background: #b478ff8c;
    box-shadow: 0 0 #b478ffd9, 0 0 18px #b478ff73;
  }

  60% {
    background: #b478ff2e;
    box-shadow: 0 0 0 22px #b478ff00, 0 0 #b478ff00;
  }

  100% {
    background: #ffffff05;
    box-shadow: none;
  }
}

.rank {
  text-align: center;
  font-size: 17px;
}

.rankPet {
  display: block;
  width: 56px;
  height: 56px;
}

.rankPet .petCanvas {
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 56px;
  height: 56px;
}

.rankPetEmpty {
  display: block;
  opacity: .35;
}

.rankGhosts {
  display: inline-flex;
  align-items:  center;
  gap: 4px;
  padding-left: 6px;
}

.ghostDot {
  animation: ghostPulse 1.4s ease-in-out infinite;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.ghostMore {
  color: var(--ink);
  opacity: .8;
  padding-left: 2px;
  font-size: 11px;
}

@keyframes ghostPulse {
  0%, 100% {
    transform: scale(.85);
    opacity: .85;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.ghostAvatarWrap {
  display: inline-flex;
  background: #ffffff0d;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 1px;
}

.ghostAvatar {
  overflow: hidden;
  aspect-ratio: auto;
  background: linear-gradient(#0e1218, #060608);
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

.prefRow {
  display: flex;
  cursor: pointer;
  user-select: none;
  align-items:  center;
  gap: 10px;
}

.prefRow input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.textInput {
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  outline: none;
  background: #ffffff0a;
  border-radius: 8px;
  padding: 7px 10px;
  transition: border-color .12s, background .12s;
  font-size: 13px;
}

.textInput:focus {
  border-color: var(--accent-line);
  background: #ffffff0f;
}

.textInput::placeholder {
  color: var(--muted);
  opacity: .7;
}

.boardLayout {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items:  start;
  gap: 18px;
}

.boardSpotlight {
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 16px;
}

.rankSpotlight {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  background: linear-gradient(#0e1218, #060608);
  border-radius: 14px;
  width: 100%;
  box-shadow: 0 12px 36px #00000073;
}

.boardSpotlightMeta {
  padding: 4px 6px;
}

.boardSpotlightMeta h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.boardSpotlightMeta p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 720px) {
  .boardLayout {
    grid-template-columns: 1fr;
  }

  .boardSpotlight {
    position: static;
  }

  .rankSpotlight {
    aspect-ratio: 4 / 3;
  }
}

.boardCard {
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.boardCard:before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  opacity: .8;
  transition: opacity .35s, background .35s;
  inset: 0;
}

.boardCard > * {
  position: relative;
  z-index: 1;
}

.board-score:before {
  background: radial-gradient(80% 60% at 50% 0%, #60c0ff1a, #0000 70%);
}

.board-pets-count:before {
  background: radial-gradient(80% 60% at 50% 0%, #86efac1a, #0000 70%);
}

.board-rarest-pet:before {
  background: radial-gradient(90% 70% at 50% 0%, #b478ff38, #0000 65%), radial-gradient(70% 50% at 80% 100%, #60c0ff1f, #0000 60%);
}

.board-biggest-pet:before {
  background: radial-gradient(70% 50% at 50% 110%, #ffc85038, #0000 65%), linear-gradient(#0000 60%, #ffc8500f 100%);
}

.board-rarest-pet {
  border-color: #b478ff59;
  box-shadow: 0 12px 36px #783cc81f;
}

.board-rarest-pet .rankSpotlight {
  border-color: #b478ff8c;
  box-shadow: 0 12px 36px #783cc859;
}

.board-biggest-pet {
  border-color: #ffc8504d;
  box-shadow: 0 12px 36px #b48c281f;
}

.board-biggest-pet .rankSpotlight {
  border-color: #ffc8508c;
  box-shadow: 0 12px 36px #b48c284d;
}

.who {
  color: var(--text);
  font-weight: 600;
}

.lvl {
  color: var(--accent);
  font-weight: 600;
}

.xp {
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.skill {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  grid-template-rows: auto 4px;
  background: #ffffff05;
  border-radius: 8px;
  align-items:  center;
  column-gap: 8px;
  padding: 8px 10px;
}

.skill .ic {
  text-align: center;
  font-size: 15px;
}

.skill .nm {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.skill .lv {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.skill .barT {
  grid-column: 1 / -1;
  overflow: hidden;
  background: #ffffff12;
  border-radius: 3px;
  height: 4px;
}

.skill .barF {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 100%;
}

.skill.maxed {
  outline: 1px solid var(--accent-line);
}

.skill.maxed .lv {
  color: var(--accent);
}

.tierBadge {
  letter-spacing: .5px;
  vertical-align: middle;
  border-radius: 5px;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
}

.tierBadge.supporter {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.tierBadge.pro {
  background: var(--accent);
  color: #051018;
}

.tierChip {
  text-transform: capitalize;
  border-radius: 999px;
  flex: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.tierChip.free {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #ffffff0f;
}

.tierChip.supporter {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.tierChip.pro {
  background: var(--accent);
  color: #051018;
}

.aiBadge {
  display: inline-flex;
  letter-spacing: .5px;
  vertical-align: middle;
  color: #d6a3ff;
  background: #b478ff26;
  border: 1px solid #b478ff59;
  border-radius: 5px;
  align-items:  center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.aiBadge.compact {
  margin-left: 6px;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1;
}

.aiBadge.attested {
  background: #b478ff40;
  border-color: #b478ff8c;
  box-shadow: 0 0 10px #b478ff40;
}

.aiBadge.verified {
  color: #efe2ff;
  background: #b478ff59;
  border-color: #b478ffbf;
  box-shadow: 0 0 16px #b478ff66;
}

.aiBadge.selfKeyed {
  color: #c4f6da;
  background: #86efac2e;
  border-color: #86efac8c;
  box-shadow: 0 0 10px #86efac4d;
}

.aiBadge.verified.expiringSoon {
  border-color: #ffc850d9;
  box-shadow: 0 0 12px #ffc85073;
}

.webauthnKeys {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 6px;
}

.webauthnKeyList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.webauthnKeyRow {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff08;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 6px 10px;
  font-size: 12px;
}

.webauthnKeyLabel {
  color: var(--text);
  font-weight: 600;
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.webauthnKeyLabel:hover {
  color: var(--accent);
}

.webauthnKeyDelete {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 13px;
}

.webauthnKeyDelete:hover {
  color: #ffb478;
  background: #ffb4782e;
}

.webauthnCountChip {
  display: inline-flex;
  letter-spacing: .5px;
  color: #c4f6da;
  background: #86efac2e;
  border: 1px solid #86efac66;
  border-radius: 5px;
  align-items:  center;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.aiOtwBanner {
  display: inline-flex;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: linear-gradient(90deg, #b478ff2e, #60c0ff0f);
  border: 1px solid #b478ff73;
  border-radius: 12px;
  align-items:  center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 16px;
  transition: background .15s, border-color .15s, transform 80ms;
}

.aiOtwBanner:hover {
  background: linear-gradient(90deg, #b478ff47, #60c0ff1a);
  border-color: #b478ffa6;
  transform: translateY(-1px);
}

.aiOtwLabel {
  letter-spacing: .8px;
  color: #d6a3ff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.aiOtwName {
  font-weight: 700;
}

.aiOtwScore {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-left: auto;
  font-weight: 700;
}

.attestFeed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.attestRow {
  display: flex;
  font: inherit;
  color: var(--text);
  text-align: left;
  background: #b478ff0f;
  border: 1px solid #b478ff40;
  border-radius: 10px;
  align-items:  center;
  gap: 12px;
  padding: 10px 14px;
  transition: background .12s, border-color .12s;
}

.attestRow:hover {
  background: #b478ff26;
  border-color: #b478ff80;
}

.attestRowLink {
  display: flex;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  align-items:  center;
  gap: 12px;
  min-width: 0;
}

.attestWho {
  font-weight: 700;
}

.attestWhen {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 12px;
}

.attestEvidence {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #60c0ff66;
  text-underline-offset: 2px;
  font-size: 12px;
}

.attestEvidence:hover {
  text-decoration-color: var(--accent);
}

.providerCounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}

.providerCount {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #ffffff0a;
  border-radius: 999px;
  align-items:  center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 12px;
}

.providerCount.has-verified {
  background: #b478ff1f;
  border-color: #b478ff66;
}

.providerCountName {
  font-weight: 700;
}

.providerCountVerified {
  color: #d6a3ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.providerCountClaimed {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.announceStack {
  position: fixed;
  z-index: 250;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  top: 16px;
  right: 16px;
}

.announceToast {
  pointer-events: auto;
  display: inline-flex;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  animation: announceIn .35s ease-out 1, announceOut .5s ease-in 7.5s 1 forwards;
  background: linear-gradient(90deg, #b478ff59, #60c0ff38);
  border: 1px solid #b478ffa6;
  border-radius: 12px;
  align-items:  center;
  gap: 10px;
  padding: 10px 16px;
  box-shadow: 0 12px 32px #b478ff4d;
}

.announceToast:hover {
  transform: translateY(-1px);
}

.announceLabel {
  letter-spacing: .8px;
  color: #d6a3ff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.announceWho {
  font-weight: 700;
}

@keyframes announceIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes announceOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.attestTrail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
}

.attestTrailRow {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff08;
  border-left-width: 3px;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.attestDot {
  display: inline-flex;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
}

.attestKindLabel {
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10px;
  font-weight: 700;
}

.attestTrailAt {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 11px;
}

.attestKind-claimed {
  border-left-color: #b478ff8c;
}

.attestKind-claimed .attestDot {
  color: #d6a3ff;
  background: #b478ff40;
}

.attestKind-verified {
  border-left-color: #60c0ffa6;
}

.attestKind-verified .attestDot {
  color: #b3e5ff;
  background: #60c0ff4d;
}

.attestKind-cleared {
  border-left-color: #ffb4788c;
}

.attestKind-cleared .attestDot {
  color: #ffd2a3;
  background: #ffb47840;
}

.achGroups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.achGroupName {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
}

.achList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.achChip {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #ffffff0a;
  border-radius: 999px;
  align-items:  center;
  gap: 8px;
  padding: 5px 10px 5px 12px;
  font-size: 12px;
}

.achName {
  color: var(--text);
  font-weight: 600;
}

.achTier {
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink);
  background: #ffffff14;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 800;
}

.achChip.tier-bronze {
  border-color: #cd7f3266;
}

.achChip.tier-bronze .achTier {
  color: #f5cba7;
  background: #cd7f3233;
}

.achChip.tier-silver {
  border-color: #c0c0c066;
}

.achChip.tier-silver .achTier {
  color: #e7e7e7;
  background: #c0c0c033;
}

.achChip.tier-gold {
  border-color: #ffd70073;
}

.achChip.tier-gold .achTier {
  color: #ffe28a;
  background: #ffd70038;
}

.achChip.tier-platinum {
  background: #b4d2ff14;
  border-color: #b4d2ff8c;
}

.achChip.tier-platinum .achTier {
  color: #cfe4ff;
  background: #b4d2ff40;
}

.achChip.tier-mythic {
  background: #ffb4501a;
  border-color: #ffb45099;
  box-shadow: 0 0 14px #ffb4502e;
}

.achChip.tier-mythic .achTier {
  color: #ffe1a8;
  background: #ffb4504d;
}

.achChip.tier-secret {
  border-color: #b478ff80;
}

.achChip.tier-secret .achTier {
  color: #d6a3ff;
  background: #b478ff40;
}

.achChip.locked {
  opacity: .42;
  filter: grayscale(.35);
}

.achChip.locked .achName {
  color: var(--ink);
}

.ghostDot.ai {
  outline: 1.5px solid #b478ffb3;
  outline-offset: 1px;
}

.ghostAvatarWrap.ai {
  background: #b478ff33;
}

.ghostAiPip {
  position: absolute;
  pointer-events: none;
  font-size: 10px;
  line-height: 1;
  bottom: -4px;
  right: -4px;
}

.ghostAvatarWrap {
  position: relative;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  background: #ffffff05;
  flex-direction: column;
  padding: 24px 22px;
}

.tier.current {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.tier.pro {
  border-color: var(--accent-line);
}

.tier .pill {
  position: absolute;
  background: var(--accent);
  color: #051018;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  top: -10px;
  right: 14px;
}

.tier h3 {
  color: var(--text);
  font-size: 18px;
}

.tier .price {
  color: var(--text);
  margin: 8px 0 2px;
  font-size: 30px;
  font-weight: 800;
}

.tier .blurb {
  color: var(--muted);
  min-height: 34px;
  font-size: 13px;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  margin: 14px 0;
}

.perks li {
  color: var(--ink);
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.4;
}

.perks li:before {
  content: "✓";
  position: absolute;
  color: var(--accent);
  font-weight: 700;
  left: 0;
}

.tier .btn {
  width: 100%;
  margin-top: auto;
}

.acctHead {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 12px;
}

.subline {
  color: var(--ink);
  margin-top: 4px;
  font-size: 14px;
}

.idents {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.idents li {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff05;
  border-radius: 9px;
  align-items:  center;
  gap: 10px;
  padding: 10px 12px;
}

.dot {
  background: #666;
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
}

.dot.gh {
  background: #e4e4e7;
}

.dot.gg {
  background: #4285f4;
}

.dot.credentials {
  background: var(--accent);
}

.idp {
  color: var(--text);
  font-weight: 600;
}

.primary {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.idsub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  font-size: 12px;
}

.idActions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.link {
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.link:hover {
  text-decoration: underline;
}

.link.danger {
  color: var(--danger);
}

.signout {
  display: block;
  color: var(--muted);
  margin: 22px auto 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 14px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font: inherit;
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color .12s, background .12s;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-strong);
}

.field .err {
  color: var(--danger);
  font-size: 12px;
}

.tabRow {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
  margin-bottom: 14px;
}

.tabRow button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 9px 14px;
  font-size: 14px;
}

.tabRow button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.atable {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.atable th, .atable td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.atable th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px;
  font-weight: 600;
}

.atable tr:hover td {
  background: var(--card);
}

.atable td .miniRow {
  display: inline-flex;
  gap: 6px;
}

.atable td select {
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.foot {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 13px;
}

.foot a {
  color: var(--ink);
}

.syncStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff05;
  border-radius: 10px;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
}

.stat .num {
  color: var(--accent);
  letter-spacing: -.3px;
  font-size: 22px;
  font-weight: 800;
}

.stat .lbl {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
}

.cliBox {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff05;
  border-radius: 9px;
  align-items:  center;
  gap: 10px;
  padding: 10px 14px;
  font-family: ui-monospace, JetBrains Mono, SF Mono, monospace;
}

.cliBox code {
  color: var(--accent);
  flex: 1;
  font-size: 14px;
}

.score {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 800;
}

.ranks li {
  grid-template-columns: 30px 56px 1fr auto auto auto;
}

.petStage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.petCard {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #ffffff05;
  border-radius: 12px;
  transition: transform .2s, border-color .2s;
}

.petCard:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.petCanvas {
  aspect-ratio: 1;
  background: linear-gradient(#0e1218, #060608);
}

.petLabel {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding: 8px 12px;
}

.tierTag {
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 4px;
  flex: none;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
}

.tierTag.t-common {
  color: var(--ink);
  background: #ffffff1a;
}

.tierTag.t-uncommon {
  color: var(--ok);
  background: #86efac2e;
}

.tierTag.t-rare {
  color: #93c5fd;
  background: #60a5fa33;
}

.tierTag.t-epic {
  color: #c4b5fd;
  background: #c4b5fd38;
}

.tierTag.t-legendary {
  color: var(--warn);
  background: #fbbf2440;
  border: 1px solid #fbbf2466;
}

.tierTag.t-mythic {
  color: #1a1024;
  background: linear-gradient(90deg, #f0abfc, #fbbf24);
}

.petName {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.petCard.tier-legendary {
  box-shadow: inset 0 0 0 1px #fbbf2440;
}

.petCard.tier-mythic {
  box-shadow: inset 0 0 0 1px #f0abfc66;
}

.boardTabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 14px;
}

.boardTabs button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 8px 14px;
  transition: color .12s, border-color .12s;
  font-size: 13px;
}

.boardTabs button:hover {
  color: var(--text);
}

.boardTabs button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.audienceTabs {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #ffffff0a;
  border-radius: 999px;
  gap: 2px;
  margin: 0 0 14px;
  padding: 3px;
}

.audienceTabs button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  transition: background .12s, color .12s;
  font-size: 12px;
}

.audienceTabs button:hover {
  color: var(--text);
}

.audienceTabs button.on {
  background: var(--accent-soft);
  color: var(--accent);
}

.petCard {
  position: relative;
}

.avatarBtn {
  position: absolute;
  border: 1px solid var(--line-strong);
  color: #aaa;
  display: flex;
  cursor: pointer;
  background: #0000008c;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
  padding: 0;
  transition: color .12s, background .12s;
  font-size: 14px;
  top: 8px;
  right: 8px;
}

.avatarBtn:hover {
  color: var(--accent);
  background: #000000bf;
}

.avatarBtn.on {
  color: var(--accent);
  cursor: default;
  border-color: var(--accent-line);
  background: #5fbeeb2e;
}

.petCard.isAvatar {
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.petSize {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: #ffffff0f;
  border-radius: 4px;
  flex: none;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.petLookControl {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
}

.petLookControl select {
  appearance: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  background: #000000a6;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
}

.petLookControl select:hover {
  border-color: var(--accent-line);
}

.petPortalSelect {
  appearance: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  background: #ffffff08;
  border-radius: 8px;
  padding: 6px 10px;
}

.modalScrim {
  position: fixed;
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  background: #000000b3;
  justify-content: center;
  align-items:  center;
  padding: 20px;
  inset: 0;
}

.summonScrim {
  position: fixed;
  z-index: 200;
  display: flex;
  animation: summonIn .4s ease-out 1;
  background: radial-gradient(#060615 0%, #020205 70%, #000 100%);
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 18px;
  padding: 24px;
  inset: 0;
}

@keyframes summonIn {
  from {
    opacity: 0;
    transform: scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.summonHead {
  display: flex;
  border: 1px solid var(--accent-line);
  background: #ffffff0a;
  border-radius: 999px;
  align-items:  center;
  gap: 18px;
  padding: 10px 18px;
}

.summonLabel {
  letter-spacing: .8px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}

.summonProgress {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.summonSkip {
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.summonStage {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  animation: summonStageIn .8s ease-out 1;
  border-radius: 22px;
  width: min(720px, 90vw);
  max-height: 60vh;
  box-shadow: 0 0 80px #60c0ff26, 0 20px 60px #0009;
}

@keyframes summonStageIn {
  from {
    transform: scale(.85);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.summonMeta {
  text-align: center;
  min-height: 56px;
}

.summonName {
  letter-spacing: .2px;
  margin: 0 0 4px;
  font-size: 26px;
}

.summonName.tier-mythic {
  color: #ffd166;
  text-shadow: 0 0 22px #ffb4508c;
}

.summonName.tier-legendary {
  color: #d6a3ff;
  text-shadow: 0 0 18px #b478ff73;
}

.summonName.tier-epic {
  color: #b3e5ff;
}

.modal {
  border: 1px solid var(--line);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  background: radial-gradient(at 20% 0%, #131726 0%, #060608 55%, #050507 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  padding: 28px;
}

.modal:before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .35;
  animation: modalAura 24s linear infinite;
  mix-blend-mode: screen;
  background: conic-gradient(at 70% 20%, #60c0ff2e, #b478ff1a, #ffd28c1f, #60c0ff2e);
  border-radius: 16px;
  inset: 0;
}

@keyframes modalAura {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.modal > * {
  position: relative;
  z-index: 1;
}

.modalClose {
  position: absolute;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  top: 12px;
  right: 12px;
}

.modalClose:hover {
  color: var(--text);
  background: var(--card);
}

.profileHead {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.profileHead h2 {
  color: var(--text);
  font-size: 24px;
}

.profileScore {
  text-align: right;
}

.profileScore .num {
  color: var(--accent);
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.profileScore .lbl {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
}

.profileAvatar .petCanvas {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  max-height: 320px;
}

.profileAvatarEmpty {
  display: flex;
  aspect-ratio: 16 / 10;
  justify-content: center;
  align-items:  center;
  max-height: 320px;
}

.profileStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profileStats .stat {
  padding: 10px 12px;
}

.profileShowcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.profileShowcase .petCanvas {
  aspect-ratio: 1;
}

.petCard.tier-legendary {
  animation: legendaryShimmer 5s linear infinite;
  background: linear-gradient(#ffffff05, #ffffff05) 0 0 / 100% 100% padding-box padding-box, linear-gradient(135deg, #fbbf24, #f59e0b 30%, #fde68a 50%, #fbbf24 70%, #f59e0b) 0 0 / 300% 300% border-box;
  border: 1.5px solid #0000;
}

@keyframes legendaryShimmer {
  0% {
    background-position: 0 0, 0%;
  }

  100% {
    background-position: 0 0, 300%;
  }
}

.petCard.tier-mythic {
  animation: mythicShimmer 7s linear infinite;
  background: linear-gradient(#ffffff05, #ffffff05) 0 0 / 100% 100% padding-box padding-box, linear-gradient(45deg, #f0abfc, #fbbf24, #5fbeeb, #c4b5fd, #f0abfc) 0 0 / 400% 400% border-box;
  border: 2px solid #0000;
}

@keyframes mythicShimmer {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 400% 0%;
  }
}

.viewportCanvas {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  inset: 0;
}

.viewportCanvas canvas {
  width: 100% !important;
  height: 100% !important;
}
