/* ============================================================
   ПСИХОЛОГИЧЕСКИЙ ПРОФИЛЬ
   Тёмная тема · Vanilla CSS · без внешних зависимостей
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #080b13;
  --bg-soft: #0b101d;
  --surface: #101625;
  --surface-raised: #151c2e;
  --post: #1e1e2f;
  --post-soft: #232338;

  --text: #f4f6fc;
  --text-soft: #c8cee0;
  --muted: #8c96ae;
  --muted-2: #646f88;

  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  --primary: #7c8cff;
  --primary-2: #9f8cff;
  --primary-strong: #6677ff;
  --primary-soft: rgba(124, 140, 255, 0.14);
  --cyan: #67e8f9;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.13);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.13);
  --yellow: #fbbf24;

  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 28px 70px -32px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 46px 110px -44px rgba(0, 0, 0, 0.95);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

/* ============================================================
   БАЗА
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(91, 108, 255, 0.13), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.screen:focus {
  outline: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   ДЕКОРАТИВНЫЙ ФОН
   ============================================================ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  will-change: transform;
}

.ambient__orb--blue {
  top: -15%;
  left: 8%;
  width: 560px;
  height: 560px;
  background: rgba(76, 95, 255, 0.35);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.ambient__orb--violet {
  top: 24%;
  right: -12%;
  width: 520px;
  height: 520px;
  background: rgba(145, 82, 255, 0.22);
  animation: orbFloat 23s ease-in-out infinite alternate-reverse;
}

.ambient__orb--cyan {
  bottom: -30%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: rgba(35, 180, 220, 0.14);
  animation: orbFloat 26s ease-in-out infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 25%, transparent 78%);
}

/* ============================================================
   ШАПКА
   ============================================================ */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 26px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand__mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(124, 140, 255, 0.18), rgba(103, 232, 249, 0.05));
  color: #b8c1ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

.brand__text {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__text span {
  color: var(--muted);
  font-weight: 500;
}

.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

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

/* ============================================================
   ОБЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 32px 72px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screenIn 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow__line {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center .eyebrow__line:last-child {
  background: linear-gradient(270deg, var(--primary), transparent);
}

.gradient-text {
  background: linear-gradient(105deg, #aeb8ff 8%, #7c8cff 42%, #67e8f9 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-kicker {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, #92a0ff 0%, #6f7fff 50%, #7d6bff 100%);
  color: #fff;
  box-shadow:
    0 18px 38px -18px rgba(108, 124, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn--primary:hover {
  box-shadow:
    0 22px 48px -18px rgba(108, 124, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover .btn__icon {
  transform: translateX(3px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.065);
}

.icon-btn {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: rotate(6deg);
}

/* ============================================================
   СТАРТОВЫЙ ЭКРАН
   ============================================================ */

.screen--start {
  min-height: calc(100vh - 170px);
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 70px;
  min-height: calc(100vh - 190px);
  padding: 36px 0 56px;
}

.hero-copy {
  max-width: 660px;
}

.hero-title {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(3.1rem, 6.1vw, 5.6rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-lead {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  font-weight: 450;
  letter-spacing: -0.022em;
  line-height: 1.45;
}

.hero-description {
  max-width: 510px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.start-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 46px;
}

.start-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.start-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.start-stat strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.start-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Визуальная карточка на стартовом экране */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(124, 140, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.visual-orbit--outer {
  width: 520px;
  height: 520px;
  animation: orbitSpin 34s linear infinite;
}

.visual-orbit--outer::before,
.visual-orbit--inner::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px 4px rgba(124, 140, 255, 0.65);
  content: "";
}

.visual-orbit--outer::before {
  top: 49px;
  right: 84px;
}

.visual-orbit--inner {
  width: 400px;
  height: 400px;
  border-style: dashed;
  opacity: 0.7;
  animation: orbitSpin 24s linear infinite reverse;
}

.visual-orbit--inner::before {
  right: 12px;
  bottom: 90px;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  box-shadow: 0 0 18px 4px rgba(103, 232, 249, 0.55);
}

.preview-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(36, 37, 60, 0.97), rgba(20, 23, 41, 0.98));
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(124, 140, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-1.5deg);
  animation: previewFloat 7s ease-in-out infinite;
}

.preview-card::before {
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.8), transparent);
  content: "";
}

.preview-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f87171, #9f1239);
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.preview-author {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.preview-author__name {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-author__meta {
  color: var(--muted-2);
  font-size: 10px;
}

.preview-more {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 2px;
}

.preview-text {
  margin: 24px 0 26px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.7;
}

.preview-text mark {
  padding: 0.06em 0.16em;
  border-radius: 4px;
  background: var(--yellow);
  color: #141414;
  font-weight: 550;
}

.preview-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.preview-signal span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-signal strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fecdd3;
  font-size: 12px;
  font-weight: 600;
}

.preview-signal__emoji {
  color: initial;
  font-size: 15px;
}

.preview-meter {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-meter span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #fbbf24);
  animation: meterPulse 3s ease-in-out infinite;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 22, 37, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-tag--top {
  top: 12%;
  right: -2%;
  animation: tagFloat 5.5s ease-in-out infinite;
}

.floating-tag--bottom {
  bottom: 10%;
  left: -4%;
  animation: tagFloat 6.5s ease-in-out 0.8s infinite reverse;
}

.floating-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.floating-tag__check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 10px;
}

/* ============================================================
   ИГРОВОЙ ЭКРАН
   ============================================================ */

.screen--game {
  padding-top: 18px;
}

.game-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.game-progress {
  flex: 1;
  min-width: 0;
}

.game-progress__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.score-pill {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-track > span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 0 16px rgba(124, 140, 255, 0.55);
  transition: width 0.45s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  align-items: start;
  gap: 22px;
}

/* Карточка поста */

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--post);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.post-card::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.7), transparent);
  content: "";
}

.post-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 24px 18px;
}

.post-avatar {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: linear-gradient(145deg, #3b4a7a, #1f2743);
  font-size: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px -10px rgba(0, 0, 0, 0.8);
}

.post-author {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.post-author__name {
  overflow: hidden;
  color: #b7bece;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author__meta {
  color: #6f778c;
  font-size: 11px;
  font-weight: 400;
}

.post-card__more {
  align-self: flex-start;
  padding: 2px 0 0;
  color: #697086;
  font-size: 12px;
  letter-spacing: 2px;
}

.post-card__body {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 18px 32px 34px;
}

.post-text {
  max-width: 100%;
  margin: 0;
  color: #f5f6fb;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 430;
  letter-spacing: -0.024em;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

mark.trigger {
  padding: 0.04em 0.12em;
  border-radius: 4px;
  background: var(--yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #141414;
  font-weight: 570;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28), 0 0 24px rgba(251, 191, 36, 0.14);
  animation: triggerIn 0.42s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.post-card__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #747c92;
  font-size: 11px;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.post-action__icon {
  color: #9199ad;
  font-size: 15px;
  line-height: 1;
}

.post-action--share {
  margin-left: auto;
}

/* Панель выбора эмоции */

.choice-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(21, 28, 46, 0.9), rgba(15, 21, 36, 0.92));
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.choice-title {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.panel-hint {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.emotion-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 88px;
  padding: 11px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.emotion-btn::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.18s ease;
  content: "";
  pointer-events: none;
}

.emotion-btn:hover:not(:disabled) {
  z-index: 1;
  border-color: rgba(124, 140, 255, 0.55);
  background: rgba(124, 140, 255, 0.09);
  color: var(--text);
  box-shadow: 0 12px 24px -16px rgba(76, 95, 255, 0.8);
  transform: translateY(-2px);
}

.emotion-btn:hover:not(:disabled)::after {
  opacity: 1;
}

.emotion-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.emotion-btn__emoji {
  font-size: 25px;
  line-height: 1;
  filter: saturate(0.92);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.emotion-btn:hover:not(:disabled) .emotion-btn__emoji {
  filter: saturate(1.15);
  transform: scale(1.1);
}

.emotion-btn__label {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}

.emotion-btn:disabled {
  cursor: default;
}

.emotion-btn:disabled:not(.is-correct):not(.is-wrong) {
  opacity: 0.36;
}

.emotion-btn.is-correct {
  border-color: rgba(52, 211, 153, 0.8);
  background: linear-gradient(155deg, rgba(52, 211, 153, 0.22), rgba(52, 211, 153, 0.08));
  color: #ecfdf5;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.2),
    0 14px 30px -18px rgba(52, 211, 153, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.emotion-btn.is-correct .emotion-btn__emoji {
  filter: saturate(1.2);
  transform: scale(1.12);
}

.emotion-btn.is-correct::before {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #052e1f;
  font-size: 10px;
  font-weight: 900;
  content: "✓";
}

.emotion-btn.is-wrong {
  border-color: rgba(251, 113, 133, 0.9);
  background: linear-gradient(155deg, rgba(251, 113, 133, 0.24), rgba(251, 113, 133, 0.09));
  color: #fff1f2;
  box-shadow:
    0 0 0 1px rgba(251, 113, 133, 0.22),
    0 14px 30px -18px rgba(251, 113, 133, 0.9);
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.answer-status {
  min-height: 20px;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.answer-status.is-error {
  color: #fda4af;
}

.answer-status.is-success {
  color: #6ee7b7;
}

/* Блок разбора */

.review {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 27px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #60a5fa;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background:
    linear-gradient(100deg, rgba(96, 165, 250, 0.08), rgba(255, 255, 255, 0.035) 45%);
  box-shadow: var(--shadow-sm);
  animation: reviewIn 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.review__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

.review__icon svg {
  width: 24px;
  height: 24px;
}

.review__content {
  min-width: 0;
}

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

.answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  background: var(--green-soft);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 600;
}

.review__title {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.review__text {
  max-width: 880px;
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.btn--next {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 20px;
  font-size: 13px;
}

/* ============================================================
   ЭКРАН РЕЗУЛЬТАТОВ
   ============================================================ */

.screen--result {
  display: none;
}

.screen--result.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 190px);
  padding: 26px 0 46px;
}

.result-card {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 42px 44px 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(124, 140, 255, 0.13), transparent 70%),
    linear-gradient(160deg, rgba(21, 28, 46, 0.96), rgba(13, 18, 32, 0.98));
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.result-card::before {
  position: absolute;
  top: 0;
  right: 28%;
  left: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.9), transparent);
  content: "";
}

.score-ring {
  --score-angle: 0deg;
  --ring-color: var(--primary);
  display: grid;
  width: 168px;
  height: 168px;
  margin: 30px auto 26px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--score-angle), rgba(255, 255, 255, 0.065) 0);
  box-shadow: 0 0 55px -16px rgba(124, 140, 255, 0.65);
}

.score-ring--great {
  --ring-color: var(--green);
  box-shadow: 0 0 55px -16px rgba(52, 211, 153, 0.7);
}

.score-ring--good {
  --ring-color: var(--primary);
}

.score-ring--medium {
  --ring-color: var(--yellow);
  box-shadow: 0 0 55px -16px rgba(251, 191, 36, 0.55);
}

.score-ring--low {
  --ring-color: var(--red);
  box-shadow: 0 0 55px -16px rgba(251, 113, 133, 0.55);
}

.score-ring__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 138px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #101625;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.score-ring__inner strong {
  color: var(--text);
  font-size: 46px;
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 1;
}

.score-ring__inner span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-title {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.result-title__score {
  color: var(--primary);
}

.result-grade {
  max-width: 520px;
  margin: 17px auto 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

.result-note {
  margin: 10px auto 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 500px;
  margin: 28px auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
}

.result-stat:first-child {
  border-left: 0;
}

.result-stat span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-stat strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 28px;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 32px 28px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.site-footer__meta {
  color: rgba(255, 255, 255, 0.22);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.24s ease both;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 530px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 190px at 50% 0%, rgba(124, 140, 255, 0.1), transparent 75%),
    #131a2b;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.32s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.modal__dialog:focus {
  outline: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.modal__close svg {
  width: 17px;
  height: 17px;
}

.modal__close:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.modal__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: 14px;
  background: var(--primary-soft);
  color: #b4bdff;
}

.modal__icon svg {
  width: 24px;
  height: 24px;
}

.modal__title {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.modal__text {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.rules-tip {
  display: flex;
  gap: 11px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.055);
}

.rules-tip__icon {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 15px;
  line-height: 1.5;
}

.rules-tip p {
  margin: 0;
  color: #cfd5e5;
  font-size: 12.5px;
  line-height: 1.65;
}

.modal__submit {
  width: 100%;
  margin-top: 24px;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes triggerIn {
  from {
    background-color: #fde68a;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  to {
    background-color: var(--yellow);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28), 0 0 24px rgba(251, 191, 36, 0.14);
  }
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes previewFloat {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(-0.5deg) translateY(-8px); }
}

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

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes meterPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes orbFloat {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 1080px) {
  .start-layout {
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 5.6vw, 4.7rem);
  }

  .floating-tag--top {
    right: 0;
  }

  .floating-tag--bottom {
    left: 0;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  }

  .post-card__body {
    padding: 14px 27px 30px;
  }
}

@media (max-width: 920px) {
  .hero-visual {
    display: none;
  }

  .start-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    max-width: 760px;
    font-size: clamp(3.2rem, 9vw, 5.2rem);
  }

  .hero-description {
    max-width: 580px;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card {
    min-height: 330px;
  }

  .choice-panel {
    padding: 24px;
  }

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

  .emotion-btn {
    min-height: 82px;
  }

  .review {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 20px 20px;
  }

  .topbar__badge {
    padding: 7px 10px;
    font-size: 9px;
  }

  .topbar__badge span:nth-last-child(-n + 2) {
    display: none;
  }

  .topbar__dot {
    display: none;
  }

  .brand__text {
    font-size: 13px;
  }

  .shell {
    padding: 0 20px 52px;
  }

  .screen--start {
    min-height: auto;
  }

  .start-layout {
    padding-top: 36px;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(2.4rem, 8.2vw, 3.8rem);
  }

  .hero-lead {
    margin-top: 22px;
  }

  .start-actions {
    margin-top: 30px;
  }

  .start-stats {
    margin-top: 36px;
  }

  .start-stat {
    padding: 0 18px;
  }

  .screen--game {
    padding-top: 6px;
  }

  .game-toolbar {
    margin-bottom: 16px;
  }

  .post-card {
    min-height: 280px;
  }

  .post-card__head {
    padding: 19px 20px 14px;
  }

  .post-card__body {
    padding: 12px 22px 28px;
  }

  .post-text {
    font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  }

  .post-card__foot {
    gap: 16px;
    padding: 13px 20px;
  }

  .choice-panel {
    padding: 21px;
  }

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

  .emotion-btn {
    min-height: 76px;
  }

  .review {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 21px;
  }

  .review__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .review__icon svg {
    width: 20px;
    height: 20px;
  }

  .result-card {
    padding: 34px 24px 30px;
  }

  .score-ring {
    width: 146px;
    height: 146px;
    margin-top: 26px;
  }

  .score-ring__inner {
    width: 120px;
    height: 120px;
  }

  .score-ring__inner strong {
    font-size: 40px;
  }

  .result-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px 0;
  }

  .result-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-left: 0;
  }

  .site-footer {
    padding: 0 20px 22px;
  }

  .site-footer__meta {
    display: none;
  }

  .modal {
    padding: 16px;
  }

  .modal__dialog {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .modal__title {
    font-size: 24px;
  }

  .modal__text {
    font-size: 13.5px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 16px 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand__mark svg {
    width: 21px;
    height: 21px;
  }

  .brand__text {
    font-size: 12px;
  }

  .brand__text span {
    display: none;
  }

  .topbar__badge {
    display: none;
  }

  .shell {
    padding: 0 16px 42px;
  }

  .hero-title {
    font-size: clamp(2.05rem, 10.4vw, 2.65rem);
    letter-spacing: -0.05em;
  }

  .hero-description {
    font-size: 13.5px;
  }

  .start-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .start-actions .btn {
    width: 100%;
  }

  .start-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .start-stat {
    padding: 0;
    border-left: 0;
  }

  .start-stat strong {
    font-size: 18px;
  }

  .start-stat span {
    font-size: 9px;
  }

  .game-progress__labels {
    font-size: 11px;
  }

  .score-pill {
    font-size: 9px;
  }

  .game-toolbar {
    gap: 10px;
  }

  .icon-btn {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .post-card {
    border-radius: 21px;
  }

  .post-avatar {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
    font-size: 19px;
  }

  .post-card__more {
    display: none;
  }

  .post-card__body {
    padding: 10px 18px 24px;
  }

  .post-text {
    font-size: 1.08rem;
    line-height: 1.66;
  }

  .post-card__foot {
    gap: 13px;
    padding: 12px 18px;
    font-size: 10px;
  }

  .post-action--share {
    display: none;
  }

  .choice-panel {
    padding: 18px;
    border-radius: 21px;
  }

  .choice-title {
    font-size: 1.18rem;
  }

  .panel-hint {
    margin-bottom: 15px;
    font-size: 11.5px;
  }

  /* На узких телефонах кнопки эмоций встают в столбик */
  .emotion-grid {
    grid-template-columns: 1fr;
  }

  .emotion-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    min-height: 56px;
    padding: 10px 15px;
    font-size: 13px;
    text-align: left;
  }

  .emotion-btn__emoji {
    flex: 0 0 27px;
    font-size: 24px;
  }

  .emotion-btn.is-correct::before {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }

  .review {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px;
    border-radius: 0 16px 16px 0;
  }

  .review__title {
    font-size: 18px;
  }

  .review__text {
    font-size: 13.5px;
  }

  .btn--next {
    width: 100%;
  }

  .result-card {
    padding: 30px 18px 26px;
    border-radius: 25px;
  }

  .result-title {
    font-size: 1.6rem;
  }

  .result-grade {
    font-size: 14px;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result-actions .btn {
    width: 100%;
  }

  .site-footer {
    padding: 0 16px 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   ПРОФИЛЬ ИГРОКА
   ============================================================ */

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 210px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.profile-chip:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.7);
  outline-offset: 2px;
}

.profile-chip__avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(124, 140, 255, 0.35), rgba(103, 232, 249, 0.12));
  font-size: 16px;
  line-height: 1;
}

.profile-chip.is-empty .profile-chip__avatar {
  filter: grayscale(0.35);
  opacity: 0.75;
}

.profile-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  max-width: 520px;
  margin-top: 30px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(280px 120px at 0% 0%, rgba(124, 140, 255, 0.12), transparent 70%),
    linear-gradient(135deg, rgba(124, 140, 255, 0.06), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-card__avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124, 140, 255, 0.3), rgba(103, 232, 249, 0.1));
  font-size: 24px;
  line-height: 1;
}

.player-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-card__label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.player-card__name {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.player-card__record {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.btn--compact {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 12.5px;
}

.result-player {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 7px 15px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.3;
}

.result-player__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(124, 140, 255, 0.35), rgba(103, 232, 249, 0.12));
  font-size: 15px;
  line-height: 1;
}

.result-player__name {
  color: var(--text);
  font-weight: 650;
}

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

.field {
  display: block;
  margin-top: 20px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: var(--muted-2);
}

.field__input:focus {
  outline: none;
  border-color: rgba(124, 140, 255, 0.65);
  background: rgba(124, 140, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.14);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}

.emoji-option {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.emoji-option:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.emoji-option:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.7);
  outline-offset: 2px;
}

.emoji-option.is-selected {
  border-color: rgba(124, 140, 255, 0.75);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(124, 140, 255, 0.16);
}

.profile-note {
  min-height: 16px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.profile-note.is-error {
  color: var(--red);
}

.profile-note.is-success {
  color: var(--green);
}

.profile-reset {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-reset:hover {
  color: var(--red);
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #182036;
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .topbar__actions {
    gap: 8px;
  }

  .topbar__badge {
    display: none;
  }

  .profile-chip {
    max-width: 160px;
  }
}

@media (max-width: 520px) {
  .player-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .player-card .btn--compact {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-chip__name {
    max-width: 74px;
  }

  .result-player {
    padding: 6px 13px 6px 6px;
    font-size: 11px;
  }
}
