/* Код к Себе — эмодзи-пак системы (lib/emoji.php) и отметка дня на главном экране.
   Глиф: стеклянная панель со срезами, неоновое лицо (цвет + белое ядро), акцент с анимацией.
   Цвет эмодзи — --ec на самом <svg>. Свечение — filter на <svg> целиком (на детях SVG он работает не везде). */

.emo { --ec: #5ef2ff; width: 44px; height: 44px; display: block; overflow: visible; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ec) 45%, transparent)); transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), filter .25s; }
.emo .e-body { fill: color-mix(in srgb, var(--ec) 13%, #070a2a); fill-opacity: .92; }
.emo .e-sheen { fill: #fff; opacity: .07; }
.emo .e-rim { fill: none; stroke: var(--ec); stroke-width: 1.6; stroke-linejoin: round; }
.emo .e-rim2 { fill: none; stroke: var(--ec); stroke-width: .7; opacity: .32; }
.emo .e-tick { fill: none; stroke: var(--ec); stroke-width: 1.3; opacity: .85; }
.emo .e-scan { fill: var(--ec); opacity: 0; }
.emo .n { fill: none; stroke: var(--ec); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.emo .c { fill: none; stroke: #fff; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.emo .thin.n { stroke-width: 2.4; }
.emo .thin.c { stroke-width: .8; opacity: .7; }
.emo .dash { stroke-dasharray: 2.5 3.5; }
.emo .d { fill: #fff; stroke: var(--ec); stroke-width: 1.6; }
.emo .f { fill: var(--ec); stroke: #fff; stroke-width: .8; stroke-linejoin: round; }
.emo .e-acc, .emo .e-face { transform-box: fill-box; transform-origin: center; }

/* акценты живут сами по себе */
.emo-charged .e-acc { animation: emo-flicker 2.6s steps(1) infinite; }
.emo-drive .e-acc { animation: emo-flame 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
.emo-calm .e-acc { animation: emo-drift 4.5s ease-in-out infinite; }
.emo-calm .e-face { animation: emo-breathe 5s ease-in-out infinite; }
.emo-tired .e-acc .f { animation: emo-blink 1.8s steps(1) infinite; }
.emo-anxious .e-acc { animation: emo-drip 2.4s ease-in infinite; }
.emo-angry .e-acc { animation: emo-throb 1.1s ease-in-out infinite; }
.emo-sad .e-acc { animation: emo-tear 3.2s ease-in infinite; }
.emo-empty .e-acc { animation: emo-blink 2.6s steps(1) infinite; }
.emo-proud .e-acc { animation: emo-spin 6s linear infinite; }
.emo-wow .e-acc { animation: emo-throb 1.6s ease-in-out infinite; }
.emo-shuttle .e-acc { animation: emo-flame 0.9s ease-in-out infinite; transform-origin: 50% 0; }

@keyframes emo-flicker { 0%, 100% { opacity: 1; } 8% { opacity: .35; } 11% { opacity: 1; } 52% { opacity: .55; } 55% { opacity: 1; } }
@keyframes emo-flame { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.88, 1.14); } }
@keyframes emo-drift { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes emo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes emo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes emo-drip { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes emo-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes emo-tear { 0%, 30% { transform: translateY(0); opacity: 1; } 90% { transform: translateY(7px); opacity: 0; } 100% { opacity: 0; } }
@keyframes emo-spin { to { transform: rotate(360deg); } }
@keyframes emo-scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .5; } 85% { opacity: .5; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes emo-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.4px); } 75% { transform: translateX(1.4px); } }

/* ---------- отметка дня ---------- */
.checkin .ci-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checkin .ci-q { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 10px 0 2px; }
.checkin .ci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 4px; }
.ci-e { --c: 7px; position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 2px 8px; border: 1px solid color-mix(in srgb, var(--ec) 26%, transparent); background: color-mix(in srgb, var(--ec) 6%, rgba(6, 10, 38, .55)); color: var(--text-2); font: 600 9.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); transition: border-color .2s, background .2s, color .2s; }
.ci-e .emo { width: 40px; height: 40px; }
.ci-e:hover, .ci-e:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--ec) 70%, transparent); background: color-mix(in srgb, var(--ec) 14%, rgba(6, 10, 38, .6)); outline: none; }
.ci-e:hover .emo, .ci-e:focus-visible .emo { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--ec) 70%, transparent)); }
.ci-e:hover .e-scan, .ci-e.on .e-scan { animation: emo-scan 1.6s linear infinite; }
.ci-e:hover .emo-angry .e-face { animation: emo-shake .25s linear 2; }
.ci-e.on { color: #fff; border-color: var(--ec); background: color-mix(in srgb, var(--ec) 20%, rgba(6, 10, 38, .6)); box-shadow: inset 0 0 18px color-mix(in srgb, var(--ec) 25%, transparent); }
.ci-e.on .emo { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--ec)); }
.checkin .ci-grid.picked .ci-e:not(.on) { opacity: .45; }
.ci-hint { min-height: 16px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.ci-note { display: grid; gap: 8px; margin-top: 10px; }
.ci-note[hidden] { display: none; }
.ci-note textarea { min-height: 74px; resize: vertical; }
.ci-note .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-today { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ci-today[hidden] { display: none; }
.ci-today .emo { width: 34px; height: 34px; flex: none; }
.ci-today b { display: block; font: 600 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ec, var(--cyan)); }
.ci-today p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.ci-week { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; margin-top: 14px; height: 58px; }
.ci-day { position: relative; display: grid; justify-items: center; align-content: end; gap: 3px; height: 100%; }
.ci-day i { width: 100%; max-width: 12px; height: calc(var(--h, 0) * 3px + 2px); background: color-mix(in srgb, var(--ec, var(--faint)) 55%, transparent); box-shadow: 0 0 6px color-mix(in srgb, var(--ec, transparent) 50%, transparent); transition: height .4s; }
.ci-day .emo { width: 16px; height: 16px; filter: none; }
.ci-day.none::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); opacity: .6; }
.ci-day.today { outline: 1px dashed color-mix(in srgb, var(--cyan) 40%, transparent); outline-offset: 2px; }
.ci-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* дневник отметок в профиле */
.ci-log { display: grid; gap: 10px; margin-top: 14px; }
.ci-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ci-row:first-child { border-top: 0; }
.ci-row .emo { width: 38px; height: 38px; }
.ci-row b { font: 600 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.ci-row p { margin: 3px 0 0; color: var(--text-2); overflow-wrap: anywhere; }
.ci-pack { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.ci-pack figure { margin: 0; display: grid; justify-items: center; gap: 6px; font: 600 9.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ci-pack .emo { width: 56px; height: 56px; }

/* служебные эмодзи в других блоках */
.daily .daily-emo { float: right; margin: -4px 0 6px 10px; }
.daily .daily-emo .emo { width: 40px; height: 40px; }
.m-shuttle .label .emo { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  .emo .e-acc, .emo .e-face, .emo .e-acc .f, .ci-e .e-scan { animation: none !important; }
}
