:root {
  color-scheme: dark;
  --bg: #080b0f;
  --grid: rgba(60, 199, 224, .12);
  --top: #062b32;
  --rail: #06191e;
  --panel: #20262d;
  --panel-2: #171d23;
  --panel-3: #2a3038;
  --line: #3a444d;
  --cyan: #5bd8ea;
  --cyan-dim: #0b6575;
  --text: #f4f4f4;
  --muted: #b8c0c7;
  --gold: #f3c647;
  --danger: #ff6173;
  --ok: #31d72f;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(118deg, transparent 0 36%, rgba(91,216,234,.06) 36.2% 36.6%, transparent 36.8%),
    repeating-linear-gradient(110deg, transparent 0 24px, var(--grid) 25px 27px, transparent 28px 70px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 8px 14px;
  background: var(--top);
  border-bottom: 3px solid #022027;
  box-shadow: 0 5px 18px rgba(0,0,0,.35);
}

.brand img {
  width: 190px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--cyan);
  font-weight: 800;
}

.nav a:hover,
.text-button:hover { color: white; }

.text-button {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
}

.side-rail {
  position: fixed;
  top: 74px;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 272px;
  padding: 14px 10px;
  background: rgba(3, 13, 16, .94);
  border-right: 2px solid var(--line);
  overflow: auto;
}

.side-rail a {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 2px solid #064b58;
  border-radius: 8px;
  background: #062a32;
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.side-rail a::after {
  content: "›";
  justify-self: end;
  font-size: 1.8rem;
  line-height: 1;
}

.side-rail a:hover {
  transform: translateX(5px);
  border-color: var(--cyan);
  background: #073844;
  box-shadow: 0 0 0 1px rgba(91, 216, 234, .28), inset 0 0 18px rgba(91, 216, 234, .08);
}

.side-rail span {
  color: white;
  font-size: 1.2rem;
}

.shell {
  width: min(1260px, calc(100% - 320px));
  margin-left: max(304px, calc((100vw - 1260px) / 2 + 160px));
  padding: 28px 20px 56px;
}

.hero-grid,
.section-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
}

.hero-grid.has-home-banner {
  padding: 18px;
  border: 1px solid #303841;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, .92), rgba(8, 11, 15, .62)),
    var(--home-banner) center / cover;
}

.hero-copy,
.score-panel,
.review-card,
.user-card,
.compact-list,
.form,
.notice,
.profile-head,
.profile-bio {
  background: var(--panel);
  border: 1px solid #303841;
  border-radius: 7px;
  box-shadow: 0 16px 40px rgba(0,0,0,.26);
}

.hero-copy { padding: 28px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 900;
}

h1, h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-shadow: 0 2px 0 #000;
}

h2 { font-size: 1.35rem; }

.lede,
.muted-text,
.empty,
.footer,
small {
  color: var(--muted);
}

.lede {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.6;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin: 24px auto 0;
  max-width: 860px;
}

.search-bar.full {
  margin: 0 0 22px;
  max-width: none;
}

input,
textarea {
  width: 100%;
  border: 2px solid #38424b;
  border-radius: 7px;
  padding: 12px 14px;
  background: #f4f4f4;
  color: #1a242b;
  outline: none;
}

textarea { min-height: 150px; }

input:focus,
textarea:focus { border-color: var(--cyan); }

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

button:hover,
.button:hover { filter: brightness(1.2); }

.button.small { min-height: 36px; }
.button.wide { width: 100%; }
.button.muted, button:disabled { background: #222a31; color: var(--muted); cursor: not-allowed; }
.discord { background: #5865f2; color: white; }
.twitter { background: #f4f4f4; color: #111; }

.score-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.score-panel img {
  width: 230px;
  max-width: 100%;
}

.hero-stars {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--gold);
  font-size: 3.7rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(243, 198, 71, .4);
}

.hero-stars span { animation: starPulse 1.35s ease-in-out infinite; }
.hero-stars span:nth-child(2) { animation-delay: .12s; }
.hero-stars span:nth-child(3) { animation-delay: .24s; }
.hero-stars span:nth-child(4) { animation-delay: .36s; }
.hero-stars span:nth-child(5) { animation-delay: .48s; }

@keyframes starPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.16); filter: brightness(1.35); }
}

.section-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  margin-top: 28px;
}

.announcement-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.announcement-strip article {
  padding: 14px 16px;
  border: 1px solid var(--cyan-dim);
  border-radius: 7px;
  background: rgba(6, 42, 50, .84);
}

.announcement-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.section-heading.standalone { align-items: start; }
.section-heading a { color: var(--cyan); font-weight: 900; }

.review-list { display: grid; gap: 14px; }
.review-card {
  padding: 16px;
  overflow: visible;
}

.review-card p {
  margin: 14px 0 0;
  line-height: 1.55;
  white-space: pre-line;
}

.review-top,
.score-strip,
.metric-row,
.status-line,
.check-row {
  display: flex;
  align-items: center;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: #0b6575;
  color: var(--cyan);
  font-weight: 900;
}

.score-strip {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.score-strip span,
.metric-row span {
  padding: 8px 10px;
  border-radius: 7px;
  background: #131920;
  color: var(--muted);
}

.compact-list { overflow: hidden; }
.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.compact-row:last-child { border-bottom: 0; }

.narrow {
  width: min(720px, 100%);
  margin: 0 auto;
}

.narrow.block { margin-top: 28px; }
.auth-stack, .form { display: grid; gap: 14px; margin-top: 22px; }
.form { padding: 18px; }

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

.check-row {
  grid-template-columns: 20px 1fr;
  color: white;
}
.check-row input { width: auto; }

.score-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.results-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.user-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #151b21;
}

.user-card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border: 3px solid #39454f;
  border-radius: 8px;
  background: #111820;
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 950;
}

.avatar.large {
  width: 156px;
  height: 156px;
  font-size: 3rem;
}

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

.profile-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
}

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

.profile-head.has-banner {
  min-height: 220px;
  align-items: end;
}

.profile-banner {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 40, 48, .12), rgba(33, 40, 48, .94)),
    var(--profile-banner) center / cover;
  opacity: .9;
}

.profile-head h1 {
  text-align: left;
}

.profile-score-card {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 190px;
  padding: 14px;
  border-radius: 7px;
  background: rgba(10, 16, 22, .86);
}

.score-number {
  color: var(--cyan);
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
}

.display-stars {
  display: inline-flex;
  gap: 2px;
  color: #56616b;
  font-size: 1.8rem;
  line-height: 1;
}

.display-stars span.is-on,
.display-stars span.is-half {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(243, 198, 71, .35);
}

.small-stars {
  font-size: 1.1rem;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stats-card > div {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #303841;
  border-radius: 7px;
  background: var(--panel);
}

.stats-card span {
  color: var(--muted);
}

.status-line {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--cyan);
}

.online-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

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

.profile-bio {
  padding: 18px;
  margin-bottom: 18px;
}

.profile-bio p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

.report-box { color: var(--muted); }
.report-box form { display: flex; gap: 8px; margin-top: 10px; }

.notice {
  padding: 12px 14px;
  margin-bottom: 16px;
}
.notice.error { border-color: rgba(255,97,115,.6); color: var(--danger); }
.notice.success { border-color: rgba(49,215,47,.6); color: var(--ok); }

.counter {
  color: var(--muted);
  justify-self: end;
}

.typeahead {
  position: relative;
}

.typeahead-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 460px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  background: #171d23;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.typeahead-panel.is-open {
  display: grid;
  gap: 8px;
}

.typeahead-row,
.linked-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #232a31;
  color: var(--text);
}

.typeahead-row:hover,
.typeahead-row:focus {
  background: #2c3540;
  color: var(--cyan);
}

.typeahead-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #10161d;
  color: var(--gold);
  font-weight: 900;
}

.typeahead-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.typeahead-copy {
  display: grid;
  min-width: 0;
}

.typeahead-copy strong,
.typeahead-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typeahead-copy small,
.typeahead-empty {
  color: var(--muted);
}

.typeahead-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #9aa1a8;
}

.linked-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.linked-row {
  justify-content: space-between;
}

.linked-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.linked-row small {
  color: var(--muted);
}

.auth-stack.compact {
  margin-top: 10px;
}

.button.google {
  background: #f4f4f4;
  color: #1a242b;
}

.star-stack {
  display: grid;
  gap: 12px;
}

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

.review-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--cyan-dim);
  border-radius: 7px;
  background: #111820;
  color: var(--muted);
  font-weight: 800;
}

.review-steps b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.star-rating {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
}

.star-rating legend {
  float: left;
  width: min(180px, 100%);
  color: var(--text);
  font-weight: 900;
}

.star-rating.optional {
  margin-top: 6px;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #56616b;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.stars button.is-on {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(243, 198, 71, .42);
}

.stars button.is-preview {
  color: #b99b35;
}

.stars button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.reviewer-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  isolation: isolate;
}

.reviewer-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #111820;
  color: var(--cyan);
  font-weight: 900;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-popover {
  position: absolute;
  z-index: 80;
  top: 0;
  right: calc(100% - 1px);
  left: auto;
  display: none;
  width: 260px;
  padding: 12px;
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  background: #141b22;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .52);
  white-space: normal;
  pointer-events: auto;
  user-select: text;
}

.reviewer-chip:hover .reviewer-popover,
.reviewer-chip:focus-within .reviewer-popover {
  display: grid;
  gap: 8px;
}

.reviewer-chip > .provider-link,
.reviewer-chip > a[href*="discord"],
.reviewer-chip > a[href*="google"],
.reviewer-chip > a[href*="twitter"],
.reviewer-chip > span:not(.reviewer-avatar):not(.verify-badge) {
  max-width: 100%;
}

.reviewer-popover a {
  color: var(--cyan);
}

.reviewer-name,
.popover-title {
  color: var(--text);
}

.reviewer-name:hover,
.popover-title:hover {
  color: var(--cyan);
}

.compact-chip {
  margin-top: 8px;
}

.compact-chip .reviewer-avatar {
  width: 28px;
  height: 28px;
  font-size: .78rem;
}

.compact-chip .reviewer-popover {
  right: auto;
  left: 0;
  top: calc(100% - 1px);
}

.reviewer-popover:hover {
  display: grid;
  gap: 8px;
}

.review-card {
  overflow: visible;
}

.provider-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2d3540;
  color: white;
  font-size: .78rem;
  font-weight: 950;
}

.provider-icon.discord { background: #5865f2; }
.provider-icon.google { background: #f4f4f4; color: #1a242b; }
.provider-icon.twitter { background: #111; }
.provider-icon.vrc { background: #0b6575; color: var(--cyan); }

.review-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.small-action {
  color: var(--cyan);
  font-weight: 900;
}

.verify-badge {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #2b8cff;
  color: white;
  font-size: .76rem;
  font-weight: 950;
}

.link-pill {
  color: var(--cyan);
}

.verified-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-box {
  display: inline-flex;
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid var(--cyan-dim);
  border-radius: 7px;
  background: #111820;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: 4px;
}

.inline-form {
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.legal-page section {
  margin-top: 18px;
}

.legal-page h2 {
  text-align: left;
  font-size: 1.25rem;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.6;
}

.legal-checks .check-row {
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cyan);
}

.admin-shell {
  display: grid;
  gap: 18px;
}

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

.admin-stats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #303841;
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
}

.admin-stats strong {
  color: var(--cyan);
  font-size: 1.8rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
}

.admin-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 7px;
}

.admin-preview h3 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #151b21;
}

.admin-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 6px;
  overflow: auto;
}

.admin-table > div {
  display: grid;
  grid-template-columns: 54px minmax(150px, 1fr) 90px minmax(220px, 1.4fr) 80px;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #151b21;
}

.admin-table-head {
  color: var(--cyan);
  font-weight: 900;
}

.view-mode {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-return {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  padding: 8px;
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  background: rgba(6, 25, 30, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.danger-button {
  background: #5b1720;
  color: #ffb9c1;
}

.admin-actions {
  display: flex;
  align-items: start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.report-row {
  align-items: start;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-left: 272px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: #05090c;
}

@media (max-width: 960px) {
  .side-rail { display: none; }
  .shell {
    width: min(100% - 24px, 1180px);
    margin: 0 auto;
    padding-inline: 0;
  }
  .footer { margin-left: 0; }
  .hero-grid,
  .section-grid,
  .profile-head,
  .admin-grid,
  .admin-stats { grid-template-columns: 1fr; }
  .reviewer-popover {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
  }
  .nav { gap: 12px; font-size: .92rem; }
}

@media (max-width: 620px) {
  .topbar,
  .search-bar,
  .report-box form,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }
  .score-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; text-align: left; }
}
