/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.20_@babel+core@7.29.7_@opentelemetry+api@1.9.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.20_@babel+core@7.29.7_@opentelemetry+api@1.9.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ── Design tokens — 3 themes, ported from docs/prototype/guild-prototype.html.
   Applied via [data-theme] on <html> so ThemeToggle can flip them at runtime. ── */
:root,
html[data-theme='dracula'] {
  --bg: #282a36;
  --surface: #21222c;
  --card: #343746;
  --card-hover: #3b3e50;
  --border: rgba(98, 114, 164, 0.28);
  --text: #f8f8f2;
  --text2: #8a93c5;
  --accent: #bd93f9;
  --accent-rgb: 189, 147, 249;
  --green: #50fa7b;
  --orange: #ffb86c;
  --red: #ff5555;
  --pink: #ff79c6;
  --cyan: #8be9fd;
  color-scheme: dark;
}
html[data-theme='warm'] {
  --bg: #1a1512;
  --surface: #221d19;
  --card: #2e2520;
  --card-hover: #382c25;
  --border: rgba(201, 131, 58, 0.25);
  --text: #f0e0c8;
  --text2: #a3876c;
  --accent: #c9833a;
  --accent-rgb: 201, 131, 58;
  --green: #8fbf6a;
  --orange: #e0a458;
  --red: #d9684a;
  --pink: #d98a8a;
  --cyan: #7fb3ab;
  color-scheme: dark;
}
html[data-theme='apple'] {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --card: #ffffff;
  --card-hover: #f5f5fa;
  --border: rgba(60, 60, 67, 0.15);
  --text: #1c1c1e;
  --text2: #6c6c70;
  --accent: #007aff;
  --accent-rgb: 0, 122, 255;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --pink: #ff2d55;
  --cyan: #32ade6;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
button,
input,
textarea {
  font-family: inherit;
}
a {
  color: inherit;
}
::selection {
  background: rgba(var(--accent-rgb), 0.35);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Layout shell ─────────────────────────────────────────── */
.shell {
  display: flex;
  min-height: 100vh;
}
.sidenav {
  flex: 0 0 auto;
  width: 220px;
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wordmark {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 12px 24px;
}
.wordmark span {
  color: var(--accent);
}
.navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.navlink:hover {
  background: var(--card-hover);
  color: var(--text);
}
.navlink.active {
  background: var(--card);
  color: var(--accent);
}
.navlink svg {
  width: 18px;
  height: 18px;
}
button.navlink {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.topbar-spacer {
  flex: 1 1;
}
.topbar-wordmark {
  display: none;
  margin: 0;
}
@media (max-width: 780px) {
  .topbar-wordmark {
    display: block;
  }
}

/* ── Bottom nav (mobile) ──────────────────────────────────── */
.bottomnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}
@media (max-width: 780px) {
  .sidenav {
    display: none;
  }
  .bottomnav {
    display: flex;
  }
  .main {
    padding-bottom: 84px;
  }
}
.navbtn {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
}
.navbtn svg {
  width: 22px;
  height: 22px;
}
.navbtn.active {
  color: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  color: #14151b;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  background: var(--card-hover);
}
.btn.danger {
  background: rgba(255, 85, 85, 0.14);
  color: var(--red);
}
.btn.danger:hover {
  background: rgba(255, 85, 85, 0.22);
}
.btn.sm {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 9px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn svg {
  width: 14px;
  height: 14px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  flex: 0 0 auto;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--card-hover);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Cards / generic ──────────────────────────────────────── */
.card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.muted {
  color: var(--text2);
}
.label {
  font-size: 11px;
  color: var(--text2);
}
.section-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Respiro antes de cada seção seguinte. `.card` não tem margem própria, então
   sem isto o card de uma seção encosta no título da próxima — pouco visível
   no feed (os cards de notícia têm margem), gritante no perfil, que empilha
   Badges / Sessões / Biblioteca / Configurações em sequência. */
.section-title:not(:first-child) {
  margin-top: 24px;
}
.section-title .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text2);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #14151b;
  border: none;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.avatar.sz-28 {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.avatar.sz-36 {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.avatar.sz-44 {
  width: 44px;
  height: 44px;
  font-size: 14px;
}
.avatar.sz-72 {
  width: 72px;
  height: 72px;
  font-size: 22px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.clickable {
  cursor: pointer;
}
.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.status-dot.online {
  background: var(--green);
}
.status-dot.playing {
  background: var(--orange);
}
.status-dot.offline {
  background: var(--text2);
  opacity: 0.6;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.accent {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
}
.tag.orange {
  background: rgba(255, 184, 108, 0.16);
  color: var(--orange);
}
.tag.neutral {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.tag.pink {
  background: color-mix(in srgb, var(--pink) 16%, transparent);
  color: var(--pink);
}
.tag.cyan {
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  color: var(--cyan);
}

/* ── Discover / content feed ─────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.filters::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
}
.chip.active {
  background: var(--accent);
  color: #14151b;
  border-color: var(--accent);
}
.news-card {
  margin-bottom: 10px;
}
.news-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.news-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 6px 0 4px;
  color: var(--text);
  text-decoration: none;
}
.news-title:hover {
  text-decoration: underline;
}
.news-summary {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0 0 8px;
}
.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.news-src {
  font-size: 10px;
  color: var(--text2);
}
.review-composer {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-composer-rating {
  font-size: 11px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-composer-rating input {
  flex: 1 1;
  min-width: 0;
}
.review-composer textarea {
  font-size: 12px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  resize: vertical;
  font-family: inherit;
}
.review-composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.review-composer-hint {
  font-size: 10px;
  color: var(--text2);
}
.review-card {
  margin-bottom: 10px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.review-who {
  min-width: 0;
  flex: 1 1;
}
.review-author {
  font-size: 12px;
  font-weight: 600;
}
.review-game {
  font-size: 10px;
  color: var(--text2);
}
.review-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 auto;
}
.news-signals {
  margin-top: 8px;
}
.news-signals-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Empurra o "i" pro canto inferior direito do card. */
.news-rec {
  position: relative;
  margin-left: auto;
}
.rec-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
}
.rec-toggle svg {
  width: 15px;
  height: 15px;
}
.rec-toggle:hover {
  color: var(--text);
}
/* Depois de avaliar, o próprio "i" carrega a cor da escolha. */
.rec-toggle.marked.good {
  color: var(--green);
  border-color: var(--green);
}
.rec-toggle.marked.bad {
  color: var(--red);
  border-color: var(--red);
}
.rec-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.rec-pop-title {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--text2);
}
.rec-pop-actions {
  display: flex;
  gap: 6px;
}
.rec-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.rec-opt svg {
  width: 14px;
  height: 14px;
}
.rec-opt.good {
  color: var(--green);
}
.rec-opt.bad {
  color: var(--red);
}
.rec-opt.good:hover,
.rec-opt.good.active {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
}
.rec-opt.bad:hover,
.rec-opt.bad.active {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
}
.rec-opt.active svg {
  fill: currentColor;
}
.rec-pop-reason {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.rec-pop-reason input {
  flex: 1 1;
  min-width: 0;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
}
.link-btn {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 11px;
  color: var(--text2);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--text);
}

/* ── XP bar ───────────────────────────────────────────────── */
.xpbar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.xpbar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Leaderboard / podium ────────────────────────────────── */
.period-toggle {
  display: flex;
  padding: 3px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.period-toggle button {
  flex: 1 1;
  padding: 7px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.period-toggle button.active {
  background: var(--accent);
  color: #14151b;
}
.season-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 18px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
}
.season-select select {
  min-width: 190px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  grid-gap: 8px;
  gap: 8px;
  min-height: 270px;
  margin: 0 0 14px;
  padding: 12px 8px 0;
  list-style: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(var(--accent-rgb), 0.17), transparent 38%), var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.podium-place {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  text-align: center;
}
.podium-place.rank-1 {
  grid-column: 2;
  grid-row: 1;
}
.podium-place.rank-2 {
  grid-column: 1;
  grid-row: 1;
}
.podium-place.rank-3 {
  grid-column: 3;
  grid-row: 1;
}
.podium-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 4px 10px;
}
.podium-crown {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  filter: drop-shadow(0 0 9px rgba(255, 184, 108, 0.42));
}
.podium-crown svg {
  width: 25px;
  height: 25px;
}
.podium-name {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-place.rank-1 .podium-name {
  font-size: 13px;
}
.podium-xp {
  color: var(--text2);
  font-size: 10px;
  font-weight: 600;
}
.podium-step {
  display: flex;
  min-height: 70px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--card-hover), var(--surface));
  color: var(--text2);
  font-size: 18px;
  font-weight: 800;
}
.podium-place.rank-1 .podium-step {
  min-height: 116px;
  border-color: rgba(255, 184, 108, 0.35);
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.18), var(--surface));
  color: var(--orange);
}
.podium-place.rank-2 .podium-step {
  min-height: 88px;
  color: #cfd3e6;
}
.podium-place.rank-3 .podium-step {
  color: #d8a06a;
}
.leaderboard-list {
  padding-top: 4px;
  padding-bottom: 4px;
  list-style: none;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.rank-row:last-child {
  border-bottom: none;
}
.rank-row.me {
  margin: 0 -10px;
  padding: 10px;
  border-bottom-color: transparent;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
}
.rank-num {
  width: 24px;
  flex: 0 0 auto;
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.rank-info {
  display: flex;
  min-width: 0;
  flex: 1 1;
  flex-direction: column;
}
.rank-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
}
.rank-xp {
  color: var(--text2);
  font-size: 11px;
}
.leaderboard-state {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 420px) {
  .podium {
    gap: 4px;
    padding-inline: 4px;
  }
  .podium-person {
    padding-inline: 2px;
  }
  .podium-name {
    font-size: 11px;
  }
}

/* ── Composer ─────────────────────────────────────────────── */
.composer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.composer textarea {
  flex: 1 1;
  resize: none;
  min-height: 40px;
  max-height: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
}
.composer textarea:focus {
  border-color: var(--accent);
}
.composer-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── Feed post ────────────────────────────────────────────── */
.post {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}
.post:last-child {
  border-bottom: none;
}
.post-head {
  display: flex;
  gap: 10px;
}
.post-meta {
  flex: 1 1;
  min-width: 0;
}
.post-name {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-time {
  font-size: 11px;
  color: var(--text2);
}
.post-body {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.post-achievement {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.post-achievement .ico {
  color: var(--orange);
  flex: 0 0 auto;
}
.post-nowplaying {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 12px;
  padding: 10px 12px;
}
.post-session {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}
.post-session .ico {
  color: var(--accent);
  flex: 0 0 auto;
}
.post-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.pill-btn svg {
  width: 14px;
  height: 14px;
}
.pill-btn:hover {
  color: var(--text);
}
.pill-btn.active {
  color: var(--pink);
  border-color: rgba(255, 121, 198, 0.4);
  background: rgba(255, 121, 198, 0.1);
}
.pill-btn.active svg {
  fill: var(--pink);
}

.comments {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment {
  display: flex;
  gap: 8px;
}
.comment-bubble {
  background: var(--surface);
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
  flex: 1 1;
}
.comment-bubble b {
  font-weight: 600;
}
.comment-input {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.comment-input input {
  flex: 1 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
}
.comment-input input:focus {
  border-color: var(--accent);
}

/* ── Profile ──────────────────────────────────────────────── */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 0 6px;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 2px;
}
.profile-handle {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
}
.profile-xpwrap {
  width: 100%;
  max-width: 280px;
  margin: 6px auto 0;
}
.profile-xpwrap .row {
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text2);
  margin-bottom: 4px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin: 16px 0;
}
.stat-box {
  text-align: center;
  padding: 12px 6px;
}
.stat-box .num {
  font-size: 17px;
  font-weight: 700;
}
.stat-box .lbl {
  font-size: 10px;
  color: var(--text2);
  margin-top: 2px;
}
.badge-list {
  margin-bottom: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.badge-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
}
.badge-row:last-child {
  border-bottom: none;
}
.badge-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(201, 131, 58, 0.16);
  color: #c9833a;
}
.badge-icon.tier-2 {
  background: rgba(207, 211, 230, 0.15);
  color: #cfd3e6;
}
.badge-icon.tier-3 {
  background: rgba(255, 184, 108, 0.16);
  color: var(--orange);
}
.badge-icon.tier-4 {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
}
.badge-icon svg {
  width: 21px;
  height: 21px;
}
.badge-info {
  display: flex;
  min-width: 0;
  flex: 1 1;
  flex-direction: column;
  gap: 4px;
}
.badge-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
}
.badge-description,
.badge-progress-label {
  color: var(--text2);
  font-size: 10.5px;
  line-height: 1.4;
}
.badge-progress {
  margin-top: 3px;
}
.library-row {
  display: flex;
  /* flex-start, não center: a coluna de texto cresceu (nome + stats + avaliar)
     e com center a capa de 38px flutuava no meio em vez de alinhar com o
     título. Mesma escolha já feita em .session-row. */
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border);
}
.library-row:last-child {
  border-bottom: none;
}
.library-cover {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}
.library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-info {
  min-width: 0;
  flex: 1 1;
}
.library-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  /* Título de jogo é longo e imprevisível; sem isto ele espremia a tag da
     plataforma até virar reticências. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.library-name .tag {
  flex: 0 0 auto;
}
.library-sub {
  margin-top: 1px;
  margin-bottom: 4px;
  font-size: 10.5px;
  color: var(--text2);
}
/* Só o "Carregar mais" (filho direto) ocupa a linha toda. Sem o `>`, isto
   pegava também os botões do ReviewComposer aninhado e empilhava cada um
   em 100% de largura. */
.session-list > .btn,
.library-list > .btn {
  margin-top: 10px;
  width: 100%;
}
.session-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border);
}
.session-row:last-child {
  border-bottom: none;
}
.session-ico {
  color: var(--accent);
  flex: 0 0 auto;
  width: 18px;
  margin-top: 2px;
}
.session-info {
  min-width: 0;
}
.session-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.session-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}
.session-when {
  font-size: 10px;
  color: var(--text2);
  opacity: 0.8;
  margin-top: 2px;
}
.platform-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border);
}
.platform-row:last-child {
  border-bottom: none;
}
.platform-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.platform-ico svg {
  width: 18px;
  height: 18px;
}
.platform-info {
  flex: 1 1;
  min-width: 0;
}
.platform-name {
  font-size: 12.5px;
  font-weight: 600;
}
.platform-sub {
  font-size: 10.5px;
  color: var(--text2);
  margin-top: 1px;
}

/* ── Color swatch picker (avatar presets) ─────────────────── */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch.selected {
  border-color: var(--text);
}

/* ── Toggle switch ────────────────────────────────────────── */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.switch .track::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.15s ease;
}
.switch input:checked + .track {
  background: var(--accent);
}
.switch input:checked + .track::before {
  transform: translateX(16px);
  background: #14151b;
}
.switch input:disabled + .track {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-hint {
  text-align: center;
  padding: 30px 10px;
  color: var(--text2);
  font-size: 12px;
}
.error-hint {
  text-align: center;
  padding: 12px;
  color: var(--red);
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.field input[type='date'] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
}

/* ── Notifications bell ───────────────────────────────────── */
.bell-wrap {
  position: relative;
}
.bell-btn {
  position: relative;
}
.bell-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.bell-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.bell-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 51;
  width: 300px;
  /* O sino não é o último item da topbar (tema e avatar vêm depois), então o
     painel ancora ~90px antes da borda da tela e cresce PRA ESQUERDA. Em tela
     estreita isso vaza pra fora. No mobile ele passa a se prender à viewport
     em vez do sino, o que garante o encaixe em qualquer largura. */
  max-width: calc(100vw - 24px);
  max-height: 360px;
  overflow-y: auto;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
@media (max-width: 560px) {
  .bell-panel {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: min(60vh, 420px);
  }
}
.bell-title {
  font-size: 12px;
  font-weight: 700;
  margin: 4px 6px 8px;
}
.bell-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
}
.bell-row:hover {
  background: var(--card-hover);
}
.bell-text {
  font-size: 12.5px;
  line-height: 1.4;
}
.bell-time {
  color: var(--text2);
  font-size: 10.5px;
  margin-top: 2px;
}

