/* BUILD: v10-pass8 */
:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #14161d;
  --surface-2: #1a1d25;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f4f7;
  --text-2: #a9b0bd;
  --muted: #a7aeb9;
  --red: #f43f4f;
  --white-red: #ffd6d9;
  --accent-soft: rgba(244, 63, 79, .14);
  --green: #3ecf8e;
  --amber: #f5b73d;
  --blue: #5ea8ff;
  --orange: #ff8a4c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(1000px 520px at 12% -8%, rgba(244,63,79,.10), transparent 55%), radial-gradient(800px 500px at 108% 60%, rgba(94,168,255,.05), transparent 55%), var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; background-image: url("/assets/noise-tile.png"); }
.app-shell { width: min(calc(100% - 28px), 720px); min-width: 0; margin: auto; padding: max(20px, env(safe-area-inset-top)) 0 calc(105px + env(safe-area-inset-bottom)); }
.topbar, .brand, .screen-heading, .metric-row, .player-row, .row-between { display: flex; align-items: center; }
.topbar, .screen-heading, .row-between { justify-content: space-between; gap: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.brand { gap: 10px; }
.brand-zombie { --zombie-look-x: 0px; --zombie-look-y: 0px; position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.48)); animation: zombie-idle 2.4s ease-in-out infinite; }
.zombie-face { position: relative; display: block; width: 31px; height: 32px; overflow: hidden; border: 1px solid #7fa46f; border-radius: 12px 12px 10px 10px; background: linear-gradient(145deg, #a7c784 0%, #7f9d67 47%, #516b4d 100%); box-shadow: inset 3px 3px 0 rgba(222,245,179,.18), inset -4px -5px 0 rgba(32,49,35,.22); }
.zombie-face::before { content:""; position:absolute; top:1px; right:4px; width:9px; height:8px; border-radius:50%; background:rgba(51,73,48,.36); box-shadow: -15px 17px 0 -2px rgba(55,78,48,.36), -3px 23px 0 -3px rgba(37,54,37,.52); }
.zombie-ear { position:absolute; z-index:-1; top:14px; width:8px; height:11px; border:1px solid #6d8d5c; background:#789762; }
.zombie-ear-left { left:1px; border-radius:7px 2px 2px 7px; transform:rotate(-14deg); }
.zombie-ear-right { right:1px; border-radius:2px 7px 7px 2px; transform:rotate(14deg); }
.zombie-brow { position:absolute; z-index:2; top:8px; width:12px; height:4px; border-radius:99px; background:#354634; }
.zombie-brow-left { left:3px; transform:rotate(18deg); }
.zombie-brow-right { right:3px; transform:rotate(-18deg); }
.zombie-eye { position:absolute; z-index:1; top:12px; display:grid; place-items:center; width:10px; height:9px; overflow:hidden; border:1px solid #35452f; border-radius:50%; background:#f7efbd; }
.zombie-eye-left { left:4px; }
.zombie-eye-right { right:4px; }
.zombie-eye i { display:block; width:5px; height:5px; border-radius:50%; background:#ed3d42; box-shadow:0 0 5px #ff454a; transform:translate(var(--zombie-look-x), var(--zombie-look-y)); transition:transform .13s ease-out; }
.zombie-nose { position:absolute; top:19px; left:13px; width:5px; height:4px; border-radius:50% 50% 60% 60%; background:#4f6648; }
.zombie-mouth { position:absolute; bottom:4px; left:7px; display:flex; align-items:start; justify-content:center; gap:2px; width:17px; height:7px; overflow:hidden; border:1px solid #3a2a2a; border-radius:2px 2px 7px 7px; background:#3b2829; }
.zombie-mouth i { width:3px; height:4px; border-radius:0 0 1px 1px; background:#d8d0ae; }
.brand-zombie.is-alert { animation: zombie-alert .32s ease-out; }
@keyframes zombie-idle { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-2px) rotate(1deg); } }
@keyframes zombie-alert { 0% { transform:scale(1) rotate(0); } 48% { transform:scale(1.13) rotate(-5deg); } 100% { transform:scale(1) rotate(0); } }
.brand b { display: block; letter-spacing: .22em; font-size: 15px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .08em; line-height: 1.35; }
.round-button, .modal-close { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
.round-button { width: 38px; height: 38px; font-size: 20px; transition:transform .22s var(--ease-out), border-color .22s ease, box-shadow .22s ease; }
.screen, .screen-heading, .screen-heading > div, .list { min-width: 0; max-width: 100%; }
.screen-enter { will-change:transform,opacity; animation:screen-enter .58s cubic-bezier(.16,1,.3,1) both; }
.screen-enter > .screen-heading { animation:content-rise .5s .03s cubic-bezier(.16,1,.3,1) both; }
.screen-enter > :nth-child(2) { animation:content-rise .58s .08s cubic-bezier(.16,1,.3,1) both; }
.screen-enter > :nth-child(3) { animation:content-rise .58s .14s cubic-bezier(.16,1,.3,1) both; }
.screen-enter > :nth-child(4) { animation:content-rise .58s .2s cubic-bezier(.16,1,.3,1) both; }
@keyframes screen-enter { from { opacity:0; transform:translate3d(0,18px,0) scale(.985); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes content-rise { from { opacity:0; transform:translate3d(0,16px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.screen-heading { margin: 34px 0 16px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 4px; font-size: clamp(27px, 7vw, 38px); letter-spacing: -.045em; }
h2 { font-size: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .18em; }
.kicker::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 2px; background: var(--red); }
.panel, .profile-card, .bio-card, .player-row, .achievement, .comment-card, .edit-card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(165deg, var(--surface-2), var(--panel)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.panel, .profile-card, .bio-card, .player-row, .achievement, .comment-card, .shop-item { transition:transform .36s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .36s ease; }
.loading { margin-top: 40px; padding: 34px; color: var(--muted); text-align: center; }
.profile-card { position: relative; overflow: hidden; padding: 20px; }
.profile-card:before { content: none; }
.identity { position: relative; display: flex; align-items: center; gap: 13px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; overflow: hidden; border: 2px solid rgba(244,63,79,.8); border-radius: 50%; background: #27151a; color: var(--white-red); font-size: 26px; font-weight: 850; }
.avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.avatar-edit { position:absolute; right:-7px; bottom:-7px; top:auto; z-index:2; border-color:rgba(244,63,79,.55); background:#1a1013; }
.profile-card .avatar-edit { width:27px; height:27px; border-radius:50%; }
.avatar-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:12px 0 16px; }
.avatar-option { display:grid; justify-items:center; gap:5px; padding:8px 4px; border:1px solid var(--line); border-radius:12px; background:#0d0f14; color:#c5c5ca; font-size:9.5px; text-align:center; }
.avatar-option img { width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:#111; object-fit:cover; }
.avatar-option.selected { border-color:var(--red); background:rgba(244,63,79,.14); color:#ffd9dc; box-shadow:0 0 12px rgba(244,63,79,.18); }
@media (max-width:360px) { .avatar-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .avatar-option img { width:42px; height:42px; } }
.identity h2 { max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.username { margin-top: 5px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; background: rgba(255,255,255,.05); color: #c9cdd4; font-size: 10.5px; font-weight: 700; }
.status.verified { background: rgba(51,188,112,.14); color: #6fe19c; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; margin-top: 22px; }
.metric { padding: 13px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.14); }
.editable-field { position:relative; }.field-edit { position:absolute; top:8px; right:8px; display:grid; place-items:center; width:24px; height:24px; padding:0; border:1px solid var(--line-strong); border-radius:8px; background:var(--panel); color:var(--text-2); font-size:13px; line-height:1; }.field-edit:hover { border-color:var(--red); color:var(--white-red); background:rgba(244,63,79,.14); }.bio-card .field-edit { top:10px; right:10px; }.classes-title { padding-right:42px; }.classes-title .field-edit { top:50%; right:0; transform:translateY(-50%); }.balance-metric .field-edit { color:#ffdada; }
.metric b { display: block; font-size: 18px; letter-spacing: -.02em; }
.metric span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.bio-card { margin-top: 11px; padding: 17px; }
.bio-card p { color: #d0d0d4; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.empty-bio { color: var(--muted) !important; }
.classes-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 2px 10px; }
.classes-title small { margin-left:auto; white-space:nowrap; }
.classes-title small, small { color: var(--muted); font-size: 11px; }
.class-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.class-badge { display: flex; align-items: center; min-width: 0; gap: 7px; padding: 5px; border: 1px solid rgba(244,63,79,.28); border-radius: 12px; background: linear-gradient(135deg, rgba(244,63,79,.16), rgba(19,19,26,.82)); color: #f4d1d3; }
.class-avatar { display: block; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: #111; object-fit: cover; }
.class-badge .class-avatar { width: 34px; height: 34px; flex-basis: 34px; }
.class-badge-copy { min-width: 0; display: grid; gap: 1px; }
.class-badge-copy b { overflow: hidden; color: #f5e4e5; font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.class-badge-copy em { color: var(--red); font-size: 10px; font-style: normal; }
.primary-button, .outline-button, .danger-button { border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 800; transition:transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, background .28s ease, border-color .28s ease; }
.primary-button:active, .outline-button:active, .danger-button:active { transform:scale(.97); transition-duration:.12s; }
.primary-button { border: 1px solid var(--red); background: var(--red); color: white; }
.primary-button:hover { background: #ff5765; }
.outline-button { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); }
.outline-button:hover { border-color: rgba(255,255,255,.28); }
.danger-button { border: 1px solid rgba(244,63,79,.4); background: rgba(244,63,79,.1); color: #ff9ba3; }
.wide { width: 100%; margin-top: 5px; }
.search-box { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.search-box span { color: var(--muted); font-size: 20px; font-weight: 300; }
.search-box input { width: 100%; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.player-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0 14px; }
.player-filters select, .class-filter { min-width:0; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--text); }
.player-filters select { padding:11px 10px; outline:0; }
.class-filter { position:relative; grid-column:1 / -1; }
.class-filter summary { cursor:pointer; padding:11px 12px; color:var(--muted); list-style:none; }
.class-filter summary::-webkit-details-marker { display:none; }
.class-filter-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 10px 10px; border-top:1px solid var(--line); }
.class-filter-options label { display:flex; align-items:center; gap:7px; padding:7px 3px; color:var(--muted); font-size:11px; }
.class-filter-options input { accent-color:var(--red); }
.list { display: grid; gap: 8px; max-height: calc(100vh - 230px); margin-top: 12px; overflow-x: hidden; overflow-y: auto; padding: 1px 2px 2px 0; }
.player-row { width: 100%; min-width: 0; gap: 11px; padding: 12px; cursor: pointer; transition: transform .15s, border-color .15s; }
.player-row:hover { transform: translateY(-1px); border-color: rgba(244,63,79,.55); }
.player-row .avatar { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%; font-size: 17px; }
.player-copy { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.player-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-copy small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-days { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; white-space: nowrap; color: var(--white-red); font-weight: 800; font-size: 13px; }
.player-days .verify-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: 13px; }
.player-days.verified { color: #74e5a0; }
.player-days.verified .verify-icon { background: rgba(58, 207, 117, .16); color: #74e5a0; }
.player-days.unverified { color: #ff858d; }
.player-days.unverified .verify-icon { background: rgba(240, 34, 50, .16); color: #ff858d; }
.player-days small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.place { width: 26px; color: var(--red); font-size: 13px; font-weight: 850; text-align: center; }
.achievement-list { display: grid; gap: 9px; }
.achievement { display: flex; align-items: center; gap: 12px; padding: 15px; }
.achievement-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(244,63,79,.14); color: var(--red); font-size: 18px; }
.achievement small { display: block; margin-top: 3px; }
.shop-balance { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 14px 16px; border: 1px solid rgba(244,63,79,.25); border-radius: 15px; background: rgba(244,63,79,.12); }
.shop-balance b { color: var(--white-red); font-size: 19px; }
.shop-balance span { color: var(--muted); font-size: 11px; }
.shop-list { display: grid; gap: 10px; }
.shop-category { display: grid; gap: 8px; }
.shop-category-heading { display:flex; align-items:center; justify-content:space-between; padding:8px 3px 0; }
.shop-category-heading small { display:grid; place-items:center; min-width:24px; height:24px; border:1px solid rgba(244,63,79,.3); border-radius:999px; color:var(--muted); font-size:10px; }
.shop-category-list { display:grid; gap:10px; }
.shop-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 13px; }
.shop-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(244,63,79,.45); border-radius: 12px; background: rgba(244,63,79,.18); color: var(--red); font-size: 19px; }
.shop-product-icon { width: 22px; height: 22px; display: block; }
.shop-product-icon-colored_tag { filter: brightness(0) saturate(100%) invert(65%) sepia(73%) saturate(1168%) hue-rotate(305deg) brightness(108%) contrast(101%); }
.shop-product-icon-custom_tag { filter: brightness(0) saturate(100%) invert(78%) sepia(22%) saturate(1000%) hue-rotate(220deg) brightness(100%) contrast(96%); }
.shop-product-icon-robux { filter: none; }
.shop-product-icon-stars100 { filter: brightness(0) saturate(100%) invert(83%) sepia(64%) saturate(1382%) hue-rotate(354deg) brightness(105%) contrast(97%); }
.shop-product-icon-tg_premium { filter: brightness(0) saturate(100%) invert(63%) sepia(94%) saturate(2086%) hue-rotate(222deg) brightness(101%) contrast(96%); }
.shop-product-icon-vpn21 { filter: brightness(0) saturate(100%) invert(72%) sepia(63%) saturate(544%) hue-rotate(85deg) brightness(95%) contrast(88%); }
.shop-copy { min-width: 0; }
.shop-copy b { display: block; }
.shop-copy small { display: block; margin-top: 4px; line-height: 1.35; }
.shop-price { color: var(--white-red); font-size: 12px; font-weight: 850; white-space: nowrap; }
.shop-owned { color: #74e5a0; font-size: 11px; font-weight: 750; white-space: nowrap; }
.shop-buy { padding: 9px 10px; font-size: 10px; white-space: nowrap; }
.profile-actions, .split-actions { display: flex; gap: 8px; margin-top: 12px; }
.profile-actions > *, .split-actions > * { flex: 1; }
.application-status { display: grid; gap: 8px; padding: 13px; margin-bottom: 8px; }
.application-status small, .application-status p { color: var(--muted); font-size: 12px; }
.application-status p { margin: 0; line-height: 1.4; }
.application-status .danger-button { justify-self: start; padding: 8px 10px; }
.history-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-row small { color: var(--muted); text-align: right; }
.positive { color: #74e5a0; }
.negative { color: #ff858d; }
.upload-box { display: grid; gap: 8px; padding: 22px 14px; border: 1px dashed rgba(244,63,79,.5); border-radius: 14px; text-align: center; color: var(--white-red); cursor: pointer; }
.upload-box input { display: none; }
.referral-hero { padding: 20px; }
.referral-hero h2 { margin: 8px 0; }
.referral-hero p { color: #c6c6cc; font-size: 13px; line-height: 1.5; }
.referral-link { display: flex; gap: 8px; margin-top: 16px; }
.referral-link input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: #0a0c11; color: var(--muted); font-size: 12px; }
.referral-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.referral-stat { padding: 14px 10px; text-align: center; }
.referral-stat b { display: block; color: var(--white-red); font-size: 19px; }
.referral-stat small { display: block; margin-top: 4px; }
.run-form { display: grid; gap: 13px; padding: 18px; }
.players-total { color: var(--muted); font-size: 15px; font-weight: 800; }
.run-menu { margin-bottom: 4px; }
.run-menu .center-card-icon { border-color: rgba(244,63,79,.4); background: var(--red-soft); }
.run-menu .center-card:nth-child(1) .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(31%) saturate(3769%) hue-rotate(317deg) brightness(104%) contrast(97%); }
.run-menu .center-card:nth-child(2) .center-card-icon { border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.09); }
.run-menu .center-card:nth-child(2) .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(63%) saturate(544%) hue-rotate(85deg) brightness(95%) contrast(88%); }
.run-menu .center-card:nth-child(3) .center-card-icon { border-color: rgba(94,168,255,.4); background: rgba(94,168,255,.09); }
.run-menu .center-card:nth-child(3) .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(32%) saturate(1352%) hue-rotate(181deg) brightness(101%) contrast(94%); }
.run-back { flex: 0 0 auto; }
.my-run-list { display: grid; gap: 10px; }
.mine-run-card .status { font-size: 11px; font-weight: 800; white-space: nowrap; }
.mine-run-card .delete-my-run { flex: 1; padding: 10px; font-size: 12px; }
.run-admin-comment { margin: 10px 0 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.run-form-section { display: grid; gap: 12px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(175deg, var(--surface-2), var(--surface)); }
.run-form-section > .kicker { margin-bottom: 2px; }
.run-other-class.hidden { display: none; }
.run-list { display: grid; gap: 10px; margin-bottom: 12px; }
.run-card { padding: 16px; }
.run-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.run-card-head h3 { margin: 0; font-size: 16px; }
.run-card-head small { display: block; margin-top: 4px; }
.run-days { color: var(--white-red); font-size: 13px; font-weight: 850; white-space: nowrap; }
.run-card p { margin: 13px 0 10px; color: #d1d1d6; font-size: 13px; line-height: 1.45; }
.run-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.run-meta span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.run-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.run-actions .danger-button { width: 38px; height: 36px; padding: 0; font-size: 18px; }
.run-form label { display: grid; gap: 7px; color: #dedde0; font-size: 12px; font-weight: 700; }
.run-form input, .run-form textarea, .run-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0a0c11; color: var(--text); padding: 12px; }
.run-form textarea { min-height: 72px; resize: vertical; }
.run-form select option { background: #111319; }
.run-form input:focus, .run-form textarea:focus, .run-form select:focus { border-color: var(--red); }
.days-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.day-chip { border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; background: #0d0f14; color: var(--muted); font-size: 11px; }
.day-chip.selected { border-color: rgba(244,63,79,.75); background: rgba(244,63,79,.18); color: #ffced0; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { min-height: 18px; margin: 0; color: #74e5a0; font-size: 12px; line-height: 1.4; }
.verify-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(244,63,79,.28); border-radius: 14px; background: rgba(244,63,79,.09); }
.verify-box span { color: var(--white-red); font-size: 12px; line-height: 1.35; }
.verify-box.rejected { border-color: rgba(244,63,79,.55); background: rgba(244,63,79,.16); }
.verify-box.rejected span small { display: block; margin-top: 4px; opacity: .85; }
.verify-button { flex:0 0 auto; padding:7px 9px; font-size:10px; white-space:nowrap; }
.roblox-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.roblox-actions > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bottom-nav { position: fixed; right: 14px; bottom: 14px; left: 14px; z-index: 5; display: flex; justify-content: space-between; margin: auto; width: min(calc(100% - 28px), 692px); padding: 12px 18px; border: 0; border-radius: 28px; background: rgba(10,11,15,.82); backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.07); }
.bottom-nav.admin-visible { } .bottom-nav.admin-visible .nav-item { width: 36px; }
.bottom-nav:not(.hidden) { animation:nav-enter .6s .12s cubic-bezier(.16,1,.3,1) both; }
.nav-item { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; overflow: hidden; border: 0; border-radius: 14px; padding: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.1; transition:background .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 0; background: transparent; color: currentColor; box-shadow: none; }
.nav-icon img { width: 21px; height: 21px; display: block; filter: brightness(0) saturate(100%) invert(72%) sepia(6%) saturate(400%) hue-rotate(200deg) brightness(94%); }
.nav-item.active { background: linear-gradient(150deg, rgba(244,63,79,.28), rgba(244,63,79,.14)); color: #ff9aa2; box-shadow: inset 0 0 0 1px rgba(244,63,79,.4), 0 6px 16px -6px rgba(244,63,79,.5); transform: translateY(-4px); }
.nav-item.active .nav-icon { background: transparent; color: #ffbec2; }
.nav-item.active .nav-icon img { filter: brightness(0) saturate(100%) invert(87%) sepia(16%) saturate(1400%) hue-rotate(306deg) brightness(109%); }
.nav-profile .nav-icon img, .nav-referrals .nav-icon img { width:19px; height:19px; }
.nav-label { display: none; } .nav-item { position: relative; } #admin-nav { font-size: 17px; }
.screen-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.center-back { flex: 0 0 auto; padding: 8px 10px; font-size: 11px; }
@keyframes nav-enter { from { opacity:0; transform:translate3d(0,24px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(100%,720px); max-height: 90vh; overflow: auto; padding: 55px 18px 28px; border: 1px solid var(--line); border-radius: 24px 24px 0 0; background: #111319; box-shadow: 0 -20px 80px rgba(0,0,0,.55); }
.currency-modal .modal-card { width: min(calc(100% - 28px), 500px); padding: 42px 20px 22px; border-radius: 22px; }
.transfer-form { display:grid; gap:12px; }
.transfer-field { display:grid; gap:6px; color:#dedde0; font-size:11px; font-weight:750; }
.transfer-field input, .transfer-field select { width:100%; min-width:0; border:1px solid var(--line); border-radius:11px; outline:0; padding:11px 12px; background:#0a0c11; color:var(--text); }
.transfer-field input:focus, .transfer-field select:focus { border-color:var(--red); }
.transfer-recipients { display:grid; gap:6px; max-height:270px; overflow:auto; padding:3px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(0,0,0,.12); }
.transfer-player { display:grid; grid-template-columns:36px minmax(0,1fr) 20px; align-items:center; gap:10px; width:100%; padding:8px; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--text); text-align:left; }
.transfer-player:hover, .transfer-player.selected { border-color:rgba(244,63,79,.45); background:rgba(244,63,79,.1); }
.transfer-player-avatar { width:36px; height:36px; flex-basis:36px; font-size:12px; }
.transfer-player-copy { min-width:0; display:grid; gap:3px; }
.transfer-player-copy b, .transfer-player-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.transfer-player-copy b { font-size:12px; }
.transfer-player-copy small { color:var(--muted); font-size:10px; }
.transfer-player-mark { opacity:0; color:#8ff0b1; font-size:15px; }
.transfer-player.selected .transfer-player-mark { opacity:1; }
.transfer-empty { padding:16px 8px; text-align:center; }
.modal:not(.hidden) .modal-backdrop { animation:modal-dim .32s ease-out both; }
.modal:not(.hidden) .modal-card { will-change:transform,opacity; animation:modal-enter .48s cubic-bezier(.16,1,.3,1) both; }
@keyframes modal-dim { from { opacity:0; } to { opacity:1; } }
@keyframes modal-enter { from { opacity:0; transform:translate3d(0,34px,0) scale(.98); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-color: var(--line-strong); background: var(--panel); color: var(--text-2); font-size: 25px; line-height: 1; }
.edit-card { display: grid; gap: 13px; }
.edit-card h2 { margin-bottom: 7px; }
.edit-card label { display: grid; gap: 7px; color: #dedde0; font-size: 12px; font-weight: 700; }
.edit-card input, .edit-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0a0c11; color: var(--text); padding: 12px; }
.edit-card textarea { min-height: 82px; resize: vertical; }
.edit-card input:focus, .edit-card textarea:focus { border-color: var(--red); }
.settings-card { gap: 10px; }
.settings-toggle-row { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); cursor: pointer; }
.settings-toggle-row > span:first-child { display: grid; gap: 5px; }
.settings-toggle-row b { color: var(--text); font-size: 13px; }
.settings-toggle-row small { max-width: 430px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.toggle-control { position: relative; display: block; width: 46px; height: 26px; flex: 0 0 46px; }
.toggle-control input { position: absolute; width: 1px !important; height: 1px; opacity: 0; }
.toggle-control i { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 999px; background: #0a0c11; transition: background .2s ease, border-color .2s ease; }
.toggle-control i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #85858d; transition: transform .2s ease, background .2s ease; }
.toggle-control input:checked + i { border-color: rgba(244,63,79,.7); background: rgba(244,63,79,.24); }
.toggle-control input:checked + i::after { transform: translateX(20px); background: #ffb8bc; }
.label-line { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; }
.chip-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12px; line-height: 1; transition: transform .15s ease, color .15s ease, border-color .15s ease; }
.chip-toggle:hover { border-color: rgba(255,255,255,.28); color: var(--text); }
.chip-toggle[aria-expanded="true"] { color: var(--text); border-color: rgba(244,63,94,.5); transform: rotate(180deg); }
.chip-count { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.class-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.class-chip { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #0d0f14; color: #c5c5ca; font-size: 11px; text-align: left; }
.class-chip .class-avatar { width: 32px; height: 32px; flex-basis: 32px; }
.class-chip-label { min-width: 0; flex: 1 1 auto; }
.class-chip.selected { border-color: rgba(244,63,79,.75); background: rgba(244,63,79,.18); color: #ffced0; }
.class-chip em { color: var(--red); font-style: normal; white-space: nowrap; }
.run-other-class { margin-top: 2px; }
.reviews-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.reviews-heading span { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 8px; border: 1px solid rgba(244,63,79,.4); border-radius: 999px; background: rgba(244,63,79,.16); color: #ffb8bc; font-size: 12px; font-weight: 850; }
.received-ratings { display: grid; gap: 9px; }
.received-rating-card { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(31,32,42,.9), rgba(13,15,21,.94)); }
.received-rating-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.reviewer-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; overflow: hidden; border: 1px solid rgba(244,63,79,.48); border-radius: 50%; background: #27151a; color: #ffbec2; font-size: 15px; font-weight: 850; }
.reviewer-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.reviewer-copy { min-width: 0; flex: 1 1 auto; }
.reviewer-copy b, .reviewer-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-copy b { font-size: 13px; }
.reviewer-copy small, .received-rating-date { margin-top: 2px; color: var(--muted); font-size: 10px; }
.review-score { flex: 0 0 auto; color: #ffb329; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
.received-rating-comment { margin: 11px 0 0; color: #d7d6da; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.received-rating-date { display: block; margin-top: 9px; }
.rating-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.stars { display: flex; gap: 5px; margin: 10px 0; }
.star { border: 0; padding: 0; background: transparent; color: #555762; font-size: 25px; }
.star.active { color: var(--red); }
.comment-input { width: 100%; min-height: 74px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; outline: 0; resize: vertical; background: #0a0c11; color: var(--text); }
.comment-input:focus { border-color: var(--red); }
.comment-card { margin-top: 9px; padding: 13px; }
.comment-card p { margin-top: 7px; color: #d0d0d4; font-size: 13px; line-height: 1.45; }
.comment-card small { display: block; margin-top: 3px; }
.notice { position: fixed; top: 14px; right: 14px; left: 14px; z-index: 30; margin: auto; width: min(calc(100% - 28px), 692px); padding: 13px 15px; border: 1px solid rgba(244,63,79,.55); border-radius: 13px; background: #35131a; color: #ffd1d3; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.notice:not(.hidden) { animation:notice-enter .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes notice-enter { from { opacity:0; transform:translate3d(0,-14px,0) scale(.98); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
#app:not(.hidden) { animation:app-enter .62s cubic-bezier(.16,1,.3,1) both; }
@keyframes app-enter { from { opacity:0; transform:translate3d(0,12px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.casino-balance { padding: 9px 11px; border: 1px solid rgba(244,63,79,.35); border-radius: 11px; background: rgba(244,63,79,.14); color: var(--white-red); font-size: 12px; font-weight: 850; white-space: nowrap; }
.casino-grid { display: grid; gap: 11px; }
.casino-card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; padding: 16px; overflow: hidden; }
.casino-card h2 { margin: 0; font-size: 18px; }
.wiki-hero { display: flex; align-items: center; gap: 15px; padding: 17px; margin-bottom: 12px; overflow: hidden; }
.wiki-load-error { display: grid; gap: 9px; padding: 18px; color: #ffd2d4; }
.wiki-load-error span { color: var(--muted); font-size: 12px; }
.wiki-load-error .outline-button { width: fit-content; }
.wiki-notice-card { display: grid; gap: 12px; padding-top: 28px; }
.wiki-notice-card p { color: #d6d3d7; font-size: 13px; line-height: 1.5; }
.wiki-notice-icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid rgba(244,63,79,.55); border-radius:14px; background:rgba(244,63,79,.2); color:#ffbec2; font-size:25px; font-weight:900; }
.wiki-hero-mark { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid rgba(244,63,79,.55); border-radius: 16px; background: rgba(244,63,79,.18); color: #ffb8bc; font-size: 27px; }
.wiki-hero h2 { margin: 5px 0 4px; font-size: 20px; }
.wiki-hero p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.wiki-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wiki-search { flex: 1 1 auto; margin: 0; }
.wiki-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.wiki-layout { display: grid; gap: 12px; }
.wiki-sidebar { min-width: 0; }
.wiki-category-list { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 1px 1px 7px; scrollbar-width: none; scroll-behavior: auto; }
.wiki-category-list::-webkit-scrollbar { display: none; }
.wiki-category { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,20,27,.8); color: #bdbdc4; font-size: 11px; }
.wiki-category span { min-width: 18px; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 9px; }
.wiki-category.active { border-color: rgba(244,63,79,.7); background: rgba(244,63,79,.2); color: #ffd2d4; }
.wiki-page-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.wiki-page-link { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(15,17,23,.75); color: #d2d1d5; text-align: left; }
.wiki-page-link span, .wiki-page-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-page-link span { font-size: 12px; font-weight: 750; }
.wiki-page-link small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.wiki-page-link.active { border-color: rgba(244,63,79,.68); background: rgba(244,63,79,.15); color: #fff0f0; }
.wiki-article { padding: 17px; overflow: hidden; }
.wiki-article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wiki-article-head h2 { margin-top: 5px; font-size: clamp(23px, 6vw, 31px); }
.wiki-summary { margin-top: 13px; padding: 11px 12px; border-left: 2px solid var(--red); border-radius: 0 10px 10px 0; background: rgba(244,63,79,.12); color: #e7dadd; font-size: 13px; line-height: 1.5; }
.wiki-body { display: flow-root; margin-top: 18px; color: #d6d5d9; font-size: 13px; line-height: 1.6; }
.wiki-body h3 { clear: both; position: relative; margin: 25px 0 10px; padding: 0 0 8px 11px; border-bottom: 1px solid var(--line); color: #fff; font-size: 16px; }
.wiki-body h3::before { content: ""; position: absolute; top: 1px; bottom: 9px; left: 0; width: 3px; border-radius: 99px; background: var(--red); }
.wiki-body p { margin: 0 0 13px; color: #d9d8dc; }
.wiki-body p + p { margin-top: -4px; }
.wiki-body ul { margin: 0 0 14px; padding-left: 20px; }
.wiki-body li { margin: 4px 0; }
.wiki-facts { display: grid; gap: 0; margin: 0 0 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,10,14,.55); }
.wiki-facts div { display: grid; grid-template-columns: minmax(90px,.8fr) minmax(0,1.7fr); gap: 10px; padding: 9px 11px; border-top: 1px solid rgba(255,255,255,.06); }
.wiki-facts div:first-child { border-top: 0; }
.wiki-facts dt { color: #ffbec2; font-size: 11px; font-weight: 800; }
.wiki-facts dd { margin: 0; color: #d9d8dc; }
.wiki-figure { display: table; max-width: min(100%, 340px); margin: 14px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #090b0f; box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.wiki-figure img { display: block; width: auto; max-width: min(100%, 340px); max-height: 240px; margin: auto; object-fit: contain; background: radial-gradient(circle at center, #24222a, #0b0c11 70%); }
.wiki-figure-compact { float: right; max-width: 170px; margin: 3px 0 11px 14px; }
.wiki-figure-compact img { max-width: 168px; max-height: 150px; }
.wiki-figure-tiny { float: right; max-width: 74px; margin: 1px 0 8px 10px; border-color: transparent; border-radius: 9px; background: transparent; box-shadow: none; }
.wiki-figure-tiny img { max-width: 72px; max-height: 72px; background: transparent; }
.wiki-figure figcaption { padding: 7px 9px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.wiki-figure figcaption:empty { display: none; }
.wiki-media-gallery { clear: both; margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.wiki-media-gallery > h3 { margin-top: 0; }
.wiki-media-gallery > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.wiki-media-gallery .wiki-figure { display: block; min-width: 0; max-width: none; margin: 0; }
.wiki-media-gallery .wiki-figure img { width: 100%; max-width: 100%; height: 110px; max-height: 110px; }
.wiki-media-gallery .wiki-figure-compact, .wiki-media-gallery .wiki-figure-tiny { float: none; max-width: none; margin: 0; }
.wiki-media-gallery .wiki-figure-compact img, .wiki-media-gallery .wiki-figure-tiny img { max-width: 100%; height: 90px; max-height: 90px; }
.wiki-class-catalog { display: grid; gap: 20px; margin-top: 16px; }
.wiki-category-cover { margin-top: 15px; }
.wiki-content-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wiki-content-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 14px; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(28,29,37,.9), rgba(11,13,18,.9)); color: var(--text); text-align: left; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.wiki-content-card:hover { border-color: rgba(244,63,79,.55); background: rgba(244,63,79,.12); transform: translateY(-2px); }
.wiki-content-card img, .wiki-content-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(244,63,79,.28); border-radius: 12px; background: #17171e; object-fit: contain; color: #ffbec2; font-size: 20px; font-weight: 850; }
.wiki-content-card > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.wiki-content-card small { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.wiki-content-card b { overflow: hidden; color: #f4f1f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wiki-content-card em { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wiki-content-card i { color: var(--red); font-size: 21px; font-style: normal; }
.wiki-class-group { display: grid; gap: 9px; }
.wiki-class-group-title { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; }
.wiki-class-group-title span { color: #ffbec2; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wiki-class-group-title small { display: grid; place-items: center; min-width: 25px; height: 25px; border: 1px solid rgba(244,63,79,.34); border-radius: 999px; color: var(--muted); font-size: 10px; }
.wiki-class-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wiki-class-card { display: grid; grid-template-columns: 44px minmax(0,1fr) 15px; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(28,29,37,.9), rgba(11,13,18,.9)); color: var(--text); text-align: left; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.wiki-class-card:hover { border-color: rgba(244,63,79,.55); background: rgba(244,63,79,.13); transform: translateY(-2px); }
.wiki-class-card img, .wiki-class-fallback { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(244,63,79,.32); border-radius: 12px; background: #15151b; object-fit: contain; color: #ffbdc2; }
.wiki-class-card b, .wiki-class-card small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-class-card b { font-size: 12px; }
.wiki-class-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.wiki-class-card i { color: var(--red); font-size: 22px; font-style: normal; }
.wiki-class-profile { margin-top: 15px; }
.wiki-class-hero-card { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 15px; padding: 15px; border: 1px solid rgba(244,63,79,.35); border-radius: 18px; background: radial-gradient(circle at 0 0, rgba(195,33,47,.18), transparent 53%), linear-gradient(145deg, rgba(31,28,35,.94), rgba(12,14,19,.94)); }
.wiki-class-avatar { width: 104px; height: 104px; object-fit: contain; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(0,0,0,.2); }
.wiki-status { display: inline-flex; padding: 4px 7px; border: 1px solid rgba(67,221,150,.36); border-radius: 999px; background: rgba(31,130,83,.14); color: #aaf6ca; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.wiki-status.limited { border-color: rgba(235,180,68,.4); background: rgba(156,102,16,.15); color: #ffd789; }
.wiki-class-hero-card h2 { margin: 7px 0 5px; font-size: 27px; }
.wiki-class-hero-card p { color: #d5d0d5; font-size: 12px; line-height: 1.45; }
.wiki-class-grid { display: grid; gap: 10px; margin-top: 10px; }
.wiki-class-section { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(10,12,17,.58); }
.wiki-class-section h3 { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #e9e6e9; font-size: 12px; }
.wiki-class-section h3::before { display: none; }
.wiki-class-section > div { display: grid; gap: 0; }
.wiki-class-section p { margin: 0; padding: 9px 12px; border-top: 1px solid rgba(255,255,255,.055); color: #d8d6da; font-size: 12px; line-height: 1.45; }
.wiki-class-section p:first-child { border-top: 0; }
.wiki-class-section.upgrade { border-color: rgba(235,183,69,.3); }
.wiki-class-section.upgrade h3 { color: #ffd990; }
.wiki-class-section.skills { border-color: rgba(73,166,236,.3); }
.wiki-class-section.skills h3 { color: #a9d8ff; }
.wiki-class-section.skills p { position: relative; padding-left: 27px; }
.wiki-class-section.skills p::before { content: "✦"; position: absolute; left: 12px; color: #68baff; }
.wiki-class-section.notes { border-color: rgba(239,103,111,.24); }
.wiki-class-section.notes h3 { color: #ffb6ba; }
.center-grid { display: grid; gap: 11px; }
.center-card { display: grid; grid-template-columns: 49px minmax(0,1fr) 20px; align-items: center; gap: 13px; width: 100%; padding: 16px; color: var(--text); text-align: left; }
.center-card:hover { border-color: rgba(244,63,79,.52); transform: translateY(-2px); }
.center-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.04); color: #ffbdc2; font-size: 23px; }
.center-card-icon img { width: 24px; height: 24px; filter: brightness(0) saturate(100%) invert(72%) sepia(8%) saturate(500%) hue-rotate(200deg) brightness(96%); }
.center-card:nth-child(1) .center-card-icon { border-color: rgba(244,63,79,.4); background: var(--accent-soft); }
.center-card:nth-child(1) .center-card-icon img { filter: brightness(0) saturate(100%) invert(83%) sepia(28%) saturate(890%) hue-rotate(315deg) brightness(105%); }
.center-card:nth-child(2) .center-card-icon { border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.11); }
.center-card:nth-child(2) .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(52%) saturate(900%) hue-rotate(105deg) brightness(102%); }
.center-card:nth-child(3) .center-card-icon { border-color: rgba(94,168,255,.4); background: rgba(94,168,255,.11); }
.center-card:nth-child(3) .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(900%) hue-rotate(180deg) brightness(104%); }
.center-card b, .center-card small { display: block; }
.center-card b { font-size: 16px; }
.center-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.center-card i { color: var(--muted); font-size: 27px; font-style: normal; }
@media (min-width: 680px) {
  .wiki-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .wiki-category-list { display: grid; overflow: visible; padding: 0; }
  .wiki-category { justify-content: space-between; border-radius: 11px; }
  .wiki-page-list { display: grid; grid-template-columns: 1fr; max-height: 620px; margin-top: 9px; }
  .wiki-sidebar { position: sticky; top: 15px; }
  .wiki-class-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 420px) {
  .wiki-hero { align-items: flex-start; }
  .wiki-toolbar { display: block; }
  .wiki-count { display: block; margin-top: 7px; }
  .wiki-page-list { grid-template-columns: 1fr; }
  .wiki-article-head { display: block; }
  .screen-heading-actions { gap: 6px; }
  .casino-balance { padding: 8px; }
  .wiki-figure { max-width: min(100%, 280px); }
  .wiki-figure img { max-width: min(100%, 280px); max-height: 200px; }
  .wiki-figure-compact { max-width: 130px; margin-left: 10px; }
  .wiki-figure-compact img { max-width: 128px; max-height: 120px; }
  .wiki-figure-tiny { max-width: 58px; }
  .wiki-figure-tiny img { max-width: 56px; max-height: 56px; }
  .wiki-facts div { grid-template-columns: 1fr; gap: 3px; }
  .wiki-class-cards { grid-template-columns: 1fr; }
  .wiki-content-cards { grid-template-columns: 1fr; }
  .wiki-class-hero-card { grid-template-columns: 76px minmax(0,1fr); gap: 11px; padding: 12px; }
  .wiki-class-avatar { width: 76px; height: 76px; border-radius: 13px; }
  .wiki-class-hero-card h2 { font-size: 23px; }
}
.admin-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.admin-stat { display:grid; gap:4px; min-width:0; padding:13px 11px; border:1px solid rgba(244,63,79,.2); border-radius:15px; background:linear-gradient(145deg,rgba(42,22,29,.9),rgba(18,20,27,.96)); }
.admin-stat b { font-size:23px; letter-spacing:-.04em; }
.admin-stat span { color:var(--muted); font-size:10px; line-height:1.2; }
.admin-queues { display:grid; gap:20px; margin-top:22px; }
.admin-queues > div { display:grid; gap:10px; }
.admin-queues h2, .admin-section h2 { font-size:17px; }
.admin-list { display:grid; gap:10px; }
.admin-card { display:grid; gap:8px; padding:14px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,rgba(27,29,38,.96),rgba(14,16,22,.96)); }
.admin-card p { color:#d1d0d5; font-size:12px; line-height:1.45; }
.admin-card small { color:var(--muted); font-size:10px; }
.admin-proof { display:block; width:100%; max-height:360px; object-fit:contain; border:1px solid var(--line); border-radius:11px; background:#08090c; }
.admin-actions { display:flex; flex-wrap:wrap; gap:7px; }
.admin-actions button { padding:9px 11px; font-size:11px; }
.admin-status { padding:4px 7px; border-radius:8px; background:rgba(255,255,255,.08); color:#d0ced3; font-size:10px; }
.admin-status.verified { color:#92f0bb; background:rgba(61,196,120,.12); }
.admin-status.blocked { color:#ff9ba3; background:rgba(244,63,79,.14); }
.admin-gift-form { display:flex; gap:8px; }
.admin-gift-form input { width:100px; border:1px solid var(--line); border-radius:11px; padding:11px; background:#0a0c11; color:var(--text); }
.admin-codes { overflow:auto; margin:0; padding:12px; border:1px solid rgba(89,218,145,.25); border-radius:12px; background:rgba(37,111,72,.12); color:#a7f3c6; font:600 12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; }

/* Profile cosmetics. Everything is CSS-based so the shop can ship new looks
   without adding image assets. */
.profile-card[class*="cosmetic-card-"], .profile-card[class*="cosmetic-banner-"] { isolation:isolate; }
.profile-card .profile-banner-effect, .cosmetic-preview .profile-banner-effect { position:absolute; inset:0 0 auto; z-index:0; height:92px; pointer-events:none; opacity:.8; }
.profile-card > *:not(.profile-banner-effect), .cosmetic-preview > *:not(.profile-banner-effect) { position:relative; z-index:1; }
.profile-card.cosmetic-card-dossier, .cosmetic-preview.cosmetic-card-dossier { background:linear-gradient(145deg,#2b1b20,#11151d 62%,#171018); }
.profile-card.cosmetic-card-hazard, .cosmetic-preview.cosmetic-card-hazard { background:repeating-linear-gradient(135deg,rgba(255,188,71,.06) 0 9px,transparent 9px 18px),linear-gradient(145deg,#242733,#11131a); }
.profile-card.cosmetic-card-royal, .cosmetic-preview.cosmetic-card-royal { border-color:rgba(245,190,78,.45); background:radial-gradient(circle at 95% 0,rgba(245,190,78,.2),transparent 30%),linear-gradient(145deg,#30281d,#13151c); }
.profile-card.cosmetic-card-blacksite, .cosmetic-preview.cosmetic-card-blacksite { border-color:rgba(151,123,255,.4); background:radial-gradient(circle at 12% 0,rgba(97,76,181,.2),transparent 35%),#0d1016; }
.profile-card.cosmetic-bg-sunset, .cosmetic-preview.cosmetic-bg-sunset { background:linear-gradient(155deg,rgba(245,89,54,.25),transparent 42%),linear-gradient(145deg,#3b2026,#15151b 68%,#11131a); }
.profile-card.cosmetic-bg-neon, .cosmetic-preview.cosmetic-bg-neon { background:linear-gradient(115deg,rgba(36,218,207,.16),transparent 35%),linear-gradient(145deg,#172735,#11151e 66%,#24152b); }
.profile-card.cosmetic-bg-bunker, .cosmetic-preview.cosmetic-bg-bunker { background:radial-gradient(circle at 80% 0,rgba(184,211,255,.2),transparent 30%),linear-gradient(145deg,#202b3a,#11151d 68%,#101115); }
.profile-card.cosmetic-bg-swamp, .cosmetic-preview.cosmetic-bg-swamp { background:radial-gradient(circle at 14% 8%,rgba(129,220,104,.18),transparent 25%),linear-gradient(145deg,#1b302b,#10181a 68%,#111314); }
.profile-card.cosmetic-bg-starfall, .cosmetic-preview.cosmetic-bg-starfall { background:radial-gradient(circle at 80% 4%,rgba(152,123,255,.32),transparent 18%),radial-gradient(circle at 55% 12%,rgba(255,255,255,.18) 0 1px,transparent 2px),linear-gradient(145deg,#1a1e3c,#11131e 66%,#090b12); }
.cosmetic-banner-radar .profile-banner-effect, .cosmetic-preview.cosmetic-banner-radar .profile-banner-effect { background:linear-gradient(105deg,transparent 42%,rgba(87,255,204,.22) 49%,transparent 56%); animation:cosmetic-sweep 3.6s linear infinite; }
.cosmetic-banner-storm .profile-banner-effect, .cosmetic-preview.cosmetic-banner-storm .profile-banner-effect { background:radial-gradient(ellipse at 22% 0,rgba(131,159,255,.24),transparent 52%),linear-gradient(120deg,transparent 42%,rgba(213,222,255,.16) 49%,transparent 53%); animation:cosmetic-storm 4.2s ease-in-out infinite; }
.cosmetic-banner-reactor .profile-banner-effect, .cosmetic-preview.cosmetic-banner-reactor .profile-banner-effect { background:radial-gradient(circle at 86% 8%,rgba(255,48,72,.45),transparent 14%),radial-gradient(circle at 86% 8%,transparent 4%,rgba(255,48,72,.22) 5%,transparent 15%); animation:cosmetic-reactor 2.2s ease-in-out infinite; }
@keyframes cosmetic-sweep { from { transform:translateX(-55%); } to { transform:translateX(55%); } }
@keyframes cosmetic-storm { 0%,100% { opacity:.35; transform:translateX(-4%); } 50% { opacity:.95; transform:translateX(5%); } }
@keyframes cosmetic-reactor { 0%,100% { opacity:.42; } 50% { opacity:1; } }
.profile-card .avatar, .cosmetic-preview .avatar { position:relative; overflow:visible; border-color:rgba(244,63,79,.8); }
.profile-card .avatar img, .cosmetic-preview .avatar img { border-radius:inherit; }.cosmetic-frame-crimson { border-color:#ff4958 !important; box-shadow:0 0 0 3px rgba(255,55,70,.18),0 0 18px rgba(255,45,70,.5); }
.cosmetic-frame-halo { border-color:#b5ff58 !important; box-shadow:0 0 0 3px rgba(152,255,48,.18),0 0 21px rgba(144,255,51,.65); }
.cosmetic-frame-ice { border-color:#9be8ff !important; box-shadow:0 0 0 3px rgba(83,208,255,.2),0 0 19px rgba(75,194,255,.62); border-radius:23px !important; }
.cosmetic-frame-void { border-color:#ae79ff !important; box-shadow:0 0 0 3px rgba(132,70,255,.2),0 0 25px rgba(120,52,255,.72); }
.cosmetic-frame-relic { border-color:#f2c85b !important; box-shadow:0 0 0 3px rgba(244,194,67,.22),0 0 17px rgba(255,185,35,.55); }
.cosmetic-name-signal { color:#ff5867 !important; text-shadow:0 0 13px rgba(255,57,77,.48); }
.cosmetic-name-terminal { color:#77f3e1 !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.03em; }
.cosmetic-name-radiance { color:#ffd36a !important; text-shadow:0 0 14px rgba(255,190,54,.5); }
.cosmetic-name-spectral { color:#d39dff !important; background:linear-gradient(90deg,#78eaff,#da9cff,#ff7b9d); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:cosmetic-spectral 3s linear infinite; }
@keyframes cosmetic-spectral { to { filter:hue-rotate(35deg); } }
.purchase-preview, .cosmetic-preview { overflow:hidden; }
.cosmetic-preview { position:relative; min-height:165px; margin:12px 0 14px; padding:16px; border:1px solid rgba(244,63,79,.32); border-radius:17px; background:linear-gradient(145deg,#24202b,#0e1219); }
.cosmetic-preview-identity { display:flex; align-items:center; gap:11px; }
.cosmetic-preview-identity small { display:block; margin-top:4px; }
.cosmetic-preview .avatar { width:56px; height:56px; flex-basis:56px; border-radius:50%; font-size:21px; }
.cosmetic-preview-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:17px; }
.cosmetic-preview-stats span { padding:8px 5px; border:1px solid rgba(255,255,255,.09); border-radius:9px; color:#d8d6db; font-size:9px; text-align:center; }
.cosmetic-preview p { margin:12px 0 0; color:var(--muted); font-size:10px; }
.shop-buy.is-equipped { border-color:rgba(116,229,160,.48); color:#8ff0b1; }

.hidden { display: none !important; }
@media (hover:hover) and (pointer:fine) {
  .panel:hover, .profile-card:hover, .bio-card:hover, .player-row:hover, .achievement:hover, .comment-card:hover, .shop-item:hover { transform:translate3d(0,-3px,0); border-color:rgba(244,63,79,.3); box-shadow:0 20px 46px rgba(0,0,0,.26),0 0 26px rgba(244,63,79,.07); }
  .primary-button:hover, .outline-button:hover, .danger-button:hover { transform:translate3d(0,-2px,0); }
  .primary-button:hover { box-shadow:0 10px 24px rgba(244,63,79,.3); }
  .nav-item:hover { transform:translate3d(0,-3px,0); color:#e9c7ca; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
@media (min-width:650px) { .app-shell { padding-top: 32px; } .modal { place-items: center; } .modal-card { border-radius: 24px; } }
@media (max-width:440px) { .class-grid { grid-template-columns: 1fr; } .metrics { gap: 5px; } .shop-item { grid-template-columns: 34px minmax(0,1fr); } .shop-icon { width: 34px; height: 34px; } .shop-product-icon { width: 20px; height: 20px; } .shop-price, .shop-owned, .shop-buy, .shop-actions { grid-column: 2; } .shop-actions { justify-content:flex-start; } .nav-item { font-size: 9px; } .nav-item > span:first-child { font-size: 16px; } .verify-box { align-items: flex-start; flex-direction: column; } .profile-actions, .split-actions { flex-direction: column; } }
@media (max-width:360px) {
  .app-shell { width: calc(100% - 18px); }
  .topbar { gap: 8px; }
  .brand b { max-width: 245px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: .12em; }
  .panel, .profile-card, .bio-card, .player-row, .achievement, .comment-card, .edit-card { border-radius: 16px; }
  .bottom-nav { right: 7px; bottom: 7px; left: 7px; width: calc(100% - 14px); }
}
@media (max-height:640px) and (orientation:landscape) {
  .app-shell { padding-top: 10px; padding-bottom: 76px; }
  .screen-heading { margin-top: 18px; }
  .modal-card { max-height: 96vh; }
  .bottom-nav { bottom: 5px; }
}

.profile-error-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 168px;
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(244,63,79,.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(244,63,79,.18), transparent 38%),
    linear-gradient(145deg, rgba(42,22,29,.98), rgba(15,16,22,.98));
  box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
}
.profile-error-card::before {
  content: "503";
  position: absolute;
  right: 17px;
  bottom: -14px;
  color: rgba(255,157,163,.07);
  font-size: 76px;
  font-weight: 950;
  letter-spacing: -.08em;
}
.profile-error-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,126,134,.54);
  border-radius: 15px;
  background: rgba(244,63,79,.25);
  color: #ff9da3;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(244,63,79,.12);
}
.profile-error-card > div:nth-child(2) {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.profile-error-card h2 {
  margin-top: 7px;
  color: #ffe4e5;
  font-size: 22px;
  letter-spacing: -.035em;
}
.profile-error-card p {
  max-width: 420px;
  margin-top: 9px;
  color: #c9aeb1;
  font-size: 13px;
  line-height: 1.5;
}
.profile-error-card code {
  position: relative;
  z-index: 1;
  grid-column: 2;
  color: #9c6f74;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

/* Profile cards — a cleaner, premium surface: soft light, no clutter. */
.profile-card {
  isolation: isolate;
  padding: 0 18px 18px;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(244,63,79,.22), transparent 52%),
    radial-gradient(90% 70% at 0% 100%, rgba(94,168,255,.06), transparent 60%),
    linear-gradient(172deg, #1d1420 0%, #131420 42%, #0b0d13 100%);
  box-shadow: 0 22px 55px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
/* Very faint diagonal pinstripes fading out from the top-right corner. */
.profile-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .55;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  mask-image: radial-gradient(130% 90% at 100% 0%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(130% 90% at 100% 0%, #000, transparent 62%);
}
/* Paid cosmetic looks must render exactly as designed — no base texture on top. */
.profile-card[class*="cosmetic-card-"]::after,
.profile-card[class*="cosmetic-profile-background-"]::after { display: none; }
.profile-card > .identity {
  min-height: 118px;
  margin: 0 -18px;
  padding: 23px 18px 19px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(110deg, rgba(244,63,79,.18), rgba(24,21,30,.1) 65%, transparent);
}
.profile-card .identity > div:last-child {
  min-width: 0;
}
.profile-card .identity h2 {
  max-width: min(100%, 350px);
  font-size: clamp(22px, 6vw, 28px);
  letter-spacing: -.035em;
}
.profile-card .avatar {
  width: 76px;
  height: 76px;
  border: 3px solid #f43f4f;
  border-radius: 50%;
  background: linear-gradient(145deg, #4b1d28, #1d1219);
  box-shadow: 0 0 0 5px rgba(244,63,79,.12), 0 12px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.22);
  font-size: 29px;
}
.profile-card .username {
  margin-top: 4px;
  color: var(--text-2);
}
.profile-card .status {
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 750;
}
.profile-card .status.verified {
  border-color: rgba(80,220,138,.22);
  box-shadow: 0 0 16px rgba(80,220,138,.08);
}
.profile-card .metrics {
  gap: 9px;
  margin-top: 15px;
}
/* Метрики и bio-card: полностью переопределяются в redesign-блоке ниже */
.profile-card .bio-card.roblox-profile::before {
  display: none;
}
.profile-card .roblox-profile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
}
.roblox-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.roblox-profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.roblox-profile-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #858590;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}
.roblox-profile-copy p {
  overflow: hidden;
  color: #f4f1f1;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roblox-inline-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
}
.roblox-inline-actions > * {
  padding: 8px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.profile-card .classes-title {
  margin-top: 20px;
  margin-bottom: 9px;
}
.profile-card .class-list {
  gap: 8px;
}
.profile-card .class-badge {
  min-height: 52px;
  padding: 7px;
  border-color: rgba(244,63,79,.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244,63,79,.2), rgba(18,18,25,.7));
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.profile-card .class-badge .class-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-color: rgba(255,255,255,.18);
  border-radius: 11px;
}
.profile-card .class-badge-copy em {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(244,63,79,.13);
}
.profile-card .profile-actions {
  margin-top: 15px;
}
.profile-card .profile-actions > * {
  min-height: 40px;
}
.player-row {
  position: relative;
  min-height: 70px;
  padding: 11px 13px;
  border-color: rgba(255,255,255,.1);
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(27,29,38,.98), rgba(15,16,23,.94));
  box-shadow: 0 9px 24px rgba(0,0,0,.12);
}
.player-row::before {
  content: "";
  width: 3px;
  align-self: stretch;
  flex: 0 0 3px;
  border-radius: 99px;
  background: linear-gradient(#f43f4f, rgba(244,63,79,.08));
}
.player-row .avatar {
  border-color: rgba(244,63,79,.55);
  box-shadow: 0 0 0 3px rgba(244,63,79,.07);
}
.player-copy b {
  font-size: 14px;
}
.player-copy small {
  color: var(--text-2);
}
.player-days {
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  font-size: 12px;
}
.player-days .verify-icon {
  width: 20px;
  height: 20px;
}
@media (hover:hover) and (pointer:fine) {
  .profile-card .class-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(244,63,79,.55);
    background: linear-gradient(135deg, rgba(244,63,79,.3), rgba(25,19,27,.82));
  }
}
@media (max-width:440px) {
  .profile-card { padding-right: 13px; padding-left: 13px; }
  .profile-card > .identity { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .profile-card .avatar { width: 68px; height: 68px; flex-basis: 68px; border-radius: 50%; }
  .profile-card .roblox-profile { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding: 7px 9px; }
  .profile-card .bio-card.roblox-profile { padding: 7px 9px; }
  .roblox-icon { width: 30px; height: 30px; }
  .roblox-chip-btn { width: 27px; height: 27px; }
}

/* Expanded cosmetic catalog. Each catalog item has its own class so every
   preview and equipped item remains visibly distinct. */
.shop-tab { flex:0 0 auto; padding:9px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(18,20,27,.82); color:#bdbdc4; font-size:10px; font-weight:800; white-space:nowrap; }
.shop-tab.active { border-color:rgba(244,63,79,.72); background:rgba(244,63,79,.22); color:#ffd2d4; }
.profile-card .avatar[class*="cosmetic-avatar-frame-"], .cosmetic-preview .avatar[class*="cosmetic-avatar-frame-"] { overflow:hidden !important; background:transparent !important; border-width:3px !important; border-style:solid !important; }

.profile-card .cosmetic-avatar-frame-01, .cosmetic-preview .cosmetic-avatar-frame-01 { border-color:#ff5263 !important; border-radius:50% !important; box-shadow:0 0 15px rgba(169,243,90,.45); }
.profile-card .cosmetic-avatar-frame-02, .cosmetic-preview .cosmetic-avatar-frame-02 { border-color:#a9f35a !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(131,220,255,.48); }
.profile-card .cosmetic-avatar-frame-03, .cosmetic-preview .cosmetic-avatar-frame-03 { border-color:#83dcff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(179,122,255,.48); }
.profile-card .cosmetic-avatar-frame-04, .cosmetic-preview .cosmetic-avatar-frame-04 { border-color:#b37aff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(244,201,93,.45); }
.profile-card .cosmetic-avatar-frame-05, .cosmetic-preview .cosmetic-avatar-frame-05 { border-color:#f4c95d !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(255,82,99,.48); }
.profile-card .cosmetic-avatar-frame-06, .cosmetic-preview .cosmetic-avatar-frame-06 { border-color:#e99a64 !important; border-radius:50% !important; box-shadow:0 0 15px rgba(169,243,90,.45); }
.profile-card .cosmetic-avatar-frame-07, .cosmetic-preview .cosmetic-avatar-frame-07 { border-color:#5d9dff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(131,220,255,.48); }
.profile-card .cosmetic-avatar-frame-08, .cosmetic-preview .cosmetic-avatar-frame-08 { border-color:#ff6cbe !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(179,122,255,.48); }
.profile-card .cosmetic-avatar-frame-09, .cosmetic-preview .cosmetic-avatar-frame-09 { border-color:#a0a0a8 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(244,201,93,.45); }
.profile-card .cosmetic-avatar-frame-10, .cosmetic-preview .cosmetic-avatar-frame-10 { border-color:#f3f3f3 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(255,82,99,.48); }
.profile-card .cosmetic-avatar-frame-11, .cosmetic-preview .cosmetic-avatar-frame-11 { border-color:#7d64ff !important; border-radius:50% !important; box-shadow:0 0 15px rgba(169,243,90,.45); }
.profile-card .cosmetic-avatar-frame-12, .cosmetic-preview .cosmetic-avatar-frame-12 { border-color:#d0f35c !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(131,220,255,.48); }
.profile-card .cosmetic-avatar-frame-13, .cosmetic-preview .cosmetic-avatar-frame-13 { border-color:#e84d52 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(179,122,255,.48); }
.profile-card .cosmetic-avatar-frame-14, .cosmetic-preview .cosmetic-avatar-frame-14 { border-color:#66e0d0 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(244,201,93,.45); }
.profile-card .cosmetic-avatar-frame-15, .cosmetic-preview .cosmetic-avatar-frame-15 { border-color:#b7b7c8 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(255,82,99,.48); }
.profile-card .cosmetic-avatar-frame-16, .cosmetic-preview .cosmetic-avatar-frame-16 { border-color:#b4d5ff !important; border-radius:50% !important; box-shadow:0 0 15px rgba(169,243,90,.45); }
.profile-card .cosmetic-avatar-frame-17, .cosmetic-preview .cosmetic-avatar-frame-17 { border-color:#ffd15d !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(131,220,255,.48); }
.profile-card .cosmetic-avatar-frame-18, .cosmetic-preview .cosmetic-avatar-frame-18 { border-color:#a7b45b !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(179,122,255,.48); }
.profile-card .cosmetic-avatar-frame-19, .cosmetic-preview .cosmetic-avatar-frame-19 { border-color:#e985ff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(244,201,93,.45); }
.profile-card .cosmetic-avatar-frame-20, .cosmetic-preview .cosmetic-avatar-frame-20 { border-color:#a4e8ff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(255,82,99,.48); }
.profile-card .cosmetic-avatar-frame-21, .cosmetic-preview .cosmetic-avatar-frame-21 { border-color:#ff5353 !important; border-radius:50% !important; box-shadow:0 0 15px rgba(169,243,90,.45); }
.profile-card .cosmetic-avatar-frame-22, .cosmetic-preview .cosmetic-avatar-frame-22 { border-color:#d33a63 !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(131,220,255,.48); }
.profile-card .cosmetic-avatar-frame-23, .cosmetic-preview .cosmetic-avatar-frame-23 { border-color:#d9f7ff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(179,122,255,.48); }
.profile-card .cosmetic-avatar-frame-24, .cosmetic-preview .cosmetic-avatar-frame-24 { border-color:#8d69ff !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(244,201,93,.45); }
.profile-card .cosmetic-avatar-frame-25, .cosmetic-preview .cosmetic-avatar-frame-25 { border-color:#58e48f !important; border-radius: 50% !important; box-shadow:0 0 15px rgba(255,82,99,.48); }
.profile-card.cosmetic-profile-background-01, .cosmetic-preview.cosmetic-profile-background-01 { background:radial-gradient(circle at 32% 19%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#4d2028,#15151b 72%); }
.profile-card.cosmetic-profile-background-02, .cosmetic-preview.cosmetic-profile-background-02 { background:radial-gradient(circle at 49% 30%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#183744,#25152e 72%); }
.profile-card.cosmetic-profile-background-03, .cosmetic-preview.cosmetic-profile-background-03 { background:radial-gradient(circle at 66% 41%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#26384c,#11151d 72%); }
.profile-card.cosmetic-profile-background-04, .cosmetic-preview.cosmetic-profile-background-04 { background:radial-gradient(circle at 83% 52%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#18352c,#10181a 72%); }
.profile-card.cosmetic-profile-background-05, .cosmetic-preview.cosmetic-profile-background-05 { background:radial-gradient(circle at 30% 18%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#1d2250,#0b0d16 72%); }
.profile-card.cosmetic-profile-background-06, .cosmetic-preview.cosmetic-profile-background-06 { background:radial-gradient(circle at 47% 29%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#4a2520,#1a1113 72%); }
.profile-card.cosmetic-profile-background-07, .cosmetic-preview.cosmetic-profile-background-07 { background:radial-gradient(circle at 64% 40%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#30363c,#111419 72%); }
.profile-card.cosmetic-profile-background-08, .cosmetic-preview.cosmetic-profile-background-08 { background:radial-gradient(circle at 81% 51%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#34343a,#121319 72%); }
.profile-card.cosmetic-profile-background-09, .cosmetic-preview.cosmetic-profile-background-09 { background:radial-gradient(circle at 28% 17%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#173d3b,#111921 72%); }
.profile-card.cosmetic-profile-background-10, .cosmetic-preview.cosmetic-profile-background-10 { background:radial-gradient(circle at 45% 28%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#193648,#11131b 72%); }
.profile-card.cosmetic-profile-background-11, .cosmetic-preview.cosmetic-profile-background-11 { background:radial-gradient(circle at 62% 39%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#28344a,#11131b 72%); }
.profile-card.cosmetic-profile-background-12, .cosmetic-preview.cosmetic-profile-background-12 { background:radial-gradient(circle at 79% 50%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#172b31,#11181c 72%); }
.profile-card.cosmetic-profile-background-13, .cosmetic-preview.cosmetic-profile-background-13 { background:radial-gradient(circle at 26% 16%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#4d241c,#171113 72%); }
.profile-card.cosmetic-profile-background-14, .cosmetic-preview.cosmetic-profile-background-14 { background:radial-gradient(circle at 43% 27%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#49351f,#17131a 72%); }
.profile-card.cosmetic-profile-background-15, .cosmetic-preview.cosmetic-profile-background-15 { background:radial-gradient(circle at 60% 38%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#34422b,#111811 72%); }
.profile-card.cosmetic-profile-background-16, .cosmetic-preview.cosmetic-profile-background-16 { background:radial-gradient(circle at 77% 49%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#263c52,#10131a 72%); }
.profile-card.cosmetic-profile-background-17, .cosmetic-preview.cosmetic-profile-background-17 { background:radial-gradient(circle at 24% 15%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#3b222f,#151117 72%); }
.profile-card.cosmetic-profile-background-18, .cosmetic-preview.cosmetic-profile-background-18 { background:radial-gradient(circle at 41% 26%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#21344d,#10151d 72%); }
.profile-card.cosmetic-profile-background-19, .cosmetic-preview.cosmetic-profile-background-19 { background:radial-gradient(circle at 58% 37%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#2a2a32,#101116 72%); }
.profile-card.cosmetic-profile-background-20, .cosmetic-preview.cosmetic-profile-background-20 { background:radial-gradient(circle at 75% 48%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#20384c,#0d1219 72%); }
.profile-card.cosmetic-profile-background-21, .cosmetic-preview.cosmetic-profile-background-21 { background:radial-gradient(circle at 22% 14%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#63331f,#1a1112 72%); }
.profile-card.cosmetic-profile-background-22, .cosmetic-preview.cosmetic-profile-background-22 { background:radial-gradient(circle at 39% 25%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#272b52,#0d101d 72%); }
.profile-card.cosmetic-profile-background-23, .cosmetic-preview.cosmetic-profile-background-23 { background:radial-gradient(circle at 56% 36%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#252540,#12111d 72%); }
.profile-card.cosmetic-profile-background-24, .cosmetic-preview.cosmetic-profile-background-24 { background:radial-gradient(circle at 73% 47%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#572d2a,#1b1015 72%); }
.profile-card.cosmetic-profile-background-25, .cosmetic-preview.cosmetic-profile-background-25 { background:radial-gradient(circle at 20% 13%, rgba(255,255,255,.12), transparent 18%), linear-gradient(145deg,#27396a,#0d1220 72%); }
.cosmetic-name-style-01 { color:#ff5867 !important; text-shadow:0 0 12px #ff586766; }
.cosmetic-name-style-02 { color:#77f3e1 !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:0 0 12px #77f3e166; }
.cosmetic-name-style-03 { color:#ffd36a !important; text-shadow:0 0 12px #ffd36a66; }
.cosmetic-name-style-04 { color:#d39dff !important; text-shadow:0 0 12px #d39dff66; }
.cosmetic-name-style-05 { color:#f3f3f3 !important;  }
.cosmetic-name-style-06 { color:#c8f35b !important; text-shadow:0 0 12px #c8f35b66; }
.cosmetic-name-style-07 { color:#6db6ff !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:0 0 12px #6db6ff66; }
.cosmetic-name-style-08 { color:#e5a477 !important; text-shadow:0 0 12px #e5a47766; }
.cosmetic-name-style-09 { color:#d08aff !important; text-shadow:0 0 12px #d08aff66; }
.cosmetic-name-style-10 { color:#ffbd57 !important; text-shadow:0 0 12px #ffbd5766; }
.cosmetic-name-style-11 { color:#88eaff !important; text-shadow:0 0 12px #88eaff66; }
.cosmetic-name-style-12 { color:#b7c16e !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:0 0 12px #b7c16e66; }
.cosmetic-name-style-13 { color:#ff83cf !important; text-shadow:0 0 12px #ff83cf66; }
.cosmetic-name-style-14 { color:#d94855 !important; text-shadow:0 0 12px #d9485566; }
.cosmetic-name-style-15 { color:#bdeaff !important; text-shadow:0 0 12px #bdeaff66; }
.cosmetic-name-style-16 { color:#c2c2c8 !important;  }
.cosmetic-name-style-17 { color:#879bff !important; text-shadow:0 0 12px #879bff66; }
.cosmetic-name-style-18 { color:#ffb84a !important; text-shadow:0 0 12px #ffb84a66; }
.cosmetic-name-style-19 { color:#ddff58 !important; text-shadow:0 0 12px #ddff5866; }
.cosmetic-name-style-20 { color:#9c9dff !important; text-shadow:0 0 12px #9c9dff66; }
.cosmetic-name-style-21 { color:#e3e3e8 !important;  }
.cosmetic-name-style-22 { color:#ff9f6b !important; text-shadow:0 0 12px #ff9f6b66; }
.cosmetic-name-style-23 { color:#a8d9e8 !important; text-shadow:0 0 12px #a8d9e866; }
.cosmetic-name-style-24 { color:#ff626f !important; text-shadow:0 0 12px #ff626f66; }
.cosmetic-name-style-25 { color:#72ef9b !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:0 0 12px #72ef9b66; }
.profile-card.cosmetic-profile-card-01, .cosmetic-preview.cosmetic-profile-card-01 { border-color:#ff526388; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ff526322; }
.profile-card.cosmetic-profile-card-02, .cosmetic-preview.cosmetic-profile-card-02 { border-color:#e7ae5588; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #e7ae5522; }
.profile-card.cosmetic-profile-card-03, .cosmetic-preview.cosmetic-profile-card-03 { border-color:#c792ff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #c792ff22; }
.profile-card.cosmetic-profile-card-04, .cosmetic-preview.cosmetic-profile-card-04 { border-color:#7d64ff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #7d64ff22; }
.profile-card.cosmetic-profile-card-05, .cosmetic-preview.cosmetic-profile-card-05 { border-color:#5d9dff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #5d9dff22; }
.profile-card.cosmetic-profile-card-06, .cosmetic-preview.cosmetic-profile-card-06 { border-color:#71d9b088; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #71d9b022; }
.profile-card.cosmetic-profile-card-07, .cosmetic-preview.cosmetic-profile-card-07 { border-color:#e0b07c88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #e0b07c22; }
.profile-card.cosmetic-profile-card-08, .cosmetic-preview.cosmetic-profile-card-08 { border-color:#ff6c6c88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ff6c6c22; }
.profile-card.cosmetic-profile-card-09, .cosmetic-preview.cosmetic-profile-card-09 { border-color:#9cdfff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #9cdfff22; }
.profile-card.cosmetic-profile-card-10, .cosmetic-preview.cosmetic-profile-card-10 { border-color:#72c8e888; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #72c8e822; }
.profile-card.cosmetic-profile-card-11, .cosmetic-preview.cosmetic-profile-card-11 { border-color:#9dd46c88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #9dd46c22; }
.profile-card.cosmetic-profile-card-12, .cosmetic-preview.cosmetic-profile-card-12 { border-color:#b6b6c088; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #b6b6c022; }
.profile-card.cosmetic-profile-card-13, .cosmetic-preview.cosmetic-profile-card-13 { border-color:#9a8cff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #9a8cff22; }
.profile-card.cosmetic-profile-card-14, .cosmetic-preview.cosmetic-profile-card-14 { border-color:#ffc56b88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ffc56b22; }
.profile-card.cosmetic-profile-card-15, .cosmetic-preview.cosmetic-profile-card-15 { border-color:#d7b78988; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #d7b78922; }
.profile-card.cosmetic-profile-card-16, .cosmetic-preview.cosmetic-profile-card-16 { border-color:#ff5c5c88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ff5c5c22; }
.profile-card.cosmetic-profile-card-17, .cosmetic-preview.cosmetic-profile-card-17 { border-color:#a783ff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #a783ff22; }
.profile-card.cosmetic-profile-card-18, .cosmetic-preview.cosmetic-profile-card-18 { border-color:#7fcaff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #7fcaff22; }
.profile-card.cosmetic-profile-card-19, .cosmetic-preview.cosmetic-profile-card-19 { border-color:#ef7f9388; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ef7f9322; }
.profile-card.cosmetic-profile-card-20, .cosmetic-preview.cosmetic-profile-card-20 { border-color:#8bb2ff88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #8bb2ff22; }
.profile-card.cosmetic-profile-card-21, .cosmetic-preview.cosmetic-profile-card-21 { border-color:#79e9aa88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #79e9aa22; }
.profile-card.cosmetic-profile-card-22, .cosmetic-preview.cosmetic-profile-card-22 { border-color:#9aa1ad88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #9aa1ad22; }
.profile-card.cosmetic-profile-card-23, .cosmetic-preview.cosmetic-profile-card-23 { border-color:#7addec88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #7addec22; }
.profile-card.cosmetic-profile-card-24, .cosmetic-preview.cosmetic-profile-card-24 { border-color:#ff777788; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #ff777722; }
.profile-card.cosmetic-profile-card-25, .cosmetic-preview.cosmetic-profile-card-25 { border-color:#f1c45d88; box-shadow:0 16px 44px rgba(0,0,0,.22), inset 0 0 0 1px #f1c45d22; }
.profile-card.cosmetic-profile-card-01, .cosmetic-preview.cosmetic-profile-card-01 { background:linear-gradient(90deg,transparent 0 9px,rgba(255,82,99,.18) 9px 11px,transparent 11px), repeating-linear-gradient(0deg,transparent 0 21px,rgba(255,255,255,.045) 21px 22px), linear-gradient(145deg,#2d1b21,#11151d); }
.profile-card.cosmetic-profile-card-02, .cosmetic-preview.cosmetic-profile-card-02 { background:repeating-linear-gradient(135deg,rgba(255,188,71,.08) 0 8px,transparent 8px 17px),linear-gradient(145deg,#252a34,#11131a); }
.profile-card.cosmetic-profile-card-03, .cosmetic-preview.cosmetic-profile-card-03 { background:radial-gradient(circle at 95% 0,rgba(245,190,78,.3),transparent 29%),linear-gradient(145deg,#30281d,#13151c); }
.profile-card.cosmetic-profile-card-04, .cosmetic-preview.cosmetic-profile-card-04 { background:radial-gradient(circle at 10% 0,rgba(97,76,181,.3),transparent 35%),linear-gradient(145deg,#151624,#0d1016); }

.cosmetic-profile-banner-01 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-01 .profile-banner-effect { background:radial-gradient(circle at 31% 20%, #65ffd455 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #65ffd433 48%, transparent 60%); animation:cosmetic-banner-glide 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-02 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-02 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #8aa0ff44, transparent 58%), linear-gradient(160deg, transparent 35%, #8aa0ff22 50%, transparent 66%); animation:cosmetic-banner-breathe 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-03 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-03 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #ff405a66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #ff405a33 6%, transparent 25%); animation:cosmetic-banner-pulse 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-04 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-04 .profile-banner-effect { background:radial-gradient(circle at 70% 20%, #72ffb055 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #72ffb033 48%, transparent 60%); animation:cosmetic-banner-glide 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-05 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-05 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #75cfff44, transparent 58%), linear-gradient(160deg, transparent 35%, #75cfff22 50%, transparent 66%); animation:cosmetic-banner-breathe 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-06 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-06 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #d084ff66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #d084ff33 6%, transparent 25%); animation:cosmetic-banner-pulse 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-07 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-07 .profile-banner-effect { background:radial-gradient(circle at 39% 20%, #ffc45e55 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #ffc45e33 48%, transparent 60%); animation:cosmetic-banner-glide 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-08 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-08 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #ff596744, transparent 58%), linear-gradient(160deg, transparent 35%, #ff596722 50%, transparent 66%); animation:cosmetic-banner-breathe 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-09 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-09 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #c8a16e66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #c8a16e33 6%, transparent 25%); animation:cosmetic-banner-pulse 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-10 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-10 .profile-banner-effect { background:radial-gradient(circle at 78% 20%, #b6d9ff55 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #b6d9ff33 48%, transparent 60%); animation:cosmetic-banner-glide 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-11 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-11 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #ff8ed344, transparent 58%), linear-gradient(160deg, transparent 35%, #ff8ed322 50%, transparent 66%); animation:cosmetic-banner-breathe 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-12 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-12 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #83e7ff66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #83e7ff33 6%, transparent 25%); animation:cosmetic-banner-pulse 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-13 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-13 .profile-banner-effect { background:radial-gradient(circle at 47% 20%, #ffbd5e55 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #ffbd5e33 48%, transparent 60%); animation:cosmetic-banner-glide 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-14 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-14 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #9fe0b744, transparent 58%), linear-gradient(160deg, transparent 35%, #9fe0b722 50%, transparent 66%); animation:cosmetic-banner-breathe 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-15 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-15 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #b28cff66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #b28cff33 6%, transparent 25%); animation:cosmetic-banner-pulse 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-16 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-16 .profile-banner-effect { background:radial-gradient(circle at 86% 20%, #ff4e5555 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #ff4e5533 48%, transparent 60%); animation:cosmetic-banner-glide 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-17 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-17 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #8b9dff44, transparent 58%), linear-gradient(160deg, transparent 35%, #8b9dff22 50%, transparent 66%); animation:cosmetic-banner-breathe 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-18 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-18 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #ff9c6b66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #ff9c6b33 6%, transparent 25%); animation:cosmetic-banner-pulse 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-19 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-19 .profile-banner-effect { background:radial-gradient(circle at 55% 20%, #77e8ff55 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #77e8ff33 48%, transparent 60%); animation:cosmetic-banner-glide 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-20 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-20 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #f1d16d44, transparent 58%), linear-gradient(160deg, transparent 35%, #f1d16d22 50%, transparent 66%); animation:cosmetic-banner-breathe 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-21 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-21 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #ff6c6c66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #ff6c6c33 6%, transparent 25%); animation:cosmetic-banner-pulse 3.3s ease-in-out infinite; }
.cosmetic-profile-banner-22 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-22 .profile-banner-effect { background:radial-gradient(circle at 24% 20%, #c0a9ff55 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #c0a9ff33 48%, transparent 60%); animation:cosmetic-banner-glide 3.8s ease-in-out infinite; }
.cosmetic-profile-banner-23 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-23 .profile-banner-effect { background:radial-gradient(ellipse at 22% 0, #6ff1d044, transparent 58%), linear-gradient(160deg, transparent 35%, #6ff1d022 50%, transparent 66%); animation:cosmetic-banner-breathe 4.3s ease-in-out infinite; }
.cosmetic-profile-banner-24 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-24 .profile-banner-effect { background:radial-gradient(circle at 82% 12%, #e48cff66, transparent 14%), radial-gradient(circle at 82% 12%, transparent 5%, #e48cff33 6%, transparent 25%); animation:cosmetic-banner-pulse 2.8s ease-in-out infinite; }
.cosmetic-profile-banner-25 .profile-banner-effect, .cosmetic-preview.cosmetic-profile-banner-25 .profile-banner-effect { background:radial-gradient(circle at 63% 20%, #ffb3d255 0 3%, transparent 18%), linear-gradient(105deg, transparent 36%, #ffb3d233 48%, transparent 60%); animation:cosmetic-banner-glide 3.3s ease-in-out infinite; }
@keyframes cosmetic-banner-glide { 0%,100% { opacity:.35; background-position:-35px 0,0 0; } 50% { opacity:.9; background-position:35px 0,0 0; } }
@keyframes cosmetic-banner-breathe { 0%,100% { opacity:.28; transform:scale(1); } 50% { opacity:.82; transform:scale(1.04); } }
@keyframes cosmetic-banner-pulse { 0%,100% { opacity:.35; } 50% { opacity:1; } }

/* ???????????????? ????? ???????? ????????. */
html.performance-mode,
html.performance-mode body {
  scroll-behavior: auto !important;
}
html.performance-mode *,
html.performance-mode *::before,
html.performance-mode *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
  will-change: auto !important;
}
html.performance-mode .noise,
html.performance-mode .brand-zombie,
html.performance-mode .profile-banner-effect,
html.performance-mode .profile-card::before {
  display: none !important;
}
html.performance-mode .modal-backdrop,
html.performance-mode .bottom-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.performance-mode .panel,
html.performance-mode .profile-card,
html.performance-mode .bio-card,
html.performance-mode .player-row,
html.performance-mode .achievement,
html.performance-mode .comment-card,
html.performance-mode .shop-item,
html.performance-mode .bottom-nav,
html.performance-mode .modal-card {
  box-shadow: none !important;
}


/* ===== Плашка соцсетей креатора ===== */
/* Своя раскладка: не наследуем 3-колоночную сетку .profile-card .bio-card (глиф/текст/действие),
   иначе блок соцсетей съезжает и не тянется на всю ширину карточки. */
.profile-card .bio-card.creator-card { position: relative; display: block; padding: 12px 15px; border-color: rgba(255,190,60,.32); background: linear-gradient(155deg, rgba(66,50,20,.28), rgba(10,12,17,.6) 65%); }
.profile-card .bio-card.creator-card::before { display: none; }
.creator-card .field-edit { top: 9px; right: 9px; }
.creator-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.creator-social { display: grid; justify-items: center; gap: 6px; padding: 11px 6px 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.24); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
a.creator-social:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.creator-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.creator-icon svg { width: 19px; height: 19px; display: block; }
.creator-icon.yt { background: rgba(255,0,51,.14); color: #ff5964; }
.creator-icon.tt { background: rgba(255,255,255,.07); color: #f2f4f7; }
.creator-icon.tg { background: rgba(34,158,217,.14); color: #54a9eb; }
.creator-social b { max-width: 100%; overflow: hidden; color: var(--text); font-size: 10.5px; font-weight: 750; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.creator-social b.unknown { color: var(--text-3); font-weight: 700; }
.creator-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); cursor: pointer; }
.creator-toggle-copy { display: grid; gap: 2px; min-width: 0; }
.creator-toggle-copy b { font-size: 12px; }
.creator-toggle-copy small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.creator-toggle .toggle-control { width: 44px; height: 25px; flex: 0 0 44px; }
.creator-toggle .toggle-control i::after { width: 17px; height: 17px; }
.creator-toggle .toggle-control input:checked + i::after { transform: translateX(19px); }
@media (max-width:440px) { .creator-socials { gap: 6px; } }

/* Admin moderation buttons */
.comment-card .field-edit { position: static; }
.admin-delete-bio, .admin-delete-comment { color: #f43f5e; border-color: rgba(244,63,79,.35); }
.admin-delete-bio:hover, .admin-delete-comment:hover { background: rgba(244,63,79,.14); }


/* ============================================================
   REDesign v2 · «Зомби в Roblox» × минимализм
   Слой переопределений. Подключается последним: старые правила
   выше сохраняют работоспособность незатронутых экранов.
   Платная косметика (cosmetic-*) имеет более высокую специфичность
   и продолжает перекрывать базовые поверхности.
   ============================================================ */
:root {
  --bg: #0e1116;
  --panel: #151a22;
  --surface-2: #1b222d;
  --surface-3: #212a37;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);
  --text: #f4f6f9;
  --text-2: #9aa4b5;
  --muted: #77818f;
  --red: #f43f4f;
  --orange: #ff8a4c;
  --red-soft: rgba(244, 63, 79, .13);
  --red-glow: rgba(244, 63, 79, .35);
  --zombie: #86d96c;
  --zombie-soft: rgba(134, 217, 108, .13);
  --amber: #ffc24b;
  --amber-soft: rgba(255, 194, 75, .12);
  --blue: #6db3ff;
  --blue-soft: rgba(109, 179, 255, .12);
  --violet: #b37aff;
  --violet-soft: rgba(179, 122, 255, .13);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 10px 26px -14px rgba(0, 0, 0, .5);
  --shadow-card: 0 22px 48px -20px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .25);
  --font-display: Nunito, Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

/* ---------- Фон: базплейт + плавающие блоки ---------- */
body {
  background: var(--bg);
}
.noise { display: none; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 460px at 18% -6%, rgba(134, 217, 108, .07), transparent 60%),
    radial-gradient(760px 420px at 105% 12%, rgba(244, 63, 79, .08), transparent 58%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(134, 217, 108, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 217, 108, .055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(85% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(85% 60% at 50% 0%, #000 30%, transparent 100%);
}
.floaters { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.floaters i { position: absolute; display: block; border-radius: 24%; }
.floaters .f1 { width: 130px; height: 130px; top: 9%; left: -46px; background: var(--zombie); opacity: .05; transform: rotate(14deg); animation: floater-drift 17s ease-in-out infinite; }
.floaters .f2 { width: 64px; height: 64px; top: 34%; right: -18px; background: var(--red); opacity: .07; transform: rotate(-10deg); animation: floater-drift 13s 2s ease-in-out infinite reverse; }
.floaters .f3 { width: 40px; height: 40px; bottom: 20%; left: 7%; background: var(--amber); opacity: .05; transform: rotate(24deg); animation: floater-drift 11s 1s ease-in-out infinite; }
.floaters .f4 { width: 90px; height: 90px; bottom: 6%; right: 12%; background: var(--blue); opacity: .045; transform: rotate(-16deg); animation: floater-drift 19s 3s ease-in-out infinite reverse; }
@keyframes floater-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -22px; } }

/* ---------- Шапка ---------- */
.brand b { font-family: var(--font-display); font-size: 13.5px; font-weight: 900; letter-spacing: .16em; }
.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  box-shadow: var(--shadow-soft);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), color .22s, border-color .22s;
}
.round-button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.round-button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.2); }

/* ---------- Плашка секретного кода ---------- */
.secret-code-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(244, 63, 79, .35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 63, 79, .1), rgba(244, 63, 79, .04));
}
.secret-code-value {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.secret-code-value code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .3);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  word-break: break-all;
  user-select: all;
}
.secret-code-copy { flex: 0 0 auto; padding: 10px 14px; font-size: 12px; }
.secret-code-note { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.secret-code-send { text-decoration: none; }

/* ---------- Типографика и кнопки ---------- */
.kicker { gap: 8px; }
.kicker::before { width: 7px; height: 7px; border-radius: 2.5px; box-shadow: 0 0 0 3px var(--red-soft); }
h1 { font-family: var(--font-display); font-weight: 1000; letter-spacing: -.025em; line-height: 1.05; }
.screen-heading { align-items: flex-end; margin: 34px 2px 22px; }
.primary-button, .outline-button, .danger-button {
  font-family: var(--font-display);
  font-weight: 900;
  border-radius: 15px;
  padding: 13px 18px;
  font-size: 13px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s, background .2s, border-color .2s;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.07); background: linear-gradient(180deg, #ff6168, #f43f4f); }
.primary-button:active { transform: translateY(2px) scale(.99); }
.primary-button {
  background: linear-gradient(180deg, #ff6168, #f43f4f);
  border-color: transparent;
  box-shadow: 0 10px 22px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(120, 10, 20, .55);
}
.primary-button:active { box-shadow: 0 4px 10px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(120, 10, 20, .55); }
.outline-button {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .28), var(--shadow-soft);
}
.outline-button:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.outline-button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.28); }
.danger-button:hover { transform: translateY(-1px); }
.danger-button:active { transform: translateY(2px); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 15px; padding: 12px 17px; font-family: var(--font-display); font-size: 12.5px; font-weight: 900; white-space: nowrap; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px) scale(.99); }
.btn-blue { background: linear-gradient(180deg, #79bcff, #4d9df5); color: #fff; box-shadow: 0 10px 22px -10px rgba(109, 179, 255, .4), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(15, 60, 120, .55); }
.btn-blue:active { box-shadow: 0 4px 10px -8px rgba(109,179,255,.4), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(15,60,120,.55); }
.center-back { border-radius: 13px; padding: 9px 14px; font-size: 12px; font-weight: 800; }

/* ---------- Нижняя навигация ---------- */
.bottom-nav {
  gap: 5px; padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(21, 26, 34, .82);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-item { font-family: var(--font-display); font-weight: 900; border-radius: 17px; }
.nav-item:active { transform: scale(.94); }
.nav-icon { border: 0; box-shadow: none; background: transparent; border-radius: 12px; transition: background .25s; }
.nav-icon img { filter: brightness(0) saturate(100%) invert(58%) sepia(8%) saturate(340%) hue-rotate(200deg) brightness(92%); transition: filter .25s; }
.nav-item.active { color: #ffaeb4; background: linear-gradient(180deg, rgba(244, 63, 79, .22), rgba(244, 63, 79, .1)); box-shadow: inset 0 0 0 1px rgba(244, 63, 79, .28), 0 6px 16px -8px var(--red-glow); }
.nav-item.active .nav-icon { border-color: transparent; background: rgba(244, 63, 79, .18); box-shadow: none; }
.nav-item.active .nav-icon img { filter: brightness(0) saturate(100%) invert(87%) sepia(16%) saturate(1400%) hue-rotate(306deg) brightness(109%); }

/* ---------- Профиль ---------- */
.profile-card {
  padding: 0 20px 20px;
  border-color: var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244, 63, 79, .1), transparent 46%),
    radial-gradient(80% 60% at 0% 100%, rgba(134, 217, 108, .06), transparent 55%),
    linear-gradient(175deg, var(--surface-2), var(--surface) 70%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* Световая кромка вместо старых полосок; у платных фонов — своя эстетика */
.profile-card::after { content: none; }
.profile-card:not([class*="cosmetic-"])::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 76, .55), rgba(244, 63, 79, .55), transparent);
  z-index: 1;
}
.profile-card > .identity {
  min-height: 0;
  margin: 0 -20px;
  padding: 26px 20px 22px;
  border-bottom: 0;
  background: none;
}
.profile-card .identity h2 { font-family: var(--font-display); font-weight: 1000; letter-spacing: -.02em; font-size: clamp(21px, 5.4vw, 26px); }
.profile-card .username { margin-top: 4px; color: var(--text-2); }
.profile-card .avatar {
  width: 88px; height: 88px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, #2a161b, #141018);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: avatar-float 5s ease-in-out infinite;
}
.avatar { border: 0; }
.profile-card .avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--orange) 22%, var(--red) 46%, rgba(244, 63, 79, .18) 62%, var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: ring-rotate 9s linear infinite;
  pointer-events: none;
}
.profile-card .avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  border-radius: 50%;
  background: rgba(244, 63, 79, .42);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  pointer-events: none;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }
@keyframes avatar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Платные рамки аватара заменяют кольцо целиком */
.profile-card .avatar[class*="cosmetic-avatar-frame-"]::before,
.profile-card .avatar[class*="cosmetic-avatar-frame-"]::after { display: none !important; }
.profile-card .avatar-edit { top: auto; right: -6px; bottom: -2px; z-index: 3; }
.status { font-family: var(--font-display); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 2.5px; background: var(--zombie); box-shadow: 0 0 8px rgba(134, 217, 108, .8); animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================================================
   МЕТРИКИ — финал. Классическая схема:
   строка 1: иконка + подпись (не заезжает под кнопку в углу)
   строка 2: крупное число (на всю ширину, кнопка уже выше)
   строка 3: единица измерения
   ============================================================ */
.profile-card .metrics { gap: 10px; margin-top: 0; padding-top: 2px; }
.profile-card .metric {
  position: relative;
  min-width: 0;
  padding: 11px 11px 12px;
  border-color: var(--line);
  border-radius: var(--r-md, 18px);
  background: rgba(10, 13, 18, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: transform .28s var(--ease-out), border-color .28s;
}
.profile-card .metric:hover { transform: translateY(-2px); border-color: var(--line-strong); }
/* Плитка целиком кликабельна: стрелка-подсказка в углу + hover-подсветка */
.profile-card .metric.clickable-metric { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.profile-card .metric .metric-arrow {
  position: absolute;
  top: 10px;
  right: 11px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  opacity: .75;
  transition: transform .22s var(--ease-out), color .22s, opacity .22s;
}
@media (hover:hover) and (pointer:fine) {
  .profile-card .metric.clickable-metric:hover .metric-arrow { transform: translateX(3px); color: var(--red); opacity: 1; }
}
.profile-card .metric.clickable-metric:active { transform: translateY(1px); }
/* Строка 1: подпись */
.metric .metric-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
}
.metric .metric-icon {
  display: grid;
  place-items: center;
  margin: 0;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 5px;
}
.metric .metric-icon svg { width: 9px; height: 9px; display: block; }
.metric .metric-icon.blue { color: var(--blue); background: rgba(109, 179, 255, .14); }
.metric .metric-icon.amber { color: var(--amber); background: rgba(255, 194, 75, .14); }
.metric .metric-icon.red { color: #ff7b84; background: rgba(244, 63, 79, .15); }
.metric .metric-label {
  min-width: 0;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* Строка 2: число — главный элемент, на всю ширину плитки */
.profile-card .metric b {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 1000;
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Строка 3: единица */
.profile-card .metric .unit,
.profile-card .metric > span:not(.metric-top span) {
  display: block;
  margin-top: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-2);
}
.metric.accent { border-color: rgba(244, 63, 79, .28); background: linear-gradient(170deg, rgba(244, 63, 79, .1), rgba(244, 63, 79, .03) 60%), rgba(10, 13, 18, .45); }
.metric.accent b { background: linear-gradient(180deg, #ffd7da, #ff7a85); -webkit-background-clip: text; background-clip: text; color: transparent; }
.record-confirm-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.record-confirm-actions .form-note { margin-top: 10px; }
.profile-card .bio-card { border-radius: 18px; background: rgba(10, 13, 18, .35); border-color: var(--line); box-shadow: none; }
/* Описание: свой SVG-глиф в фикс-колонке, идеально отцентрован */
.profile-card .bio-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-areas: "glyph text action";
  align-items: center;
  column-gap: 12px;
  padding: 13px 12px;
}
.bio-glyph {
  grid-area: glyph;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--zombie-soft);
  color: var(--zombie);
}
.bio-glyph svg { width: 17px; height: 17px; display: block; }
.profile-card .bio-card p { grid-area: text; margin: 0; }
.profile-card .classes-title small { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 11px; font-weight: 700; }
.profile-card .field-edit {
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease-out), color .2s, border-color .2s, background .2s;
}
.profile-card .field-edit:hover { color: var(--text); border-color: rgba(244, 63, 79, .55); background: var(--red-soft); }
.profile-card .field-edit:active { transform: translateY(1.5px); }
.profile-card .class-badge {
  min-height: 0;
  padding: 9px;
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(10, 13, 18, .35);
  transition: transform .26s var(--ease-out), border-color .26s, background .26s;
}
.profile-card .class-badge:hover { transform: translateY(-2px); border-color: rgba(244, 63, 79, .4); background: rgba(244, 63, 79, .06); }
.profile-card .class-badge .class-avatar { width: 38px; height: 38px; border-radius: 50%; border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.profile-card .class-badge-copy b { font-family: var(--font-display); font-weight: 1000; font-size: 13px; color: var(--text); }
.profile-card .class-badge-copy em { margin-top: 0; padding: 2.5px 8px; border-radius: 999px; background: var(--zombie-soft); color: #9fe586; font-size: 10px; }
.profile-card .profile-actions { margin-top: 16px; }

/* ---------- Игроки ---------- */
.search-box {
  padding: 0 16px;
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within { border-color: rgba(244, 63, 79, .5); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 4px rgba(244, 63, 79, .09); }
.search-box input { font-size: 14px; }
.player-filters select, .class-filter {
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: border-color .25s;
}
.player-filters select {
  appearance: none; -webkit-appearance: none;
  padding: 12px 34px 12px 14px;
  font-size: 12.5px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2377818f' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, var(--surface-2), var(--surface));
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, 0 0;
  background-size: 10px 6px, 100% 100%;
  cursor: pointer;
}
.player-filters select:hover, .class-filter:hover { border-color: var(--line-strong); }
.player-filters select:focus { border-color: rgba(244, 63, 79, .5); }
.player-filters select option { background: var(--surface-2); color: var(--text); }
.class-filter summary { padding: 12px 14px; color: var(--text-2); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.class-filter summary::after {
  content: "";
  width: 10px; height: 6px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2377818f' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .25s var(--ease-out);
}
.class-filter[open] summary::after { transform: rotate(180deg); }
.class-filter[open] { border-color: var(--line-strong); }
#player-class-filter-count { margin-left: 0; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 10.5px; font-weight: 800; }
#player-class-filter-count.active { background: var(--red-soft); color: #ff9aa2; }
.class-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 12px; border-top: 1px solid var(--line); }
.class-filter-options label { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 18, .3); color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.class-filter-options label:hover { border-color: var(--line-strong); }
.class-filter-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--red); cursor: pointer; }
.class-filter-options label:has(input:checked) { border-color: rgba(244, 63, 79, .45); background: var(--red-soft); color: #ffb9be; }
.list { display: grid; gap: 10px; max-height: none; margin-top: 2px; padding: 0; }
.player-row {
  min-height: 0;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 19px;
  background: rgba(10, 13, 18, .35);
  box-shadow: none;
  gap: 13px;
  cursor: pointer;
}
.player-row::before { content: none; }
.player-row:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(21, 26, 34, .55); box-shadow: var(--shadow-soft); }
.player-row:active { transform: translateY(0) scale(.99); }
.player-row .avatar { width: 46px; height: 46px; flex: 0 0 46px; border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 6px 14px -8px rgba(0, 0, 0, .5); }
.player-copy b { font-family: var(--font-display); font-weight: 1000; font-size: 14.5px; letter-spacing: -.01em; }
.player-copy small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.player-days { display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 8px; border-radius: 15px; border: 1px solid var(--line); background: rgba(10, 13, 18, .35); font-family: var(--font-display); }
.player-days > span:not(.verify-icon) { font-size: 14px; font-weight: 1000; line-height: 1.05; font-variant-numeric: tabular-nums; }
.player-days > span:not(.verify-icon) small { display: block; margin-top: 1px; font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .06em; opacity: .75; }
.player-days .verify-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 10px; font-size: 12.5px; font-weight: 1000; }
.player-days.verified { border-color: rgba(134, 217, 108, .25); background: var(--zombie-soft); color: #eefbf0; }
.player-days.verified .verify-icon { background: rgba(134, 217, 108, .2); color: #a8ec90; }
.player-days.unverified { border-color: rgba(244, 63, 79, .2); background: rgba(244, 63, 79, .08); color: #f2dedf; }
.player-days.unverified .verify-icon { background: rgba(244, 63, 79, .14); color: #ff9aa2; }

/* ---------- Центр ---------- */
.center-grid { gap: 12px; }
.center-card {
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  gap: 15px;
  padding: 17px 18px;
  border-color: var(--line);
  border-radius: 23px;
  background:
    radial-gradient(110% 140% at 0% 0%, var(--card-tint, transparent), transparent 55%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .28s var(--ease-out), border-color .28s, box-shadow .28s;
}
.center-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255,255,255,.06); }
.center-card:active { transform: translateY(-1px) scale(.99); }
.center-card-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  border: 1px solid var(--tile-line, var(--line-strong));
  background: var(--tile-bg, rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .28s var(--ease-out);
}
.center-card:hover .center-card-icon { transform: scale(1.06) rotate(-2deg); }
.center-card-icon img { width: 27px; height: 27px; }
.center-card b { font-family: var(--font-display); font-weight: 1000; font-size: 16.5px; letter-spacing: -.01em; }
.center-card small { font-size: 12.5px; line-height: 1.45; }
.center-card i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 20px; transition: background .25s, color .25s, transform .28s var(--ease-out); }
.center-card:hover i { background: var(--arrow-bg, var(--red-soft)); color: var(--arrow-color, #ff9aa2); transform: translateX(3px); }
.center-card[data-center-screen="shop-screen"] { --card-tint: rgba(244, 63, 79, .1); --tile-bg: var(--red-soft); --tile-line: rgba(244, 63, 79, .3); --arrow-bg: var(--red-soft); --arrow-color: #ff9aa2; }
.center-card[data-center-screen="shop-screen"] .center-card-icon img { filter: brightness(0) saturate(100%) invert(64%) sepia(30%) saturate(1400%) hue-rotate(315deg) brightness(104%); }
.center-card#open-transfer { --card-tint: rgba(134, 217, 108, .09); --tile-bg: var(--zombie-soft); --tile-line: rgba(134, 217, 108, .28); --arrow-bg: var(--zombie-soft); --arrow-color: #a8ec90; }
.center-card#open-transfer .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(52%) saturate(900%) hue-rotate(105deg) brightness(102%); }
.center-card[data-center-screen="casino-screen"] { --card-tint: rgba(109, 179, 255, .09); --tile-bg: var(--blue-soft); --tile-line: rgba(109, 179, 255, .28); --arrow-bg: var(--blue-soft); --arrow-color: #a9d2ff; }
.center-card[data-center-screen="casino-screen"] .center-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(900%) hue-rotate(180deg) brightness(104%); }

/* ---------- Казино ---------- */
.casino-balance {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(244, 63, 79, .3);
  border-radius: 13px;
  background: linear-gradient(170deg, rgba(244, 63, 79, .14), rgba(244, 63, 79, .05)), linear-gradient(180deg, var(--surface-2), var(--surface));
  color: #ffd7da; font-size: 12px; font-weight: 900; white-space: nowrap;
}
.casino-grid { gap: 12px; }
.casino-card {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px;
  padding: 17px 18px 18px;
  border-color: var(--line);
  border-radius: 23px;
  background:
    radial-gradient(120% 130% at 0% 0%, var(--card-tint, transparent), transparent 52%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .28s var(--ease-out), border-color .28s, box-shadow .28s;
}
.casino-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.casino-card h2 { font-family: var(--font-display); font-weight: 1000; font-size: 17px; letter-spacing: -.01em; }
.casino-card p { font-size: 12.5px; line-height: 1.5; }
.casino-card-icon { width: 56px; height: 56px; border-radius: 18px; transition: transform .28s var(--ease-out); }
.casino-card:hover .casino-card-icon { transform: scale(1.06) rotate(-2deg); }
.casino-card .primary-button.wide {
  --btn-a: #ff6168; --btn-b: #f43f4f; --btn-edge: rgba(120, 10, 20, .55); --btn-glow: var(--red-glow);
  grid-column: 1 / -1; margin-top: 3px;
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  border-color: transparent;
  box-shadow: 0 10px 22px -10px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 var(--btn-edge);
}
.casino-card .primary-button.wide:active { box-shadow: 0 4px 10px -8px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 var(--btn-edge); }
.casino-card.plane-card, .casino-card.rocket-card { --card-tint: rgba(255, 138, 76, .1); --tile-bg: rgba(255, 138, 76, .13); --tile-line: rgba(255, 138, 76, .3); --btn-a: #ff9a5c; --btn-b: #ff8a4c; --btn-edge: rgba(140, 55, 10, .55); --btn-glow: rgba(255, 138, 76, .35); }
.casino-card.plane-card .casino-card-icon, .casino-card.rocket-card .casino-card-icon { border-color: rgba(255, 138, 76, .3); background: rgba(255, 138, 76, .13); }
.casino-card.mines-card { --card-tint: var(--amber-soft); --tile-bg: var(--amber-soft); --tile-line: rgba(255, 194, 75, .3); --btn-a: #ffd066; --btn-b: #ffb42e; --btn-edge: rgba(130, 85, 5, .55); --btn-glow: rgba(255, 194, 75, .3); }
.casino-card.mines-card .casino-card-icon { border-color: rgba(255, 194, 75, .3); background: var(--amber-soft); }
.casino-card.roulette-card { --card-tint: var(--red-soft); --tile-bg: var(--red-soft); --tile-line: rgba(244, 63, 79, .3); --btn-a: #ff6168; --btn-b: #f43f4f; --btn-edge: rgba(120, 10, 20, .55); --btn-glow: var(--red-glow); }
.casino-card.blackjack-card { --card-tint: var(--zombie-soft); --tile-bg: var(--zombie-soft); --tile-line: rgba(134, 217, 108, .28); --btn-a: #8fdd74; --btn-b: #5cbf43; --btn-edge: rgba(20, 80, 10, .55); --btn-glow: rgba(134, 217, 108, .3); }
.casino-card.blackjack-card .casino-card-icon { border-color: rgba(134, 217, 108, .28); background: var(--zombie-soft); }

/* ---------- Магазин ---------- */
.shop-balance {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding: 16px 18px;
  border: 1px solid rgba(244, 63, 79, .28);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(244, 63, 79, .14), transparent 55%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05);
}
.shop-balance-skull { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(244, 63, 79, .25); font-size: 22px; }
.shop-balance-copy b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 1000; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.shop-balance-copy span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shop-list, .shop-category, .shop-category-list { gap: 12px; }
.shop-item {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 14px;
  border-color: var(--line);
  border-radius: 21px;
  background:
    radial-gradient(120% 150% at 0% 0%, var(--tint, transparent), transparent 55%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .28s var(--ease-out), border-color .28s;
}
.shop-item:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.shop-item.colored { --tint: rgba(244, 63, 79, .1); }
.shop-item.custom, .shop-item.cosmetic-card-custom { --tint: rgba(179, 122, 255, .1); --tile-bg: var(--violet-soft); --tile-line: rgba(179, 122, 255, .3); }
.shop-icon { width: 40px; height: 40px; border-radius: 13px; border-color: var(--tile-line, rgba(244, 63, 79, .3)); background: var(--tile-bg, var(--red-soft)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.18); }
.shop-copy b { font-family: var(--font-display); font-weight: 1000; font-size: 15.5px; letter-spacing: -.01em; }
.shop-copy small { font-size: 12px; line-height: 1.45; }
.shop-side { display: grid; gap: 6px; justify-items: end; align-content: center; }
.shop-price { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 11.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-buy.primary-button { padding: 8px 14px; font-size: 12px; }
.shop-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.shop-toggle { padding: 9px 12px; font-size: 11px; }

/* ---------- Модалки (общий вид) ---------- */
.modal-card {
  padding: 24px 20px 20px;
  border-color: var(--line-strong);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255,255,255,.06);
}
.modal-card h2 { font-family: var(--font-display); font-weight: 1000; letter-spacing: -.02em; }
.modal-close { border-radius: 12px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }

/* Окошко покупки */
#purchase-modal .modal-card { display: grid; gap: 14px; width: min(100%, 560px); }
.purchase-hint { color: var(--muted); font-size: 12px; line-height: 1.55; min-height: 0; }
.chat-preview { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(10, 13, 18, .5); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.chat-preview-label { color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.chat-line { display: grid; gap: 5px; padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.chat-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.chat-name { font-family: var(--font-display); font-weight: 1000; color: var(--text); }
.member-tag { padding: 2.5px 9px; border-radius: 9px; background: var(--zombie-soft); color: #a8ec90; box-shadow: inset 0 0 0 1px rgba(134, 217, 108, .35); font-family: var(--font-display); font-size: 11px; font-weight: 1000; letter-spacing: .03em; }
.tag-empty { color: var(--muted); font-style: italic; opacity: .6; }
.tag-field { display: grid; gap: 8px; }
.tag-field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-field label { color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.tag-field label em { font-style: normal; color: var(--muted); font-weight: 600; }
.char-count { color: var(--muted); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.modal-price { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.modal-price b { padding: 5px 12px; border-radius: 999px; background: var(--red-soft); color: #ffb9be; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.modal-price.hidden, .chat-preview.hidden { display: none; }

/* ---------- Переводы ---------- */
.currency-modal .modal-card { width: min(calc(100% - 28px), 520px); border-radius: 26px 26px 0 0; padding: 24px 20px 14px; }
.transfer-wrap { display: grid; gap: 14px; }
.transfer-head h2 { margin-top: 7px; }
.transfer-balance { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 12px; border-radius: 999px; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(244,63,79,.25); color: #ffb9be; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.transfer-form { display: grid; gap: 14px; }
.transfer-step { display: grid; gap: 9px; }
.transfer-step-head { display: flex; align-items: center; gap: 9px; }
.transfer-step-num { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 8px; background: var(--red-soft); color: #ff9aa2; font-family: var(--font-display); font-size: 11.5px; font-weight: 1000; box-shadow: inset 0 0 0 1px rgba(244,63,79,.3); }
.transfer-step.done .transfer-step-num { background: var(--zombie-soft); color: #a8ec90; box-shadow: inset 0 0 0 1px rgba(134,217,108,.3); }
.transfer-step-head b { font-family: var(--font-display); font-size: 13.5px; font-weight: 1000; }
.transfer-change { display: none; margin-left: auto; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); transition: transform .2s var(--ease-out), border-color .2s, color .2s; }
.transfer-change:hover { color: var(--text); border-color: rgba(244,63,79,.5); }
.transfer-change:active { transform: translateY(1.5px); }
.transfer-step.done .transfer-change { display: inline-block; }
.transfer-picked { display: none; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(134, 217, 108, .3); border-radius: 16px; background: var(--zombie-soft); }
.transfer-picked-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(134,217,108,.35); }
.transfer-picked-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.transfer-picked-copy { min-width: 0; display: grid; gap: 2px; flex: 1 1 auto; }
.transfer-picked-copy b { font-family: var(--font-display); font-size: 14px; font-weight: 1000; }
.transfer-picked-copy small { color: var(--muted); font-size: 11.5px; }
.transfer-picked-ok { color: #a8ec90; font-size: 18px; font-weight: 1000; }
.transfer-step.done .transfer-picked { display: flex; animation: pick-in .35s var(--ease-out) both; }
.transfer-step.done .transfer-field.search, .transfer-step.done .transfer-recipients { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.transfer-field { border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(10, 13, 18, .45); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); transition: border-color .25s; }
.transfer-field:focus-within { border-color: rgba(244, 63, 79, .5); }
.transfer-field span { color: var(--muted); }
.transfer-field.search span { font-size: 17px; font-weight: 300; }
.transfer-field input { border: 0; background: transparent; box-shadow: none; padding: 12px 0; }
.transfer-field.amount { flex: 1 1 auto; }
.transfer-field.amount input { width: 100%; font-family: var(--font-display); font-size: 17px; font-weight: 1000; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.transfer-field.amount input::-webkit-outer-spin-button, .transfer-field.amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.transfer-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.transfer-chip { padding: 9px 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 18, .35); color: var(--text-2); font-size: 11.5px; font-weight: 800; white-space: nowrap; transition: transform .2s var(--ease-out), border-color .2s, background .2s, color .2s; }
.transfer-chip:hover { border-color: rgba(244,63,79,.45); background: var(--red-soft); color: #ffb9be; }
.transfer-chip:active { transform: translateY(1.5px); }
.transfer-warn { color: #ffb168; font-size: 11.5px; font-weight: 600; line-height: 1.45; min-height: 0; display: none; }
.transfer-warn.show { display: block; }
.transfer-summary { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 13, 18, .35); font-size: 12.5px; }
.transfer-summary .row { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.transfer-summary .row b { color: var(--text); font-variant-numeric: tabular-nums; }
.transfer-summary .row.total { padding-top: 7px; border-top: 1px dashed var(--line-strong); color: var(--text); font-weight: 800; }
.transfer-summary .row.total b { color: #ffd7da; font-family: var(--font-display); font-size: 14px; }
.transfer-recipients { display: grid; gap: 6px; max-height: 218px; overflow: auto; padding: 3px; border: 0; background: transparent; }
.recipient { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text); text-align: left; transition: border-color .2s, background .2s; }
.recipient:hover { border-color: rgba(244,63,79,.4); background: var(--red-soft); }
.recipient.selected { border-color: rgba(134,217,108,.4); background: var(--zombie-soft); }
.recipient .avatar { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.recipient-copy { min-width: 0; display: grid; gap: 2px; }
.recipient-copy b { overflow: hidden; font-family: var(--font-display); font-size: 13px; font-weight: 1000; text-overflow: ellipsis; white-space: nowrap; }
.recipient-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recipient-mark { opacity: 0; color: #a8ec90; font-size: 15px; font-weight: 1000; transition: opacity .2s; }
.recipient.selected .recipient-mark { opacity: 1; }
.transfer-success { display: none; place-items: center; gap: 10px; text-align: center; padding: 8px 0 2px; }
.transfer-success:not(.hidden) { display: grid; animation: pick-in .4s var(--ease-out) both; }
.transfer-success-check { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 22px; background: var(--zombie-soft); box-shadow: inset 0 0 0 1px rgba(134,217,108,.35), 0 12px 26px -12px rgba(134, 217, 108, .4); color: #a8ec90; font-size: 30px; font-weight: 1000; }
.transfer-success b { font-family: var(--font-display); font-size: 18px; font-weight: 1000; }
.transfer-success p { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.transfer-success p b { color: #ffd7da; }

/* ---------- Забеги ---------- */
.run-list { gap: 12px; }
.run-card { border-radius: 21px; background: linear-gradient(175deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05); padding: 17px 18px; transition: transform .28s var(--ease-out), border-color .28s; }
.run-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.run-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.run-who .avatar { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.run-who h3 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 1000; letter-spacing: -.01em; }
.run-who small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.run-days { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 12px; border: 1px solid rgba(244,63,79,.25); border-radius: 13px; background: var(--red-soft); color: #ffd7da; font-family: var(--font-display); font-size: 13px; font-weight: 1000; white-space: nowrap; font-variant-numeric: tabular-nums; }
.run-days small { font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; color: #ff9aa2; }
.run-goal { margin: 12px 0 0; color: #ccd3de; font-size: 13.5px; line-height: 1.55; }
.run-meta { margin-top: 12px; gap: 6px; }
.run-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 13, 18, .35); color: var(--text-2); font-size: 11px; font-weight: 600; }
.run-meta span.accent { border-color: rgba(134,217,108,.28); background: var(--zombie-soft); color: #b9f0a3; }
.run-actions { margin-top: 14px; }
.application-status { border-color: var(--line); border-radius: 19px; background: rgba(10, 13, 18, .35); box-shadow: none; }
.application-status b { font-family: var(--font-display); font-weight: 1000; font-size: 13.5px; }
.application-status .status { border-color: rgba(255, 194, 75, .3); background: rgba(255, 194, 75, .1); color: #ffd88a; }
.application-status .status::before { background: var(--amber); box-shadow: 0 0 8px rgba(255, 194, 75, .6); }
.application-status .status.verified { border-color: rgba(134, 217, 108, .25); background: var(--zombie-soft); color: #a8ec90; }
.application-status .status.verified::before { background: var(--zombie); box-shadow: 0 0 8px rgba(134, 217, 108, .8); }
.application-status .danger-button { justify-self: start; padding: 8px 13px; font-size: 11px; }

/* ---------- Приглашения ---------- */
.referral-hero {
  position: relative; overflow: hidden;
  padding: 22px 20px;
  border-color: var(--line);
  border-radius: 24px;
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(109, 179, 255, .12), transparent 50%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05);
}
.referral-hero h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 1000; letter-spacing: -.02em; }
.referral-hero p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }
.referral-hero .primary-button { margin-top: 16px; }
.referral-icon-bubble { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 17px; border: 1px solid rgba(109, 179, 255, .3); background: var(--blue-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.18); font-size: 23px; }
.referral-link { display: flex; gap: 8px; margin-top: 16px; }
.referral-link input { min-width: 0; flex: 1 1 auto; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 15px; outline: 0; background: rgba(10, 13, 18, .45); color: var(--text-2); font-size: 12px; font-weight: 600; box-shadow: inset 0 2px 6px rgba(0,0,0,.25); transition: border-color .2s; }
.referral-link input:focus { border-color: rgba(109, 179, 255, .5); }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.referral-stat { padding: 15px 12px; border: 1px solid var(--line); border-radius: 19px; background: rgba(10, 13, 18, .35); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); text-align: center; transition: transform .28s var(--ease-out), border-color .28s; }
.referral-stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.referral-stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 1000; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.referral-stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.referral-stat.invited b { color: #a9d2ff; }
.referral-stat.paid b { color: #b9f0a3; }
.referral-stat.pending b { color: #ffd88a; }
.referral-how { margin-top: 12px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 19px; background: rgba(10, 13, 18, .35); }
.referral-how ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: howstep; }
.referral-how li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 12.5px; line-height: 1.5; counter-increment: howstep; }
.referral-how li::before { content: counter(howstep); display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 8px; background: var(--red-soft); color: #ff9aa2; font-family: var(--font-display); font-size: 11px; font-weight: 1000; box-shadow: inset 0 0 0 1px rgba(244,63,79,.28); }
.referral-how li b { color: var(--text); font-weight: 700; }

/* ---------- Вики: раздел скрыт плашкой ---------- */
.wiki-plate {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 10px;
  padding: 34px 26px 30px;
  border: 1px solid rgba(255, 194, 75, .28);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 194, 75, .09), transparent 55%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05);
  text-align: center;
}
.wiki-plate::before {
  content: "";
  position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 194, 75, .55), transparent);
}
.wiki-plate .plate-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 194, 75, .35); border-radius: 19px; background: rgba(255, 194, 75, .12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.18); color: #ffd88a; font-size: 26px; font-weight: 1000; }
.wiki-plate .plate-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.wiki-plate .plate-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 2.5px; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 194, 75, .12); }
.wiki-plate h2 { font-family: var(--font-display); font-size: 21px; font-weight: 1000; letter-spacing: -.02em; }
.wiki-plate p { max-width: 380px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.wiki-plate-btn { margin-top: 6px; padding: 13px 34px; background: linear-gradient(180deg, #ffd066, #ffb42e); border-color: transparent; color: #3d2c05; box-shadow: 0 10px 22px -10px rgba(255, 194, 75, .4), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(130, 85, 5, .5); }
.wiki-plate-btn:hover { filter: brightness(1.05); background: linear-gradient(180deg, #ffd066, #ffb42e); }

/* ---------- Тосты ---------- */
.notice {
  border: 1px solid rgba(244, 63, 79, .4);
  border-radius: 15px;
  background: rgba(34, 19, 23, .96);
  color: #ffd1d3;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- Адаптив ---------- */
@media (max-width: 480px) {
  .app-shell { width: min(calc(100% - 26px), 700px); }
  .profile-card { padding: 0 16px 16px; }
  .profile-card > .identity { margin: 0 -16px; padding: 24px 16px 18px; gap: 13px; }
  .profile-card .avatar { width: 76px; height: 76px; }
  .metrics { gap: 8px; }
  .shop-item { grid-template-columns: 46px minmax(0, 1fr); }
  .shop-icon { width: 46px; height: 46px; border-radius: 15px; }
  .shop-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
  .shop-side .shop-price { justify-self: start; }
  .shop-side .shop-buy, .shop-side .shop-actions { justify-self: stretch; }
  .shop-actions .shop-buy { flex: 1; }
  .center-card, .casino-card { grid-template-columns: 50px minmax(0, 1fr); padding: 15px 14px 16px; gap: 12px; }
  .center-card-icon, .casino-card-icon { width: 50px; height: 50px; border-radius: 16px; }
  .center-card-icon img, .casino-card-icon img { width: 25px; height: 25px; }
  .center-card i { width: 30px; height: 30px; }
  .player-row { padding: 11px 12px; gap: 11px; }
  .player-days { padding: 6px 11px 6px 7px; gap: 7px; }
  .player-days > span:not(.verify-icon) { font-size: 13px; }
  .class-filter-options { grid-template-columns: 1fr; }
  .referral-link { flex-direction: column; }
  .referral-link .btn { justify-content: center; }
  .referral-stats { gap: 8px; }
  .referral-stat b { font-size: 19px; }
  .run-card { padding: 15px 14px; }
  .run-days { padding: 6px 10px; font-size: 12px; }
}

/* ---------- Бережный режим и доступность ---------- */
.performance-mode .floaters { display: none; }
.performance-mode *, .performance-mode *::before, .performance-mode *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Redesign v2 · hotfix pass (по отзывам с устройств)
   ============================================================ */

/* ============================================================
   Redesign v2 · hotfix pass (по отзывам с устройств)
   ============================================================ */

/* Аватар: убрали парение — кольцо всегда синхронно с фото и не выходит за края */
.profile-card .avatar { animation: none; overflow: visible; }

/* Метрики: перекрытия старых правил удалены — действует единый блок выше */

/* Roblox-плитка: кнопки-иконки одного размера (стили в redesign-блоке выше) */

/* Описание: сетка задаётся в redesign-блоке, паддинги-костыли убраны */

/* Игроки: «Статусы» и «Классы» в один ряд, одной высоты */
.player-filters .class-filter { grid-column: auto; }
.player-filters select, .player-filters .class-filter { min-height: 46px; }
.player-filters .class-filter summary { min-height: 44px; padding: 0 14px; }

/* Центр: стрелки-переходы не съезжают */
.center-card { display: grid; align-items: center; }
.center-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.center-card > i { align-self: center; }

/* Переводы: нейтрализуем наследие .edit-card внутри модалки */
.currency-modal .modal-card { display: block; }
.currency-modal .edit-card { display: block; gap: 0; }
.currency-modal .transfer-field { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.currency-modal .transfer-field > span { flex: 0 0 auto; }
.currency-modal .transfer-field input { flex: 1 1 auto; width: auto; min-width: 0; }
.currency-modal .transfer-field.amount input { font-family: var(--font-display); font-size: 16px; font-weight: 1000; }
.currency-modal .transfer-field.search input { font-family: Inter, sans-serif; font-size: 13.5px; font-weight: 400; }
.currency-modal .transfer-wrap { display: grid; gap: 14px; }

/* Магазин: цена и кнопка прижаты влево */
.shop-side { justify-items: start; }
@media (max-width: 480px) {
  .shop-side { display: flex; justify-content: flex-start; align-items: center; gap: 10px; }
  .shop-side .shop-price { justify-self: start; }
  .shop-side .shop-buy { justify-self: start; flex: 0 0 auto; }
}

/* Чужие профили: окно плотнее и темнее, ничего не просвечивает */
.modal-backdrop { background: rgba(4, 6, 9, .84); }
.modal-card { background: linear-gradient(175deg, #1c232e, #151a22); }
#profile-modal .modal-card { border-color: rgba(255, 255, 255, .16); box-shadow: 0 -28px 80px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255,255,255,.08); }

/* ============================================================
   Redesign v2 · pass 3 (правки по отзыву)
   ============================================================ */

/* Аватар: простое чистое кольцо вместо вращающегося градиента */
.profile-card .avatar::before, .profile-card .avatar::after { content: none !important; display: none !important; }
.profile-card .avatar {
  border: 3px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55), 0 0 0 5px rgba(244, 63, 79, .1);
}

/* Метрики: старый адаптив удалён — единый блок выше работает на всех экранах */

/* Roblox-плитка: компактная однострочная, все кнопки в ряд в краю справа */
.profile-card .roblox-profile {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  min-height: 0;
}
.profile-card .bio-card.roblox-profile { padding: 8px 10px; }
.roblox-icon { width: 32px; height: 32px; border-radius: 10px; }
.roblox-profile-copy p { margin: 0; font-size: 13px; line-height: 1.25; }
.roblox-inline-actions { grid-column: auto; display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin: 0; }
.roblox-chip-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .18s, color .18s, background .18s;
}
.roblox-chip-btn:hover { color: var(--text); border-color: rgba(244, 63, 79, .55); background: var(--red-soft); }
.roblox-chip-btn:active { transform: translateY(1.5px); }

/* Описание: поздний дубль удалён — сетка из redesign-блока */

/* Модалки: мягкое размытие вместо тёмного занавеса */
.modal-backdrop {
  background: rgba(6, 8, 12, .45);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Центр: без стрелок, карточки компактнее */
.center-card i { display: none; }
.center-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
}
.center-card-icon { width: 46px; height: 46px; border-radius: 14px; }
.center-card-icon img { width: 24px; height: 24px; }
.center-card b { font-size: 15px; }
.center-card small { font-size: 11.5px; }

/* Магазин: баланс слева без черепа; кнопка слева, цена справа */
.shop-balance { justify-content: flex-start; padding: 14px 16px; }
.shop-balance-skull { display: none; }
.shop-balance-copy { display: flex; align-items: baseline; gap: 10px; }
.shop-balance-copy b { font-size: 20px; }
.shop-balance-copy span { font-size: 10.5px; letter-spacing: .08em; }
.shop-side { display: grid; gap: 8px; justify-items: stretch; }
.shop-side .shop-price { order: 2; justify-self: end; }
.shop-side .shop-actions { order: 1; justify-self: start; }
.shop-side .shop-buy { order: 1; justify-self: start; }
.shop-actions { display: flex; gap: 6px; }
@media (max-width: 480px) {
  .shop-side { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 10px; }
}

/* Переводы: поля с внутренним отступом, список аккуратными плитками */
.currency-modal .transfer-field { padding: 0 14px; }
.currency-modal .transfer-field input { padding: 12px 0; }
.currency-modal .transfer-field.search span { display: grid; place-items: center; width: 18px; }
.transfer-recipients { gap: 8px; }
.recipient {
  padding: 9px 10px;
  border-color: var(--line);
  background: rgba(10, 13, 18, .35);
  border-radius: 14px;
}
.recipient:hover { border-color: rgba(244, 63, 79, .4); background: rgba(244, 63, 79, .06); }
.recipient.selected { border-color: rgba(134, 217, 108, .4); background: var(--zombie-soft); }

/* ============================================================
   Redesign v2 · pass 4 (дубль блока удалён: он повторялся дважды,
   масштаб аватарки задаётся один раз — в pass 9)
   ============================================================ */

/* Метрики: старые ::before-подписи («РЕКОРД» и т.п.) имели специфичность
   выше — дубли удалены */
.profile-card .metric:nth-child(1)::before,
.profile-card .metric:nth-child(2)::before,
.profile-card .metric:nth-child(3)::before { content: none; }

/* Roblox-плитка: (единый стиль — в redesign-блоке pass 3 выше) */

/* Отзывы: счётчик не заходит под крестик */
.reviews-heading { padding-right: 44px; }

/* Статусы: три опции в ряд, раскрываются как классы */
.status-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) {
  .status-filter-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Redesign v2 · pass 4 (дубль блока удалён: он повторялся дважды,
   масштаб аватарки теперь задаётся один раз — в pass 9)
   ============================================================ */

/* Метрики: старые ::before-подписи («РЕКОРД» и т.п.) имели специфичность
   выше — дубли удалены */
.profile-card .metric:nth-child(1)::before,
.profile-card .metric:nth-child(2)::before,
.profile-card .metric:nth-child(3)::before { content: none; }

/* Roblox-плитка: (единый стиль — в redesign-блоке pass 3 выше) */

/* Отзывы: счётчик не заходит под крестик */
.reviews-heading { padding-right: 44px; }

/* Статусы: три опции в ряд, раскрываются как классы */
.status-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) {
  .status-filter-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Redesign v2 · pass 5–6 (роблокс-плитка: дубли удалены — единый
   компактный стиль с кнопками-иконками в redesign-блоке выше)
   ============================================================ */

/* Аватар: портрет сам по себе — без рамок, колец и масштабирования */
.profile-card .avatar { border: 0; border-radius: 50%; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }

/* ============================================================
   Redesign v2 · pass 7 (магазин: явные границы карточек)
   ============================================================ */
.shop-item { border-color: rgba(255, 255, 255, .12); box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05); }

/* ============================================================
   Redesign v2 · pass 9 (аватар: круг арта ровно по ободку маски)
   Портреты 160×160, нарисованный круг занимает ≈92% квадрата
   (диаметр ~149 из 160). 1 / 0.92 = 1.087 — арт дотягивается
   ровно до края круглой маски: без светлой кромки и без обрезки.
   ============================================================ */
.avatar img,
.class-avatar,
.avatar-option img,
.reviewer-avatar img,
.transfer-picked-avatar img,
.wiki-class-avatar { transform-origin: center; transform: scale(1.087); }


/* ============================================================
   Флаппи: хардкор-аркада казино (очки = Черепки)
   ============================================================ */

  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none; text-align: center;
}
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 26px; text-align: center;
  background: rgba(9, 12, 18, .8); backdrop-filter: blur(5px);
}


/* ============================================================
   PREVIEW LAYER v3: биохазард-эмблема, фото-фон, гроза
   ============================================================ */
/* Отключаем старые фоновые слои v2 */
.floaters, .noise { display: none !important; }
body::before, body::after { content: none !important; background: none !important; }
body { background: #0a0709 !important; }

/* Новые фоновые слои */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-photo {
  position: absolute; inset: 0;
  background: url("/assets/bg-apocalypse.webp") center top / cover no-repeat;
}
.bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,8,11,.45) 0%, rgba(7,8,11,.2) 30%, rgba(7,8,11,.6) 78%, rgba(7,8,11,.88) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0,0,0,.5) 100%);
}
/* Гроза: дождь */
.bg-rain { position: absolute; inset: 0; overflow: hidden; }
.bg-rain i {
  position: absolute; top: -12%; width: 2px; height: 16vh; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(220,225,235,.16));
  animation: bg-rain-fall linear infinite;
}
.bg-rain .r1 { left: 8%;  animation-duration: 1.1s; }
.bg-rain .r2 { left: 21%; animation-duration: .9s;  animation-delay: .3s; }
.bg-rain .r3 { left: 35%; animation-duration: 1.3s; animation-delay: .6s; }
.bg-rain .r4 { left: 52%; animation-duration: 1s;   animation-delay: .15s; }
.bg-rain .r5 { left: 66%; animation-duration: 1.2s; animation-delay: .45s; }
.bg-rain .r6 { left: 79%; animation-duration: .95s; animation-delay: .7s; }
.bg-rain .r7 { left: 92%; animation-duration: 1.15s; animation-delay: .2s; }
@keyframes bg-rain-fall {
  0%   { transform: translateY(-20vh); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(120vh); opacity: .6; }
}
/* Гроза: зарницы */
.bg-flash {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255,90,100,.16), transparent 70%);
  animation: bg-lightning 9s ease-out infinite;
}
@keyframes bg-lightning {
  0%, 88%, 94%, 100% { opacity: 0; }
  90% { opacity: 1; }
  92% { opacity: .2; }
  93% { opacity: .8; }
}

/* Эмблема вместо зомбика */
.brand-zombie { display: none !important; }
.brand-emblem {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 13px; overflow: hidden;
  box-shadow: 0 8px 20px -8px var(--red-glow), 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-emblem img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-emblem::after {
  content: ""; position: absolute; inset: -4px; border-radius: 16px;
  border: 1px solid rgba(244,63,79,.35);
  animation: emblem-pulse 2.8s ease-in-out infinite; pointer-events: none;
}
@keyframes emblem-pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.06); opacity: .2; } }

.brand-emblem.is-alert { animation: emblem-alert .32s ease-out; }
@keyframes emblem-alert { 0% { transform:scale(1) rotate(0); } 48% { transform:scale(1.13) rotate(-5deg); } 100% { transform:scale(1) rotate(0); } }

/* ============================================================
   PREVIEW LAYER v4: единый фон для всех модалок
   ============================================================ */
/* Единая текстура для всех окон: чужой профиль, переводы, покупка, редактирование */
.modal-backdrop {
  background: rgba(4, 6, 9, .8);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
}
.modal-card {
  border: 1px solid rgba(244, 63, 79, .2);
  background:
    linear-gradient(180deg, rgba(18,22,29,.30), rgba(10,12,16,.62)),
    url("/assets/bg-modal.webp") center / cover no-repeat,
    #14181f;
  box-shadow: 0 -28px 90px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.07);
}
.modal-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,138,76,.6) 30%, rgba(244,63,79,.65) 50%, rgba(255,138,76,.6) 70%, transparent);
  z-index: 1;
}


/* Инлайн-поле причины в админ-карточках (замена window.prompt, не работающего в Telegram WebView) */
.admin-comment-input { width: 100%; margin: 10px 0 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: rgba(10,13,18,.45); color: var(--text); font-size: 12.5px; }
.admin-comment-input:focus { border-color: rgba(244,63,79,.5); }

/* Уведомление о статусе проверки рекорда (в потоке экрана профиля) */
.verify-alert { position: relative; display: flex; align-items: center; gap: 13px; margin-top: 14px; width: 100%; padding: 13px 42px 13px 16px; border: 1px solid rgba(255,177,66,.42); border-radius: 17px; background: linear-gradient(155deg, rgba(64,44,16,.68) 0%, rgba(26,18,10,.74) 55%, rgba(16,13,10,.78) 100%); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 16px 38px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07); overflow: hidden; transform: none; }
.verify-alert::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, #ffc24d, #ff7a2f); }
.verify-alert.rejected { border-color: rgba(244,63,79,.5); background: linear-gradient(155deg, rgba(70,18,26,.68) 0%, rgba(30,13,17,.74) 55%, rgba(18,10,12,.78) 100%); }
.verify-alert.rejected::before { background: linear-gradient(180deg, #ff5f6d, #d82130); }
.verify-alert-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(255,177,66,.45); border-radius: 14px; background: radial-gradient(circle at 32% 26%, rgba(255,190,90,.3), rgba(255,177,66,.05)); color: #ffdca6; font-size: 18px; font-weight: 850; }
.verify-alert.rejected .verify-alert-icon { border-color: rgba(244,63,79,.5); background: radial-gradient(circle at 32% 26%, rgba(255,110,120,.3), rgba(244,63,79,.05)); color: #ffc4c8; }
.verify-alert-body { display: grid; gap: 6px; min-width: 0; }
.verify-alert-body .kicker { color: #ffc24d; font-size: 8.5px; letter-spacing: .13em; }
.verify-alert.rejected .verify-alert-body .kicker { color: #ff7382; }
.verify-alert-body p { margin: 0; color: #f5e7d6; font-size: 12.5px; line-height: 1.5; }
.verify-alert.rejected .verify-alert-body p { color: #ffdcde; }
.verify-alert-comment { padding: 7px 11px; border-left: 2px solid rgba(244,63,79,.6); border-radius: 3px 11px 11px 3px; background: rgba(244,63,79,.1); color: #eeb0b5 !important; font-size: 11.5px !important; font-style: italic; }
.verify-alert-comment:empty { display: none; }
.verify-alert-body .primary-button { justify-self: start; margin-top: 2px; padding: 8px 16px; font-size: 11px; }
.verify-alert-close { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: rgba(255,255,255,.4); font-size: 17px; line-height: 1; transition: color .2s ease, background .2s ease; }
.verify-alert-close:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.verify-alert:not(.hidden) { animation: none; }
/* Полоска загрузки скриншота */
.verify-progress { position: relative; margin-top: 14px; width: 100%; height: 8px; border: 1px solid rgba(255,177,66,.3); border-radius: 99px; background: rgba(14,13,10,.8); overflow: hidden; }
.verify-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb742, #ff5f6d); box-shadow: 0 0 14px rgba(255,150,70,.5); transition: width .25s ease; }
.verify-progress-label { margin: 8px 2px 0; color: #ffd9a3; font-size: 12px; font-weight: 700; text-align: center; }
.verify-alert.compact { gap: 11px; padding: 10px 38px 10px 14px; }
.verify-alert.compact::before { background: linear-gradient(180deg, #6ee7a8, #2f9e68); }
.verify-alert.compact { border-color: rgba(110,231,168,.35); background: linear-gradient(155deg, rgba(18,44,30,.68) 0%, rgba(14,22,16,.76) 55%, rgba(12,15,12,.78) 100%); }
.verify-alert.compact .verify-alert-icon { width: 34px; height: 34px; border-color: rgba(110,231,168,.4); background: radial-gradient(circle at 32% 26%, rgba(110,231,168,.26), rgba(110,231,168,.05)); color: #b8f3d4; font-size: 15px; }
.verify-alert.compact .verify-alert-body .kicker { color: #6ee7a8; }
.verify-alert.compact .verify-alert-body p { color: #dcf3e6; }
.verify-alert.compact .verify-alert-comment:empty { display: none; }

/* ============================================================
   ПИКСЕЛИ — общее полотно (canvas + колесо палитры)
   ============================================================ */
.pixels-plate { display: grid; gap: 10px; padding: 12px; }
.pixels-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pixels-picker { display: flex; align-items: center; gap: 10px; }
.pixels-wheel { position: relative; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: conic-gradient(from 0deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.14); }
.pixels-wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 74%); }
.pixels-wheel-knob { position: absolute; z-index: 2; width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #f43f4f); border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.55); transform: translate(-50%, -50%); left: 84%; top: 50%; pointer-events: none; }
.pixels-brightness { width: 96px; height: 26px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 99px; background: linear-gradient(90deg, #000, #fff); border: 1px solid var(--line-strong); outline: none; cursor: pointer; }
.pixels-brightness::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.35); box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.pixels-brightness::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.35); box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.pixels-tools { display: flex; align-items: center; gap: 6px; }
.pixels-tool { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(180deg, var(--surface-2), var(--panel)); color: var(--text-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.22); transition: transform .18s var(--ease-out), color .18s, border-color .18s, background .18s; }
.pixels-tool svg { width: 18px; height: 18px; }
.pixels-tool:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.pixels-tool:active { transform: translateY(1px) scale(.97); }
.pixels-tool.active { color: #fff; border-color: rgba(244,63,79,.55); background: linear-gradient(180deg, rgba(244,63,79,.32), rgba(244,63,79,.16)); box-shadow: 0 4px 14px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.14); }
.pixels-tool-sep { width: 1px; height: 22px; margin: 0 2px; background: var(--line-strong); }
.pixels-viewport { position: relative; height: min(64vh, 520px); border: 1px solid var(--line); border-radius: 14px; background: #0b0e13; overflow: hidden; touch-action: none; cursor: crosshair; }
.pixels-viewport.is-panning { cursor: grabbing; }
.pixels-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pixels-canvas.is-erasing { cursor: cell; }
.pixels-toast { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) translateY(6px); max-width: calc(100% - 20px); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(10,12,16,.92); color: var(--text); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s var(--ease-out); z-index: 5; text-align: center; }
.pixels-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pixels-toast.bad { border-color: rgba(244,63,79,.5); color: #ffb3ba; }
@media (max-width: 560px) {
  .pixels-plate { padding: 10px; gap: 8px; }
  .pixels-wheel { width: 48px; height: 48px; flex-basis: 48px; }
  .pixels-brightness { width: 84px; }
  .pixels-tool { width: 34px; height: 34px; }
  .pixels-viewport { height: min(58vh, 440px); }
}
/* Пиксели в режиме производительности */
.performance-mode .pixels-tool, .performance-mode .pixels-toast { transition: none; }

/* ============================================================
   АДМИН: сообщения бота, логи сайта (сверху панели), красивый дизайн
   ============================================================ */
.admin-section-live { border: 1px solid rgba(244,63,79,.22); background: linear-gradient(160deg, rgba(30,12,14,.55), rgba(16,10,12,.72)); border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 8px 24px -18px rgba(244,63,79,.45); }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.admin-section-title { display: flex; align-items: center; gap: 10px; }
.admin-section-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; border: 1px solid rgba(244,63,79,.35); background: radial-gradient(circle at 30% 25%, rgba(244,63,79,.25), rgba(244,63,79,.06)); font-size: 17px; }
.admin-section-title h2 { margin: 0; font-size: 14px; }
.admin-section-title small { color: var(--text-2); font-size: 10.5px; }
.admin-icon-btn { min-width: 38px; padding: 8px 12px; font-size: 15px; line-height: 1; }
.admin-chip-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.admin-chip:hover { color: var(--text); border-color: var(--line-strong); }
.admin-chip.active { color: #fff; border-color: rgba(244,63,79,.55); background: linear-gradient(180deg, rgba(244,63,79,.35), rgba(244,63,79,.18)); }
.admin-msg-search-box { margin-top: 2px; }
.admin-msg-list, .admin-activity-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.admin-msg-card { border: 1px solid var(--line); border-left: 3px solid rgba(244,63,79,.5); border-radius: 12px; background: rgba(12,10,11,.72); padding: 9px 12px; }
.admin-msg-card.is-outgoing { border-left-color: rgba(110,231,168,.55); }
.admin-msg-head { display: flex; align-items: center; gap: 8px; }
.admin-msg-badge { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; }
.admin-msg-meta { min-width: 0; }
.admin-msg-meta b { display: block; font-size: 12.5px; }
.admin-msg-meta small { color: var(--text-2); font-size: 10px; }
.admin-msg-text { margin: 6px 0 0 34px; white-space: pre-wrap; word-break: break-word; color: var(--text); font-size: 12.5px; line-height: 1.5; }
.admin-activity-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,10,11,.6); }
.admin-activity-row .admin-msg-badge { width: 24px; height: 24px; flex-basis: 24px; font-size: 11px; }
.admin-activity-body { min-width: 0; }
.admin-activity-body .admin-log-line { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.admin-activity-body small { color: var(--text-2); font-size: 10px; }
.admin-send-user { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; }
.admin-send-user small { color: var(--text-2); }
.admin-send-user.selected { border-color: rgba(244,63,79,.6); background: rgba(244,63,79,.14); }
#admin-send-users { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; margin: 6px 0 10px; }
#admin-send-user-field label { margin-top: 6px; }

/* ============================================================
   КАЗИНО · РЕДИЗАЙН (неон-апокалипсис)
   Перекрывает старые стили игр за счёт порядка в конце файла.
   ============================================================ */

/* ---------- Общий стиль игровых экранов ---------- */
.casino-game-screen .casino-controls {
  border-radius: 18px;
}
.casino-game-screen .casino-controls input,
.casino-game-screen .casino-controls select {
  border-color: var(--line-strong);
  background: #0b0e15;
  font-weight: 800;
}
.cashout-button {
  background: linear-gradient(180deg, #ffd884, #f0a52e);
  color: #3a2300;
  box-shadow: 0 10px 24px rgba(255, 194, 75, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-weight: 900;
}
.cashout-button:hover { box-shadow: 0 14px 30px rgba(255, 194, 75, .4); }
.cashout-button:disabled { opacity: .45; box-shadow: none; }
.fairness-note { color: var(--muted); font-size: 10px; margin-top: 3px; display: block; }

/* ---------- САМОЛЁТ ---------- */
.rocket-stage {
  position: relative;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1322 0%, #131024 46%, #1c1018 78%, #241016 100%);
}
.rocket-stage.shake { animation: rk-shake .5s; }
@keyframes rk-shake {
  0%, 100% { transform: translate(0); }
  15% { transform: translate(-6px, 3px); }
  30% { transform: translate(5px, -4px); }
  45% { transform: translate(-4px, 2px); }
  60% { transform: translate(4px, 2px); }
  75% { transform: translate(-2px, -2px); }
}
.rocket-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 0, transparent 100%),
    radial-gradient(1px 1px at 34% 8%, #fff7 0, transparent 100%),
    radial-gradient(1.6px 1.6px at 58% 22%, #fff6 0, transparent 100%),
    radial-gradient(1px 1px at 76% 12%, #fff7 0, transparent 100%),
    radial-gradient(1.4px 1.4px at 90% 28%, #fff5 0, transparent 100%),
    radial-gradient(1px 1px at 22% 34%, #fff5 0, transparent 100%),
    radial-gradient(1.2px 1.2px at 66% 38%, #fff6 0, transparent 100%);
  animation: rk-twinkle 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rk-twinkle { from { opacity: .5; } to { opacity: 1; } }
.rocket-stage::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 210deg at 70% 30%, transparent 0deg, rgba(244,63,79,.16) 60deg, rgba(109,179,255,.1) 130deg, transparent 190deg);
  filter: blur(26px);
  animation: rk-aurora 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rk-aurora {
  from { transform: translateX(-6%) rotate(-4deg); }
  to { transform: translateX(6%) rotate(5deg); }
}
.rocket-city { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.rocket-city svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.rocket-city svg path { fill: #0a0c13; }
.rocket-city.far { opacity: .5; animation: rk-city 26s linear infinite; }
.rocket-city.near { height: 88px; opacity: .9; animation: rk-city 15s linear infinite; }
.rocket-city.near svg path { fill: #060709; }
@keyframes rk-city { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rocket-smoke { display: none; }
.rocket-embers { display: none; }
.rocket-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 55%, rgba(255,80,60,.5), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.rocket-stage.is-crashed .rocket-flash { animation: rk-flash .8s ease-out; }
@keyframes rk-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.rocket-multiplier {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 0 26px rgba(109,179,255,.55), 0 2px 12px rgba(0,0,0,.6);
  font-variant-numeric: tabular-nums;
  transition: color .3s, text-shadow .3s;
  z-index: 4;
}
.rocket-multiplier.flying { color: #cfe6ff; }
.rocket-multiplier.crashed { color: #ff6b74; text-shadow: 0 0 30px rgba(244,63,79,.8); }
.rocket-status {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--text-2);
  background: rgba(5,8,12,.6);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 4;
}

.rocket-stage.is-flying .rocket-status { color: #9fe8c2; border-color: rgba(62,207,142,.4); }
.rocket-stage.is-crashed .rocket-status { color: #ffb4b9; border-color: rgba(244,63,79,.5); }
.rocket-history { position: absolute; left: 12px; bottom: 10px; right: 12px; display: flex; gap: 4px; overflow: hidden; z-index: 4; }
.rocket-history-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  background: rgba(5,8,12,.6);
  border: 1px solid var(--line);
  color: var(--text-2);
  animation: rk-chip-in .4s var(--ease-out);
}
.rocket-history-chip.low { color: #ff8b93; border-color: rgba(244,63,79,.35); }
.rocket-history-chip.high { color: #9fe8c2; border-color: rgba(62,207,142,.4); }
@keyframes rk-chip-in { from { transform: translateY(8px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.rocket-flight { position: absolute; width: 84px; height: 84px; will-change: left, top, transform; z-index: 2; }
.rocket-plane {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(244,63,79,.65)) drop-shadow(0 6px 10px rgba(0,0,0,.5));
  animation: rk-plane-bob 1.6s ease-in-out infinite alternate;
}
@keyframes rk-plane-bob { from { transform: scale(1); } to { transform: scale(1.05); } }
.rocket-trail {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,80,.55) 0%, rgba(244,63,79,.25) 45%, transparent 72%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 1;
}
.rocket-trail::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,150,100,.75) 60%, transparent);
  filter: blur(1px);
}
.rocket-explosion {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.rocket-stage.is-crashed .rocket-explosion { opacity: 1; }
.rocket-explosion .expl-flash {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd9a0 55%, transparent 75%);
  animation: rk-expl-flash .55s ease-out forwards;
}
.rocket-explosion .expl-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255,120,90,.95);
  border-radius: 50%;
  animation: rk-expl-ring .85s var(--ease-out) forwards;
}
.rocket-explosion .expl-smoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,80,80,.55), rgba(40,35,35,.3) 60%, transparent);
  filter: blur(6px);
  animation: rk-expl-smoke 1.4s ease-out forwards;
}
.rocket-explosion .expl-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e0, #ff9c4a 45%, #e2452e 75%, #6d150c);
  animation: rk-expl-core .9s ease-out forwards;
}
.rocket-explosion .expl-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd884, #f4573f);
  opacity: 0;
}
.rocket-stage.is-crashed .expl-spark.s1 { --dx: -88px; --dy: -72px; animation: rk-spark .85s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s2 { --dx: 80px; --dy: -84px; animation: rk-spark .8s .05s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s3 { --dx: -98px; --dy: 36px; animation: rk-spark .92s .02s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s4 { --dx: 94px; --dy: 44px; animation: rk-spark .84s .07s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s5 { --dx: -38px; --dy: 94px; animation: rk-spark .78s .03s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s6 { --dx: 32px; --dy: -102px; animation: rk-spark .9s .06s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s7 { --dx: 110px; --dy: -10px; animation: rk-spark .8s .1s ease-out forwards; }
.rocket-stage.is-crashed .expl-spark.s8 { --dx: -112px; --dy: -14px; animation: rk-spark .86s .12s ease-out forwards; }
@keyframes rk-expl-flash { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes rk-expl-ring { from { transform: scale(.25); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }
@keyframes rk-expl-core { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.35); opacity: .95; } }
@keyframes rk-spark {
  from { transform: translate(0, 0) scale(1.2); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(.1); opacity: 0; }
}
@keyframes rk-expl-smoke {
  from { transform: translate(0, 0) scale(.6); opacity: .85; }
  to { transform: translate(-26px, -64px) scale(2.2); opacity: 0; }
}
.rocket-bets-panel { border-radius: 18px; }
.rocket-bets-list .rocket-bet-row { animation: rk-chip-in .35s var(--ease-out); }
.rocket-bet-row em.cashed { color: var(--green); }
.rocket-bet-row em.lost { color: #ff8b93; }

/* ---------- МИНЫ ---------- */
.mines-summary { display: flex; gap: 9px; }
.mines-summary > div {
  flex: 1;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.mines-summary small {
  display: block;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--muted);
}
.mines-summary b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mines-multiplier-wrap b { color: var(--gold, #ffc24b); text-shadow: 0 0 18px rgba(255,194,75,.35); }
.mines-multiplier-wrap b.pulse { animation: mn-pulse .45s var(--ease-out); }
@keyframes mn-pulse { 40% { transform: scale(1.22); } }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mines-cell {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  background: linear-gradient(160deg, #232a3c, #161b28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -3px 0 rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.3);
  transition: transform .16s var(--ease-out), box-shadow .2s;
  overflow: hidden;
}
.mines-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.1) 46%, transparent 60%);
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: mn-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mn-sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -80% 0; } }
.mines-cell:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.35), 0 10px 20px rgba(0,0,0,.45), 0 0 0 1px rgba(244,63,79,.35);
}
.mines-cell:active:not(:disabled) { transform: scale(.94); }
.mines-cell svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56%;
  height: 56%;
  opacity: 0;
  transform: scale(.3);
}
.mines-cell.open, .mines-cell.safe {
  animation: mn-flip .45s var(--ease-out);
  background: linear-gradient(160deg, #12251c, #0d1a15);
  border: 1px solid rgba(62,207,142,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 14px rgba(62,207,142,.4);
  cursor: default;
}
.mines-cell.open::after, .mines-cell.safe::after { display: none; }
.mines-cell.open svg, .mines-cell.safe svg { opacity: 1; animation: mn-pop .5s .1s var(--ease-out) forwards; filter: drop-shadow(0 0 10px rgba(62,207,142,.6)); }
@keyframes mn-flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(.92); } 100% { transform: rotateY(0); } }
@keyframes mn-pop { 0% { transform: scale(.2); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.mines-cell.mine {
  animation: mn-flip .4s;
  background: linear-gradient(160deg, #4a1418, #2a0a0e);
  border: 1px solid rgba(244,63,79,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 18px rgba(244,63,79,.75), 0 0 4px rgba(255,120,90,.9);
}
.mines-cell.mine svg { opacity: 1; animation: mn-pop .45s .08s var(--ease-out) forwards; filter: drop-shadow(0 0 12px rgba(244,63,79,.9)) drop-shadow(0 0 4px rgba(255,120,90,.9)); }
.mines-table.shake { animation: rk-shake .5s; }
.mines-table { position: relative; }
.mines-table::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(70% 70% at 50% 50%, transparent 55%, rgba(244,63,79,.4));
  opacity: 0;
  pointer-events: none;
}
.mines-table.danger::after { animation: rk-flash .9s ease-out; }

/* ---------- РУЛЕТКА ---------- */
.roulette-table { padding: 14px; position: relative; }
.roulette-history { display: flex; gap: 5px; min-height: 26px; margin-bottom: 11px; flex-wrap: wrap; }
.roulette-history-chip {
  min-width: 26px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  animation: rk-chip-in .4s var(--ease-out);
}
.roulette-history-chip.red { background: linear-gradient(180deg, #e03246, #a91c2c); }
.roulette-history-chip.black { background: linear-gradient(180deg, #262b38, #12151d); border: 1px solid var(--line-strong); }
.roulette-history-chip.green { background: linear-gradient(180deg, #12905a, #0a6b41); }
.roulette-wheel-wrap { position: relative; width: 252px; height: 252px; margin: 6px auto 14px; }
.roulette-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f3d27c, #93702e 25%, #ffe9a8 50%, #93702e 75%, #f3d27c);
  box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 22px rgba(255,194,75,.5), 0 0 64px 10px rgba(255,194,75,.3), inset 0 0 18px rgba(255,226,150,.35);
}
.roulette-wheel-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #1a1f2c, #080b11 75%);
}
.roulette-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.55), inset 0 16px 38px rgba(0,0,0,.6);
  transition: transform 4.6s cubic-bezier(.15,.6,.1,1);
  z-index: 1;
}
.roulette-number {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  transform-origin: 0 0;
  pointer-events: none;
}
.roulette-number.red { color: #ffe3e5; }
.roulette-number.black { color: #e6e9f0; }
.roulette-number.green { color: #9fffd2; }
.roulette-hub {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #232a3a, #0a0d14 72%);
  border: 2px solid var(--line-strong);
  box-shadow: inset 0 8px 20px rgba(0,0,0,.65), 0 6px 20px rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  z-index: 2;
}
.roulette-hub b, .roulette-hub span {
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  transition: color .25s, text-shadow .25s;
}
.roulette-hub.flashed { animation: rl-hub-flash .7s var(--ease-out); }
@keyframes rl-hub-flash { 30% { transform: scale(1.12); } }
.roulette-result {
  text-align: center;
  font-size: 13px;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.roulette-result b { font-size: 16px; letter-spacing: .02em; }
.roulette-red-text { color: #ff6b74; }
.roulette-black-text { color: #e6e9f0; }
.roulette-result .positive { color: #4bffb0; font-weight: 900; }
.casino-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.casino-choice {
  padding: 11px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  font-size: 12.5px;
  color: #fff;
  cursor: pointer;
  opacity: .55;
  transition: .2s;
}
.casino-choice[data-choice="red"] { background: linear-gradient(180deg, #c62a3b, #8d1726); }
.casino-choice[data-choice="black"] { background: linear-gradient(180deg, #232837, #141824); border: 1px solid var(--line-strong); }
.casino-choice.active { opacity: 1; box-shadow: 0 0 0 2px var(--gold, #ffc24b), 0 0 18px rgba(255,194,75,.35); }
.roulette-bet-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.roulette-bet-row label { margin: 0; }
.roulette-bet-row .primary-button { min-width: 150px; }

/* ---------- БЛЭКДЖЕК ---------- */
.blackjack-table {
  position: relative;
  padding: 18px 16px 22px;
  border-radius: 20px;
  background: radial-gradient(120% 100% at 50% 0%, #0f4a34 0%, #0a3324 48%, #061f16 100%);
  border: 1px solid rgba(244,194,75,.28);
  overflow: hidden;
}
.blackjack-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 42% at 50% 30%, rgba(255,244,200,.1), transparent 70%);
  pointer-events: none;
}
.blackjack-table::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgba(255,217,132,.12), inset 0 0 46px rgba(0,0,0,.55);
  pointer-events: none;
}
.blackjack-table-glow { display: none; }
.dealer-zone, .player-zone { min-height: 118px; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 2; }
.dealer-zone small, .player-zone small { font-size: 9px; font-weight: 900; letter-spacing: .16em; color: #bfd9cc; }
.dealer-zone small b, .player-zone small b { color: #fff; }
.real-cards { display: flex; gap: 8px; min-height: 88px; align-items: center; }
.real-card {
  position: relative;
  width: 62px;
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffffff, #e8e8ee);
  box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.25);
  color: #16181f;
  flex: 0 0 auto;
  animation: bj-deal .45s var(--ease-out) backwards;
}
.real-card.red { color: #d3233a; }
.real-card b { position: absolute; top: 6px; left: 8px; font-size: 17px; line-height: 1; }
.real-card em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 13px; }
.real-card.face-down {
  background: linear-gradient(160deg, #4a1220, #200a10);
  box-shadow: 0 10px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,217,132,.25);
}
.real-card.face-down::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, rgba(255,193,75,.22) 0 4px, transparent 4px 9px);
}
.real-card.face-down::after { content: "💀"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; opacity: .85; }
@keyframes bj-deal {
  from { transform: translateY(-26px) rotate(-6deg) scale(.75); opacity: 0; }
  60% { transform: translateY(3px) rotate(1deg) scale(1.02); }
  to { transform: none; opacity: 1; }
}
.table-divider { height: 1px; margin: 13px 0; background: linear-gradient(90deg, transparent, rgba(255,217,132,.4), transparent); }
.blackjack-table-result { position: relative; z-index: 2; margin-top: 12px; text-align: center; font-size: 13px; font-weight: 800; min-height: 20px; transition: .3s; }
#blackjack-screen.has-win .blackjack-table-result { color: var(--gold, #ffc24b); text-shadow: 0 0 18px rgba(255,194,75,.45); }
#blackjack-screen.has-loss .blackjack-table-result { color: #ff8b93; }

@media (prefers-reduced-motion: reduce) {
  .rocket-stage::before, .rocket-stage::after, .rocket-city.far, .rocket-city.near,
  .mines-cell::after, .rocket-plane { animation: none !important; }
}

/* ---------- Казино: центровка взрыва, прогресс мин, метка хаба ---------- */
.rocket-explosion { left: 50%; top: 50%; margin: -100px; }
.mines-progress {
  margin-top: 10px;
  height: 9px;
  border-radius: 999px;
  background: #10141f;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mines-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d8a5c, #3ecf8e);
  box-shadow: 0 0 12px rgba(62,207,142,.6);
  transition: width .45s var(--ease-out);
}
.roulette-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 9px solid transparent;
  border-top: 15px solid #ffc24b;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.65));
  z-index: 5;
}
.roulette-ball { display: none !important; }

/* ---------- Казино: база лобби и контролов (восстановлено) ---------- */
.casino-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.casino-card label { grid-column: 1 / -1; display: grid; gap: 6px; color: #dedde0; font-size: 11px; font-weight: 750; }
.casino-card input { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; padding: 11px; background: #0a0c11; color: var(--text); }
.casino-card input:focus { border-color: var(--red); }
.casino-card .wide { grid-column: 1 / -1; }
.casino-card-icon { display: grid; place-items: center; border: 1px solid rgba(244,63,79,.4); background: var(--accent-soft); color: var(--white-red); }
.casino-card-icon img { display: block; width: 27px; height: 27px; filter: brightness(0) saturate(100%) invert(83%) sepia(28%) saturate(890%) hue-rotate(315deg) brightness(105%); }
.casino-card.plane-card .casino-card-icon img,
.casino-card.rocket-card .casino-card-icon img { filter: brightness(0) saturate(100%) invert(80%) sepia(55%) saturate(1400%) hue-rotate(340deg) brightness(104%); }
.casino-card.mines-card .casino-card-icon img { filter: brightness(0) saturate(100%) invert(82%) sepia(60%) saturate(1200%) hue-rotate(5deg) brightness(106%); }
.casino-card.roulette-card .casino-card-icon img { filter: brightness(0) saturate(100%) invert(83%) sepia(28%) saturate(890%) hue-rotate(315deg) brightness(105%); }
.casino-card.blackjack-card .casino-card-icon img { filter: brightness(0) saturate(100%) invert(72%) sepia(52%) saturate(900%) hue-rotate(105deg) brightness(102%); }
.casino-result { min-height: 60px; padding: 16px; }
.casino-result h3 { margin: 6px 0; }
.casino-result p { margin: 7px 0 0; color: #d8d8dc; font-size: 13px; }
.casino-controls { display: grid; gap: 12px; padding: 15px; }
.casino-controls label { display: grid; gap: 7px; color: #dedde0; font-size: 12px; font-weight: 750; }
.casino-controls input { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; padding: 12px; background: #0a0c11; color: var(--text); }
.cashout-button { border: 0; border-radius: 13px; padding: 12px 15px; font: inherit; font-weight: 900; cursor: pointer; }
.cashout-button:disabled { opacity: .45; cursor: default; }
.casino-game-screen { display: grid; gap: 12px; align-content: start; padding-bottom: 96px; }
.casino-game-screen .screen-heading { margin-bottom: 0; }

/* ---------- Рулетка: сектора-кнопки, числа на кольце, подсветка ---------- */
.roulette-wheel { cursor: pointer; }
.roulette-sector {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .035);
  transition: filter .15s, backdrop-filter .15s, background .25s, box-shadow .25s;
}
.roulette-sector:hover { backdrop-filter: brightness(1.45) saturate(1.15); filter: brightness(1.8); }
.roulette-sector.active {
  background: rgba(255, 214, 120, .3);
  box-shadow: inset 0 0 0 2px rgba(255, 217, 132, .65), inset 0 0 30px rgba(255, 194, 75, .45);
  animation: rl-sector-glow .9s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes rl-sector-glow {
  from { background: rgba(255, 214, 120, .24); box-shadow: inset 0 0 0 2px rgba(255, 217, 132, .55), inset 0 0 22px rgba(255, 194, 75, .35); }
  to { background: rgba(255, 214, 120, .42); box-shadow: inset 0 0 0 2px rgba(255, 236, 180, .9), inset 0 0 38px rgba(255, 194, 75, .6); }
}
.roulette-sector.active .roulette-number {
  color: #fff;
  font-size: 11px;
  text-shadow: 0 0 8px #fff, 0 0 18px rgba(255,214,120,1), 0 1px 3px rgba(0,0,0,.95);
}
.roulette-sector.win { animation: rl-sector-win .7s ease-in-out 4; z-index: 2; }
@keyframes rl-sector-win {
  from { filter: brightness(1.6) drop-shadow(0 0 12px rgba(255,194,75,.7)); }
  to { filter: brightness(2.4) drop-shadow(0 0 30px rgba(255,194,75,1)); }
}

/* ---------- Рулетка: запрет синего выделения при тапе по колесу ---------- */
.roulette-wheel-wrap,
.roulette-wheel,
.roulette-sector,
.roulette-number,
.roulette-hub {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Самолёт: ставки раунда (внизу) ---------- */
.rocket-bets-panel { margin-top: 14px; padding: 12px 14px; }
.rocket-bets-panel .row-between { margin-bottom: 10px; }
.rocket-bets-panel .row-between b { font-size: 13px; }
.rocket-bets-panel .row-between small { color: var(--muted); }
.rocket-bets-list { display: grid; gap: 7px; max-height: 225px; margin-top: 2px; overflow: auto; }
.rocket-bet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(130, 157, 214, .18);
  border-radius: 10px;
  background: rgba(12, 18, 38, .48);
  font-size: 12px;
}
.rocket-bet-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rocket-bet-row small { color: #d6dfef; font-size: 11px; }
.rocket-bet-row em { font-style: normal; font-size: 10px; font-weight: 800; white-space: nowrap; }
.rocket-bets-empty { padding: 12px 0; color: var(--muted); font-size: 12px; text-align: center; }


/* Вики внутри мини-аппа (iframe-просмотр) */
.wiki-viewer { position: fixed; inset: 0; z-index: 300; background: var(--bg, #07080b); display: flex; flex-direction: column; }
.wiki-viewer.hidden { display: none; }
.wiki-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wiki-viewer-title { flex: 1; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--text, #f2f4f7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiki-viewer-bar .outline-button { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.wiki-viewer iframe { flex: 1; width: 100%; border: 0; background: #232323; }


/* Экран Вики (iframe на весь экран) */
.wiki-frame-wrap {
  height: calc(100dvh - 200px);
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #232323;
  border: 1px solid rgba(255, 255, 255, .08);
}
.wiki-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 400px) { .bottom-nav .nav-label { font-size: 9.5px; } }


/* Вики: полноэкранный просмотр */
.wiki-overlay { position: fixed; inset: 0; z-index: 250; background: #07080b; }
.wiki-overlay.hidden { display: none; }
.wiki-overlay iframe { width: 100%; height: 100%; border: 0; display: block; background: #232323; }


/* Плашка-подсказка у кнопки Назад */
.wiki-tip {
  position: absolute; left: 12px; bottom: 68px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  max-width: 250px; padding: 10px 12px;
  background: rgba(20, 22, 29, .96); border: 1px solid rgba(244, 63, 79, .45);
  border-radius: 12px; color: #f2f4f7; font-size: 12px; line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.wiki-tip.hidden { display: none; }
.wiki-tip button { background: none; border: 0; color: #9aa3b2; font-size: 12px; padding: 2px 4px; cursor: pointer; flex: none; }
