/* Free-demo opener UI — layered on top of the site's own styles. */
:root{
  --demo-mil-spec:#4b69ff; --demo-restricted:#8847ff; --demo-classified:#d32ce6;
  --demo-covert:#eb4b4b; --demo-rare:#e4ae39; --demo-industrial:#5e98d9;
  --demo-base:#b0c3d9;
}

.demo-opener{
  margin:18px auto 28px; max-width:1000px;
  background:linear-gradient(180deg,#1c2230 0%,#161b24 100%);
  border:1px solid #2a3242; border-radius:14px; padding:20px 20px 26px;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
}
.demo-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:#12351d; color:#5ee08a; border:1px solid #1f6b3a;
  font-weight:700; font-size:12px; letter-spacing:.5px; text-transform:uppercase;
  padding:5px 12px; border-radius:999px;
}
.demo-badge b{color:#8affb0}
.demo-opener h3.demo-title{margin:12px 0 4px; color:#fff; font-size:22px}
.demo-opener .demo-sub{color:#8b93a4; font-size:13px; margin-bottom:16px}

/* Roulette */
.reel-viewport{
  position:relative; overflow:hidden; height:170px; border-radius:12px;
  background:#10141c; border:1px solid #232b3a; margin:8px 0 18px;
}
.reel-viewport::before{ /* center pointer */
  content:""; position:absolute; left:50%; top:0; bottom:0; width:3px;
  transform:translateX(-50%); background:linear-gradient(180deg,#f6a45a,#b0681e);
  z-index:3; box-shadow:0 0 14px 2px rgba(246,164,90,.6);
}
.reel-viewport::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(90deg,#10141c 0%,transparent 12%,transparent 88%,#10141c 100%);
}
.reel{ display:flex; align-items:center; height:100%; will-change:transform; }
/* Fixed dimensions are load-bearing: the reel lands on the winner by measured
   position, so tiles must NOT resize when their images load mid-spin. High
   specificity + !important guards against the site's global CSS. */
.demo-opener .reel-item{
  flex:0 0 150px !important; width:150px !important; min-width:150px !important;
  max-width:150px !important; height:150px !important; box-sizing:border-box !important;
  margin:0 5px !important; padding:8px !important; border-radius:10px;
  background:#171d28; border-bottom:3px solid var(--rc,#4b69ff);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.demo-opener .reel-item img{
  max-width:88% !important; max-height:74px !important; width:auto !important;
  height:auto !important; object-fit:contain !important;
}
.reel-item .rn{ font-size:10px; color:#9aa3b2; margin-top:6px; text-align:center;
  padding:0 6px; line-height:1.2; max-height:26px; overflow:hidden; }

/* Rarity accents */
.rc-mil-spec{--rc:var(--demo-mil-spec)} .rc-restricted{--rc:var(--demo-restricted)}
.rc-classified{--rc:var(--demo-classified)} .rc-covert{--rc:var(--demo-covert)}
.rc-rare{--rc:var(--demo-rare)} .rc-industrial{--rc:var(--demo-industrial)}
.rc-base{--rc:var(--demo-base)}

.demo-actions{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.demo-open-btn{
  appearance:none; border:0; cursor:pointer; color:#231400; font-weight:800;
  font-size:16px; padding:14px 30px; border-radius:10px;
  background:linear-gradient(180deg,#ffc879,#f6a45a); text-transform:uppercase;
  letter-spacing:.4px; transition:filter .15s, transform .05s;
}
.demo-open-btn:hover{filter:brightness(1.07)}
.demo-open-btn:active{transform:translateY(1px)}
.demo-open-btn[disabled]{opacity:.55; cursor:default; filter:grayscale(.3)}
.demo-hint{color:#6f7789; font-size:12px}

/* Result card */
.demo-result{
  margin-top:18px; display:none; align-items:center; gap:18px;
  background:#10141c; border:1px solid #26303f; border-left:4px solid var(--rc,#4b69ff);
  border-radius:12px; padding:16px 18px;
}
.demo-result.show{display:flex; animation:demoPop .35s ease}
@keyframes demoPop{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
.demo-result img{width:120px; height:80px; object-fit:contain}
.demo-result .rinfo b{display:block; color:#fff; font-size:17px; margin-bottom:3px}
.demo-result .rinfo .rr{font-size:12px; text-transform:uppercase; color:var(--rc,#4b69ff); font-weight:700}
.demo-result .rinfo .rp{color:#9aa3b2; font-size:13px; margin-top:4px}

/* Floating profile button (injected into every page) */
.demo-profile-fab{
  position:fixed; right:16px; bottom:16px; z-index:9999;
  display:flex; align-items:center; gap:9px; text-decoration:none;
  background:linear-gradient(180deg,#232c3c,#191f2b); color:#fff;
  border:1px solid #33405a; border-radius:999px; padding:11px 16px;
  font-weight:700; font-size:14px; box-shadow:0 8px 26px rgba(0,0,0,.4);
}
.demo-profile-fab:hover{border-color:#f6a45a}
.demo-profile-fab .cnt{
  background:#f6a45a; color:#231400; border-radius:999px; padding:1px 9px;
  font-size:12px; font-weight:800;
}

/* Profile page */
.demo-profile-wrap{max-width:1100px; margin:24px auto; padding:0 16px; color:#e7ebf2}
.demo-profile-head{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:linear-gradient(180deg,#1c2230,#161b24); border:1px solid #2a3242;
  border-radius:14px; padding:20px; margin-bottom:20px;
}
.demo-profile-head h1{font-size:24px; margin:0; color:#fff}
.demo-stat{background:#10141c; border:1px solid #26303f; border-radius:10px; padding:10px 16px}
.demo-stat span{display:block; color:#8b93a4; font-size:12px}
.demo-stat b{color:#fff; font-size:18px}
.demo-nick{display:flex; gap:8px; align-items:center; margin-left:auto}
.demo-nick input{
  background:#10141c; border:1px solid #33405a; color:#fff; border-radius:8px;
  padding:9px 12px; font-size:14px; width:180px;
}
.demo-nick button, .demo-clear{
  cursor:pointer; border:0; border-radius:8px; padding:9px 14px; font-weight:700;
  background:linear-gradient(180deg,#ffc879,#f6a45a); color:#231400;
}
.demo-clear{background:#3a2530; color:#ff9d9d; border:1px solid #5e2f3c}
.demo-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px}
.demo-card{
  background:#171d28; border:1px solid #26303f; border-bottom:3px solid var(--rc,#4b69ff);
  border-radius:10px; padding:12px; text-align:center;
}
.demo-card img{width:100%; height:88px; object-fit:contain; margin-bottom:8px}
.demo-card .n{font-size:13px; color:#e7ebf2; line-height:1.25; min-height:32px}
.demo-card .meta{display:flex; justify-content:space-between; margin-top:8px; font-size:12px}
.demo-card .meta .r{color:var(--rc,#4b69ff); font-weight:700; text-transform:uppercase}
.demo-card .meta .p{color:#9aa3b2}
.demo-empty{color:#8b93a4; text-align:center; padding:50px 0}
.demo-note{color:#6f7789; font-size:12px; text-align:center; margin:26px 0 10px}
