/* ---------- progression: in-game strip ---------- */
.prog-strip { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 6px; padding: 0 8px; margin: -2px 0 2px; position: relative; z-index: 4; }
.prog-strip button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 3px; border-radius: 999px; background: rgba(10,0,30,.62); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); text-align: left; min-width: 0; }
.prog-strip .lv-n { flex: none; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 13px; color: #3a1400; background: radial-gradient(circle at 40% 30%, #fff6b0, #ffc928 60%, #e07a00); box-shadow: 0 0 8px rgba(255,201,40,.7); }
.prog-strip .lv-body, .prog-strip .mi-body { flex: 1; min-width: 0; }
.prog-strip small { display: block; font-size: 9.5px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.xpbar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 2px; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #29e6ff, #7dff8a); box-shadow: 0 0 8px rgba(41,230,255,.8); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.xpbar.mi i { background: linear-gradient(90deg, #ff3fa4, #ffd93b); }
.prog-strip .boost { flex: none; font-size: 9px; font-weight: 900; padding: 2px 5px; border-radius: 8px; background: #ffd93b; color: #4a1a00; }
.prog-strip .mi-ico { flex: none; font-size: 15px; width: 22px; text-align: center; }
.prog-strip em { flex: none; font-style: normal; font-size: 10px; font-weight: 900; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; background: #ff3fa4; }
.prog-pop { position: absolute; left: 50%; top: calc(96px + var(--safe-top)); z-index: 45; transform: translate(-50%, -16px) scale(.9); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,1.6,.4,1);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 230px; max-width: 86%; padding: 10px 16px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, rgba(74,20,143,.97), rgba(34,7,79,.97)); box-shadow: 0 0 0 2px #ffd93b, 0 10px 30px rgba(0,0,0,.6); }
.prog-pop.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.prog-pop b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--gold1); }
.prog-pop span { font-size: 12.5px; font-weight: 800; }
.prog-pop em { font-style: normal; font-family: var(--display); font-size: 15px; color: #fff; }
.prog-pop img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.prog-pop.relic.rare { box-shadow: 0 0 0 2px #29e6ff, 0 0 26px rgba(41,230,255,.6); } .prog-pop.relic.epic { box-shadow: 0 0 0 2px #ff3fa4, 0 0 30px rgba(255,63,164,.8); }
.banner .ms { color: #fff; font-family: var(--body); font-weight: 900; font-size: 15px; }

/* ---------- progression sheet (map / missions / collection) ---------- */
.prog-sheet { background: rgba(8,0,24,.78); padding: calc(10px + var(--safe-top)) 10px calc(10px + var(--safe-bot)); align-items: stretch; justify-content: stretch; z-index: 30; }
.ps-card { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(20,4,48,.86), rgba(10,0,28,.94)), var(--ps-bg) center/cover; box-shadow: 0 0 0 2px rgba(255,217,59,.7), 0 20px 50px rgba(0,0,0,.7); }
.ps-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 16px; }
.ps-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold1); }
.ps-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 10px 8px; }
.ps-tabs button { padding: 7px 4px; border-radius: 12px; font-family: var(--display); font-size: 13px; background: rgba(255,255,255,.08); }
.ps-tabs button.on { background: linear-gradient(180deg, #ff74c0, #a23dff); box-shadow: 0 0 12px rgba(255,63,164,.6); }
.ps-body { flex: 1; overflow-y: auto; padding: 0 12px 16px; -webkit-overflow-scrolling: touch; text-align: left; }
.ps-note { font-size: 12.5px; line-height: 1.45; opacity: .88; margin: 6px 2px 10px; }
.map-sum { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 14px; }
.map-sum small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .8; }
.map-sum .xpbar { height: 9px; margin-top: 6px; }
.map-path { position: relative; padding: 14px 0 6px; }
.node .dot::after { content: ""; position: absolute; left: 50%; top: 44px; width: 4px; height: 18px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(255,217,59,.55) 0 5px, transparent 5px 9px); }
.node:last-child .dot::after { display: none; }
.node { position: relative; display: flex; align-items: center; gap: 8px; height: 62px; padding-left: var(--x); }
.node .dot { position: relative; flex: none; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 17px; background: #2a0b57; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.node.done .dot { background: radial-gradient(circle at 40% 30%, #b8ff7a, #18b83a); color: #fff; }
.node.cur .dot { background: radial-gradient(circle at 40% 30%, #fff6b0, #ffc928 60%, #e07a00); color: #4a1a00; box-shadow: 0 0 0 4px #fff, 0 0 24px rgba(255,217,59,.9); animation: nodePulse 1.4s ease-in-out infinite; }
.node.ms .dot { box-shadow: inset 0 0 0 3px #ff3fa4, 0 0 12px rgba(255,63,164,.6); }
.node .lbl { flex: 1; min-width: 0; padding: 4px 8px; border-radius: 10px; background: rgba(10,0,30,.72); }
.node .lbl b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .lbl small { display: block; font-size: 10.5px; opacity: .8; }
.node.next .lbl { opacity: .75; }
@keyframes nodePulse { 50% { transform: scale(1.1); } }
.skins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 4px; }
.skins small { width: 100%; font-weight: 900; opacity: .8; }
.skins button { padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 900; font-size: 12px; }
.skins button.on { background: #ffd93b; color: #4a1a00; }
.skins em { font-size: 11px; opacity: .7; }
.mission { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; margin-bottom: 8px; background: rgba(255,255,255,.08); }
.mission .mi-ico { font-size: 24px; }
.mission > div { flex: 1; } .mission b { font-size: 14px; } .mission small { display: block; font-size: 11px; opacity: .8; margin-top: 3px; }
.mission .xpbar { height: 8px; margin-top: 5px; } .mission .xpbar i { background: linear-gradient(90deg, #ff3fa4, #ffd93b); }
.relic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.relic { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); }
.relic img { width: 70%; aspect-ratio: 1; object-fit: contain; filter: brightness(0) opacity(.45); }
.relic.own img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.relic b { font-size: 11px; margin-top: 4px; } .relic small { font-size: 10px; opacity: .7; text-transform: uppercase; }
.relic.rare.own { box-shadow: inset 0 0 0 2px #29e6ff; } .relic.epic.own { box-shadow: inset 0 0 0 2px #ff3fa4, 0 0 12px rgba(255,63,164,.5); }
.relic-grid.sm { grid-template-columns: repeat(6, 1fr); gap: 4px; } .relic-grid.sm .relic { padding: 4px 2px; } .relic-grid.sm img { width: 100%; }
.col-list { text-align: left; max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.col-row { padding: 8px; border-radius: 14px; background: rgba(255,255,255,.07); margin-bottom: 8px; }
.col-row b { font-size: 13px; } .col-row small { font-size: 11px; opacity: .8; }

/* ---------- cabinet frame skins (cosmetic, unlocked on the level map) ---------- */
.frame.skin-gold { --frame-grad: linear-gradient(180deg,#fffbe0 0%,#ffd93b 30%,#c77a00 60%,#ffe98a 100%); --frame-glow: rgba(255,201,40,.9); }
.frame.skin-prism { --frame-grad: linear-gradient(135deg,#ff3fa4,#ffd93b,#7dff6a,#29e6ff,#a46bff,#ff3fa4); --frame-glow: rgba(160,110,255,.9); }
.frame.skin-legend { --frame-grad: linear-gradient(180deg,#ffffff 0%,#b8f4ff 25%,#ffd93b 50%,#ff3fa4 75%,#5c1ab8 100%); --frame-glow: rgba(255,255,255,.9); }
.frame.skin-legend::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; pointer-events: none; box-shadow: 0 0 22px 4px rgba(255,217,59,.55); animation: bonusPulse 2.4s ease-in-out infinite; }

/* ---------- lobby: brand, player card, locks ---------- */
.brand2 { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand2 img { height: 40px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.brand2 small { font-size: 9.5px; letter-spacing: 1.5px; font-weight: 900; color: #ffd6f0; margin: -2px 0 0 8px; }
.player-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; margin: -4px 0 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.plv { display: flex; align-items: center; gap: 6px; flex: none; width: 110px; }
.plv > b { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 18px; color: #3a1400; background: radial-gradient(circle at 40% 30%, #fff6b0, #ffc928 60%, #e07a00); box-shadow: 0 0 12px rgba(255,201,40,.7); }
.plv > div { flex: 1; } .plv small { font-size: 9px; font-weight: 900; letter-spacing: 1px; opacity: .8; }
.pc-txt { flex: 1; font-size: 12.5px; line-height: 1.3; min-width: 0; } .pc-txt small { display: block; font-size: 10.5px; opacity: .7; margin-top: 2px; }
.pill-btn.small { padding: 7px 10px; font-size: 13px; flex: none; }
.lock-veil { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: rgba(8,0,24,.66); backdrop-filter: grayscale(.8) blur(1.5px); font-family: var(--display); }
.lock-veil b { font-size: 34px; } .lock-veil span { font-size: 17px; } .lock-veil small { font-family: var(--body); font-weight: 800; font-size: 11.5px; opacity: .8; }
.locked .play { display: none; }
.lv-chip { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 10px; font-family: var(--display); font-size: 11.5px; background: rgba(10,0,30,.72); box-shadow: inset 0 0 0 1.5px rgba(255,217,59,.7); }
.ad-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 18px; margin: 0 0 14px; text-align: left; background: linear-gradient(100deg, rgba(41,230,255,.22), rgba(125,255,106,.18)); box-shadow: inset 0 0 0 1.5px rgba(125,255,200,.5); }
.ad-btn .ico { font-size: 26px; } .ad-btn b { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; } .ad-btn small { font-size: 11.5px; opacity: .85; }
.ad-btn[disabled] { opacity: .5; }
.ad-player { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ad-player .ad-box { width: 100%; aspect-ratio: 16/9; border-radius: 14px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #222 0 12px, #2c2c2c 12px 24px); font-weight: 900; font-size: 13px; color: #bbb; }
.ad-player .ad-count { font-family: var(--display); font-size: 34px; color: #fff; }

/* ---------- phone landscape: reels in the middle, info left, controls right ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  .shell { max-width: 100%; }
  .lobby-body, .page-body { width: 100%; max-width: 620px; margin: 0 auto; }
  #lobby .topbar, #store .topbar, #settings .topbar, #terms .topbar { width: 100%; max-width: 620px; margin: 0 auto; }
  .tabbar { max-width: 620px; width: 100%; left: 50% !important; right: auto !important; transform: translateX(-50%); }
  #game .slot-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.1fr) minmax(0,1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 6px;
    grid-template-areas: "top top top" "head frame win" "strip frame ctrl" "jp frame ctrl" "jp frame ctrl"; }
  #game .slot-wrap > .topbar { grid-area: top; padding-top: calc(4px + var(--safe-top)); padding-bottom: 2px; }
  #game .slot-wrap > .slot-head { grid-area: head; height: 64px !important; margin: 0; }
  #game .slot-wrap > .slot-head .logo { margin-right: 30%; }
  #game .slot-wrap > .prog-strip { grid-area: strip; grid-template-columns: 1fr; margin: 4px 0; padding: 0 0 0 calc(6px + env(safe-area-inset-left, 0px)); }
  #game .slot-wrap > .jackpots, .slot-wrap > .pitbar, .slot-wrap > .forgebar, .slot-wrap > .clawbar, .slot-wrap > .lanternbar, .slot-wrap > .bubblebar, .slot-wrap > .bountybar, .slot-wrap > .divebar, .slot-wrap > .wispbar, .slot-wrap > .gamebar { grid-area: jp; align-self: start; padding-left: calc(6px + env(safe-area-inset-left, 0px)); }
  #game .slot-wrap > .frame-zone { grid-area: frame; padding: 2px; }
  #game .slot-wrap > .winbar { grid-area: win; align-self: end; min-width: 0; width: calc(100% - 10px); margin-right: calc(4px + env(safe-area-inset-right, 0px)); padding: 0 8px; font-size: 13px; }
  #game .slot-wrap > .winbar .amt { font-size: 20px; }
  #game .slot-wrap > .controls { grid-area: ctrl; grid-template-columns: 1fr; justify-items: center; gap: 6px; padding: 4px calc(6px + env(safe-area-inset-right, 0px)) calc(6px + var(--safe-bot)) 0; }
  #game .slot-wrap > .controls .spin-btn { width: 74px; height: 74px; order: -1; }
  #game .slot-wrap > .controls .side { display: flex; gap: 6px; }
  #game .slot-wrap > .jackpots { grid-template-columns: repeat(2, 1fr); gap: 3px; padding-right: 0; }
  #game .jp { padding: 1px 2px 2px; border-radius: 9px; } #game .jp.GRAND { gap: 6px; padding: 2px 4px; }
  #game .jp.GRAND b { font-size: 11px; } #game .jp.GRAND span { font-size: 14px; } #game .jp span { font-size: 11.5px; } #game .jp b { font-size: 8.5px; }
  #game .slot-wrap > .winbar .msg { font-size: 11px; line-height: 1.2; }
  #game .slot-wrap > .controls .spin-btn { width: 66px; height: 66px; } #game .slot-wrap > .controls .spin-btn svg { width: 36px; height: 36px; }
  #game .slot-wrap > .controls .toggle { width: 44px; height: 40px; border-radius: 12px; font-size: 9px; }
  #game .slot-wrap > .winbar { height: auto; min-height: 34px; padding: 3px 8px; text-align: center; }
  .prog-pop { top: 40px; }
}
/* tumble games: compact pit ladder in phone landscape */
@media (orientation: landscape) and (max-height: 540px) {
  #game .slot-wrap > .pitbar { padding-top: 0; padding-right: 0; gap: 3px; }
  #game .pitbar .pit-lv { justify-content: center; padding: 2px; }
  #game .pitbar .pit-lv span { display: none; }
  #game .pitbar .pit-info { padding: 3px 4px; gap: 4px; }
  #game .pitbar .pit-info img { width: 20px; height: 20px; }
  #game .pitbar .pit-text { font-size: 10px; line-height: 1.15; }
  #game .pitbar .pit-mult { min-width: 46px; padding: 1px 4px; } #game .pitbar .pit-mult b { font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  #game .pitbar .pit-info { flex-direction: column; align-items: stretch; }
  #game .pitbar .pit-info img { display: none; }
  #game .pitbar .pit-mult { flex-direction: row; justify-content: center; gap: 6px; min-width: 0; }
}
@media (orientation: landscape) and (max-height: 540px) { .tumble-game .slot-head .mascot { display: none; } }
@media (orientation: landscape) and (max-height: 540px) {
  #game .slot-wrap > .forgebar { padding-top: 0; padding-right: 0; gap: 3px; }
  #game .forgebar .fb-tiers { grid-template-columns: repeat(3, 1fr); }
  #game .forgebar .fb-t img { width: 18px; height: 18px; }
  .forge-game .slot-head .mascot { display: none; }
  .fo-top b { font-size: 17px; } .fo-track { height: 44px; }
}

@media (orientation: landscape) and (max-height: 540px) {
  #game .clawbar { padding-right: 0; gap: 3px; } #game .cb-tokens { padding: 2px 5px; gap: 4px; flex-wrap: wrap; } #game .cb-pips i { width: 13px; height: 13px; }
  #game .cb-text { font-size: 10px; } #game .cb-jps { grid-template-columns: 1fr; gap: 2px; } #game .cb-jp b { font-size: 13px; }
  .claw-game .slot-head .mascot { display: none; } .co-top b { font-size: 17px; } .co-rig { top: 34px; } .co-claw { width: 13%; } .co-pit { max-width: 420px; gap: 4px; padding: 5px; }
}

@media (orientation: landscape) and (max-height: 540px) {
  #game .lanternbar { padding-right: 0; gap: 3px; } #game .lb-cols { grid-template-columns: repeat(5, 1fr); gap: 2px; } #game .lb-col img { width: 16px; height: 16px; }
  #game .lb-info { flex-wrap: wrap; padding: 2px 4px; } #game .lb-info img { display: none; } #game .lb-info span { font-size: 10px; }
  .lantern-game .slot-head .mascot { display: none; } .to-top b { font-size: 16px; } .tt { width: 20%; } .to-walker { height: 16%; }
}

@media (orientation: landscape) and (max-height: 540px) {
  #game .wispbar { padding-right: 0; gap: 3px; } #game .wb-info { padding: 2px 4px; } #game .wb-info img { display: none; } #game .wb-info span { font-size: 10px; } #game .wb-buckets i { font-size: 8.5px; }
  #game .divebar { padding-right: 0; gap: 3px; } #game .dv-info { padding: 2px 4px; } #game .dv-info img { display: none; } #game .dv-info span { font-size: 10px; } #game .dv-d b { font-size: 12px; } #game .dv-d small { font-size: 7.5px; }
  #game .do-pot b { font-size: 24px; } #game .do-btns button { padding: 6px 10px; font-size: 14px; } #game .do-fair { display: none; } #game .do-stop small { display: none; }
  #game .bountybar { grid-template-columns: 1fr; padding-right: 0; gap: 3px; } #game .bt-count { padding: 1px 6px; } #game .bt-count img { width: 18px; height: 22px; } #game .bt-count b { font-size: 16px; } #game .bt-ladder { grid-template-columns: repeat(3, 1fr); row-gap: 7px; } #game .bt-rung b { font-size: 10px; } #game .bt-rung span { font-size: 9px; }
  #game .bubblebar { grid-template-columns: 1fr; padding-right: 0; gap: 3px; } #game .bubblebar > div { padding: 2px 6px; } #game .bubblebar img { width: 20px; height: 20px; }
  #game .bb-jar b, #game .bb-shots b { font-size: 16px; } #game .bb-shots { justify-content: flex-start; gap: 8px; } #game .bb-shots b { display: inline; }
  .bubble-game .slot-head .mascot { display: none; }
}
@media (max-width: 380px) { .bubblebar { grid-template-columns: 1fr 1.25fr .65fr; gap: 3px; padding: 0 5px; } .bubblebar img { width: 22px; height: 22px; } .bb-pips i { width: 12px; height: 12px; } .bb-text { font-size: 10px; } .bb-jar b, .bb-shots b { font-size: 17px; } }
@media (max-width: 380px) { .bountybar { gap: 3px; padding: 0 5px; } .bt-count img { width: 20px; height: 28px; } .bt-count b { font-size: 17px; } .bt-count small { font-size: 7px; } .bt-rung b { font-size: 9.5px; } .bt-rung span { font-size: 9px; } }
@media (max-width: 380px) { .dv-info span { font-size: 10.5px; } .dv-d b { font-size: 12.5px; } .do-pot b { font-size: 24px; } .do-btns button { padding: 7px 10px; font-size: 15px; } .do-stop b { font-size: 10px; } .do-fair { font-size: 8.5px; } }
@media (max-width: 380px) { .wb-info span { font-size: 10.5px; } .wb-buckets i { font-size: 9px; } .wo-b b { font-size: 10px; } }
