 
:root {
  --bg:#050607; --stroke:rgba(120,255,160,0.25); --fg:#e7ffee; --muted:#9fe6bf; --accent:#39ff14;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --sans:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans","Helvetica Neue",Arial;
  --radius-xl:24px; --blur:16px; --shadow:0 8px 30px rgba(0,0,0,.35), inset 0 0 0 1px var(--stroke);
   --app-bg: #0b1210;
   --tg-header-bg: var(--app-bg);
  --tg-bottom-bg: var(--app-bg);
   --header-fg: #e6f7ef;
   --danger:#ff4d4f;
}
 

 
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(1200px 600px at 20% 0%, #06130d 0%, transparent 60%), var(--bg);
  color:var(--fg); font-family:var(--sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

.hps-broken{
  color: var(--danger);
  font-weight: 800;
}

.info-i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px; height:18px;
  margin-left:6px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  font-weight:900;
  font-size:12px;
  line-height:1;
  color: var(--danger);
  cursor:pointer;
  transition: transform .06s ease, background .2s ease;
}
.info-i:hover{ background: rgba(255,255,255,.06); }
.info-i:active{ transform: translateY(1px); }

.mono{font-family:var(--mono)}
.hidden{display:none!important}

 #matrix-bg{position:fixed; inset:0; width:100vw; height:100vh; z-index:0}

 .glass-wrap{position:relative; z-index:1; min-height:100vh; display:grid; grid-template-rows:auto 1fr auto; padding-bottom:76px}
.content{padding:16px}

 .topbar{
  position:sticky; top:0; z-index:3;
  display:flex; align-items:center; justify-content:space-between;
  height:60px; padding:10px 16px;
  backdrop-filter:blur(var(--blur));
  background:linear-gradient(180deg, rgba(7,14,10,0.75), rgba(7,14,10,0.35));
  border-bottom:1px solid var(--stroke);
}
 .topbar{
  position:sticky; top:0; z-index:3;
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center;
  height:60px; padding:10px 12px 10px 14px;
  backdrop-filter:blur(var(--blur));
  background:linear-gradient(180deg, rgba(7,14,10,0.75), rgba(7,14,10,0.35));
  border-bottom:1px solid var(--stroke);
}
.topbar .h-left{ display:flex; align-items:center; gap:10px; min-width:0 }
.topbar .h-center{ text-align:center }
.topbar .h-right{ display:flex; align-items:center; justify-content:flex-end }

.coins-wrap{ display:flex; flex-direction:column; gap:2px; min-width:0 }
.coins-main{ font-size:18px; font-weight:700; color:var(--accent); white-space:nowrap }
.coins-main .val{ font-variant-numeric:tabular-nums }
.coins-main .unit{ font-size:.85em; opacity:.9; margin-left:6px }
.coins-sub{ font-size:11.5px; opacity:.85; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:44vw }
.wallet-btn{ border-radius:12px }
.miners .miner-meta .v.hps-broken{
  color: var(--danger) !important;
}
.lang-switch{
  display:inline-flex; padding:3px; gap:3px;
  border:1px solid var(--stroke); border-radius:999px;
  background:rgba(12,24,18,.45); box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
}
.lang-switch .seg{
  appearance:none; border:0; cursor:pointer;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px;
  color:var(--fg); background:transparent;
}
.lang-switch .seg.active{ 
  background:rgba(30,60,45,.55);
  box-shadow: 0 0 0 1px var(--stroke), 0 2px 10px rgba(0,0,0,.25);
}
@media (max-width:420px){
  .coins-main{ font-size:16px }
  .coins-sub{ display:none } 
}

.brand{display:flex; align-items:center; gap:10px}
.logo{width:24px; height:24px; fill:var(--accent); filter:drop-shadow(0 0 8px rgba(57,255,20,.6))}
.ttl{font-weight:800; letter-spacing:.5px}

 .user-pill{
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:linear-gradient(180deg, rgba(12,24,18,0.6), rgba(12,24,18,0.3));
  box-shadow: inset 0 0 0 1px var(--stroke), 0 6px 18px rgba(0,0,0,.35);
}
.user-pill .pulse{width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(57,255,20,.6); animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(57,255,20,.6)} 70%{box-shadow:0 0 0 14px rgba(57,255,20,0)} 100%{box-shadow:0 0 0 0 rgba(57,255,20,0)}}

 .card{
  background:linear-gradient(180deg, rgba(10,20,15), rgba(10,20,15,.35));
  border-radius:var(--radius-xl); box-shadow:var(--shadow);
  padding:14px; border:1px solid var(--stroke); margin-bottom:14px;
}
.card.hero{padding:18px}
.card.secondary{opacity:.98}
.card .row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.card .col.right{text-align:right}

.kicker{opacity:.8; font-size:12px; letter-spacing:1px; text-transform:uppercase}
.label{opacity:.8; font-size:12px; margin-top:6px}
.uname{font-size:16px; font-weight:600; color:var(--accent); text-shadow:0 0 20px rgba(57,255,20,.25)}
.badge{font-size:11px; letter-spacing:.6px; text-transform:uppercase; padding:6px 8px; border-radius:999px; background:rgba(30,60,45,.5); border:1px solid var(--stroke)}

 .balance{font-size:36px; font-weight:800; letter-spacing:.5px}
.rate{display:inline-flex; align-items:center; gap:6px; opacity:.9}
.rate .dot{width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px rgba(57,255,20,.66)}
.rate .suffix{opacity:.85}

 .ticker{font-family:var(--mono); font-size:12px; line-height:1.35; color:var(--muted); height:36px; overflow:hidden; mask-image:linear-gradient(180deg, transparent, white 20%, white 80%, transparent)}

 .btn{appearance:none; border:0; cursor:pointer; border-radius:14px; padding:10px 12px; font-weight:600; color:var(--fg); background:rgba(15,30,20,.5); border:1px solid var(--stroke); box-shadow:var(--shadow); transition:transform .06s ease, background .2s}
.btn:hover{background:rgba(20,40,30,.55)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.6; pointer-events:none}
.btn.ghost{background:transparent}

 .bottombar{
  position:fixed; z-index:3; left:0; right:0; bottom:0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:6px; padding:10px 12px;
  backdrop-filter:blur(var(--blur));
  background:linear-gradient(180deg, rgba(7,14,10,0.35), rgba(7,14,10,0.75));
  border-top:1px solid var(--stroke);
}
.nav-item{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  text-decoration:none; color:var(--muted); font-size:11px; padding:8px 4px; border-radius:12px
}
.nav-item svg{width:22px; height:22px; fill:currentColor; opacity:.9}
.nav-item.active, .nav-item:active{color:var(--fg); background:rgba(20,40,30,.35)}

 .tabs{display:flex; gap:8px; margin-bottom:12px}
.tab{flex:1; text-align:center; padding:10px; border-radius:12px; border:1px solid var(--stroke); background:rgba(15,30,20,.5); color:var(--fg)}
.tab.active{background:rgba(30,60,45,.5)}
.tab-pane{display:none}
.tab-pane.active{display:block}

 .miners .grid{display:grid; grid-template-columns:1fr; gap:12px}
@media (min-width:440px){ .miners .grid{grid-template-columns:1fr 1fr} }
.miner-card{overflow:hidden; position:relative}
.miner-body{padding:10px 12px 14px}
.miner-title{font-size:16px; margin-bottom:6px; color:var(--accent)}
.miner-desc{opacity:.85; font-size:13px; margin:6px 0 8px}
.miner-meta{display:grid; grid-template-columns:repeat(3,auto); gap:10px; align-items:center; margin-bottom:10px}
.miner-meta .k{opacity:.7; font-size:12px; margin-right:4px}
.miner-meta .v{font-weight:700}
.actions{display:flex; gap:8px; flex-wrap:wrap}

 .miner-media{position:relative; padding:10px 10px 0 10px}
.miner-svg{width:100%; height:auto; display:block}
.fan{animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

 .smoke::after{
  content:''; position:absolute; left:0; right:0; top:0; bottom:0; pointer-events:none;
  background: radial-gradient(ellipse at 50% 100%, rgba(120,255,160,.15), transparent 60%);
  animation: smoke 2s ease-in-out infinite alternate; mix-blend-mode: screen;
}
@keyframes smoke { from{opacity:.2; transform:translateY(4px)} to{opacity:.5; transform:translateY(-4px)} }

 .img-shelf{
  width:126px; height:100px; margin:8px auto 0;
  position:relative; overflow:hidden; border-radius:12px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(10,20,15,.6), rgba(10,20,15,.35));
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
  display:flex; align-items:center; justify-content:center;
}
.img-shelf img.img-126x100{
  width:126px; height:100px; object-fit:contain; image-rendering:auto;
  display:block; transform:translateZ(0);
}
 .img-shelf .shine{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(120deg, transparent 0%, rgba(120,255,160,.07) 45%, transparent 60%);
  transform:translateX(-100%); animation:shine-move 4s linear infinite;
}
@keyframes shine-move{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
 .img-shelf .led{
  position:absolute; right:8px; top:8px; width:10px; height:10px; border-radius:50%;
  background:#2bff88; box-shadow:0 0 10px #2bff88cc; animation:blink 2s infinite;
}
.img-shelf.smoke .led{ background:#ff3b3b; box-shadow:0 0 10px #ff3b3bcc; animation:blink-red 1.2s infinite; }
@keyframes blink{0%,100%{opacity:.9}50%{opacity:.3}}
@keyframes blink-red{0%,100%{opacity:.95}50%{opacity:.4}}
 .img-shelf.smoke::after{
  content:''; position:absolute; left:0; right:0; top:0; bottom:0; pointer-events:none;
  background:radial-gradient(ellipse at 50% 35%, rgba(120,255,160,.12), transparent 60%);
  animation:smoke2 2s ease-in-out infinite alternate; mix-blend-mode:screen;
}
@keyframes smoke2{from{opacity:.15; transform:translateY(1px)} to{opacity:.35; transform:translateY(-1px)}}

 .toast{
  position:fixed; left:50%; bottom:86px; transform:translateX(-50%) translateY(8px);
  opacity:0; background:rgba(20,40,30,.9); border:1px solid var(--stroke);
  padding:10px 14px; border-radius:999px; z-index:10; box-shadow:var(--shadow);
  transition:opacity .2s, transform .2s;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

 @media (min-width:480px){ .balance{font-size:48px} }
 .balance .int{font-variant-numeric: tabular-nums; letter-spacing:.3px}
.balance .frac{
  font-variant-numeric: tabular-nums;
  font-size:.55em; opacity:.9; letter-spacing:.2px;
  vertical-align:baseline; display:inline-block; transform:translateY(-2px);
}
 .btn.icon{padding:10px; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center}
.btn.icon svg{width:20px; height:20px}

 .balance .int{font-variant-numeric:tabular-nums; letter-spacing:.3px}
.balance .frac{font-variant-numeric:tabular-nums; font-size:.55em; opacity:.9; letter-spacing:.2px; vertical-align:baseline; display:inline-block; transform:translateY(-2px)}
 .coins-wrap{display:flex; flex-direction:column; gap:2px}
.coins-main{font-size:22px; font-weight:600; color:var(--accent); text-shadow:0 0 20px rgba(57,255,20,.25)}
.coins-main .unit{font-size:.8em; opacity:.85; margin-left:6px}
.coins-sub{font-size:12px; opacity:.85; font-variant-numeric:tabular-nums}
 .coins-wrap{display:flex; flex-direction:column; gap:6px}
.coins-main{font-size:22px; font-weight:600; color:var(--accent); text-shadow:0 0 20px rgba(57,255,20,.25)}
.coins-main .unit{font-size:.8em; opacity:.85; margin-left:6px}
.coins-sub{font-size:12px; opacity:.85; font-variant-numeric:tabular-nums}

 .coins-actions{display:flex; gap:8px; margin-top:6px}
.btn.icon{padding:10px; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center}
.btn.icon svg{width:20px; height:20px}

 .miner-desc{
  opacity:.9; font-size:13px; line-height:1.35; margin:6px 0 10px;
  color:var(--fg);
}
 .repair-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:8px; padding-top:8px;
  border-top:1px dashed var(--stroke);
}
.repair-row .k{opacity:.75; margin-right:6px; font-size:12px}
.repair-row .v{font-weight:700; color:var(--danger)}
.repair-row .btn.repair{padding:8px 12px}
.pp-title{font-weight:700; margin:6px 0 4px}
.pp-title .hl{color:var(--accent)}
.pp-desc{opacity:.9; margin-bottom:10px}
.pp-link{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.pp-link input{flex:1 1 260px; min-width:200px; padding:10px 12px; border-radius:12px;
  border:1px solid var(--stroke); background:rgba(15,30,20,.5); color:var(--fg); box-shadow:var(--shadow)}
.pp-actions{display:flex; gap:8px}
.pp-hint{opacity:.7; font-size:12px; margin-top:6px}
 .task-list{ display:grid; grid-template-columns:1fr; gap:10px; margin-bottom:14px }
.task-list.dim{ opacity:.85 }
.task-row{ text-align:left; cursor:pointer; padding:12px 14px }
.task-row.disabled{ opacity:.6; cursor:default }
.task-title{ font-size:15px }
.pill{
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700;
  background:rgba(30,60,45,.5); border:1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
}

 .section-head{ padding:10px 12px }

 .modal-backdrop{
  position:fixed; inset:0; z-index:20; display:flex; align-items:flex-end; justify-content:center;
  background:rgba(0,0,0,.35); backdrop-filter: blur(8px);
  transition: opacity .15s ease;
}
.modal-backdrop[hidden]{ display:none }
.modal-backdrop.show{ opacity:1 }
.modal-sheet{
  width:min(560px, calc(100vw - 24px));
  margin:0 12px 12px; position:relative; padding:16px 14px 14px;
}
.modal-close{
  position:absolute; right:10px; top:10px; width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
}
.modal-body{ padding-right:28px }
.modal-title{ font-size:18px; color:var(--accent); margin-bottom:6px }
.modal-reward{ margin-bottom:8px }
.modal-desc{ opacity:.92; line-height:1.35; margin-bottom:10px }
.modal-status{ display:flex; align-items:center; gap:6px; margin-bottom:10px }
.modal-status .k{ opacity:.8; font-size:12px }
.modal-status .v{ font-weight:700 }
.modal-actions{ display:flex; gap:8px; flex-wrap:wrap }

  .task-list { display:grid; grid-template-columns:1fr; gap:10px; margin-bottom:14px }
.task-list.dim { opacity:.85 }
.task-row.card { padding:12px 14px; cursor:pointer; color: var(--fg); }
.task-row.card .task-title { font-size:15px; color: var(--fg); }
.task-row.card.disabled { opacity:.6; cursor:default }
.pill {
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700;
  background:rgba(30,60,45,.6); border:1px solid var(--stroke); color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
}
 .modal-body, .modal-body * { color: var(--fg); }

 .toast{
  position:fixed; left:50%; bottom:88px; transform:translateX(-50%) translateY(8px);
  opacity:0; background:rgba(20,40,30,.95); border:1px solid var(--stroke);
  padding:10px 14px; border-radius:999px; z-index:9999;
  box-shadow: var(--shadow); transition:opacity .2s, transform .2s;
  font-family: var(--mono);
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0) }
 .task-list { display:grid; grid-template-columns:1fr; gap:0px; margin-bottom:4px }
.task-row.card { padding:5px 12px; }
.task-row .task-title { font-size:14px }
.pill { padding:5px 9px; font-size:12px }

 .task-list{ display:grid; grid-template-columns:1fr; gap:6px; margin-bottom:10px }
.task-row.card{ padding:8px 10px }
.task-row .task-title{ font-size:13.5px }
.pill{ padding:5px 8px; font-size:12px }

 
 .refs .card.hero{ padding:16px 14px }
.refs .card.hero .row{ align-items:flex-start; gap:12px }
.refs .pp-link{ display:flex; gap:8px; align-items:center; margin-top:8px }
.refs .pp-link input{
  width:260px; max-width:100%;
  padding:8px 10px; border-radius:10px;
  background:rgba(12,24,18,.6); color:var(--fg); border:1px solid var(--stroke)
}
.refs .pp-actions{ display:flex; gap:8px }
.refs .pp-desc{ opacity:.92; line-height:1.35; margin-top:6px }
.hl{ color: var(--accent) }

@media (max-width:520px){
  .refs .card.hero .row{ flex-direction:column; }
  .refs .pp-link{ width:100% }
  .refs .pp-link input{ width:100% }
}

 .stats.glass-pro{
  position:relative; background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  border-radius:var(--radius-xl); box-shadow: var(--shadow); border:1px solid var(--stroke); padding:14px;
}
.stats .grid3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px }
.stats .stat .s-title{ font-size:12px; opacity:.8; margin-bottom:4px }
.stats .stat .s-num{ color: var(--accent) }
.stats .stat .s-num.xl{ font-size:28px; font-weight:800 }
.stats .stat .s-num.lg{ font-size:22px; font-weight:800 }
.stats .stat .s-num.md{ font-size:18px; font-weight:800 }
.stats .stat .s-earn{ font-size:12px; opacity:.9 }
.stats .total{ display:flex; justify-content:flex-end; margin-top:6px }
.stats .total .pill{
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700;
  background:rgba(30,60,45,.5); border:1px solid var(--stroke);
}

 .section-head .sort{ display:flex; gap:8px }
.btn.ghost.active{ background:rgba(30,60,45,.5); color:var(--fg) }

 .ref-list{ display:grid; grid-template-columns:1fr; gap:8px; margin:8px 0 16px }
.ref-row.card{
  padding:10px 12px; display:grid;
  grid-template-columns: 1fr auto auto; 
  align-items:center; gap:12px;
}
.ref-row .ref-col.name{ min-width:0 }
.ref-row .ref-col.name .n{ font-size:14px; color:var(--fg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.ref-row .ref-col.name .u{ font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.ref-row .ref-col.date{ font-size:12px; opacity:.85 }
.ref-row .ref-col.earn{ font-weight:800; font-size:13px; color:var(--fg) }
.ref-row.card:hover{ background:linear-gradient(180deg, rgba(12,24,18,.65), rgba(12,24,18,.45)) }

.load-more-wrap{ display:flex; justify-content:center; margin-bottom:12px }

 .empty{ opacity:.8; text-align:center; padding:16px 8px; font-family:var(--mono) }

 .toast{ z-index:9999 }
 .load-more-wrap[hidden],
.section-head[hidden]{
  display: none !important;
}


 html, body { overflow-x: hidden; }  

.games .grid-games{
  display:grid; grid-template-columns:1fr; gap:12px;
}
@media (min-width:520px){ .games .grid-games{ grid-template-columns:1fr 1fr; } }
.game-card{
  display:flex; gap:12px; text-decoration:none; color:var(--fg);
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  border:1px solid var(--stroke); border-radius:16px; padding:12px;
}
.game-card:hover{ background:linear-gradient(180deg, rgba(12,24,18,.65), rgba(12,24,18,.45)); }
.game-card .game-media{
  width:120px; height:100px; border-radius:14px; border:1px solid var(--stroke);
  background:radial-gradient(120px 60px at 10% 0%, rgba(57,255,20,.15), transparent), rgba(10,20,15,.45);
  position:relative; flex:0 0 120px;
}
.game-card .game-media .ring{ position:absolute; inset:10px; border-radius:50%; border:2px solid rgba(57,255,20,.55) }
.game-card .game-media .ring.glow{ filter:blur(6px); opacity:.7 }
.game-card .game-media .cap{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-size:28px }
.game-card .game-body{ flex:1 1 auto; min-width:0 }
.game-card .title{ font-weight:800; color:var(--accent); margin-bottom:4px }
.game-card .desc{ opacity:.9; font-size:13px }
.game-card .actions{ margin-top:8px }

 .battle .wheel-card{
  margin-bottom:120px;  
}

.battle .wheel-wrap{
  position:relative; display:flex; justify-content:center; align-items:center;
  padding:8px 0; overflow:hidden;
}

 .battle canvas.wheel{
  display:block; border-radius:50%;
  box-shadow: inset 0 0 0 1px var(--stroke), 0 20px 50px rgba(0,0,0,.45);
}

 .battle .needle{
  position:absolute; top:-2px; left:50%; transform:translateX(-50%);
  width:0; height:0; border-left:12px solid transparent; border-right:12px solid transparent;
  border-top:22px solid var(--accent);
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.6)); z-index:12;
}

 .battle .center-cap{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:86px; height:86px; border-radius:50%; z-index:11; color:var(--fg);
  background:linear-gradient(180deg,#102019,#0a1410); border:2px solid var(--stroke);
  display:flex; align-items:center; justify-content:center; font-weight:900; font-size:18px;
}

 .battle .bank-row{
  display:flex; justify-content:center; margin-top:10px;
}
.battle .bank-pill{
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700;
  background:rgba(30,60,45,.5); border:1px solid var(--stroke);
}

 .wheel-labels{ position:absolute; inset:0; pointer-events:none; z-index:10 }
.wlabel{ position:absolute; left:50%; top:50%; transform-origin:0 0; width:34px; height:34px; }
.avatar-initial.neon{
  width:34px; height:34px; border-radius:50%;
  background:rgba(57,255,20,.12); border:1px solid rgba(57,255,20,.55);
  color:var(--fg); display:flex; align-items:center; justify-content:center; font-weight:900;
  box-shadow:0 0 10px rgba(57,255,20,.2), inset 0 0 12px rgba(57,255,20,.15);
}

 .input.neon{
  background:rgba(12,24,18,.6); color:var(--fg); border:1px solid var(--stroke);
  border-radius:12px; padding:12px; min-width:160px; outline:none;
}
.input.neon:focus{ box-shadow:0 0 0 2px rgba(57,255,20,.18) }

 .tabs.compact{ display:flex; gap:8px; flex-wrap:nowrap }
.tabs.compact .tab.small{
  padding:8px 12px; border-radius:10px; border:1px solid var(--stroke);
  background:rgba(15,30,20,.5); white-space:nowrap
}
.tabs.compact .tab.small.active{ background:rgba(30,60,45,.5) }

 .modal-backdrop{
  position:fixed; inset:0; z-index:20; display:flex; align-items:flex-end; justify-content:center;
  background:rgba(0,0,0,.35); backdrop-filter:blur(8px);
}
.modal-backdrop[hidden]{ display:none!important; }
.modal-sheet{ width:min(560px, calc(100vw - 24px)); margin:0 12px 12px; position:relative; }
.modal-sheet .modal-body{ padding:16px 14px 14px; }
.modal-close{ position:absolute; right:10px; top:10px; width:36px; height:36px; border-radius:10px; }

 .tabs.compact .tab.small { padding:8px 12px; border-radius:10px; border:1px solid var(--stroke); background:rgba(15,30,20,.5); white-space:nowrap }
.tabs.compact .tab.small.active{ background:rgba(30,60,45,.5) }
.tabs.compact .tab.small .sub{ display:block; font-size:11px; opacity:.85; margin-top:2px }

 .battle .wheel-card { margin-bottom: 96px; }
.battle .wheel-wrap { position:relative; display:flex; justify-content:center; align-items:center; padding:8px 0; overflow:hidden; }
.battle .wheel { width:100%; max-width:340px; aspect-ratio:1/1; border-radius:50%;
  background:linear-gradient(180deg,#0b1210,#0a0f0e);
  box-shadow: inset 0 0 0 1px var(--stroke), 0 20px 50px rgba(0,0,0,.45);
}
.wheel-labels{ position:absolute; inset:0; pointer-events:none; z-index:10 }
.wlabel{ position:absolute; left:50%; top:50%; transform-origin:0 0; width:34px; height:34px; }
 
.wins{ display:grid; gap:8px; }
.win-item{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--stroke);
  background:rgba(10,20,15,.45); border-radius:12px; padding:10px 12px;
}
.win-item.me{
  background:linear-gradient(180deg, rgba(30,60,45,.55), rgba(10,20,15,.35));
  box-shadow:0 0 14px rgba(57,255,20,.12) inset;
}
.win-left .win-name{ font-weight:800; color:var(--fg); }
.win-left .win-sub{ font-size:12px; opacity:.8 }
.win-right{ font-weight:900; color:var(--fg); }

 
.coins-wrap2{
  display:inline-flex; 
  flex-direction:row;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background: rgba(16,16,20,.55);
  box-shadow:none;
  backdrop-filter: blur(4px);
}
.coins-main2{
  font-size:16px;
  font-weight:600;
  color: var(--fg);           
  text-shadow: none;         
  white-space: nowrap;
}
.coins-main2 .val{ font-variant-numeric: tabular-nums }
.coins-main2 .unit{ font-size:.85em; opacity:.85; margin-left:6px }

 .wallet-btn{
  background: transparent;
  border:1px solid rgba(255,255,255,.14);
  border-radius: 999px;      
  width:auto; height:auto;
  padding:6px 8px;           
  box-shadow:none;
}
.wallet-btn svg{ width:18px; height:18px; opacity:.9 }

.bottombar .nav-item .icon{
  width: 24px; height: 24px; display: block;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.bottombar .nav-item.active .icon{ opacity: 1; }
.bottombar .nav-item .icon{ opacity: .9; }
.bottombar .nav-item .icon-emoji{
  display:block;
  font-size:22px;     
  line-height:1;
  margin-top:1px;    
}  
.miners .grid{
  grid-template-columns: 1fr !important;
}
@media (min-width: 440px){
  .miners .grid{ grid-template-columns: 1fr !important; }
}

 .miners .miner-desc{
  margin: 8px 14px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 60, 45, .23);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--accent);
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--fg);
}

 .miners .miner-meta.vstack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 8px 0 10px;
}
.miners .miner-meta.vstack .meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dashed var(--stroke);
}
.miners .miner-meta.vstack .meta:first-child{ border-top: 0 }
.miners .miner-meta .k{ opacity:.75; font-size:12px; }
.miners .miner-meta .v{ font-weight:800; }

 .miners .price-pill{
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30,60,45,.5);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
  font-variant-numeric: tabular-nums;
}

 .miners .miner-body{ padding: 10px 12px 14px }
 .miners #miners-grid .actions{
  justify-content: center;    
}

.miners #miners-grid .actions .btn.buy{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(92%, 360px);      
  padding: 12px 18px;        
  font-size: 15px;
  border-radius: 16px;         
}

 @media (max-width: 360px){
  .miners #miners-grid .actions .btn.buy{ width: 100%; }
}

 .rl-card{ padding:16px }
.rl-head{
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center; margin-bottom:12px;
}
.rl-head .title{ font-weight:800; color:var(--accent); margin-bottom:2px }
.rl-head-right{ display:flex; gap:10px; align-items:center }
.rl-spin-btn{ padding:10px 14px }

.rl-stage{
  padding:8px 4px 14px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  border:1px solid var(--stroke); border-radius:16px;
  box-shadow: var(--shadow);
}

.rl-viewport{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  height:128px;  
  background:
    radial-gradient(180px 80px at 50% -40px, rgba(57,255,20,.10), transparent 70%),
    linear-gradient(180deg, rgba(12,24,18,.6), rgba(12,24,18,.35));
}

.rl-strip{
  --rl-gap: 10px;
  position:absolute; left:0; top:50%; transform:translate3d(0,-50%,0);
  display:flex; align-items:center; gap:var(--rl-gap); padding:0 18px;
  will-change: transform;
  transition: none;
}
.rl-tile{
  width:96px; height:96px; flex:0 0 96px;
  border-radius:14px;
  background:rgba(15,30,20,.65);
  border:1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.08), 0 10px 24px rgba(0,0,0,.28);
  display:flex; align-items:center; justify-content:center;
}
.rl-tile .img{ width:92px; height:92px; border-radius:12px; overflow:hidden }
.rl-tile img{ width:100%; height:100%; object-fit:cover; display:block; }

 .rl-indicator{
  position:absolute; left:50%; top:6px; transform:translateX(-50%);
  width:0; height:0;
  border-left:11px solid transparent; border-right:11px solid transparent; border-top:18px solid var(--accent);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
  z-index:5;
}
 .rl-fade{
  position:absolute; top:0; bottom:0; width:42px; z-index:4; pointer-events:none;
  backdrop-filter: blur(1px);
}
.rl-fade-left{ left:0; background:linear-gradient(90deg, rgba(5,6,7,.9), transparent) }
.rl-fade-right{ right:0; background:linear-gradient(270deg, rgba(5,6,7,.9), transparent) }

 .rl-inventory-card{ padding:14px }
.inv-list .win-item{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--stroke);
  background:rgba(10,20,15,.45); border-radius:12px; padding:10px 12px; margin-bottom:8px;
}
.inv-list .win-name{ font-weight:800; color:var(--fg) }
.inv-list .win-sub{ font-size:12px; opacity:.8 }
.inv-list .btn-req{ padding:8px 10px }
 
.rl-win-imgbox{
  display:flex; justify-content:center; margin:10px 0 12px;
}
.rl-win-imgbox img{
  width:140px; height:140px; border-radius:16px; border:1px solid var(--stroke); object-fit:cover;
}

@media (max-width:520px){
  .rl-head{ grid-template-columns: 1fr; gap:8px }
  .rl-head-right{ justify-content:space-between }
}
 
.rl-card{ padding:16px }
.rl-head{
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center; margin-bottom:12px;
}
.rl-head .title{ font-weight:800; color:var(--accent); margin-bottom:2px }
.rl-head-right{ display:flex; gap:10px; align-items:center }

.rl-stage{
  padding:10px 6px 16px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  border:1px solid var(--stroke); border-radius:16px;
  box-shadow: var(--shadow);
}
 
.rl-viewport{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  height:128px;
  background:
    radial-gradient(180px 80px at 50% -40px, rgba(57,255,20,.10), transparent 70%),
    linear-gradient(180deg, rgba(12,24,18,.6), rgba(12,24,18,.35));
}
.rl-strip{
  --rl-gap: 10px;
  position:absolute; left:0; top:50%; transform:translate3d(0,-50%,0);
  display:flex; align-items:center; gap:var(--rl-gap); padding:0 18px;
  will-change: transform;
}
.rl-tile{
  width:96px; height:96px; flex:0 0 96px;
  border-radius:14px;
  background:rgba(15,30,20,.65);
  border:1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08), 0 10px 24px rgba(0,0,0,.28);
  display:flex; align-items:center; justify-content:center;
}
.rl-tile .img{ width:92px; height:92px; border-radius:12px; overflow:hidden }
.rl-tile img{ width:100%; height:100%; object-fit:cover; display:block }
 
.rl-indicator{
  position:absolute; left:50%; top:6px; transform:translateX(-50%);
  width:0; height:0;
  border-left:11px solid transparent; border-right:11px solid transparent; border-top:18px solid var(--accent);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
  z-index:5;
} 
.rl-fade{ position:absolute; top:0; bottom:0; width:42px; z-index:4; pointer-events:none; backdrop-filter: blur(1px) }
.rl-fade-left{ left:0;  background:linear-gradient(90deg, rgba(5,6,7,.9), transparent) }
.rl-fade-right{ right:0; background:linear-gradient(270deg, rgba(5,6,7,.9), transparent) }
 
.rl-cta{ display:flex; justify-content:center; margin-top:14px }
.rl-spin-big{
  font-size:16px;
  padding:14px 22px;
  border-radius:18px;
  border:1px solid rgba(120,255,160,.35);
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(57,255,20,.18), transparent 60%),
    linear-gradient(180deg, rgba(20,40,30,.75), rgba(12,24,18,.55));
  box-shadow: 0 10px 28px rgba(0,0,0,.38), inset 0 0 0 1px rgba(120,255,160,.12);
  font-weight:800;
}
.rl-spin-big:hover{ transform: translateY(-1px) }
.rl-spin-big:active{ transform: translateY(0) }
.rl-spin-big:disabled{
  opacity:.6; cursor:not-allowed;
  filter: grayscale(0.2);
}
 
.rl-inventory-card{ padding:14px }
.inv-list .win-item{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--stroke);
  background:rgba(10,20,15,.45); border-radius:12px; padding:10px 12px; margin-bottom:8px;
}
.inv-list .win-name{ font-weight:800; color:var(--fg) }
.inv-list .win-sub{ font-size:12px; opacity:.8 }
.inv-list .btn-req{ padding:8px 10px }

 .rl-win-imgbox{ display:flex; justify-content:center; margin:10px 0 12px }
.rl-win-imgbox img{
  width:140px; height:140px; border-radius:16px; border:1px solid var(--stroke); object-fit:cover;
}

@media (max-width:520px){
  .rl-head{ grid-template-columns: 1fr; gap:8px }
  .rl-head-right{ justify-content:space-between }
}
 
#rl-win-backdrop .modal-actions{
  justify-content: center;        
  gap: 10px;
}
#rl-win-ok{
  min-width: 180px;                
  font-weight: 800;
  padding: 12px 20px;
}

  .contest .stats.grid{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-top:10px }
  .contest .stat .label{ opacity:.8; font-size:12px }
  .contest .prize-list{ display:grid; gap:8px; margin-top:8px }
  .contest .prize{ display:flex; justify-content:space-between; align-items:center; border:1px solid var(--stroke); border-radius:12px; padding:8px 10px; background:rgba(10,20,15,.45) }
  .contest .prize .pl{ font-weight:800 }
  .contest .board{ display:grid; gap:8px; margin-top:10px }
  .contest .rower{ display:grid; grid-template-columns: 44px 1fr auto; gap:10px; align-items:center; border:1px solid var(--stroke); border-radius:12px; padding:8px 10px; background:rgba(10,20,15,.45) }
  .contest .rower .place{ font-weight:800; text-align:center }
  .contest .rower .name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
  .contest .rower.me{ background:linear-gradient(180deg, rgba(30,60,45,.55), rgba(10,20,15,.35)); box-shadow:0 0 14px rgba(57,255,20,.12) inset }
  .contest .rules{ opacity:.92; line-height:1.4 }
 
.contest .prize-list{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:8px;
}
.contest .prize{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  background:rgba(10,20,15,.45); border:1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,0.08);
}
.contest .prize .pl{ font-weight:800 }
 
.contest .timeleft .timebig{ font-size:28px; font-weight:800 }
 
.contest .board{ display:grid; gap:8px; margin-top:10px }
.contest .rower{
  display:grid; grid-template-columns: 44px 1fr auto; gap:10px; align-items:center;
  border:1px solid var(--stroke); border-radius:12px; padding:8px 10px;
  background:rgba(10,20,15,.45)
}
.contest .rower .place{ font-weight:800; text-align:center }
.contest .rower .name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.contest .rower.me{
  background:linear-gradient(180deg, rgba(30,60,45,.55), rgba(10,20,15,.35));
  box-shadow:0 0 14px rgba(57,255,20,.12) inset
}

 
.contest .rules{ opacity:.92; line-height:1.4 }
.cup-cta{
  position:relative; display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:16px 16px; margin-bottom:14px; text-decoration:none; color:var(--fg);
  border-radius: var(--radius-xl);
  border:1px solid rgba(120,255,160,.35);
  background:
    radial-gradient(140% 120% at 20% -20%, rgba(57,255,20,.20), transparent 60%),
    linear-gradient(180deg, rgba(18,36,28,.95), rgba(12,24,18,.75));
  box-shadow: 0 14px 36px rgba(0,0,0,.42), inset 0 0 0 1px rgba(120,255,160,.12), 0 0 0 1px rgba(120,255,160,.18);
  overflow:hidden;
}
.cup-cta:hover{ transform: translateY(-1px); }
.cup-cta:active{ transform: translateY(0); }

.cup-shine{
  position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(120deg, transparent 0%, rgba(120,255,160,.18) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: cup-shine-move 4s linear infinite;
}
@keyframes cup-shine-move{ to { transform: translateX(120%); } }

.cup-left{ display:flex; align-items:center; gap:12px; min-width:0 }
.cup-ico{ width:32px; height:32px; color:#39ff14; filter: drop-shadow(0 0 10px rgba(57,255,20,.5)); flex:0 0 32px }
.cup-text{ display:flex; flex-direction:column; min-width:0 }
.cup-text .title{ font-weight:900; letter-spacing:.5px; line-height:1; font-size:18px; text-shadow:0 0 18px rgba(57,255,20,.35); }
.cup-text .sub{ margin-top:3px; opacity:.92; font-size:13px; color: var(--fg); }

.cup-right{ display:flex; align-items:center; gap:8px; margin-left:auto }
.cup-right .cta{
  display:inline-block; font-weight:800; padding:8px 12px; border-radius:12px;
  border:1px solid rgba(120,255,160,.35);
  background: linear-gradient(180deg, rgba(30,60,45,.65), rgba(15,30,20,.55));
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.08);
}
.cup-right .arrow{ width:20px; height:20px; opacity:.95 }
@media (max-width:420px){
  .cup-text .title{ font-size:16px }
  .cup-ico{ width:28px; height:28px; flex:0 0 28px }
}

.streak-wrap{ margin-top:10px; }
.streak-head{ display:grid; gap:4px; margin-bottom:8px; }
.streak-title{ font-weight:800; color:var(--accent); }
.streak-sub{ opacity:.9; font-size:13px; }
.streak-day{ font-family:var(--mono); font-size:12px; opacity:.85 }

.streak-viewport{
  position:relative;
  overflow-x:auto;
  overflow-y:hidden;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(10,20,15,.6), rgba(10,20,15,.35));
  padding:10px 8px;
  scroll-snap-type:x mandatory;
}
.streak-viewport::-webkit-scrollbar{ height:8px }
.streak-viewport::-webkit-scrollbar-thumb{ background:rgba(120,255,160,.22); border-radius:999px }

.streak-strip{
  display:flex; align-items:stretch; gap:8px; min-width:max-content;
}
.streak-tile{
  width:96px; height:108px; flex:0 0 auto; position:relative;
  border-radius:12px; border:1px solid var(--stroke);
  background:rgba(15,30,20,.65);
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.08), 0 10px 24px rgba(0,0,0,.28);
  scroll-snap-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  font-size:12px;
}
.streak-tile .imgbox{ width:84px; height:64px; border-radius:10px; overflow:hidden; border:1px solid var(--stroke); background:rgba(0,0,0,.2) }
.streak-tile .imgbox img{ width:100%; height:100%; object-fit:contain; display:block; image-rendering:auto }
.streak-tile .cap{ font-weight:800; white-space:nowrap; max-width:90px; overflow:hidden; text-overflow:ellipsis }
.streak-tile .cap.small{ font-weight:700; opacity:.9; }
.streak-tile .tix{ font-size:20px; line-height:1; }
.streak-tile .day{ position:absolute; left:6px; top:6px; font-size:11px; opacity:.75; }
.streak-tile .chk{
  position:absolute; right:6px; top:6px; width:20px; height:20px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1px solid var(--stroke);
  background:rgba(30,60,45,.35); color:var(--fg); opacity:0;
  font-weight:900;
}
.streak-tile.done .chk{ opacity:1; }
.streak-grand{
  margin-top:8px; font-size:12.5px; opacity:.92;
  border-left:3px solid var(--accent);
  padding-left:10px;
}

/* ===== Raffle page (обновлено) ===== */
.raffle .rf-desc{ opacity:.92; line-height:1.38; margin-top:6px }

/* Пьедестал 1–3 */
.rf-podium{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
  align-items:end;
  margin-top:10px;
}
@media (max-width:640px){
  .rf-podium{ grid-template-columns: 1fr; }
}

.rf-podium .prize-card{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:8px 8px 10px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.06);
}

.rf-podium .prize-media{
  position:relative;
  height: clamp(96px, 18vw, 150px); /* авто-уменьшение при нехватке ширины */
  border:1px solid var(--stroke);
  border-radius:12px;
  overflow:hidden;
  background:rgba(0,0,0,.2);
  margin-bottom:8px;
  display:flex; align-items:center; justify-content:center;
}
.rf-podium .slot-1 .prize-media{
  height: clamp(110px, 22vw, 180px); /* 1 место крупнее */
}
.rf-podium .prize-media img{
  width:100%; height:100%; object-fit:contain; display:block;
}

.rf-podium .prize-title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.rf-podium .slot-1 .prize-title{ font-size:15px }
.rf-podium .slot-2 .prize-title,
.rf-podium .slot-3 .prize-title{ font-size:14px }

.medal{
  position:absolute; left:8px; top:8px;
  font-weight:900; font-size:12px;
  padding:6px 8px; border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(30,60,45,.55);
}
.medal-gold{ color:#ffd700 }
.medal-silver{ color:#c0c0c0 }
.medal-bronze{ color:#d28b47 }

/* Остальные призы */
.rf-more{ display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:12px }
.rf-more[hidden]{ display:none !important; }
.rf-more-wrap{ width:100% }
.rf-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px }
.rf-li{
  display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center;
  border:1px solid var(--stroke); border-radius:12px; padding:8px 10px;
  background:rgba(10,20,15,.45);
}
.rf-li .where{ opacity:.9 }
.rf-li .what{ font-weight:800; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
/* ===== Raffle podium: always one row, compact ===== */
.raffle .rf-podium{
  display:flex !important;
  gap:8px;
  align-items:flex-end;
  margin-top:10px;
}
.raffle .rf-podium .prize{
  flex:1 1 0;         /* три равных колонки в одну строку */
  min-width:0;
}

.raffle .rf-podium .prize-card{
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:6px 6px 8px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.06);
}

.raffle .rf-podium .prize-media{
  position:relative;
  height: clamp(56px, 15vw, 92px);      /* меньше картинки на мобилках */
  border:1px solid var(--stroke);
  border-radius:10px;
  overflow:hidden;
  background:rgba(0,0,0,.2);
  margin-bottom:6px;
  display:flex; align-items:center; justify-content:center;
}
.raffle .rf-podium .slot-1 .prize-media{
  height: clamp(64px, 17vw, 108px);     /* 1-е место чуть крупнее */
}
.raffle .rf-podium .prize-media img{
  width:100%; height:100%; object-fit:contain; display:block;
}

.raffle .rf-podium .prize-title{
  font-weight:800;
  font-size:12.5px;                     /* ужали подписи, чтобы не ломались строки */
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.raffle .medal{
  left:6px; top:6px;
  font-size:11px;
  padding:4px 6px;
  border-radius:999px;
  background:rgba(30,60,45,.55);
  border:1px solid var(--stroke);
}
/* Небольшие боковые поля на странице розыгрыша */
.raffle{ padding-left:10px; padding-right:10px; }
@media (min-width:480px){
  .raffle{ padding-left:12px; padding-right:12px; }
}

/* Подиум всегда в одну строку, компактные карточки */
.raffle .rf-podium{
  display:flex !important;
  gap:8px;
  align-items:flex-end;
  margin-top:10px;
}
.raffle .rf-podium .prize{ flex:1 1 0; min-width:0; }

.raffle .rf-podium .prize-card{
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:6px 6px 8px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.06);
}
.raffle .rf-podium .prize-media{
  position:relative;
  height: clamp(56px, 15vw, 92px);
  border:1px solid var(--stroke);
  border-radius:10px;
  overflow:hidden;
  background:rgba(0,0,0,.2);
  margin-bottom:6px;
  display:flex; align-items:center; justify-content:center;
}
.raffle .rf-podium .slot-1 .prize-media{ height: clamp(64px, 17vw, 108px); }
.raffle .rf-podium .prize-media img{ width:100%; height:100%; object-fit:contain; display:block; }
.raffle .rf-podium .prize-title{
  font-weight:800; font-size:12.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* бейдж места */
.raffle .medal{
  left:6px; top:6px;
  font-size:11px; padding:4px 6px;
  border-radius:999px; background:rgba(30,60,45,.55); border:1px solid var(--stroke);
}

/* НЕ раскладывать подиум в одну колонку на мобилках */
@media (max-width:520px){
  .rf-podium{ grid-template-columns:unset !important; }
}
/* более компактные медиа-блоки и изображения */
.raffle .rf-podium .prize-media{
  height: clamp(58px, 18vw, 96px);  /* ниже → уже не вылезает за край */
  border-radius:10px;
  margin-bottom:6px;
  padding:4px;                      /* внутренний зазор от краёв */
}
.raffle .rf-podium .slot-1 .prize-media{
  height: clamp(64px, 20vw, 108px);
}
.raffle .rf-podium .prize-media img{
  max-width:92%;
  max-height:82%;
  width:auto; height:auto;
  object-fit:contain;
}

.raffle .rf-podium .prize-card{ padding:6px 6px 8px; }
.raffle .rf-podium .prize-title{
  font-weight:800; font-size:12.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Таб-панели: гарантировано скрывать неактивную */
.tab-pane{ display:none; }
.tab-pane.active{ display:block; }

/* ==== RAFFLE PODIUM — FIX OVERFLOW (force 3 cols, trim widths) ==== */
.raffle .rf-podium{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 8px;
  margin: 8px 4px 0;           /* небольшой внутренний зазор справа/слева */
  padding-right: 2px;          /* анти-оверфлоу на sub-pixel */
  overflow: hidden;            /* на всякий случай обрезаем хвосты */
}
.raffle .rf-podium .prize{ min-width: 0; }

.raffle .rf-podium .prize-card{
  width: 100%;
  padding: 6px 6px 8px;
}

.raffle .rf-podium .prize-media{
  height: 80px;                /* было ~100+ — уменьшили */
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 10px;
}

.raffle .rf-podium .slot-1 .prize-media{
  height: 90px;                /* «золото» чуть выше, но в тех же рамках */
}

.raffle .rf-podium .prize-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.raffle .rf-podium .prize-title{
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Чуть ужимаем сами карточки на странице, чтобы ни одна не касалась правого края */
.raffle .card{ margin-left: 8px; margin-right: 8px; }
.raffle .rf-podium{ margin:8px 4px 0 !important; padding-right:2px !important; }

/* ===== Raffle (под замену) ===== */

/* убрать правый «Призы · N» на герое */
#rf-info{ display:none !important; }

/* небольшие поля, чтобы контент не упирался в правый край */
section.raffle{ padding-left:12px; padding-right:12px; }
section.raffle .card{ margin-left:8px; margin-right:8px; }

/* табы: показываем только активную панель */
section.raffle .tab-pane{ display:none; }
section.raffle .tab-pane.active{ display:block; }

/* описание */
.raffle .rf-desc{ opacity:.92; line-height:1.38; margin-top:6px }

/* ===== Пьедестал: всегда одна строка из 3 карточек ===== */
section.raffle .rf-podium{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px;
  align-items:flex-end;
  margin-top:10px;
  overflow:hidden;
}
section.raffle .rf-podium > .prize{
  flex:1 1 0% !important;
  min-width:0;
}

/* карточка приза */
section.raffle .rf-podium .prize-card{
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:6px 6px 8px;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35));
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.06);
}

/* медиа-блок с картинкой */
section.raffle .rf-podium .prize-media{
  position:relative;
  height:clamp(60px, 16vw, 100px);
  margin-bottom:6px;
  padding:4px;
  border:1px solid var(--stroke);
  border-radius:10px;
  background:rgba(0,0,0,.2);
  display:flex; align-items:center; justify-content:center;
}
/* 1 место — немного крупнее */
section.raffle .rf-podium .slot-1 .prize-media{
  height:clamp(68px, 18vw, 112px);
}

/* изображение */
section.raffle .rf-podium .prize-media img{
  width:auto; height:auto;
  max-width:100%; max-height:100%;
  object-fit:contain; display:block;
}

/* подпись */
section.raffle .rf-podium .prize-title{
  font-weight:800;
  font-size:12.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* бейдж места */
section.raffle .medal{
  position:absolute; left:6px; top:6px;
  font-weight:900; font-size:11px;
  padding:4px 6px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(30,60,45,.55);
}
section.raffle .medal-gold{ color:#ffd700 }
section.raffle .medal-silver{ color:#c0c0c0 }
section.raffle .medal-bronze{ color:#d28b47 }

/* ===== Остальные призы ===== */
.rf-more{ display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:12px }
.rf-more[hidden]{ display:none !important; }
.rf-more-wrap{ width:100% }
.rf-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px }
.rf-li{
  display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center;
  border:1px solid var(--stroke); border-radius:12px; padding:8px 10px;
  background:rgba(10,20,15,.45);
}
.rf-li .where{ opacity:.9 }
.rf-li .what{ font-weight:800; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }

/* компактнее на очень узких экранах */
@media (max-width:400px){
  section.raffle .rf-podium{ gap:6px; }
  section.raffle .rf-podium .prize-media{ height:clamp(56px, 22vw, 90px); }
}

/* ===== RAFFLE — HARD SHRINK / ONE ROW ===== */
section.raffle .rf-podium{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  column-gap:6px !important;
  row-gap:8px !important;
  margin:8px 4px 0 !important;
  padding-right:2px !important;
  overflow:hidden !important;
}
section.raffle .rf-podium .prize{ min-width:0 !important; }

section.raffle .rf-podium .prize-card{
  width:100% !important;
  padding:6px !important;
  border:1px solid var(--stroke) !important;
  border-radius:12px !important;
  background:linear-gradient(180deg, rgba(10,20,15,.55), rgba(10,20,15,.35)) !important;
  text-align:center !important;
}

/* КАРТИНКИ — сильно меньше */
section.raffle .rf-podium .prize-media{
  position:relative !important;
  height:54px !important;           /* было 80–110px → стало 54px */
  margin-bottom:6px !important;
  padding:2px !important;
  border:1px solid var(--stroke) !important;
  border-radius:10px !important;
  background:rgba(0,0,0,.2) !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
section.raffle .rf-podium .slot-1 .prize-media{ height:60px !important; } /* золото чуть выше */

section.raffle .rf-podium .prize-media img{
  width:auto !important; height:auto !important;
  max-width:75% !important;         /* ещё ужали ширину */
  max-height:75% !important;
  object-fit:contain !important; display:block !important;
}

section.raffle .rf-podium .prize-title{
  font-weight:800 !important;
  font-size:12px !important;
  white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
}

section.raffle .medal{
  position:absolute !important; left:6px !important; top:6px !important;
  font-weight:900 !important; font-size:11px !important;
  padding:4px 6px !important; border-radius:999px !important;
  border:1px solid var(--stroke) !important;
  background:rgba(30,60,45,.55) !important;
}

/* Чтоб ничего не выталкивало страницу вправо */
section.raffle .card{ margin-left:8px !important; margin-right:8px !important; }
section.raffle, section.raffle *{ max-width:100% !important; }
html, body{ overflow-x:hidden !important; }

/* Медаль под названием (только на странице розыгрыша) */
section.raffle .rf-podium .prize-badge{ 
  text-align:center; 
  margin-top:6px;
}

section.raffle .rf-podium .medal{
  position:static !important;     /* убираем absolute */
  display:inline-block;
  font-weight:900;
  font-size:11px;
  padding:4px 8px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(30,60,45,.55);
}
section.raffle .rf-podium .medal-gold{  color:#ffd700 }
section.raffle .rf-podium .medal-silver{ color:#c0c0c0 }
section.raffle .rf-podium .medal-bronze{ color:#d28b47 }
/* === Спец-вкладка: крупная кнопка купить по центру и кликабельные билеты === */
#special-grid .actions{ display:flex; justify-content:center; }
#special-grid .actions .btn.buy{
  display:inline-flex; align-items:center; justify-content:center;
  width:min(92%, 360px); padding:12px 18px; font-size:15px; border-radius:16px;
}

/* Пилюля с билетами */
.tickets-pill{ cursor:pointer; text-decoration:none; }
.tickets-pill:hover{ background:rgba(30,60,45,.65); }

/* На всякий случай — убираем любые плейсхолдеры «пусто» в спецах */
#special-grid .empty, #special-owned .empty{ display:none !important; }
/* === Special tickets pill + big centered BUY in "Специальные" + NEW badge on tab === */

/* Пилюля с билетами */
.tickets-pill{
  cursor:pointer;
  text-decoration:none;
}
.tickets-pill:hover{ background:rgba(30,60,45,.65); }

/* Крупная кнопка по центру только для вкладки «Специальные» */
#tab-special #special-grid .actions{ display:flex; justify-content:center; }
#tab-special #special-grid .actions .btn.buy{
  display:inline-flex; align-items:center; justify-content:center;
  width:min(92%, 360px); padding:12px 18px; font-size:15px; border-radius:16px;
}

/* Бейдж NEW на табе «Специальные» */
.tabs .tab{ position:relative; }
.tabs .tab[data-tab="special"]::after{
  content: "NEW";
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  padding: 3px 6px 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0b2b00;
  background: radial-gradient(50% 60% at 30% 30%,
    #eaffd2 0%,
    #b9ff7a 45%,
    #39ff14 70%,
    #00c853 100%);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, .65),
    0 0 8px rgba(200, 255, 180, .95),
    0 0 18px rgba(57, 255, 20, .55),
    inset 0 0 6px rgba(255, 255, 255, .7);
  pointer-events: none;
  animation: neonPulse 1.8s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce){
  .tabs .tab[data-tab="special"]::after{ animation:none; }
}
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 20, .5),
      0 0 6px rgba(200, 255, 180, .8),
      0 0 14px rgba(57, 255, 20, .35),
      inset 0 0 4px rgba(255, 255, 255, .5);
    filter: saturate(1.05);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 20, .85),
      0 0 12px rgba(200, 255, 180, 1),
      0 0 28px rgba(57, 255, 20, .6),
      inset 0 0 8px rgba(255, 255, 255, .9);
    filter: saturate(1.25);
  }
}
/* === Tickets overlay badge on miner card image === */
.img-shelf{ position:relative; }
.img-shelf .tickets-badge{
  position:absolute;
  left:8px; bottom:8px;
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900; font-size:12px; line-height:1;
  color:#0b2b00;                 /* контраст на неоне; можно сменить на #fff */
  background: radial-gradient(60% 70% at 30% 30%,
    #eaffd2 0%,
    #b9ff7a 45%,
    #39ff14 70%,
    #00c853 100%);
  box-shadow:
    0 0 0 1px rgba(57,255,20,.65),
    0 3px 16px rgba(0,0,0,.45),
    0 0 14px rgba(57,255,20,.45),
    inset 0 0 6px rgba(255,255,255,.75);
  z-index:3;
  transform: translateZ(0);
}
.img-shelf .tickets-badge .ico{
  width:16px; height:16px; flex:0 0 16px;
  color:#0b2b00; opacity:.95;
}
.img-shelf .tickets-badge .txt{
  white-space:nowrap; max-width:160px; overflow:hidden; text-overflow:ellipsis;
}
.img-shelf .tickets-badge:hover{
  filter: saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(57,255,20,.85),
    0 6px 22px rgba(0,0,0,.5),
    0 0 18px rgba(57,255,20,.65),
    inset 0 0 8px rgba(255,255,255,.9);
}
@media (max-width:420px){
  .img-shelf .tickets-badge{ padding:6px 9px; font-size:11px; gap:5px; }
  .img-shelf .tickets-badge .txt{ max-width:120px; }
}

/* === Крупная кнопка в «Специальные» + NEW на табе === */
#tab-special #special-grid .actions{ display:flex; justify-content:center; }
#tab-special #special-grid .actions .btn.buy{
  display:inline-flex; align-items:center; justify-content:center;
  width:min(92%, 360px); padding:12px 18px; font-size:15px; border-radius:16px;
}

/* NEW badge на табе Специальные */
.tabs .tab{ position:relative; }
.tabs .tab[data-tab="special"]::after{
  content: "NEW";
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  padding: 3px 6px 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0b2b00;
  background: radial-gradient(50% 60% at 30% 30%,
    #eaffd2 0%,
    #b9ff7a 45%,
    #39ff14 70%,
    #00c853 100%);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, .65),
    0 0 8px rgba(200, 255, 180, .95),
    0 0 18px rgba(57, 255, 20, .55),
    inset 0 0 6px rgba(255, 255, 255, .7);
  pointer-events: none;
  animation: neonPulse 1.8s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce){
  .tabs .tab[data-tab="special"]::after{ animation:none; }
}
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 20, .5),
      0 0 6px rgba(200, 255, 180, .8),
      0 0 14px rgba(57, 255, 20, .35),
      inset 0 0 4px rgba(255, 255, 255, .5);
    filter: saturate(1.05);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 20, .85),
      0 0 12px rgba(200, 255, 180, 1),
      0 0 28px rgba(57, 255, 20, .6),
      inset 0 0 8px rgba(255, 255, 255, .9);
    filter: saturate(1.25);
  }
}
 
.miner-card .ticket-row a:hover{ transform: translateY(-1px); }
.miner-card .ticket-row a:active{ transform: translateY(0); }
 
.raffle #rf-board { margin-top: 16px; }


/* Вариант кнопки для розыгрыша — мягкий циан, минимум пестроты */
.cup-cta.cup-cta--raffle{
  border:1px solid rgba(11,215,255,.38);
  background:
    radial-gradient(140% 120% at 20% -20%, rgba(11,215,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(14,22,28,.96), rgba(10,16,18,.78));
  box-shadow:
    0 14px 30px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(11,215,255,.12),
    0 0 0 1px rgba(11,215,255,.18);
}
.cup-cta.cup-cta--raffle .cup-shine{
  background: linear-gradient(120deg, transparent 0%, rgba(11,215,255,.16) 45%, transparent 60%);
  animation-duration: 4.6s; /* чуть медленнее стандартной */
}
.cup-cta.cup-cta--raffle .cup-ico{
  color:#0bd7ff;
  filter: drop-shadow(0 0 8px rgba(11,215,255,.45));
}
.cup-cta.cup-cta--raffle .cup-text .title{
  text-shadow:0 0 16px rgba(11,215,255,.28);
}
.cup-cta.cup-cta--raffle .cup-right .cta{
  border:1px solid rgba(11,215,255,.35);
  background: linear-gradient(180deg, rgba(14,28,34,.65), rgba(10,20,24,.55));
  box-shadow: inset 0 0 0 1px rgba(11,215,255,.08);
}
.cup-cta.cup-cta--raffle .cup-right .arrow{
  opacity:.95;
  filter: drop-shadow(0 0 8px rgba(11,215,255,.35));
}
/* staking inputs + warning + stacked metrics */
.copy-row{ display:flex; gap:8px; align-items:center; margin-top:6px }
.copy-row .input{ flex:1 1 auto; min-width:0 }
.copy-row .btn{ flex:0 0 auto }

.warn.card{ border:1px solid rgba(255,213,79,.35)!important;
  background: linear-gradient(180deg, rgba(36,30,12,.9), rgba(30,24,10,.7));
  box-shadow: inset 0 0 0 1px rgba(255,213,79,.12);
  margin-top:12px;
}

.metrics.vstack{ display:flex; flex-direction:column; gap:10px; }
.metric-row{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.metric-row .k{ opacity:.92 }
.metric-row .v{ font-weight:900 }

/* simple list look */
.stake-list .stk-row{ padding:10px 12px; border:1px solid rgba(120,255,160,.2); border-radius:14px; margin-bottom:8px; }
.stake-list .stk-row .sub{ opacity:.85; font-size:12px; margin-top:4px }
.stake-list .btn.xs{ padding:6px 10px; margin-top:8px }

.stake-hist .stk-pay{ padding:10px 12px; border:1px dashed rgba(120,255,160,.25); border-radius:12px; margin-bottom:8px }
.stake-hist .stk-pay .sub{ opacity:.8; font-size:12px; margin-top:2px }
/* staking layout refinements */
.staking .card .kicker{ margin-bottom: 10px; }              /* отступ под тайтлами */
.staking .hero .rf-desc{ margin-top: 6px; margin-bottom: 10px; }
#stk-buy-link{ margin-top: 12px; }                           /* отступ сверху у кнопки "Где купить" */

.copy-row{ display:flex; gap:8px; align-items:center; margin-top:6px }
.copy-row .input{ flex:1 1 auto; min-width:0 }
.copy-row .btn{ flex:0 0 auto }

.warn.card{ border:1px solid rgba(255,213,79,.35)!important;
  background: linear-gradient(180deg, rgba(36,30,12,.9), rgba(30,24,10,.7));
  box-shadow: inset 0 0 0 1px rgba(255,213,79,.12);
  margin-bottom: 12px;                                       /* зазор до инпутов */
}

.metrics.vstack{ display:flex; flex-direction:column; gap:10px; }
.metric-row{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.metric-row .k{ opacity:.92 }
.metric-row .v{ font-weight:900 }

.stake-list .stk-row{ padding:10px 12px; border:1px solid rgba(120,255,160,.2); border-radius:14px; margin-bottom:8px }
.stake-list .stk-row .sub{ opacity:.85; font-size:12px; margin-top:4px }
.stake-list .btn.xs{ padding:6px 10px; margin-top:8px }

.stake-hist .stk-pay{ padding:10px 12px; border:1px dashed rgba(120,255,160,.25); border-radius:12px; margin-bottom:8px }
.stake-hist .stk-pay .sub{ opacity:.8; font-size:12px; margin-top:2px }
/* STAKING: rows tidy */
.stake-list .stk-item,
.stake-hist .hist-item{
  border:1px solid rgba(120,255,160,.18);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(18,36,28,.65), rgba(12,24,18,.45));
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.06);
  padding:12px 14px;
  margin-bottom:10px;
}

.stk-top, .hist-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.stk-amt{ font-weight:900; }
.stk-amt .unit{ margin-left:6px; }

.stk-status{ margin-top:6px; }
.stk-unlock{ margin-top:4px; opacity:.85; }
.stk-dates{ margin-top:6px; font-size:12px; opacity:.85; }
.stk-actions{ margin-top:10px; display:flex; justify-content:flex-end; }

.hist-sub{ margin-top:6px; font-size:12px; opacity:.85; }
/* STAKING — компактные карточки */
.stake-list .stk-item,
.stake-hist .hist-item{
  border:1px solid rgba(120,255,160,.18);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(18,36,28,.58), rgba(10,20,16,.42));
  box-shadow: inset 0 0 0 1px rgba(120,255,160,.05);
  padding:12px 14px;
  margin-bottom:10px;
}

.stk-top, .hist-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.stk-amt{ font-weight:900; font-size:18px; letter-spacing:.3px; }
.stk-status{ font-size:12px; }
.stk-dates{ margin-top:6px; font-size:12px; opacity:.85; }
.stk-actions{ margin-top:10px; display:flex; justify-content:flex-end; }

.hist-top .mono:first-child{ opacity:.9; }
