/* ===== Комната чувств — облака и аптечка ===== */
body.feelings-room {
  /* мягкая пастельная аура: мятно-зелёный верх, свечение в центре, персиковый низ */
  background:
    radial-gradient(130% 38% at 50% 1%, rgba(198,214,194,.72) 0%, transparent 62%),     /* мятно-зелёный верх */
    radial-gradient(46% 22% at 50% 40%, rgba(230,198,202,.58) 0%, transparent 64%),      /* розовая дымка центр */
    radial-gradient(42% 20% at 50% 55%, rgba(226,230,184,.66) 0%, transparent 66%),      /* кремово-зелёное свечение */
    radial-gradient(46% 24% at 50% 70%, rgba(186,204,226,.56) 0%, transparent 66%),      /* голубое под центром */
    radial-gradient(72% 72% at 8% 42%, rgba(170,180,206,.42) 0%, transparent 60%),       /* лаванда слева */
    radial-gradient(72% 72% at 92% 52%, rgba(204,172,184,.42) 0%, transparent 60%),      /* розово-серый справа */
    radial-gradient(130% 42% at 50% 100%, rgba(234,208,176,.66) 0%, transparent 62%),    /* персиковый низ */
    linear-gradient(180deg, #cdd9c9 0%, #c2c9d8 32%, #ccc4d0 60%, #e6d6c2 100%) fixed;
}

/* ===== живой фон: радужный блик + разноцветные капли ===== */
.feels-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.feels-bg .glint { position: absolute; inset: -25%;
  background: linear-gradient(115deg, transparent 28%,
    rgba(255,170,200,.28), rgba(255,230,160,.26), rgba(175,235,185,.26),
    rgba(165,200,245,.28), rgba(205,175,235,.28), transparent 72%);
  filter: blur(46px); mix-blend-mode: screen; will-change: transform;
  animation: glintMove 24s ease-in-out infinite alternate; }
@keyframes glintMove {
  0% { transform: translate(-10%, -4%) rotate(0deg); }
  100% { transform: translate(10%, 4%) rotate(5deg); }
}
.feels-bg .bokeh { position: absolute; inset: 0; overflow: hidden; }
.feels-bg .orb { position: absolute; border-radius: 50%; filter: blur(34px); transform: translate(-50%, -50%);
  animation: orbFloat ease-in-out infinite; will-change: transform; }
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% + var(--dx, 1) * 46px), calc(-50% + var(--dy, 1) * 46px)); }
}
.feels-bg .flecks { position: absolute; inset: 0; overflow: hidden; }
/* длинный мягкий луч света с нежной радугой внутри */
.feels-bg .rfleck { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(9px); opacity: .55;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,188,205,.30) 16%,
    rgba(255,236,196,.52) 38%,
    rgba(255,255,242,.62) 50%,
    rgba(206,246,216,.50) 62%,
    rgba(198,222,255,.42) 84%,
    rgba(255,255,255,0) 100%);
  will-change: opacity, transform; animation: fleckTw ease-in-out infinite; }
@keyframes fleckTw {
  0%, 100% { opacity: .3; transform: rotate(var(--rot, 0deg)) scaleX(.92); }
  50% { opacity: .72; transform: rotate(var(--rot, 0deg)) scaleX(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .feels-bg .glint { animation: none; }
  .feels-bg .orb { animation: none; }
  .feels-bg .rfleck { animation: none; opacity: .4; }
}

.wrap, .room-nav { position: relative; z-index: 2; }

/* мягкий режим (тяжёлая эмоция) */
body.tender { transition: background 1.2s ease;
  background:
    radial-gradient(900px 520px at 50% -10%, #cdd2ea 0%, transparent 55%),
    linear-gradient(180deg, #c2c6e0 0%, #cdc6e2 50%, #ddcfe6 100%) fixed; }

.feel-card {
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(150,140,170,.16); border-radius: 24px; box-shadow: 0 12px 36px rgba(150,130,180,.16);
  padding: 26px; margin-bottom: 22px; transition: background 1s ease;
}
.when-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.when { display: inline-flex; align-items: center; gap: 7px; font-size: 1.05rem; }
.when input { padding: 9px 12px; border: 1px solid rgba(150,140,170,.2); border-radius: 12px; font-family: inherit; font-size: .95rem; color: #4a4458; background: rgba(255,255,255,.85); }
.when input:focus { outline: none; border-color: #b69ce0; box-shadow: 0 0 0 4px rgba(182,156,224,.16); }

.q { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.q .step { margin-top: 22px; }

/* чипсы */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(150,140,170,.18); background: rgba(255,255,255,.6); font-weight: 700; font-size: .92rem; color: #5a5168; transition: all .15s; }
.chip:hover { background: #fff; transform: translateY(-1px); }
.chip .e { font-size: 1.15rem; }
.chip.sel { background: #fff; border-color: var(--c, #b69ce0); box-shadow: 0 4px 14px rgba(120,100,150,.18); }
.chip.sel.em { color: #3f3a4d; box-shadow: 0 0 0 2px var(--c), 0 6px 16px rgba(120,100,150,.2); }

/* тело */
.body-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
#feelBody { width: 162px; height: auto; touch-action: manipulation; overflow: visible; }
#feelBody .bz { fill: #fbe0e8; stroke: #d98aa0; stroke-width: 2; cursor: pointer; transition: fill .2s, filter .2s; }
#feelBody .bz:hover { fill: #f6cdda; }
#feelBody .bz.sel { fill: var(--c, #f5b8c4); stroke: rgba(170,60,90,.55); stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--c, #f5b8c4)); }
.body-pick { font-size: .85rem; font-weight: 700; color: #8a8398; margin-top: 6px; min-height: 1.2em; }

/* умная подсказка */
.support { margin-top: 18px; border-radius: 18px; padding: 18px 20px; background: linear-gradient(180deg, #3a3656, #2f2c4a); color: #ece9f6;
  box-shadow: 0 10px 30px rgba(40,30,70,.3); animation: soft .5s ease; }
@keyframes soft { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.support h4 { font-family: 'Comfortaa', sans-serif; margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; }
.support p { margin: 0 0 12px; color: #c5c1e0; font-size: .92rem; }
.support .meds { display: flex; flex-wrap: wrap; gap: 8px; }
.support .med { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: none; font-family: inherit; font-weight: 800; font-size: .9rem; color: #2a2550; background: linear-gradient(135deg,#ffe9a8,#f5c98a); transition: transform .15s; }
.support .med:hover { transform: translateY(-2px); }
.support .med.calm { background: rgba(255,255,255,.14); color: #fff; }
.support .med .pct { font-weight: 700; opacity: .7; font-size: .8rem; }

/* кнопки */
.feel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.btn { border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, #9fc6ea, #b69ce0); box-shadow: 0 8px 20px rgba(150,130,200,.3); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.7); color: #5a5168; box-shadow: 0 4px 12px rgba(120,100,150,.14); }
.btn.link { background: transparent; color: #7a6fa0; box-shadow: none; padding: 13px 10px; }

/* плитки «что помогло» */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 11px; }
.res-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 8px 13px; border-radius: 18px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .85rem;
  color: #6a6378; border: 2px solid rgba(150,140,170,.14); background: rgba(255,255,255,.55); transition: all .16s ease; }
.res-tile:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(120,110,150,.14); }
.res-tile .rt-emoji { font-size: 1.75rem; line-height: 1; }
.res-tile .rt-label { line-height: 1.2; text-align: center; }
.res-tile.sel { background: #fff; border-color: #8fcdb6; color: #3f3a4d; box-shadow: 0 8px 20px rgba(110,170,140,.22); }
.res-tile.sel::after { content: '✓'; position: absolute; top: 7px; right: 7px; width: 19px; height: 19px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #6cc3a0; color: #fff; font-size: .72rem; font-weight: 900; box-shadow: 0 2px 6px rgba(80,150,120,.4); }

/* поле «другое» */
.other-wrap { margin-top: 10px; animation: soft .3s ease; }
.other-wrap input { width: 100%; padding: 12px 14px; border: 1px solid rgba(150,140,170,.2); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: #4a4458; background: rgba(255,255,255,.85); }
.other-wrap input:focus { outline: none; border-color: #b69ce0; box-shadow: 0 0 0 4px rgba(182,156,224,.16); }

/* глубокие поля */
.deep { display: none; }
.deep.open { display: block; animation: soft .35s ease; }
.deep label { display: block; margin-top: 16px; }
.deep .ml { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: #5a5168; }
.deep input, .deep textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(150,140,170,.2); border-radius: 12px; font-family: inherit; font-size: 1rem; color: #4a4458; background: rgba(255,255,255,.85); }
.deep textarea { min-height: 70px; resize: vertical; }
.deep input:focus, .deep textarea:focus { outline: none; border-color: #b69ce0; box-shadow: 0 0 0 4px rgba(182,156,224,.16); }

/* аптечка */
.aptechka { background: linear-gradient(180deg, #f3eefc, #ede6f8); border: 1px solid rgba(150,140,170,.16); border-radius: 22px; padding: 22px; margin-bottom: 22px; }
.aptechka h2 { font-family: 'Comfortaa', sans-serif; font-size: 1.3rem; margin: 0 0 6px; display: flex; align-items: center; gap: 9px; }
.aptechka .note { color: #8a8398; font-size: .92rem; margin: 0 0 14px; }
/* прогресс аптечки */
.apt-progress { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #7a6fa0; font-size: .92rem; margin-bottom: 16px; }
.apt-progress span { white-space: nowrap; }
.apt-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(150,140,170,.18); overflow: hidden; }
.apt-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a7d7c5, #b69ce0); transition: width .8s ease; }

/* баночки-ресурсы (объёмные) */
.jars { display: grid; grid-template-columns: repeat(8, 1fr); justify-items: center; gap: 20px 6px; }
.jar { text-align: center; width: 100%; max-width: 72px; }
@media (max-width: 600px) { .jars { grid-template-columns: repeat(4, 1fr); } }
.jar .lid { width: 40px; height: 9px; margin: 0 auto -3px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(#d6cde6, #b3a8cc); box-shadow: 0 2px 3px rgba(80,60,110,.25); position: relative; z-index: 3; }
.jar .glass { position: relative; width: 58px; height: 82px; margin: 0 auto; border-radius: 11px 11px 18px 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 9px 18px rgba(120,110,150,.25), inset 0 -8px 14px rgba(255,255,255,.35), inset 0 2px 6px rgba(255,255,255,.6); }
.jar .fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 0); background: var(--c, #b9a3d8); transition: height .9s cubic-bezier(.4,0,.2,1); }
.jar .fill::before { content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--c, #b9a3d8) 60%, #fff); }
.jar .gloss { position: absolute; top: 7px; left: 9px; width: 11px; height: 44px; border-radius: 8px;
  background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,0)); z-index: 2; }
.jar .jemoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.jar.empty .glass { border-style: dashed; border-color: rgba(150,140,170,.4); box-shadow: 0 4px 9px rgba(120,110,150,.1); }
.jar.empty .jemoji { color: #b3aac8; opacity: .5; font-weight: 800; }
.jar .jname { font-weight: 700; font-size: .78rem; color: #5a5168; margin-top: 8px; }
.jar.empty .jname { color: #b3aac8; }
.jar .jpct { font-size: .74rem; font-weight: 800; color: #a99bd0; }

.med-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.med-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(120,100,150,.12); font-weight: 700; color: #5a5168; }
.med-pill .pct { color: #a99bd0; font-weight: 800; font-size: .82rem; }
.apt-emo { margin-top: 14px; }
.apt-emo .line { font-size: .95rem; color: #5a5168; margin: 7px 0; }
.apt-emo .line b { color: #3f3a4d; }
.apt-empty { color: #8a8398; font-style: italic; }

/* облака чувств (записи) */
.feel-list { display: grid; gap: 14px; }
.feel-cloud { position: relative; border-radius: 22px; padding: 16px 18px; color: #3f3a4d;
  background: var(--c, #dfe3f2); box-shadow: 0 8px 22px rgba(120,110,150,.18); overflow: hidden; }
.feel-cloud.born { animation: soft .6s ease; }
.feel-cloud::before { content: '☁️'; position: absolute; right: 12px; top: 10px; font-size: 1.4rem; opacity: .5; }
.feel-cloud .fc-emo { font-weight: 800; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.feel-cloud .fc-meta { font-size: .8rem; color: rgba(60,50,70,.6); margin: 2px 0 8px; }
.feel-cloud .fc-row { font-size: .92rem; margin: 3px 0; overflow-wrap: anywhere; word-break: break-word; }
.feel-cloud .fc-del { position: absolute; right: 14px; bottom: 12px; border: none; background: rgba(255,255,255,.5); cursor: pointer; color: #5a5168; border-radius: 50%; width: 26px; height: 26px; font-size: 1rem; opacity: .7; }
.feel-cloud .fc-del:hover { opacity: 1; }
.feel-empty { text-align: center; color: #8a8398; font-style: italic; padding: 24px; }

.section-h2 { font-family: 'Comfortaa', sans-serif; font-size: 1.3rem; margin: 26px 0 14px; display: flex; align-items: center; gap: 9px; }
