/* Капсула времени: бумага для письма, конструктор конверта, печать и наклейки. Цвета только из палитры. */
html .letter-label { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font: italic 500 19px var(--font-serif); color: var(--ink); }
html .letter-label::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--metal); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
html .future-textarea { display: block; width: 100%; min-height: 220px; padding: 15px 16px 15px 52px; border: 0; border-radius: 3px; resize: vertical; color: var(--ink); font: 500 19px/30px var(--font-serif);
  background: linear-gradient(90deg, transparent 40px, rgba(var(--cran-rgb), .5) 40px 41.5px, transparent 41.5px), repeating-linear-gradient(180deg, transparent 0 29px, rgba(var(--ink-rgb), .13) 29px 30px), linear-gradient(180deg, var(--paper-hi), var(--paper));
  box-shadow: 0 14px 24px -16px rgba(var(--ink-rgb), .55), inset 0 0 0 1px rgba(var(--foil-rgb), .55); }
html .future-textarea:focus-visible { outline: 2px solid var(--foil-shadow); outline-offset: 2px; }

.cenv { margin: 24px 0 8px; padding: 18px 14px 16px; border-radius: 18px; background: linear-gradient(180deg, var(--paper-lo), var(--paper)); box-shadow: inset 0 0 0 1px rgba(var(--foil-rgb), .6), 0 16px 28px -22px rgba(var(--ink-rgb), .6); }
.cenv-h { margin: 0 0 4px; font: 500 24px var(--font-serif); color: var(--ink); }
.cenv-sub { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: rgba(var(--ink-rgb), .72); text-wrap: pretty; }
.cenv-stage { padding: 6px 2px 14px; }
.ea { position: relative; width: 100%; aspect-ratio: 300 / 206; container-type: inline-size; filter: drop-shadow(0 14px 14px rgba(0,0,0,.32)); touch-action: none; }
.ea-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ea-stk { position: absolute; inset: 0; }
.sk { position: absolute; width: calc(var(--w) * 1cqw); transform: translate(-50%, -50%) rotate(var(--r)); background-repeat: no-repeat; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); touch-action: none; cursor: grab; }
.sk svg { display: block; width: 100%; height: 100%; }
.sk.sel { outline: 1.5px dashed var(--foil-shadow); outline-offset: 4px; z-index: 3; }
.ea-seal { position: absolute; left: 50%; top: 57%; z-index: 2; width: 17cqw; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; font: 500 8cqw var(--font-serif); font-style: normal; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; }
.ea-seal.s0 { background: var(--metal); color: rgba(var(--ink-rgb), .85); text-shadow: 0 1px 0 rgba(255,255,255,.55); box-shadow: 0 6px 10px -3px rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.65), inset 0 -4px 7px rgba(0,0,0,.3); }
.ea-seal.s1 { background: radial-gradient(circle at 32% 28%, var(--cranberry-hi), var(--cranberry) 55%, var(--cranberry-deep)); color: var(--foil-light); text-shadow: 0 1px 1px rgba(0,0,0,.5); box-shadow: 0 6px 10px -3px rgba(0,0,0,.6), inset 0 2px 3px rgba(255,255,255,.35), inset 0 -4px 7px rgba(0,0,0,.4); }
.ea-seal.s2 { width: 19cqw; background: var(--metal); border-radius: 0; clip-path: polygon(50% 0, 61% 36%, 98% 38%, 68% 59%, 79% 95%, 50% 74%, 21% 95%, 32% 59%, 2% 38%, 39% 36%); }
.ea-seal.s3 { display: none; }
.ea-seal.stamp { animation: eaStamp .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes eaStamp { 0% { transform: translate(-50%, -150%) scale(2.2); opacity: 0; } 60% { transform: translate(-50%, -48%) scale(.88); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
.ea-sp { position: absolute; left: 50%; top: 57%; z-index: 4; width: 7px; height: 7px; margin: -3px 0 0 -3px; background: var(--foil-light); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); pointer-events: none; animation: bSp .95s ease-out forwards; }
.cenv-sel { display: flex; gap: 6px; margin: -2px 0 12px; }
.cenv-sel[hidden] { display: none; }
.cenv-sel button { flex: 1; min-height: 40px; border: 1px solid rgba(var(--ink-rgb), .3); border-radius: 10px; background: var(--paper-hi); color: var(--ink); font: 500 14px var(--font-sans); }
.cenv-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.cenv-row > span { flex: none; width: 76px; font: italic 500 16px var(--font-serif); color: var(--ink); }
.cenv-sw, .cenv-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.cenv-sw button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper-hi); background: var(--sw); box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .35); }
.cenv-sw button.on { box-shadow: 0 0 0 2px var(--foil-shadow), 0 0 12px rgba(var(--foil-rgb), .8); transform: scale(1.12); }
.cenv-ch button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(var(--ink-rgb), .3); border-radius: 999px; background: var(--paper-hi); color: var(--ink); font: 500 14px var(--font-sans); }
.cenv-ch button.on { background: var(--metal); border-color: var(--foil-shadow); }
.cenv-tray { display: flex; gap: 8px; margin: 6px -4px 0; padding: 10px 4px 8px; overflow-x: auto; scroll-snap-type: x proximity; border-radius: 12px; background: rgba(var(--ink-rgb), .06); }
.ea-th { flex: none; height: 52px; border: 0; padding: 0; background-color: transparent; background-repeat: no-repeat; scroll-snap-align: start; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); transition: transform .2s; }
.ea-th:active { transform: scale(.9); } .ea-thv { width: 52px; height: 52px; } .ea-thv svg { width: 100%; height: 100%; }
.cap-env-out { margin: 4px 0 14px; padding: 10px 6px 6px; } .cap-env-out .ea { max-width: 330px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .ea-seal.stamp, .ea-sp { animation: none; } }
