/* ============ Коробка с наклейками (stickers.js, сервер — /stickers.php); только на русской главной ============ */
:root { --stk-line: var(--line); --stk-bg: #fff; }
html.dark { --stk-bg: #2A2A2E; }
html.stk-clean .stk-layer, html.stk-clean .stk-hb { display: none !important; }

/* низ главной: слева © , справа коробка | глаз */
.stk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; margin-top: 20px; }
.stk-copy { font-size: 14px; color: var(--muted); }
@media (min-width: 1000px) and (min-height: 640px) {
  .home { padding-bottom: 0; }
  .stk-foot { height: clamp(56px, 8vh, 72px); margin-top: 0; }
}
.stk-hb { display: flex; align-items: center; height: 42px; padding: 0 3px; border: 1px solid var(--stk-line); border-radius: 999px; background: var(--stk-bg); }
.stk-hb button { display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--text); font: 500 14px/1 var(--font); cursor: pointer; border-radius: 999px; }
.stk-hb__box { gap: 7px; height: 34px; padding: 0 12px 0 7px; }
.stk-hb__box b { font-weight: 500; color: var(--muted); }
.stk-hb__box svg { flex: none; }
.stk-hb__eye { width: 34px; height: 34px; }
.stk-hb__sep { width: 1px; height: 18px; background: var(--stk-line); }
@media (hover: hover) { .stk-hb button:hover { background: var(--bg-dim); } }
.stk-hb button[aria-expanded="true"] { background: var(--bg-dim); }
@media (hover: hover) { html:not(.dark) .stk-hb__box:hover { background: #F5F5F6; } }
html.stk-off .stk-hb__eye { color: var(--muted); }
.stk-hb__box.is-bounce svg { animation: stk-bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stk-bounce { 0% { transform: none; } 35% { transform: translateY(-6px) rotate(-8deg) scale(1.18); } 100% { transform: none; } }
.stk-label-s { display: none; }
@media (max-width: 599px) { .stk-label-l { display: none; } .stk-label-s { display: inline; } }

/* подсказка у глаза */
.stk-tip { position: fixed; z-index: 970; padding: 6px 10px; border-radius: 8px; background: #212121; color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.stk-tip.is-on { opacity: 1; }

/* слой с наклейками — в координатах документа, под открытым проектом */
.stk-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; }
html.is-locked .stk-layer { display: none; }
@media (min-width: 600px) { html.stk-off .stk-layer { display: none; } }

/* наклейка: белая «вырубка» вокруг картинки; тень — фильтром, чтобы повторяла срезанный уголок */
.stk { position: absolute; --c: 0px; --r: 0deg; rotate: var(--r); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)) drop-shadow(0 4px 7px rgba(0, 0, 0, .1)); transition: rotate .2s var(--ease), scale .2s var(--ease); }
.stk__in { width: 100%; height: 100%; padding: 4px; background: #fff; border-radius: 12px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.stk__in img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; pointer-events: none; -webkit-user-drag: none; }
/* отклеившийся уголок: срезанный угол загибается внутрь, видна изнанка */
.stk__flap { position: absolute; right: 0; top: 0; width: var(--c); height: var(--c); pointer-events: none;
  background: linear-gradient(225deg, transparent 50%, #fdfdfd 50%, #e9e9eb 78%, #d6d6d9 100%); border-bottom-left-radius: 4px;
  filter: drop-shadow(-1px 1.5px 1.5px rgba(0, 0, 0, .2)); }
/* наклейка неровной формы (PNG с прозрачностью): белая обводка по контуру */
.stk.is-cut .stk__in { padding: 0; background: none; border-radius: 0; clip-path: none; }
.stk.is-cut .stk__in img { object-fit: contain; border-radius: 0; }
.stk.is-cut .stk__in { filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 3px 5px rgba(0, 0, 0, .22)); }
.stk.is-cut .stk__flap { display: none; }
.stk.is-cut, .stk.is-cut.is-lift { filter: none; } /* обводка и тень — только у картинки, иначе они ложатся и на ник под наклейкой */
@media (hover: hover) { .stk-layer .stk:hover { rotate: calc(var(--r) + 4deg); scale: 1.05; } }
.stk.is-lift { filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .26)) drop-shadow(0 6px 8px rgba(0, 0, 0, .12)); }
.stk.is-cut.is-lift .stk__in { filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 20px 22px rgba(0, 0, 0, .26)); }
.stk.is-new { animation: stk-stick .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes stk-stick { from { scale: 1.12; } to { scale: 1; } }
.stk-soon { position: absolute; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }

/* перетаскивание и подгонка */
.stk-drag { position: fixed; z-index: 980; pointer-events: none; transition: none; }
.stk-adj { cursor: grab; transition: none; }
.stk-adj::before { content: ""; position: absolute; inset: -9px; border: 1.5px dashed var(--accent); border-radius: 16px; pointer-events: none; }
.stk-h { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); touch-action: none; }
.stk-h--nw { left: -17px; top: -17px; cursor: nwse-resize; } .stk-h--se { right: -17px; bottom: -17px; cursor: nwse-resize; }
.stk-h--ne { right: -17px; top: -17px; cursor: nesw-resize; } .stk-h--sw { left: -17px; bottom: -17px; cursor: nesw-resize; }
.stk-h--rot { left: 50%; top: -48px; margin-left: -8px; background: var(--accent); cursor: grab; }
.stk-h--rot::after { content: ""; position: absolute; left: 50%; top: 14px; height: 18px; border-left: 1.5px dashed var(--accent); }
.stk-bar { position: fixed; z-index: 975; display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--stk-line); border-radius: 999px; background: var(--stk-bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); white-space: nowrap; }
.stk-bar__days { padding: 0 8px 0 12px; font-size: 14px; color: var(--muted); }
.stk-btn { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; font: 500 14px/1 var(--font); cursor: pointer; background: none; color: var(--muted); }
.stk-btn--dark { background: var(--text); color: var(--bg); }
.stk-hint { position: fixed; z-index: 975; left: 50%; translate: -50% 0; height: 44px; padding: 0 16px; display: flex; align-items: center; border-radius: 999px; background: rgba(33, 33, 33, .88); color: #fff; font-size: 14px; white-space: nowrap; pointer-events: none; }

/* коробка: панель над кнопкой на десктопе, шторка на телефоне */
.stk-panel { position: fixed; z-index: 965; width: 380px; padding: 16px; border: 1px solid var(--stk-line); border-radius: 16px; background: var(--stk-bg); box-shadow: 0 16px 48px rgba(0, 0, 0, .12); opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity .18s, translate .25s var(--ease); }
.stk-panel.is-on { opacity: 1; translate: none; pointer-events: auto; }
.stk-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stk-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-dim); }
.stk-tabs button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; }
.stk-tabs button[aria-selected="true"] { background: var(--stk-bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.stk-x { width: 38px; height: 38px; border: 0; background: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; }
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 300px; overflow: auto; }
.stk-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--bg-dim); cursor: grab; touch-action: none; }
.stk-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stk-tile.is-cut { background: none; }
.stk-tile.is-cut img { object-fit: contain; padding: 4px; }
/* своя новая — серая обводка внутри плитки (снаружи её обрезала бы прокрутка сетки) */
.stk-tile.is-mine::after { content: ""; position: absolute; inset: 0; border: 1.5px solid #D2D2D6; border-radius: 10px; pointer-events: none; }
html.dark .stk-tile.is-mine::after { border-color: #5A5A60; }
.stk-tile.is-ghost { opacity: .25; }
.stk-tile__from { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 17px; border-radius: 9px; background: rgba(255, 255, 255, .92); color: #212121; font-size: 9.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.stk-tile.is-mine .stk-tile__from { background: #212121; color: #fff; }
.stk-field { display: flex; align-items: center; gap: 6px; margin-top: 10px; height: 40px; padding: 0 6px 0 12px; border: 1.5px solid #D2D2D6; border-radius: 10px; }
html.dark .stk-field { border-color: #5A5A60; }
.stk-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 400 14px/1 var(--font); }
.stk-field input::placeholder { color: var(--muted); }
.stk-net { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; opacity: .6; }
@media (hover: hover) { .stk-net:hover { opacity: 1; } }
.stk-net[aria-pressed="true"] { opacity: 1; color: var(--accent); }
.stk-bub__name svg { color: var(--muted); flex: none; }
.stk-panel__hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.stk-drop { display: flex; gap: 16px; align-items: center; min-height: 140px; padding: 14px; border: 1.5px dashed #D2D2D6; border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1.4; }
.stk-drop__pv { position: relative; flex: none; width: 110px; }
.stk-drop__pv .stk { position: relative; }
.stk-drop__plus { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; text-align: center; }
.stk-drop__plus i { font-style: normal; font-size: 28px; color: var(--text); line-height: 1; }
.stk-give { width: 100%; margin-top: 12px; height: 44px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: 500 15px/1 var(--font); cursor: pointer; }
.stk-give:disabled { opacity: .35; cursor: default; }
.stk-sheet-dim { position: fixed; inset: 0; z-index: 960; background: rgba(20, 20, 22, .3); opacity: 0; pointer-events: none; transition: opacity .2s; }
.stk-sheet-dim.is-on { opacity: 1; pointer-events: auto; }
@media (max-width: 599px) {
  .stk-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); translate: 0 100%; opacity: 1; transition: translate .3s var(--ease); }
  .stk-panel.is-on { translate: none; }
  .stk-panel::before { content: ""; display: block; width: 52px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #D5D5D8; }
}

/* пузыри: кто приклеил; ответ Анны — как комментарий в шапке */
.stk-bub { position: fixed; z-index: 972; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; width: max-content; max-width: 300px; min-width: 0; padding: 10px 14px 12px 10px; border: 1px solid var(--stk-line); border-radius: 4px 16px 16px 16px; background: var(--stk-bg); font-size: 14px; line-height: 1.35; }
.stk-bub > :not(.stk-av) { grid-column: 2; }
.stk-av { grid-row: span 9; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: #212121; }
.stk-bub__name { font-weight: 600; display: flex; align-items: center; gap: 5px; }
.stk-bub__name a { color: inherit; text-decoration: none; }
.stk-bub__name a:hover { color: var(--accent); }
.stk-bub__time { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }
.stk-bub__cap { margin-top: 3px; }
.stk-reacs { display: flex; gap: 6px; margin-top: 8px; }
.stk-reacs button { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg-dim); color: var(--text); font: 500 13px/1 var(--font); cursor: pointer; }
.stk-reacs button[aria-pressed="true"] { background: #EAF2DF; box-shadow: inset 0 0 0 1px var(--accent); color: #212121; }
.stk-days { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.stk-acts { display: flex; gap: 6px; margin-top: 8px; }
.stk-acts button { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; font: 500 12.5px/1 var(--font); cursor: pointer; }
.stk-acts .is-box { background: #EAF2DF; color: #4E7A27; }
.stk-acts .is-del { background: #FDECEC; color: #D64545; }
html.dark .stk-acts .is-box { background: rgba(127, 163, 86, .16); color: #A3C27C; }
html.dark .stk-acts .is-del { background: rgba(214, 69, 69, .14); color: #E58A8A; }
.stk-bub--anna { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 8px 14px 10px 8px; border-radius: 16px 16px 4px 16px; opacity: 0; translate: 0 6px; transition: opacity .25s, translate .3s var(--ease); pointer-events: none; }
.stk-bub--anna.is-on { opacity: 1; translate: none; }
.stk-bub--anna img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.stk-bub--anna b { display: block; margin-bottom: 2px; }
.stk-bub--anna b span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* крупный просмотр по клику: десктоп — на месте, телефон — по центру */
.stk-zoom { position: fixed; z-index: 971; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25), 0 8px 20px rgba(0, 0, 0, .12); pointer-events: none; transition: left .22s var(--ease), top .22s var(--ease), width .22s var(--ease), height .22s var(--ease), rotate .22s var(--ease); }
.stk-zoom img { width: 100%; height: 100%; display: block; border-radius: 10px; object-fit: cover; }
.stk-zoom.is-cut { padding: 0; background: none; box-shadow: none; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }
.stk-zoom.is-cut img { object-fit: contain; border-radius: 0; }
.stk-lb { position: fixed; inset: 0; z-index: 968; background: rgba(20, 20, 22, .72); }

.stk-fly { position: fixed; z-index: 990; pointer-events: none; transition: none; }
.stk-layer .stk.stk-adj:hover { rotate: var(--r); scale: 1; }
.stk-bub[hidden], .stk-zoom[hidden], .stk-lb[hidden] { display: none; }
.stk.is-air { opacity: .5; scale: .92; }
.stk-drag { transition: opacity .15s, scale .15s; }
html.dark .stk-tabs { background: var(--bg); } /* в тёмной теме дорожка вкладок — цвета основного фона */
/* телефон: поля крупнее и с текстом 16 px — иначе iOS при нажатии увеличивает страницу и всё съезжает */
@media (max-width: 599px) {
  .stk-field { height: 50px; margin-top: 10px; padding: 0 8px 0 14px; border-radius: 12px; }
  .stk-field input { font-size: 16px; }
  .stk-net { width: 38px; height: 38px; }
  .stk-give { height: 50px; font-size: 16px; }
  .stk-panel { transition: translate .3s var(--ease), bottom .2s var(--ease); }
}
/* при загрузке наклейки появляются чуть позже, по одной — сначала видно сам сайт */
.stk-layer.is-wait { visibility: hidden; }
.stk.is-appear { animation: stk-in .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes stk-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .stk.is-appear { animation: none; } }
.stk-bub:not(.stk-bub--anna) { transition: opacity .18s ease; }
/* активное поле — обводка цвета акцента */
.stk-field { transition: border-color .15s; }
.stk-field:focus-within, html.dark .stk-field:focus-within { border-color: var(--accent); }
/* наведение на поле — слегка темнее */
.stk-field { transition: border-color .15s, background-color .15s; }
@media (hover: hover) {
  .stk-field:hover { background: #F5F5F6; }
  .stk-field:hover:not(:focus-within) { border-color: #C6C6CB; }
  html.dark .stk-field:hover { background: #242427; }
  html.dark .stk-field:hover:not(:focus-within) { border-color: #66666D; }
}
/* места для наклеек: пунктирные кружки проступают, пока выбираешь, куда клеить */
.stk-slots { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stk-slots.is-on { opacity: 1; }
.stk-slot { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 2px dashed rgba(127, 163, 86, .75); border-radius: 50%; background: rgba(127, 163, 86, .08); pointer-events: none; transition: scale .2s var(--ease), background-color .2s; }
.stk-slot.is-hot { scale: 1.25; border-style: solid; background: rgba(127, 163, 86, .2); }
.stk-slots.is-tap .stk-slot { pointer-events: auto; cursor: pointer; }
.stk-slots.is-tap .stk-slot::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); font: 500 26px/1 var(--font); }
@media (max-width: 599px) { .stk-slot { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(245, 245, 246, .85); } html.dark .stk-slot { background: rgba(25, 25, 27, .85); } }
/* зоны для наклеек: мягкие пунктирные рамки проступают, пока выбираешь, куда клеить */
.stk-areas { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stk-areas.is-on { opacity: 1; }
.stk-area { position: absolute; border: 1.5px dashed rgba(127, 163, 86, .6); border-radius: 14px; background: rgba(127, 163, 86, .05); transition: background-color .2s, border-color .2s; }
.stk-area.is-hot { border-color: var(--accent); background: rgba(127, 163, 86, .12); }
.stk-areas.is-tap .stk-area { pointer-events: auto; cursor: pointer; background: rgba(127, 163, 86, .1); }
/* общий контур зон: одна фигура (svg-фильтр обводит объединение), вырезы — на важном */
.stk-areas__svg { position: absolute; left: 0; top: 0; pointer-events: none; }
.stk-o-line { flood-color: #7FA356; flood-opacity: .65; }
.stk-o-fill { flood-color: #7FA356; flood-opacity: .07; transition: flood-opacity .2s; }
.stk-areas.is-hot .stk-o-fill { flood-opacity: .12; }
.stk-areas .stk-area { border: 0; background: none; }
.stk-areas.is-tap .stk-area { background: none; }
.stk-areas__svg path { fill: rgba(127, 163, 86, .06); stroke: rgba(127, 163, 86, .7); stroke-width: 1.5; stroke-dasharray: 6 5; transition: fill .2s; }
.stk-areas.is-hot .stk-areas__svg path { fill: rgba(127, 163, 86, .12); }
.stk-toast { position: fixed; z-index: 985; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 12px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(33, 33, 33, .92); color: #fff; font-size: 14px; line-height: 1.35; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, translate .3s var(--ease); }
.stk-toast.is-on { opacity: 1; translate: -50% 0; }
/* наклейка, которую заменит новая: бледнеет и отклеивает уголок */
.stk.is-replace { opacity: .4; --c: 30% !important; transition: opacity .25s; }
.stk.is-replace::after { content: "Заменится"; position: absolute; left: 50%; top: 100%; translate: -50% 6px; padding: 3px 8px; border-radius: 999px; background: #212121; color: #fff; font: 500 11px/1.2 var(--font); white-space: nowrap; rotate: calc(var(--r) * -1); }
/* при наведении на кнопку крышка приоткрывается — откидывается на левом углу; пока коробка открыта, крышка тоже */
.stk-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .28s cubic-bezier(.3, 1.5, .5, 1); }
@media (hover: hover) { .stk-hb__box:hover .stk-lid { transform: translate(-1px, -1.5px) rotate(-16deg); } }
.stk-hb__box[aria-expanded="true"] .stk-lid { transform: translate(-1px, -1.5px) rotate(-16deg); }
/* крышка: приоткрывается чуть-чуть и не выходит за кнопку */
.stk-hb__box svg { overflow: visible; }
.stk-lid { transform-origin: 100% 100%; }
@media (hover: hover) { .stk-hb__box:hover .stk-lid { transform: translateY(-1.5px) rotate(9deg); } }
.stk-hb__box[aria-expanded="true"] .stk-lid { transform: translateY(-1.5px) rotate(9deg); }
/* заголовок коробки, вкладки под ним */
.stk-panel__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.2; }
.stk-panel__head { margin-bottom: 12px; }
.stk-panel > .stk-tabs { display: inline-flex; margin-bottom: 14px; }
/* «Перетащите» — при наведении на картинку в коробке */
.stk-tile::before { content: attr(data-tip); position: absolute; inset: auto 4px 4px; z-index: 1; height: 20px; border-radius: 10px; background: rgba(33, 33, 33, .82); color: #fff; font: 500 11px/20px var(--font); text-align: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.stk-tile[data-tip=""]::before { display: none; }
@media (hover: hover) { .stk-tile:hover::before { opacity: 1; } .stk-tile:hover .stk-tile__from { opacity: 0; } }
.stk-drop__txt { text-wrap: balance; }
.stk-drop__txt b { display: block; margin-bottom: 3px; color: var(--text); font-size: 14px; font-weight: 600; }
/* тёмная тема: при наведении кнопки чуть светлеют, а не уходят в чёрный */
@media (hover: hover) { html.dark .stk-hb button:hover { background: rgba(255, 255, 255, .06); } }
html.dark .stk-hb button[aria-expanded="true"] { background: rgba(255, 255, 255, .06); }
/* кнопка коробки — только контур, без заливки: не путается со строками проектов */
.stk-hb, html.dark .stk-hb { background: none; }
.stk-body { display: flex; flex-direction: column; }
/* режим Анны: убрать наклейку из коробки */
.stk-tile__del { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(33, 33, 33, .82); color: #fff; font: 500 15px/22px var(--font); text-align: center; cursor: pointer; }
.stk-tile__del:hover { background: #D93025; }
/* телефон: поле для наклеек над подвалом; наклейки скрыты — поля нет */
.stk-wall { display: none; }
@media (max-width: 599px) { .stk-wall { display: flex; flex-direction: column; height: max(400px, calc(100svh - 136px)); } .stk-foot { margin-top: 0; } }
/* само поле — еле заметная подложка в духе карточек (вдвое светлее, без рамки): место организованное и связано с заголовком */
.stk-wall::after { content: ""; flex: 1; margin: 10px 0 10px; border-radius: 18px; background: color-mix(in srgb, var(--card-home) 55%, transparent); }
html.stk-clean .stk-wall { display: none; }
/* на телефоне наклейки и так только внизу — скрывать нечего, глаза нет */
@media (max-width: 599px) { .stk-hb .stk-hb__eye, .stk-hb .stk-hb__sep { display: none; } }
/* телефон: пока тащим наклейку, коробка прозрачная */
.stk-panel.is-ghost { opacity: 0 !important; pointer-events: none !important; transition: opacity .15s; }
.stk-areas.is-tap { pointer-events: auto; z-index: 60; }
/* долгое нажатие и перетаскивание: без выделения текста и меню картинки */
.stk-tile, .stk-tile img, .stk-panel__head, .stk-tabs, .stk-hb, .stk-adj, .stk-drag { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.stk-dragging, html.stk-dragging * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }
/* телефон: шторку закрывают жестом вниз — крестик не нужен */
@media (max-width: 599px) { .stk-panel .stk-x { display: none; } .stk-panel__head, .stk-panel::before { touch-action: none; } }
/* телефон: заголовок поля с наклейками и ник под каждой */
.stk-wall__title { margin: 0; padding-top: 44px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.stk__nick { position: absolute; left: 50%; top: 100%; translate: -50% 0; margin-top: 5px; max-width: max(120px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.3; color: var(--muted); pointer-events: none; }
/* в коробке: уже висит на странице — бледная, взять нельзя */
.stk-tile.is-used { cursor: default; }
.stk-tile.is-used img { opacity: .35; }
.stk-tile.is-used .stk-tile__from { background: rgba(33, 33, 33, .75); color: #fff; }
/* ник со ссылкой в подписи к наклейке */
.stk-bub__link { display: inline-flex; align-items: center; gap: 5px; }
.stk-bub__name a.stk-bub__link { color: inherit; }
.stk-bub__link u { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.stk-bub__link span { color: var(--muted); font-weight: 500; }
.stk-bub__name a.stk-bub__link:hover, .stk-bub__name a.stk-bub__link:hover span { color: var(--accent); }
.stk-bub__link:hover u { text-decoration-color: currentColor; }
.stk-av { font-size: 17px; }
/* вставить из буфера */
.stk-paste { margin-top: 8px; padding: 7px 14px; border: 1px solid var(--stk-line); border-radius: 999px; color: var(--text); font-size: 13px; cursor: pointer; }
.stk-paste:hover { background: var(--bg-dim); }
@media (hover: hover) { .stk-tile.is-used:hover .stk-tile__from { opacity: 1; } }
/* тёмная тема: реакции светлее подложки подписи, а не темнее */
html.dark .stk-reacs button { background: rgba(255, 255, 255, .08); }
html.dark .stk-reacs button:hover { background: rgba(255, 255, 255, .12); }
html.dark .stk-reacs button[aria-pressed="true"] { background: rgba(127, 163, 86, .22); color: var(--text); }
/* имя и подпись в момент приклеивания: карточка под наклейкой вместо узкой полоски кнопок */
.stk-bar--sign { flex-direction: column; align-items: stretch; gap: 0; width: 340px; padding: 4px 10px 6px; border-radius: 16px; white-space: normal; }
.stk-bar--sign .stk-field { margin-top: 6px; }
.stk-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.stk-bar--sign .stk-bar__days { padding-left: 4px; }
@media (max-width: 599px) {
  .stk-bar--sign { width: auto; padding: 6px 10px 8px; border-radius: 20px; transition: bottom .2s var(--ease); }
  .stk-bar--sign .stk-field { height: 46px; }
}
/* под своей наклейкой без имени и подписи — тихое приглашение подписать (видно только автору) */
.stk__sign { position: absolute; left: 50%; top: 100%; translate: -50% 0; margin-top: 2px; padding: 3px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 11px/1.3 var(--font); white-space: nowrap; cursor: pointer; opacity: .85; transition: color .15s, background-color .15s, opacity .15s; }
@media (hover: hover) { .stk__sign:hover { color: var(--accent); background: rgba(127, 163, 86, .1); opacity: 1; } }
@media (max-width: 599px) { .stk__sign { padding: 6px 10px; margin-top: -2px; font-size: 12px; } }
/* пузырь своей наклейки: подписать или изменить подпись */
.stk-bub__edit { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: 500 12.5px/1 var(--font); cursor: pointer; }
.stk-bub__edit::before { content: "·"; margin-right: 8px; color: var(--muted); }
@media (hover: hover) { .stk-bub__edit:hover { text-decoration: underline; text-underline-offset: 3px; } }
.stk-bub .stk-sign { display: block; min-width: 0; }
.stk-bub .stk-sign .stk-field { margin-top: 8px; }
.stk-bub__btns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.stk-bub__btns .stk-btn { height: 34px; padding: 0 14px; }
/* подпись в пузыре: без аватарки, поля на всю ширину */
.stk-bub.is-edit { display: block; padding: 12px 14px 12px; }
.stk-bub.is-edit .stk-av { display: none; }
.stk-bub.is-edit .stk-bub__name { margin-bottom: 2px; }
/* лёгкая обводка у картинок в коробке: светлые мемы не сливаются с фоном. Внутрь — снаружи её срезала бы прокрутка сетки */
.stk-tile:not(.is-cut) { outline: 1px solid rgba(0, 0, 0, .09); outline-offset: -1px; }
html.dark .stk-tile:not(.is-cut) { outline-color: rgba(255, 255, 255, .1); }
.stk-tile.is-mine { outline: 0; } /* у своей новой — своя обводка, потемнее */
/* вкладка «Загрузить» компактнее: окно одной высоты на обеих вкладках, и на «Все» под картинками не остаётся пустоты */
.stk-drop { min-height: 96px; padding: 10px 14px; }
.stk-drop__plus i { font-size: 24px; }
.stk-drop__pv { width: 84px; }
/* увеличенная картинка — настоящая: правый клик и долгое нажатие дают системное «Сохранить / Скопировать» */
.stk-zoom:not([hidden]) img { pointer-events: auto; cursor: zoom-out; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
/* плитки коробки: квадрат через padding, а не aspect-ratio — в Safari на iPhone, когда сетка прокручивается,
   ряды с aspect-ratio сжимаются и плитки налезают друг на друга */
.stk-grid { grid-auto-rows: max-content; align-content: start; }
.stk-tile { aspect-ratio: auto; height: 0; padding: 0 0 100%; }
.stk-tile img { position: absolute; inset: 0; }
.stk-tile.is-cut img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); padding: 0; }
/* телефон: свайп по плиткам прокручивает коробку; взять наклейку — задержать палец (stickers.js) */
@media (max-width: 599px) { .stk-tile { touch-action: pan-y; } }
/* телефон: короткий тап по картинке в коробке — крупный просмотр поверх шторки */
.stk-peek { position: fixed; inset: 0; z-index: 976; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 22, .55); opacity: 0; transition: opacity .2s; }
.stk-peek[hidden] { display: none; }
.stk-peek.is-on { opacity: 1; }
.stk-peek__card { width: min(360px, 100%); padding: 12px; border-radius: 20px; background: var(--stk-bg); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); translate: 0 10px; scale: .97; transition: translate .25s var(--ease), scale .25s var(--ease); }
.stk-peek.is-on .stk-peek__card { translate: none; scale: 1; }
.stk-peek__card img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; background: var(--bg-dim); -webkit-touch-callout: default; }
.stk-peek__card img.is-cut { background: none; }
.stk-peek__hint { margin: 12px 4px 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; text-wrap: balance; }
.stk-peek__btns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 10px; }
/* телефон: при удержании картинки коробка не исчезает рывком, а плавно тает и чуть опускается */
.stk-panel.is-ghost { transition: opacity .35s ease, translate .35s var(--ease) !important; translate: 0 14px; }
.stk-sheet-dim { transition: opacity .35s ease; }
/* просмотр картинки: только картинка и крестик */
.stk-peek__card { position: relative; padding: 8px; }
.stk-peek__card img { border-radius: 14px; }
.stk-peek__x { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--stk-bg); color: var(--text); font: 400 24px/1 var(--font); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); cursor: pointer; }
.stk-peek__x { top: -46px; right: 0; }
/* телефон: прокрутка в коробке не уходит на страницу под ней. Сетка прокручивается только внутри (и не передаёт прокрутку дальше,
   дойдя до края), шторка и затемнение не прокручивают страницу вовсе. touch-action шторки на сетку не действует — она сама прокручивается */
@media (max-width: 599px) {
  .stk-panel, .stk-sheet-dim { touch-action: none; overscroll-behavior: contain; }
  .stk-grid { touch-action: pan-y; overscroll-behavior: contain; }
}
@media (max-width: 599px) { .stk-peek { touch-action: none; overscroll-behavior: contain; } }
.stk-panel__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* всегда одна строка — высота окна не прыгает */
.stk-panel__how { margin-left: 4px; font-weight: 400; color: var(--muted); } /* «(перетащите)» рядом с заголовком — тише самого заголовка */
/* телефон: закрытая шторка коробки не видна совсем — не может выглянуть над клавиатурой при вводе в поля сайта */
@media (max-width: 599px) {
  .stk-panel { visibility: hidden; transition: translate .3s var(--ease), bottom .2s var(--ease), visibility 0s linear .3s; }
  .stk-panel.is-on { visibility: visible; transition: translate .3s var(--ease), bottom .2s var(--ease), visibility 0s; }
}
