:root {
  color-scheme: dark;
  --bg: #08090e;
  --panel: #12141b;
  --panel-2: #1a1d27;
  --panel-3: #222633;
  --line: #343647;
  --line-strong: #5b6074;
  --text: #f5f3fa;
  --muted: #bbb6c9;
  --dim: #858093;
  --silver: #f1f2f5;
  --purple: #8b5cf6;
  --purple-strong: #a978ff;
  --purple-deep: #4f2bbd;
  --red: #e5483f;
  --gold: #d0a24d;
  --cyan: #4fb7c7;
  --green: #54b96f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  --ui-label-size: 0.82rem;
  --ui-label-weight: 850;
  --ui-small-label-size: 0.76rem;
  --ui-small-label-weight: 850;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg), #11131a 52%, #181225);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
label.file-action {
  user-select: none;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.board-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-width: 0;
  padding-bottom: 18px;
}

.board-topbar {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.topbar-brand {
  display: grid;
  min-width: 0;
  align-content: center;
}

.topbar h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border: 1px solid rgba(79, 183, 199, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #0d0f15;
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 6px;
  color: var(--purple-strong);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.header-kicker {
  margin: 0 0 6px;
  color: var(--purple-strong);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.brand-home {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  margin-bottom: 7px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
}

.brand-logo-wordmark {
  width: min(260px, 56vw);
  max-height: 82px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
}

.brand-home-compact .brand-logo-wordmark {
  width: min(260px, 56vw);
  max-height: 82px;
}

.brand-home:hover .brand-logo {
  filter: drop-shadow(0 14px 26px rgba(139, 92, 246, 0.36)) brightness(1.06);
}

.brand-home:focus-visible {
  outline: 3px solid rgba(79, 183, 199, 0.38);
  outline-offset: 3px;
}

.topbar-actions,
.board-actions,
.editor-actions,
.board-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-nav {
  display: grid;
  grid-template-rows: 80px 40px;
  align-content: center;
  align-items: center;
  justify-items: start;
  gap: 8px;
}

.board-nav .brand-home {
  margin-bottom: 0;
}

.board-topbar-actions {
  display: grid;
  grid-template-rows: 80px 40px;
  align-self: start;
  justify-items: end;
  align-items: center;
  align-content: center;
  gap: 8px;
}

.board-topbar-actions .data-menu {
  transform: translateY(2px);
}

.data-menu {
  position: relative;
}

.data-menu summary {
  list-style: none;
}

.data-menu summary::-webkit-details-marker {
  display: none;
}

.data-menu summary::after {
  margin-left: 8px;
  color: var(--muted);
  content: "v";
  font-size: 0.68rem;
}

.data-menu[open] summary {
  border-color: var(--line-strong);
}

.data-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 210px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px;
  background: #0e1017;
  box-shadow: var(--shadow);
}

.data-menu-panel button,
.data-menu-panel .file-action {
  display: flex;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1;
  text-align: left;
}

.data-menu-panel button:hover,
.data-menu-panel .file-action:hover {
  background: rgba(139, 92, 246, 0.13);
}

.data-menu-panel .danger-action {
  color: #ffd8d4;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.solid-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  color: #fff;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.ghost-button:hover,
.character-card:hover {
  border-color: var(--line-strong);
}

.solid-button:hover {
  filter: brightness(1.06);
}

.solid-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.65);
  opacity: 0.58;
}

.file-action {
  position: relative;
  cursor: pointer;
}

.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px 0 18px;
  background: transparent;
  backdrop-filter: none;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1;
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.16);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.filter-tab.is-active {
  border-color: rgba(169, 120, 255, 0.76);
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
}

.filter-menu {
  position: relative;
}

.filter-menu summary {
  list-style: none;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.note-source-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.note-source-filter-button::after {
  color: var(--muted);
  content: "v";
  font-size: 0.68rem;
}

.filter-menu[open] .note-source-filter-button {
  border-color: var(--line-strong);
}

.filter-menu-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 224px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px;
  background: #0e1017;
  box-shadow: var(--shadow);
}

.filter-menu-panel button {
  display: flex;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1;
  text-align: left;
}

.filter-menu-panel button:hover,
.filter-menu-panel button.is-active {
  background: rgba(139, 92, 246, 0.16);
}

.community-sort {
  display: inline-flex;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.community-sort-button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.community-sort-button:last-child {
  border-right: 0;
}

.community-sort-button.is-active {
  color: #fff;
  background: rgba(79, 183, 199, 0.18);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: 20px;
  padding-top: 30px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: 260px minmax(138px, 1fr);
  min-height: 398px;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #11131a, #0d0f15);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(169, 120, 255, 0.54);
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.game-card-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  background: #05060a;
}

.game-card-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.16), rgba(5, 6, 10, 0.8)),
    linear-gradient(90deg, rgba(5, 6, 10, 0.58), transparent 50%, rgba(28, 18, 47, 0.46));
}

.game-card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.74);
  transform: scale(1.02);
}

.game-logo {
  position: relative;
  z-index: 1;
  max-width: min(76%, 340px);
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.72));
}

.game-card-ggst .game-logo,
.game-card-uni2 .game-logo {
  max-width: min(86%, 420px);
  max-height: 150px;
}

.game-card-text {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px solid rgba(202, 196, 220, 0.11);
  padding: 16px;
}

.game-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-card-title-row h2,
.game-card-text p {
  margin: 0;
}

.game-card-title-row h2 {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.12;
  min-width: 0;
}

.game-card-meta {
  flex: 0 0 auto;
  border: 1px solid rgba(169, 120, 255, 0.46);
  border-radius: 999px;
  padding: 4px 8px;
  color: #f3ecff;
  background: rgba(139, 92, 246, 0.13);
  font-size: 0.75rem;
  font-weight: 900;
}

.game-card-description {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.38;
}

.game-data-version {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  margin-top: auto;
  border-top: 1px solid rgba(202, 196, 220, 0.1);
  padding-top: 9px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

.game-data-version strong {
  color: rgba(243, 236, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
}

.game-select-page .app-shell {
  width: min(1240px, calc(100% - 40px));
  padding-top: 44px;
}

.game-select-page .topbar {
  display: grid;
  min-height: auto;
  justify-content: center;
  margin-bottom: 22px;
  text-align: center;
}

.game-select-page .topbar-brand {
  justify-items: center;
}

.game-select-page .brand-logo-wordmark {
  width: min(560px, 84vw);
  max-height: 174px;
}

.game-select-page .topbar h1 {
  max-width: 980px;
  font-size: 3.28rem;
  font-weight: 950;
  line-height: 0.98;
}

.selector-subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.4;
}

.selector-description {
  max-width: 850px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.52;
}

.homepage-copy {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(18, 20, 27, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.homepage-copy .storage-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  border: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1.45;
}

.homepage-copy .storage-banner strong {
  color: var(--text);
  font-weight: 950;
}

.homepage-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.homepage-actions .solid-button,
.homepage-actions .ghost-button {
  min-height: 44px;
  padding-inline: 16px;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
}

.homepage-section {
  scroll-margin-top: 28px;
  margin-top: 34px;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 22px;
  background: rgba(18, 20, 27, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.homepage-section-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
}

.homepage-section-title {
  display: grid;
  max-width: 820px;
  gap: 8px;
}

.homepage-section-title .eyebrow {
  margin: 0;
}

.homepage-section-title h2,
.homepage-section-title p {
  margin: 0;
}

.homepage-section-title h2 {
  color: #fff;
  font-size: 1.92rem;
  font-weight: 950;
  line-height: 1.08;
}

.homepage-section-title p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.5;
}

.homepage-section-marker,
.game-count-pill {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 183, 199, 0.32);
  border-radius: 999px;
  padding: 0 10px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.09);
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.homepage-section-body {
  margin-top: 20px;
}

.homepage-section .game-grid {
  padding-top: 0;
}

.homepage-faq {
  display: grid;
}

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

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  background: rgba(10, 11, 17, 0.52);
}

.faq-item[open] {
  border-color: rgba(169, 120, 255, 0.28);
  background: rgba(139, 92, 246, 0.09);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  padding: 16px 58px 16px 18px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.25;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 1px solid rgba(169, 120, 255, 0.52);
  border-radius: 7px;
  color: #f3ecff;
  background-color: rgba(139, 92, 246, 0.18);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size:
    9px 2px,
    2px 9px;
  content: "";
}

.faq-item[open] summary::after {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 9px 2px;
}

.faq-item p {
  margin: 0;
  padding: 0 58px 17px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.52;
}

.how-it-works {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.how-it-works h2,
.how-it-works h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(202, 196, 220, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.how-it-works li div {
  display: grid;
  gap: 4px;
}

.how-it-works strong {
  font-weight: 900;
}

.how-it-works li span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.step-count {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 120, 255, 0.58);
  border-radius: 7px;
  color: #f7f0ff;
  background: rgba(139, 92, 246, 0.22);
  font-weight: 950;
  line-height: 1;
}

.community-preview {
  display: grid;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(79, 183, 199, 0.1), transparent 44%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(13, 15, 21, 0.96) 58%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.community-preview {
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
  gap: 22px;
  align-items: center;
}

.homepage-community-section .community-preview {
  margin-top: 0;
}

.community-preview-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.community-preview-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.community-preview-header .eyebrow {
  margin: 0;
}

.community-preview-count {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(79, 183, 199, 0.3);
  border-radius: 999px;
  padding: 0 8px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
}

.community-preview h2,
.community-preview h3,
.community-preview p,
.community-preview ul {
  margin: 0;
}

.community-preview h2,
.community-preview h3 {
  max-width: 510px;
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1.12;
}

.community-preview-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.48;
}

.community-preview ul {
  display: grid;
  gap: 10px;
  padding: 2px 0 0;
  list-style: none;
}

.community-preview li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.community-preview li strong {
  color: var(--text);
  font-weight: 900;
}

.community-preview-check {
  position: relative;
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 120, 255, 0.46);
  border-radius: 7px;
  color: #f3ecff;
  background: rgba(139, 92, 246, 0.16);
  font-size: 0;
  font-weight: 950;
  line-height: 1;
}

.community-preview-check::before,
.community-preview-check::after {
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.community-preview-check::after {
  transform: rotate(90deg);
}

.community-preview-cta {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 120, 255, 0.58);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  box-shadow: 0 14px 34px rgba(79, 43, 189, 0.24);
  font-size: 0.86rem;
  font-weight: 950;
}

.community-preview-cta::after {
  margin-left: 8px;
  content: ">";
  color: rgba(255, 255, 255, 0.82);
}

.community-preview-cta:hover {
  border-color: rgba(79, 183, 199, 0.48);
  filter: brightness(1.08);
}

.community-preview-browser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.16);
  border-radius: 8px;
  background: #0d0f15;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

.community-preview-browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid rgba(202, 196, 220, 0.1);
  padding: 10px 12px;
  background: rgba(5, 6, 10, 0.72);
}

.community-preview-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.community-preview-dot.is-red {
  background: #e5483f;
}

.community-preview-dot.is-gold {
  background: #d0a24d;
}

.community-preview-dot.is-green {
  background: #54b96f;
}

.community-preview-url {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.11);
  border-radius: 6px;
  margin-left: 6px;
  padding: 5px 9px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-preview-viewport {
  height: 376px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  scrollbar-color: rgba(79, 183, 199, 0.52) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.community-preview-viewport::-webkit-scrollbar {
  width: 9px;
}

.community-preview-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.community-preview-viewport::-webkit-scrollbar-thumb {
  border: 2px solid rgba(13, 15, 21, 0.98);
  border-radius: 999px;
  background: rgba(79, 183, 199, 0.56);
}

.community-preview-feed {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.community-preview-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.community-preview-card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.96), rgba(18, 20, 27, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.community-preview-card:hover {
  border-color: rgba(79, 183, 199, 0.34);
}

.community-preview-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.community-preview-matchup {
  display: flex;
  min-width: 0;
  gap: 9px;
  align-items: center;
}

.community-preview-avatars {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.community-preview-avatars.has-player {
  width: 48px;
}

.community-preview-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(202, 196, 220, 0.16);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: #05060a;
}

.community-preview-avatars.has-player .community-preview-avatar + .community-preview-avatar {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 28px;
  height: 28px;
  box-shadow: -6px -4px 0 #12141b;
}

.community-preview-matchup-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.community-preview-matchup-text strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-preview-matchup-text span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.community-preview-score {
  flex: 0 0 auto;
  border: 1px solid rgba(84, 185, 111, 0.36);
  border-radius: 999px;
  padding: 3px 7px;
  color: #eaffe8;
  background: rgba(84, 185, 111, 0.1);
  font-size: 0.72rem;
  font-weight: 950;
}

.community-preview-card-body {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.community-preview-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(79, 183, 199, 0.28);
  border-radius: 7px;
  padding: 0 9px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.08);
  font-size: 0.74rem;
  font-weight: 950;
}

.community-preview-action.is-source {
  border-color: rgba(208, 162, 77, 0.3);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.08);
}

.community-preview-action:hover {
  border-color: rgba(169, 120, 255, 0.5);
  color: #fff;
}

.game-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(79, 183, 199, 0.3);
  border-radius: 999px;
  padding: 0 8px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
}

.roster-help {
  display: grid;
  gap: 10px;
  margin: 2px 0 8px;
}

.storage-banner,
.sidestep-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(208, 162, 77, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(208, 162, 77, 0.075);
  font-size: 0.84rem;
  font-weight: 750;
}

.storage-banner strong,
.sidestep-legend strong {
  color: #fff5db;
  font-weight: 950;
}

.sidestep-legend {
  border-color: rgba(79, 183, 199, 0.24);
  background: rgba(79, 183, 199, 0.07);
}

.data-version-banner {
  border-color: rgba(169, 120, 255, 0.28);
  background: rgba(139, 92, 246, 0.075);
}

.data-version-banner strong {
  color: #f3ecff;
}

.storage-banner-version {
  flex-basis: 100%;
  color: #d8cff1;
  font-size: 0.8rem;
  font-weight: 850;
}

.sidestep-legend-hint {
  color: var(--cyan);
  font-weight: 850;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 12px;
  padding-top: 10px;
}

.character-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 194px;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #12141b, #0d0f15);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.character-image-link:focus-visible,
.character-name-link:focus-visible,
.game-card:focus-visible,
.ghost-button:focus-visible,
.solid-button:focus-visible,
.skip-link:focus-visible,
.faq-item summary:focus-visible,
.seo-answer summary:focus-visible,
.community-preview-cta:focus-visible,
.community-preview-action:focus-visible,
.community-preview-viewport:focus-visible,
.filter-tab:focus-visible,
.community-sort-button:focus-visible,
.add-card-button:focus-visible,
.mini-button:focus-visible,
.inline-move:focus-visible,
.move-chip:focus-visible,
.move-chip-label:focus-visible,
.move-chip-remove:focus-visible,
.move-result:focus-visible,
.move-filter-toggle:focus-visible,
.move-filter select:focus-visible,
.note-filter-button:focus-visible,
.note-filter-panel select:focus-visible,
.note-filter-chip:focus-visible,
.note-player-picker select:focus-visible,
.note-filter-field select:focus-visible,
.data-menu-panel button:focus-visible,
.data-menu-panel .file-action:focus-visible,
.filter-menu-panel button:focus-visible,
.category-option:focus-visible,
.template-option:focus-visible,
.sidestep-badge:focus-visible,
.sidestep-select:focus-visible {
  outline: 3px solid rgba(79, 183, 199, 0.38);
  outline-offset: 2px;
}

.character-image-link {
  display: block;
}

.character-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #05060a;
}

.character-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border-top: 1px solid rgba(202, 196, 220, 0.1);
  padding: 8px 9px;
  background: rgba(10, 11, 17, 0.96);
}

.character-name-link {
  min-width: 0;
}

.character-footer h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.roster[data-game="ggst"],
.roster[data-game="invs"],
.roster[data-game="2xko"],
.roster[data-game="uni2"] {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.roster[data-game="ggst"] .character-footer,
.roster[data-game="invs"] .character-footer,
.roster[data-game="2xko"] .character-footer,
.roster[data-game="uni2"] .character-footer {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 74px;
}

.roster[data-game="ggst"] .character-name-link,
.roster[data-game="2xko"] .character-name-link {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.roster[data-game="ggst"] .character-footer h2,
.roster[data-game="invs"] .character-footer h2,
.roster[data-game="2xko"] .character-footer h2,
.roster[data-game="uni2"] .character-footer h2 {
  display: block;
  width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.roster[data-game="ggst"] .character-traits.compact,
.roster[data-game="invs"] .character-traits.compact,
.roster[data-game="2xko"] .character-traits.compact,
.roster[data-game="uni2"] .character-traits.compact {
  max-width: none;
  justify-content: flex-start;
}

.sidestep-badge {
  display: inline-flex;
  min-width: 44px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(184, 176, 162, 0.35);
  border-radius: 6px;
  padding: 0 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.sidestep-badge.is-custom {
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16);
}

.sidestep-custom-label,
.sidestep-edit-label {
  font-size: 0.64rem;
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.sidestep-custom-label {
  color: #fff6df;
}

.sidestep-edit-label {
  color: var(--muted);
}

.sidestep-badge.is-ssl {
  border-color: rgba(229, 72, 63, 0.62);
  color: #fff0ee;
  background: rgba(229, 72, 63, 0.22);
}

.sidestep-badge.is-ssr {
  border-color: rgba(79, 183, 199, 0.62);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.22);
}

.sidestep-badge.is-dont-ss {
  border-color: rgba(213, 162, 70, 0.62);
  color: #fff6df;
  background: rgba(213, 162, 70, 0.2);
}

.sidestep-badge.is-unknown {
  border-color: rgba(184, 176, 162, 0.35);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.sidestep-badge:disabled {
  cursor: wait;
  opacity: 0.68;
}

.sidestep-badge.large {
  min-width: 58px;
  min-height: 40px;
  padding-inline: 10px;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
}

.sidestep-select {
  width: 88px;
  min-height: 30px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  outline: none;
  padding: 0 6px;
  color: var(--text);
  background: #101318;
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.sidestep-select.large {
  width: 118px;
  min-height: 40px;
  font-size: var(--ui-label-size);
}

.sidestep-control {
  display: inline-flex;
  align-items: center;
}

.character-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.character-traits.compact {
  max-width: 84px;
}

.character-traits.large {
  max-width: min(480px, 42vw);
}

.trait-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 183, 199, 0.38);
  border-radius: 6px;
  padding: 0 7px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.13);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.trait-badge.large {
  min-height: 30px;
  font-size: 0.78rem;
}

.empty-state,
.not-found {
  display: grid;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.032);
  font-weight: 850;
}

.empty-state-copy {
  grid-column: 1 / -1;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.empty-state-copy h2,
.empty-state-copy p,
.empty-state-copy ul {
  margin: 0;
}

.empty-state-copy h2 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
}

.empty-state-copy p {
  max-width: min(620px, 100%);
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.empty-state-copy ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  text-align: left;
}

.not-found {
  align-content: center;
  gap: 14px;
}

.not-found h1 {
  margin: 0;
  color: var(--text);
}

.board-page .topbar {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px);
  align-items: center;
  min-height: 153px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(202, 196, 220, 0.13);
  background: transparent;
  backdrop-filter: none;
}

.board-nav {
  align-self: flex-start;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.board-nav .brand-home {
  margin: 0;
}

.back-link {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.fighter-summary {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 16px;
}

.fighter-summary > div {
  min-width: 0;
}

.fighter-image {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(202, 196, 220, 0.16);
  border-radius: 8px;
  object-fit: cover;
  background: #05060a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.board-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1.25;
}

.board-main {
  min-height: 0;
  min-width: 0;
}

.board-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid rgba(202, 196, 220, 0.1);
  padding: 18px 0 14px;
}

.board-intro h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 950;
}

.board-intro p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.community-intro-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.note-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.note-mode-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 0 14px;
  color: var(--muted);
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.note-mode-toggle-option + .note-mode-toggle-option {
  border-left: 1px solid rgba(202, 196, 220, 0.12);
}

.note-mode-toggle-option:hover,
.note-mode-toggle-option:focus-visible {
  color: var(--text);
  background: rgba(139, 92, 246, 0.13);
}

.note-mode-toggle-option.is-active,
.note-mode-toggle-option[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.jump-private-notes {
  flex: 0 0 184px;
  width: 184px;
  min-height: 40px;
  white-space: nowrap;
}

.private-notes-intro {
  scroll-margin-top: 20px;
}

.note-control-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: flex-end;
  gap: 8px;
}

.note-filter-control {
  display: grid;
  position: relative;
  flex: 0 0 230px;
  justify-items: end;
}

.note-add-button {
  position: relative;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  overflow: hidden;
  border-radius: 7px;
  padding: 0;
  color: transparent;
  font-size: 0;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.25);
}

.note-add-button::before,
.note-add-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.note-add-button::before {
  width: 14px;
  height: 2px;
}

.note-add-button::after {
  width: 2px;
  height: 14px;
}

.note-filter-wrap {
  position: relative;
  display: grid;
  justify-items: end;
  width: min(230px, 100%);
}

.note-filter-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  font-weight: 900;
}

.note-filter-button:hover,
.note-filter-button.is-active,
.note-filter-button[aria-expanded="true"] {
  border-color: rgba(208, 162, 77, 0.58);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.14);
}

.note-filter-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.note-filter-panel {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(420px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 160px));
  overflow: auto;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  background: #101318;
  box-shadow: var(--shadow);
}

.note-filter-panel-header,
.note-filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-filter-panel-header strong {
  font-size: 1rem;
  font-weight: 950;
}

.note-filter-section {
  display: grid;
  gap: 8px;
}

.note-filter-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.note-filter-section select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 0 8px;
  color: var(--text);
  background: #0b0d13;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1;
}

.note-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.note-filter-chip {
  min-height: 30px;
  border: 1px solid rgba(var(--category-accent-rgb, 208, 162, 77), 0.46);
  border-radius: 999px;
  padding: 0 10px;
  color: rgb(var(--category-accent-rgb, 208, 162, 77));
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.08);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.note-filter-chip:hover,
.note-filter-chip.is-selected {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.72);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.2);
}

.note-filter-field {
  display: grid;
  width: min(230px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-filter-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 0 8px;
  color: var(--text);
  background: #0b0d13;
  font-size: var(--ui-label-size);
  font-weight: var(--ui-label-weight);
  line-height: 1;
}

.note-filter-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.13);
}

.notes-panel {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 16px 0 36px;
}

.note-rows {
  min-width: 0;
}

.community-notes-panel {
  padding-bottom: 20px;
}

.guide-sheet-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-section {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.guide-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(202, 196, 220, 0.09);
  padding-bottom: 9px;
}

.guide-section-header h3,
.guide-section-header p {
  margin: 0;
}

.guide-section-header h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.guide-section-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.38;
}

.guide-section-count {
  flex: 0 0 auto;
  border: 1px solid rgba(79, 183, 199, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.08);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
  white-space: nowrap;
}

.guide-section-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.guide-section .note-row {
  box-shadow: none;
}

.guide-section-empty {
  border: 1px dashed rgba(202, 196, 220, 0.16);
  border-radius: 7px;
  padding: 12px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.guide-section-add {
  justify-self: start;
}

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid rgba(202, 196, 220, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.community-toolbar > .note-filter-wrap {
  flex: 0 0 auto;
  justify-items: start;
  width: auto;
}

.community-toolbar > .note-filter-wrap .note-filter-button {
  white-space: nowrap;
}

.community-toolbar .community-sort {
  flex: 0 0 auto;
}

.community-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.community-note-add-button {
  flex: 0 0 auto;
}

.community-identity-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.community-identity-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.72);
}

.community-identity-dialog {
  display: grid;
  width: min(420px, 100%);
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  color: var(--text);
  background: #10131b;
  box-shadow: var(--shadow);
}

.community-identity-dialog h2,
.community-identity-dialog p {
  margin: 0;
}

.community-identity-dialog h2 {
  font-size: 1.05rem;
}

.community-identity-dialog p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.community-identity-error {
  color: #ffd8d4 !important;
  font-weight: 850;
}

.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.note-row:hover {
  border-color: rgba(169, 120, 255, 0.36);
}

.note-body-cell {
  min-width: 0;
}

.note-freeform {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-player-scope {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(79, 183, 199, 0.38);
  border-radius: 999px;
  padding: 2px 8px 2px 3px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.note-player-scope.is-all {
  padding: 0 8px;
  border-color: rgba(208, 162, 77, 0.34);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.1);
}

.note-player-scope.is-guide {
  padding: 0 8px;
  border-color: rgba(169, 120, 255, 0.38);
  color: #f4edff;
  background: rgba(169, 120, 255, 0.12);
}

.note-player-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: rgba(255, 255, 255, 0.08);
}

.note-player-label {
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.community-note-meta span:first-child {
  color: #e9fbff;
}

.note-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-tag-row {
  margin-top: 12px;
}

.note-tag-chip,
.move-trait-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(208, 162, 77, 0.34);
  border-radius: 999px;
  padding: 0 8px;
  color: #fff5db;
  background: rgba(208, 162, 77, 0.1);
  font-size: 0.7rem;
  font-weight: 900;
}

.attached-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.note-data-version {
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.community-source {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.community-source-link {
  color: #9fe7ff;
  text-decoration: none;
}

.community-source-link:hover,
.community-source-link:focus-visible {
  color: #dff8ff;
  text-decoration: underline;
}

.attached-move {
  max-width: 100%;
}

.move-trait-chip.is-property {
  border-color: rgba(84, 185, 111, 0.38);
  color: #eaffe8;
  background: rgba(84, 185, 111, 0.1);
}

.move-trait-chip.is-transition {
  border-color: rgba(229, 72, 63, 0.38);
  color: #fff0ee;
  background: rgba(229, 72, 63, 0.12);
}

.inline-move {
  display: inline;
  border: 0;
  border-radius: 5px;
  margin: 0 1px;
  padding: 1px 5px 2px;
  color: #eaffff;
  background: rgba(79, 183, 199, 0.24);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font: inherit;
  font-weight: 900;
  line-height: inherit;
}

.inline-move:hover,
.inline-move:focus-visible {
  background: rgba(79, 183, 199, 0.38);
}

.muted-text {
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 750;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
}

.note-actions {
  opacity: 0.76;
}

.note-row:hover .note-actions,
.note-actions:focus-within {
  opacity: 1;
}

.community-note-actions {
  align-items: center;
}

.community-vote-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.community-vote-controls .mini-button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.community-vote-controls .mini-button.is-active {
  color: #fff;
  background: rgba(84, 185, 111, 0.18);
}

.community-vote-button {
  display: inline-flex;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.82rem;
}

.community-vote-button + .community-vote-button {
  border-left: 1px solid var(--line);
}

.community-vote-button.is-downvote.is-active {
  background: rgba(229, 72, 63, 0.18);
}

.community-vote-count {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 950;
}

.community-vote-button.is-loading {
  opacity: 1;
}

.community-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: community-spin 0.75s linear infinite;
}

.community-progress-state {
  align-items: center;
  text-align: center;
}

.community-progress-state .community-spinner {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-width: 3px;
}

@keyframes community-spin {
  to {
    transform: rotate(360deg);
  }
}

.community-page .topbar {
  min-height: 84px;
}

.community-shell {
  width: min(1320px, calc(100% - 40px));
}

.community-main {
  display: grid;
  gap: 18px;
}

.community-directory-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(202, 196, 220, 0.1);
  padding: 18px 0 14px;
}

.community-directory-intro h2,
.community-directory-intro p {
  margin: 0;
}

.community-directory-intro h2 {
  font-size: 1.55rem;
  font-weight: 950;
}

.community-directory-intro p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.community-directory-meta {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.community-directory-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(150px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid rgba(202, 196, 220, 0.1);
  padding: 0 0 16px;
}

.community-search-box {
  min-width: 0;
}

.community-directory-sort {
  min-height: 36px;
  align-self: end;
}

.community-filter-reset {
  align-self: end;
  white-space: nowrap;
}

.community-category-filter {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding-top: 2px;
}

.community-category-filter h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.community-category-empty {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
}

.community-directory-panel {
  padding-top: 0;
}

.community-directory-feed {
  display: grid;
  gap: 10px;
}

.community-directory-footer {
  display: grid;
  justify-items: center;
  min-height: 26px;
}

.community-load-sentinel {
  width: 100%;
  height: 1px;
}

.community-directory-note {
  align-items: start;
}

.community-directory-note-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.community-directory-matchup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.community-directory-matchup-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.community-directory-matchup-text strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-directory-matchup-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.community-directory-body {
  margin: 0;
}

.community-directory-actions {
  display: grid;
  min-height: 100%;
  min-width: 172px;
  grid-template-rows: auto 1fr auto;
  align-self: stretch;
  justify-items: end;
  gap: 8px;
}

.community-directory-note-controls {
  display: flex;
  grid-row: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.community-open-button,
a.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.mini-button.community-open-button {
  grid-row: 3;
  width: 144px;
  min-height: 36px;
  max-height: 36px;
  align-self: end;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.24);
  white-space: nowrap;
}

a.mini-button.community-open-button:hover,
a.mini-button.community-open-button:focus-visible {
  color: #fff;
  filter: brightness(1.06);
}

.note-row.is-highlighted-community-note {
  border-color: rgba(79, 183, 199, 0.72);
  background: rgba(79, 183, 199, 0.11);
  box-shadow:
    0 0 0 3px rgba(79, 183, 199, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.community-vote-button.is-loading:disabled {
  opacity: 1;
}

.compact-action {
  min-height: 36px;
  padding: 0 10px;
  font-size: var(--ui-label-size);
  line-height: 1;
}

.note-row-editor {
  grid-template-columns: 1fr;
  border-color: rgba(79, 183, 199, 0.48);
  background: #10131b;
}

.note-editor-body textarea {
  min-height: 180px;
}

.note-move-insert {
  display: grid;
  min-width: 0;
}

.row-editor-field,
.editor-stack,
.note-category-picker,
.note-template-picker {
  display: grid;
  gap: 7px;
}

.row-editor-field {
  width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-category-picker,
.note-template-picker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-category-options,
.note-template-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-option,
.template-option {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.category-option {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.42);
  color: rgb(var(--category-accent-rgb, 208, 162, 77));
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.08);
}

.category-option.is-selected {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.72);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.2);
}

.template-option {
  border-radius: 7px;
  text-align: left;
}

.template-option:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.category-option:hover {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.68);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.14);
}

.category-add-button {
  min-width: 30px;
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.row-editor-field input,
.row-editor-field select,
.row-editor-field textarea,
.move-search input,
.move-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 8px;
  color: var(--text);
  background: #0b0d13;
}

.row-editor-field textarea {
  min-height: 94px;
  resize: vertical;
}

.row-editor-field input:focus,
.row-editor-field select:focus,
.row-editor-field textarea:focus,
.move-search input:focus,
.move-filter select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.13);
}

.move-picker {
  position: relative;
  display: grid;
  width: 100%;
  gap: 8px;
}

.selected-moves,
.note-meta {
  display: flex;
  flex-wrap: wrap;
  min-height: 30px;
  gap: 6px;
}

.move-search {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.move-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.move-count {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.move-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.move-filter-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  font-weight: 850;
}

.move-filter-toggle:hover,
.move-filter-toggle.is-active,
.move-filter-toggle[aria-expanded="true"] {
  border-color: rgba(79, 183, 199, 0.5);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.13);
}

.move-filter-toggle-icon {
  position: relative;
  width: 16px;
  height: 14px;
  flex: 0 0 16px;
  background:
    linear-gradient(currentColor, currentColor) 0 2px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 16px 2px no-repeat;
}

.move-filter-toggle-icon::before,
.move-filter-toggle-icon::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.move-filter-toggle-icon::before {
  top: 1px;
  left: 4px;
}

.move-filter-toggle-icon::after {
  top: 9px;
  right: 3px;
}

.move-filter-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(202, 196, 220, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.move-filter-panel[hidden] {
  display: none;
}

.move-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 6px;
}

.move-filter {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.move-filter select {
  min-height: 36px;
  padding: 0 8px;
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.mini-button.move-filter-reset {
  min-height: 36px;
  align-self: end;
  padding-inline: 10px;
}

.move-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 290px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101318;
  box-shadow: var(--shadow);
}

.move-results:empty {
  display: none;
}

.move-result,
.move-result-empty {
  padding: 9px 10px;
}

.move-result {
  display: grid;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.move-result:hover,
.move-result:focus-visible {
  background: rgba(79, 183, 199, 0.13);
}

.move-result-empty {
  color: var(--muted);
  font-size: 0.76rem;
}

.move-result-grid {
  display: grid;
  grid-template-columns: minmax(74px, 0.8fr) minmax(140px, 1.35fr) minmax(94px, 0.9fr) minmax(58px, 0.52fr) minmax(58px, 0.52fr);
  gap: 8px;
  align-items: start;
}

.move-result-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.move-result-label {
  color: var(--dim);
  font-size: 0.63rem;
  font-weight: 900;
}

.move-result-value {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.move-result-cell.is-command .move-result-value {
  color: #e9fbff;
  font-size: 0.86rem;
  font-weight: 950;
}

.move-result-tags {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 5px;
}

.move-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(79, 183, 199, 0.55);
  border-radius: 7px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

button.move-chip,
.move-chip-label,
.move-chip-remove {
  border: 1px solid rgba(79, 183, 199, 0.55);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.16);
}

button.move-chip {
  padding: 0 8px;
}

.move-chip-label {
  min-height: 28px;
  border: 0;
  padding: 0 8px;
  font-weight: 900;
}

.move-chip-remove {
  min-height: 28px;
  border-width: 0 0 0 1px;
  padding: 0 7px;
  font-weight: 950;
}

.move-chip:hover,
.move-chip-label:hover,
.move-chip-remove:hover {
  filter: brightness(1.12);
}

.move-preview {
  position: fixed;
  z-index: 30;
  display: none;
  width: 360px;
  max-height: min(620px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: #10131b;
  box-shadow: var(--shadow);
}

.move-preview.is-visible {
  display: grid;
  gap: 10px;
}

.move-preview-media,
.move-preview-images,
.move-preview-no-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #050608;
}

.move-preview-media {
  position: relative;
  overflow: hidden;
}

.move-preview-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: auto;
  padding: 8px;
}

.move-preview-images figure {
  display: grid;
  gap: 5px;
  align-content: start;
  margin: 0;
  min-width: 0;
}

.move-preview-images img {
  display: block;
  width: 100%;
  max-height: 170px;
  border-radius: 5px;
  object-fit: contain;
  background: #050608;
}

.move-preview-images figcaption {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
}

.move-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.move-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #050608;
  font-size: 0.82rem;
  font-weight: 850;
}

.move-preview-media.is-loaded .move-preview-loading {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.move-preview-media.has-error video {
  opacity: 0;
}

.move-preview-media.has-error .move-preview-loading {
  display: grid;
  color: var(--text);
  background: #10131b;
  visibility: visible;
  opacity: 1;
}

.move-preview-no-video {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.move-preview-title {
  display: grid;
  gap: 3px;
}

.move-preview-title strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.move-preview-title span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.move-preview-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 0.8rem;
}

.move-preview-grid dt {
  color: var(--muted);
  font-weight: 850;
}

.move-preview-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.move-preview-notes {
  max-height: 142px;
  overflow: auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-line;
}

.move-preview-link {
  justify-self: start;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
}

.scroll-top-button {
  position: fixed;
  z-index: 34;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(169, 120, 255, 0.58);
  border-radius: 50%;
  color: #f6f0ff;
  background: rgba(82, 49, 142, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  border-color: rgba(199, 170, 255, 0.9);
  background: rgba(118, 75, 198, 0.94);
}

.scroll-top-button[hidden] {
  display: none;
}

.notes-empty {
  gap: 12px;
}

.notes-empty .community-spinner {
  margin-inline: auto;
}

.notes-empty p {
  margin: 0;
}

.board {
  display: flex;
  gap: 12px;
  min-height: calc(100vh - 148px);
  overflow: auto;
  padding: 16px 0;
  scroll-snap-type: x proximity;
}

.list {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 316px;
  min-width: 316px;
  max-height: calc(100vh - 180px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  scroll-snap-align: start;
}

.list.is-drop-target {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.12);
}

.list-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.list-title-wrap {
  min-width: 0;
}

.list-title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 900;
}

.list-count {
  display: inline-flex;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.list-menu {
  display: flex;
  gap: 6px;
}

.list-title-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--text);
  background: #111316;
}

.cards {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 180px;
  overflow: auto;
  padding: 10px;
}

.note-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--priority);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.note-card.dragging {
  opacity: 0.46;
}

.note-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.note-card h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.2;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 6px;
  color: #f7efe2;
  background: rgba(255, 255, 255, 0.055);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  line-height: 1;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.mini-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--ui-small-label-size);
  font-weight: var(--ui-small-label-weight);
  letter-spacing: 0;
  line-height: 1;
}

.mini-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.add-card-button {
  min-height: 40px;
  margin: 0 10px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 850;
}

.add-card-button:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.card-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(79, 183, 199, 0.45);
  border-radius: 8px;
  padding: 10px;
  background: #13161b;
}

.card-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.card-editor input,
.card-editor textarea,
.card-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 8px;
  color: var(--text);
  background: #0f1114;
}

.card-editor textarea {
  resize: vertical;
}

.card-editor input:focus,
.card-editor textarea:focus,
.card-editor select:focus {
  border-color: var(--cyan);
}

.editor-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.65fr) 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 18px;
  }

  .topbar,
  .board-page .topbar {
    display: flex;
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .brand-logo-wordmark {
    width: min(230px, 76vw);
  }

  .brand-home-compact .brand-logo-icon {
    width: 34px;
    height: 34px;
  }

  .brand-home-compact .brand-logo-wordmark {
    width: min(230px, 76vw);
    max-height: 82px;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .board-topbar-actions {
    display: grid;
    width: 100%;
    justify-items: stretch;
  }

  .data-menu-panel {
    right: auto;
    left: 0;
  }

  .filter-menu-panel {
    right: auto;
    left: 0;
  }

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

  .game-select-page .app-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

  .game-select-page .topbar h1 {
    font-size: 2.24rem;
    line-height: 1.04;
  }

  .game-select-page .brand-logo-wordmark {
    width: min(430px, 88vw);
  }

  .homepage-copy,
  .homepage-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .homepage-copy,
  .homepage-section {
    padding: 16px;
  }

  .homepage-actions {
    width: 100%;
  }

  .homepage-actions .solid-button,
  .homepage-actions .ghost-button {
    flex: 1 1 180px;
  }

  .homepage-section-title h2 {
    font-size: 1.5rem;
  }

  .homepage-section-marker,
  .game-count-pill {
    width: max-content;
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
  }

  .community-preview {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .community-preview h2,
  .community-preview h3 {
    font-size: 1.35rem;
  }

  .community-preview-copy > p {
    font-size: 0.9rem;
  }

  .community-preview-cta {
    width: 100%;
  }

  .community-preview-viewport {
    height: 330px;
  }

  .community-shell {
    width: min(100% - 24px, 1320px);
  }

  .community-page .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-directory-intro {
    align-items: start;
    flex-direction: column;
  }

  .community-directory-intro h2 {
    font-size: 1.25rem;
  }

  .community-directory-meta {
    width: 100%;
  }

  .community-directory-filters {
    grid-template-columns: 1fr;
  }

  .community-directory-sort {
    width: 100%;
  }

  .community-filter-reset {
    width: 100%;
  }

  .community-directory-note-header {
    align-items: start;
  }

  .community-directory-actions {
    min-width: 0;
  }

  .game-card {
    grid-template-rows: 210px minmax(100px, 1fr);
    min-height: 310px;
  }

  .game-card-visual {
    min-height: 210px;
  }

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

  .filter-tabs {
    justify-content: flex-start;
  }

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

  .roster[data-game="ggst"],
  .roster[data-game="invs"],
  .roster[data-game="2xko"],
  .roster[data-game="uni2"] {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .character-card {
    min-height: 176px;
  }

  .fighter-summary {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .fighter-summary > div {
    flex: 1 1 160px;
  }

  .board-intro {
    align-items: start;
    flex-direction: column;
  }

  .community-intro-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .note-mode-toggle {
    width: 100%;
  }

  .note-mode-toggle-option {
    min-width: 0;
  }

  .community-intro-actions > .jump-private-notes {
    flex: 1 1 100%;
    width: 100%;
  }

  .note-control-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .note-filter-control,
  .note-filter-field {
    width: 100%;
  }

  .note-filter-control {
    flex-basis: auto;
    justify-items: stretch;
  }

  .note-filter-wrap {
    width: 100%;
    justify-items: stretch;
  }

  .note-filter-button {
    justify-content: center;
  }

  .note-filter-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
  }

  .board-intro h2 {
    font-size: 1.25rem;
  }

  .character-traits.large {
    max-width: 100%;
    justify-content: flex-start;
  }

  .notes-panel {
    overflow-x: visible;
  }

  .guide-sheet-grid {
    grid-template-columns: 1fr;
  }

  .community-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .community-sort,
  .community-toolbar > .note-filter-wrap,
  .community-toolbar-actions {
    width: 100%;
  }

  .community-toolbar > .note-filter-wrap {
    justify-items: stretch;
  }

  .community-toolbar > .note-filter-wrap .note-filter-button {
    width: 100%;
    justify-content: center;
  }

  .community-sort-button {
    flex: 1 1 0;
  }

  .community-toolbar-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .note-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .move-results {
    width: 100%;
  }

  .move-result-grid {
    grid-template-columns: minmax(70px, 0.8fr) minmax(0, 1.2fr);
  }

  .move-result-tags,
  .move-result-cell.is-type,
  .move-result-cell.is-frame {
    grid-column: span 1;
  }

  .move-filter-bar {
    grid-template-columns: 1fr;
  }

  .move-filter-reset {
    justify-self: start;
  }

  .move-preview {
    left: 12px !important;
    width: calc(100vw - 24px);
  }

  .board-shell {
    padding-bottom: 18px;
  }

  .board-page .topbar-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .note-add-button {
    width: 40px;
    min-width: 40px;
    min-height: 36px;
  }

  .board {
    min-height: calc(100vh - 240px);
  }

  .list {
    width: min(316px, calc(100vw - 36px));
    min-width: min(316px, calc(100vw - 36px));
    max-height: none;
  }

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

body.roster-page {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg), #11131a 52%, #181225);
}

.roster-page .app-shell {
  width: min(1500px, calc(100% - 40px));
  padding: 28px 0 40px;
}

.roster-page .topbar {
  min-height: 84px;
}

.roster-page .topbar-brand {
  display: grid;
  align-content: center;
}

.roster-page .brand-home {
  margin-bottom: 7px;
}

.roster-page .brand-logo-wordmark {
  width: min(260px, 56vw);
  max-height: 82px;
}

.roster-page .header-kicker,
.roster-page .topbar h1 {
  display: none;
}

.roster-page .topbar-actions {
  flex: 0 0 auto;
}

.roster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: end;
  padding: 24px 0 16px;
}

.roster-title-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.roster-game-logo {
  width: 108px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 220, 240, 0.12);
  border-radius: 8px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.roster-eyebrow {
  margin-bottom: 6px;
  color: var(--purple-strong);
  font-size: 0.76rem;
  font-weight: 950;
}

.roster-hero h1 {
  margin: 0 0 8px;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.roster-hero-description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
}

.roster-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roster-metric {
  min-height: 70px;
  border: 1px solid rgba(226, 220, 240, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(20, 23, 32, 0.72);
}

.roster-metric strong {
  display: block;
  overflow: hidden;
  font-size: 1.26rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.roster-page .toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(226, 220, 240, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(14, 16, 23, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.roster-page .search-box {
  position: relative;
  display: block;
}

.roster-page .search-box > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.roster-page .search-box input {
  min-height: 42px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: var(--ui-label-weight);
}

.roster-page .filter-tabs {
  align-items: center;
  gap: 6px;
}

.roster-page .filter-tab {
  min-height: 38px;
  border-radius: 7px;
  font-weight: var(--ui-label-weight);
}

.roster-page .filter-tab.is-active,
.roster-page .note-source-filter-button.is-active {
  border-color: rgba(169, 120, 255, 0.72);
  color: #fff;
  background: rgba(139, 92, 246, 0.22);
}

.roster-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0 48px;
}

.roster-rail {
  position: sticky;
  top: 146px;
  align-self: start;
  border: 1px solid rgba(226, 220, 240, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(20, 23, 32, 0.72);
}

.roster-page .roster-help {
  gap: 10px;
  margin: 0;
}

.roster-rail-title {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.roster-page .storage-banner,
.roster-page .sidestep-legend {
  display: grid;
  gap: 6px;
  align-items: start;
  border-color: rgba(226, 220, 240, 0.12);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.42;
}

.roster-page .data-version-banner {
  border-color: rgba(169, 120, 255, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.roster-page .sidestep-legend {
  border-color: rgba(79, 183, 199, 0.28);
  background: rgba(79, 183, 199, 0.075);
}

.roster-page .storage-banner-version {
  flex-basis: auto;
}

.roster-page .roster {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
  padding-top: 0;
}

.roster-page .roster[data-game="ggst"],
.roster-page .roster[data-game="invs"],
.roster-page .roster[data-game="2xko"],
.roster-page .roster[data-game="uni2"] {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
}

.roster-page .character-card {
  display: grid;
  grid-template-rows: minmax(142px, 1fr) auto;
  min-height: 224px;
  border-color: rgba(226, 220, 240, 0.12);
  background: linear-gradient(180deg, #141720, #10121a);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.roster-page .character-card:hover,
.roster-page .character-card:focus-within {
  border-color: rgba(208, 162, 77, 0.54);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.roster-page .character-image-link {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  background: #050609;
}

.roster-page .character-image-link::after {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.82));
}

.roster-page .character-image {
  width: 100%;
  height: 100%;
  min-height: 142px;
  aspect-ratio: auto;
  object-fit: cover;
  filter: saturate(1.03) brightness(0.9);
}

.roster-page .character-footer,
.roster-page .roster[data-game="ggst"] .character-footer,
.roster-page .roster[data-game="invs"] .character-footer,
.roster-page .roster[data-game="2xko"] .character-footer,
.roster-page .roster[data-game="uni2"] .character-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: start;
  min-height: 72px;
  border-top-color: rgba(226, 220, 240, 0.12);
  padding: 10px;
  background: rgba(10, 12, 17, 0.96);
}

.roster-page .character-name-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.roster-page .character-name-link,
.roster-page .roster[data-game="ggst"] .character-name-link,
.roster-page .roster[data-game="2xko"] .character-name-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.roster-page .character-footer h2,
.roster-page .roster[data-game="ggst"] .character-footer h2,
.roster-page .roster[data-game="invs"] .character-footer h2,
.roster-page .roster[data-game="2xko"] .character-footer h2,
.roster-page .roster[data-game="uni2"] .character-footer h2 {
  display: block;
  margin: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.roster-page .character-note-counts {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(58px, max-content);
  gap: 4px;
}

.roster-page .character-note-count {
  display: inline-flex;
  width: 100%;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(79, 183, 199, 0.42);
  border-radius: 999px;
  padding: 0 7px;
  color: #dcfaff;
  background: rgba(79, 183, 199, 0.08);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.roster-page .character-note-count.is-local {
  border-color: rgba(208, 162, 77, 0.42);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.1);
}

.roster-page .character-note-count.is-empty {
  border-color: rgba(187, 182, 201, 0.22);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.035);
}

.roster-page .character-traits,
.roster-page .character-traits.compact,
.roster-page .roster[data-game="ggst"] .character-traits.compact,
.roster-page .roster[data-game="invs"] .character-traits.compact,
.roster-page .roster[data-game="2xko"] .character-traits.compact,
.roster-page .roster[data-game="uni2"] .character-traits.compact {
  max-width: none;
  justify-content: flex-start;
}

.roster-page .trait-badge {
  min-height: 22px;
  border-color: rgba(79, 183, 199, 0.38);
  border-radius: 999px;
  padding: 0 7px;
  color: #dcfaff;
  background: rgba(79, 183, 199, 0.08);
  font-size: 0.66rem;
  font-weight: 900;
}

.roster-page .sidestep-badge {
  align-self: start;
}

.roster-page .empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .roster-hero,
  .roster-layout {
    grid-template-columns: 1fr;
  }

  .roster-rail {
    position: static;
  }
}

@media (max-width: 680px) {
  .roster-page .app-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 18px;
  }

  .roster-page .topbar,
  .roster-page .topbar-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .roster-page .brand-logo-wordmark {
    width: min(230px, 76vw);
    max-height: 82px;
  }

  .roster-hero {
    padding-top: 18px;
  }

  .roster-title-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .roster-hero h1 {
    font-size: 1.85rem;
  }

  .roster-metrics,
  .roster-page .toolbar {
    grid-template-columns: 1fr;
  }

  .roster-page .filter-tabs {
    justify-content: flex-start;
  }

  .roster-page .roster,
  .roster-page .roster[data-game="ggst"],
  .roster-page .roster[data-game="invs"],
  .roster-page .roster[data-game="2xko"],
  .roster-page .roster[data-game="uni2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.seo-static-content {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.seo-static-content h2,
.seo-static-content h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.seo-static-content h2 {
  font-size: 1.35rem;
}

.seo-static-content h3 {
  font-size: 1rem;
}

.seo-static-content p {
  max-width: 78ch;
  margin: 10px 0 0;
  line-height: 1.65;
}

.seo-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.seo-fact-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.seo-fact-grid dt {
  color: var(--subtle);
  font-size: 0.73rem;
  font-weight: 800;
}

.seo-fact-grid dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
}

.seo-answer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.seo-note-list li {
  padding: 14px;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  background: rgba(10, 11, 17, 0.52);
}

.seo-note-list a {
  color: var(--text);
}

.seo-source {
  color: var(--subtle);
  font-size: 0.84rem;
  font-weight: 800;
}

.seo-source a {
  color: #f3ecff;
}

.seo-note-body {
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
}

.seo-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.seo-data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.9rem;
}

.seo-data-table th,
.seo-data-table td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.seo-data-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.76rem;
}

.seo-answer {
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  background: rgba(10, 11, 17, 0.52);
}

.seo-answer[open] {
  border-color: rgba(169, 120, 255, 0.28);
  background: rgba(139, 92, 246, 0.09);
}

.seo-answer summary {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  padding: 16px 58px 16px 18px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.25;
  list-style: none;
}

.seo-answer summary::-webkit-details-marker {
  display: none;
}

.seo-answer summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 1px solid rgba(169, 120, 255, 0.52);
  border-radius: 7px;
  color: #f3ecff;
  background-color: rgba(139, 92, 246, 0.18);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size:
    9px 2px,
    2px 9px;
  content: "";
}

.seo-answer[open] summary::after {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 9px 2px;
}

.seo-answer-heading {
  font: inherit;
}

.seo-answer p {
  margin: 0;
  padding: 0 58px 17px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.52;
}

.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seo-related-links a {
  width: 180px;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.seo-related-links a.community-directory-cta {
  width: auto;
  min-width: min(216px, 100%);
  max-width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  white-space: normal;
}

.seo-related-links a:hover {
  filter: brightness(1.06);
}

.seo-card-meta {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 0.76rem;
}
