:root {
  --bg: #101312;
  --panel: #181d1a;
  --panel-2: #202720;
  --line: rgba(247, 242, 232, 0.14);
  --text: #f7f2e8;
  --muted: #b9b5aa;
  --mint: #78dcca;
  --gold: #f4b860;
  --danger: #ef6f6c;
  --ink: #111312;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, rgba(120, 220, 202, 0.08), transparent 360px), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
.button,
input,
textarea,
select {
  border-radius: 8px;
  font: inherit;
}

button,
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d100f;
  color: var(--text);
  padding: 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
}

.site-header form {
  margin: 0;
}

.brand {
  font-weight: 900;
  color: var(--mint);
}

.hero {
  max-width: 780px;
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.hero h1,
.public-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.hero p,
.public-hero p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.public-hero .game-cv-headline {
  margin: 12px 0 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.availability-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 14px 0 0;
}

.availability-note strong {
  color: var(--mint);
}

.availability-note span {
  color: var(--muted);
}

.proof-link {
  min-height: 34px;
}

.contact-link {
  margin-top: 14px;
  min-height: 36px;
}

.tag.proof-level {
  background: rgba(120, 220, 202, 0.14);
  color: var(--mint);
}

.panel,
.stat-card,
.game-card,
.achievement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 29, 26, 0.92);
}

.panel {
  padding: 18px;
}

.feature-grid,
.dashboard-grid,
.edit-grid,
.two-column {
  display: grid;
  gap: 18px;
  margin: 18px 0 44px;
}

.feature-grid,
.stat-grid,
.card-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.dashboard-grid,
.edit-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}

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

.stack {
  display: grid;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.share-link-panel {
  display: grid;
  gap: 12px;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.share-link-input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-link-action {
  min-width: 72px;
}

.completion-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.completion-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.completion-status {
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
}

.completion-item.is-complete .completion-status {
  color: var(--mint);
}

.completion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.completion-copy strong {
  overflow-wrap: anywhere;
}

.completion-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  line-height: 1.2;
}

.section-head h1 {
  font-size: clamp(24px, 3vw, 30px);
}

.section-head h2 {
  font-size: 21px;
}

.avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
}

.avatar.large {
  width: 96px;
  height: 96px;
}

.avatar.xl {
  width: 180px;
  height: 180px;
}

.profile-panel {
  display: grid;
  gap: 10px;
}

.profile-row,
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-panel h1,
.profile-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.full {
  width: 100%;
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.achievement-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.achievement-card p {
  margin: 0;
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(120, 220, 202, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.tag.gold,
.notice {
  background: rgba(244, 184, 96, 0.16);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.notice.danger {
  background: rgba(239, 111, 108, 0.14);
}

.game-list,
.choice-list {
  display: grid;
  gap: 10px;
}

.game-row,
.game-choice {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(16, 19, 18, 0.5);
}

.game-row .game-art,
.game-choice .game-art,
.game-card .game-art {
  width: 100%;
  aspect-ratio: 2.12 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-2);
}

.game-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(120, 220, 202, 0.16) 0 25%, transparent 25% 50%, rgba(244, 184, 96, 0.12) 50% 75%, transparent 75%),
    var(--panel-2);
  background-size: 18px 18px;
}

.game-art-fallback::after {
  content: "LG";
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.game-row h3,
.game-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.game-card {
  overflow: hidden;
}

.game-card div {
  padding: 12px;
}

.compact-game {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.form-panel,
.choice-grid {
  display: grid;
  gap: 12px;
}

.achievement-fields,
.contact-link-fields,
.proof-link-fields {
  display: grid;
  gap: 12px;
}

.achievement-fields h2,
.contact-link-fields h2,
.proof-link-fields h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.proof-link-field {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 12px;
}

.proof-link-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 34px;
}

.proof-link-card {
  display: grid;
  gap: 8px;
}

.proof-link-card strong,
.proof-link-card .muted {
  overflow-wrap: anywhere;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 34px;
}

.timeline-item {
  display: grid;
  gap: 8px;
}

.timeline-item h3,
.timeline-item p {
  margin: 0;
}

.timeline-item p {
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.timeline-evidence {
  margin-top: 4px;
}

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

.featured-game-field,
.featured-rank-fields,
.featured-rank-field,
.featured-nickname-field,
.featured-role-field,
.featured-note-field,
.featured-proof-fields,
.featured-proof-field {
  display: grid;
  gap: 8px;
}

.featured-rank-fields,
.featured-proof-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-role-field,
.featured-nickname-field,
.featured-rank-field,
.featured-note-field,
.featured-proof-field {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.featured-note-input {
  min-height: 76px;
}

.featured-game-note {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.featured-game-proof-link {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.featured-game-proof-link strong {
  font-size: 13px;
}

.featured-game-nickname {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.featured-game-role {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  border: 1px solid rgba(120, 220, 202, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.featured-game-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.featured-game-rank {
  border: 1px solid rgba(244, 197, 94, 0.32);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.choice,
.game-choice {
  cursor: pointer;
}

.game-choice {
  grid-template-columns: auto 120px minmax(0, 1fr);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty p {
  margin: 0 0 14px;
}

.public-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 29, 26, 0.72);
  padding: 28px;
  margin: 18px 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 36px 0;
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.auth-copy p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-panel,
.compose-panel {
  display: grid;
  gap: 14px;
}

.auth-panel h2,
.compose-panel h2,
.post-card h2 {
  margin: 0;
  line-height: 1.25;
}

.auth-panel h2,
.compose-panel h2 {
  font-size: 20px;
}

.post-card h2 {
  font-size: 17px;
}

.author-link:hover {
  color: var(--mint);
}

.provider-list,
.compose-form,
.feed-list {
  display: grid;
  gap: 12px;
}

.provider-button {
  width: 100%;
}

.provider-button.disabled,
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.feed-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0 44px;
}

.sticky-panel {
  position: sticky;
  top: 18px;
}

.section-head.compact {
  margin: 0;
}

.compose-form textarea {
  min-height: 116px;
}

.evidence-fields {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 12px;
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: flex-end;
}

.compose-form button {
  justify-self: end;
  min-width: 96px;
  font-size: 14px;
}

.feed-filter-panel {
  display: grid;
  gap: 12px;
}

.feed-filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.feed-filter-form button {
  justify-self: start;
  min-width: 80px;
}

.game-cv-setup-prompt {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.game-cv-setup-prompt h2 {
  margin: 0;
  font-size: 18px;
}

.setup-missing-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-missing-list li {
  display: grid;
  gap: 4px;
}

.setup-missing-list strong,
.setup-missing-list span {
  overflow-wrap: anywhere;
}

.setup-missing-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.matching-shortcuts {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.matching-shortcut-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.matching-shortcut-head h3 {
  margin: 0;
  font-size: 16px;
}

.matching-shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matching-shortcut {
  display: grid;
  gap: 3px;
  min-width: 168px;
  max-width: 240px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.matching-shortcut strong,
.matching-shortcut span {
  overflow-wrap: anywhere;
}

.matching-shortcut span {
  color: var(--muted);
  font-size: 13px;
}

.active-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-tag {
  background: rgba(244, 184, 96, 0.16);
}

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

.public-post-list {
  margin: 0 0 34px;
}

.post-head {
  justify-content: space-between;
}

.post-head > div {
  min-width: 0;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.post-category {
  min-height: 24px;
  padding: 0 8px;
}

.intent-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(46, 196, 182, 0.14);
  color: var(--mint);
}

.identity-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(247, 242, 232, 0.1);
  color: var(--text);
}

.role-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(255, 170, 136, 0.14);
  color: #ffc4ad;
}

.profile-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(145, 216, 122, 0.14);
  color: #c7f4b7;
}

.game-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(244, 184, 96, 0.14);
  color: var(--gold);
}

.region-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(132, 166, 255, 0.14);
  color: #b9c8ff;
}

.language-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(178, 145, 255, 0.14);
  color: #d6c7ff;
}

.microphone-tag {
  min-height: 24px;
  padding: 0 8px;
  background: rgba(120, 220, 202, 0.12);
  color: #a9efe4;
}

.match-badge {
  min-height: 24px;
  padding: 0 8px;
  border-color: rgba(46, 196, 182, 0.45);
  background: rgba(46, 196, 182, 0.22);
  color: var(--mint);
}

.shared-game-badge {
  min-height: 24px;
  padding: 0 8px;
  border-color: rgba(244, 184, 96, 0.42);
  background: rgba(244, 184, 96, 0.22);
  color: var(--gold);
}

.post-game-career {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.post-author-headline {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.post-game-career-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(120, 220, 202, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.post-game-career-item strong {
  margin-left: 4px;
  color: var(--text);
}

.post-game-career-proof {
  border-color: rgba(244, 184, 96, 0.34);
  color: var(--gold);
}

.post-game-career-proof strong {
  color: var(--text);
}

.post-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.post-availability strong {
  color: var(--mint);
}

.post-contact-link {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.post-body {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.post-evidence-link {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(16, 19, 18, 0.5);
}

.post-evidence-link strong,
.post-evidence-link .muted {
  overflow-wrap: anywhere;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.error-panel {
  max-width: 640px;
  margin: 80px auto;
  display: grid;
  gap: 14px;
}

@media (max-width: 860px) {
  .feature-grid,
  .dashboard-grid,
  .edit-grid,
  .two-column,
  .stat-grid,
  .card-grid,
  .achievement-grid,
  .auth-shell,
  .feed-shell {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .public-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .compose-actions,
  .evidence-fields,
  .feed-filter-form {
    grid-template-columns: 1fr;
  }

  .matching-shortcut {
    max-width: none;
    width: 100%;
  }

  .proof-link-field {
    grid-template-columns: 1fr;
  }

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

  .compose-form button,
  .feed-filter-form button,
  .share-link-action {
    width: 100%;
  }
}
