/* Экраны по макетам: вход, главный, фильтр/создание, турниры, профиль, магазин, кошелёк, вход администратора. */

.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.bullets li::marker { color: var(--red); }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; color: var(--text-2); }

/* ---------- Главный блок с иллюстрацией (макеты 2 и 3) ---------- */
.hero { overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 26px; }
.hero > :not(.hero-art) { position: relative; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, 0.2), rgba(8, 8, 9, 0.05) 45%, rgba(8, 8, 9, 0.6)); }
.hero__menu { display: flex; justify-content: flex-end; }
.hero__logo { display: grid; place-items: center; --logo-size: clamp(46px, 15vw, 78px); padding: 10px 6px 24px; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.screen--login { justify-content: center; }
.login-frame { padding: 14px; gap: 22px; border-radius: 30px; }
.hero--login { min-height: min(58dvh, 520px); justify-content: space-between; padding-bottom: 28px; }
.hero--login .hero__logo { flex: 1; padding: 0 0 12px; }
.tg-btn { min-height: 76px; border-radius: 18px; justify-content: flex-start; gap: 16px; padding: 0 18px 0 22px; background: rgba(8, 8, 9, 0.82); border-color: rgba(255, 255, 255, 0.28); font-weight: 500; }
.tg-btn__logo { width: 46px; height: 46px; flex: none; }
.tg-btn__sep { width: 1px; height: 38px; background: var(--line); }
.tg-btn__label { flex: 1; min-width: 0; text-align: left; font-size: clamp(14px, 4.2vw, 16px); white-space: normal; line-height: 1.2; }
.tg-btn { gap: clamp(10px, 3.4vw, 16px); padding: 0 14px 0 clamp(14px, 4.4vw, 22px); }

/* ---------- Главный экран (макет 3) ---------- */
.profile-card { display: flex; align-items: center; gap: 18px; text-align: left; padding: 14px 18px; width: 100%; transition: border-color 150ms ease-out, scale 150ms ease-out; }
.profile-card:active { scale: 0.99; }
.profile-card__body { display: flex; flex-direction: column; min-width: 0; }
.profile-card__name { font-size: 22px; font-weight: 500; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__stat { font-size: 13px; font-style: italic; color: var(--text-2); }
@media (hover: hover) { .profile-card:hover { border-color: #fff; } }
.promo { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 0; }
.home-subtitle { font-size: 16px; font-weight: 600; padding: 0 2px; }

.tcard { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; padding: 14px 16px; overflow: hidden; border-radius: 18px; }
.tcard__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tcard__name { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.tcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.tcard__cta { align-self: flex-start; min-width: min(100%, 190px); }
.tcard__art { align-self: end; opacity: 0.9; padding: 22px 8px 0; }
.tcard__art svg { width: 100%; height: auto; }
.tcard__art--photo { padding: 26px 0 0; opacity: 1; }
.tcard__art--photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.tcard__status { position: absolute; top: 14px; right: 16px; }

/* ---------- Фильтр и создание стола (макеты 7 и 9) ---------- */
.lobby { display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 26px; border-color: rgba(255, 255, 255, 0.24); }
.lobby__title { font-size: 21px; font-weight: 500; }
.lobby__title--sm { font-size: 18px; margin-top: 12px; }
.lobby__submit { align-self: center; width: min(100%, 300px); margin: 22px 0 10px; }
.buyin__value { font-family: var(--font-display); font-weight: 700; font-size: 34px; text-align: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.2)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.2)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #0b0b0d; border: 2px solid var(--red); box-shadow: 0 0 12px var(--red-glow); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #0b0b0d; border: 2px solid var(--red); box-shadow: 0 0 12px var(--red-glow); }

/* ---------- Карточка турнира (макеты 10 и 12) ---------- */
.thead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 4px 0 14px; border-left: 2px solid var(--red); }
.thead__name { font-size: 17px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.tentry { display: flex; align-items: center; gap: 14px; padding: 14px 18px; width: min(100%, 300px); }
.tentry__value { flex: 1; text-align: center; font-size: 30px; font-weight: 500; }
.tentry__chip { width: 44px !important; height: 44px !important; flex: none; }
.tseats { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.tseats__value { font-size: 20px; font-weight: 500; }
/* Линия заполнения мест: светлая полоса растёт к правому краю по мере регистрации */
.tseats__bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); overflow: hidden; }
.tseats__fill { display: block; height: 100%; min-width: 8px; border-radius: 999px; background: linear-gradient(90deg, #8d8d97 0%, #d9d9e0 55%, #ffffff 100%); box-shadow: 0 0 10px rgba(255, 255, 255, 0.35); transition: width 900ms cubic-bezier(0.23, 1, 0.32, 1); }
.tseats__bar[data-empty='true'] .tseats__fill { min-width: 0; box-shadow: none; }
.tseats__bar[data-full='true'] .tseats__fill { background: linear-gradient(90deg, #c4121b, var(--red)); box-shadow: 0 0 12px var(--red-glow); }
@media (prefers-reduced-motion: reduce) { .tseats__fill { transition: none; } }
.tnote { border-left: 2px solid var(--red); padding-left: 14px; font-size: 14px; }
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc { gap: 8px; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; width: min(100%, 250px); min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 500; text-align: left; }
.acc__btn .icon { width: 18px; height: 18px; }
.acc__btn .icon { transition: rotate 200ms var(--ease-out); }
.acc__btn[aria-expanded='true'] .icon { rotate: 180deg; }
.acc__panel { padding: 4px 4px 8px; }
.acc__h { font-size: 14px; color: var(--text); margin-top: 6px; }
.tconfirm { display: flex; flex-direction: column; gap: 18px; padding: 20px 18px; }
.tconfirm__note { display: flex; gap: 12px; color: var(--text-2); }
.tconfirm__note > .icon { color: var(--red); flex: none; margin-top: 2px; }
.tconfirm__link { color: var(--red); text-align: left; display: inline; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Мои турниры (макет 14) ---------- */
.mt-panel { display: flex; flex-direction: column; gap: 16px; padding: 22px 16px 26px; min-height: 60dvh; }
.mt-panel__lead { font-style: italic; font-size: 18px; }
.mt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; }
.mt--past .mt__name, .mt--past .mt__seats { color: var(--text-3); }
.mt__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; text-align: left; }
.mt__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 70, 80, 0.9); box-shadow: var(--neon); }
.mt__name { flex: 1; min-width: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt__seats { color: var(--text-2); font-size: 15px; }
.mt__state { pointer-events: none; color: var(--text-2); min-width: 0; }
.mt__refresh { align-self: center; width: min(100%, 360px); margin-top: auto; }
.mt__plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); }

/* ---------- Профиль (макет 6) ---------- */
.pcard-panel { display: flex; flex-direction: column; gap: 14px; padding: 20px 16px 22px; border-radius: 26px; }
.pcard-panel__close { position: absolute; top: 14px; right: 14px; }
.pphoto { display: flex; align-items: center; gap: 18px; cursor: pointer; }
.pphoto__box { width: 84px; height: 84px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 16px; overflow: hidden; }
.pphoto__box .avatar { border-radius: 0; width: 100% !important; height: 100% !important; }
.pphoto__box .avatar img { border-radius: 0; }
.pphoto:focus-within .pphoto__box { outline: 2px solid #fff; outline-offset: 3px; }
.pline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 16px; font-size: 16px; text-align: left; width: 100%; }
.pline--btn { transition: box-shadow 150ms ease-out, scale 150ms ease-out; }
.pline--btn:active { scale: 0.98; }
@media (hover: hover) { .pline--btn:hover { box-shadow: var(--neon-strong); } }
.padmin { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 84px; width: 100%; font-size: 17px; border-radius: 22px; transition: box-shadow 150ms ease-out, scale 150ms ease-out; }
.padmin:active { scale: 0.98; }
.pback-hint { padding: 0 6px; }
.pback { align-self: center; width: min(100%, 360px); }
.setting { min-height: 48px; cursor: pointer; }

/* ---------- Магазин (макет 5) ---------- */
/* Карусель: товары листаются влево и вправо, карточка «прилипает» к краю */
.shop-row { display: flex; gap: 10px; padding: 12px; border-radius: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shop-row::-webkit-scrollbar { display: none; }
.shop-row > .shop-item { flex: 0 0 calc((100% - 20px) / 2.4); scroll-snap-align: start; }
@media (min-width: 480px) { .shop-row > .shop-item { flex-basis: calc((100% - 20px) / 3.3); } }
.shop-carousel { position: relative; }
.shop-carousel__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 40px; height: 40px; background: rgba(8, 8, 10, 0.92); }
.shop-carousel__nav::before { content: ''; position: absolute; inset: -4px; }
.shop-carousel__nav--prev { left: -6px; }
.shop-carousel__nav--next { right: -6px; }
.shop-carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.22); background: #08080a; text-align: center; min-width: 0; transition: border-color 150ms ease-out, box-shadow 150ms ease-out, scale 150ms ease-out; }
.shop-item:active { scale: 0.96; }
.shop-item--equipped { border-color: var(--red); box-shadow: var(--neon); }
@media (hover: hover) { .shop-item:hover { border-color: #fff; } .shop-item--equipped:hover { border-color: #ff6a72; } }
/* Превью: то, что изменится за столом */
.shop-item__art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: radial-gradient(90% 80% at 25% 100%, rgba(255, 42, 51, 0.16), transparent 70%), #0c0c0e; overflow: hidden; }
.shop-item__art--table svg { width: 100%; height: 100%; }
.shop-item__art--cards { display: flex; align-items: center; justify-content: center; }
.shop-item__art--cards .pcard { --w: clamp(26px, 8.4vw, 40px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7); }
.shop-item__art--cards .pcard:nth-child(1) { rotate: -10deg; translate: 22% 4%; }
.shop-item__art--cards .pcard:nth-child(2) { z-index: 1; translate: 0 -4%; }
.shop-item__art--cards .pcard:nth-child(3) { rotate: 10deg; translate: -22% 4%; }
.shop-item__name { font-size: 13px; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.shop-item__cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.shop-item__cta--buy { border-color: rgba(255, 70, 80, 0.9); color: #fff; }
.shop-item__cta--buy s { color: var(--text-3); font-weight: 400; font-size: 12px; }
.shop-item__cta--on { border-color: transparent; background: var(--red-soft); color: #ffb3b7; }
.shop-item__badge, .shop-item__limit { position: absolute; top: 12px; font-size: 10.5px; min-height: 20px; padding: 0 6px; background: rgba(8, 8, 10, 0.9); }
.shop-item__badge { left: 12px; }
.shop-item__limit { right: 12px; }
.shop-hint { display: flex; gap: 8px; align-items: flex-start; padding: 0 4px; }
.shop-hint .icon { flex: none; margin-top: 2px; color: var(--red); }
.shop-idea { display: flex; flex-direction: column; gap: 14px; padding: 8px 2px; }

/* ---------- Кошелёк (макет 4) ---------- */
.whello { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 18px; }
.whello__title { font-size: 19px; font-weight: 700; }
.wmethod { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.wmethod__head { display: flex; align-items: center; gap: 14px; }
.wmethod__info { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-2); flex: none; border-radius: 50%; }
.wallet-extra { gap: 10px; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack { flex-direction: column; gap: 0; min-height: 60px; }
.pack[aria-pressed='true'] { border-color: var(--red); box-shadow: var(--neon); }
@media (max-width: 380px) { .whello { grid-template-columns: 1fr; } }

/* ---------- Поддержка и уведомления ---------- */
.notif { width: 100%; text-align: left; }
.ticket-log { max-height: 46dvh; overflow-y: auto; overscroll-behavior: contain; }
.bubble { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.bubble--me { align-self: flex-end; border-color: rgba(255, 70, 80, 0.5); }
.emoji-btn { font-size: 20px; padding: 0 12px; }

/* ---------- Вход администратора (макет 15) ---------- */
.alogin { display: flex; flex-direction: column; gap: 22px; padding: 34px 22px 40px; border-radius: 28px; }
.alogin__close { position: absolute; top: 16px; right: 16px; }
.alogin__warn { font-size: 15px; line-height: 1.5; }
.afield { display: flex; align-items: stretch; padding: 0; min-height: 62px; border-radius: 16px; overflow: hidden; }
.afield__icon { width: 64px; display: grid; place-items: center; border-right: 1px solid rgba(255, 70, 80, 0.9); flex: none; }
.afield__input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 18px; font-size: 17px; }
.afield__input::placeholder { color: var(--text-3); }
.afield:focus-within { box-shadow: var(--neon-strong); }
.alogin__submit { align-self: center; width: min(100%, 300px); margin-top: 18px; }

/* Кошелёк: меню покупки фишек на экране и кнопка истории по центру */
.wbuy { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-xl); }
.wallet-history { align-self: center; min-width: min(100%, 280px); }
