/* vipstake-modal + vipstake-layout: VIP stake picker */
.rmNew .srvForm #rnVip.rnVipReady{
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  visibility:visible!important;
  pointer-events:auto!important;
  margin:6px 0 2px;
}
.rmNew .srvForm:has(#rnVip.rnVipReady){
  zoom:1!important;
  height:auto!important;
  max-height:min(92vh,calc(100dvh - 12px))!important;
  overflow:auto!important;
}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTiles{gap:6px;margin:2px 0 4px}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile{min-height:96px}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile .rnArt{height:54px}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile .rnArt img{height:52px}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile b{font-size:12px;padding-top:4px}
.rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile small{font-size:10px;padding-bottom:5px}
.rmNew .srvForm:has(#rnVip.rnVipReady) label{margin:2px 0}
.rmNew .srvForm:has(#rnVip.rnVipReady)>div:last-child{
  position:sticky;bottom:0;z-index:2;
  padding-top:8px;margin-top:4px;
  background:linear-gradient(180deg,transparent,#0b0826f2 28%);
}
.vsPickBtn{
  width:100%;min-height:44px;padding:10px 14px;
  font:800 15px Baloo,system-ui,sans-serif!important;
  letter-spacing:.02em;
  box-shadow:0 0 22px #f5c54266,0 6px 18px #0008;
}
.vsHint{margin:4px 2px 0;font-size:11px;line-height:1.35;text-align:center}
.vsSum{
  display:grid;gap:6px;padding:8px 10px;border-radius:14px;
  background:linear-gradient(135deg,#2a1d06e8,#12103ae8);
  border:1.5px solid #f5c54299;box-shadow:0 0 18px #f5c54233;
}
.vsSumH{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.vsSumH b{font:800 14px Baloo,system-ui;color:#ffe08a}
.vsSumH small{color:#9aa3d8;font-size:11px}
.vsSum .stChips{justify-content:flex-start}
.vsSum #vsChange{justify-self:start}

.vsModal{z-index:9900!important;background:#05031ccc!important}
.vsModal .vsBox{
  width:min(960px,96vw)!important;max-width:96vw!important;
  height:min(720px,94vh)!important;max-height:calc(100dvh - 12px)!important;
  display:flex!important;flex-direction:column!important;
  gap:8px;padding:14px 16px 12px!important;
  background:radial-gradient(circle at 50% 0%,#3a2800,#0a0826 55%)!important;
  border:1.5px solid #f5c542aa!important;
  box-shadow:0 0 40px #f5c54244,0 20px 60px #000c!important;
  overflow:hidden!important;
}
.vsHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex:none}
.vsHead small{display:block;color:#ffe08a;letter-spacing:.14em;font:800 11px Baloo,system-ui}
.vsHead h3{margin:2px 0 0;font:900 26px Baloo,system-ui;color:#fff6d0;text-shadow:0 0 18px #f5c54288}
.vsX{font-size:16px;min-width:34px;height:34px}
.vsLead{margin:0;flex:none;font-size:13px}
.vsTabs{
  display:flex;flex-wrap:nowrap;gap:6px;flex:none;
  overflow:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch;
}
.vsTab{
  flex:1 0 auto;min-width:88px;padding:10px 14px;border-radius:999px;
  border:1.5px solid #ffffff22;background:#ffffff0c;color:#d9dcff;
  font:800 13px Barlow,system-ui;cursor:pointer;white-space:nowrap;
}
.vsTab:hover{border-color:#f5c54266;color:#fff}
.vsTab.on{
  border-color:#f5c542;background:linear-gradient(180deg,#ffd76a,#f0a92b);color:#2a1700;
  box-shadow:0 0 16px #f5c54277;
}
.vsBody{
  flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:4px 2px 8px;
  display:flex!important;flex-direction:column!important;align-items:stretch;gap:8px;
}
.vsNote,.vsNoteTop,.vsEmpty{
  display:block;width:100%;flex:none;margin:0;padding:0 2px;
  font-size:12px;line-height:1.4;box-sizing:border-box;
}
.vsGrid{
  display:grid!important;
  width:100%!important;
  box-sizing:border-box;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
  gap:10px;
  flex:none;
}
.vsGrid.vsSkins{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
}
.vsTile{
  position:relative;display:flex;flex-direction:column;align-items:center;
  gap:4px;min-height:0;padding:12px 10px 10px;border-radius:16px;
  border:2px solid #ffffff22;background:linear-gradient(180deg,#1a1640ee,#0b0826ee);
  color:#fff;cursor:pointer;font:inherit;text-align:center;
  transition:transform .12s,border-color .12s,box-shadow .12s;
  box-sizing:border-box;user-select:none;overflow:hidden;
}
.vsTile:hover:not(.none):not([aria-disabled=true]){transform:translateY(-2px);border-color:#f5c54288}
.vsTile.on{
  border-color:#f5c542;background:linear-gradient(180deg,#3a2800ee,#1a1240ee);
  box-shadow:0 0 0 1px #f5c54255,0 0 22px #f5c54255;
  min-height:0;padding-bottom:10px;
}
.vsTile.none,.vsTile[aria-disabled=true]{opacity:.38;cursor:not-allowed;filter:grayscale(.5);pointer-events:none}
.vsArt{
  display:grid;place-items:center;flex:none;
  width:72px;height:72px;max-width:100%;
  overflow:hidden;margin:0;
}
.vsTile .stI,.vsTile img,.vsArt .stI,.vsArt img{
  width:68px!important;height:68px!important;max-width:100%;max-height:100%;
  object-fit:contain;filter:drop-shadow(0 4px 8px #000a);
}
.vsTile svg.stI,.vsArt svg.stI{width:64px!important;height:64px!important;max-width:100%;max-height:100%}
.vsTile b{
  font:800 13px Barlow,system-ui;line-height:1.2;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;max-width:100%;word-break:break-word;
}
.vsTile small{color:#9aa3d8;font-size:11px;line-height:1.2}
.vsTile small em{color:#ffe08a;font-style:normal;font-weight:800}
.vsTile>i{font-style:normal;margin-top:2px;padding:4px 12px;border-radius:999px;background:#ffffff12;font:700 11px Barlow,system-ui;color:#cfc8f5}
.vsTile.on>i{display:none}

.vsCtrl{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  width:100%;margin-top:2px;padding-top:2px;flex:none;
}
.vsQty{
  display:inline-flex!important;flex-direction:row!important;align-items:center;justify-content:center;
  gap:6px;padding:4px;border-radius:999px;
  background:#05031ce6;border:1.5px solid #f5c54299;
  box-shadow:inset 0 0 12px #0008,0 0 10px #f5c54222;
}
.vsQty .vsPm{
  flex:none;width:34px;height:34px;border:0;border-radius:50%;cursor:pointer;
  background:#f5c542!important;background-image:linear-gradient(180deg,#ffe08a,#f0a92b)!important;
  color:#2a1700!important;
  font:900 20px/1 Baloo,system-ui;box-shadow:0 2px 6px #0008;
  display:inline-grid!important;place-items:center;padding:0;line-height:1;
}
.vsQty .vsPm:hover{filter:brightness(1.08)}
.vsQty .vsPm:active{transform:scale(.94)}
.vsQty .vsAmt,
.vsQty input[data-n],
.vsQty input.vsAmt{
  flex:none;width:64px;height:34px;margin:0;padding:0 4px;
  border:0!important;border-radius:10px;
  background:#0b0826!important;color:#ffe08a!important;
  font:900 18px/34px Baloo,system-ui!important;text-align:center;
  box-shadow:inset 0 0 0 1px #f5c54255;
  -webkit-appearance:none!important;appearance:none!important;outline:none;
}
.vsQty .vsAmt:focus,
.vsQty input[data-n]:focus{box-shadow:inset 0 0 0 2px #f5c542,0 0 10px #f5c54255}
.vsQty input[type=number]::-webkit-outer-spin-button,
.vsQty input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0}
.vsQty input[type=number]{-moz-appearance:textfield;appearance:textfield}
.vsChips{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;width:100%}
.vsChip{
  min-width:36px;height:26px;padding:0 8px;border-radius:999px;cursor:pointer;
  border:1px solid #ffffff33;background:#ffffff10;color:#d9dcff;
  font:800 11px Barlow,system-ui;
}
.vsChip:hover{border-color:#f5c54288;color:#fff}
.vsChip.on{border-color:#f5c542;background:linear-gradient(180deg,#ffd76a,#f0a92b);color:#2a1700}
.vsChip.maks{letter-spacing:.02em}

.vsEmptyBox{
  display:grid;place-items:center;gap:6px;min-height:160px;padding:24px 16px;
  border-radius:16px;border:1.5px dashed #ffffff33;
  background:#0b082699;text-align:center;width:100%;box-sizing:border-box;
}
.vsEmptyBox b{font:800 16px Baloo,system-ui;color:#ffe08a}
.vsEmptyBox p{margin:0;max-width:320px;line-height:1.45}
.vsFoot{
  flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
  padding-top:8px;border-top:1px solid #ffffff18;
}
.vsTotal{min-width:0;flex:1 1 200px}
.vsTotal small{display:block;color:#9aa3d8;font-size:11px;letter-spacing:.06em}
.vsTotal b{display:block;color:#ffe08a;font:800 15px Baloo,system-ui;line-height:1.25;word-break:break-word}
.vsActs{display:flex;gap:8px;flex:none}
.vsActs .btn{min-width:120px}

@media (min-width:1400px){
  .vsModal .vsBox{width:min(1100px,96vw)!important}
  .vsGrid,.vsGrid.vsSkins{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))!important}
}

@media (max-height:430px),(max-width:920px) and (orientation:landscape){
  .vsModal .vsBox{
    width:100vw!important;max-width:100vw!important;
    height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;padding:8px 10px 8px!important;gap:4px;
  }
  .vsHead h3{font-size:18px}
  .vsTab{padding:8px 12px;min-width:72px;font-size:12px}
  .vsLead{display:none}
  .vsBody{gap:4px;padding:2px}
  .vsGrid,.vsGrid.vsSkins{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))!important;gap:6px}
  .vsTile{padding:6px 6px 6px;gap:2px}
  .vsTile.on{padding-bottom:6px}
  .vsArt{width:32px;height:32px}
  .vsTile .stI,.vsTile img,.vsArt .stI,.vsArt img{width:30px!important;height:30px!important}
  .vsTile svg.stI,.vsArt svg.stI{width:28px!important;height:28px!important}
  .vsTile b{font-size:11px;line-height:1.1}
  .vsTile small{font-size:9px}
  .vsCtrl{gap:3px;padding-top:0;margin-top:0}
  .vsQty{gap:3px;padding:2px}
  .vsQty .vsPm{width:24px;height:24px;font-size:14px}
  .vsQty .vsAmt,.vsQty input.vsAmt{width:40px;height:24px;font-size:13px!important;line-height:24px!important}
  .vsChip{height:18px;min-width:26px;font-size:9px;padding:0 4px}
  .vsNote,.vsNoteTop{font-size:11px}
  .vsPickBtn{min-height:36px!important;padding:8px 10px!important;font-size:13px!important}
  .rmNew .srvForm:has(#rnVip.rnVipReady){zoom:1!important;padding:8px 10px!important}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile{min-height:72px}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile .rnArt{height:40px}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile .rnArt img{height:38px}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile b{font-size:10px;padding:2px 2px 0}
  .rmNew .srvForm:has(#rnVip.rnVipReady) .rnTile small{display:none}
  .rmNew .srvForm:has(#rnVip.rnVipReady) label{margin:1px 0;font-size:12px}
  .rmNew .srvForm:has(#rnVip.rnVipReady) h3{margin:0 0 4px;font-size:18px}
  .vsHint{display:none}
}
@media (max-width:520px){
  .vsModal .vsBox{width:100vw!important;height:100dvh!important;border-radius:0!important}
}
