/* Small labels never go under 10px: below that, text on a phone is hard to read. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html, body { position: fixed; inset: 0; overflow: hidden; background: #05060d; color: #fff; touch-action: none; overscroll-behavior: none;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: grid; place-items: center;
  /* the safe area: the device's (notch, corners, home bar) and, in Telegram's full screen mode, Telegram's own buttons */
  padding: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px))
    max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px))
    calc(max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px))
    max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px)); }
#stage { position: relative; overflow: hidden; background: #0a0c18; font-size: 16px; }
#stage canvas { display: block; touch-action: none; }
#ui, #sheet, #cards, #pop { position: absolute; inset: 0; pointer-events: none; }
#sheet > *, #cards > *, #pop > *, #hud { pointer-events: auto; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
@keyframes fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.5em); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes drain { from { width: 100%; } to { width: 0; } }

#hud { position: absolute; top: .45em; right: .45em; display: flex; gap: .35em; }
#hud button { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .32em .7em; font-size: max(.66em, 10px); font-weight: 900; letter-spacing: .06em; }
#hud button:active { transform: scale(.94); }

.panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65em; padding: 1.2em; text-align: center;
  background: linear-gradient(180deg, rgba(6, 7, 16, .55), rgba(6, 7, 16, .93) 45%); animation: fade .22s ease-out; }
.kind { font-size: max(.66em, 10px); font-weight: 900; letter-spacing: .2em; opacity: .7; text-transform: uppercase; }
.panel h1 { font-size: 3.1em; line-height: 1; font-weight: 900; letter-spacing: .03em; background: linear-gradient(135deg, #ff5fa2, #ffd23f);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .07em 0 rgba(0, 0, 0, .45)); }
.tag { font-size: 1em; font-weight: 700; opacity: .9; }
.tag.pulse { animation: blink 1.2s ease-in-out infinite; }
.status { font-size: .7em; font-weight: 900; letter-spacing: .18em; opacity: .65; margin-top: .3em; }
.hint { font-size: .74em; font-weight: 650; opacity: .6; line-height: 1.4; max-width: 22em; }

.roster { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; width: 100%; max-width: 22em; }
.chip { display: grid; grid-template-columns: 1.9em 1fr auto; align-items: center; gap: .5em; padding: .4em .55em; border-radius: .9em; text-align: left;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); min-width: 0; animation: pop .3s ease-out; }
.chip .av { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85em; background: var(--c); color: #0a0c18; }
.chip .nm { font-size: .8em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .nm i { font-style: normal; opacity: .5; font-size: .85em; }
.chip em { font-style: normal; font-size: max(.55em, 10px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.chip.on { border-color: var(--c); }
.chip.empty { border-style: dashed; opacity: .45; cursor: pointer; animation: none; }
.chip.empty .av { background: rgba(255, 255, 255, .14); color: #fff; }

.btns { display: flex; gap: .5em; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: .3em; }
.play { background: linear-gradient(135deg, #ff5fa2, #ffd23f); color: #0a0c18; font-size: 1.15em; font-weight: 900; letter-spacing: .08em; padding: .7em 1.5em;
  border-radius: 999px; box-shadow: 0 .26em 0 rgba(0, 0, 0, .45); animation: pulse 1.6s ease-in-out infinite; }
.play:active { transform: translateY(.15em) scale(.98); animation: none; }
.alt { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); font-size: .82em; font-weight: 900; letter-spacing: .08em; padding: .8em 1.1em; border-radius: 999px; }
.alt:active { transform: scale(.96); }

.res { display: grid; gap: .35em; justify-items: center; width: 100%; }
.res .big { font-size: 3.2em; font-weight: 900; line-height: 1; animation: pop .4s ease-out; }
.res .big small { font-size: max(.28em, 10px); letter-spacing: .12em; opacity: .7; text-transform: uppercase; }
.res .sub { font-weight: 800; opacity: .7; font-size: .8em; letter-spacing: .1em; }
.meter { width: 100%; max-width: 20em; display: grid; gap: .28em; margin-top: .3em; }
.meter > small { font-size: max(.56em, 10px); font-weight: 800; letter-spacing: .16em; opacity: .6; }
.meter .row { display: grid; grid-template-columns: 6.2em 1fr 2.6em; gap: .5em; align-items: center; font-size: .78em; font-weight: 900; }
.meter .row span { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter .track { height: .7em; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.meter .track div { height: 100%; border-radius: 999px; }

/* spectating: a slim bar so the live fight stays visible */
.bar { position: absolute; left: .5em; right: .5em; bottom: .5em; display: grid; gap: .45em; padding: .7em .8em; border-radius: 1.2em; text-align: center;
  background: rgba(8, 10, 22, .82); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise .25s ease-out; }
.live { font-size: max(.68em, 10px); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.live b { color: #ff4d6d; animation: blink 1.2s ease-in-out infinite; }
.roster.mini { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; gap: .3em; }
.roster.mini .chip { grid-template-columns: 1.5em auto; padding: .2em .55em .2em .2em; border-radius: 999px; }
.roster.mini .chip .av { width: 1.5em; height: 1.5em; font-size: .7em; }
.roster.mini .chip .nm { font-size: max(.66em, 10px); }
.roster.mini .chip em { display: none; }
.bar .btns { margin: 0; }
.bar .play { font-size: 1em; padding: .6em 1.6em; }
.bar .alt { padding: .7em 1em; }

.ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 1.3em; text-align: center; background: rgba(6, 7, 16, .72); animation: fade .2s ease-out; }
.ctitle { font-size: 1.9em; font-weight: 900; letter-spacing: .06em; animation: pop .35s ease-out; }
.csub { font-size: .76em; font-weight: 800; letter-spacing: .14em; opacity: .65; text-transform: uppercase; margin-bottom: .3em; }
.card { display: grid; grid-template-columns: 3em 1fr auto; gap: .8em; align-items: center; width: 100%; max-width: 21em; padding: .85em .9em; text-align: left;
  border-radius: 1.1em; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #10131f), #10131f); border: 2px solid var(--c);
  box-shadow: 0 .25em 0 rgba(0, 0, 0, .45); animation: pop .35s ease-out both; }
.card:nth-of-type(2) { animation-delay: .06s; } .card:nth-of-type(3) { animation-delay: .12s; }
.card:active { transform: translateY(.12em) scale(.985); }
.card .ic { font-size: 1.9em; text-align: center; }
.card .tx b { display: block; font-size: 1.05em; font-weight: 900; }
.card .tx i { display: block; font-style: normal; font-size: .76em; font-weight: 650; opacity: .82; line-height: 1.25; margin-top: .15em; }
.card em { font-style: normal; font-size: max(.62em, 10px); font-weight: 900; letter-spacing: .1em; color: var(--c); white-space: nowrap; }
.timer { width: 100%; max-width: 21em; height: .35em; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; margin-top: .4em; }
.timer div { height: 100%; background: #ffd23f; border-radius: 999px; animation: drain linear forwards; }

/* lobby extras */
.btns.low { margin-top: 0; }
.pill { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .5em .9em; font-size: .7em; font-weight: 900; letter-spacing: .07em; max-width: 15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill:active { transform: scale(.96); }
.chip .nm.gold { color: #ffd23f; }
#feed { position: absolute; top: 4.4em; left: 0; right: 0; display: grid; gap: .25em; justify-items: center; pointer-events: none; }
#feed span { font-size: .8em; font-weight: 800; padding: .3em .8em; border-radius: 999px; background: rgba(8, 10, 22, .85); border: 1px solid rgba(255, 255, 255, .16); animation: rise .2s ease-out; }

/* emote wheel: a small list under the top-right buttons, out of the thumb's way */
#tray { position: absolute; top: 2.5em; right: .45em; pointer-events: none; }
.tray { pointer-events: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .28em; width: 14.5em; padding: .45em; border-radius: 1em; background: rgba(8, 10, 22, .92);
  border: 1px solid rgba(255, 255, 255, .18); animation: rise .16s ease-out; }
.tray button { display: flex; align-items: center; gap: .4em; padding: .42em .5em; border-radius: .7em; background: rgba(255, 255, 255, .08); font-size: max(.66em, 10px); font-weight: 800; text-align: left; white-space: nowrap; overflow: hidden; }
.tray button span { font-size: 1.35em; }
.tray button:active { transform: scale(.95); background: rgba(255, 255, 255, .2); }
.tray .more { grid-column: 1 / -1; justify-content: center; opacity: .7; }

/* shop */
#shop { position: absolute; inset: 0; pointer-events: none; }
.shop { pointer-events: auto; position: absolute; inset: 0; display: flex; flex-direction: column; background: #06070f; animation: fade .18s ease-out; }
.shead { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .7em; padding: .8em .9em .5em; }
.shead b { font-size: 1.5em; font-weight: 900; letter-spacing: .06em; background: linear-gradient(135deg, #ff5fa2, #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shead span { font-size: max(.62em, 10px); font-weight: 800; letter-spacing: .08em; opacity: .7; text-transform: uppercase; }
.shead button { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255, 255, 255, .12); font-weight: 900; }
.stabs { display: flex; gap: .3em; padding: 0 .7em .5em; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.stabs button { flex: none; padding: .5em .8em; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: max(.62em, 10px); font-weight: 900; letter-spacing: .1em; opacity: .7; }
.stabs button.on { background: #fff; color: #0a0c18; opacity: 1; }
.sgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: .5em; padding: .2em .7em 1.2em; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.tile { display: grid; justify-items: center; gap: .3em; padding: .6em .5em .65em; border-radius: 1em; text-align: center; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .1); }
.tile.on { border-color: #ffd23f; background: rgba(255, 210, 63, .08); }
.tile.wide { grid-column: 1 / -1; justify-items: start; text-align: left; padding: .8em .9em; }
.tile canvas.pv { width: 5.25em; height: 3.5em; }
.tile .pv.txt { font-size: 1.9em; height: 1.6em; display: grid; place-items: center; }
.tile .pv.em { font-size: 1.5em; letter-spacing: .08em; }
.tile b { font-size: .92em; font-weight: 900; letter-spacing: .03em; }
.tile.wide b { font-size: 1.15em; }
.tile i { font-style: normal; font-size: .72em; font-weight: 650; opacity: .8; line-height: 1.35; }
.tile i small { display: block; font-size: .86em; letter-spacing: .06em; opacity: .75; margin-top: .25em; }
.tile .act { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; justify-content: center; margin-top: .15em; min-height: 1.9em; }
.tile .buy { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #0a0c18; font-size: .78em; font-weight: 900; padding: .45em 1em; border-radius: 999px; box-shadow: 0 .18em 0 rgba(0, 0, 0, .45); }
.tile .eq { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: max(.66em, 10px); font-weight: 900; letter-spacing: .08em; padding: .5em .9em; border-radius: 999px; }
.tile .buy:active, .tile .eq:active { transform: scale(.95); }
.tile .st { font-size: max(.58em, 10px); font-weight: 900; letter-spacing: .1em; opacity: .6; text-transform: uppercase; }
.tile .st.on { color: #ffd23f; opacity: 1; }

/* lobby: room record, campaign on show, Second Wind */
.rec { font-size: max(.66em, 10px); font-weight: 800; letter-spacing: .06em; color: #ffd23f; max-width: 26em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo { display: grid; grid-template-columns: 7.2em 1fr; align-items: stretch; width: 100%; max-width: 22em; border-radius: .9em; overflow: hidden; text-align: left;
  background: #10131f; border: 1.5px solid rgba(255, 210, 63, .55); box-shadow: 0 .2em 0 rgba(0, 0, 0, .45); animation: rise .3s ease-out; }
.promo:active { transform: scale(.98); }
.promo img { width: 100%; height: 100%; min-height: 4.1em; object-fit: cover; display: block; }
.promo span { display: grid; gap: .12em; align-content: center; padding: .45em .7em; min-width: 0; }
.promo b { font-size: .78em; font-weight: 900; letter-spacing: .05em; color: #ffd23f; }
.promo i { font-style: normal; font-size: max(.66em, 10px); font-weight: 650; opacity: .85; line-height: 1.25; }
.promo u { text-decoration: none; font-size: max(.62em, 10px); font-weight: 900; letter-spacing: .06em; opacity: .9; }
.promo.big { grid-template-columns: 9em 1fr; border-color: #ffd23f; }
.promo.big b { font-size: .86em; }
.wind { position: relative; overflow: hidden; display: grid; gap: .1em; width: 100%; max-width: 21em; padding: .65em 1em .8em; border-radius: 1.1em; color: #06210a;
  background: linear-gradient(135deg, #7dff6b, #4de8ff); box-shadow: 0 .26em 0 rgba(0, 0, 0, .45); animation: pulse 1.2s ease-in-out infinite; }
.wind b { font-size: 1.2em; font-weight: 900; letter-spacing: .08em; }
.wind small { font-size: max(.68em, 10px); font-weight: 800; opacity: .8; }
.wind i { position: absolute; left: 0; bottom: 0; height: .28em; background: rgba(6, 33, 10, .55); animation: drain linear forwards; }
.wind:active { transform: translateY(.15em) scale(.98); animation: none; }
.play.calm { animation: none; font-size: 1em; }
.daily { background: rgba(6, 7, 16, .9); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; width: 100%; max-width: 22em; }
.days div { display: grid; gap: .2em; padding: .5em 0; border-radius: .7em; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .12); }
.days small { font-size: max(.46em, 10px); font-weight: 900; letter-spacing: .08em; opacity: .65; }
.days b { font-size: .86em; font-weight: 900; }
.days .done { opacity: .45; }
.days .now { border-color: #ffd23f; background: rgba(255, 210, 63, .16); animation: pop .4s ease-out; }

/* shop: campaign posters, deals */
.tile { position: relative; }
.tile.camp { grid-column: 1 / -1; display: block; justify-items: normal; padding: 0; overflow: hidden; text-align: left; border-color: rgba(255, 255, 255, .16); }
.tile.camp.mine { border-color: rgba(125, 255, 107, .45); }
.art { position: relative; aspect-ratio: 16 / 9; background: #0a0c18; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .1em; padding: 1.6em .9em .6em; background: linear-gradient(180deg, rgba(6, 7, 16, 0), rgba(6, 7, 16, .92)); }
.art .cap b { font-size: 1.45em; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.art .cap i { font-size: .78em; font-weight: 750; opacity: .95; }
.art.slim { width: 100%; aspect-ratio: 16 / 6; border-radius: .7em; }
.hot { position: absolute; top: .55em; left: .55em; z-index: 1; padding: .3em .65em; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: max(.56em, 10px); font-weight: 900; letter-spacing: .1em; box-shadow: 0 .15em 0 rgba(0, 0, 0, .4); }
.hot.own { left: auto; right: .55em; background: #7dff6b; color: #06210a; }
.tile:not(.camp) > .hot { top: -.5em; left: auto; right: .6em; }
.tile.camp ul { list-style: none; display: grid; gap: .28em; padding: .7em .9em .2em; }
.tile.camp li { font-size: .76em; font-weight: 700; line-height: 1.3; }
.tile.camp .list { display: block; padding: .35em 1.2em 0; font-size: max(.58em, 10px); font-weight: 800; letter-spacing: .08em; opacity: .6; }
.tile.camp .squad { margin: .6em .9em 0; padding: .5em .7em; border-radius: .7em; background: rgba(77, 232, 255, .1); font-size: max(.68em, 10px); font-weight: 750; line-height: 1.35; }
.tile.camp .act { justify-content: flex-start; padding: .65em .9em .85em; margin: 0; }
.tile.camp .buy { font-size: .95em; padding: .55em 1.3em; animation: pulse 1.6s ease-in-out infinite; }
.tile.note { background: rgba(125, 255, 107, .08); border-color: rgba(125, 255, 107, .35); }
.tile .buy s { opacity: .55; font-weight: 800; margin-right: .2em; }
.tile .pv.txt small { font-size: max(.5em, 10px); font-weight: 900; }
.chip em small { display: block; font-size: .9em; opacity: .6; color: #fff; text-align: right; }
.sgrid { grid-auto-rows: max-content; } /* tiles that clip their poster must not be squeezed to fit the screen */
.meter .row.lv { grid-template-columns: 6.2em 1fr 4.4em; }
.meter .row.lv b { font-size: .8em; opacity: .7; white-space: nowrap; }

/* Sparks: Rally, gifts, what a pilot has spent on the squad */
/* Rally hangs under the top buttons (below the score), clear of the titan's health bar and of the flying thumb */
#hud .ral { position: absolute; top: 6em; right: 0; white-space: nowrap; font-size: .74em; padding: .42em .85em; background: linear-gradient(135deg, #7dff6b, #4de8ff); color: #06210a; border-color: transparent; box-shadow: 0 .2em 0 rgba(0, 0, 0, .4); }
#hud .ral.off { opacity: .45; }
#hud .ral.hot { animation: pulse .7s ease-in-out infinite; box-shadow: 0 0 .9em rgba(125, 255, 107, .8); }
.rally { position: absolute; left: 0; right: 0; bottom: 5.5em; margin: 0 auto; width: min(21em, 88%); display: grid; gap: .1em; padding: .7em 1em .8em; border-radius: 1.1em; color: #06210a; text-align: center;
  background: linear-gradient(135deg, #7dff6b, #4de8ff); box-shadow: 0 .26em 0 rgba(0, 0, 0, .45), 0 0 1.6em rgba(125, 255, 107, .55); animation: pulse 1s ease-in-out infinite; }
.rally b { font-size: 1.35em; font-weight: 900; letter-spacing: .1em; }
.rally small { font-size: .7em; font-weight: 800; opacity: .85; }
.rally.off { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; animation: none; }
.rally:active { transform: translateY(.15em) scale(.98); animation: none; }
.chip.gift { cursor: pointer; }
.chip.gift .av { position: relative; }
.chip.gift .av::after { content: "🎁"; position: absolute; right: -.5em; bottom: -.45em; font-size: .72em; }
.chip.gift:active { transform: scale(.97); }
.sfor { display: flex; align-items: center; gap: .3em; padding: 0 .7em .55em; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.sfor span { flex: none; font-size: max(.58em, 10px); font-weight: 900; letter-spacing: .12em; opacity: .7; margin-right: .2em; }
.sfor button { flex: none; padding: .42em .8em; border-radius: 999px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .35); font-size: max(.64em, 10px); font-weight: 900; letter-spacing: .05em; }
.sfor button.on { background: #ffd23f; color: #0a0c18; }
.tile.note.gift { background: rgba(255, 210, 63, .1); border-color: rgba(255, 210, 63, .5); }
.gbox { font-size: 4em; line-height: 1; animation: pop .5s ease-out; }

/* Saves, the daily titan, level goals, the Spark Vault */
.savebtn, .cont { display: grid; gap: .1em; width: 100%; max-width: 21em; padding: .6em 1em .7em; border-radius: 1.1em; text-align: center;
  background: rgba(77, 232, 255, .12); border: 1.5px solid rgba(77, 232, 255, .55); box-shadow: 0 .2em 0 rgba(0, 0, 0, .4); }
.savebtn b, .cont b { font-size: .92em; font-weight: 900; letter-spacing: .06em; color: #4de8ff; }
.savebtn small, .cont small { font-size: max(.64em, 10px); font-weight: 800; opacity: .8; }
.cont { background: linear-gradient(135deg, rgba(77, 232, 255, .22), rgba(199, 125, 255, .2)); animation: pulse 1.6s ease-in-out infinite; }
.savebtn:active, .cont:active { transform: translateY(.15em) scale(.98); animation: none; }
.dcard { display: grid; grid-template-columns: 2.4em 1fr; align-items: center; gap: .2em; width: 100%; max-width: 22em; padding: .5em .7em; border-radius: .9em; text-align: left;
  background: rgba(255, 210, 63, .08); border: 1.5px solid rgba(255, 210, 63, .45); }
.dcard:active { transform: scale(.98); }
.dcard .dic { font-size: 1.6em; text-align: center; }
.dcard span:last-child { display: grid; gap: .12em; min-width: 0; }
.dcard b { font-size: .76em; font-weight: 900; letter-spacing: .05em; color: #ffd23f; }
.dcard i { font-style: normal; font-size: max(.62em, 10px); font-weight: 700; opacity: .85; }
.dcard u { text-decoration: none; font-size: max(.6em, 10px); font-weight: 900; letter-spacing: .04em; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter.board .brow { display: grid; grid-template-columns: 1fr auto; gap: .6em; font-size: .76em; font-weight: 900; }
.meter.board .brow span { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal { font-size: max(.6em, 10px); font-weight: 800; letter-spacing: .06em; opacity: .6; margin-top: -.3em; }
#hud .sav { position: absolute; top: 8.4em; right: 0; white-space: nowrap; font-size: .7em; }
#hud .sav.arm { background: #4de8ff; color: #04161c; border-color: transparent; animation: pulse .7s ease-in-out infinite; }
#hud .sav.off { opacity: .5; }
.tile.vault { border-color: rgba(199, 125, 255, .5); background: rgba(199, 125, 255, .08); }
.hot.vlt { background: #c77dff; }
.tile .buy.spk { background: linear-gradient(135deg, #c77dff, #4de8ff); }

/* A lobby or results screen taller than the phone (a full squad, a save, a continue, the daily card) scrolls instead of
   losing its top and bottom; when it fits, the auto margins keep it centred as before. */
.panel { justify-content: flex-start; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.panel > * { flex-shrink: 0; } /* scroll, never squash a button to fit */
.panel > :first-child { margin-top: auto; }
.panel > :last-child { margin-bottom: auto; }
.promo.free { border-color: #7dff6b; box-shadow: 0 0 1.2em rgba(125, 255, 107, .25); }
.promo.free b { color: #7dff6b; }
.hot.fw { background: #7dff6b; color: #06210a; }

.shead .terms { width: auto; padding: 0 .9em; font-size: max(.62em, 10px); letter-spacing: .1em; border-radius: 999px; }
