/* Личный кабинет — поверх стилей админ-панели */
.cabinet-main { max-width: 820px; }
.cabinet-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 700; }
.cabinet-nav a, .cabinet-nav .link-button { padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .92); text-decoration: none; white-space: nowrap; }
.cabinet-nav a:hover, .cabinet-nav .link-button:hover { color: var(--white); background: rgba(255, 255, 255, .14); }
.cabinet-nav :focus-visible { outline-color: var(--white); }
.eyebrow-label { margin: 0 0 6px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.profile-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 0; }
.profile-list dt { color: var(--muted); font-size: 14px; }
.profile-list dd { margin: 0; font-weight: 600; }

.child-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.child-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; }
.child-list li > span:first-child { font-weight: 700; }
.child-list .check, .child-list .link-button { margin-left: auto; }
.child-request { margin: 18px 0 0; padding: 16px 0 0; border: 0; border-top: 1px dashed var(--line); }
.child-request legend { padding: 0; font-weight: 700; }
.child-request .check { margin-bottom: 10px; }

@media (max-width: 680px) {
  .cabinet-nav { gap: 0; font-size: 13px; }
  .cabinet-nav a, .cabinet-nav .link-button { padding: 8px; }
  .profile-list { grid-template-columns: 1fr; gap: 2px; }
  .profile-list dd { margin-bottom: 10px; }
}
/* Узкий телефон: меню кабинета — второй строкой под логотипом, чтобы все пункты помещались */
@media (max-width: 520px) {
  .cabinet .admin-header-inner { flex-wrap: wrap; gap: 4px 10px; padding-top: 6px; padding-bottom: 6px; }
  .cabinet-nav { flex-wrap: wrap; justify-content: space-between; width: 100%; margin-left: 0; }
}

/* Ответ «мой / не мой» и вписанные дети */
.child-question { flex-direction: column; align-items: flex-start; border-color: var(--orange) !important; background: var(--amber-bg) !important; }
.child-answer { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; border: 0; }
.child-answer legend { width: 100%; margin-bottom: 6px; padding: 0; color: var(--ink); font-weight: 600; }
.child-row + .child-row { padding-top: 12px; border-top: 1px dashed var(--line); }
.child-request .btn { margin-top: 4px; }
.child-list .child-answer .check { margin-left: 0; }

/* Данные о детях отправлены преподавателю */
.request-sent { display: grid; gap: 6px; margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--navy); border-radius: 8px; background: #e3eef8; }
.request-sent ul { margin: 0; padding-left: 20px; font-weight: 600; }

/* Строка вписанного ребёнка: три поля и «убрать» */
.child-row.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.child-row-remove { padding-bottom: 12px; white-space: nowrap; }
.request-sent .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 680px) {
  .child-row.form-grid-3 { grid-template-columns: 1fr; }
  .child-row-remove { justify-self: start; padding-bottom: 0; }
}

/* Дата рождения в вопросе и страница подтверждения */
.child-birth-field { width: 100%; max-width: 260px; }
.child-birth-field[hidden] { display: none; }
.confirm-children .child-list { margin-bottom: 18px; }

/* Ссылка на карточку ребёнка */
.child-list .child-link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(10, 87, 143, .45); }
.child-list .child-link:hover { color: var(--orange-dark); border-bottom-color: currentColor; }
.profile-list + p { margin: 18px 0 0; }

/* Группы и расписание */
.child-schedule { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.group-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.group-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; }
.group-card > strong { font: 700 17px var(--display); }
.schedule-days { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.schedule-days li { display: flex; gap: 12px; }
.schedule-days span { min-width: 120px; color: var(--muted); }

.schedule-link { margin-left: 8px; font: 600 13px var(--body); }

/* Журнал группы */
.cabinet-main.is-wide { max-width: 1240px; }
.month-chips { margin: 0 0 16px; }
.journal-panel h2 .small { font-family: var(--body); font-weight: 600; }
.journal-wrap { margin: 0 -24px; padding: 0 24px; }
.journal-table { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.journal-table th, .journal-table td { padding: 6px 5px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.journal-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: bottom; }
.journal-table .pupil { position: sticky; left: 0; z-index: 1; min-width: 170px; padding-right: 14px; background: var(--white); text-align: left; font-size: 14px; }
.journal-table .pupil a { color: var(--ink); font-weight: 700; text-decoration: none; }
.journal-table .pupil a:hover { color: var(--navy); text-decoration: underline; }
.journal-table .num { padding: 6px 10px; }
.journal-table tfoot th, .journal-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; color: var(--muted); font-weight: 700; }
.journal-table .is-today { color: var(--orange-dark); }
.date-col { min-width: 46px; }
.fill-col { display: block; margin: 4px auto 0; padding: 1px 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--white); font: 600 10px var(--body); cursor: pointer; }
.fill-col:hover { border-color: var(--green); color: var(--green); }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(38, 59, 77, .2); border-radius: 8px; color: var(--ink); background: var(--white); font: 800 15px var(--body); cursor: pointer; }
.mark:hover { border-color: var(--navy); }
/* Цвета — как в таблице учёта: П зелёный, О красный, С жёлтый, Х серый */
.mark-p { border-color: #1fae4b; color: #0b3d1a; background: #3ddc6a; }
.mark-a { border-color: #c62a1f; color: var(--white); background: #f0362b; }
.mark-s { border-color: #d9b800; color: #3d3200; background: #ffe11a; }
.mark-x { border-color: #7d7d7d; color: var(--white); background: #9a9a9a; }

/* Список выбора отметки */
.mark-menu { position: absolute; z-index: 50; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 30px rgba(38, 59, 77, .22); }
.mark-menu[hidden] { display: none; }
.mark-menu button { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 7px; color: var(--ink); background: none; font: 600 14px var(--body); text-align: left; cursor: pointer; }
.mark-menu button:hover, .mark-menu button:focus-visible { background: #eef3f8; outline: none; }
.mark-menu button.is-current { background: #e3eef8; font-weight: 800; }
.mark-menu .mark { width: 30px; height: 30px; font-size: 14px; cursor: inherit; }
.mark.is-changed { box-shadow: 0 0 0 2px var(--orange); }
.journal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; }
.journal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.journal-legend .mark { width: 26px; height: 26px; font-size: 13px; cursor: default; }
.journal-actions { align-items: center; margin: 16px -24px -22px; padding: 12px 24px; border-radius: 0 0 var(--radius) var(--radius); }
form.is-dirty .journal-actions { background: var(--amber-bg); }
form.is-dirty [data-journal-status] { color: #8a4b00; font-weight: 700; }
.btn-small { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.journal-link { margin-left: 8px; font: 600 13px var(--body); }

/* Посещения и оплата ученика */
.pupil-account h3 { margin: 0 0 10px; font: 700 15px var(--display); }
.pupil-account + .pupil-account { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.mark-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.mark-days li { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mark-days .mark { cursor: default; }
.account-table .num { text-align: right; white-space: nowrap; }
.account-table th.num { text-align: right; }
.account-table tr.is-current th, .account-table tr.is-current td { background: #f2f7fc; }
.account-table th[scope="row"] { color: var(--ink); background: none; font-size: 14px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.pay-form, .cards-form { margin-bottom: 18px; }
.pay-table .num { text-align: right; }
.cards-balance { color: var(--orange-dark); }
.card-moves .item-body strong { font-size: 18px; }
.card-moves .item-body { gap: 2px; }
@media (max-width: 680px) {
  .journal-wrap { margin: 0 -16px; padding: 0 16px; }
  .journal-table .pupil { min-width: 120px; max-width: 140px; white-space: normal; }
  .journal-actions { margin: 16px -16px -18px; padding: 12px 16px; }
}
@media print {
  .fill-col, .month-chips, .journal-actions, .journal-legend .muted { display: none !important; }
}


/* ===== Коллекционные карточки ===== */
.tcard { --glow: #3ddc84; --deep: #0d3b26; --edge: #2bc46a; position: relative; display: grid; grid-template-rows: auto 1fr auto; width: 100%; aspect-ratio: 5 / 7; padding: 8px; overflow: hidden; border: 3px solid var(--edge); border-radius: 14px; color: #fff; background: radial-gradient(circle at 50% 40%, var(--glow) -20%, var(--deep) 72%); box-shadow: 0 6px 16px rgba(10, 25, 40, .2), inset 0 0 0 2px rgba(255, 255, 255, .14); }
.tcard-blue { --glow: #4aa3ff; --deep: #0d2350; --edge: #3b82f6; }
.tcard-orange { --glow: #ffb020; --deep: #4a1d05; --edge: #ff8c1a; }
.tcard-rarity { justify-self: start; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tcard-num { position: absolute; top: 9px; right: 10px; font-size: 10px; font-weight: 800; opacity: .75; }
.tcard-art { position: relative; display: grid; place-items: center; min-height: 0; }
.tcard-art img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.tcard-name { padding: 4px 2px 0; font: 800 13px/1.15 var(--display); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tcard-count { position: absolute; right: 6px; bottom: 30px; padding: 2px 8px; border: 2px solid #fff; border-radius: 999px; color: var(--ink); background: #ffd23f; font: 800 13px var(--body); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tcard-orange::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); animation: tcard-shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes tcard-shine { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.tcard.is-locked { border-color: #8592a0; background: radial-gradient(circle at 50% 40%, #56636f -20%, #1f2a35 72%); }
.tcard.is-locked::after { display: none; }
.tcard.is-locked .tcard-art img { filter: brightness(0) opacity(.4); }
.tcard.is-locked .tcard-art b { position: absolute; color: rgba(255, 255, 255, .85); font: 800 40px var(--display); }
.tcard.is-locked .tcard-rarity, .tcard.is-locked .tcard-name { opacity: .6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.collection-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.collection-head h2 { margin-bottom: 8px; }
.collection-head h2 .small { font-family: var(--body); font-weight: 600; }
.collection-progress { font-weight: 700; }
.collection-progress b { font: 800 20px var(--display); }
.progress-bar { height: 8px; margin: 0 0 16px; overflow: hidden; border-radius: 999px; background: var(--paper); }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: #2bc46a; transition: width .4s ease; }
.collection-blue .progress-bar span { background: #3b82f6; }
.collection-orange .progress-bar span { background: #ff8c1a; }
.collection-green { border-top: 4px solid #2bc46a; }
.collection-blue { border-top: 4px solid #3b82f6; }
.collection-orange { border-top: 4px solid #ff8c1a; }

/* Жетоны и кнопки дропа */
.drop-panel { display: grid; gap: 16px; color: #fff; background: linear-gradient(135deg, #10233a, #173a63); }
.drop-tokens { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.drop-tokens b { font: 800 40px var(--display); }
.token-icon { width: 38px; height: 38px; border: 3px solid #b8860b; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a8, #ffc928 45%, #e0a106); box-shadow: 0 0 14px rgba(255, 201, 40, .55); }
.drop-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop-buttons form { margin: 0; }
.drop-btn { display: grid; gap: 2px; width: 100%; padding: 14px 12px; border: 0; border-radius: 12px; color: #fff; font: 600 13px var(--body); text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.drop-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.drop-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.drop-btn:disabled { cursor: default; opacity: .4; filter: grayscale(.6); }
.drop-btn-green { background: linear-gradient(135deg, #2bc46a, #128a45); }
.drop-btn-blue { background: linear-gradient(135deg, #4aa3ff, #2557c7); }
.drop-btn-orange { background: linear-gradient(135deg, #ffb020, #e05a0c); }
.drop-btn-title { font: 800 17px var(--display); }
.drop-btn-cost { margin-top: 6px; font-weight: 800; }
.drop-btn-cost::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a8, #ffc928 45%, #e0a106); }
.drop-panel .muted { color: rgba(255, 255, 255, .75); }

/* Обмен */
.exchange { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.exchange h3 { margin: 0 0 6px; font: 700 15px var(--display); }
.exchange-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.exchange-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; }
.exchange-item.is-picked { border-color: var(--orange); background: var(--amber-bg); }
.exchange-item img { width: 44px; height: 44px; padding: 3px; border-radius: 8px; background: #16263a; }
.exchange-name { flex: 1; font-size: 14px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .btn-icon { width: 32px; min-height: 32px; }
.stepper input { width: 46px; min-height: 32px; padding: 4px; border: 1px solid rgba(38, 59, 77, .28); border-radius: 6px; font: 700 15px var(--body); text-align: center; }

/* Дроп-карусель */
body.no-scroll { overflow: hidden; }
.drop-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(circle at 50% 45%, rgba(30, 60, 100, .92), rgba(5, 12, 22, .97)); }
.drop-overlay[hidden] { display: none; }
.drop-stage { display: grid; justify-items: center; gap: 22px; width: min(1000px, 100%); }
.drop-title { margin: 0; color: #fff; font: 800 clamp(1.1rem, 3vw, 1.6rem) var(--display); text-align: center; }
.drop-reel { position: relative; width: 100%; padding: 18px 0; overflow: hidden; border-block: 2px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .25); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.drop-reel[hidden] { display: none; }
.drop-strip { display: flex; gap: 12px; width: max-content; will-change: transform; }
.drop-strip .tcard { flex: 0 0 150px; width: 150px; transition: transform .4s ease, box-shadow .4s ease; }
.drop-strip .tcard.is-win { transform: scale(1.1); box-shadow: 0 0 0 4px #fff, 0 0 40px 10px var(--glow); }
.drop-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: #ffd23f; box-shadow: 0 0 12px #ffd23f; }
.drop-marker::before, .drop-marker::after { content: ""; position: absolute; left: 50%; margin-left: -11px; border: 11px solid transparent; }
.drop-marker::before { top: 0; border-top-color: #ffd23f; }
.drop-marker::after { bottom: 0; border-bottom-color: #ffd23f; }
.drop-reveal { display: grid; justify-items: center; gap: 16px; }
.drop-reveal[hidden] { display: none; }
.drop-reveal-card { width: 230px; animation: card-reveal .8s cubic-bezier(.2, 1.4, .4, 1) both; }
.drop-reveal-card .tcard { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 60px 18px var(--glow); }
.drop-reveal-card .tcard-name { font-size: 18px; }
.drop-reveal-card .tcard-rarity { font-size: 11px; }
.drop-reveal-text { margin: 0; color: rgba(255, 255, 255, .9); font-weight: 700; text-align: center; }
@keyframes card-reveal { 0% { transform: perspective(800px) rotateY(90deg) scale(.6); opacity: 0; } 100% { transform: perspective(800px) rotateY(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tcard-orange::after, .drop-reveal-card { animation: none; }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
  .tcard-name { font-size: 11px; }
  .card-grid .tcard-num { display: none; }
  .card-grid .tcard-rarity { font-size: 8px; }
  .drop-strip .tcard { flex-basis: 120px; width: 120px; }
  .drop-reveal-card { width: 200px; }
}


.badge-test { color: #6b3fa0; background: #efe3ff; }

/* Подтверждение дропа и обмена */
.confirm-modal { width: min(440px, calc(100vw - 24px)); }
.confirm-modal .modal-body { display: grid; gap: 14px; padding-top: 16px; }
.confirm-modal [data-confirm-body] { display: grid; gap: 12px; }
.confirm-modal [data-confirm-body] p { margin: 0; }
.confirm-tier { display: inline-block; justify-self: start; padding: 6px 14px; border-radius: 999px; color: #fff; font: 800 15px var(--display); }
.confirm-tier-green { background: linear-gradient(135deg, #2bc46a, #128a45); }
.confirm-tier-blue { background: linear-gradient(135deg, #4aa3ff, #2557c7); }
.confirm-tier-orange { background: linear-gradient(135deg, #ffb020, #e05a0c); }
.confirm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.confirm-facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; }
.confirm-facts dt { color: var(--muted); font-size: 12px; }
.confirm-facts dd { margin: 2px 0 0; font: 800 17px var(--display); }
.confirm-facts .confirm-cost { color: var(--orange-dark); }
.confirm-label { margin: 0; font-weight: 700; }
.confirm-give { margin: 0; padding-left: 20px; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.confirm-modal .modal-body > p { margin: 0; }
@media (max-width: 480px) {
  .confirm-facts { grid-template-columns: 1fr; }
  .confirm-actions .btn { flex: 1; }
}

/* Окно обмена */
.exchange-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.exchange-bar h3 { margin: 0 0 4px; font: 700 15px var(--display); }
.exchange-bar p { margin: 0; }
.exchange-modal { width: min(640px, calc(100vw - 24px)); max-height: min(90vh, 820px); }
.exchange-modal .exchange { display: flex; flex-direction: column; max-height: min(90vh, 820px); margin: 0; padding: 0; border: 0; }
.exchange-modal .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.exchange-modal .modal-body > p { margin: 8px 0 0; }
.exchange-modal .exchange-list { grid-template-columns: 1fr; }
.exchange-foot { display: grid; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #f9fafb; }
.exchange-summary { display: grid; gap: 6px; font-size: 14px; }
.exchange-summary .confirm-tier { display: inline-block; padding: 3px 10px; font-size: 13px; }
@media (max-width: 480px) {
  .exchange-bar .btn { width: 100%; }
}

/* Переворот карточки: лицо и оборот с описанием */
.tflip { container-type: inline-size; aspect-ratio: 5 / 7; perspective: 900px; cursor: pointer; border-radius: 14px; }
.tflip:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.tflip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.tflip.is-flipped .tflip-inner { transform: rotateY(180deg); }
.tflip:hover:not(.is-flipped) .tflip-inner { transform: rotateY(-8deg); }
.tflip-front, .tback { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tflip .tcard { aspect-ratio: auto; height: 100%; }
.tback { --deep: #0d3b26; --edge: #2bc46a; display: flex; flex-direction: column; gap: 4cqi; padding: 7cqi 7cqi; overflow: hidden; border: 3px solid var(--edge); border-radius: 14px; color: #fff; background: linear-gradient(160deg, var(--deep), #0a1622); box-shadow: 0 6px 16px rgba(10, 25, 40, .2); transform: rotateY(180deg); }
.tback-blue { --deep: #0d2350; --edge: #3b82f6; }
.tback-orange { --deep: #4a1d05; --edge: #ff8c1a; }
.tback.is-locked { --deep: #2a3540; --edge: #8592a0; }
.tback::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 6px, transparent 6px 12px); pointer-events: none; }
.tback-name { position: relative; padding-bottom: 4cqi; border-bottom: 1px solid rgba(255, 255, 255, .25); font: 800 clamp(11px, 10.5cqi, 20px)/1.15 var(--display); }
.tback-text { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; font-size: clamp(8.5px, 7.8cqi, 15px); font-weight: 600; line-height: 1.3; }
.tback-foot { position: relative; color: rgba(255, 255, 255, .7); font-size: clamp(8px, 6.4cqi, 12px); font-weight: 700; }
.drop-flip-hint { margin: -6px 0 0; color: rgba(255, 255, 255, .7); font-size: 13px; }
.drop-reveal-card .tflip { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .tflip-inner { transition-duration: .01s; }
  .tflip:hover:not(.is-flipped) .tflip-inner { transform: none; }
}
.card-grid .tback-foot { display: none; }
.cards-form-title { margin: 18px 0 10px; font: 700 15px var(--display); }

/* Оплата на главной у родителя */
.pay-status { margin: 0 0 18px; padding: 18px 22px; border: 2px solid; border-radius: var(--radius); background: var(--white); }
.pay-status.has-debt { border-color: var(--red); background: linear-gradient(0deg, #fff, var(--red-bg)); }
.pay-status.is-paid { border-color: #2bc46a; background: linear-gradient(0deg, #fff, var(--green-bg)); }
.pay-status-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.pay-status-head h2 { margin: 0; }
.pay-status-total { font: 800 clamp(1.3rem, 4vw, 1.7rem) var(--display); white-space: nowrap; }
.has-debt .pay-status-total { color: var(--red); }
.is-paid .pay-status-total { color: var(--green); }
.pay-status-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-status-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 14px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.pay-status-who { color: var(--ink); font-weight: 700; text-decoration: none; }
.pay-status-who:hover { color: var(--navy); text-decoration: underline; }
.pay-status-value { font-weight: 800; white-space: nowrap; }
.pay-status-value.is-debt { color: var(--red); }
.pay-status-value.is-ok { color: var(--green); }
.pay-status-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
@media (max-width: 480px) {
  .pay-status { padding: 16px; }
  .pay-status-list li { grid-template-columns: 1fr; }
}

/* Исправление оплаты в окне */
.pay-edit-modal { width: min(560px, calc(100vw - 24px)); }
.pay-edit-modal .modal-body { padding-top: 16px; }
.pay-edit-actions { padding: 0 20px 20px; }
.pay-table td .inline-form { vertical-align: middle; }
@media (max-width: 680px) { .pay-edit-modal .form-grid { grid-template-columns: 1fr; } }

/* Никнейм */
.nick-input { display: flex; align-items: center; border: 1px solid rgba(38, 59, 77, .28); border-radius: 8px; background: var(--white); }
.nick-input > span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 800; }
.nick-input input { border: 0 !important; outline: 0 !important; padding-left: 2px !important; }
.nick-input:focus-within { border-color: var(--navy); outline: 2px solid rgba(10, 87, 143, .18); }
.nick-current { color: var(--navy); }
.nickname-form { display: grid; gap: 14px; max-width: 460px; }
.nickname-actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-nickname-hint].is-bad { color: var(--red); font-weight: 700; }
[data-nickname-hint].is-good { color: var(--green); font-weight: 700; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--orange); font-size: 12px; font-weight: 800; }

/* Обмен с друзьями */
.trades-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.trades-head h2 { margin-bottom: 4px; }
.trades-head p { margin: 0; }
.trade-card { display: grid; gap: 6px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; }
.trade-card.is-incoming { border: 2px solid var(--orange); background: var(--amber-bg); }
.trade-card p { margin: 0; }
.trade-title { font-size: 15px; }
.trade-message { font-style: italic; }
.trade-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trade-label { min-width: 90px; color: var(--muted); font-size: 13px; font-weight: 700; }
.trade-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; }
.trade-chip img { width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.trade-chip-green { background: #1f9d55; }
.trade-chip-blue { background: #2f6fe0; }
.trade-chip-orange { background: #e8700f; }
.trade-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.trade-history summary { cursor: pointer; font-weight: 700; }
.trade-history ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.trade-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trade-modal { width: min(680px, calc(100vw - 24px)); max-height: min(92vh, 860px); }
.trade-modal form { display: flex; flex-direction: column; max-height: min(92vh, 860px); margin: 0; }
.trade-modal .modal-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 10px; padding-top: 14px; }
.trade-modal .modal-body h3 { margin: 10px 0 0; }
.trade-modal .exchange-list { grid-template-columns: 1fr; margin: 4px 0; }
.trade-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-suggest-item { padding: 6px 12px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); background: #e3eef8; font: 700 14px var(--body); cursor: pointer; }
.trade-suggest-item:hover, .trade-suggest-item:focus-visible { color: #fff; background: var(--navy); }

/* Цвет редкости в списках карточек (окна обмена) */
.exchange-item.tier-green { border-left: 5px solid #2bc46a; }
.exchange-item.tier-blue { border-left: 5px solid #3b82f6; }
.exchange-item.tier-orange { border-left: 5px solid #ff8c1a; }
.exchange-item.tier-green img { background: radial-gradient(circle, #3ddc84 -30%, #0d3b26 75%); }
.exchange-item.tier-blue img { background: radial-gradient(circle, #4aa3ff -30%, #0d2350 75%); }
.exchange-item.tier-orange img { background: radial-gradient(circle, #ffb020 -30%, #4a1d05 75%); }
.exchange-item.is-picked { border-top-color: var(--orange); border-right-color: var(--orange); border-bottom-color: var(--orange); }
.tier-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.tier-tag-green { background: #1f9d55; }
.tier-tag-blue { background: #2f6fe0; }
.tier-tag-orange { background: #e8700f; }
.pick-group { grid-column: 1 / -1; margin: 6px 0 0; padding: 4px 10px; border-radius: 8px; color: #fff; font: 700 13px var(--display); }
.pick-group-green { background: linear-gradient(90deg, #1f9d55, #2bc46a); }
.pick-group-blue { background: linear-gradient(90deg, #2557c7, #4aa3ff); }
.pick-group-orange { background: linear-gradient(90deg, #e05a0c, #ffb020); }

.exchange-summary .trade-line { margin: 0; }
.trade-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* Окно обмена: «отдаю» и «получаю» — две разные по цвету зоны */
.trade-side { margin: 6px 0 4px; padding: 12px 12px 8px; border: 2px solid; border-radius: 12px; }
.trade-side h3 { display: flex; align-items: center; gap: 8px; margin: 0 !important; font: 700 16px var(--display); }
.trade-side-note { margin: 4px 0 6px; color: var(--muted); font-size: 13px; }
.trade-side-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 800 16px var(--body); }
.trade-side-give { border-color: #f4a35a; background: #fff3e6; }
.trade-side-give .trade-side-icon { background: var(--orange); }
.trade-side-give h3 b { color: var(--orange-dark); }
.trade-side-take { border-color: #7fb6ea; background: #eaf3fc; }
.trade-side-take .trade-side-icon { background: var(--navy); }
.trade-side-take h3 b { color: var(--navy); }
.trade-side .exchange-item { background: #fff; }
.trade-side-give .exchange-item.is-picked { background: #ffe2c4; }
.trade-side-take .exchange-item.is-picked { border-top-color: var(--navy); border-right-color: var(--navy); border-bottom-color: var(--navy); background: #cfe3f7; }
.trade-label-give { color: var(--orange-dark); }
.trade-label-take { color: var(--navy); }

/* Своя картинка 5 : 7 — на всю карточку под цветной рамкой, надписи поверх с лёгким затемнением */
.tcard-full .tcard-art { position: absolute; inset: 0; z-index: 0; border-radius: 11px; overflow: hidden; }
.tcard-full .tcard-art img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.tcard-full .tcard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .7) 100%); pointer-events: none; }
.tcard-full .tcard-rarity, .tcard-full .tcard-num, .tcard-full .tcard-name, .tcard-full .tcard-count { position: relative; z-index: 1; }
.tcard-full .tcard-num { position: absolute; }
.tcard-full .tcard-count { position: absolute; }
.tcard-full .tcard-name { align-self: end; grid-row: 3; }
/* Неполученная своя картинка: чёрно-белая, затемнённая и размытая, сверху «?» */
.tcard-full.is-locked .tcard-art img { filter: grayscale(1) brightness(.42) blur(3px); transform: scale(1.08); }
.tcard-full.is-locked .tcard-art b { z-index: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
/* Маленькие картинки в списках обмена — без пустых полей */
.exchange-item img, .trade-chip img { object-fit: cover; }

/* ===== Фиолетовая коллекция (эпическая) ===== */
.tcard-purple { --glow: #b37bff; --deep: #2a1052; --edge: #9b5cf6; }
.tback-purple { --deep: #2a1052; --edge: #9b5cf6; }
.collection-purple { border-top: 4px solid #9b5cf6; }
.collection-purple .progress-bar span { background: #9b5cf6; }
.drop-btn-purple { background: linear-gradient(135deg, #b37bff, #6d34d6); }
.set-chip-purple, .trade-chip-purple, .tier-tag-purple { background: #7c3aed; }
.pick-group-purple { background: linear-gradient(90deg, #6d34d6, #b37bff); }
.confirm-tier-purple { background: linear-gradient(135deg, #b37bff, #6d34d6); }
.exchange-item.tier-purple { border-left: 5px solid #9b5cf6; }
.exchange-item.tier-purple img { background: radial-gradient(circle, #b37bff -30%, #2a1052 75%); }
/* Четыре кнопки дропа */
.drop-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .drop-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .drop-buttons { grid-template-columns: 1fr; } }
/* Длинные названия («Пьезозвукоизлучатель») переносятся по слогам */
.tcard-name, .tback-name { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal; }
.tcard-name.is-long { font-size: 12px; letter-spacing: -.2px; }
@media (max-width: 680px) { .card-grid .tcard-name.is-long { font-size: 9.5px; letter-spacing: -.3px; } }

/* Свои картинки: название уже нарисовано на картинке — подпись сайта и затемнение по краям не нужны */
.tcard-full .tcard-name { display: none; }
.tcard-full .tcard-art::after { display: none; }

/* Кнопки под барабаном: «Крутить» и «Отмена» */
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.drop-actions[hidden] { display: none; }
.drop-spin { min-width: 200px; min-height: 54px; font-size: 20px; box-shadow: 0 6px 24px rgba(244, 123, 32, .55); animation: spin-pulse 1.6s ease-in-out infinite; }
.drop-cancel { min-height: 54px; min-width: 130px; font-size: 18px; border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.drop-cancel:hover { background: rgba(255, 255, 255, .12); }
@keyframes spin-pulse { 0%, 100% { box-shadow: 0 6px 24px rgba(244, 123, 32, .45); } 50% { box-shadow: 0 6px 34px 8px rgba(244, 123, 32, .8); } }
@media (prefers-reduced-motion: reduce) { .drop-spin { animation: none; } }

/* Заголовок блока «Дроп-барабан» */
.drop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.drop-intro { flex: 1 1 360px; }
.drop-intro h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: #fff; font-size: 1.5rem; }
.drop-intro p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.drop-reel-icon { display: inline-flex; gap: 3px; padding: 5px; border: 2px solid #ffd23f; border-radius: 9px; background: rgba(0, 0, 0, .25); }
.drop-reel-icon i { width: 9px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, #2bc46a, #3b82f6 50%, #ff8c1a); animation: reel-icon 1.4s linear infinite; background-size: 100% 300%; }
.drop-reel-icon i:nth-child(2) { animation-delay: -.45s; }
.drop-reel-icon i:nth-child(3) { animation-delay: -.9s; }
@keyframes reel-icon { from { background-position: 0 0; } to { background-position: 0 300%; } }
.drop-tokens { flex: 0 0 auto; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.drop-tokens > span:last-child { display: grid; line-height: 1.1; }
.drop-tokens small { color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .drop-reel-icon i { animation: none; } }

/* Биржа обмена */
.market { border-top: 4px solid #f4b400; }
.market-subtitle { margin: 18px 0 8px; font: 700 16px var(--display); }
.market-lot { display: grid; gap: 6px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; }
.market-lot p { margin: 0; }
.market-lot.is-mine { border: 2px solid #f4b400; background: #fffaeb; }
.market-lot.can-take { border-color: #7fb6ea; background: #f2f8fe; }
.market-lot .trade-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.market-bids { display: grid; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.market-bids-title { font-weight: 700; }
.market-bid { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.market-bid.is-mine { border-color: var(--orange); background: var(--amber-bg); }
.market-bid-lot { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f2f5f8; }
.market-bid-lot p { margin: 0; }

/* Кнопки «Обмен с друзьями» и «Биржа обмена» со счётчиками; сами разделы — в окнах */
.exchange-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.hub-btn { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); background: #f9fafb; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.hub-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 25, 40, .1); }
.hub-btn-friends { border-color: #7fb6ea; background: #f2f8fe; }
.hub-btn-market { border-color: #f4b400; background: #fffaeb; }
.hub-icon { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; font: 800 22px var(--body); }
.hub-btn-friends .hub-icon { background: var(--navy); }
.hub-btn-market .hub-icon { background: #e09b00; }
.hub-text { display: grid; gap: 2px; min-width: 0; }
.hub-text b { font: 800 17px var(--display); }
.hub-text small { color: var(--muted); font-size: 13px; }
.hub-count { position: absolute; top: -10px; right: -8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border: 3px solid #fff; border-radius: 999px; color: #fff; background: var(--red); font: 800 14px var(--body); box-shadow: 0 2px 8px rgba(180, 35, 24, .4); animation: hub-pop .5s ease-out; }
.hub-count.is-info { background: var(--navy); box-shadow: 0 2px 8px rgba(10, 87, 143, .35); }
@keyframes hub-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.hub-modal { width: min(820px, calc(100vw - 24px)); max-height: min(90vh, 900px); }
.hub-modal .modal-body { padding-top: 14px; }
.hub-modal .modal-body.market { border-top: 0; }
.hub-modal .trades-head h2 { display: none; }
@media (max-width: 680px) { .exchange-hub { grid-template-columns: 1fr; padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .hub-count { animation: none; } }

/* Магазин подарков */
.shop-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.shop-wallet-item { padding: 8px 14px; border-radius: 999px; background: #fff4e5; color: #8a4b00; font-weight: 700; }
.shop-wallet-item strong { font-size: 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 14px 0; }
.shop-item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(15, 40, 80, .06); }
.shop-item.is-off { opacity: .55; }
.shop-item-img { display: block; flex: none; box-sizing: border-box; width: 100%; height: 200px; max-width: 100%; padding: 10px; object-fit: contain; object-position: center; background: #f3f6fa; }
.shop-item-noimg { display: grid; place-items: center; font-size: 64px; }
.shop-item-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.shop-item-body h3 { margin: 0; font-size: 17px; }
.shop-item-body p { margin: 0; }
.shop-price { color: #e8590c; font-weight: 800; }
.shop-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.shop-buy .btn { flex: 1 1 auto; }
.shop-order { align-items: center; }
.shop-order-img { width: 56px; height: 56px; flex: none; box-sizing: border-box; padding: 3px; border-radius: 10px; object-fit: contain; background: #f3f6fa; }
.shop-order.is-cancelled { opacity: .7; }
.shop-cancel summary { list-style: none; cursor: pointer; }
.shop-cancel summary::-webkit-details-marker { display: none; }
.shop-cancel[open] form { margin-top: 8px; min-width: 240px; }
.shop-orders-switch { margin-bottom: 12px; }
.shop-pick-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 15px; }
.shop-pick-hint { min-height: 1.4em; margin: 0; color: #8a4b00; }
.shop-edit-img { display: block; width: 160px; height: 160px; padding: 6px; box-sizing: border-box; border-radius: 10px; margin-bottom: 6px; object-fit: contain; background: #f3f6fa; }
.shop-common-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-item-body { padding: 10px; }
  .shop-item-img { height: 140px; padding: 6px; }
  .shop-buy .btn { width: 100%; }
}
.shop-pay-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; }
.shop-pay-sum strong { font-size: 16px; }
.shop-pay-sum .is-short { color: #c92a2a; }

/* Филиал в верхнем меню кабинета преподавателя (если он работает в нескольких) */
.cabinet-branch { display: flex; align-items: center; margin-right: 6px; }
.cabinet-branch select { width: auto; min-width: 140px; max-width: 220px; min-height: 36px; padding: 6px 34px 6px 12px; border-color: rgba(255, 255, 255, .5); color: var(--white); background-color: rgba(255, 255, 255, .12); font-weight: 700; font-size: 14px; }
.cabinet-branch select option { color: var(--ink); }
@media (max-width: 520px) {
  .cabinet-branch { flex-basis: 100%; margin: 0 0 4px; }
  .cabinet-branch select { width: 100%; max-width: none; }
}

/* Магазин подарков в профиле преподавателя */
.shop-teacher-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.shop-teacher-panel h2 { margin: 0 0 4px; }
.shop-teacher-panel p { margin: 0; }
.shop-pick-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.shop-item-actions .btn, .shop-item-actions form { flex: 1 1 auto; }
.shop-item-actions form .btn { width: 100%; }
.shop-archive .shop-item { opacity: .85; }
.shop-archive-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }

/* Лимитированные карточки: золотая рамка и метка тиража */
.tcard.is-limited { box-shadow: 0 0 0 3px #ffd23f, 0 6px 18px rgba(255, 190, 0, .45); }
.tcard-limit { position: absolute; z-index: 1; left: 6px; top: 26px; padding: 2px 7px; border: 2px solid #fff; border-radius: 999px; color: #5c3b00; background: linear-gradient(135deg, #ffe066, #fab005); font: 800 11px var(--body); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap; }
.tcard.is-locked .tcard-limit { opacity: .9; }
