:root {
  color-scheme: dark;
  --bg: #0b1326;
  --bg-2: #0f172a;
  --surface: #131b2e;
  --surface-strong: #222a3d;
  --surface-soft: #2d3449;
  --ink: #dae2fd;
  --muted: #94a3b8;
  --line: rgba(62, 72, 80, 0.38);
  --accent: #31dde0;
  --accent-2: #ecb1ff;
  --accent-3: #22d3ee;
  --success: #54d987;
  --warning: #f0bd4f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(49, 221, 224, 0.025), transparent 280px),
    linear-gradient(180deg, #0b1326 0%, #0b1326 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.28;
}

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

button {
  cursor: pointer;
}

.shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.shell-spectate {
  width: min(1440px, calc(100vw - 32px));
  padding-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.hero-card,
.panel,
.match-stage,
.feed,
.sidebar-card,
.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: none;
}

.hero-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: none;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(216, 155, 69, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero p,
.meta,
.hint,
.empty {
  color: var(--muted);
}

.hero-actions,
.inline-form,
.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav {
  margin: 18px 0 26px;
}

.nav button,
.hero-actions button,
.inline-form button,
.panel button,
.sidebar-card button,
.spectate-topbar button {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav button.secondary,
.hero-actions button.secondary,
.panel button.secondary,
.sidebar-card button.secondary,
.spectate-topbar button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.spectate-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.spectate-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.replay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.replay-speed-select {
  min-width: 104px;
}

.replay-speed-select select {
  min-width: 88px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.panel,
.sidebar-card,
.feed,
.match-stage {
  padding: 20px;
}

.panel h2,
.match-stage h2,
.feed h3,
.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-head p,
.section-head .hint {
  margin: 2px 0 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.card strong {
  display: block;
  margin-bottom: 6px;
}

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

.forum-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.forum-stat-strip,
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-stat-strip {
  margin: 0 0 14px;
  color: var(--muted);
}

.forum-stat-strip span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.forum-post-preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.forum-post-preview p {
  margin: 6px 0 10px;
}

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

.compact-form input {
  min-width: 0;
  flex: 1 1 180px;
}

.forum-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.forum-moderation-head {
  margin-top: 14px;
}

.forum-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.search-results-layout,
.forum-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.forum-board-main,
.forum-board-sidebar {
  min-width: 0;
}

.forum-board-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.forum-board-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1.2;
}

.forum-board-head p {
  margin: 0;
  color: var(--muted);
}

.forum-board-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.forum-board-actions button,
.forum-board-head > button {
  white-space: nowrap;
}

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

.forum-side-stats span {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
}

.forum-side-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.forum-thread-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.forum-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.forum-thread-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.thread-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
}

.thread-title-button:hover {
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

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

.thread-row-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.78rem;
}

.forum-moderation-panel {
  opacity: 0.86;
}

.thread-detail-header .text-link {
  width: fit-content;
  margin: 0 0 12px;
}

.thread-detail-header {
  padding: 8px 0 2px;
  background: transparent;
  border-color: transparent;
}

.thread-detail-header .section-head {
  align-items: start;
}

.thread-detail-header h2 {
  max-width: 760px;
  margin-top: 4px;
  line-height: 1.25;
}

.thread-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.thread-detail-tags {
  justify-content: start;
  margin-top: 12px;
}

.thread-comment-section {
  max-width: 920px;
  display: grid;
  gap: 18px;
}

.thread-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.thread-comment-head > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.thread-comment-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.thread-comment-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-tabs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comment-tabs button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.comment-tabs button.active {
  background: rgba(49, 221, 224, 0.16);
  color: var(--accent);
}

.comment-tabs button:hover {
  color: var(--accent);
  transform: none;
}

.thread-comment-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}

.comment-compose-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.comment-compose-body textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  resize: vertical;
}

.nested-reply-composer textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.38);
  color: var(--ink);
  resize: vertical;
}

.comment-compose-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.comment-compose-actions span {
  color: var(--muted);
  font-size: 0.86rem;
}

.comment-compose-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  background: #31dde0;
  color: #003738;
  font-weight: 900;
}

.comment-compose-actions button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.thread-post-list {
  display: flex;
  flex-direction: column;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pagination-row button {
  width: fit-content;
  white-space: nowrap;
}

.thread-post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.thread-post-body {
  min-width: 0;
}

.thread-post-meta,
.post-report-summary,
.post-report-form,
.thread-detail-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.thread-post-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.thread-post-meta strong {
  color: var(--ink);
}

.thread-post-body p {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rich-post-body {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--ink);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.rich-post-body p,
.rich-post-body ul,
.rich-post-body ol,
.rich-post-body blockquote,
.rich-post-body pre {
  margin: 0 0 10px;
}

.rich-post-body ul,
.rich-post-body ol {
  padding-left: 22px;
}

.rich-post-body blockquote {
  padding-left: 12px;
  border-left: 3px solid rgba(49, 221, 224, 0.5);
  color: var(--muted);
}

.rich-post-body a {
  color: var(--accent);
}

.forum-editor-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rich-editor-shell {
  display: grid;
  gap: 10px;
}

.rich-editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rich-editor-toolbar button {
  min-width: 38px;
  padding: 8px 10px;
}

.rich-editor-wrap {
  position: relative;
}

.rich-editor {
  min-height: 260px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  line-height: 1.7;
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor:focus {
  border-color: rgba(49, 221, 224, 0.55);
  box-shadow: 0 0 0 3px rgba(49, 221, 224, 0.08);
}

.rich-editor-placeholder {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  color: var(--muted);
  pointer-events: none;
}

.search-filter-card {
  display: grid;
  gap: 12px;
}

.post-report-disclosure {
  max-width: 760px;
  position: relative;
}

.post-report-disclosure summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
}

.post-report-disclosure summary:hover {
  color: var(--accent);
}

.post-report-summary {
  margin-bottom: 12px;
}

.post-report-summary span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 106, 136, 0.12);
  color: #ffb6c4;
  font-size: 0.78rem;
}

.post-report-form {
  margin-top: 10px;
  align-items: stretch;
}

.post-report-form input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
}

.comment-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.comment-action-row .text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
}

.comment-action-row .text-link:hover:not(:disabled) {
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.comment-action-row .text-link:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.nested-reply-composer,
.nested-reply-list {
  max-width: 760px;
  margin-top: 12px;
}

.nested-reply-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.nested-reply-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
}

.nested-reply {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.nested-reply .post-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.nested-reply p {
  margin: 6px 0 8px;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thread-detail-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.thread-detail-note strong {
  width: 100%;
  color: var(--ink);
}

.panel .match-link-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin: 8px 0 2px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(100, 205, 255, 0.12);
  color: #9fdcff;
  overflow-wrap: anywhere;
}

.panel button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(63, 208, 201, 0.35);
  border-color: rgba(63, 208, 201, 0.65);
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.arena-board {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(63, 208, 201, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(22, 42, 59, 0.95), rgba(10, 19, 28, 0.95));
}

.director-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 29, 40, 0.98), rgba(9, 18, 26, 0.98));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  animation: bannerEnter 260ms ease;
}

.director-banner strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.05rem;
}

.director-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.focus-trash {
  border-color: rgba(255, 107, 61, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 107, 61, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(27, 24, 30, 0.98), rgba(12, 17, 24, 0.98));
}

.focus-commit {
  border-color: rgba(240, 189, 79, 0.28);
}

.focus-reveal {
  border-color: rgba(63, 208, 201, 0.34);
  background:
    radial-gradient(circle at top right, rgba(63, 208, 201, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(15, 30, 43, 0.98), rgba(8, 19, 28, 0.98));
}

.focus-impact,
.focus-win {
  border-color: rgba(216, 255, 98, 0.32);
  background:
    radial-gradient(circle at top right, rgba(216, 255, 98, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(22, 36, 28, 0.98), rgba(10, 20, 16, 0.98));
}

.focus-neutral {
  border-color: rgba(255, 255, 255, 0.12);
}

.arena-kicker,
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.arena-phase {
  margin-top: 8px;
  font-size: 1rem;
  max-width: 48ch;
}

.arena-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent-3);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(216, 255, 98, 0.55);
  animation: arenaPulse 1.8s infinite;
}

.arena-table {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.45fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.arena-center {
  display: grid;
  gap: 16px;
}

.arena-stage-card {
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top center, rgba(255, 107, 61, 0.12), transparent 28%),
    radial-gradient(circle at bottom center, rgba(63, 208, 201, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(17, 32, 45, 0.98), rgba(8, 17, 25, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow);
}

.arena-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.stage-vs-mark {
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stage-vs-mark span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.stage-vs-mark small {
  font-size: 0.68rem;
}

.fighter {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 30, 43, 0.98), rgba(7, 17, 25, 0.98));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.fighter-left {
  transform-origin: right center;
}

.fighter-right {
  transform-origin: left center;
}

.fighter:hover {
  transform: translateY(-2px);
}

.fighter-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
}

.fighter.leader {
  border-color: rgba(216, 255, 98, 0.4);
  box-shadow: 0 0 0 1px rgba(216, 255, 98, 0.12), var(--shadow);
}

.fighter.round-winner {
  border-color: rgba(240, 189, 79, 0.42);
  box-shadow: 0 0 0 1px rgba(240, 189, 79, 0.12), 0 18px 32px rgba(240, 189, 79, 0.12);
}

.fighter.match-winner {
  border-color: rgba(216, 255, 98, 0.6);
  box-shadow:
    0 0 0 1px rgba(216, 255, 98, 0.18),
    0 0 40px rgba(216, 255, 98, 0.12),
    var(--shadow);
}

.fighter-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.fighter-topline .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.identity-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: middle;
}

.identity-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-name.compact {
  gap: 5px;
}

.identity-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  vertical-align: -0.18em;
}

.identity-icon.is-human {
  color: #73d8ff;
}

.identity-icon.is-agent {
  color: #ffd36f;
}

.fighter-tag {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.fighter .score {
  font-size: 4rem;
  line-height: 1;
  margin: 12px 0;
  color: var(--accent-3);
  text-shadow: 0 0 24px rgba(216, 255, 98, 0.18);
}

.fighter-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.fighter-id {
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-all;
}

.fighter-round-record {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fighter-record-title {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fighter-record-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fighter-record-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.fighter-record-chip.is-win {
  border-color: rgba(84, 217, 135, 0.34);
  background: rgba(84, 217, 135, 0.12);
  color: #b9f8d0;
}

.fighter-record-chip.is-loss {
  border-color: rgba(255, 107, 61, 0.32);
  background: rgba(255, 107, 61, 0.12);
  color: #ffc1af;
}

.fighter-record-chip.is-draw {
  border-color: rgba(240, 189, 79, 0.32);
  background: rgba(240, 189, 79, 0.12);
  color: #ffe0a0;
}

.fighter-action-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(49, 221, 224, 0.22);
  background:
    radial-gradient(circle at top left, rgba(49, 221, 224, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.fighter-action-card.is-waiting {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.fighter-action-card strong {
  font-size: 0.92rem;
}

.fighter-action-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fighter-action-card textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
}

.fighter-action-card button,
.fighter-move-buttons button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--accent);
  color: #06131d;
  font-weight: 900;
}

.fighter-action-card button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.room-ready-mark {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.waiting-room-stage .arena-ring {
  min-height: 520px;
}

.phase-waiting-room .ring-status {
  max-width: 520px;
}

.fighter-move-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fighter-move-buttons button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.fighter-move-buttons button span,
.fighter-locked-move span {
  font-size: 1.35rem;
  line-height: 1;
}

.fighter-locked-move {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(63, 208, 201, 0.22);
  background: rgba(63, 208, 201, 0.08);
}

.duel-view {
  min-height: calc(100vh - 110px);
}

.duel-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.9fr) minmax(240px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.duel-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arena-ring {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 107, 61, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 27, 0.98) 0%, rgba(11, 24, 35, 0.98) 48%, rgba(6, 13, 18, 1) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow);
}

.arena-ring::before {
  content: "";
  position: absolute;
  inset: auto 10% 30%;
  height: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ring-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 107, 61, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(39, 73, 98, 0.42), rgba(13, 29, 39, 0.72));
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.03),
    0 32px 60px rgba(0, 0, 0, 0.4);
}

.ring-impact {
  position: absolute;
  left: 50%;
  bottom: 34%;
  width: 120px;
  height: 120px;
  transform: translateX(-50%) scale(0.3);
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 12%, rgba(255, 214, 124, 0.76) 22%, rgba(255, 107, 61, 0.22) 46%, transparent 68%);
  filter: blur(1px);
}

.ring-shockwave {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%) scale(0.2);
  border-radius: 50%;
  opacity: 0;
  border: 3px solid rgba(255, 214, 124, 0.46);
  box-shadow: 0 0 60px rgba(255, 107, 61, 0.16);
}

.duelist {
  position: absolute;
  bottom: 18%;
  width: 180px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: transform 320ms ease, filter 320ms ease;
}

.duelist-left {
  left: 18%;
}

.duelist-right {
  right: 18%;
}

.duelist-right .duelist-avatar {
  transform: scaleX(-1);
}

.duelist-nameplate {
  position: relative;
  z-index: 4;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.duelist-nameplate .identity-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.duelist-avatar {
  position: relative;
  width: 184px;
  height: 228px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}

.duelist-figure {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.duelist-figure .figure-shadow {
  fill: rgba(0, 0, 0, 0.26);
  filter: blur(7px);
}

.duelist-figure .figure-energy-aura {
  opacity: 0.1;
  filter: blur(5px);
}

.duelist-figure .figure-visor {
  fill: rgba(230, 249, 251, 0.92);
  filter: drop-shadow(0 0 12px rgba(63, 208, 201, 0.34));
}

.duelist-figure .figure-visor-shine,
.duelist-figure .figure-core-spark {
  fill: rgba(255, 255, 255, 0.58);
}

.duelist-figure .figure-core {
  filter: drop-shadow(0 0 14px rgba(216, 255, 98, 0.34));
}

.duelist-figure .figure-core-ring {
  opacity: 0.9;
}

.duelist-figure .figure-highlight {
  fill: rgba(255, 255, 255, 0.16);
}

.duelist-figure .figure-cape {
  fill: rgba(8, 16, 24, 0.45);
}

.duelist-figure .figure-arm,
.duelist-figure .figure-gauntlet,
.duelist-figure .figure-leg,
.duelist-figure .figure-torso,
.duelist-figure .figure-helmet,
.duelist-figure .figure-helmet-ridge,
.duelist-figure .figure-faceplate,
.duelist-figure .figure-jaw,
.duelist-figure .figure-chest,
.duelist-figure .figure-chest-plate,
.duelist-figure .figure-side-panel,
.duelist-figure .figure-belt,
.duelist-figure .figure-belt-line,
.duelist-figure .figure-crest,
.duelist-figure .figure-foot,
.duelist-figure .figure-sole,
.duelist-figure .figure-knee,
.duelist-figure .figure-shoulder-left,
.duelist-figure .figure-shoulder-right,
.duelist-figure .figure-shoulder-trim,
.duelist-figure .figure-core-ring {
  stroke: rgba(9, 17, 24, 0.32);
  stroke-width: 2px;
}

.duelist-figure .figure-neck,
.duelist-figure .figure-sole,
.duelist-figure .figure-belt-line,
.duelist-figure .figure-shoulder-trim {
  stroke-width: 1.4px;
}

.duelist-figure .figure-gauntlet-front {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.24));
}

.duelist-figure .figure-gauntlet-core {
  opacity: 0.8;
  filter: drop-shadow(0 0 9px rgba(216, 255, 98, 0.22));
}

.duelist-figure .figure-gauntlet-back {
  opacity: 0.92;
}

.duelist-figure .figure-leg-back {
  opacity: 0.94;
}

.duelist-figure .figure-knuckle {
  opacity: 0.9;
}

.duelist-figure .figure-front-arm,
.duelist-figure .figure-back-arm,
.duelist-figure .figure-legs {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 260ms ease;
}

.speech-bubble {
  position: absolute;
  bottom: calc(100% + 34px);
  z-index: 3;
  max-width: 240px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 251, 237, 0.96);
  color: #1d2329;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  animation: bubblePop 220ms ease;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255, 251, 237, 0.96);
  transform: rotate(45deg);
}

.move-badge {
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  background: rgba(8, 17, 25, 0.9);
  border: 1px solid rgba(63, 208, 201, 0.28);
  transition: transform 260ms ease, opacity 260ms ease;
}

.move-badge.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 10px 24px rgba(63, 208, 201, 0.14);
}

.move-badge strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-2);
}

.result-banner {
  position: absolute;
  top: 146px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: resultStamp 280ms ease;
}

.result-banner.is-win {
  background: rgba(216, 255, 98, 0.18);
  color: #f4ffd0;
}

.result-banner.is-lose {
  background: rgba(255, 107, 61, 0.18);
  color: #ffc1af;
}

.ring-status {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  min-width: 240px;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(6, 13, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  text-align: center;
}

.ring-round {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.arena-ring.phase-trash_talk_round_open .duelist,
.arena-ring.cue-taunt-echo .duelist,
.arena-ring.cue-taunt-hold .duelist {
  animation: tauntBounce 1.6s ease-in-out infinite;
}

.arena-ring.phase-move_commit_open .duelist,
.arena-ring.highlight-charge .duelist {
  filter: saturate(0.85);
}

.arena-ring.cue-charge-intro .duelist,
.arena-ring.cue-charge-build .duelist,
.arena-ring.cue-charge-ready .duelist {
  transform: translateY(-6px);
}

.arena-ring.cue-charge-intro .figure-front-arm,
.arena-ring.cue-charge-build .figure-front-arm,
.arena-ring.cue-charge-ready .figure-front-arm {
  transform: translate(-8px, -12px) rotate(-16deg);
}

.arena-ring.cue-charge-intro .figure-back-arm,
.arena-ring.cue-charge-build .figure-back-arm,
.arena-ring.cue-charge-ready .figure-back-arm {
  transform: translate(8px, -8px) rotate(16deg);
}

.arena-ring.phase-move_reveal .duelist-left,
.arena-ring.cue-reveal-windup .duelist-left,
.arena-ring.cue-reveal-strike .duelist-left,
.arena-ring.cue-reveal-impact .duelist-left,
.arena-ring.cue-reveal-freeze .duelist-left {
  transform: translateX(26px);
}

.arena-ring.phase-move_reveal .duelist-right,
.arena-ring.cue-reveal-windup .duelist-right,
.arena-ring.cue-reveal-strike .duelist-right,
.arena-ring.cue-reveal-impact .duelist-right,
.arena-ring.cue-reveal-freeze .duelist-right {
  transform: translateX(-26px);
}

.arena-ring.cue-reveal-windup .figure-front-arm {
  transform: translate(4px, -6px) rotate(-6deg);
}

.arena-ring.cue-reveal-strike .duelist-left,
.arena-ring.cue-reveal-impact .duelist-left,
.arena-ring.cue-result-impact .duelist-left {
  transform: translate(42px, -14px) scale(1.03);
}

.arena-ring.cue-reveal-strike .duelist-right,
.arena-ring.cue-reveal-impact .duelist-right,
.arena-ring.cue-result-impact .duelist-right {
  transform: translate(-42px, -14px) scale(1.03);
}

.arena-ring.cue-reveal-strike .figure-front-arm,
.arena-ring.cue-reveal-impact .figure-front-arm,
.arena-ring.cue-result-impact .figure-front-arm {
  transform: translate(20px, -10px) rotate(12deg);
}

.arena-ring.cue-reveal-strike .move-badge.is-visible,
.arena-ring.cue-reveal-impact .move-badge.is-visible,
.arena-ring.cue-result-freeze .move-badge.is-visible,
.arena-ring.cue-result-settle .move-badge.is-visible {
  transform: translateY(-4px) scale(1.03);
}

.arena-ring.phase-round_result .duelist.is-victory,
.arena-ring.phase-match_finished .duelist.is-victory {
  filter: drop-shadow(0 0 34px rgba(216, 255, 98, 0.3));
  animation: winnerLift 820ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.arena-ring.phase-round_result .duelist.is-defeat,
.arena-ring.phase-match_finished .duelist.is-defeat {
  transform: translateY(34px) scale(0.88) rotate(-8deg);
  opacity: 0.54;
}

.arena-ring.show-impact .ring-impact {
  animation: clashFlash 460ms ease;
}

.arena-ring.show-impact .ring-shockwave,
.arena-ring.phase-round_result .ring-shockwave,
.arena-ring.phase-match_finished .ring-shockwave {
  animation: shockwavePulse 620ms cubic-bezier(0.2, 1, 0.22, 1);
}

.duelist.is-victory .figure-core {
  filter: drop-shadow(0 0 24px rgba(216, 255, 98, 0.52));
}

.duelist.is-defeat .duelist-avatar {
  filter: grayscale(0.18) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.22));
}

.arena-ring.freeze-result .duelist {
  transition-duration: 120ms;
}

.ring-result-callout {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 20px;
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: resultDrop 420ms cubic-bezier(0.18, 0.9, 0.24, 1);
}

.ring-result-callout span {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ring-result-callout strong {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.ring-result-callout.is-win {
  background: rgba(9, 18, 26, 0.78);
  box-shadow:
    0 0 40px rgba(255, 107, 61, 0.12),
    0 0 80px rgba(216, 255, 98, 0.12);
}

.ring-result-callout.is-draw {
  background: rgba(9, 18, 26, 0.72);
}

.duel-empty {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.move-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(63, 208, 201, 0.1);
  border: 1px solid rgba(63, 208, 201, 0.24);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.move-reveal-card {
  position: relative;
  min-height: 74px;
  margin-top: 6px;
  perspective: 900px;
}

.move-reveal-face {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(63, 208, 201, 0.2);
  background: linear-gradient(180deg, rgba(21, 40, 56, 0.98), rgba(10, 21, 31, 0.98));
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.move-reveal-front {
  color: var(--warning);
}

.move-reveal-back {
  position: absolute;
  inset: 0;
  color: var(--accent-2);
  transform: rotateY(180deg);
}

.move-reveal-card.is-sealed .move-reveal-front {
  transform: rotateY(0deg);
}

.move-reveal-card.is-sealed .move-reveal-back {
  transform: rotateY(180deg);
}

.move-reveal-card.is-revealed .move-reveal-front {
  transform: rotateY(-180deg);
}

.move-reveal-card.is-revealed .move-reveal-back {
  transform: rotateY(0deg);
  box-shadow: 0 12px 28px rgba(63, 208, 201, 0.12);
}

.move-glyph {
  font-size: 1.7rem;
  line-height: 1;
}

.battle-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.replay-console {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 27, 38, 0.96), rgba(9, 19, 27, 0.96));
}

.replay-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.replay-speed {
  min-width: 112px;
}

.strip-card,
.stat-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 31, 43, 0.96), rgba(9, 19, 27, 0.96));
}

.strip-value {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.score-pop {
  animation: scorePop 520ms ease;
}

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

.phase-card {
  justify-content: space-between;
}

.phase-chip,
.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phase-chip {
  width: fit-content;
}

.accent-fire {
  background: rgba(255, 107, 61, 0.14);
  color: #ff8d68;
}

.accent-amber {
  background: rgba(240, 189, 79, 0.12);
  color: #ffd376;
}

.accent-cyan {
  background: rgba(63, 208, 201, 0.12);
  color: #7eefe9;
}

.accent-lime {
  background: rgba(216, 255, 98, 0.12);
  color: #e5ff99;
}

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

.mini-pill {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-pill.is-finished {
  background: rgba(84, 217, 135, 0.12);
  color: var(--success);
}

.mini-pill.is-active {
  background: rgba(34, 211, 238, 0.14);
  color: #7ee7f6;
}

.status-pill {
  background: rgba(63, 208, 201, 0.12);
  color: var(--accent-2);
}

.taunt-stage {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 33, 44, 0.94), rgba(9, 18, 26, 0.94));
}

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

.taunt-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 107, 61, 0.08);
  border: 1px solid rgba(255, 107, 61, 0.18);
  transform: translateY(0);
  opacity: 0.88;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.taunt-card.is-hot {
  opacity: 1;
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 107, 61, 0.4);
  box-shadow: 0 10px 24px rgba(255, 107, 61, 0.12);
}

.taunt-speaker {
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9d80;
}

.taunt-text {
  font-size: 1rem;
  line-height: 1.5;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.timeline-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline-item.system {
  background: rgba(63, 208, 201, 0.08);
}

.timeline-item.trash {
  background: rgba(255, 107, 61, 0.08);
}

.timeline-item.is-live {
  border-color: rgba(63, 208, 201, 0.36);
  transform: translateY(-2px);
}

.timeline-item.is-impact {
  border-color: rgba(240, 189, 79, 0.4);
  box-shadow: 0 12px 28px rgba(240, 189, 79, 0.12);
}

.timeline-item.is-finish {
  border-color: rgba(216, 255, 98, 0.44);
  box-shadow: 0 16px 32px rgba(216, 255, 98, 0.12);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-card .big,
.stat-card .big {
  font-size: 1.35rem;
  font-weight: 700;
}

.controls {
  display: grid;
  gap: 10px;
}

.controls textarea {
  min-height: 92px;
}

.muted {
  color: var(--muted);
}

.feed-counter {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(63, 208, 201, 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

.hint {
  color: var(--muted);
}

.api-chip {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--accent-2);
}

@keyframes arenaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 255, 98, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(216, 255, 98, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 255, 98, 0);
  }
}

@keyframes bannerEnter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scorePop {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(216, 255, 98, 0);
  }
  40% {
    transform: scale(1.16);
    text-shadow: 0 0 28px rgba(216, 255, 98, 0.42);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 24px rgba(216, 255, 98, 0.18);
  }
}

@keyframes tauntBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes winnerLift {
  0% {
    transform: translateY(6px) scale(0.98);
  }
  45% {
    transform: translateY(-16px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes resultStamp {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes clashFlash {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
  }
  36% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.4);
  }
}

@keyframes shockwavePulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.8);
  }
}

@keyframes resultDrop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-24px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

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

  .hero-stats,
  .battle-strip {
    grid-template-columns: 1fr;
  }

  .replay-console {
    flex-direction: column;
    align-items: stretch;
  }

  .replay-actions {
    align-items: stretch;
  }

  .arena-table {
    grid-template-columns: 1fr;
  }

  .arena-stage-header {
    flex-direction: column;
    align-items: start;
  }

  .duel-layout {
    grid-template-columns: 1fr;
  }

  .arena-ring {
    min-height: 620px;
  }

  .duelist-left,
  .duelist-right {
    bottom: 20%;
  }

  .duelist-left {
    left: 8%;
  }

  .duelist-right {
    right: 8%;
  }

  .shell {
    width: min(100vw - 20px, 1200px);
    padding-top: 18px;
  }

  .spectate-topbar {
    align-items: stretch;
  }

  .spectate-controls {
    width: 100%;
  }

}

.platform-page {
  min-height: 100vh;
  padding: 64px 0 40px;
}

.platform-shell {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.platform-page.is-game-match {
  padding-bottom: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 61, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(49, 221, 224, 0.025), transparent 280px),
    #0b1326;
}

.platform-page.is-game-match .platform-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.platform-page.is-game-match .platform-sidebar,
.platform-page.is-game-match .platform-rail {
  display: none;
}

.platform-page.is-game-match .platform-main {
  width: min(100%, 1320px);
  max-width: 1320px;
  justify-self: center;
  padding: 18px clamp(16px, 2vw, 34px) 34px;
}

.platform-page.is-game-match .nexus-topbar {
  background: rgba(2, 6, 23, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-page.is-game-match .page-stack {
  gap: 14px;
}

.platform-page.is-game-match .spectate-topbar {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(6, 13, 18, 0.58);
  backdrop-filter: blur(14px);
}

.platform-page.is-game-match .duel-view {
  min-height: auto;
}

.platform-page.is-game-match .duel-layout {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  align-items: start;
}

.platform-page.is-game-match .arena-ring {
  min-height: clamp(420px, calc(100vh - 420px), 540px);
}

.platform-page.is-game-match .fighter {
  padding: 16px;
}

.platform-page.is-game-match .fighter .score {
  font-size: clamp(2.75rem, 4vw, 4rem);
}

.platform-page.is-game-match .duelist {
  width: 150px;
}

.platform-page.is-game-match .duelist-avatar {
  width: 150px;
  height: 186px;
}

.platform-page.is-game-match .speech-bubble {
  top: 0;
  bottom: auto;
}

.platform-page.is-game-match .duelist-left .speech-bubble {
  left: -64px;
}

.platform-page.is-game-match .duelist-right .speech-bubble {
  right: -64px;
}

.platform-page.is-game-match .match-stage-header {
  margin-bottom: 12px;
}

.platform-page.is-game-match .match-side-panels {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 14px;
  margin-top: 14px;
}

.player-control-panel,
.referee-panel {
  background:
    linear-gradient(180deg, rgba(16, 28, 42, 0.98), rgba(8, 17, 26, 0.98));
}

.player-control-head,
.player-action-title,
.technical-lock {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.player-control-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.player-seat-toggle button,
.move-choice-grid button,
.taunt-presets button {
  min-width: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-seat-toggle button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.player-seat-toggle button span,
.player-action-title span,
.rps-rule-step small,
.move-choice-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.player-seat-toggle button.is-selected,
.move-choice-grid button.is-selected {
  border-color: rgba(49, 221, 224, 0.42);
  background: rgba(49, 221, 224, 0.11);
  box-shadow: inset 0 0 0 1px rgba(49, 221, 224, 0.08);
}

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

.rps-rule-step {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rps-rule-step span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.rps-rule-step.is-active {
  border-color: rgba(240, 189, 79, 0.34);
  background: rgba(240, 189, 79, 0.09);
}

.rps-rule-step.is-done {
  border-color: rgba(84, 217, 135, 0.28);
  background: rgba(84, 217, 135, 0.07);
}

.player-action-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(49, 221, 224, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.player-action-title strong {
  font-size: 1rem;
}

.player-action-card textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

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

.taunt-presets button {
  padding: 9px 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.move-choice-grid button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 118px;
  padding: 12px 10px;
  text-align: center;
}

.move-choice-grid button span,
.locked-move-preview span {
  font-size: 2rem;
  line-height: 1;
}

.move-choice-grid button small {
  line-height: 1.35;
}

.locked-move-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 84px;
  border-radius: 16px;
  border: 1px solid rgba(63, 208, 201, 0.22);
  background: rgba(63, 208, 201, 0.08);
}

.locked-move-preview strong {
  font-size: 1.1rem;
}

.technical-lock {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.technical-lock summary {
  cursor: pointer;
  font-weight: 800;
}

.technical-lock code {
  color: var(--accent-2);
}

@media (max-width: 980px) {
  .platform-page.is-game-match .duel-layout,
  .platform-page.is-game-match .match-side-panels {
    grid-template-columns: 1fr;
  }

  .platform-page.is-game-match .duel-stage {
    order: 1;
  }

  .platform-page.is-game-match .fighter-left {
    order: 2;
  }

  .platform-page.is-game-match .fighter-right {
    order: 3;
  }

  .platform-page.is-game-match .arena-ring {
    min-height: clamp(430px, 62svh, 540px);
  }
}

@media (max-width: 640px) {
  .platform-page.is-game-match .platform-main {
    padding: 18px 16px 28px;
  }

  .platform-page.is-game-match .arena-ring {
    min-height: 430px;
  }

  .platform-page.is-game-match .duelist {
    width: 136px;
  }

  .platform-page.is-game-match .duelist-left {
    left: 24px;
  }

  .platform-page.is-game-match .duelist-right {
    right: auto;
    left: clamp(146px, 42vw, 178px);
  }

  .platform-page.is-game-match .duelist-avatar {
    width: 136px;
    height: 168px;
  }

  .platform-page.is-game-match .duelist-nameplate {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .platform-page.is-game-match .speech-bubble {
    top: 0;
    max-width: 170px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .platform-page.is-game-match .duelist-left .speech-bubble {
    left: -2px;
  }

  .platform-page.is-game-match .duelist-right .speech-bubble {
    right: -2px;
  }
}

.platform-sidebar,
.platform-main,
.platform-rail {
  min-width: 0;
}

.platform-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 80px 16px 32px;
  background: #0f172a;
  border-right: 1px solid rgba(62, 72, 80, 0.32);
  display: flex;
  flex-direction: column;
}

.platform-sidebar h2,
.platform-main-header h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.platform-nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.platform-nav button {
  display: grid;
  justify-items: start;
  gap: 4px;
  border-radius: 0;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
}

.platform-nav button:not(.secondary) {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border-right: 4px solid #22d3ee;
  border-color: transparent #22d3ee transparent transparent;
}

.platform-nav button small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.platform-main {
  width: min(100%, 1560px);
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px clamp(24px, 2vw, 36px);
}

.platform-main-header {
  display: none;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 8px 0 2px;
  border-bottom: 1px solid var(--line);
}

.platform-rail {
  display: none;
  position: sticky;
  top: 64px;
}

.nexus-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(260px, 560px) minmax(220px, 0.4fr);
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.nexus-brand-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #22d3ee;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 6px 0;
}

.nexus-brand-button:hover,
.nexus-brand-button:focus-visible {
  color: #67e8f9;
  transform: none;
  box-shadow: none;
}

.nexus-global-search {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.nexus-global-search:focus-within {
  border-color: rgba(49, 221, 224, 0.5);
  box-shadow: 0 0 0 3px rgba(49, 221, 224, 0.08);
}

.nexus-global-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 10px 0 10px 16px;
  outline: 0;
}

.nexus-global-search input::placeholder {
  color: #64748b;
}

.nexus-global-search button {
  height: 100%;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 0;
}

.nexus-global-search button:hover,
.nexus-global-search button:focus-visible {
  color: #22d3ee;
  transform: none;
  box-shadow: none;
}

.nexus-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #94a3b8;
}

.nexus-agent-action {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.nexus-agent-action:hover,
.nexus-agent-action:focus-visible {
  border-color: rgba(49, 221, 224, 0.35);
  background: rgba(49, 221, 224, 0.07);
  transform: none;
}

.nexus-agent-action.active {
  border-color: rgba(49, 221, 224, 0.55);
  background: rgba(49, 221, 224, 0.1);
  color: #67e8f9;
}

.nexus-identity-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 9px 4px 4px;
  background: transparent;
  color: #cbd5e1;
}

.nexus-identity-button:hover,
.nexus-identity-button:focus-visible,
.nexus-identity-button.logged-in {
  border-color: rgba(49, 221, 224, 0.24);
  background: rgba(49, 221, 224, 0.06);
  transform: none;
}

.nexus-avatar {
  display: grid;
  position: relative;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(49, 221, 224, 0.2);
  background: #111827;
  overflow: hidden;
  color: #31dde0;
  font-weight: 900;
}

.nexus-notification-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #020617;
  border-radius: 999px;
  background: #ff6a88;
  color: #fff;
  font-size: 0.68rem;
  line-height: 14px;
}

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

.nexus-identity-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.nexus-identity-copy strong {
  max-width: 88px;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-identity-copy small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.nexus-identity-button.logged-in .nexus-identity-copy small {
  color: #31dde0;
}

.nexus-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px;
}

.nexus-brand > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #31dde0;
  color: #003738;
  font-weight: 900;
}

.nexus-brand h2 {
  margin: 0;
  color: #f1f5f9;
  font-size: 18px;
}

.nexus-brand p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nexus-hero-grid {
  --home-hero-height: clamp(170px, 18vh, 205px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.nexus-hero-card {
  position: relative;
  height: var(--home-hero-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 221, 224, 0.18);
  border-radius: 8px;
  background: #111827;
}

.nexus-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 221, 224, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 221, 224, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(58deg) translateY(72px) scale(1.3);
  transform-origin: bottom;
  opacity: 0.7;
}

.nexus-hero-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.nexus-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.9), rgba(3, 7, 18, 0.42) 48%, rgba(3, 7, 18, 0.08)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.78), transparent 58%);
}

.nexus-hero-copy {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 22px;
  max-width: 620px;
}

.nexus-hero-copy span,
.nexus-stat-stack span,
.nexus-metric-grid span,
.nexus-rail-card h3 {
  color: #22d3ee;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nexus-hero-copy h1 {
  margin: 8px 0;
  color: #f8fafc;
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.nexus-hero-copy p {
  max-width: 500px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.nexus-stat-stack,
.nexus-metric-grid {
  display: grid;
  height: var(--home-hero-height);
}

.nexus-stat-stack {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nexus-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nexus-stat-stack article,
.nexus-metric-grid article,
.nexus-rail-card,
.nexus-feed-post {
  border: 1px solid rgba(62, 72, 80, 0.5);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: none;
}

.nexus-stat-stack article {
  min-height: 0;
  padding: 22px;
}

.nexus-metric-grid article {
  display: grid;
  min-height: 0;
  position: relative;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 8px 10px 8px 14px;
}

.nexus-metric-grid article::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: #22d3ee;
  opacity: 0.86;
}

.nexus-stat-stack article.purple,
.nexus-rail-card.purple {
  border-color: rgba(236, 177, 255, 0.24);
}

.nexus-stat-stack strong {
  display: block;
  margin-top: 18px;
  color: #f8fafc;
  font-size: 2.8rem;
  line-height: 1;
}

.nexus-metric-grid strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(1.12rem, 1.35vw, 1.45rem);
  line-height: 1;
}

.nexus-metric-grid span {
  color: #9fb0c6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.nexus-stat-stack p {
  margin: 10px 0 0;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.nexus-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.nexus-feed-column {
  min-width: 0;
}

.nexus-feed-column .forum-thread-list {
  border-top: 1px solid var(--line);
}

.feed-tabs {
  display: flex;
  border: 1px solid rgba(62, 72, 80, 0.48);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
}

.feed-tabs button {
  border: 0;
  border-radius: 0;
  padding: 10px 18px;
  background: transparent;
  color: #94a3b8;
  font-weight: 800;
}

.feed-tabs button.active {
  background: #22d3ee;
  color: #003738;
}

.feed-tabs button:hover {
  color: #22d3ee;
  transform: none;
}

.feed-tabs button.active:hover {
  color: #003738;
}

.nexus-feed-post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.nexus-feed-post.agent-post {
  border-color: rgba(62, 72, 80, 0.5);
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-weight: 900;
}

.post-body {
  min-width: 0;
}

.post-body p {
  margin: 10px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 760px;
}

.nexus-home-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.nexus-rail-card {
  padding: 16px;
  background: rgba(15, 23, 42, 0.62);
}

.nexus-rail-card h3 {
  margin: 0 0 14px;
}

.rail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.rail-card-head h3 {
  margin: 0;
}

.rail-card-head .text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #22d3ee;
}

.nexus-rail-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  text-align: left;
}

.nexus-rail-card button strong {
  color: #22d3ee;
}

.nexus-rail-card .rail-card-head .text-link {
  width: auto;
  display: inline-flex;
  justify-content: flex-end;
  margin: 0 0 0 auto;
  padding: 0;
  background: transparent;
  color: #22d3ee;
  white-space: nowrap;
}

.announcement-list {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(62, 72, 80, 0.34);
  border-radius: 8px;
  background: rgba(62, 72, 80, 0.34);
}

.nexus-rail-card .announcement-list button,
.announcement-row {
  width: 100%;
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  text-align: left;
}

.nexus-rail-card .announcement-list button:hover {
  background: rgba(34, 211, 238, 0.1);
  transform: none;
}

.announcement-list span {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.announcement-list small {
  color: #94a3b8;
  line-height: 1.45;
}

.announcement-list.full {
  align-self: start;
}

.announcement-row.large {
  padding: 18px;
}

.announcement-row.large p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.65;
}

.announcement-row.large span {
  font-size: 1rem;
}

.announcement-row.is-archived {
  opacity: 0.78;
}

.announcements-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.announcement-side-stack {
  display: grid;
  gap: 24px;
  align-self: start;
}

.announcements-header .text-link {
  width: fit-content;
  margin-bottom: 10px;
}

.announcement-entry-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.announcement-entry-button:hover {
  transform: none;
  box-shadow: none;
}

.announcement-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-action-row button {
  width: auto;
  margin-top: 0;
}

.announcement-detail-card {
  display: grid;
  gap: 18px;
  align-self: start;
}

.announcement-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.announcement-detail-body {
  color: #dbeafe;
  line-height: 1.8;
}

.synthetic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.synthetic-row span {
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
}

.synthetic-row small {
  color: #ecb1ff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #cbd5e1;
  font-size: 0.84rem;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero-platform {
  margin-bottom: 0;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.community-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.community-hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.community-live-strip {
  display: grid;
  gap: 8px;
  min-width: 220px;
  color: var(--muted);
}

.community-live-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.community-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.community-board-card {
  min-height: 230px;
  padding: 18px;
  background: rgba(20, 23, 28, 0.96);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-board-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.community-board-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.community-board-topline span {
  color: var(--accent);
  font-size: 0.85rem;
}

.community-thread-panel {
  background: rgba(23, 26, 31, 0.68);
}

.page-header {
  padding: 24px;
}

.page-header-inline {
  margin-bottom: 0;
}

.identity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: end;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(49, 221, 224, 0.18);
  border-radius: 8px;
  background: #111827;
  position: relative;
  overflow: hidden;
}

.identity-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 221, 224, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 221, 224, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.42;
}

.identity-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.48));
}

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

.identity-hero.agent {
  border-color: rgba(236, 177, 255, 0.2);
}

.identity-hero span,
.identity-panel-head span {
  color: #22d3ee;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-hero h1 {
  margin: 10px 0 12px;
  color: #f8fafc;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.identity-hero p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.identity-hero-metrics {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #94a3b8;
}

.identity-hero-metrics strong {
  color: #f8fafc;
  font-size: 3.5rem;
  line-height: 1;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.identity-access-panel,
.identity-form-panel {
  border: 1px solid rgba(62, 72, 80, 0.5);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  padding: 22px;
}

.identity-form-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.identity-panel-head {
  margin-bottom: 18px;
}

.identity-panel-head h2 {
  margin: 8px 0;
  color: #f8fafc;
}

.identity-panel-head p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.identity-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(62, 72, 80, 0.36);
  border-radius: 8px;
  background: rgba(62, 72, 80, 0.36);
}

.identity-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(11, 19, 38, 0.92);
}

.identity-row strong {
  color: #f8fafc;
}

.identity-row p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
}

.identity-row > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.identity-form-panel button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: #31dde0;
  color: #003738;
  font-weight: 900;
}

.identity-token {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(49, 221, 224, 0.18);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.06);
}

.identity-token p {
  margin: 0;
  color: #94a3b8;
}

.identity-token code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.agent-skill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(62, 72, 80, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 221, 224, 0.14), rgba(240, 189, 79, 0.08)),
    rgba(8, 13, 25, 0.92);
}

.agent-skill-title {
  display: grid;
  align-content: center;
  gap: 12px;
}

.agent-skill-title > span,
.agent-section-kicker,
.agent-skill-install > span {
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.agent-skill-title h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.agent-skill-title p,
.agent-skill-install p {
  margin: 0;
  max-width: 66ch;
  color: #cbd5e1;
  line-height: 1.65;
}

.agent-skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-skill-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
}

.agent-skill-install {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.54);
}

.agent-skill-install strong {
  color: #f8fafc;
  font-size: 1.1rem;
}

.agent-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.agent-doc-main,
.agent-doc-sidebar,
.agent-install-section {
  display: grid;
  gap: 16px;
}

.agent-integration-panel {
  display: grid;
  gap: 18px;
}

.agent-integration-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-integration-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-integration-steps li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
}

.agent-integration-steps span {
  color: #94a3b8;
  line-height: 1.6;
}

.agent-integration-steps code {
  color: #dbeafe;
  overflow-wrap: anywhere;
}

.integration-packet {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid rgba(49, 221, 224, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.58;
}

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

.agent-fact-list div {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.agent-fact-list div:last-child {
  border-bottom: 0;
}

.agent-fact-list span {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-fact-list code {
  color: #dbeafe;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  background: #050a15;
  color: #f8fafc;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.12);
  opacity: 0.56;
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-visual::before {
  background:
    linear-gradient(90deg, rgba(5, 10, 21, 0.76), rgba(5, 10, 21, 0.22) 46%, rgba(5, 10, 21, 0.74)),
    linear-gradient(180deg, rgba(5, 10, 21, 0.16), rgba(5, 10, 21, 0.88));
}

.auth-visual::after {
  background-image:
    linear-gradient(rgba(49, 221, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 221, 224, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.34;
}

.auth-back,
.auth-copy,
.auth-proof {
  position: relative;
  z-index: 1;
}

.auth-back {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(5, 10, 21, 0.44);
  color: #dbeafe;
  backdrop-filter: blur(12px);
}

.auth-copy {
  max-width: 720px;
  padding: 12vh 0;
}

.auth-copy span,
.auth-panel-head span {
  color: #31dde0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.auth-copy h1 {
  margin: 12px 0 16px;
  font-size: 5.8rem;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.auth-copy p {
  max-width: 520px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.65;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.auth-proof div {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 21, 0.42);
  backdrop-filter: blur(12px);
}

.auth-proof strong {
  display: block;
  color: #f8fafc;
  font-size: 1.9rem;
  line-height: 1;
}

.auth-proof span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.auth-panel-wrap {
  display: grid;
  align-items: center;
  padding: clamp(22px, 4vw, 52px);
  border-left: 1px solid rgba(49, 221, 224, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(7, 12, 24, 0.98)),
    #07101f;
}

.auth-panel {
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.auth-panel-head h2 {
  margin: 8px 0;
  font-size: 2.25rem;
  letter-spacing: 0;
}

.auth-panel-head p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.58);
}

.auth-mode-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-weight: 900;
}

.auth-mode-switch button.active {
  background: rgba(49, 221, 224, 0.16);
  color: #e0ffff;
}

.auth-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-section-title strong {
  font-size: 1.02rem;
}

.auth-section-title span {
  color: #64748b;
  font-size: 0.82rem;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-panel .field {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-panel .field input,
.auth-panel .field textarea {
  min-height: 42px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
}

.auth-panel .field textarea {
  resize: vertical;
}

.auth-panel .field input::placeholder,
.auth-panel .field textarea::placeholder {
  color: #64748b;
}

.auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: #31dde0;
  color: #003738;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(148, 163, 184, 0.16);
}

.auth-message {
  padding: 12px 14px;
  border: 1px solid rgba(49, 221, 224, 0.18);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.07);
  color: #cbd5e1;
  line-height: 1.5;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(49, 221, 224, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52)),
    #101827;
}

.account-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.account-summary span {
  color: #31dde0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.account-summary h1 {
  max-width: 760px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.account-notifications {
  background: rgba(15, 23, 42, 0.72);
}

.notification-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
}

.notification-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(15, 23, 42, 0.86);
}

.notification-row.unread {
  background: rgba(49, 221, 224, 0.08);
}

.notification-row strong {
  color: var(--ink);
}

.notification-row p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.5;
}

.notification-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.account-summary p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

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

.account-actions button,
.account-summary .hero-actions button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: #31dde0;
  color: #003738;
  font-weight: 900;
}

.account-actions button.secondary,
.account-summary .hero-actions button.secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
}

.account-status-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.36);
}

.account-status-panel .post-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.account-status-panel strong {
  color: #f8fafc;
  font-size: 1.1rem;
}

.account-status-panel p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.account-status-panel dl {
  display: grid;
  gap: 1px;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.16);
}

.account-status-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(15, 23, 42, 0.86);
}

.account-status-panel dt,
.account-status-panel dd {
  margin: 0;
}

.account-status-panel dt {
  color: #64748b;
}

.account-status-panel dd {
  color: #cbd5e1;
  text-align: right;
}

.platform-home-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.game-card-grid,
.room-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-card,
.room-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  box-shadow: none;
  padding: 20px;
}

.game-entry-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(25, 40, 66, 0.98), rgba(11, 20, 34, 0.98));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.game-entry-card::before {
  content: "";
  position: absolute;
  inset: auto -14% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(10px);
  opacity: 0.55;
  transition: transform 180ms ease, opacity 180ms ease;
}

.game-entry-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.32);
  filter: brightness(1.08);
}

.game-entry-card:hover::before {
  transform: scale(1.08);
  opacity: 0.82;
}

.game-entry-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.game-entry-card.tone-rps {
  background:
    radial-gradient(circle at top left, rgba(49, 221, 224, 0.32), transparent 30%),
    linear-gradient(145deg, #214d87 0%, #11294c 45%, #0d1729 100%);
}

.game-entry-card.tone-elemental {
  background:
    radial-gradient(circle at top left, rgba(255, 171, 78, 0.34), transparent 30%),
    linear-gradient(145deg, #6a2d1f 0%, #2c1830 48%, #12172b 100%);
}

.game-entry-card.tone-default {
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 32%),
    linear-gradient(145deg, #24324f 0%, #142133 50%, #0c1624 100%);
}

.game-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.game-card-topline,
.room-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.game-card-logo {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.game-card-logo span {
  font-size: 2rem;
  line-height: 1;
}

.game-card-room-total {
  min-width: 92px;
  text-align: right;
}

.game-card-room-total span {
  display: block;
  color: rgba(230, 238, 255, 0.76);
  font-size: 0.8rem;
}

.game-card-room-total strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.game-card-description {
  max-width: 28ch;
  margin: 0;
  color: rgba(236, 243, 255, 0.84);
  line-height: 1.6;
}

.game-card-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f7ff;
}

.game-entry-card:hover .game-card-enter {
  background: rgba(255, 255, 255, 0.18);
}

.game-entry-card:hover .game-card-enter strong {
  transform: translateX(4px);
}

.game-stat {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.game-stat span,
.status-row span,
.ranking-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.game-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.game-card-enter strong {
  transition: transform 180ms ease;
}

.rps-lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.lobby-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.lobby-room-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(15, 28, 40, 0.98), rgba(8, 15, 22, 0.98));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.lobby-room-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -22% auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
  opacity: 0.62;
  transition: transform 180ms ease, opacity 180ms ease;
}

.lobby-room-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.9;
}

.lobby-room-card:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.26);
  border-color: rgba(255, 255, 255, 0.18);
  filter: brightness(1.05);
}

.lobby-room-card:hover:not(:disabled)::before {
  transform: scale(1.08);
  opacity: 0.86;
}

.lobby-room-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.lobby-room-card.is-waiting {
  border-color: rgba(89, 175, 255, 0.26);
  background:
    radial-gradient(circle at top left, rgba(89, 175, 255, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(18, 42, 64, 0.98), rgba(8, 18, 28, 0.98));
  box-shadow: 0 16px 24px rgba(14, 74, 128, 0.2);
}

.lobby-room-card.is-ready {
  border-color: rgba(240, 189, 79, 0.28);
  background:
    radial-gradient(circle at top left, rgba(240, 189, 79, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(41, 33, 18, 0.98), rgba(17, 14, 9, 0.98));
  box-shadow: 0 16px 24px rgba(103, 74, 12, 0.22);
}

.lobby-room-card.is-live {
  border-color: rgba(255, 107, 61, 0.32);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 61, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(50, 24, 18, 0.98), rgba(20, 11, 9, 0.98));
  box-shadow: 0 16px 26px rgba(120, 31, 8, 0.26);
}

.lobby-room-card.is-finished {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(25, 28, 35, 0.98), rgba(10, 14, 19, 0.98));
  box-shadow: 0 14px 22px rgba(20, 24, 30, 0.28);
}

.lobby-room-card.is-waiting::after {
  background: linear-gradient(180deg, #56a7ff, #245b9d);
}

.lobby-room-card.is-ready::after {
  background: linear-gradient(180deg, #f0bd4f, #9f6d0f);
}

.lobby-room-card.is-live::after {
  background: linear-gradient(180deg, #ff7b56, #b23c1c);
}

.lobby-room-card.is-finished::after {
  background: linear-gradient(180deg, #a6b4c9, #5a6677);
}

.lobby-room-topline,
.lobby-room-score,
.lobby-room-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.lobby-room-score-copy span,
.lobby-room-state span,
.lobby-room-topline .meta,
.lobby-room-footer span,
.lobby-user-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.lobby-room-score-copy strong,
.lobby-room-state strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

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

.lobby-user-chip {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.lobby-user-chip > div {
  display: grid;
  gap: 2px;
}

.lobby-user-chip strong {
  display: flex;
  min-width: 0;
  margin-bottom: 3px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.lobby-user-chip strong .identity-name {
  display: inline-flex;
  max-width: 100%;
}

.lobby-user-chip strong .identity-name > span:first-child {
  display: block;
  color: inherit;
  font-size: inherit;
}

.ranking-copy strong .identity-name {
  display: inline-flex;
  max-width: 100%;
}

.ranking-copy strong .identity-name > span:first-child {
  display: block;
  color: inherit;
  font-size: inherit;
}

.lobby-user-chip.is-empty {
  border-style: dashed;
  opacity: 0.82;
}

.lobby-user-chip.is-open-seat {
  border-color: rgba(110, 196, 255, 0.56);
  background:
    radial-gradient(circle at top left, rgba(110, 196, 255, 0.18), transparent 46%),
    rgba(86, 167, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(110, 196, 255, 0.08), 0 0 18px rgba(86, 167, 255, 0.14);
  opacity: 1;
  animation: openSeatPulse 2s ease-in-out infinite;
}

.lobby-user-chip.is-open-seat strong {
  color: #d7eeff;
}

.lobby-user-chip.is-open-seat span {
  color: #9fd4ff;
}

.lobby-open-seat-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: rgba(110, 196, 255, 0.18);
  border: 1px solid rgba(110, 196, 255, 0.38);
  color: #cfe8ff;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.lobby-room-topline .mini-pill {
  padding: 4px 8px;
  font-size: 0.68rem;
}

.lobby-room-status-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.lobby-room-status-pill.is-waiting {
  background: rgba(86, 167, 255, 0.18);
  color: #b9deff;
}

.lobby-room-status-pill.is-ready {
  background: rgba(240, 189, 79, 0.18);
  color: #ffe1a0;
}

.lobby-room-status-pill.is-live {
  background: rgba(255, 123, 86, 0.18);
  color: #ffc1b2;
  box-shadow: 0 0 0 1px rgba(255, 123, 86, 0.08), 0 0 18px rgba(255, 123, 86, 0.16);
}

.lobby-room-status-pill.is-finished {
  background: rgba(166, 180, 201, 0.14);
  color: #d4deee;
}

.lobby-room-card.is-waiting .lobby-room-footer strong {
  color: #9ed2ff;
}

.lobby-room-card.is-ready .lobby-room-footer strong {
  color: #ffd27a;
}

.lobby-room-card.is-live .lobby-room-footer strong {
  color: #ffb199;
}

.lobby-room-card.is-finished .lobby-room-footer strong {
  color: #cad4e4;
}

.lobby-room-card.is-waiting .lobby-user-chip {
  background: rgba(86, 167, 255, 0.08);
}

.lobby-room-card.is-ready .lobby-user-chip {
  background: rgba(240, 189, 79, 0.08);
}

.lobby-room-card.is-live .lobby-user-chip {
  background: rgba(255, 107, 61, 0.09);
}

.lobby-room-card.is-finished .lobby-user-chip {
  background: rgba(148, 163, 184, 0.08);
}

.lobby-room-footer {
  align-items: center;
}

.lobby-room-footer strong {
  font-size: 0.82rem;
  transition: transform 180ms ease;
}

.lobby-room-card:hover:not(:disabled) .lobby-room-footer strong {
  transform: translateX(4px);
}

.lobby-room-card.is-live:hover:not(:disabled) {
  box-shadow: 0 20px 30px rgba(120, 31, 8, 0.34);
}

@keyframes openSeatPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(110, 196, 255, 0.08), 0 0 14px rgba(86, 167, 255, 0.1);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(110, 196, 255, 0.16), 0 0 22px rgba(86, 167, 255, 0.18);
  }
}

.lobby-header {
  align-items: end;
}

.lobby-header-actions {
  align-self: start;
}

.lobby-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.lobby-overview-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(63, 208, 201, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(16, 29, 40, 0.94), rgba(10, 18, 26, 0.96));
}

.lobby-overview-card span,
.table-room-meta span,
.table-room-head p,
.lobby-group-head p,
.seat-index,
.seat-state {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.lobby-overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.lobby-floor-panel {
  overflow: hidden;
}

.lobby-room-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lobby-room-group {
  display: grid;
  gap: 16px;
}

.lobby-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.lobby-group-head h3,
.table-room-head h3 {
  margin: 0;
}

.table-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.table-room {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(14, 26, 36, 0.98), rgba(7, 15, 22, 0.98));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.table-room.is-waiting {
  border-color: rgba(87, 173, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(87, 173, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(15, 30, 44, 0.98), rgba(8, 17, 27, 0.98));
}

.table-room.is-starting {
  border-color: rgba(240, 189, 79, 0.28);
  background:
    radial-gradient(circle at top left, rgba(240, 189, 79, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(38, 30, 17, 0.98), rgba(17, 14, 9, 0.98));
}

.table-room.is-live {
  border-color: rgba(255, 107, 61, 0.3);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 61, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(43, 24, 18, 0.98), rgba(20, 11, 9, 0.98));
}

.table-room.is-replay {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(22, 26, 33, 0.98), rgba(10, 14, 19, 0.98));
}

.table-room-topline,
.table-room-head,
.table-room-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.table-room-meta {
  min-width: 88px;
  text-align: right;
}

.table-room-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.28rem;
}

.table-seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lobby-seat {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.lobby-seat strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.lobby-seat.is-empty {
  border-style: dashed;
  opacity: 0.78;
}

.lobby-seat.is-occupied {
  background: rgba(255, 255, 255, 0.06);
}

.table-room-footer {
  align-items: center;
}

.lobby-control-card .stack {
  gap: 12px;
}

.page-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-select {
  margin-bottom: 16px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-panel-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(86, 167, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 31, 45, 0.98), rgba(9, 17, 25, 0.98));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.ranking-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.ranking-row,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.ranking-row.is-top {
  border-color: rgba(255, 214, 102, 0.18);
  background:
    radial-gradient(circle at left center, rgba(255, 214, 102, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.05);
}

.ranking-rank,
.ranking-score {
  font-weight: 700;
}

.ranking-rank {
  width: 40px;
  text-align: center;
  padding: 8px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-row.is-top .ranking-rank {
  background: rgba(255, 214, 102, 0.16);
  color: #ffe4a5;
}

.ranking-copy {
  flex: 1;
  min-width: 0;
}

.ranking-copy strong {
  display: block;
  min-width: 0;
  margin-bottom: 2px;
}

.ranking-score {
  min-width: 40px;
  text-align: right;
  color: #d7ecff;
}

.status-list {
  display: flex;
  flex-direction: column;
}

.match-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.match-stage-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.match-side-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.director-card.focus-win {
  border-color: rgba(84, 217, 135, 0.45);
}

.director-card.focus-impact {
  border-color: rgba(255, 107, 61, 0.45);
}

.director-card.focus-reveal {
  border-color: rgba(63, 208, 201, 0.45);
}

.director-card.focus-commit {
  border-color: rgba(240, 189, 79, 0.45);
}

.feed-card {
  padding: 14px;
}

.feed-card.trash {
  border-color: rgba(255, 107, 61, 0.36);
}

.feed-card.system {
  border-color: rgba(63, 208, 201, 0.26);
}

.prewrap {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1280px) {
  .platform-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  }

  .auth-copy h1 {
    font-size: 5.8rem;
  }

  .platform-rail {
    display: none;
  }

  .nexus-home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .table-room-grid {
    grid-template-columns: 1fr;
  }

  .lobby-room-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 46svh;
  }

  .auth-copy {
    padding: 8vh 0 5vh;
  }

  .auth-panel-wrap {
    border-left: 0;
    border-top: 1px solid rgba(49, 221, 224, 0.12);
  }

  .rps-lobby-layout,
  .lobby-overview-strip,
  .lobby-room-users,
  .agent-integration-summary,
  .agent-skill-hero,
  .agent-doc-layout,
  .table-seats,
  .platform-home-grid,
  .match-side-panels,
  .account-shell,
  .game-card-grid,
  .room-card-grid,
  .community-hero,
  .identity-layout,
  .forum-board-layout,
  .search-results-layout,
  .forum-editor-layout,
  .nexus-hero-grid,
  .nexus-home-layout,
  .announcements-layout {
    grid-template-columns: 1fr;
  }

  .identity-form-panel {
    position: static;
  }

  .nexus-stat-stack,
  .nexus-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .nexus-home-rail {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .lobby-toolbar,
  .lobby-room-score,
  .lobby-room-footer {
    flex-direction: column;
    align-items: start;
  }

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

  .lobby-group-head,
  .table-room-head,
  .table-room-footer {
    flex-direction: column;
    align-items: start;
  }

  .table-room-meta {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .auth-visual {
    min-height: 40svh;
    padding: 22px 18px;
  }

  .auth-copy h1 {
    font-size: 3.05rem;
    line-height: 1;
  }

  .auth-proof {
    display: none;
  }

  .auth-panel-wrap {
    padding: 18px;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head .hero-actions {
    width: 100%;
  }

  .section-head .hero-actions button {
    flex: 1 1 140px;
  }

  .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-sidebar {
    position: static;
    height: auto;
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(62, 72, 80, 0.32);
  }

  .platform-rail {
    display: none;
  }

  .platform-main {
    padding: 20px 14px 32px;
  }

  .platform-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .nexus-topbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 14px;
    overflow-x: auto;
    padding: 0 14px;
  }

  .nexus-top-actions {
    gap: 12px;
  }

  .nexus-identity-copy {
    display: none;
  }

  .nexus-hero-card,
  .nexus-hero-card img {
    min-height: 220px;
  }

  .nexus-hero-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .nexus-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

  .nexus-hero-copy p {
    max-width: 30ch;
  }

  .nexus-stat-stack,
  .nexus-metric-grid,
  .nexus-home-rail {
    grid-template-columns: 1fr;
  }

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

  .nexus-stat-stack article,
  .nexus-metric-grid article {
    min-height: 76px;
  }

  .identity-hero {
    grid-template-columns: 1fr;
    min-height: 240px;
    padding: 22px 18px;
  }

  .account-shell {
    padding: 20px 18px;
  }

  .account-summary h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .identity-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .identity-hero-metrics {
    justify-items: start;
  }

  .identity-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .identity-row > span {
    grid-column: 2;
    width: fit-content;
  }

  .forum-toolbar,
  .forum-two-col,
  .community-board-grid {
    grid-template-columns: 1fr;
  }

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

  .community-hero h1 {
    font-size: clamp(2.1rem, 13vw, 3.8rem);
  }

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

  .thread-row-meta {
    justify-content: start;
  }

  .thread-post {
    grid-template-columns: 1fr;
  }

  .thread-comment-composer {
    grid-template-columns: 1fr;
  }

  .thread-comment-head,
  .comment-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-detail-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .nexus-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 14px;
  }

  .nexus-agent-action {
    display: none;
  }

  .nexus-brand-button {
    font-size: 0;
  }

  .nexus-brand-button::before {
    content: "X";
    font-size: 20px;
  }

  .nexus-global-search {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .nexus-global-search input {
    padding-left: 12px;
  }

  .nexus-top-actions {
    margin-left: auto;
  }

  .platform-main {
    padding-inline: 12px;
  }

  .platform-page,
  .platform-shell,
  .platform-main,
  .page-stack,
  .panel,
  .announcements-layout,
  .announcement-list.full {
    max-width: 100%;
    overflow-x: hidden;
  }

  .panel p,
  .announcements-header p,
  .announcement-row span,
  .announcement-row.large span {
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .announcements-header p {
    max-width: 30ch;
  }

  .announcement-row span,
  .announcement-row.large span {
    max-width: 28ch;
  }
}
