/* cu-stocktap: Stock tap mini game (overlay inside .viewport) + entry chips */
html.st-lock .viewport .screen.active { overflow: hidden !important; }
.st-ov { position: absolute; inset: 0; z-index: 8700; display: flex; align-items: stretch; justify-content: center; background: rgba(3,8,16,0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; overscroll-behavior: contain; }
.st-ov.on { opacity: 1; }
.st-ov.playing { backdrop-filter: none; -webkit-backdrop-filter: none; background: #050a14; }
html.st-play .viewport > :not(.st-ov) { visibility: hidden; }
.st-ov[hidden] { display: none; }
.st-box { position: relative; width: 100%; max-width: 460px; display: flex; flex-direction: column; color: #fff; font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, #15284a 0%, #0b1424 55%, #070d18 100%); border-left: 1px solid rgba(0,163,255,0.18); border-right: 1px solid rgba(0,163,255,0.18);
  transform: translateY(24px); transition: transform .28s cubic-bezier(.2,.8,.3,1); overflow: hidden; }
.st-ov.on .st-box { transform: none; }
.st-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(5,10,20,.6); color: #fff; font: inherit; font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-view { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.st-view[hidden] { display: none; }
.st-eb { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #ffd25e; }
.st-h { margin: 4px 0 10px; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; }
.st-hero { display: block; width: 100%; height: 70px; margin: 0 0 12px; }
.st-rules { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.st-rules li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 13px; background: rgba(0,163,255,0.07); border: 1px solid rgba(0,163,255,0.22);
  font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.st-rules li > span:first-child { flex: 0 0 auto; font-size: 16px; line-height: 1.2; }
.st-rules b.g, .st-big.up, .st-stats b.up, #st-sc.up, .st-stat.up { color: #2ee68c; }
.st-rules b.r, .st-big.dn, .st-stats b.dn, #st-sc.dn, .st-stat.dn { color: #ff6b80; }
.st-rw { padding: 11px 12px; border-radius: 14px; background: rgba(255,210,94,0.08); border: 1px solid rgba(255,210,94,0.32); margin: 0 0 10px; }
.st-rw.done { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.st-rw-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #ffe9ad; }
.st-rw-h span:first-child { flex: 1; min-width: 0; }
.st-rw-h b { font-size: 12px; color: #fff; white-space: nowrap; }
.st-rw p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: #dfe5ee; }
.st-rw p b { color: #ffd25e; }
.st-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.st-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset; }
.st-dots i.on { background: #ffd25e; box-shadow: 0 0 8px rgba(255,210,94,0.7); }
.st-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 2px 12px; font-size: 12.5px; color: #9aa3b2; font-weight: 600; }
.st-meta b { color: #fff; }
.st-go { width: 100%; min-height: 54px; font-size: 17px; font-weight: 900; border-radius: 16px; color: #2a1500 !important; border: 1px solid rgba(255,236,170,0.95) !important;
  background: linear-gradient(180deg, #ffe58a 0%, #ffc93d 45%, #f5a321 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset, 0 -3px 0 rgba(150,72,0,0.28) inset, 0 10px 26px rgba(255,166,36,0.3);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.st-go:active { transform: scale(0.97); }
.st-fine { margin: 10px 2px 0; font-size: 11px; line-height: 1.4; color: #7d8798; text-align: center; }
/* play */
.st-playv { padding-bottom: calc(14px + env(safe-area-inset-bottom)); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.st-hud { display: flex; align-items: flex-end; gap: 12px; padding-right: 44px; }
.st-k { display: block; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #9aa3b2; }
.st-time { flex: 1; min-width: 0; }
.st-time b { display: block; font-size: 30px; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; }
.st-time.low b { color: #ff6b80; animation: stBeat 1s ease-in-out infinite; }
.st-tbar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(255,255,255,0.1); overflow: hidden; }
.st-tbar u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffd25e, #ffb42e); transform-origin: 0 50%; will-change: transform; }
.st-time.low .st-tbar u { background: linear-gradient(90deg, #ff6b80, #ff3d5a); }
.st-score { text-align: right; }
.st-score b { display: block; font-size: 30px; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 4.2em; }
.st-stat { margin: 10px 0 8px; min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 12px; text-align: center;
  font-size: 13px; font-weight: 800; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #dfe5ee; font-variant-numeric: tabular-nums;
  transition: background .2s ease, border-color .2s ease; }
.st-stat.up { background: rgba(46,230,140,0.1); border-color: rgba(46,230,140,0.35); }
.st-stat.dn { background: rgba(255,93,115,0.1); border-color: rgba(255,93,115,0.35); }
.st-stat.end { color: #ffd25e; background: rgba(255,210,94,0.1); border-color: rgba(255,210,94,0.35); }
.st-chart { position: relative; flex: 1; min-height: 200px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(8,16,30,0.9), rgba(5,10,20,0.95));
  border: 1px solid rgba(0,163,255,0.2); box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset; touch-action: none; }
.st-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-cd { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 30px rgba(127,214,255,0.5);
  pointer-events: none; opacity: 0; }
.st-cd.on { opacity: 1; }
.st-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-pop { position: absolute; transform: translate(-50%,-50%); padding: 5px 10px; border-radius: 999px; font-size: 15px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; will-change: transform, opacity; }
.st-pop.b { background: #2ee68c; color: #04261a; font-size: 12px; }
.st-pop.up { background: #ffd25e; color: #2a1500; box-shadow: 0 0 18px rgba(255,210,94,0.6); }
.st-pop.dn { background: #ff5d73; color: #2a0208; }
.st-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.st-b { position: relative; min-height: 76px; border-radius: 20px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: transform .08s ease, opacity .15s ease, filter .15s ease, box-shadow .2s ease; }
.st-b b { font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.st-b small { font-size: 11px; font-weight: 800; opacity: .75; }
.st-buy { color: #032414; border: 1px solid rgba(170,255,210,0.9); background: linear-gradient(180deg, #7dffbe 0%, #2ee68c 50%, #14b866 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 -4px 0 rgba(0,70,35,0.3) inset, 0 10px 24px rgba(46,230,140,0.25); }
.st-sell { color: #2a0208; border: 1px solid rgba(255,190,200,0.9); background: linear-gradient(180deg, #ff9aa8 0%, #ff5d73 50%, #e0324d 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 -4px 0 rgba(90,0,15,0.3) inset, 0 10px 24px rgba(255,93,115,0.25); }
.st-b[aria-disabled="true"] { opacity: .32; filter: saturate(.5); box-shadow: none; }
.st-b.hot { animation: stHot 1.4s ease-in-out infinite; }
.st-b:active:not([aria-disabled="true"]) { transform: scale(0.95) translateY(1px); }
@keyframes stHot { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }
@keyframes stBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* results */
.st-big { margin: 6px 0 2px; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: center; }
.st-view[data-v="res"] .st-eb { text-align: center; margin-top: 10px; }
.st-pb { text-align: center; margin: 6px 0 12px; font-size: 14px; font-weight: 900; color: #ffd25e; }
.st-pb small { color: #9aa3b2; font-weight: 700; }
.st-pb.dim { color: #cfd6e2; font-weight: 700; font-size: 13px; }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.st-stats div { padding: 10px 8px; border-radius: 13px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); text-align: center; }
.st-stats span { display: block; font-size: 10.5px; font-weight: 800; color: #9aa3b2; text-transform: uppercase; letter-spacing: .08em; }
.st-stats b { display: block; margin-top: 3px; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.st-pay { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 6px; padding: 12px; border-radius: 16px; font-size: 16px; font-weight: 800;
  background: linear-gradient(180deg, rgba(255,214,110,0.16), rgba(255,214,110,0.06)); border: 1px solid rgba(255,210,94,0.45); }
.st-pay b { font-size: 22px; font-weight: 900; color: #ffd25e; }
.st-pay.zero { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.st-pay.zero b { color: #fff; }
.st-coin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #8a4f00;
  background: radial-gradient(circle at 34% 30%, #fff8d6 0 12%, #ffd95a 38%, #f3a81f 78%, #c77a06 100%); box-shadow: 0 0 0 1.5px #b87008 inset, 0 2px 8px rgba(0,0,0,0.35); }
.st-pay.fun .st-coin { background: rgba(127,214,255,0.15); box-shadow: 0 0 0 1px rgba(127,214,255,0.4) inset; }
.st-why, .st-auto, .st-left, .st-scale { margin: 4px 2px 6px; font-size: 12.5px; line-height: 1.4; color: #cfd6e2; text-align: center; }
.st-left { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: #ffe9ad; }
.st-scale { color: #8f99aa; font-size: 11.5px; }
.st-auto { color: #9aa3b2; font-size: 12px; }
.st-acts { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.st-acts .btn-ghost { min-height: 46px; }
/* entries */
.st-wait, .st-card { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 0; padding: 9px 10px 9px 11px; border-radius: 15px; font: inherit; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, rgba(0,163,255,0.14), rgba(46,230,140,0.08)); border: 1px solid rgba(0,163,255,0.38); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .12s ease, border-color .2s ease; }
.st-wait[hidden] { display: none; }
.st-wait:active, .st-card:active { transform: scale(0.98); }
.st-wait.jb { margin: 0 0 6px; }
.st-w-ic, .st-c-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(127,214,255,0.14); box-shadow: 0 0 0 1px rgba(127,214,255,0.45) inset, 0 0 14px rgba(127,214,255,0.25); }
.st-w-tx, .st-c-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-w-tx b, .st-c-tx b { font-size: 14px; font-weight: 800; line-height: 1.2; }
.st-w-tx small, .st-c-tx small { font-size: 11px; font-weight: 700; color: #9fdcff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.st-w-go, .st-c-go { flex: 0 0 auto; padding: 7px 13px; border-radius: 11px; font-size: 13px; font-weight: 900; color: #032414; background: linear-gradient(180deg, #7dffbe, #2ee68c); box-shadow: 0 0 12px rgba(46,230,140,0.35); }
.st-card { margin: 14px 0 4px; padding: 11px 12px; }
/* cu-sttab: the prominent card at the top of the Stocks tab */
.st-card.big { display: block; margin: 6px 0 14px; padding: 13px 13px 12px; border-radius: 18px; border-color: rgba(46,230,140,0.5);
  background: radial-gradient(120% 140% at 0% 0%, rgba(0,163,255,0.22), transparent 60%), linear-gradient(135deg, rgba(0,163,255,0.14), rgba(46,230,140,0.12)); box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 22px rgba(46,230,140,0.12); }
.st-card.big .st-c-top { display: flex; align-items: center; gap: 11px; }
.st-card.big .st-c-ic { width: 42px; height: 42px; font-size: 21px; }
.st-card.big .st-c-tx b { font-size: 17px; }
.st-card.big .st-c-go { padding: 9px 18px; font-size: 15px; border-radius: 13px; }
.st-c-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.st-c-st { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; background: rgba(3,10,20,0.45); border: 1px solid rgba(255,255,255,0.08); }
.st-c-st small { font-size: 10.5px; font-weight: 700; color: #9fb4c9; letter-spacing: .02em; }
.st-c-st b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.st-c-st .st-dots { display: inline-flex; gap: 3px; }
.st-c-note { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: #9fdcff; text-align: center; }
@media (prefers-reduced-motion: reduce) { .st-b.hot, .st-time.low b { animation: none; } .st-box { transition: none; } }
