/* Feelings tool: unified beige redesign with 4 feelings */

:root {
  --bg: #f1ebe0;
  --bg-warm: #ebe3d3;
  --cream: #f7f1e4;
  --ink: #2a2a28;
  --ink-soft: #6e6a60;
  --ink-mute: #9b9587;
  --line: rgba(60, 50, 30, 0.12);

  --anxiety: #7ea5e8;
  --anxiety-soft: rgba(126, 165, 232, 0.2);
  --anger: #e46e45;
  --anger-soft: rgba(228, 110, 69, 0.2);
  --sadness: #8b7fb0;
  --sadness-soft: rgba(139, 127, 176, 0.2);
  --shame: #b89a5e;
  --shame-soft: rgba(184, 154, 94, 0.23);

  --green: #3aa060;
  --green-dark: #2e8a4f;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 1px 2px rgba(60, 50, 30, 0.04), 0 12px 32px rgba(60, 50, 30, 0.06);
  --shadow-warm: 0 1px 2px rgba(60, 50, 30, 0.04), 0 8px 24px rgba(60, 50, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-main {
  flex: 1 0 auto;
  background: var(--bg);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 235, 224, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.navbar-links a:hover {
  color: var(--green-dark);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid rgba(77, 179, 115, 0.64);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.back-link:hover {
  color: var(--green);
  border-color: var(--green);
}

.hero-shell {
  margin-bottom: 10px;
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 30px 34px;
  background: #e3eee2;
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1f5d39;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-join-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.hero-secondary-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.hero-join-btn,
.primary-btn {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(58, 160, 96, 0.25);
}

.hero-join-btn:hover,
.primary-btn:hover {
  background: var(--green-dark);
}

.hero-secondary-link,
.secondary-btn,
.ghost-btn {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.hero-secondary-link:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  background: var(--bg-warm);
}

.tool-intro-note {
  margin: 10px 2px 16px;
  color: var(--ink-mute);
  font-size: 0.84rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.screen + .screen {
  margin-top: 16px;
}

.screen[hidden] {
  display: none;
}

.screen-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.screen-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-family: Montserrat, Inter, sans-serif;
}

.screen-head p {
  margin: 3px 0 0;
  color: var(--ink-soft);
}

.with-actions {
  justify-content: space-between;
  align-items: flex-start;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7c76b8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.feeling-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feeling-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  min-height: 255px;
  display: block;
  text-align: left;
  box-shadow: var(--shadow-warm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feeling-card:hover {
  transform: translateY(-2px);
}

.feeling-card:focus-visible,
.feeling-card.is-selected {
  outline: none;
  border-width: 2px;
  box-shadow: 0 10px 28px rgba(60, 50, 30, 0.14);
}

.anxiety-card {
  border-color: rgba(126, 165, 232, 0.55);
  background: #ecf3ff;
}

.anger-card {
  border-color: rgba(228, 110, 69, 0.55);
  background: #fff1e8;
}

.sadness-card {
  border-color: rgba(139, 127, 176, 0.55);
  background: #f2edf8;
}

.shame-card {
  border-color: rgba(184, 154, 94, 0.58);
  background: #f6eddc;
}

.snow-bg {
  background: rgba(255, 255, 255, 0.22);
}

.lava-bg {
  background: rgba(255, 255, 255, 0.2);
}

.rain-bg {
  background: rgba(255, 255, 255, 0.22);
}

.mist-bg {
  background: rgba(255, 255, 255, 0.2);
}

.feeling-card > * {
  position: relative;
  z-index: 1;
}


.anxiety-illustration .mini-snow {
  position: absolute;
  color: #8caef4;
  animation: float-soft 3s ease-in-out infinite;
}

.snow-a {
  font-size: 2.2rem;
  left: 14px;
  top: 14px;
}

.snow-b {
  font-size: 1.6rem;
  right: 20px;
  top: 38px;
  animation-delay: 0.8s;
}

.thermo-mini {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 52px;
  height: 124px;
  transform: translateX(-50%);
  border: 3px solid #7ea5e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.thermo-mini::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #7ea5e8;
  background: #e7efff;
}

.thermo-mini-fill {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 36%;
  border-radius: 999px;
  background: #6b90e9;
}

.thermo-mini-face {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.63rem;
  color: #4d65c5;
}

.ice-hill {
  position: absolute;
  bottom: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 72px solid #d7e8ff;
  opacity: 0.7;
}

.hill-one {
  left: 14px;
}

.hill-two {
  right: 12px;
  transform: scale(0.82);
}

.volcano-body {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 186px;
  height: 134px;
  background: linear-gradient(135deg, #8d665e, #6a463e);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 16px;
}

.volcano-crater {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 80px;
  height: 30px;
  background: #f5764f;
  border-radius: 50%;
}

.volcano-lava-stream {
  position: absolute;
  width: 14px;
  border-radius: 999px;
  background: #ff9f5c;
}

.stream-one {
  left: 108px;
  top: 56px;
  height: 102px;
  transform: rotate(8deg);
}

.stream-two {
  right: 102px;
  top: 62px;
  height: 74px;
  transform: rotate(-14deg);
}

.volcano-smoke {
  position: absolute;
  border-radius: 50%;
  background: #ffe1d6;
  opacity: 0.82;
}

.smoke-one {
  left: 70px;
  top: 8px;
  width: 56px;
  height: 42px;
}

.smoke-two {
  right: 66px;
  top: 16px;
  width: 62px;
  height: 48px;
}

.lava-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7850;
}

.dot-one {
  left: 52px;
  top: 50px;
}

.dot-two {
  right: 52px;
  top: 42px;
}

.dot-three {
  left: 90px;
  top: 16px;
}

.sadness-illustration .cloud-main,
.sadness-illustration .cloud-side {
  position: absolute;
  border-radius: 999px;
  background: #c4badf;
}

.cloud-main {
  left: 50%;
  top: 50px;
  width: 122px;
  height: 60px;
  transform: translateX(-50%);
}

.cloud-side {
  width: 58px;
  height: 46px;
  top: 38px;
}

.cloud-left {
  left: 34px;
}

.cloud-right {
  right: 34px;
}

.rain-drop {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 999px;
  background: #8b7fb0;
  animation: fall-soft 1.7s ease-in-out infinite;
}

.drop-a {
  left: 70px;
  top: 108px;
}

.drop-b {
  left: 95px;
  top: 116px;
  animation-delay: 0.35s;
}

.drop-c {
  right: 90px;
  top: 110px;
  animation-delay: 0.65s;
}

.drop-d {
  right: 70px;
  top: 120px;
  animation-delay: 1s;
}

.puddle {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 124px;
  height: 18px;
  border-radius: 999px;
  background: rgba(139, 127, 176, 0.36);
}

.mist-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(184, 154, 94, 0.36);
  animation: float-soft 2.4s ease-in-out infinite;
}

.band-a {
  top: 48px;
  width: 156px;
  height: 20px;
}

.band-b {
  top: 82px;
  width: 176px;
  height: 22px;
  animation-delay: 0.4s;
}

.band-c {
  top: 116px;
  width: 142px;
  height: 20px;
  animation-delay: 0.8s;
}

.tiny-person {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 34px;
  height: 50px;
  border-radius: 16px;
  background: #9f8350;
}

.tiny-head {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b89a5e;
}

.feeling-title {
  margin: 10px 18px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.anxiety-card .feeling-title {
  color: #4b63bb;
}

.anger-card .feeling-title {
  color: #d94e32;
}

.sadness-card .feeling-title {
  color: #6d5a9b;
}

.shame-card .feeling-title {
  color: #8c6a34;
}

.feeling-description {
  margin: 8px 18px 0;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.choose-pill {
  margin: 12px 18px 0;
  border-radius: 999px;
  border: 1px solid rgba(60, 50, 30, 0.2);
  background: rgba(255, 255, 255, 0.7);
  min-height: 36px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.86rem;
}

.meter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-panel,
.control-panel,
.support-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.visual-panel,
.control-panel {
  padding: 20px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.visual-panel.anxiety {
  background: #eaf4ff;
}

.visual-panel.anger {
  background: #fff1e8;
}

.visual-panel.sadness {
  background: #f2edf8;
}

.visual-panel.shame {
  background: #f6eddc;
}

.visual-panel h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1.5rem;
  font-family: Montserrat, Inter, sans-serif;
}

.animated-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.visual-panel.anxiety .animated-bg::before,
.visual-panel.anxiety .animated-bg::after {
  content: "❄";
  position: absolute;
  color: rgba(111, 156, 244, 0.5);
  font-size: 2rem;
  animation: float-soft 3.2s ease-in-out infinite;
}

.visual-panel.anxiety .animated-bg::before {
  left: 12%;
  top: 13%;
}

.visual-panel.anxiety .animated-bg::after {
  right: 12%;
  top: 44%;
  animation-delay: 0.8s;
}

.visual-panel.anger .animated-bg::before,
.visual-panel.anger .animated-bg::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b50;
  animation: float-soft 1.8s ease-in-out infinite;
}

.visual-panel.anger .animated-bg::before {
  left: 20%;
  top: 18%;
}

.visual-panel.anger .animated-bg::after {
  right: 18%;
  top: 34%;
  animation-delay: 0.4s;
}

.visual-panel.sadness .animated-bg::before,
.visual-panel.sadness .animated-bg::after {
  content: "•";
  position: absolute;
  color: rgba(139, 127, 176, 0.55);
  font-size: 2rem;
  animation: fall-soft 1.9s ease-in-out infinite;
}

.visual-panel.sadness .animated-bg::before {
  left: 14%;
  top: 18%;
}

.visual-panel.sadness .animated-bg::after {
  right: 14%;
  top: 28%;
  animation-delay: 0.6s;
}

.visual-panel.shame .animated-bg::before,
.visual-panel.shame .animated-bg::after {
  content: "";
  position: absolute;
  width: 164px;
  height: 24px;
  border-radius: 999px;
  background: rgba(184, 154, 94, 0.25);
  animation: float-soft 2.7s ease-in-out infinite;
}

.visual-panel.shame .animated-bg::before {
  left: 6%;
  top: 24%;
}

.visual-panel.shame .animated-bg::after {
  right: 6%;
  top: 40%;
  animation-delay: 0.7s;
}

.meter-zone {
  display: grid;
  grid-template-columns: 1fr 184px;
  gap: 16px;
  align-items: center;
  min-height: 360px;
  position: relative;
  z-index: 1;
}

.thermometer-visual {
  position: relative;
  width: 184px;
  min-width: 184px;
  height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.level-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
}

.level-label {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
}

.level-mark {
  font-size: 1rem;
  font-weight: 800;
}

.level-text strong {
  display: block;
  font-size: 0.86rem;
}

.level-text span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.32;
}

.thermo {
  --level: 30%;
  position: relative;
  width: 96px;
  height: 316px;
  transform: scale(0.96);
  transform-origin: center bottom;
  margin: 0 auto;
}

.thermo-neck {
  position: absolute;
  left: 38px;
  bottom: 70px;
  width: 20px;
  height: 28px;
  border-left: 5px solid var(--anxiety);
  border-right: 5px solid var(--anxiety);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
}

.thermo-tube {
  position: absolute;
  left: 31px;
  top: 0;
  width: 34px;
  height: 236px;
  border: 5px solid var(--anxiety);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  z-index: 2;
}

.visual-panel.anger .thermo-neck {
  border-color: var(--anger);
}

.visual-panel.sadness .thermo-neck {
  border-color: var(--sadness);
}

.visual-panel.shame .thermo-neck {
  border-color: var(--shame);
}

.visual-panel.anger .thermo-tube {
  border-color: var(--anger);
}

.visual-panel.sadness .thermo-tube {
  border-color: var(--sadness);
}

.visual-panel.shame .thermo-tube {
  border-color: var(--shame);
}

.thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--level);
  background: #6b90e9;
  border-radius: 999px 999px 10px 10px;
  transition: height 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-panel.anger .thermo-fill {
  background: #f08c55;
}

.visual-panel.sadness .thermo-fill {
  background: #8b7fb0;
}

.visual-panel.shame .thermo-fill {
  background: #b89a5e;
}

.thermo-bulb {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 5px solid var(--anxiety);
  background: #eef5ff;
  overflow: hidden;
  z-index: 1;
}

.thermo-bulb-fill {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%) scale(var(--bulb-scale, 1));
  transform-origin: center center;
  border-radius: 50%;
  background: #6b90e9;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.visual-panel.anger .thermo-bulb {
  border-color: var(--anger);
  background: #fff0e6;
}

.visual-panel.anger .thermo-bulb-fill {
  background: #f08c55;
}

.visual-panel.sadness .thermo-bulb {
  border-color: var(--sadness);
  background: #f3effa;
}

.visual-panel.sadness .thermo-bulb-fill {
  background: #8b7fb0;
}

.visual-panel.shame .thermo-bulb {
  border-color: var(--shame);
  background: #f8f1e2;
}

.visual-panel.shame .thermo-bulb-fill {
  background: #b89a5e;
}

.thermo-face {
  position: absolute;
  left: 48px;
  bottom: 10px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 251, 255, 0.96);
  color: #5d7bdd;
  box-shadow: var(--shadow-soft);
  transition: bottom 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.thermo-face::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 18px 0 0 currentColor;
}

.thermo-face::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 16px 16px;
}

.thermo-face.mood-calm::after {
  left: 12px;
  top: 21px;
  width: 18px;
  height: 9px;
  border-bottom-width: 2px;
  border-radius: 0 0 18px 18px;
}

.thermo-face.mood-neutral::after {
  left: 13px;
  top: 24px;
  width: 16px;
  height: 0;
  border-bottom-width: 2px;
  border-radius: 999px;
}

.thermo-face.mood-tense::after {
  left: 13px;
  top: 23px;
  width: 16px;
  height: 5px;
  border-bottom-width: 2px;
  border-radius: 0 0 14px 14px;
}

.thermo-face.mood-worried::after {
  left: 12px;
  top: 22px;
  width: 18px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.thermo-face.mood-panicked::after {
  left: 16px;
  top: 21px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.thermo-face.mood-panicked::before {
  top: 12px;
  left: 9px;
  width: 4px;
  height: 4px;
  box-shadow: 20px 0 0 currentColor;
}

.visual-panel.anxiety {
  background-image: url("./images/anxiety-bg.png");
  background-size: 108% 108%;
  background-position: center;
  background-color: #eaf4ff;
}

.visual-panel.anger {
  background-image: url("./images/anger-bg.png");
  background-size: 108% 108%;
  background-position: center;
  background-color: #fff1e8;
}

.visual-panel.anxiety .animated-bg,
.visual-panel.anger .animated-bg {
  display: none;
}

.visual-panel.anger .thermo-face {
  color: #d75a32;
  background: #fff4ea;
}

.visual-panel.sadness .thermo-face {
  color: #6d5a9b;
  background: #f7f3ff;
}

.visual-panel.shame .thermo-face {
  color: #8c6a34;
  background: #fff8ec;
}

.card-scene-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  z-index: 0;
  transform: scale(1.06);
  transform-origin: center center;
}

.anxiety-card .card-scene-img,
.sadness-card .card-scene-img {
  object-position: left center;
}

.anger-card .card-scene-img,
.shame-card .card-scene-img {
  object-position: right center;
}

.card-copy {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: min(44%, 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-copy-left {
  left: 18px;
}

.card-copy-right {
  right: 18px;
}

.feeling-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.feeling-description {
  margin: 0;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.choose-pill {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(60, 50, 30, 0.2);
  background: rgba(255, 255, 255, 0.72);
  min-height: 36px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.feeling-card:hover .choose-pill,
.feeling-card:focus-visible .choose-pill,
.feeling-card.is-selected .choose-pill {
  background: rgba(255, 255, 255, 0.96);
}

.anxiety-card:focus-visible,
.anxiety-card.is-selected {
  border-color: #7ea5e8;
}

.anger-card:focus-visible,
.anger-card.is-selected {
  border-color: #e46e45;
}

.sadness-card:focus-visible,
.sadness-card.is-selected {
  border-color: #8b7fb0;
}

.shame-card:focus-visible,
.shame-card.is-selected {
  border-color: #b89a5e;
}

.anxiety-card:hover .choose-pill,
.anxiety-card:focus-visible .choose-pill,
.anxiety-card.is-selected .choose-pill {
  border-color: #7ea5e8;
  color: #4b63bb;
}

.anger-card:hover .choose-pill,
.anger-card:focus-visible .choose-pill,
.anger-card.is-selected .choose-pill {
  border-color: #e46e45;
  color: #d94e32;
}

.sadness-card:hover .choose-pill,
.sadness-card:focus-visible .choose-pill,
.sadness-card.is-selected .choose-pill {
  border-color: #8b7fb0;
  color: #6d5a9b;
}

.shame-card:hover .choose-pill,
.shame-card:focus-visible .choose-pill,
.shame-card.is-selected .choose-pill {
  border-color: #b89a5e;
  color: #8c6a34;
}

.meter-scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.04);
  transform-origin: center center;
}

.visual-panel > *:not(.meter-scene-img):not(.animated-bg) {
  position: relative;
  z-index: 1;
}

.visual-panel:has(#meterSceneImg:not([hidden])) .animated-bg {
  display: none;
}

.meter-rule {
  margin: 12px 0 0;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  min-height: 34px;
  padding: 5px 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.current-level {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(126, 165, 232, 0.17);
}

.meter-layout.anger .current-level {
  background: var(--anger-soft);
}

.meter-layout.sadness .current-level {
  background: var(--sadness-soft);
}

.meter-layout.shame .current-level {
  background: var(--shame-soft);
}

.current-kicker {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.current-level strong {
  display: block;
  margin-top: 4px;
  font-size: 1.16rem;
}

.current-level p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.range-label,
.field-block label,
.label-like {
  font-size: 0.9rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.range-dots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.range-dot {
  min-height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.range-dot.is-active {
  background: #2a2a28;
  color: #fff;
  border-color: #2a2a28;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  padding: 11px 12px;
  color: var(--ink);
}

textarea:focus {
  outline: none;
  border-color: #7ea5e8;
  box-shadow: 0 0 0 3px rgba(126, 165, 232, 0.2);
}

.body-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.body-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.body-chip.is-selected {
  background: var(--anxiety-soft);
  border-color: var(--anxiety);
  color: #355f9f;
}

.meter-layout.anger .body-chip.is-selected {
  background: var(--anger-soft);
  border-color: var(--anger);
  color: #ad4f2b;
}

.meter-layout.sadness .body-chip.is-selected {
  background: var(--sadness-soft);
  border-color: var(--sadness);
  color: #5f4e88;
}

.meter-layout.shame .body-chip.is-selected {
  background: var(--shame-soft);
  border-color: var(--shame);
  color: #7b5d2d;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.support-box {
  padding: 16px 18px;
}

.main-support {
  display: flex;
  gap: 12px;
  background: rgba(58, 160, 96, 0.14);
}

.support-icon {
  font-size: 1.5rem;
  margin-top: 2px;
}

.support-box h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  font-family: Montserrat, Inter, sans-serif;
}

.support-box p,
.support-box li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.5;
}

.support-box ul {
  margin: 0;
  padding-left: 18px;
}

.support-box li + li {
  margin-top: 5px;
}

.saved-box p + p {
  margin-top: 7px;
}

.bottom-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 110px);
  opacity: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #2a2a28;
  color: #fff;
  box-shadow: 0 12px 28px rgba(42, 42, 40, 0.28);
  font-weight: 600;
  font-size: 0.86rem;
  z-index: 20000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 340px;
  background: #2a2a28;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(42, 42, 40, 0.28);
  transform: translateY(140px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 10000;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  position: relative;
}

.cookie-banner-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.cookie-banner-text {
  margin-bottom: 11px;
  font-size: 0.87rem;
  line-height: 1.5;
}

.cookie-banner-accept {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #2a2a28;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  flex-shrink: 0;
  background: #2a2a28;
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 20px 38px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.footer-nav-link:hover {
  color: #fff;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-telegram-link:hover {
  color: #b8cdf4;
}

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.95;
  }
}

@keyframes fall-soft {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(14px);
    opacity: 0.95;
  }
}

@media (max-width: 980px) {
  .meter-layout,
  .support-grid,
  .feeling-choice-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 16px 12px 48px;
  }

  .hero-copy,
  .card {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 24px 20px;
  }

  .with-actions {
    flex-direction: column;
    gap: 10px;
  }

  .feeling-card {
    min-height: 235px;
  }

  .card-copy {
    width: min(46%, 220px);
  }

  .meter-zone {
    grid-template-columns: 1fr;
  }

  .level-labels {
    order: 2;
    gap: 8px;
    height: auto;
  }

  .thermometer-visual {
    order: 1;
    width: 160px;
    min-width: 160px;
    height: 320px;
    margin: 0 auto;
  }

  .cookie-banner {
    right: 8px;
    left: 8px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .feeling-card {
    min-height: 220px;
  }

  .card-copy {
    width: min(52%, 190px);
    top: 14px;
    bottom: 14px;
  }

  .feeling-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .feeling-description {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .choose-pill {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .bottom-actions {
    flex-direction: column;
  }

  .hero-join-btn,
  .hero-secondary-link,
  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }

  .screen-head h2 {
    font-size: 1.35rem;
  }
}
