:root {
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-soft: rgba(88, 101, 242, 0.08);
  --gold: #c9a227;
  --gold-soft: #d4bc6a;
  --bg-root: #1e1f22;
  --bg-sidebar: #2b2d31;
  --bg-main: #313338;
  --bg-elevated: #383a40;
  --bg-input: #404249;
  --border: #3f4147;
  --text: #dbdee1;
  --text-muted: #b5bac1;
  --text-faint: #949ba4;
  --green: #23a559;
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Inter", "gg sans", "Noto Sans", system-ui, sans-serif;
  --motion-fast: 0.22s;
  --motion-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.375;
  color: var(--text);
  background: var(--bg-root);
}

a {
  color: #00a8fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* —— Sidebar (Discord server list vibe) —— */
.sidebar {
  display: none;
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  flex-direction: column;
}

@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }
}

.sidebar__guild {
  height: 52px;
  width: 52px;
  margin: 12px auto;
  border-radius: 16px;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: none;
  text-decoration: none;
  transition: border-radius var(--motion-fast) var(--motion-ease);
}

.sidebar__guild:hover {
  border-radius: 12px;
}

.sidebar__guild--zt {
  background: var(--blurple);
  box-shadow: none;
}

.sidebar__guild-mark {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.channel-bar__mark {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blurple);
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
  color: #fff;
}

@media (max-width: 767px) {
  .channel-bar__mark {
    display: inline-block;
  }
}

.message__avatar--brand {
  background: var(--blurple);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.embed__note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.community__text--muted {
  margin-top: -4px;
  font-size: 0.85rem;
}

.community__mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82em;
  color: var(--text-faint);
}

.site-footer__fine {
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.site-footer__fine a {
  color: var(--text-muted);
}

.hero-panel {
  max-width: 420px;
  margin: 24px auto 48px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  text-align: center;
}

/* —— Intro (#wstęp) —— */
.intro {
  max-width: 560px;
  margin: 8px auto 56px;
  padding: 32px 28px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.06) 0%, transparent 42%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.intro__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 165, 89, 0.25);
}

.intro__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.intro__lead {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.intro__lead strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.intro__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-main);
  border: 1px solid var(--border);
}

.intro__step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.22);
}

.intro__step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.intro__step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.intro__step-desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-faint);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-section.intro {
  scroll-margin-top: 12px;
}

@media (max-width: 480px) {
  .intro {
    padding: 24px 18px 28px;
  }

  .intro__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.hero-panel__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-panel__title {
  margin: 4px 0 12px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.hero-panel__text {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nominations--flat {
  margin-left: 0;
  max-width: 520px;
  margin-right: auto;
}

.nom-card__head {
  padding: 12px 16px;
}

.nom-card__hash,
.nom-card__tag {
  display: none;
}

.site-footer__links {
  display: none;
}

.mobile-dock {
  grid-template-columns: repeat(3, 1fr);
}

.mobile-dock__icon {
  display: none;
}

.proposal-form {
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  scroll-margin-top: 12px;
}

.proposal-form__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.proposal-form__lead {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.proposal-form__grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .proposal-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.field__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}

.field__input:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.55);
}

.field__input--area {
  resize: vertical;
  min-height: 72px;
}

.proposal-form__actions {
  margin-top: 4px;
}

.proposal-form__hint {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.proposal-form__hint--ok {
  color: var(--green);
}

.community__discord {
  display: inline-flex;
  margin-bottom: 14px;
  text-decoration: none !important;
}

.nom-person__note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 2px;
}

.nom-person__only-cat {
  font-style: normal;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.nom-person__initial {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
}

@media (max-width: 600px) {
  .invite-strip,
  .proposal-form {
    margin-left: 0;
  }
}

.sidebar__channels {
  flex: 1;
  padding: 0 8px 8px;
  overflow: auto;
}

.sidebar__category {
  margin: 16px 8px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.sidebar__channel {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  margin: 2px 0;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.sidebar__channel:hover {
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
}

.sidebar__channel--active {
  background: var(--bg-input);
  color: var(--text);
}

.sidebar__hash {
  color: var(--text-faint);
  font-weight: 600;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: #232428;
  margin-top: auto;
}

.sidebar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blurple), var(--gold));
}

.sidebar__user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar__status {
  font-size: 0.75rem;
  color: var(--green);
}

/* —— Main chat area —— */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-main);
}

.channel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.channel-bar__logo {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

@media (min-width: 768px) {
  .channel-bar__logo {
    display: none;
  }
}

.channel-bar__hash {
  color: var(--text-faint);
  font-size: 1.25rem;
  font-weight: 600;
}

.channel-bar__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.channel-bar__auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-user {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--discord {
  background: var(--blurple);
  color: #fff;
  border: none;
}

.btn--discord:hover {
  background: var(--blurple-hover);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.channel-bar__pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.channel-bar__pill--prep {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border);
}

.chat-area {
  flex: 1;
  padding: 16px;
  overflow: auto;
  scroll-behavior: smooth;
}

.chat-section {
  scroll-margin-top: 8px;
}

.sidebar__channel--locked {
  opacity: 0.55;
  cursor: default;
  user-select: none;
}

.sidebar__soon {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-faint);
}

.chat-section--reveal {
  padding-bottom: 24px;
}

.chat-section--reveal.is-visible {
  animation: section-in 0.35s var(--motion-ease) both;
}

.chat-bridge {
  margin: 28px 0 18px;
  padding-top: 0;
  background: none;
}

.chat-bridge--soft {
  margin-top: 40px;
}

.chat-bridge__hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.announcement--prep {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.announcement--prep strong {
  color: var(--text);
  font-weight: 600;
}

.phase-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.phase-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.phase-list__item span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--bg-input);
  color: var(--text-muted);
}

.phase-list__item--now {
  color: var(--text);
  font-weight: 600;
}

.phase-list__item--now span {
  background: var(--blurple);
  color: #fff;
  box-shadow: none;
}

.nom-card__head {
  flex-wrap: wrap;
}

.nom-card__tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.community {
  padding-bottom: 48px;
}

.community__card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
}

.community__glow {
  display: none;
}

.community__eyebrow {
  position: relative;
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-faint);
}

.community__title {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.community__text {
  position: relative;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.community__text strong {
  color: var(--text);
}

.community__tags {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

#nominacje {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 32px;
  scroll-margin-top: 12px;
}

.proposal-form__privacy {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.local-list {
  max-width: 520px;
  margin: 8px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.local-list__title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.local-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.local-list__items li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.local-list__items strong {
  color: var(--text);
  font-weight: 600;
}

.app--panel .main {
  min-height: 100vh;
}

.panel-body {
  padding: 20px 16px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.panel-status {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.panel-foot {
  margin: 20px 0 0;
  font-size: 0.875rem;
}

.panel-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.panel-table th,
.panel-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.panel-table th {
  font-weight: 600;
  color: var(--text-faint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-table tr:last-child td {
  border-bottom: none;
}

.panel-table td strong {
  color: var(--text);
}

.panel-id {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.panel-id code {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.local-list__note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.chat-divider__label {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.message--compact {
  padding-bottom: 8px;
}

.message__intro {
  margin: 0;
  max-width: 520px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nominations {
  max-width: 480px;
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 600px) {
  .nominations {
    margin-left: 0;
  }
}

.nom-card {
  border-radius: var(--radius-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
}

.nom-card:hover {
  border-color: var(--border);
  box-shadow: none;
}

.nom-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.nom-card__hash {
  color: var(--text-faint);
  font-weight: 700;
  font-size: 1.1rem;
}

.nom-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.nom-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nom-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.nom-person:hover {
  background: var(--bg-elevated);
}

.nom-person__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-input);
  box-shadow: 0 0 0 2px var(--border);
}

.nom-person__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.sidebar__channel.is-active {
  background: var(--bg-input);
  color: var(--text);
}

.announcement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.announcement strong {
  color: var(--text);
  font-weight: 600;
}

.message {
  display: flex;
  gap: 16px;
  padding: 4px 0 16px;
}

.message__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
}

.message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.message__author {
  font-weight: 600;
  color: var(--text);
}

.message__author--gold {
  color: var(--text);
}

.message__avatar--bot {
  background: #0a0a0a;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.message__badge {
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--blurple);
  color: #fff;
  line-height: 1.4;
}

.message__time {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* —— Embed (Discord-style card) —— */
.embed {
  position: relative;
  max-width: 520px;
  border-radius: var(--radius);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  overflow: hidden;
}

.embed--wide {
  max-width: 560px;
}

.embed--muted {
  background: var(--bg-elevated);
}

.embed__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blurple);
}

.embed__inner {
  padding: 12px 16px 16px 20px;
}

.embed__inner--with-thumb {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.embed__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #0a0a0a;
  box-shadow: none;
}

.embed__content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .embed__inner--with-thumb {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .embed__actions {
    justify-content: center;
  }
}

.embed__kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.embed__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.embed__title span {
  color: var(--text-muted);
  font-weight: 700;
}

.embed__title--sm {
  font-size: 1rem;
}

.embed__desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.embed__invite {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-input);
  color: #00a8fc !important;
  font-weight: 600;
  text-decoration: none !important;
}

.embed__invite:hover {
  background: #4e5058;
}

.embed__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn--primary {
  background: var(--blurple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blurple-hover);
  text-decoration: none;
}

.btn--secondary {
  background: var(--bg-input);
  color: var(--text);
}

.btn--secondary:hover {
  background: #4e5058;
  text-decoration: none;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.site-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.site-footer__links a {
  color: var(--text-muted);
}

.cookie {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-size: 0.8125rem;
  color: var(--text-muted);
  z-index: 100;
}

.cookie.hidden {
  display: none;
}

@media (min-width: 768px) {
  .cookie {
    left: auto;
    right: 24px;
    margin: 0;
  }
}

/* —— Mobile: Discord vibe —— */
.mobile-dock {
  display: none;
}

@media (max-width: 767px) {
  html {
    -webkit-tap-highlight-color: transparent;
  }

  body {
    overscroll-behavior-y: none;
  }

  .app {
    min-height: 100dvh;
  }

  .main {
    min-height: 100dvh;
  }

  .channel-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 52px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--bg-main);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .channel-bar--switch {
    animation: none;
  }

  .channel-bar__title {
    font-size: 0.95rem;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .channel-bar__pill {
    font-size: 0.6rem;
    padding: 3px 8px;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-area {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0));
    -webkit-overflow-scrolling: touch;
  }

  .message {
    gap: 10px;
  }

  .message__avatar {
    width: 36px;
    height: 36px;
  }

  .message--enter {
    opacity: 1;
    transform: none;
  }

  .message--enter.is-shown {
    animation: msg-in 0.28s var(--motion-ease) both;
    animation-delay: var(--msg-delay, 0ms);
  }

  .embed,
  .embed--wide {
    max-width: none;
    width: 100%;
  }

  .embed__inner--with-thumb {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .embed__thumb {
    width: 64px;
    height: 64px;
    align-self: flex-start;
  }

  .embed__actions {
    flex-direction: column;
  }

  .embed__actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .phase-list {
    gap: 8px;
  }

  .phase-list__item {
    padding: 8px 10px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.15);
  }

  .chat-bridge {
    margin: 24px 0 16px;
  }

  .chat-divider__label {
    font-size: 0.62rem;
    max-width: 70%;
    text-align: center;
    line-height: 1.3;
  }

  .nom-card__tag {
    margin-left: 0;
    margin-top: 4px;
  }

  .nom-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .community__card {
    padding: 22px 18px;
    margin: 0 2px;
  }

  .community__tags {
    flex-direction: column;
  }

  .community__tags li {
    text-align: center;
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  }

  .cookie {
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
    left: 12px;
    right: 12px;
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0));
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    box-shadow: none;
  }

  .mobile-dock__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: background var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease);
  }

  .mobile-dock__btn:active {
    transform: none;
    opacity: 0.85;
  }

  .mobile-dock__btn.is-active {
    color: var(--text);
    background: var(--bg-input);
    box-shadow: none;
  }

  .mobile-dock__btn.is-active .mobile-dock__icon {
    color: var(--text-muted);
    transform: none;
  }

  .mobile-dock__btn--discord {
    color: var(--text-muted);
  }

  .mobile-dock__icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .mobile-dock__label {
    line-height: 1.1;
    text-align: center;
  }
}

@keyframes msg-in {
  from {
    opacity: 0.6;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .message--enter,
  .chat-section--reveal.is-visible,
  .channel-bar--switch {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
