/* ============================================================
   ESPORTS EMPIRE TYCOON — DOM UI (ref-style neon glass)
   cut corners, neon borders, condensed font. Scales between a
   small 764x385 window and 1920x1080; phones in portrait too.
   ============================================================ */
:root {
  --cy: #00e5ff; --mg: #ff2bd6; --pu: #8a5cff; --li: #c6ff00; --am: #ffb000; --gold: #ffd34d; --red: #ff2a4a;
  --bg: rgba(9, 7, 28, 0.92); --bg2: rgba(20, 14, 52, 0.9); --ink: #eaf6ff; --dim: #9aa6d8;
  --font: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --u: clamp(12px, 1.05vmin + 6px, 17px);   /* base text size: >=12px everywhere */
  --cut: 12px;
  --hud-bottom: 72px;                          /* HUD may override with its real height */
  --bar-h: clamp(46px, 7.2vmin + 18px, 64px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #07061a; color: var(--ink); font-family: var(--font); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#game.drag { cursor: grabbing; }
.hidden { display: none !important; }
button { font-family: var(--font); color: inherit; background: none; border: 0; cursor: pointer; }

#ui { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#ui > * { pointer-events: auto; }

/* ---------- glass: cut-corner neon frame (outer = border colour, .gi = fill) ---------- */
.glass { --c: var(--cy); background: var(--c); padding: 1.5px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.glass > .gi { background: linear-gradient(180deg, rgba(22, 16, 58, 0.96), rgba(8, 6, 24, 0.96)); height: 100%;
  clip-path: polygon(calc(var(--cut) - 0.6px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.6px), calc(100% - var(--cut) + 0.6px) 100%, 0 100%, 0 calc(var(--cut) - 0.6px)); }
.gl-cyan { --c: var(--cy); } .gl-pink { --c: var(--mg); } .gl-lime { --c: var(--li); } .gl-gold { --c: var(--gold); } .gl-red { --c: var(--red); } .gl-amber { --c: var(--am); }

/* ---------- loading + open screen ---------- */
#loading, #open-screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; }
#loading { background: radial-gradient(ellipse at 50% 42%, #1c1240 0%, #07061a 70%); transition: opacity .35s; }
.load-logo, .open-logo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.l1 { font-size: clamp(38px, 9vmin, 92px); font-weight: 800; font-style: italic; letter-spacing: 2px; color: #ffd6f6;
  text-shadow: 0 0 6px var(--mg), 0 0 18px var(--mg), 0 0 40px rgba(255, 43, 214, .6); }
.l2 { margin-top: 6px; font-size: clamp(13px, 2.6vmin, 24px); letter-spacing: .35em; color: #c9fbff; text-shadow: 0 0 10px var(--cy); font-weight: 700; }
.load-bar { margin-top: clamp(18px, 5vmin, 44px); width: min(70vw, 440px); height: 12px; background: rgba(0, 229, 255, .08); border: 1.5px solid rgba(0, 229, 255, .6); clip-path: polygon(6px 0, 100% 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 0 50%); }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mg), var(--cy)); box-shadow: 0 0 12px var(--cy); transition: width .12s linear; }
.load-tip { margin-top: 14px; font-size: 14px; color: var(--dim); letter-spacing: .08em; }
#open-screen { background: radial-gradient(ellipse at 50% 50%, rgba(10, 6, 30, .35) 0%, rgba(4, 2, 14, .82) 75%); cursor: pointer; }
.open-tap { margin-top: clamp(22px, 6vmin, 52px); padding: 14px 30px; font-size: clamp(17px, 3.4vmin, 30px); font-weight: 800; letter-spacing: .14em; color: #0b0920;
  background: var(--li); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 30px var(--li); animation: pulse 1.1s ease-in-out infinite; text-align: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.06); filter: brightness(1.25); } }

/* ---------- objective chip ---------- */
#objective { position: fixed; left: max(10px, env(safe-area-inset-left)); top: calc(var(--hud-bottom) + 6px); width: min(330px, 46vw); cursor: pointer; z-index: 6;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, .45)); }
#objective .gi { display: flex; align-items: center; gap: 8px; padding: 6px 10px 7px 10px; }
.obj-tag { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #0b0920; background: var(--cy); padding: 3px 6px; }
#objective.tut .obj-tag { background: var(--li); }
.obj-main { flex: 1; min-width: 0; }
.obj-text { font-size: var(--u); font-weight: 700; line-height: 1.15; color: #fff; }
.obj-bar { margin-top: 4px; height: 4px; background: rgba(255, 255, 255, .12); }
.obj-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cy), var(--li)); transition: width .3s; }
.obj-reward { flex: none; font-size: var(--u); font-weight: 800; color: var(--li); text-shadow: 0 0 8px rgba(198, 255, 0, .6); }
#objective.pop { animation: objpop .6s ease-out; }
@keyframes objpop { 0% { transform: scale(1.12); filter: drop-shadow(0 0 16px var(--li)); } 100% { transform: scale(1); } }

/* ---------- notification ---------- */
#notify { position: fixed; left: 50%; top: calc(var(--hud-bottom) + 58px); transform: translateX(-50%); width: max-content; max-width: min(92vw, 640px); z-index: 30; pointer-events: auto;
  filter: drop-shadow(0 0 10px var(--nc, var(--cy))); }
#notify .glass { --c: var(--nc, var(--cy)); }
#notify .gi { padding: 9px 18px; font-size: calc(var(--u) + 1px); font-weight: 700; text-align: center; color: #fff; letter-spacing: .02em; line-height: 1.2; }
#notify.big .gi { padding: 12px 26px; font-size: calc(var(--u) + 5px); font-weight: 800; font-style: italic; letter-spacing: .04em; }
#notify.act { cursor: pointer; }
#notify.held { visibility: hidden; }
#notify.show { animation: nIn .28s cubic-bezier(.2, 1.6, .4, 1) both; }
#notify.out { animation: nOut .22s ease-in both; }
@keyframes nIn { from { opacity: 0; transform: translate(-50%, -14px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes nOut { to { opacity: 0; transform: translate(-50%, -10px) scale(.96); } }

/* ---------- CHEER button (live matches) ---------- */
#cheer-btn { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 21;
  width: min(300px, 70vw); height: 58px; padding: 0; overflow: hidden; color: #fff; touch-action: manipulation;
  background: linear-gradient(180deg, rgba(60, 10, 70, .96), rgba(16, 6, 30, .96)); box-shadow: inset 0 0 0 2px var(--mg), 0 0 18px rgba(255, 43, 214, .55);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); animation: cheerpulse .9s ease-in-out infinite; }
#cheer-btn .cheer-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(255, 43, 214, .55), rgba(0, 229, 255, .55)); transition: width .1s linear; }
#cheer-btn .cheer-txt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
#cheer-btn b { font-size: calc(var(--u) + 4px); font-weight: 900; font-style: italic; letter-spacing: .06em; text-shadow: 0 0 8px var(--mg); }
#cheer-btn em { font-style: normal; font-size: 12px; font-weight: 700; color: #c9fbff; letter-spacing: .04em; }
#cheer-btn.cr { box-shadow: inset 0 0 0 2px var(--li), 0 0 22px rgba(198, 255, 0, .7); animation: cheerpulse .35s ease-in-out infinite; }
#cheer-btn.cr .cheer-fill { background: linear-gradient(90deg, rgba(198, 255, 0, .6), rgba(255, 176, 0, .5)); }
#cheer-btn.cr b { text-shadow: 0 0 8px var(--li); }
#cheer-btn.hit { animation: cheerhit .14s ease-out; }
@keyframes cheerpulse { 50% { filter: brightness(1.22); } }
@keyframes cheerhit { from { transform: translateX(-50%) scale(.93); } to { transform: translateX(-50%) scale(1); } }
#notify.slam { visibility: hidden; }

/* ---------- bottom bar ---------- */
#bar { position: fixed; left: 50%; bottom: max(6px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px; z-index: 20; }
.nb { position: relative; height: var(--bar-h); min-width: calc(var(--bar-h) * 1.55); padding: 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, rgba(30, 20, 74, .95), rgba(10, 8, 30, .95)); color: #dff8ff; font-weight: 800; font-size: 13px; letter-spacing: .06em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); box-shadow: inset 0 0 0 1.5px rgba(0, 229, 255, .55); transition: transform .08s; }
.nb::before { content: ""; position: absolute; inset: 0; border-top: 2px solid var(--cy); opacity: .7; pointer-events: none; }
.nb.sm { min-width: calc(var(--bar-h) * 0.95); padding: 0 6px; }
.nb:active { transform: scale(.94); }
.nb.on { background: linear-gradient(180deg, rgba(0, 229, 255, .35), rgba(10, 8, 30, .95)); }
.nb .ic { width: calc(var(--bar-h) * .42); height: calc(var(--bar-h) * .42); }
.nb .dot { position: absolute; top: 5px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--li); box-shadow: 0 0 8px var(--li); display: none; }
.nb.glow .dot { display: block; animation: blink 1s ease-in-out infinite; }
.nb.glow { box-shadow: inset 0 0 0 1.5px var(--li), inset 0 0 18px rgba(198, 255, 0, .25); }
.nb.point { animation: pointbtn 1s ease-in-out infinite; }
@keyframes pointbtn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: .35; } }
.ic { display: inline-block; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ---------- panel ---------- */
#panel-wrap { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(3, 2, 12, .45);
  padding: calc(var(--hud-bottom) * .5) 12px calc(var(--bar-h) + 14px); }
#panel { width: min(640px, 94vw); height: min(560px, 100%); filter: drop-shadow(0 0 12px rgba(0, 229, 255, .35)); --cut: 16px; }
#panel > .gi { display: flex; flex-direction: column; }
.panel-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px 18px; border-bottom: 1px solid rgba(0, 229, 255, .25); }
.panel-title { font-size: calc(var(--u) + 6px); font-weight: 800; font-style: italic; letter-spacing: .06em; color: #fff; text-shadow: 0 0 10px var(--cy); }
.panel-cash { margin-left: auto; font-size: calc(var(--u) + 2px); font-weight: 800; color: var(--li); }
.xbtn { width: 40px; height: 40px; font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 43, 214, .18); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.xbtn:active { transform: scale(.92); }
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 12px 14px; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--cy) transparent; }
.tab { display: none; } .tab.on { display: block; }
.sec { margin: 12px 4px 6px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--cy); }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; margin: 4px 0; background: rgba(255, 255, 255, .035); border-left: 3px solid rgba(0, 229, 255, .35); }
.row.can { border-left-color: var(--li); background: rgba(198, 255, 0, .06); }
.row.done { opacity: .62; border-left-color: rgba(255, 255, 255, .15); }
.row.locked { opacity: .55; }
.row .ic { width: 38px; height: 38px; color: var(--cy); background: rgba(0, 229, 255, .08); padding: 6px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.row.can .ic { color: var(--li); }
.info { flex: 1; min-width: 0; }
.nm { font-size: calc(var(--u) + 1px); font-weight: 800; color: #fff; line-height: 1.15; }
.ds { font-size: max(12px, calc(var(--u) - 2px)); color: var(--dim); line-height: 1.2; margin-top: 2px; }
.ds b { color: var(--li); font-weight: 700; }
.btn { flex: none; min-width: 92px; height: 42px; padding: 0 12px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: .06em; color: #0b0920; background: #3a3f63;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: transform .08s, filter .1s; }
.btn b { font-size: calc(var(--u) + 1px); font-weight: 800; line-height: 1.05; }
.btn.can { background: var(--li); box-shadow: 0 0 14px rgba(198, 255, 0, .6); animation: glowbtn 1.6s ease-in-out infinite; }
.btn.no { color: #c8cbe6; background: #2a2d4a; }
.btn.no b { color: #ff9ab0; }
.btn.off { color: #9aa0c8; background: #22243a; cursor: default; }
.btn.pink { background: var(--mg); color: #fff; }
.btn.cyan { background: var(--cy); }
.btn:active { transform: scale(.94); }
.btn.shake { animation: shake .35s; }
@keyframes glowbtn { 50% { filter: brightness(1.18); } }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* team tab */
.card { margin: 8px 2px; padding: 10px 12px; background: linear-gradient(90deg, rgba(0, 229, 255, .12), rgba(255, 43, 214, .12)); border: 1px solid rgba(255, 255, 255, .12); }
.card .h { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--mg); }
.card .t { font-size: calc(var(--u) + 4px); font-weight: 800; font-style: italic; color: #fff; margin-top: 2px; }
.card .s { font-size: max(12px, calc(var(--u) - 1px)); color: var(--dim); margin-top: 3px; }
.card .s b { color: #fff; }
.card .rowb { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.chance { font-size: calc(var(--u) + 2px); font-weight: 800; }
.circuit { display: flex; gap: 4px; margin: 10px 2px 4px; }
.circuit div { flex: 1; min-width: 0; padding: 6px 2px; font-size: 12px; font-weight: 800; text-align: center; letter-spacing: .02em; background: rgba(255, 255, 255, .05); color: var(--dim); border-bottom: 3px solid rgba(255, 255, 255, .15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circuit div.won { color: var(--gold); border-bottom-color: var(--gold); }
.circuit div.now { color: #fff; border-bottom-color: var(--mg); background: rgba(255, 43, 214, .15); }
.skill { height: 5px; background: rgba(255, 255, 255, .1); margin-top: 5px; }
.skill i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--li)); transition: width .3s; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 2px; }
.stats div { padding: 8px 10px; background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.stats div b { display: block; font-size: calc(var(--u) + 3px); color: #fff; letter-spacing: 0; margin-top: 2px; }
.empty { padding: 18px 10px; text-align: center; font-size: var(--u); color: var(--dim); }
.empty b { color: #fff; }

/* ---------- popover ---------- */
#popover { position: fixed; width: 236px; z-index: 22; filter: drop-shadow(0 0 8px rgba(0, 229, 255, .5)); --cut: 10px; }
#popover .gi { padding: 10px 12px 12px; }
.pop-title { font-size: calc(var(--u) + 2px); font-weight: 800; color: #fff; }
.pop-sub { font-size: max(12px, calc(var(--u) - 1px)); color: var(--dim); margin-top: 3px; line-height: 1.25; }
.pop-sub b { color: var(--li); }
.pop-btns { margin-top: 9px; display: flex; }
.pop-btns .btn { width: 100%; height: 44px; flex-direction: row; gap: 8px; font-size: 13px; }
#popover.inpop { animation: pin .16s ease-out both; }
@keyframes pin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ---------- modal ---------- */
#modal-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(3, 2, 12, .62); padding: 16px; }
#modal { width: min(440px, 94vw); filter: drop-shadow(0 0 14px rgba(255, 43, 214, .5)); --cut: 16px; }
#modal .gi { padding: 18px 20px 20px; text-align: center; }
.m-title { font-size: calc(var(--u) + 9px); font-weight: 800; font-style: italic; color: #fff; text-shadow: 0 0 12px var(--mg); letter-spacing: .04em; }
.m-line { margin-top: 10px; font-size: calc(var(--u) + 1px); color: var(--dim); }
.m-line b { color: var(--li); font-size: calc(var(--u) + 6px); display: block; margin-top: 2px; }
.m-btns { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.m-btns .btn { min-width: 150px; height: 48px; font-size: 15px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .05); font-size: calc(var(--u) + 1px); font-weight: 700; text-align: left; }
.tog .btn { min-width: 84px; height: 38px; }

/* ---------- small screens ---------- */
@media (max-height: 460px) {
  :root { --bar-h: 44px; }
  .nb span { display: none; }
  .nb { min-width: 50px; }
  #panel { height: 100%; }
  .row { padding: 5px 8px; }
  .row .ic { width: 32px; height: 32px; }
  .panel-head { padding: 6px 8px 5px 14px; }
}
/* short landscape (phones sideways, small windows): the bar becomes a column on the right
   so it never hides the ground floor; it sits over the street instead */
@media (max-height: 460px) and (min-aspect-ratio: 13/10) {
  :root { --bar-h: 38px; }
  #bar { left: auto; right: max(6px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); transform: none; flex-direction: column; gap: 3px; }
  .nb { width: 54px; min-width: 54px; height: 38px; padding: 0; }
  .nb.sm { width: 54px; min-width: 54px; }
  .nb .ic { width: 20px; height: 20px; }
  #panel-wrap { padding: 8px 70px 8px 12px; }
  #cheer-btn { left: auto; right: 72px; bottom: 8px; transform: none; width: min(260px, 46vw); height: 50px; }
  @keyframes cheerhit { from { transform: scale(.93); } to { transform: scale(1); } }
}
@media (max-width: 560px) {
  .nb { min-width: 0; flex: 1; padding: 0 2px; font-size: 12px; letter-spacing: .02em; }
  .nb.sm { flex: .62; }
  #bar { left: 6px; right: 6px; transform: none; gap: 4px; }
  #panel { width: 100%; }
  #panel-wrap { padding-left: 6px; padding-right: 6px; }
  #objective { width: min(360px, calc(100vw - 20px)); }
  .btn { min-width: 84px; }
}
@media (max-width: 400px) {
  .nb span { font-size: 12px; }
  .nb[data-tab="upgrades"] span { font-size: 0; }
  .nb[data-tab="upgrades"] span::after { content: "UPGR."; font-size: 12px; }
}

/* popover: tell the player what to do when they cannot afford it yet */
#popover .need { margin-top: 6px; font-size: 12px; font-weight: 800; color: #ff8fb0; letter-spacing: .02em; }


/* ---------- TACTICS: tournament call + aim mini-game ---------- */
#tactics { position: fixed; left: 50%; bottom: calc(var(--bar-h, 74px) + 18px); transform: translateX(-50%); z-index: 40; width: min(560px, 94vw); pointer-events: auto; }
#tactics.hidden { display: none; }
#tactics .tc-box { background: rgba(8,5,22,.94); border: 2px solid #ff2bd6; border-radius: 14px; padding: 12px 14px 14px; box-shadow: 0 0 24px rgba(255,43,214,.45); animation: tcIn .18s ease-out; }
@keyframes tcIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#tactics .tc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#tactics .tc-tag { background: #c6ff00; color: #0a0614; font-weight: 900; font-size: 13px; padding: 3px 8px; border-radius: 5px; letter-spacing: .06em; }
#tactics .tc-intel { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .02em; }
#tactics .tc-timer { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; margin: 9px 0 10px; overflow: hidden; }
#tactics .tc-timer i { display: block; height: 100%; background: #00e5ff; border-radius: 3px; }
#tactics .tc-timer i.urgent { background: #ff2a4a; }
#tactics .tc-btns { display: flex; gap: 10px; }
#tactics .tc-btns.hidden, #tactics .tc-aim.hidden { display: none; }
#tactics .tc-b { flex: 1; min-height: 54px; font: 900 18px inherit; font-family: inherit; color: #fff; background: linear-gradient(180deg, #2a1650, #170b33); border: 2px solid #00e5ff; border-radius: 10px; cursor: pointer; letter-spacing: .04em; touch-action: manipulation; }
#tactics .tc-b:hover { background: #2f1d63; }
#tactics .tc-b:active { transform: scale(.96); background: #00e5ff; color: #0a0614; }
#tactics .tc-aim { cursor: pointer; touch-action: manipulation; }
#tactics .tc-aim-lbl { text-align: center; color: #ffd34d; font-weight: 900; font-size: 18px; letter-spacing: .08em; margin-bottom: 8px; animation: tcPulse .5s infinite alternate; }
@keyframes tcPulse { from { opacity: .7; } to { opacity: 1; } }
#tactics .tc-track { position: relative; height: 40px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; }
#tactics .tc-track b { position: absolute; top: 0; bottom: 0; background: rgba(198,255,0,.45); border-left: 2px solid #c6ff00; border-right: 2px solid #c6ff00; }
#tactics .tc-track i { position: absolute; top: -2px; bottom: -2px; width: 6px; margin-left: -3px; background: #fff; box-shadow: 0 0 10px #fff; border-radius: 3px; }
body.tactic #cheer-btn { display: none !important; }

/* PC popover: switch the game genre */
#popover .pop-genres { display: flex; gap: 6px; margin: 8px 0 2px; }
#popover .pop-genres.hidden { display: none; }
#popover .pop-genres button { flex: 1; min-height: 34px; font-family: inherit; font-weight: 900; font-size: 12px; letter-spacing: .03em; color: #fff; background: rgba(255,255,255,.06); border: 2px solid var(--gc); border-radius: 7px; cursor: pointer; position: relative; touch-action: manipulation; }
#popover .pop-genres button.on { background: var(--gc); color: #0a0614; }
#popover .pop-genres button .hot { position: absolute; top: -9px; right: -4px; background: #c6ff00; color: #0a0614; font-size: 10px; padding: 1px 4px; border-radius: 4px; }
#trend { position: fixed; left: max(10px, env(safe-area-inset-left)); top: calc(var(--hud-bottom) + 58px); z-index: 6; font-weight: 900; font-size: 13px; letter-spacing: .04em; color: #0a0614; padding: 5px 10px; border-radius: 6px; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.4); }
#trend.hidden { display: none; }
#trend small { font-weight: 800; opacity: .75; margin-left: 6px; }
