:root{
  --bg:#0b0b0c;
  --panel:#111214;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --paper:#d9d2c4;
  --paper2:#cfc6b7;
  --ink:#0f0f10;
  --text:#f1f1f1;
  --muted:rgba(255,255,255,.68);
  --yellow:#f2c400;
  --yellow2:#e6b500;
  --shadow: 0 12px 30px rgba(0,0,0,.55);
  --radius: 8px;
  --radius2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:#0a0a0a url("assets/bg.jpg") center/cover fixed no-repeat;
  color:var(--text);
}

.stage{
  min-height:100vh;
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:center;
  padding:28px 18px;
}

.phone{
  width: 390px;
  height: 812px;
  border-radius: 26px;
  background: radial-gradient(1200px 900px at 50% 20%, rgba(255,255,255,.08), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.05), transparent 25%),
              #0b0b0c;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.grain{
  pointer-events:none;
  position:absolute;
  inset:-20%;
  background: url("assets/grain.png") center/cover repeat;
  opacity:.09;
  mix-blend-mode: overlay;
  filter: contrast(120%) brightness(80%);
}

.topbar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom: 2px solid rgba(242,196,0,.55);
  background: rgba(8,8,9,.62);
  backdrop-filter: blur(6px);
}

.topbar__right{
  display:flex;
  gap:10px;
  align-items:center;
}

.brand{
  font-weight:900;
  letter-spacing:.18em;
  color:var(--yellow);
  font-size: 18px;
  text-transform:uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.55);
}

.iconbtn{
  width:38px;
  height:38px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.85);
  cursor:pointer;
}
.iconbtn--ghost{ background: transparent; border-color: transparent; }
.iconbtn:active{ transform: translateY(1px); }

.ico{
  width:22px;height:22px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill:none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen{
  position:absolute;
  inset: 64px 0 0 0;
  padding: 14px;
  overflow:hidden;
}

.view{
  position:absolute;
  inset: 0;
  padding: 14px;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  display:none;
}
.view::-webkit-scrollbar{ width: 0; height: 0; }

.view.isActive{ display:block; }

.h1{
  font-size: 34px;
  font-weight: 900;
  letter-spacing:.02em;
  margin: 8px 0 10px;
}

.subbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(180deg, rgba(242,196,0,.96), rgba(230,181,0,.96));
  border:1px solid rgba(0,0,0,.65);
  color:#111;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  margin-bottom: 14px;
  position:relative;
}
.subbar::before{
  content:"";
  position:absolute;
  left:-10px; top:50%;
  width: 14px; height: 46px;
  transform: translateY(-50%);
  background: rgba(242,196,0,.7);
  border:1px solid rgba(0,0,0,.6);
  border-right:none;
  border-radius: 10px 0 0 10px;
  filter: blur(.2px);
  opacity:.8;
}
.subbar__label{
  font-weight:900;
  letter-spacing:.12em;
  font-size: 13px;
}
.subbar__plus{
  width:34px;height:34px;
  border-radius: 10px;
  border:1px solid rgba(0,0,0,.65);
  background: rgba(0,0,0,.12);
  font-size: 22px;
  font-weight:900;
  cursor:pointer;
}

.cases{ display:flex; flex-direction:column; gap:14px; }

.caseCard{
  display:flex;
  gap:12px;
  padding: 10px;
  background: rgba(15,15,16,.70);
  border:1px solid rgba(242,196,0,.7);
  border-radius: 12px;
  box-shadow: 0 14px 22px rgba(0,0,0,.38);
  position:relative;
  cursor:pointer;
}
.caseCard::after{
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: 14px;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.polaroid{
  width: 84px;
  height: 84px;
  border-radius: 6px;
  overflow:hidden;
  background: rgba(255,255,255,.08);
  border: 3px solid rgba(230,230,230,.9);
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  position:relative;
}
.polaroid img{ width:100%; height:100%; object-fit:cover; display:block; }
.polaroid::after{
  content:"";
  position:absolute;
  right: -10px; top: 10px;
  width: 18px; height: 18px;
  background: rgba(242,196,0,.92);
  transform: rotate(18deg);
  opacity:.85;
  filter: blur(.2px);
}

/* ---------- DOSSIER PROFILE ---------- */
.i{ width:20px; height:20px; display:block; }

.dossier{
  position:relative;
  background: linear-gradient(180deg, rgba(15,15,16,.28), rgba(15,15,16,.06));
  border-radius: 16px;
  padding: 10px;
}

.dossier::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  background: radial-gradient(900px 520px at 40% 10%, rgba(255,255,255,.10), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.62));
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  pointer-events:none;
  opacity:.55;
}

.dossierTop{ position:relative; padding: 8px 8px 0; }

.dossierTopRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 10px;
}
.dossierTopRow .pageMeta{ margin: 0; }
.dossierTopRow .btnGhost--sm{ padding: 10px 14px; }

.dossierClip{
  position:absolute;
  left: 10px; top: 2px;
  width: 42px; height: 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(180,180,180,.65), rgba(50,50,50,.65));
  transform: rotate(-7deg);
  box-shadow: 0 10px 16px rgba(0,0,0,.45);
  opacity:.9;
}

.dossierHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  background: rgba(10,10,10,.88);
  border: 2px solid rgba(242,196,0,.55);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  position:relative;
}

.dossierHeader__title{
  font-weight: 1000;
  letter-spacing: .08em;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 18px;
}

.dossierHeader__stamp{
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid rgba(242,196,0,.72);
  color: rgba(242,196,0,.92);
  transform: rotate(-7deg);
  background: rgba(0,0,0,.35);
}

.dossierName{
  margin-top: 10px;
  width: 100%;
  text-align:left;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(242,196,0,.92), rgba(230,181,0,.92));
  border: 2px solid rgba(0,0,0,.7);
  border-radius: 12px;
  color: #111;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.38);
}

.dossierBody{ position:relative; padding: 10px 8px 6px; }

.dossierMain{
  display:grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  align-items: start;
  margin-top: 10px;
}

.dossierData{
  background: linear-gradient(180deg, rgba(217,210,196,.95), rgba(205,197,183,.92));
  border: 2px solid rgba(0,0,0,.65);
  border-radius: 14px;
  color: #171717;
  padding: 12px 12px 10px;
  box-shadow: 0 14px 22px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}

.dossierData::after{
  content:"";
  position:absolute;
  inset: -40px;
  background: url("assets/grain.png") center/cover repeat;
  opacity:.10;
  mix-blend-mode: multiply;
  pointer-events:none;
}

.dossierSectionTitle{
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
  color: #151515;
}

.dossierLine{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.18);
}
.dossierLine:last-child{ border-bottom:none; }

.dossierIcon{
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.2);
  display:grid;
  place-items:center;
  color: #1a1a1a;
}

.dossierValue{
  border: none;
  background: transparent;
  font: inherit;
  color: #1b1b1b;
  text-align:left;
  padding: 0;
  cursor:pointer;
}
.dossierValue b{ font-weight: 1000; }

.dossierMiniRow{ display:flex; flex-wrap:wrap; gap: 8px; }

.dossierPhoto{ display:flex; justify-content:flex-end; }

.dossierPhoto .polaroid{
  width: 118px;
  height: 150px;
  border-radius: 6px;
  border: 6px solid rgba(240,240,240,.95);
  background: #f1f1f1;
  overflow:hidden;
  transform: rotate(2.2deg);
  box-shadow: 0 16px 26px rgba(0,0,0,.45);
}
.dossierPhoto .polaroid img{ height: 100%; width: 100%; object-fit: cover; filter: grayscale(100%) contrast(110%); }
.dossierPhoto .polaroid::after{ display:none; }

.tape{
  position:absolute;
  width: 44px; height: 16px;
  background: rgba(242,196,0,.86);
  border: 1px solid rgba(0,0,0,.4);
  opacity:.88;
  filter: blur(.15px);
}
.tape.t1{ left: -10px; top: 10px; transform: rotate(-25deg); }
.tape.t2{ right: -10px; bottom: 14px; transform: rotate(18deg); }

.dossierBlock{
  margin-top: 12px;
  background: rgba(10,10,10,.82);
  border: 2px solid rgba(242,196,0,.55);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 24px rgba(0,0,0,.38);
}

.dossierBlock--soft{
  background: rgba(10,10,10,.70);
  border-color: rgba(255,255,255,.14);
}

.levelRow{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.levelBadge{ display:flex; align-items:center; gap:8px; color: rgba(242,196,0,.92); font-weight: 900; letter-spacing: .06em; }
.levelBadge .lvl{ font-size: 26px; color: var(--yellow); }
.levelRight{ display:flex; align-items:center; gap:8px; color: rgba(242,196,0,.9); font-weight: 800; }
.xpText{ font-family: var(--mono); font-size: 12px; opacity:.95; }
.xpStar{ display:grid; place-items:center; width: 22px; height: 22px; }

.xpBar{
  margin-top: 10px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(242,196,0,.35);
  overflow:hidden;
}
.xpBar__fill{
  height: 100%;
  background: linear-gradient(90deg, rgba(242,196,0,.96), rgba(230,181,0,.96));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

.statsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.statItem{
  display:grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}
.statIcon{ width: 36px; height: 36px; border-radius: 12px; display:grid; place-items:center; background: rgba(242,196,0,.10); color: rgba(242,196,0,.92); border: 1px solid rgba(242,196,0,.25); grid-row: 1 / span 2; }
.statVal{ font-weight: 1000; font-size: 20px; color: var(--yellow); }
.statLbl{ font-size: 12px; letter-spacing:.08em; text-transform: uppercase; color: rgba(255,255,255,.70); }

.badgeRow{ display:flex; gap:8px; overflow-x:auto; padding:4px 0 6px; scrollbar-width:none; }
.badgeRow::-webkit-scrollbar{ width:0; height:0; }

.ach{ width:60px; flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:5px; }
.ach__ring{
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(242,196,0,.55);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.45);
  display:grid;
  place-items:center;
  overflow:hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(0,0,0,.08) 55%), rgba(0,0,0,.22);
  position:relative;
}
/* SVG-иконка (нет картинки) */
.ach__icon{ width:28px; height:28px; color:rgba(242,196,0,.95); display:flex; align-items:center; justify-content:center; }
.ach__icon .i{ width:28px; height:28px; }
/* Картинка заполняет всё кольцо */
.ach__icon img.achIconImg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  border-radius:0;
}
.ach__val{ font-size:11px; font-weight:900; color:rgba(242,196,0,.95); line-height:1; }
.ach__hint{ font-size:9px; letter-spacing:.07em; text-transform:uppercase; color:rgba(255,255,255,.55); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:60px; }

.ach--locked .ach__ring{ border-style:dashed; opacity:.55; }
.ach--locked .ach__icon{ color:rgba(255,255,255,.4); }
.ach--locked .ach__val{ color:rgba(255,255,255,.4); }
.ach--locked .ach__hint{ color:rgba(255,255,255,.35); }

.dossierSectionTitleRow{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.miniBtn{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(242,196,0,.35);
  background: rgba(242,196,0,.08);
  color: rgba(242,196,0,.95);
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
}

.pageHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.pageTitle{
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 20px;
}
.pageMeta{
  margin-top: 6px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.btnGhost--sm{ padding: 10px 12px; font-size: 11px; border-radius: 12px; }

.chips{ display:flex; gap:8px; flex-wrap:wrap; margin: 8px 0 14px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.78);
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
}
.chip.isOn{
  border-color: rgba(242,196,0,.55);
  color: rgba(242,196,0,.95);
  background: rgba(242,196,0,.10);
}

.achList{ display:flex; flex-direction:column; gap:10px; }
.achCard{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  align-items:center;
  gap:12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.10);
}
.achCard__ico{
  width: 56px; height: 56px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(242,196,0,.10);
  border: 1px solid rgba(242,196,0,.25);
  color: rgba(242,196,0,.95);
}
.achCard__ico .i{ width: 28px; height: 28px; }
.achIconImg{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  display:block;
}
.achCard__title{ font-weight: 1000; letter-spacing:.06em; }
.achCard__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.achCard__desc{
  margin-top: 4px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
.achCard__reward{
  font-family: var(--mono);
  color: rgba(242,196,0,.95);
  font-weight: 1000;
  letter-spacing: .06em;
}
.achCard--locked{ opacity: .55; filter: saturate(.6); }

.rar{
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  color: rgba(255,255,255,.75);
}
.rar.common{ border-color: rgba(255,255,255,.16); }
.rar.rare{ border-color: rgba(242,196,0,.35); color: rgba(242,196,0,.95); background: rgba(242,196,0,.07); }
.rar.epic{ border-color: rgba(242,196,0,.55); color: rgba(242,196,0,.98); background: rgba(242,196,0,.12); box-shadow: 0 12px 20px rgba(0,0,0,.25); }

.caseCard__body{ flex:1; padding-top: 4px; }
.caseCard__title{
  font-weight: 900;
  font-size: 18px;
  letter-spacing:.06em;
  margin-bottom: 8px;
}
.caseCard__meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 12px;
}
.tag{
  padding: 6px 8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  letter-spacing: .08em;
}
.tag b{ color: var(--yellow); }
.mini{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 8px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.miniico{
  width:16px;height:16px;
  stroke: rgba(242,196,0,.92);
  stroke-width: 2;
  fill:none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bigbtn{
  width:100%;
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 2px solid rgba(242,196,0,.85);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-weight: 900;
  letter-spacing:.14em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  box-shadow: 0 16px 24px rgba(0,0,0,.35);
}
.bigbtn__plus{
  color: var(--yellow);
  font-size: 20px;
  line-height: 1;
}
.bigbtn:active{ transform: translateY(1px); }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.titleCenter{
  text-align:center;
  flex:1;
}
.brandSmall{
  font-weight: 900;
  letter-spacing:.16em;
  color: var(--yellow);
  font-size: 14px;
  text-transform:uppercase;
}
.caseLine{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(242,196,0,.9);
  letter-spacing:.12em;
  margin-top:2px;
}
.caseLine b{ color: var(--text); }

.caseHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-top: 12px;
}
.caseBig{
  font-weight: 900;
  font-size: 30px;
  letter-spacing:.06em;
  margin-bottom: 2px;
}
.caseBig--small{ font-size: 22px; }
.caseSmall{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.75);
  letter-spacing:.14em;
}
.polaroid--float{ width: 118px; height: 132px; transform: rotate(2deg); }

.paper{
  margin-top: 10px;
  padding: 14px 14px 18px;
  color: #1a1a1b;
  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.65);
  box-shadow: 0 14px 22px rgba(0,0,0,.32);
  position:relative;
}
.paper--big{ font-size: 16px; line-height:1.35; }
.paper__tear{
  position:absolute;
  right: 10px; bottom: 10px;
  width: 44px; height: 14px;
  background: rgba(242,196,0,.92);
  transform: rotate(-6deg);
  opacity:.85;
  border-radius: 2px;
}

.sectionTitle{
  margin-top: 16px;
  font-weight:900;
  letter-spacing:.10em;
  color: var(--yellow);
  font-size: 14px;
}
.subtle{
  color: rgba(255,255,255,.70);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 4px;
}

.photoFrame{
  margin-top: 10px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 28px rgba(0,0,0,.40);
}
.photoFrame img{ width:100%; height: 180px; object-fit:cover; display:block; filter: contrast(105%) grayscale(5%); }

.locRow{
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(217,210,196,.96), rgba(207,198,183,.96));
  color:#151516;
  border: 1px solid rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.locRow__left{ display:flex; gap:10px; align-items:center; }
.locico{ width:22px;height:22px; fill:#0f0f10; opacity:.92; }
.locTitle{ font-weight: 900; letter-spacing:.08em; }
.locHint{ font-size: 12px; opacity:.8; margin-top:2px; }
.chev{ font-size: 22px; font-weight: 900; opacity:.7; }

.listRow{
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(217,210,196,.88);
  color:#151516;
  border: 1px solid rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor: default;
}
.listRow[role="button"]{ cursor:pointer; }
.listRow__left{ display:flex; gap:10px; align-items:center; }
.listico{ width:22px;height:22px; stroke:#111; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; opacity:.92; }
.listRow__title{ font-weight: 900; letter-spacing:.08em; }

.pill{
  background: rgba(242,196,0,.92);
  border: 1px solid rgba(0,0,0,.6);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
}
.rightNote{
  font-weight: 700;
  font-size: 12px;
  opacity:.9;
}

.yellowStrip{
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(242,196,0,.95), rgba(230,181,0,.95));
  color:#111;
  border: 1px solid rgba(0,0,0,.65);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  letter-spacing:.14em;
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}

.hint{
  margin-top: 12px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.35;
}

.scratchWrap{
  margin-top: 12px;
  border-radius: 12px;
  overflow:hidden;
  border: 2px solid rgba(242,196,0,.75);
  box-shadow: 0 18px 26px rgba(0,0,0,.45);
  position:relative;
  background: rgba(0,0,0,.25);
}
.scratchImg{ width:100%; display:block; }
.scratchOverlay{
  position:absolute;
  inset: 0;
  pointer-events:none;
}
.progress{
  position:absolute;
  left: 12px; right: 12px; bottom: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.progress__bar{
  flex:1;
  height: 10px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.65);
  background: rgba(0,0,0,.55);
  overflow:hidden;
}
.progress__bar span{
  display:block;
  height:100%;
  width:62%;
  background: linear-gradient(180deg, rgba(242,196,0,.95), rgba(230,181,0,.95));
}
.progress__pct{
  font-weight: 900;
  letter-spacing:.06em;
  color: rgba(242,196,0,.95);
}

.cta{
  width:100%;
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 2px solid rgba(242,196,0,.92);
  background: linear-gradient(180deg, rgba(242,196,0,.95), rgba(230,181,0,.95));
  color:#111;
  font-weight: 900;
  letter-spacing:.16em;
  cursor:pointer;
  box-shadow: 0 18px 26px rgba(0,0,0,.35);
}

.spikeGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items:start;
}
.labels{ display:flex; flex-direction:column; gap:10px; }
.labelBlock{
  /* Prevent the yellow "tape" label from visually colliding with the value */
  position: relative;
  padding: 34px 12px 12px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.tapeLabel{
  display:inline-flex;
  align-items:center;
  position:absolute;
  top:10px;
  left:10px;
  background: rgba(242,196,0,.92);
  color:#111;
  padding: 4px 12px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 10px rgba(0,0,0,.25);
  font-weight:900;
  letter-spacing:.12em;
  font-size: 11px;
}
.labelVal{
  margin-top: 0;
  line-height: 1.15;
  font-size: 18px;
  font-weight: 900;
  letter-spacing:.08em;
}
.labelVal .price{ white-space: nowrap; }
.spikePortrait{
  border-radius: 12px;
  overflow:hidden;
  border: 2px solid rgba(242,196,0,.75);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 26px rgba(0,0,0,.40);
}
.spikePortrait img{ width:100%; height: 220px; object-fit: cover; display:block; }

.bottomNav{
  position: absolute;
  left:0; right:0; bottom:0;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(8,8,9,.78);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 10px 10px 14px;
  gap: 10px;
}
.navBtn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  padding: 10px 8px;
  color: rgba(255,255,255,.9);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  font-weight: 800;
  letter-spacing:.06em;
  cursor:pointer;
}
.navIco{
  width:28px;height:28px;
  stroke: rgba(242,196,0,.95);
  stroke-width: 2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.navBtn div{ font-size: 12px; opacity:.92; }

.help{
  width: 380px;
  max-width: 38vw;
  color: rgba(255,255,255,.85);
  font-family: var(--sans);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.help__title{
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.help__text{ line-height: 1.45; font-size: 14px; color: rgba(255,255,255,.78); }
.help__text code{ font-family: var(--mono); color: rgba(242,196,0,.92); }

@media (max-width: 980px){
  .stage{ flex-direction: column; align-items:center; }
  .help{ max-width: 92vw; width: 390px; }
}
/* =====================
   Detective MVP additions (scoped by new classes)
   ===================== */

.kpiRow{display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 14px;}
.kpi{display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.22); box-shadow: 0 12px 18px rgba(0,0,0,.18);} 
.kpi__label{font-size:12px; color: rgba(255,255,255,.72); letter-spacing:.10em; font-weight:800; text-transform:uppercase;}
.kpi__val{font-family: var(--mono); font-weight:900; letter-spacing:.08em; color: var(--yellow);} 

.tabs{display:flex; gap:10px; margin: 6px 0 12px;}
.tab{flex:1; padding:10px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.22); color: rgba(255,255,255,.82); font-weight:900; letter-spacing:.10em; cursor:pointer;}
.tab.isActive{border-color: rgba(242,196,0,.85); box-shadow: 0 14px 22px rgba(0,0,0,.28); color: var(--text);} 

.card{padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background: rgba(15,15,16,.70); box-shadow: 0 14px 22px rgba(0,0,0,.28);} 
.card + .card{margin-top:12px;}
.cardTitle{font-weight:900; letter-spacing:.08em; margin-bottom:8px;}
.cardMeta{display:flex; gap:10px; flex-wrap:wrap; color: var(--muted); font-size:12px;}

.field{margin-top:12px;}
.label{font-size:12px; color: rgba(255,255,255,.72); letter-spacing:.10em; font-weight:800; text-transform:uppercase; margin-bottom:6px;}
.input, .select, .textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(242,196,0,.55);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
  font-family: var(--sans);
}
.textarea{min-height: 96px; resize:none; line-height:1.35;}
.input::placeholder, .textarea::placeholder{color: rgba(255,255,255,.45);}

.rowBtns{display:flex; gap:10px; margin-top: 14px;}
.rowBtns .cta{margin-top:0;}
.btnGhost{flex:1; padding: 14px 14px; border-radius:12px; border:2px solid rgba(242,196,0,.55); background: rgba(0,0,0,.30); color: var(--text); font-weight:900; letter-spacing:.14em; cursor:pointer; box-shadow: 0 18px 26px rgba(0,0,0,.22);} 
.btnGhost:active{transform: translateY(1px);} 

.notice{margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(242,196,0,.12); border: 1px solid rgba(242,196,0,.55); color: rgba(255,255,255,.88);} 
.notice b{color: var(--yellow);} 

.tableList{margin-top:12px; display:flex; flex-direction:column; gap:10px;}
.rankRow{display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 12px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.25);} 
.rankLeft{display:flex; align-items:center; gap:10px;}
.rankNum{width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background: rgba(242,196,0,.18); border:1px solid rgba(242,196,0,.55); font-weight:900; color: var(--yellow); font-family: var(--mono);} 
.rankName{font-weight:900; letter-spacing:.06em;}
.rankSub{font-size:12px; color: rgba(255,255,255,.65); margin-top:2px;}
.rankScore{font-family: var(--mono); font-weight:900; letter-spacing:.08em; color: rgba(242,196,0,.92);} 

.badge{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius: 999px; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.22); font-size:12px; color: rgba(255,255,255,.78);} 
.badge b{color: var(--yellow);} 

.hr{height:1px; background: rgba(255,255,255,.10); margin: 14px 0;}

.smallLink{color: rgba(242,196,0,.92); font-weight:900; letter-spacing:.08em; text-decoration:none; cursor:pointer;}
.smallLink:hover{text-decoration:underline;}

.toast{
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(242,196,0,.55);
  box-shadow: 0 18px 28px rgba(0,0,0,.45);
  color: rgba(255,255,255,.88);
  display:none;
  z-index: 5;
}
.toast.isOn{display:block;}
.toast b{color: var(--yellow);}
.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pass-wrap .input {
  flex: 1;
  padding-right: 42px;
}
.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.45);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.eye-btn:hover { color: rgba(255,255,255,.85); }

.toast.isError{
  background: rgba(180,30,30,.88);
  border-color: rgba(255,80,80,.6);
  color: #fff;
}

.rowBtns .btnGhost{flex:1; min-width: 110px;}


/* clickable ranking rows */
.rankRow{cursor:default;}
.rankRow.isClickable{cursor:pointer;}
.rankRow.isClickable:hover{border-color: rgba(242,196,0,.35); background: rgba(242,196,0,.06);}
.rankLink{
  all: unset;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .06em;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.rankLink:hover{text-decoration: underline;}


/* Task media (image/video) responsive */
.taskMediaStack{
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px){
  .taskMediaStack{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.taskMedia{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 28px rgba(0,0,0,.40);
  background: rgba(0,0,0,.25);
}
.taskMedia img,
.taskMedia video{
  width: 100%;
  height: auto;
  display: block;
}
.taskMedia img{
  max-height: min(46vh, 360px);
  object-fit: contain;
  background: rgba(0,0,0,.35);
}
.taskMedia video{
  max-height: min(46vh, 360px);
  background: #000;
}
@media (max-width: 420px){
  .taskMedia img,
  .taskMedia video{ max-height: min(42vh, 300px); }
}
@media (max-width: 360px){
  .taskMedia img,
  .taskMedia video{ max-height: min(38vh, 260px); }
}

.taskShot{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 28px rgba(0,0,0,.40);
  background: rgba(0,0,0,.25);
}
.taskShot__img{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
  min-height: 140px;
  max-height: min(34vh, 260px);
  background: rgba(0,0,0,.35);
}
.taskShot__img img{
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(30vh, 220px);
  display: block;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}
.taskShot__actions{
  display:flex;
  gap:10px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.taskShot__link{
  flex:1;
  text-align:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(241,197,0,.35);
  color: #f7df6d;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(241,197,0,.08);
}


@media (max-width: 420px){
  .taskShot__img{
    min-height: 120px;
    max-height: min(30vh, 220px);
    padding: 8px;
  }
  .taskShot__img img{ max-height: min(26vh, 180px); }
  .taskShot__actions{ padding: 8px; gap: 8px; }
  .taskShot__link{ padding: 9px 10px; font-size: 12px; }
}

/* Daily page */
.caseHero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.caseHero__thumb{
  width:140px;
  flex:0 0 140px;
}
.caseHero__thumb img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}
.caseHero__body{ flex:1; min-width:0; }
.caseHero__title{ font-family: var(--serif); letter-spacing:.08em; font-weight:800; font-size:18px; margin-bottom:6px; text-transform:uppercase; }
.caseHero__desc{ color: var(--muted); font-size:13px; line-height:1.4; }
.mediaBlock{
  margin-top:10px;
  border:1px solid rgba(255,219,109,.22);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  overflow:hidden;
}
.mediaBlock img, .mediaBlock video{
  width:100%;
  height:auto;
  max-height: 60vh;
  display:block;
  object-fit: contain;
}
@media (max-width:420px){
  .caseHero{ flex-direction:column; }
  .caseHero__thumb{ width:100%; flex:0 0 auto; }
}



/* --- stage16 UI hotfixes --- */
.btnGhost--wrap{
  letter-spacing: .10em;
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
}

.teamStats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 12px 0;
}
.teamStat{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  padding: 12px;
}
.teamStat__v{
  font-weight: 1000;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--yellow);
}
.teamStat__k{
  margin-top: 4px;
  font-size: 12px;
  opacity: .85;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkRow{
  display:flex;
  gap: 10px;
  align-items:center;
  font-weight: 900;
  letter-spacing: .04em;
}
.checkRow input{
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}

.dossierSectionTitle--white{ color: #ffffff; }


/* === LIMINEX_PATCH_16B1 === */
/* Copy code button: allow wrapping & centered text */
.btnGhost--wrap{
  white-space: normal !important;
  line-height: 1.1 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* prevent overflow */
.btnGhost--wrap{ word-break: keep-all; }
.btnGhost--wrap{ overflow: hidden; }

/* Agent dossier section titles: force visible (white) */
.profile h3,
.profile .sectionTitle,
.profile .section-title,
.profile .blockTitle,
.profile .cardTitle,
.profile .mutedTitle,
.profile [data-title],
.profile .ttl{
  color: #ffffff !important;
}
/* common exact labels (fallback if they are plain text spans) */
.profile .label,
.profile .k,
.profile .key{
  color: #ffffff !important;
}

/* Team page stats: if there is a stats grid, ensure 2x2 */
.teamStatsGrid,
.team .statsGrid,
.team .profileStatsGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* --- FIX: кнопка КОПИРОВАТЬ КОД --- */
.btnGhost--wrap {
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    padding: 12px 14px !important;
    text-align: center;
    white-space: normal !important;
}

.btnGhost--wrap span {
    display: block;
}

/* ================================================================== */
/* AUTH OVERLAY — экран входа/регистрации                              */
/* ================================================================== */
.auth-overlay{
  position: absolute;
  inset: 0;
  z-index: 100;
  background: radial-gradient(900px 700px at 50% 30%, rgba(242,196,0,.07), transparent 65%),
              rgba(8,8,9,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.auth-box{
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: rgba(15,15,18,.92);
  border: 1px solid rgba(242,196,0,.28);
  box-shadow: 0 24px 50px rgba(0,0,0,.6);
}
.auth-logo{
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .22em;
  color: var(--yellow);
  text-align: center;
  text-shadow: 0 2px 0 rgba(0,0,0,.55);
  margin-bottom: 4px;
}
.auth-sub{
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.auth-tabs{
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.auth-tab{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.2);
  color: rgba(255,255,255,.55);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
}
.auth-tab.active{
  background: rgba(242,196,0,.14);
  border-color: rgba(242,196,0,.55);
  color: var(--yellow);
}
.auth-error{
  background: rgba(220,50,50,.12);
  border: 1px solid rgba(220,50,50,.4);
  color: rgba(255,120,120,.9);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* ================================================================== */
/* PROFILE EDIT MODAL                                                  */
/* ================================================================== */
.pedit-overlay{
  position: absolute;
  inset: 0;
  z-index: 90;
  background: rgba(6,6,8,.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.pedit-box{
  width: 100%;
  max-width: 340px;
  padding: 20px 18px 24px;
  border-radius: 18px;
  background: rgba(14,14,17,.96);
  border: 1px solid rgba(242,196,0,.22);
  box-shadow: 0 20px 46px rgba(0,0,0,.55);
  margin: auto;
}
.pedit-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pedit-title{
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 14px;
  color: var(--yellow);
}
.pedit-avatar-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pedit-avatar-wrap{
  position: relative;
  width: 80px;
  height: 80px;
}
.pedit-avatar-img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(242,196,0,.55);
  background: rgba(0,0,0,.3);
}
.pedit-avatar-label{
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242,196,0,.92);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 2px solid rgba(8,8,9,.8);
}
.pedit-avatar-label:hover{ background: var(--yellow); }
.pedit-avatar-hint{
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}

/* ================================================================== */
/* SHOP — магазин                                                      */
/* ================================================================== */
.shop-category{
  margin-bottom: 22px;
}
.shop-cat-title{
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  font-weight: 900;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.shop-items-grid{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-item{
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  transition: border-color .15s;
}
.shop-item:hover{
  border-color: rgba(242,196,0,.3);
}
.shop-item--owned{
  border-color: rgba(80,220,100,.3);
  background: rgba(80,220,100,.05);
}
.shop-item__img{
  margin: -14px -14px 12px -14px;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.3);
}
.shop-item__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-item__title{
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 14px;
  margin-bottom: 4px;
}
.shop-item__desc{
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.shop-item__prices{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 2px;
}
.shop-price{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}
.shop-price--rub{
  background: rgba(242,196,0,.14);
  border: 1px solid rgba(242,196,0,.45);
  color: var(--yellow);
}
.shop-price--nex{
  background: rgba(100,180,255,.10);
  border: 1px solid rgba(100,180,255,.3);
  color: rgba(130,200,255,.9);
}
.shop-item__owned{
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  color: rgba(80,220,100,.9);
}
.shop-item__buy{
  width: 100%;
}

/* Payment modal summary */
.shop-pay-summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  background: rgba(242,196,0,.08);
  border: 1px solid rgba(242,196,0,.3);
  margin-top: 4px;
}
.shop-pay-item{
  font-weight: 700;
  font-size: 14px;
}
.shop-pay-price{
  font-weight: 900;
  font-size: 18px;
  color: var(--yellow);
  letter-spacing: .08em;
}

/* ================================================================== */
/* STAGE 18 FIXES                                                      */
/* ================================================================== */

/* ТЫ/ТВОЯ badge в рейтинге — компактный */
.pill--you {
  font-size: 8px !important;
  padding: 2px 6px !important;
  letter-spacing: .04em;
  vertical-align: middle;
  margin-left: 6px;
  background: var(--yellow) !important;
  color: #000 !important;
  border-radius: 4px;
  font-weight: 700;
}

/* Brand header — ПОД ПОДОЗРЕНИЕМ длиннее, уменьшим шрифт */
.brand {
  font-size: clamp(10px, 2.6vw, 13px);
  letter-spacing: .08em;
  line-height: 1.25;
}

/* Auth logo */
.auth-logo {
  font-size: clamp(16px, 5vw, 22px) !important;
  letter-spacing: .12em !important;
}

/* Скрыть nexs везде где есть класс */
.nex-display,
.nexBalance,
.statItem--nex {
  display: none !important;
}

/* ================================================================== */
/* ARCHIVE STYLES                                                      */
/* ================================================================== */

.archiveList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.archiveCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.archiveCard:hover {
  border-color: var(--yellow);
  background: rgba(242,196,0,.05);
}

.archiveCard__cover {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.archiveCard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archiveCard__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34,197,94,.9);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  letter-spacing: .05em;
}

.archiveCard__body {
  flex: 1;
  min-width: 0;
}
.archiveCard__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archiveCard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.archiveCard__arrow {
  color: var(--yellow);
  font-size: 18px;
  opacity: .6;
}

/* Archive Task List */
.archiveTaskList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.archiveTask {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
  border: 1px solid var(--line);
}
.archiveTask--done {
  border-color: rgba(34,197,94,.3);
  background: rgba(34,197,94,.05);
}
.archiveTask--locked {
  opacity: .5;
}

.archiveTask__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.archiveTask--locked .archiveTask__num {
  background: rgba(255,255,255,.2);
  color: var(--muted);
}

.archiveTask__body {
  flex: 1;
  min-width: 0;
}
.archiveTask__title {
  font-weight: 600;
  font-size: 13px;
}
.archiveTask__answer {
  font-size: 11px;
  color: rgba(34,197,94,.9);
  margin-top: 2px;
}

.archiveTask__status {
  font-size: 16px;
  flex-shrink: 0;
}
.archiveTask--done .archiveTask__status {
  color: #22c55e;
}

/* Archive Clue List */
.archiveClueList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.archiveClue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.archiveClue__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.archiveClue__body {
  flex: 1;
}
.archiveClue__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--yellow);
}
.archiveClue__from {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* Кнопка с подписью (В ДОСЬЕ с счётчиками) */
.btnGhost--withSub {
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px 6px;
}
.btnGhost--withSub span {
  font-size: inherit;
  font-weight: inherit;
}
.btnGhost--withSub small {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em;
}

/* Тестовые игры для тестеров */
.tag--test {
  background: #ff6b00 !important;
  color: #fff !important;
  font-weight: 700;
  animation: pulse-test 2s ease-in-out infinite;
}
@keyframes pulse-test {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.caseCard--test {
  border: 2px dashed #ff6b00;
  position: relative;
}
.caseCard--test::before {
  content: 'ЧЕРНОВИК';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff6b00;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .05em;
  z-index: 10;
}

/* Форматированный текст задания */
.taskText {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin: 16px 0;
}
.taskText p {
  margin: 0 0 12px 0;
}
.taskText p:last-child {
  margin-bottom: 0;
}
.taskText b {
  color: var(--yellow);
  font-weight: 700;
}
.taskText i {
  font-style: italic;
  color: rgba(255,255,255,.7);
}

/* Архив - код дела */
.archiveCard__code {
  font-size: 11px;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: .05em;
  margin-top: 2px;
}
.archiveClue__badge {
  font-size: 9px;
  background: var(--yellow);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

/* Красивые модальные окна */
.gameModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.gameModal--visible {
  opacity: 1;
  pointer-events: auto;
}
.gameModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}
.gameModal__content {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(242, 196, 0, 0.4);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(242, 196, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}
.gameModal--visible .gameModal__content {
  transform: scale(1);
}
.gameModal__icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px currentColor);
}
.gameModal__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.gameModal__message {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.gameModal__btn {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gameModal__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(242, 196, 0, 0.4);
}
.gameModal__btn:active {
  transform: translateY(0);
}

/* Кнопки для confirm-диалога */
.gameModal__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.gameModal__btn--cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.gameModal__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
  transform: none;
}
.gameModal__btn--confirm {
  background: var(--yellow);
  color: #000;
}

/* Подсказка о бонусном коде */
.bonusHint {
  text-align: center;
  font-size: 12px;
  color: #f2c400;
  background: rgba(242, 196, 0, 0.1);
  border: 1px dashed rgba(242, 196, 0, 0.4);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  animation: bonusPulse 2s ease-in-out infinite;
}
@keyframes bonusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Статические страницы (FAQ, Сотрудничество, и др.) ── */
.static-page-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
}
.static-page-body p {
  margin: 0 0 14px;
}
.static-page-body h2, .static-page-body h3 {
  color: var(--yellow);
  letter-spacing: .08em;
  margin: 22px 0 10px;
  font-size: 15px;
  text-transform: uppercase;
}
.static-page-body img {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.static-page-body a {
  color: var(--yellow);
  text-decoration: underline;
}
.static-page-body ul, .static-page-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.static-page-body li {
  margin-bottom: 6px;
}
.static-page-body blockquote {
  border-left: 3px solid var(--yellow);
  padding: 8px 14px;
  margin: 14px 0;
  background: rgba(242,196,0,.06);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,.7);
  font-style: italic;
}
