/* ===== Комната ресурсов и вдохновения — светящаяся стена ===== */
body.iskra-room {
  background:
    radial-gradient(760px 480px at 16% 14%, rgba(127,199,192,.20) 0%, transparent 62%),
    radial-gradient(720px 520px at 86% 20%, rgba(196,166,226,.26) 0%, transparent 62%),
    radial-gradient(780px 560px at 70% 92%, rgba(143,168,224,.20) 0%, transparent 64%),
    radial-gradient(620px 440px at 30% 70%, rgba(241,168,189,.14) 0%, transparent 62%),
    radial-gradient(900px 480px at 50% -8%, #5a3f6e 0%, transparent 58%),
    linear-gradient(180deg, #2c2236 0%, #261d30 50%, #1f1828 100%) fixed;
  color: #f3ecf6;
}
.wrap, .room-nav { position: relative; z-index: 2; }

/* ===== живой фон: дымка + боке + звёзды ===== */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(30px); transform: translate(-50%, -50%);
  animation-name: orbFloat; animation-timing-function: ease-in-out; animation-iteration-count: 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)); }
}
.ambient .star { position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,.7); animation: starTw ease-in-out infinite; }
@keyframes starTw { 0%, 100% { opacity: .18; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .ambient .orb, .ambient .star { animation: none; } }
.room-nav .room-tag { color: #d6c8e4; }
.back-home { color: #fff; background: rgba(255,255,255,.12); }
.back-home:hover { background: rgba(255,255,255,.22); }
.page-head h1 { color: #fff; }
.page-head p { color: #c4b6d2; }

/* кнопка случайной искры */
.spark-call { text-align: center; margin-bottom: 24px; }
.spark-btn { border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1.05rem;
  padding: 16px 32px; border-radius: 999px; color: #3a2a1a;
  background: linear-gradient(135deg, #ffe7a0, #f5b86a); box-shadow: 0 10px 30px rgba(245,184,106,.4), 0 0 30px rgba(255,210,120,.3);
  transition: transform .15s, box-shadow .25s; }
.spark-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245,184,106,.5), 0 0 40px rgba(255,210,120,.45); }

/* стена-коллаж */
.wall { position: relative; background: linear-gradient(180deg, rgba(20,14,28,.55), rgba(28,20,36,.5));
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 44px 16px 20px; margin-top: 30px; margin-bottom: 26px;
  box-shadow: inset 0 0 50px rgba(0,0,0,.35); }

/* ===== гирлянда ===== */
.garland { position: absolute; top: -24px; left: 6px; right: 6px; height: 64px; pointer-events: none; z-index: 4; }
.garland-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: .8; }
.bulb { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fffaf0, var(--bc, #ffd98a) 72%);
  box-shadow: 0 0 7px 1.5px var(--bc, #ffd98a), 0 0 15px 4px var(--bc, #ffd98a);
  animation: bulbGlow 3s ease-in-out infinite; will-change: opacity, filter; }
@keyframes bulbGlow {
  0%, 100% { opacity: .5; filter: brightness(.8); }
  50% { opacity: 1; filter: brightness(1.35); }
}
@media (prefers-reduced-motion: reduce) { .bulb { animation: none; opacity: .9; } }
.wall-grid { display: block; }

/* секции по категориям */
.cat-group { margin-bottom: 26px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-head { display: flex; align-items: center; gap: 9px; margin: 0 2px 13px; padding-bottom: 8px;
  border-bottom: 2px solid var(--c, #b58fd8); }
.cat-head .ch-emoji { font-size: 1.15rem; filter: drop-shadow(0 0 8px var(--glow)); }
.cat-head .ch-label { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 1.06rem; color: #fff; }
.cat-head .ch-cnt { margin-left: auto; font-size: .76rem; font-weight: 800; color: #2a2236;
  background: var(--c, #b58fd8); padding: 2px 11px; border-radius: 999px; box-shadow: 0 0 12px var(--glow); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; align-items: start; }
@media (max-width: 420px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); } }

.note { position: relative; cursor: pointer;
  background: var(--c, #b58fd8); border-radius: 16px; padding: 16px 15px 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3), 0 0 22px var(--glow, rgba(181,143,216,.5));
  color: #2a2236; transition: transform .2s ease, box-shadow .25s ease; }
.note:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 34px var(--glow, rgba(181,143,216,.7)); }
.note.born { animation: noteBorn .7s ease; }
@keyframes noteBorn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.note .pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9b98a); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.note .n-type { font-size: .72rem; font-weight: 800; opacity: .75; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.note .n-text { font-weight: 700; font-size: .98rem; line-height: 1.4; word-break: break-word; }
.note .n-del { position: absolute; top: 8px; right: 9px; border: none; background: rgba(255,255,255,.4); color: #2a2236;
  cursor: pointer; border-radius: 50%; width: 22px; height: 22px; font-size: .95rem; opacity: 0; transition: opacity .2s; }
.note:hover .n-del { opacity: 1; }
.wall-empty { text-align: center; color: #b6a8c6; font-style: italic; padding: 30px; }

/* форма добавления */
.add-iskra { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 24px; margin-bottom: 24px; }
.add-iskra h2 { font-family: 'Comfortaa', sans-serif; font-size: 1.25rem; margin: 0 0 14px; color: #fff; }
.type-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.type-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #e6dcf0; font-weight: 700; font-size: .92rem; transition: all .15s; }
.type-chip:hover { background: rgba(255,255,255,.12); }
.type-chip.sel { border-color: var(--c); background: rgba(255,255,255,.1); box-shadow: 0 0 14px var(--glow); color: #fff; }
.ask-q { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px;
  background: rgba(245,184,106,.12); border: 1px solid rgba(245,184,106,.3); border-radius: 14px; padding: 11px 14px; }
.ask-q .ask-label { font-size: .72rem; font-weight: 800; color: #f3c98a; text-transform: uppercase; letter-spacing: .4px; }
.ask-q .ask-text { flex: 1; min-width: 180px; font-weight: 700; color: #fff; cursor: pointer; line-height: 1.4; }
.ask-q .ask-more { border: none; background: rgba(255,255,255,.12); color: #e6dcf0; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px; transition: background .15s; }
.ask-q .ask-more:hover { background: rgba(255,255,255,.22); }

.add-iskra input { width: 100%; padding: 13px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  font-family: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.07); margin-bottom: 14px; }
.add-iskra input::placeholder { color: #a596ba; }
.add-iskra input:focus { outline: none; border-color: #f5b86a; box-shadow: 0 0 0 4px rgba(245,184,106,.18); }
.add-btn { border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, #b58fd8, #8f6fc4); box-shadow: 0 8px 20px rgba(143,111,196,.35); transition: transform .15s; }
.add-btn:hover { transform: translateY(-2px); }

.section-h2 { font-family: 'Comfortaa', sans-serif; font-size: 1.3rem; margin: 8px 0 14px; color: #fff; display: flex; align-items: center; gap: 9px; }
.section-h2 .cnt { font-size: .8rem; font-weight: 800; color: #d6c8e4; background: rgba(255,255,255,.1); padding: 3px 11px; border-radius: 999px; }

/* спотлайт случайной искры */
.spot-bg { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10,6,16,.7); backdrop-filter: blur(5px); }
.spot-bg.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.spot-card { width: min(92vw, 460px); text-align: center; border-radius: 24px; padding: 36px 28px;
  background: var(--c, #b58fd8); color: #2a2236; box-shadow: 0 0 60px var(--glow, rgba(181,143,216,.8)), 0 24px 60px rgba(0,0,0,.5);
  animation: spotRise .4s cubic-bezier(.3,1.3,.5,1); }
@keyframes spotRise { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.spot-card .s-type { font-weight: 800; font-size: .82rem; opacity: .75; margin-bottom: 12px; }
.spot-card .s-text { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.5; }
.spot-card .s-note { margin-top: 16px; font-size: .86rem; opacity: .7; }
.spot-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.spot-actions button { border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: .95rem; padding: 11px 22px; border-radius: 999px; transition: transform .15s; }
.spot-actions button:hover { transform: translateY(-2px); }
.spot-actions .more { background: rgba(255,255,255,.85); color: #2a2236; }
.spot-actions .close { background: rgba(0,0,0,.15); color: #2a2236; }
