: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: 10px; overflow-x:auto; padding-bottom: 6px; }
.badgeRow::-webkit-scrollbar{ width:0; height:0; }

.ach{ min-width: 86px; display:flex; flex-direction:column; align-items:center; gap: 6px; }
.ach__ring{
  width: 64px; height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(0,0,0,.08) 55%),
              rgba(0,0,0,.22);
  border: 2px solid rgba(242,196,0,.55);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 14px 22px rgba(0,0,0,.45);
  display:grid;
  place-items:center;
}
.ach__icon{ width: 34px; height: 34px; color: rgba(242,196,0,.95); }
.ach__icon .i{ width: 34px; height: 34px; }
.ach__val{ font-weight: 1000; color: rgba(242,196,0,.95); }
.ach__hint{ font-size: 11px; letter-spacing:.08em; text-transform: uppercase; color: rgba(255,255,255,.62); }

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

.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);} 

.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;
}
.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); }
}


/* 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; }
}
