/* Block Runner – wallet window: 3D glass coin, round icon menu around it, one pane at a time (fits the window, no scrolling) */
.wbox { width: min(700px, 100%); height: min(470px, 100%); }
.wbox .win-body { padding: 14px 16px; overflow: hidden; }
.wv { --hub: 268px; --orb: 54px; height: 100%; display: grid; grid-template-columns: var(--hub) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 6px 22px; align-items: center; }

/* network chip in the window head */
.w-net { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(5,7,10,.45); color: var(--muted); font: 600 12px var(--body); white-space: nowrap; }
.w-net[hidden] { display: none; }
.w-net:disabled { opacity: 1; cursor: default; }
.w-net .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ffb34788; }
.w-net[data-st="ok"] { color: var(--white); }
.w-net[data-st="ok"] .dot { background: var(--teal); box-shadow: 0 0 8px #2ee6a888; }
.w-net[data-st="other"] { color: #ffc94a; border-color: rgba(255,201,74,.45); cursor: pointer; }

/* round menu: five glass orbs on a ring, the coin in the middle */
.w-hub { position: relative; width: var(--hub); height: var(--hub); justify-self: center; grid-row: 1; --r: calc(var(--hub) / 2 - var(--orb) / 2 - 3px); }
.w-hub::before { content: ""; position: absolute; inset: calc(var(--orb) / 2); border-radius: 50%; border: 1px dashed var(--line-2);
  background: radial-gradient(circle, rgba(111,231,255,.10), transparent 68%); }
.w-orb { position: absolute; left: 50%; top: 50%; width: var(--orb); height: var(--orb); margin: calc(var(--orb) / -2) 0 0 calc(var(--orb) / -2); padding: 0; border-radius: 50%;
  transform: rotate(calc(var(--k) * 72deg - 90deg)) translate(var(--r)) rotate(calc(90deg - var(--k) * 72deg));
  border: 1px solid var(--line-2); color: var(--silver); cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.28), transparent 46%), linear-gradient(180deg, rgba(34,46,62,.95), rgba(10,14,20,.95));
  box-shadow: 0 9px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -5px 9px rgba(0,0,0,.4); transition: color .15s, background .15s, box-shadow .15s; }
.w-orb i { width: 26px; height: 26px; display: block; transition: transform .15s; }
.w-orb i svg { width: 100%; height: 100%; display: block; }
.w-orb:hover i { transform: scale(1.12); }
.w-orb[aria-selected="true"] { color: var(--void); border-color: transparent;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.55), transparent 46%), linear-gradient(160deg, var(--cyan), var(--teal));
  box-shadow: 0 0 0 3px rgba(111,231,255,.18), 0 0 26px rgba(46,230,168,.45), 0 9px 18px rgba(0,0,0,.45), inset 0 -5px 9px rgba(0,0,0,.18); }
.w-orb[data-wtab="win"]:not([aria-selected="true"]) { color: #ffc94a; }
.w-dot { position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: #ffc94a; border: 2px solid #0c1118; box-shadow: 0 0 10px rgba(255,201,74,.8); }
.w-dot[hidden] { display: none; }

/* 3D coin: glass disc with a rim, tilts slowly */
.w-coin { --c: calc(var(--hub) - 2 * var(--orb) - 26px); position: absolute; left: 50%; top: 50%; width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2); perspective: 520px; pointer-events: none; }
.w-coin-in { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px; transform-style: preserve-3d; animation: wTilt 7s ease-in-out infinite alternate;
  background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.42), transparent 34%), radial-gradient(circle at 50% 60%, rgba(46,230,168,.30), rgba(63,169,255,.22) 55%, rgba(12,18,26,.85) 100%);
  border: 1px solid rgba(111,231,255,.55);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.07), inset 0 0 0 6px rgba(111,231,255,.25), inset 0 -10px 20px rgba(0,0,0,.45), inset 0 8px 16px rgba(255,255,255,.14), 0 16px 34px rgba(0,0,0,.55), 0 0 44px rgba(111,231,255,.22); }
.w-coin-in::before { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-7px); background: linear-gradient(180deg, #1d6f86, #0b2a35); box-shadow: 0 0 0 1px rgba(111,231,255,.3); }
.w-coin-in::after { content: ""; position: absolute; inset: 8% 14% auto; height: 34%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); pointer-events: none; }
.w-coin-in b { font: 900 clamp(18px, calc(var(--c) / 5), 30px) var(--disp); color: var(--white); text-shadow: 0 0 16px rgba(111,231,255,.6); line-height: 1; transform: translateZ(10px); }
.w-coin-in small { font: 700 10px var(--disp); letter-spacing: .16em; color: var(--cyan); transform: translateZ(10px); }
.w-coin-in i { width: 44%; height: 44%; color: var(--cyan); display: block; margin: auto; transform: translateZ(10px); }
.w-coin-in i svg { width: 100%; height: 100%; }
@keyframes wTilt { from { transform: rotateY(-24deg) rotateX(10deg); } to { transform: rotateY(24deg) rotateX(-6deg); } }

/* one pane at a time */
.w-pane { grid-row: 1; grid-column: 2; min-height: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.w-pane:has(.w-his) { justify-content: flex-start; }
.w-pane.w-in { animation: wIn .22s ease-out; }
@keyframes wIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.w-pane .w-h { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 13px var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.w-pane .w-h i { width: 22px; height: 22px; color: var(--cyan); display: block; }
.w-pane i svg { width: 100%; height: 100%; display: block; }
.w-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.w-pane .lnk { align-self: flex-start; min-height: 28px; font-size: 12px; }

.w-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-stat { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); color: var(--cyan); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.w-stat:hover { border-color: var(--line-2); }
.w-stat i { grid-row: 1 / span 2; width: 30px; height: 30px; }
.w-stat b { font: 800 17px var(--disp); color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-stat span { font: 600 11px var(--body); color: var(--muted); }
.w-stat.gold, .w-big.gold { color: #ffc94a; border-color: rgba(255,201,74,.38); background: radial-gradient(120% 140% at 0% 0%, rgba(255,201,74,.16), transparent 60%), rgba(255,255,255,.03); }
.w-addr { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(5,7,10,.45); color: var(--silver); cursor: pointer; }
.w-addr code { font-size: 12px; }
.w-addr i { width: 16px; height: 16px; color: var(--cyan); }

.w-big { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; color: var(--cyan); border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 0% 0%, rgba(111,231,255,.14), transparent 60%), rgba(255,255,255,.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.w-big > i { flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 50%; background: rgba(5,7,10,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 18px currentColor; }
.w-big > div { display: grid; gap: 3px; min-width: 0; }
.w-big b { font: 800 22px var(--disp); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-big small { font-size: 12px; color: var(--silver); }
.w-act { width: 100%; }
.w-act i { width: 20px; height: 20px; }
.w-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.w-two .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.w-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w-pack { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 0%, rgba(111,231,255,.16), transparent 70%), rgba(5,7,10,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 14px rgba(0,0,0,.3); color: var(--white); }
.w-pack:hover { border-color: var(--cyan); }
.w-pack b { font: 900 20px var(--disp); color: var(--cyan); }
.w-pack small { font-size: 11px; color: var(--silver); white-space: nowrap; }

.w-his { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; gap: 6px; }
.w-his li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--cyan); }
.w-his li i { width: 22px; height: 22px; justify-self: center; }
.w-his li span { font-size: 13px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-his li small { margin-left: 8px; color: var(--muted); font-size: 11px; }
.w-his li b { font: 700 13px var(--disp); color: var(--silver); }
.w-his li b.up { color: var(--teal); } .w-his li b.down { color: #ff9aa8; }
.w-his li.w-empty { display: block; height: auto; padding: 12px; font-size: 12px; color: var(--muted); }
.w-pager { display: flex; justify-content: center; align-items: center; gap: 12px; font: 700 12px var(--disp); color: var(--silver); }
.w-pager:empty { display: none; }
.w-pg { width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5,7,10,.45); color: var(--white); font-size: 18px; cursor: pointer; }
.w-pg:disabled { opacity: .35; cursor: default; }
.w-msg { grid-column: 1 / -1; margin: 0; min-height: 17px; text-align: center; font-size: 12px; color: var(--silver); }

/* Pay with USDT / BNB */
.w-sub { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: rgba(5,7,10,.45); }
.w-sub button { min-height: 30px; border: 0; border-radius: 99px; background: transparent; color: var(--silver); font: 700 12px var(--disp); cursor: pointer; white-space: nowrap; }
.w-sub button[aria-selected="true"] { background: linear-gradient(180deg, rgba(111,231,255,.28), rgba(111,231,255,.10)); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.w-sub.w-cur { width: 60%; justify-self: center; }
.w-pk4 { grid-template-columns: repeat(4, 1fr); }
.w-pack.on { border-color: var(--cyan); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 16px rgba(111,231,255,.35); }
.w-quote { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 12.5px; color: var(--silver); }
.zq-main { font-size: 13px; color: var(--silver); line-height: 1.35; } .zq-main b { color: var(--white); }
.zq-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; } .zq-row b { color: var(--white); font-family: var(--disp); }
.zq-row.warn b { color: #ffc94a; } .zq-row.bad b { color: #ff9aa8; }
.zq-wait { color: var(--muted); }

/* logged out / free mode */
.wv-solo { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.wv-solo .w-coin { --c: 120px; position: relative; left: auto; top: auto; margin: 0 0 6px; }
.wv-solo > b { font: 800 18px var(--disp); color: var(--teal); }
.wv-solo p { margin: 0; max-width: 380px; font-size: 13px; color: var(--muted); }
.wv-solo .w-act { width: auto; }

/* phones upright: ring on top, pane below */
@media (max-width: 600px) {
  .wbox { height: min(600px, 100%); }
  .wv { --hub: 224px; --orb: 50px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
  .w-pane { grid-row: 2; grid-column: 1; justify-content: flex-start; }
}
@media (max-width: 600px) and (max-height: 640px) { .wv { --hub: 190px; --orb: 46px; } .w-big { padding: 10px 12px; } .w-big b { font-size: 19px; } }
/* phones held sideways: ring left, pane right, all in the low window */
@media (max-height: 520px) and (orientation: landscape) {
  .wbox { height: 100%; }
  .wbox .win-body { padding: 8px 14px; }
  .wv { --hub: min(206px, calc(100vh - 110px)); --orb: 44px; gap: 2px 16px; }
  .w-orb i { width: 22px; height: 22px; }
  .w-pane { gap: 7px; }
  .w-stat { padding: 6px 10px; } .w-stat b { font-size: 15px; }
  .w-big { padding: 8px 12px; } .w-big > i { width: 38px; height: 38px; padding: 7px; } .w-big b { font-size: 18px; }
  .w-pack { padding: 6px; } .w-pack b { font-size: 17px; }
  .w-his li { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .w-coin-in, .w-pane.w-in { animation: none; } }
