/* Огонёк-игрушка. Переменные с запасом: на сайте возьмутся его цвета. */
.cf{--cf-text:var(--text,#fff);--cf-muted:var(--muted,rgba(255,255,255,.62));--cf-film:var(--film,rgba(255,255,255,.07));--cf-hair:var(--hair,rgba(255,255,255,.10));--cf-strong:var(--film-strong,rgba(255,255,255,.11));
  display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;color:var(--cf-text)}
.cf-stage{position:relative;width:min(100%,440px);aspect-ratio:1}
.cf-canvas,.cf-img{position:absolute;inset:0;width:100%;height:100%;display:block}
/* the live canvas is taller than the stage by --cf-ext (headroom for pulling and hops); it ignores input, the stage takes it */
.cf-stage{--cf-ext:.32;border-radius:32px}
.cf-canvas{top:calc(var(--cf-ext) * -100%);height:calc((1 + var(--cf-ext)) * 100%);pointer-events:none}
.cf-still .cf-stage{background:radial-gradient(closest-side,rgba(217,80,31,.16),transparent 78%)}
.cf-canvas[hidden],.cf-img[hidden]{display:none}
.cf-canvas{outline:none}
.cf-live .cf-stage{touch-action:pan-y;cursor:grab;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.cf-live .cf-stage:active{cursor:grabbing}
/* an upward stroke on the flame pulls it; strokes down still scroll the page (see flame-toy.js) */
@supports (touch-action:pan-up){.cf-live .cf-stage{touch-action:pan-up}}
.cf-stage:has(.cf-canvas:focus-visible){box-shadow:0 0 0 2px var(--core,#f5925c)}
.cf-panel{display:flex;flex-direction:column;gap:14px;width:100%;max-width:560px;min-height:102px}
.cf-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
/* Эмоции на узком экране — один ряд с прокруткой, край тает */
@media (max-width:620px){
  .cf-mood{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:0 -16px;padding:0 16px;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
  .cf-mood::-webkit-scrollbar{display:none}
  .cf-mood .cf-chip{flex:none}
}
.cf-chip{white-space:nowrap;font:inherit;font-size:15px;line-height:1.2;color:var(--cf-muted);background:var(--cf-film);border:1px solid var(--cf-hair);border-radius:999px;padding:11px 16px;min-height:44px;cursor:pointer;transition:background .15s,color .15s}
.cf-chip[aria-pressed=true]{color:#140e0c;background:#fff;border-color:#fff}
.cf-dot{width:44px;height:44px;padding:0;border:0;background:none;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.cf-dot::before{content:"";width:28px;height:28px;border-radius:50%;background:var(--d);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.cf-dot[aria-pressed=true]::before{box-shadow:0 0 0 3px var(--bg,#140e0c),0 0 0 5px #fff}
.cf-chip:focus-visible,.cf-dot:focus-visible{outline:2px solid var(--core,#f5925c);outline-offset:2px}
@media (hover:hover){.cf-chip:not([aria-pressed=true]):hover{background:var(--cf-strong);color:var(--cf-text)}}

/* ── Секция на главной ── */
/* Всё по центру одной колонкой: заголовок, персонаж, под ним цвета и настроения (Егор 27.11). */
.flame-play{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.flame-play-head{width:100%}
.flame-play-head p{margin:18px auto 0;max-width:680px;text-wrap:balance;color:var(--muted);font-size:16px;line-height:1.65}
.flame-play .cf{display:contents}
.flame-play .cf-stage{width:100%;max-width:440px}
.flame-play .cf-panel{max-width:640px;min-height:154px}
.flame-play .cf-row{justify-content:center}
@media (max-width:900px){
  .flame-play .cf-stage{max-width:420px}
  .flame-play .cf-panel{min-height:206px}
}
@media (max-width:620px){
  .flame-play .cf-panel{min-height:102px}
  .flame-play .cf-mood{justify-content:flex-start}
}
