/* ==========================================================================
   Аккаунты: аватары, плашка пользователя, вход/регистрация, профиль.
   Использует переменные и компоненты из style.css.
   ========================================================================== */

a.brand { text-decoration: none; }
a.btn { color: inherit; display: inline-flex; align-items: center; }
.small { font-size: 12px; }

/* ---------- Аватар ---------- */
.avatar {
  --size: 40px; --a: #ff9d00; --b: #5a3f06;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 30%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--a) 85%, #fff), var(--a) 35%, var(--b) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 calc(var(--size) * .3) color-mix(in srgb, var(--a) 35%, transparent);
  overflow: hidden;
}
.avatar::after {
  content: attr(data-glyph); color: rgba(255, 255, 255, .92);
  font: 700 calc(var(--size) * .48)/1 var(--font-head); text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.avatar-skin { background: radial-gradient(circle at 50% 60%, #1c2230, #0b0e16); }
.avatar-skin::after { content: none; }
.avatar-skin img { width: 118%; height: 118%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }

/* ---------- Плашка пользователя ---------- */
.user-slot { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px;
  color: inherit; text-decoration: none; background: var(--panel2); border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.user-chip:hover { border-color: #2a3240; background: #171b22; }
.user-chip-info { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.user-chip-info b { font: 700 15px var(--font-head); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-info small { font-size: 11px; color: var(--accent); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--muted); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:hover { color: var(--lose); }
.btn-danger { color: #ffd1d6; border-color: rgba(255, 64, 88, .45); background: rgba(255, 64, 88, .1); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 64, 88, .2); border-color: var(--lose); }
.nav-back { text-decoration: none; white-space: nowrap; }
.nav-link { text-decoration: none; white-space: nowrap; }

/* ---------- Поля форм ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-box {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 10px; background: #0b0e16; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 157, 0, .14); background: #0a0b0f; }
.field.invalid .field-box { border-color: rgba(255, 64, 88, .75); box-shadow: 0 0 0 3px rgba(255, 64, 88, .1); }
.field.match .field-box { border-color: rgba(32, 217, 138, .55); }
.field-box input {
  flex: 1; min-width: 0; height: 46px; border: none; outline: none; background: none; color: var(--text);
  font: 500 15px var(--font-body); letter-spacing: .02em;
}
.field-box input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.field-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: #4c5666; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.field-box:focus-within .field-ico { stroke: var(--accent); }
.eye { flex: none; width: 34px; height: 34px; margin-right: -6px; border: none; background: none; border-radius: 8px; color: #5d6878; display: grid; place-items: center; }
.eye:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field-hint { font-size: 12px; color: #5d6878; }
.field-hint.caps { color: var(--accent2); }
.field-error { font-size: 12.5px; color: #ff8a96; min-height: 0; }
.field-error:empty { display: none; }
.form-error {
  margin: -2px 0 12px; padding: 10px 12px; border-radius: 9px; font-size: 13px;
  color: #ffd1d6; background: rgba(255, 64, 88, .1); border: 1px solid rgba(255, 64, 88, .35);
}
.form-error.shake { animation: shake .4s; }

.field-status { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.field-status.checking { border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.field-status.ok { background: var(--win); box-shadow: 0 0 10px rgba(32, 217, 138, .5); }
.field-status.ok::after { content: "✓"; display: grid; place-items: center; height: 100%; font: 700 12px var(--font-body); color: #062012; }
.field-status.taken { background: var(--lose); }
.field-status.taken::after { content: "✕"; display: grid; place-items: center; height: 100%; font: 700 11px var(--font-body); color: #fff; }

.strength { display: flex; align-items: center; gap: 10px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.strength-bars i { height: 4px; border-radius: 2px; background: #1a1f28; transition: background .3s, box-shadow .3s; }
.strength-label { font-size: 12px; color: var(--muted); min-width: 120px; text-align: right; transition: color .3s; }
.strength[data-score="1"] .strength-bars i:nth-child(-n+1) { background: var(--lose); box-shadow: 0 0 6px rgba(255, 64, 88, .5); }
.strength[data-score="2"] .strength-bars i:nth-child(-n+2) { background: #ff9f43; box-shadow: 0 0 6px rgba(255, 159, 67, .5); }
.strength[data-score="3"] .strength-bars i:nth-child(-n+3) { background: #e8d34a; box-shadow: 0 0 6px rgba(232, 211, 74, .45); }
.strength[data-score="4"] .strength-bars i { background: var(--win); box-shadow: 0 0 6px rgba(32, 217, 138, .5); }
.strength[data-score="1"] .strength-label { color: #ff8a96; }
.strength[data-score="4"] .strength-label { color: var(--win); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Страница входа и регистрации ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-grid {
  position: absolute; inset: -50%;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(700px) rotateX(58deg) translateY(-8%);
  -webkit-mask: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%); mask: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%);
  animation: grid-drift 24s linear infinite;
}
.auth-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .45; }
.orb-a { left: -140px; top: -120px; background: radial-gradient(circle, rgba(255, 157, 0, .45), transparent 65%); animation: float 16s ease-in-out infinite; }
.orb-b { right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(65, 105, 255, .35), transparent 65%); animation: float 19s ease-in-out infinite reverse; }

.auth-shell {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr minmax(0, 440px); align-items: center; gap: 56px; padding: 40px 24px;
}
.auth-hero { display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.auth-hero .brand { font-size: 24px; }
.auth-hero h1 { margin: 6px 0 0; font: 700 clamp(34px, 5vw, 56px)/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; }
.auth-hero h1 span { color: var(--accent); text-shadow: 0 0 28px rgba(255, 157, 0, .45); }
.auth-lead { margin: 0; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #b9c3d0; }
.perk-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: rgba(255, 157, 0, .08); border: 1px solid rgba(255, 157, 0, .2); }

.hero-wheel { position: relative; width: 230px; aspect-ratio: 1; margin: 6px 0; }
.hero-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw-bezel { fill: #0e121b; stroke: #222a3a; stroke-width: 1.5; }
.hw-track { fill: none; stroke: #141922; stroke-width: 12; }
.hw-arc {
  fill: none; stroke: #20d98a; stroke-width: 12; stroke-dasharray: 160 490;
  filter: drop-shadow(0 0 6px rgba(32, 217, 138, .7)); animation: arc-breathe 4s ease-in-out infinite;
}
.hw-ticks line { stroke: #2a3242; stroke-width: 1; }
.hw-ticks line.major { stroke: #5b6678; stroke-width: 1.8; }
.hw-needle { position: absolute; inset: 0; animation: needle-idle 9s cubic-bezier(.45, .05, .25, 1) infinite; }
.hw-needle svg path { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 157, 0, .9)); }
.hw-center {
  position: absolute; inset: 31%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 30%, #171c25, #0b0e16 72%); box-shadow: inset 0 0 0 1px #232a36, 0 0 0 4px #0e121b, 0 0 0 5px #222a3a;
}
.hw-center b { font: 700 24px/1 var(--font-head); color: var(--accent2); }
.hw-coin { width: 26px; height: 26px; margin: 0 auto 3px; }
.hw-center small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.auth-card {
  position: relative; padding: 22px 26px 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 31, .92), rgba(10, 12, 16, .95));
  border: 1px solid #1d232d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .6s ease .1s, transform .7s cubic-bezier(.2, .8, .2, 1) .1s;
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 157, 0, .55), transparent 30%, transparent 70%, rgba(65, 105, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
body.ready .auth-hero, body.ready .auth-card { opacity: 1; transform: none; }
body.leaving .auth-card { opacity: 0; transform: scale(.97); transition-duration: .25s; }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: #0b0e16; border: 1px solid var(--line); }
.auth-tabs button {
  position: relative; z-index: 1; border: none; background: none; padding: 10px; border-radius: 9px;
  font: 700 15px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s;
}
.auth-tabs button.active { color: #1a1205; }
.auth-tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: linear-gradient(180deg, var(--accent2), var(--accent)); box-shadow: 0 4px 18px rgba(255, 157, 0, .35);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
body[data-view="register"] .auth-tab-ink { transform: translateX(100%); }

.auth-views { position: relative; display: grid; transition: height .45s cubic-bezier(.3, .9, .3, 1); }
.auth-view {
  grid-area: 1 / 1; align-self: start;
  opacity: 0; visibility: hidden; transform: translateX(28px); pointer-events: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s;
}
.auth-view.from-left { transform: translateX(-28px); }
.auth-view.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: .08s, .08s, 0s; }
.auth-title { margin: 0 0 4px; font: 700 26px var(--font-head); letter-spacing: .04em; text-transform: none; }
.auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.btn-auth {
  position: relative; width: 100%; height: 50px; margin-top: 4px;
  font: 700 18px var(--font-head); letter-spacing: .14em; text-transform: uppercase; overflow: hidden;
}
.btn-auth::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
}
.btn-auth:hover:not(:disabled)::after { animation: sweep .9s ease; }
.btn-auth.loading .btn-label::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border-radius: 50%; border: 2px solid rgba(26, 18, 5, .35); border-top-color: #1a1205; animation: spin .7s linear infinite;
}
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--accent2); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.pow-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.pow-progress { color: var(--accent2); font-variant-numeric: tabular-nums; }

@keyframes grid-drift { to { background-position: 0 44px, 0 0; } }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes arc-breathe { 50% { filter: drop-shadow(0 0 12px rgba(32, 217, 138, 1)); } }
@keyframes needle-idle { 0% { transform: rotate(-30deg); } 45% { transform: rotate(395deg); } 55% { transform: rotate(388deg); } 100% { transform: rotate(330deg); } }

/* ---------- Профиль ---------- */
.profile { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.profile > * { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
body.ready .profile > * { opacity: 1; transform: none; }
body.ready .profile > :nth-child(2) { transition-delay: .06s; }
body.ready .profile > :nth-child(3) { transition-delay: .12s; }
body.ready .profile > :nth-child(4) { transition-delay: .18s; }

.profile-hero {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 22px; overflow: hidden;
  background: radial-gradient(80% 140% at 0% 0%, rgba(255, 157, 0, .1), transparent 60%), var(--panel);
}
.ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ph-name { display: flex; align-items: center; gap: 10px; }
.ph-name h1 { margin: 0; font: 700 32px/1 var(--font-head); letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; }
.role-badge { padding: 2px 8px; border-radius: 6px; font: 700 12px var(--font-head); letter-spacing: .12em; color: #1a1205; background: var(--accent); }
.ph-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.xp { max-width: 420px; margin-top: 6px; }
.xp-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.xp-head b { font: 700 14px var(--font-head); color: var(--accent2); letter-spacing: .06em; }
.xp-bar { height: 8px; border-radius: 4px; background: #0e1116; border: 1px solid var(--line); overflow: hidden; }
.xp-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #b06d00, var(--accent), var(--accent2)); box-shadow: 0 0 10px rgba(255, 157, 0, .6); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.ph-level { position: relative; width: 110px; height: 110px; flex: none; }
.ph-level svg { width: 100%; height: 100%; }
.lv-track { fill: none; stroke: #141922; stroke-width: 8; }
.lv-arc { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 400; filter: drop-shadow(0 0 6px rgba(255, 157, 0, .7)); transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.ph-level div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ph-level b { font: 700 34px/1 var(--font-head); }
.ph-level small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.stat-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  animation: tile-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 40ms + .15s);
}
.stat-tile::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #2a3242; }
.stat-tile.st-win::before { background: var(--win); box-shadow: 0 0 10px var(--win); }
.stat-tile.st-lose::before { background: var(--lose); box-shadow: 0 0 10px var(--lose); }
.stat-tile.st-coin::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.st-label { font-size: 12px; color: var(--muted); }
.st-value { font: 700 24px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.stat-tile.st-coin .st-value { color: var(--accent2); }
.stat-tile.st-win .st-value { color: var(--win); }
.stat-tile.st-lose .st-value { color: #ff8a96; }
.stat-tile small { font-size: 11px; color: var(--muted); }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.best-win { --rc: #5b6b80; display: flex; align-items: center; gap: 16px; min-height: 150px; padding: 10px; border-radius: 12px;
  background: radial-gradient(70% 90% at 25% 50%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%); }
.best-win .skin-img { width: 46%; max-width: 220px; height: auto; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--rc) 50%, transparent)); }
.best-win div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.best-win b { font: 700 20px/1.15 var(--font-head); }
.best-win .price { font-size: 22px; }
.tx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.tx-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--bg2); border-left: 3px solid #2a3242; }
.tx-list li.plus { border-left-color: var(--win); }
.tx-list li.minus { border-left-color: var(--lose); }
.tx-list li div { display: flex; flex-direction: column; }
.tx-list li small { font-size: 11px; color: var(--muted); }
.tx-list li b { font: 700 16px var(--font-head); font-variant-numeric: tabular-nums; }
.tx-list li.plus b { color: var(--win); }
.tx-list li.minus b { color: #ff8a96; }
.tx-list li.empty { border: none; justify-content: center; color: var(--muted); }

.settings-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 22px; }
.setting-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.setting-block h3 { margin: 0; font: 700 16px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.setting-block p { margin: 0 0 6px; }
.setting-block .btn { align-self: flex-start; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.avatar-picker.skins { max-height: 180px; overflow-y: auto; }
.avatar-option {
  --rc: #5b6b80; padding: 3px; border-radius: 12px; border: 2px solid transparent; background: none;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.avatar-option:hover { transform: translateY(-2px); }
.avatar-option.active { border-color: var(--accent); box-shadow: 0 0 14px rgba(255, 157, 0, .35); }
.avatar-picker.skins .avatar-option { width: 64px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 25%, transparent), transparent 70%), var(--bg2); border-bottom: 2px solid var(--rc); }
.avatar-picker.skins .skin-img { max-width: 100%; max-height: 100%; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 520px; padding: 24px 16px 32px; }
  .auth-hero { align-items: center; text-align: center; }
  .hero-wheel, .auth-perks { display: none; }
  .auth-hero h1 { font-size: 34px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .profile-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-card { padding: 18px 16px 20px; border-radius: 16px; }
  .auth-hero .auth-lead { font-size: 13px; }
  .strength-label { min-width: 96px; }
  .profile-hero { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .ph-name h1 { font-size: 24px; }
  .ph-level { width: 84px; height: 84px; }
  .ph-level b { font-size: 26px; }
  .settings-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-value { font-size: 19px; }
  .user-chip-info { display: none; }
  .user-chip { padding: 4px; }
  .nav-back { padding: 6px 8px; font-size: 12px; }
  .nav-back[href="/"] { display: none; } /* логотип уже ведёт на главную */
  .best-win { flex-direction: column; text-align: center; }
  .best-win div { align-items: center; }
}

/* ---------- Задания, достижения, промокод (профиль) ---------- */
.quest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quest { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); transition: border-color .3s; }
.quest.done { border-color: rgba(32, 217, 138, .35); }
.quest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.quest-head b { font: 700 16px var(--font-head); }
.quest-head small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quest .muted { font-size: 12.5px; }
.quest-bar { height: 6px; border-radius: 3px; background: #0e1116; overflow: hidden; }
.quest-bar i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #b06d00, var(--accent)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.quest.done .quest-bar i { background: linear-gradient(90deg, #1f9e52, var(--win)); }
.quest-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.quest.done .quest-foot span:first-child { color: var(--win); font-weight: 600; }
.promo-form { display: flex; gap: 8px; align-items: flex-start; }
.promo-form .field { flex: 1; margin: 0; }
.promo-form input { text-transform: uppercase; letter-spacing: .08em; }
.promo-form .btn { height: 48px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); opacity: .55; filter: grayscale(.8); transition: opacity .3s, filter .3s; }
.ach.unlocked { opacity: 1; filter: none; border-color: rgba(255, 157, 0, .35); }
.ach-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; color: var(--accent2); background: rgba(255, 157, 0, .08); border: 1px solid rgba(255, 157, 0, .25); }
.ach b { display: block; font: 700 14px var(--font-head); }
.ach small { display: block; font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .promo-form { flex-direction: column; } .promo-form .btn { width: 100%; } }

/* профиль: кнопка-ссылка LUCKY WHEEL без подчёркивания, таймер ровными цифрами */
.rw-wheel-btn, .rw-wheel-btn:hover { text-decoration: none; display: inline-flex; justify-content: center; }
#rwBonusAmount { font-variant-numeric: tabular-nums; min-height: 1em; }
