/* Предложка (/suggest), модерация (/admin), сезон на /top и рамка «Сезон».
   Префиксы: .sg- — предложка, .adm- — модерация, .top-ssn- — доска сезона. Только токены base.css. */

/* ---------- рамка «Сезон»: кольцо лампочек табло (бегут по кругу) и медаль со звездой снизу ---------- */

.frame-season::before {
  background: repeating-conic-gradient(from 0deg, #FFF4CC 0deg 7deg, #FFB53A 7deg 15deg, #E8730A 15deg 22deg, #FFB53A 22deg 30deg);
  filter: drop-shadow(0 0 calc(var(--s) * .06) rgba(255, 170, 50, .85)) drop-shadow(0 0 2px rgba(255, 230, 160, .6));
  animation: ssn-chase 2.4s steps(4) infinite;
}
.frame-season::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(var(--s) * -.17);
  width: max(10px, calc(var(--s) * .34));
  height: max(10px, calc(var(--s) * .34));
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='r' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23F2503A'/%3E%3Cstop offset='1' stop-color='%23A8140C'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.6' fill='url(%23r)' stroke='%23FFD23F' stroke-width='2.2'/%3E%3Cpath d='M12 5.6l1.85 3.95 4.3.5-3.2 2.95.86 4.25L12 15.1l-3.8 2.15.86-4.25-3.2-2.95 4.3-.5z' fill='%23FFE9A8'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45));
  pointer-events: none;
}
@keyframes ssn-chase { to { transform: rotate(30deg); } }

/* ---------- комментарий автора в карточке модерации (/admin): кружок 💬 и пузырь ---------- */

.sg-say { display: flex; align-items: flex-start; gap: 12px; }
.sg-say-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .35), transparent 58%), var(--orange);
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 0 0 2px rgba(0, 0, 0, .25), 0 0 18px rgba(255, 157, 28, .35);
}
.sg-say-txt {
  position: relative;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.45;
}

/* ---------- /suggest ---------- */

.sg-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.sg-hero-txt { display: flex; flex-direction: column; gap: 12px; }
.sg-hero-txt .lead { margin: 0; }
.sg-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.sg-stats { display: flex; gap: 12px; }
.sg-stat { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; }
.sg-stat .price { min-width: 2.2em; }
.sg-stat-l { font: 700 10.5px/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sg-hero-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.sg-form { display: flex; flex-direction: column; gap: 18px; }
.sg-form .sec-head { margin-bottom: -4px; }
.sg-form .seg > button { white-space: normal; text-align: center; line-height: 1.15; padding: 6px 12px; }
.sg-fld { display: flex; flex-direction: column; min-width: 0; }
.sg-fld .label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sg-opt { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--dim); }
.sg-hint { margin: 7px 0 0; font-size: 13px; color: var(--dim); font-weight: 600; }
.sg-count { font: 400 11px/1 var(--font-logo); color: var(--dim); letter-spacing: .04em; text-transform: none; }
.sg-count.over { color: var(--bad); }
.sg-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

/* рубрика: «Свои люди» — главная клетка, остальные — списком */
.sg-rub { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.sg-svoi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--cell-face);
  color: var(--text);
  text-align: left;
  box-shadow: var(--cell-bevel), 0 4px 0 var(--cell-edge), 0 10px 20px rgba(0, 0, 0, .2);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.sg-svoi:hover { background: linear-gradient(180deg, #179A31 0%, var(--cell-hi) 55%, #0F7022 100%); }
.sg-svoi:active { transform: translateY(3px); box-shadow: var(--cell-bevel), 0 1px 0 var(--cell-edge); }
.sg-svoi.on { background: var(--lit-face); color: var(--orange-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--orange-edge), 0 0 26px rgba(255, 157, 28, .4); }
.sg-svoi-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .22);
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.sg-svoi.on .sg-svoi-ico { background: rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.sg-svoi-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-svoi-t b { font: 400 15px/1.05 var(--font-logo); text-transform: uppercase; word-spacing: -.3em; }
.sg-svoi-t small { font-size: 12.5px; font-weight: 600; opacity: .8; line-height: 1.3; }
.sg-svoi .sg-badge { position: absolute; top: -9px; right: 12px; }
.sg-badge {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--red-face);
  color: #fff;
  font: 400 9.5px/1 var(--font-logo);
  letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 var(--red-edge);
}
.sg-select { position: relative; display: flex; }
.sg-select .field { min-height: 74px; padding-right: 44px; border-radius: 18px; cursor: pointer; font-weight: 700; }
.sg-select .field.on { border-color: var(--orange); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .28), 0 0 0 4px rgba(255, 157, 28, .2); }
.sg-select > svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--orange-2); pointer-events: none; }
.sg-select option { background: #0A3A12; color: var(--text); }

.sg-more { border-radius: 16px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); }
.sg-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  color: var(--orange-2);
  font: 800 13px/1.2 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sg-more > summary::-webkit-details-marker { display: none; }
.sg-more > summary svg { transition: transform .2s; }
.sg-more[open] > summary svg { transform: rotate(180deg); }
.sg-more > summary span { flex: 1; }
.sg-more > summary small { color: var(--dim); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.sg-more-in { display: flex; flex-direction: column; gap: 14px; padding: 2px 16px 16px; }
.sg-wrong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sg-wrong .field { border-color: rgba(255, 93, 77, .25); }

.sg-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.sg-send .btn { min-width: 260px; }
.sg-send-note { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sg-send-note b { color: var(--orange-2); }

/* правая колонка: превью и советы едут вместе с прокруткой длинной формы */
.sg-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-self: start; position: sticky; top: calc(var(--head-h) + 16px); }
.sg-prev .q-card { min-height: 200px; }
.sg-prev .q-opts { margin-top: 12px; }
.sg-prev .q-opt { min-height: 54px; font-size: 15px; cursor: default; }
.sg-prev .q-text.is-empty { color: var(--dim); font-weight: 600; text-shadow: none; }
.sg-prev-ans { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(61, 220, 106, .1); box-shadow: inset 0 0 0 1px rgba(61, 220, 106, .3); font-weight: 700; }
.sg-prev-ans svg { flex: none; color: var(--good); }
.sg-prev-ans span { min-width: 0; overflow-wrap: anywhere; }
.sg-prev-ans small { color: var(--muted); font-weight: 600; }

.sg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sg-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--st, var(--orange));
}
.sg-item.is-approved { --st: var(--good); }
.sg-item.is-rejected { --st: var(--bad); }
.sg-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-item-top .chip:last-child { margin-left: auto; }
.sg-item-q { margin: 0; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-item-a { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.sg-item-a b { color: var(--text); }
.sg-item-r { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 93, 77, .1); color: #FFC2B8; font-size: 13.5px; font-weight: 600; }
.sg-item-m { font-size: 12px; color: var(--dim); font-weight: 600; }
.sg-item .q-rub { min-height: 28px; font-size: 12.5px; }
.sg-item .q-rub-ico { width: 22px; height: 22px; font-size: 13px; }
.sg-new { font: 400 9.5px/1 var(--font-logo); color: var(--purple); letter-spacing: .03em; }

.sg-tips { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sg-tips li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.sg-tips li b { color: var(--text); }
.sg-tip-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cell-face); color: var(--orange-2); box-shadow: var(--cell-bevel), 0 2px 0 var(--cell-edge); }

/* гость */
.sg-guest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.sg-guest-txt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sg-guest-txt .lead { margin: 0; }
.sg-perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sg-perks li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.sg-perks .price { flex: none; min-width: 2.2em; }
.sg-perks span { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.sg-perks b { color: var(--text); font-size: 15px; }

/* ---------- /admin ---------- */

.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.adm-head-t { display: flex; flex-direction: column; gap: 6px; }
.adm-tabs .tab { gap: 10px; }
.adm-n {
  min-width: 26px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
  color: var(--orange-2);
  font: 400 11px/1 var(--font-logo);
  text-align: center;
}
.adm-tabs .tab[aria-current="page"] .adm-n { background: rgba(255, 255, 255, .3); color: var(--orange-ink); }

.adm-list { display: flex; flex-direction: column; gap: 16px; }
.adm-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 26px; transition: opacity .25s, transform .25s; }
.adm-item.leaving { opacity: 0; transform: translateX(24px) scale(.98); }
.adm-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.adm-who b { font-size: 16px; }
.adm-who small { display: block; color: var(--dim); font-weight: 600; font-size: 12.5px; }
.adm-meta .chip { margin-left: 0; }
.adm-meta-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adm-form .field { min-height: 44px; padding: 10px 13px; font-size: 15px; }
.adm-form textarea.field { min-height: 84px; }
.adm-form .label { margin-bottom: 6px; }
.adm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.adm-newrub { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; }
.adm-newrub > label:last-child .field { text-align: center; font-size: 22px; padding: 6px; }
.adm-diff { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.adm-diff .price { min-width: 0; padding-left: 0; padding-right: 0; font-size: 14px; cursor: pointer; transition: transform .08s, filter .15s; }
.adm-diff .price:hover { filter: brightness(1.15); }
.adm-diff .price:active { transform: translateY(2px); }
.adm-diff.err .price:not(.on) { box-shadow: var(--cell-bevel), 0 3px 0 var(--cell-edge), 0 0 0 2px rgba(255, 93, 77, .7); }
.adm-wrong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-wrong .field { border-color: rgba(255, 93, 77, .25); }
.adm-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-side .sg-prev { position: sticky; top: calc(var(--head-h) + 16px); }
.adm-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-err { grid-column: 1 / -1; margin-top: -8px; }
.adm-acts .grow { flex: 1; }
.adm-reason { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 93, 77, .1); color: #FFC2B8; font-size: 13.5px; font-weight: 600; }
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 16px; text-align: center; }
.adm-empty .display { max-width: 22ch; }

/* ---------- /top: сезон ---------- */

.top-ssn { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.top-ssn-champs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.top-ssn-champs a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .2); color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.top-ssn-champs a:hover { background: rgba(0, 0, 0, .3); }
.top-ssn-m { flex: none; font-size: 22px; line-height: 1; }
.top-ssn-nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-ssn-v { font: 400 12px/1 var(--font-logo); color: var(--orange); }
.top-ssn-frame { display: flex; align-items: center; gap: 14px; }
.top-ssn-frame .ava { flex: none; }
.top-ssn-frame p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.top-ssn-frame b { color: var(--text); }
.top-delta { font-weight: 700; white-space: nowrap; }
.top-delta.up { color: #8FF2AA; }
.top-delta.down { color: #FFB0A6; }

/* ---------- адаптив ---------- */

/* на /top с «Сезоном» досок девять: сетка 5 + 4 вместо 4 + 4 + 1 */
@media (max-width: 1200px) {
  .top-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .adm-item { grid-template-columns: minmax(0, 1fr); }
  .adm-side .sg-prev { position: static; }
}

@media (max-width: 899px) {
  /* /me: кнопки предложки и модерации в шапке профиля — только иконкой */
  .prof-acts .prof-act-x { width: 36px; padding: 0; }
  .prof-acts .prof-act-x span { display: none; }
  .sg-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sg-hero-side { align-items: stretch; }
  .sg-stats { justify-content: space-between; }
  .sg-stat { min-width: 0; flex: 1; }
  .sg-hero-links { justify-content: flex-start; }
  .sg-rub { grid-template-columns: minmax(0, 1fr); }
  .sg-select .field { min-height: 56px; }
  .sg-two { grid-template-columns: minmax(0, 1fr); }
  .sg-wrong, .adm-wrong { grid-template-columns: minmax(0, 1fr); }
  .sg-send .btn { width: 100%; min-width: 0; }
  .sg-col { position: static; }
  .sg-form .seg > button { padding: 6px 8px; font-size: 12px; letter-spacing: .03em; }
  .sg-form .seg > button svg { display: none; }
  .sg-more > summary small { display: none; }
  .sg-guest { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .adm-two { grid-template-columns: minmax(0, 1fr); }
  .adm-meta-r { margin-left: 0; }
  .adm-acts .btn { flex: 1 1 auto; }
  .adm-head { align-items: stretch; }
  .adm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .adm-tabs .tab { min-width: 0; padding: 0 4px; gap: 5px; font-size: 10.5px; letter-spacing: .01em; }
  .adm-tabs .adm-n { min-width: 20px; padding: 3px 5px; font-size: 10px; }
  .adm-tabs .tab svg { display: none; }
  .adm-form textarea.field { min-height: 120px; }
}
