
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --canvas: #ffffff;
  --tint: #f7f5f2;
  --tint-2: #efebe5;

  --ink: #14110f;
  --ink-2: #6b635c;
  --ink-3: #9a928a;

  --line: #e6e2dc;
  --line-2: #d6d0c8;

  --accent: #e8590c;
  --accent-ink: #b34206;
  --accent-tint: #fdf0e6;

  --danger: #c81e1e;
  --danger-ink: #a81818;
  --danger-tint: #fceceb;

  --on-dark: #ffffff;
  --btn-face: #14110f;
  --btn-label: #ffffff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0a09;
    --tint: #171513;
    --tint-2: #201d1a;

    --ink: #f5f2ed;
    --ink-2: rgba(245, 242, 237, 0.62);
    --ink-3: rgba(245, 242, 237, 0.36);

    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.17);

    --accent: #ff7a2f;
    --accent-ink: #ff9354;
    --accent-tint: rgba(255, 122, 47, 0.14);

    --danger: #ff5a52;
    --danger-ink: #ff7a73;
    --danger-tint: rgba(255, 90, 82, 0.14);

    --btn-face: #f5f2ed;
    --btn-label: #14110f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }


.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; opacity: 0.7; }
.brand__mark { letter-spacing: 0; line-height: 1; flex: none; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links a { font-size: 14px; color: var(--ink-2); letter-spacing: 0; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav form { display: flex; }


.shell { max-width: var(--shell); margin: 0 auto; padding: 0 10px; }
.page { padding-top: 44px; }
main { padding-bottom: 96px; }

.hero { padding: 76px 0 36px; max-width: 760px; }
h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.6vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero p {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.014em;
}

.section { padding: 44px 0 0; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
h2 { margin: 44px 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.022em; }
.section__head h2, .card__title, .panel h2 { margin: 0; }
.overline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.overline + h1 { margin-top: 0; }
h1 + .overline { margin: -6px 0 0; }

.figures {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.figures > * { background: var(--canvas); padding: 10px 10px; }

.figure { display: flex; flex-direction: column; gap: 5px; }
.figure__label { font-size: 13px; color: var(--ink-2); }
.figure__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}
.figure__value small { font-size: 14px; font-weight: 400; color: var(--ink-3); margin-left: 5px; }
.figure--hero .figure__value { font-size: clamp(34px, 5vw, 46px); }
.figure--accent .figure__value { color: var(--accent-ink); }

.account {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
}
.account__top { padding: 26px 26px 22px; }
.account__bottom {
  padding: 18px 26px 22px;
  background: var(--tint);
  border-top: 1px solid var(--line);
}
.account__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--line-2); }
.card__media { aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.card__media--empty { background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__title { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.018em; }
.card__title a { color: var(--ink); }
.card__title a:hover { text-decoration: none; color: var(--accent-ink); }

.panel {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel--tint { background: var(--tint); border-color: transparent; }
.panel--sticky { position: sticky; top: 80px; }
.panel > .overline:first-child { margin-top: 0; }

.meter { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.meter__track { height: 5px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }

.meter__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.w-0{width:0} .w-5{width:5%} .w-10{width:10%} .w-15{width:15%} .w-20{width:20%}
.w-25{width:25%} .w-30{width:30%} .w-35{width:35%} .w-40{width:40%} .w-45{width:45%}
.w-50{width:50%} .w-55{width:55%} .w-60{width:60%} .w-65{width:65%} .w-70{width:70%}
.w-75{width:75%} .w-80{width:80%} .w-85{width:85%} .w-90{width:90%} .w-95{width:95%}
.w-100{width:100%}



.meter__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.meter__row b { color: var(--ink); font-weight: 500; }

.rows { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--canvas);
  font-size: 15px;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--tint); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; color: var(--ink); }
a.row__title:hover { color: var(--accent-ink); text-decoration: none; }
.row__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
.row__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.row__actions form { display: flex; }
.row__num {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.num--out { color: var(--danger-ink); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--tint-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge--live { background: var(--accent-tint); color: var(--accent-ink); }
.badge--done { background: var(--tint-2); color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 14px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--ink-3); margin: 0; }

input[type="text"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font);
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--canvas);
}
textarea { min-height: 170px; resize: vertical; }
input[type="file"] { font-size: 14px; color: var(--ink-2); }
input[type="file"]::file-selector-button {
  font: 500 14px var(--font);
  color: var(--ink);
  background: var(--tint-2);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  margin-right: 12px;
  cursor: pointer;
}
.amount { font-variant-numeric: tabular-nums; letter-spacing: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 15px/1 var(--font);
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-face);
  color: var(--btn-label);
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--tint); opacity: 1; }
.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-2);
  padding: 8px 16px;
  font-size: 13px;
}
.btn--quiet:hover { color: var(--ink); background: var(--tint); opacity: 1; }
.btn--block { width: 100%; }

.callout {
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--tint);
  color: var(--ink-2);
}
.callout--error { background: var(--danger-tint); color: var(--danger-ink); }
.callout--info { background: var(--accent-tint); color: var(--accent-ink); }
.callout b { color: inherit; font-weight: 500; }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}

.mono-block {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--ink-2);
  margin: 0;
}

.split {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  align-items: start;
}
.story { font-size: 17px; line-height: 1.68; color: var(--ink-2); white-space: pre-wrap; }

.prose { max-width: 68ch; color: var(--ink-2); font-size: 17px; line-height: 1.68; }
.prose h2 { color: var(--ink); margin: 38px 0 12px; }
.prose p { margin: 0 0 14px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 56px;
  color: var(--ink-3);
  font-size: 13px;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .panel--sticky { position: static; }
  .hero { padding: 44px 0 24px; }
  .nav__inner { gap: 14px; padding: 0 18px; }
  .nav__links { gap: 14px; }
  .shell { padding: 0 10px; }
  .account__top, .account__bottom { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

.htmx-request .btn { opacity: 0.4; pointer-events: none; }

.figures + .panel,
.panel + .figures,
.panel + .panel,
.figures + .figures,
.figures + .rows,
.rows + .figures,
.panel + .rows,
.rows + .panel { margin-top: 32px; }

.hero + .figures,
.hero + .panel,
.hero + .rows { margin-top: 8px; }

#lottery-timer {
  margin: 0;
  font-size: 18px;
  text-align: center;
  min-width: 150px;
  font-variant-numeric: tabular-nums;
}


.panel--compact { padding: 10px 20px; }
.panel--compact .overline { margin: 0 0 4px; }
.panel--compact #lottery-timer {
  font-size: 15px;
  padding: 6px 12px;
  min-width: 112px;
}
.panel--compact > .callout {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 13px;
}


.profile-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.lottery-toggle { display: inline-block; margin-top: 24px; }

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.badge--muted { background: var(--tint-2); color: var(--ink-3); }

.form + .rows,
.form + .empty,
.callout + .rows { margin-top: 32px; }

.figures--split {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
}
.figures__stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 0;
}
.figures__stats > .figure { background: var(--canvas); padding: 18px 20px; }
.figures__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 860px) {
  .figures--split { grid-template-columns: 1fr; }
}

.figures__stats .figure__value { font-size: 18px; }

.badge--pinned { background: var(--accent-tint); color: var(--accent-ink); align-self: flex-start; }

.sponsors {
  margin-top: 16px;

  border-radius: var(--r-md);
  background: #0c0c0b;
  padding: 16px 0 18px;
  overflow: hidden;
}
.sponsors__label {
  margin: 0 20px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--canvas);
}
.sponsors__viewport {
  overflow: hidden;
}
.sponsors__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
}
.sponsors__track::-webkit-scrollbar { display: none; }
.sponsors__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 72px;
  height: 72px;
  background: var(--canvas);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.sponsors__item:hover { text-decoration: none; opacity: 0.85; }
.sponsors__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsors__initials {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
}


@media (prefers-reduced-motion: reduce) {
  .sponsors__track { animation: none; }
  .sponsors__viewport { overflow-x: auto; }
}


.detail-head { margin-bottom: 28px; }
.detail-head h1 { margin-bottom: 0; }

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.detail-main { display: flex; flex-direction: column; gap: 28px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-block h2 { margin: 0 0 16px; }

.shots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.shots__item {
  width: 180px;
  height: 180px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}
.shots__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shots__item:hover { border-color: var(--accent); }

.row--total { font-weight: 500; background: var(--tint); }

.vouch-note {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.vouch-note p { margin: 0; }
.vouch-note b { color: var(--ink); font-weight: 500; }

.menu { position: relative; display: flex; align-items: center; }
.menu__trigger { padding: 6px 0; }

.menu__drop {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.menu:hover .menu__drop,
.menu:focus-within .menu__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__drop a,
.menu__drop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font: 400 14px/1 var(--font);
  cursor: pointer;
}
.menu__drop a:hover,
.menu__drop button:hover {
  background: var(--tint);
  text-decoration: none;
  color: var(--ink);
}
.menu__drop form { display: block; margin: 0; }
.menu__drop button { color: var(--danger-ink); }

.nav__inner { overflow: visible; }
.menu__drop { z-index: 60; }

.chat { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

.chat__log {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--canvas);
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msg { padding: 8px 12px; border-radius: var(--r-sm); }
.msg:hover { background: var(--tint); }
.msg__head { display: flex; align-items: baseline; gap: 8px; }
.msg__author { font-size: 13px; font-weight: 500; color: var(--ink); }
.msg__time { font-size: 12px; color: var(--ink-3); }
.msg__head form { margin-left: auto; display: flex; }
.msg__del {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.msg__del:hover { color: var(--danger-ink); }
.msg__body { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }

.chat__form { display: flex; gap: 10px; align-items: stretch; }
.chat__form input[type="text"] { flex: 1; }
.chat__form .btn { flex: none; }

@media (max-width: 600px) {
  .chat__form { flex-direction: column; }
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: cover;
  background: var(--tint-2);
  color: var(--ink-2);
  font-weight: 600;
  flex: none;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 88px; height: 88px; font-size: 28px; }

.banner-preview {
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-sm);
  display: block;
}

.checkline { flex-direction: row; align-items: center; gap: 8px; }

.pcard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
}
.pcard__banner { aspect-ratio: 4 / 1; overflow: hidden; background: var(--tint); }
.pcard__banner--empty { background: linear-gradient(120deg, var(--tint-2), var(--tint)); }
.pcard__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__body { padding: 0 24px 24px; }
.pcard__avatar {
  margin-top: -44px;
  border: 3px solid var(--canvas);
  position: relative;
}
.pcard__body h1 { margin: 12px 0 4px; }
.pcard__body .story { margin: 14px 0 20px; }


.admin-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.admin-nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.admin-nav a:hover { background: var(--tint); color: var(--ink); text-decoration: none; }

.admin-reason {
  width: 140px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
}



.sponsors {
    position: relative;
    margin-top: 16px;
    padding: 0;
    background: #0c0c0b;
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.sponsors__label {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    margin: 0;
    padding: 5px 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 5px;
    pointer-events: none;
}

.sponsors__viewport {
    width: 100%;
    overflow: hidden;
}

.sponsors__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sponsors__track::-webkit-scrollbar {
    display: none;
}

.sponsors__item {
    flex: 0 0 90px;
    width: 90px;
    height: 110px;
    min-width: 90px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--canvas);
}

.sponsors__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

.sponsors__initials {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.figures--split {
    margin-bottom: 0;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.figures--split + .sponsors {
    margin-top: 0;
    border: none;
    border-radius: 0 0 14px 14px;
    padding: 0;
    overflow: hidden;
}


.chat__log {
    display: flex;
    flex-direction: column-reverse;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat__log > .msg,
.chat__log > .empty {
    flex-shrink: 0;
}


.grid > .card {
    height: 100%;
}

.card__media {
    flex-shrink: 0;
}

.card__body {
    display: grid;
    grid-template-rows: 28px 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 20px 20px;
    flex: 1;
}

.card__body .badge--pinned {
    grid-row: 1;
    justify-self: start;
    align-self: center;
}

.card__body .card__title {
    grid-row: 2;
    margin: 0;
    min-height: 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card__body .meter {
    grid-row: 4;
    margin-top: 0;
}



/* ==========================================
   AUTH PAGES — EDITORIAL FINTECH
   ========================================== */

.auth-page {
    padding-top: 44px;
    padding-bottom: 60px;
}

/* ОБЩИЙ КОНТЕЙНЕР */

.auth-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    min-height: 620px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--canvas);
}

/* ==========================================
   ЛЕВАЯ ЧАСТЬ — ФОРМА
   ========================================== */

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 4.5vw, 58px);
}

.auth-content__inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Маленький заголовок */

.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 26px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: var(--ink-3);
}

.auth-dot {
    width: 7px;
    height: 7px;
    flex: none;
    background: var(--accent);
    border-radius: 50%;
}

/* Крупный заголовок */

.auth-title {
    margin: 0 0 14px;

    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.auth-title span {
    color: var(--accent);
}

.auth-description {
    max-width: 360px;
    margin: 0 0 34px;

    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
}

/* ФОРМА */

.auth-form {
    width: 100%;
    max-width: none;
    gap: 19px;
}

.auth-form .field {
    gap: 8px;
}

.auth-form .field > span {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
}

/* Поля */

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 50px;

    padding: 13px 16px;
    font-size: 14px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--tint);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--accent);
    background: var(--canvas);
    outline: none;
}

.auth-form input::placeholder {
    color: var(--ink-3);
}

/* Кнопка */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    padding: 15px 20px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
}

.auth-submit span:last-child {
    font-size: 19px;
    line-height: 1;
}

.auth-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Низ формы */

.auth-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid var(--line);

    font-size: 13px;
    color: var(--ink-3);
}

.auth-bottom a {
    color: var(--accent-ink);
    font-weight: 600;
}

.auth-pow {
    font-size: 12px;
}

/* Ошибки и приглашения */

.auth-content .callout {
    margin: 0 0 24px;
    font-size: 13px;
}

/* ==========================================
   ПРАВАЯ ЧАСТЬ — TYPOGRAPHIC PROMO
   ========================================== */

.auth-promo {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    min-height: 620px;

    padding: clamp(26px, 3vw, 40px);

    background:
        radial-gradient(
            ellipse at 90% 75%,
            rgba(232, 89, 12, 0.13),
            transparent 52%
        ),
        #11100e;

    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

/* Большая декоративная буква на фоне */

.auth-promo__ghost {
    position: absolute;
    z-index: -1;

    right: -65px;
    top: 50%;

    transform: translateY(-50%);

    font-size: clamp(350px, 40vw, 650px);
    font-weight: 600;
    letter-spacing: -0.12em;
    line-height: 1;

    color: transparent;
    -webkit-text-stroke:
        1px rgba(255, 255, 255, 0.065);

    pointer-events: none;
    user-select: none;
}

/* Верхняя строка */

.auth-promo__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;

    position: relative;
    z-index: 1;
}

.auth-promo__brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #ff8b4b;
}

.auth-promo__brand span {
    margin-left: 3px;
    font-size: 9px;
    vertical-align: top;
}

.auth-promo__index {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.38);
}

/* Центральная часть */

.auth-promo__center {
    position: relative;
    z-index: 1;

    padding: 40px 0;
}

.auth-promo__kicker {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #ff9458;
}

.auth-promo__dash {
    width: 26px;
    height: 2px;
    flex: none;
    background: #ff7a2f;
}

/* ОГРОМНАЯ ТИПОГРАФИКА */

.auth-promo__headline {
    display: flex;
    flex-direction: column;

    margin: 0;

    font-size: clamp(55px, 7.3vw, 112px);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.09em;
}

.auth-promo__headline > span {
    display: block;
    white-space: nowrap;
}

/* Контурные буквы */

.auth-promo__stroke {
    color: #ff985d;
}

@supports (-webkit-text-stroke: 1px #fff) {
    .auth-promo__stroke {
        color: transparent;
        -webkit-text-stroke: 2px #ff985d;
    }
}

/* Оранжевая декоративная полоса */

.auth-promo__accent {
    width: 90px;
    height: 5px;

    margin-top: 34px;

    background: #ff7a2f;
    transform: skewX(-20deg);
}

/* Текст под заголовком */

.auth-promo__description {
    max-width: 370px;

    margin: 28px 0 0;

    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.65;
    letter-spacing: -0.02em;

    color: rgba(255, 255, 255, 0.64);
}

/* Низ рекламного блока */

.auth-promo__bottom {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;

    color: rgba(255, 255, 255, 0.43);
}

/* ==========================================
   АДАПТАЦИЯ
   ========================================== */

@media (max-width: 900px) {

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

    .auth-content {
        padding: 42px 32px;
    }

    .auth-content__inner {
        max-width: 460px;
    }

    .auth-promo {
        min-height: 350px;
        padding: 30px;
    }

    .auth-promo__center {
        padding: 28px 0;
    }

    .auth-promo__headline {
        font-size: clamp(60px, 11vw, 100px);
    }

    .auth-promo__kicker {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {

    .auth-page {
        padding-top: 18px;
    }

    .auth-layout {
        border-radius: 14px;
    }

    .auth-content {
        padding: 30px 22px;
    }

    .auth-title {
        font-size: 34px;
    }

    .auth-description {
        margin-bottom: 26px;
    }

    .auth-promo {
        min-height: 320px;
        padding: 24px;
    }

    .auth-promo__headline {
        font-size: clamp(52px, 13vw, 70px);
    }

    .auth-promo__ghost {
        font-size: 360px;
    }

    .auth-promo__description {
        margin-top: 20px;
        font-size: 13px;
    }

    .auth-promo__accent {
        margin-top: 24px;
    }
}


