/* Game UI: scaleforms played, blips, markers, the feed, fonts, HUD colours and components, text codes, UI textures. */
.bicon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; }
.bicon svg { width: 100%; height: 100%; }
.llist.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.llist.tiles .lrow { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; text-align: center; }
.llist.tiles .lrow code { font-size: 10px; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llist.tiles .lrow span:not(.bicon) { font-size: 10px; color: var(--faint); }
.bprev .bmap { --bs: 1; position: relative; height: 230px; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #0b1a26 url(/map/radar.webp) 47% 62% / 900% auto; display: flex; align-items: center; justify-content: space-evenly; }
.bprev .bmap::before { content: ''; position: absolute; inset: 0; background: rgba(5, 10, 20, .35); }
.bprev .bmap span { position: relative; display: grid; place-items: center; filter: url(#blipTint) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.bprev .bmap span svg { width: 100%; height: 100%; }
.bprev .bbig { width: calc(128px * var(--bs)); height: calc(128px * var(--bs)); }
.bprev .bmid { width: calc(48px * var(--bs)); height: calc(48px * var(--bs)); }
.bprev .bsmall { width: calc(24px * var(--bs)); height: calc(24px * var(--bs)); }
.bcolours { display: grid; grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); gap: 4px; }
.bcolours button { aspect-ratio: 1; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .12); }
.bcolours button.on { outline: 2px solid var(--white); outline-offset: 1px; }
.mflags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mflags input { accent-color: var(--accent); }
.llist.tiles:has(.ticon) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.uitex { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.uitex button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--sunken); }
.uitex button.on { border-color: var(--accent-line); background: var(--surface-3); }
.uitex span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: var(--r-1); background: repeating-conic-gradient(#1c1a26 0 25%, #24212f 0 50%) 0 0 / 16px 16px; overflow: hidden; }
.uitex img { max-width: 100%; max-height: 100%; }
.uitex b { max-width: 100%; font: 500 10.5px var(--code); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uitex small { color: var(--faint); font: 500 10px var(--code); }
.ltext { padding: 16px 18px; border-radius: var(--r-3); background: var(--sunken); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.sfmethods { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; }
.sfmethods button { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; text-align: left; padding: 7px 10px; border-radius: var(--r-1); border: 1px solid var(--line); background: var(--sunken); color: var(--text); cursor: pointer; }
.sfmethods button:hover { border-color: var(--line-2); }
.sfmethods button.on { border-color: var(--lilac); background: color-mix(in srgb, var(--lilac) 10%, var(--bg)); }
.sfmethods code { font: 600 12px var(--code); }
.sfmethods span { font: 500 11.5px var(--code); color: var(--muted); }
.sfmethods i { font-style: normal; }
.sfmethods .k-int, .sfmethods .k-float { color: #38bdf8; }
.sfmethods .k-bool { color: #f59e0b; }
.sfmethods .k-string { color: var(--success); }
.sfstage { position: relative; aspect-ratio: 16 / 9; margin: 14px 0 10px; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #0b0b10 center / cover no-repeat; }
.sfstage ruffle-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.sfwait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: rgba(8, 8, 12, .55); }
.sfwait[hidden] { display: none; }
.sfbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.sfbar .select { flex: 1; max-width: 240px; }
.sfform { margin: 4px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--sunken); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.sfhead { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sfhead code { font: 600 13px var(--code); color: var(--text); overflow-wrap: anywhere; }
.sfhead .btn svg { width: 14px; height: 14px; }
.sfarg { display: grid; gap: 5px; }
.sfarg.wide { grid-column: 1 / -1; }
.sfarg span { font: 600 12px var(--code); color: var(--text); }
.sfarg small { font: 500 10.5px var(--body); color: var(--faint); margin-left: 4px; }
.feedstage { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #0b0b10 center / cover no-repeat; }
.feed { position: absolute; left: 3%; bottom: 22%; width: 38%; display: flex; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, .78); color: #fff; font: 500 13px/1.3 var(--body); }
.feed.flash { animation: feedflash .6s ease-in-out 3; }
@keyframes feedflash { 50% { background: rgba(60, 60, 60, .85); } }
.feed img { width: 46px; height: 46px; flex: none; object-fit: cover; }
.feed b { display: flex; align-items: center; gap: 6px; font: 700 14px var(--body); }
.feed small { display: block; color: #ddd; font-size: 12px; margin: 1px 0 3px; }
.feed p { margin: 0; font-size: 12.5px; }
.ficon { font-style: normal; font-size: 11px; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.fontrow { display: block; height: 22px; max-width: 100%; margin-top: 6px; filter: invert(1) brightness(.85); }
.fontstage { margin: 14px 0 12px; padding: 22px 18px; border-radius: var(--r-3); border: 1px solid var(--line); background: #0b0b10; min-height: 90px; display: grid; place-items: center; }
.fontstage img { width: 100%; max-height: 120px; object-fit: contain; filter: invert(1); }
.hcdot { display: inline-block; width: 16px; height: 16px; border-radius: 5px; margin-right: 8px; vertical-align: -3px; border: 1px solid rgba(255, 255, 255, .15); }
.hcswatch { margin: 14px 0; height: 120px; border-radius: var(--r-3); border: 1px solid var(--line); background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#2a2a33 0 25%, #1d1d24 0 50%) 0 0 / 16px 16px; display: grid; place-items: end start; padding: 12px; }
.hcswatch span { font: 600 12px var(--code); color: #fff; mix-blend-mode: difference; }
.hudscreen { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #0b0b10 center / cover no-repeat; }
.hudscreen::before { content: ''; position: absolute; inset: 5%; border: 1px dashed rgba(255, 255, 255, .25); }
/* the component shown: an accent box, its name under it (right-aligned at the right edge, above it near the bottom) */
.hudscreen i { position: absolute; z-index: 1; pointer-events: none; border: 2px solid var(--accent); background: rgba(168, 85, 247, .3); border-radius: 3px; box-shadow: 0 0 0 4px rgba(168, 85, 247, .18); }
.hudscreen b { position: absolute; left: 0; top: 100%; margin-top: 4px; font: 600 10.5px var(--code); color: #fff; background: rgba(0, 0, 0, .75); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.hudscreen i.r b { left: auto; right: 0; }
.hudscreen i.up b { top: auto; bottom: 100%; margin: 0 0 4px; }
/* the others: faint boxes that open theirs */
.hudother { position: absolute; border: 1px solid rgba(255, 255, 255, .4); background: none; border-radius: 2px; transition: border-color var(--d-2) var(--ease), background var(--d-2) var(--ease); }
.hudother:hover, .hudother:focus-visible { border-color: var(--lilac); background: rgba(196, 181, 253, .22); }
.tfstage { position: relative; aspect-ratio: 16 / 9; margin: 12px 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #0b0b10 center / cover no-repeat; }
.tfbox { position: absolute; line-height: 0; }
.tfbox.help { left: 2.5%; top: 3.5%; max-width: 34%; padding: 9px 11px; background: rgba(0, 0, 0, .78); }
.tfbox.subtitle { left: 15%; right: 15%; bottom: 7%; text-align: center; filter: drop-shadow(0 0 1.5px #000) drop-shadow(0 0 1.5px #000); }
.tfbox.feed { left: 2.5%; bottom: 20%; width: 34%; padding: 9px 11px; background: rgba(0, 0, 0, .78); }
.tfrun { height: 19px; vertical-align: middle; }
.tfbox.subtitle .tfrun { height: 22px; }
.tfrun.b { filter: drop-shadow(.6px 0 0 currentColor) drop-shadow(-.3px 0 0 currentColor); }
.tfkey { display: inline-block; vertical-align: middle; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 3px; border-radius: 4px; background: #f0f0f0; color: #111; font: 700 11.5px/20px var(--body); text-align: center; }
.tfblip { display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin: 0 3px; line-height: 0; }
.tfblip svg { width: 100%; height: 100%; }
.tfstar { display: inline-block; vertical-align: middle; color: #f0f0f0; font-size: 17px; line-height: 20px; margin: 0 2px; }
.tfwhere { margin: 10px 0 0; }
.tfcodes { margin: 8px 0 14px; }

/* text formatting: a colour code's colour before its name in the list */
.tswatch { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); vertical-align: -1px; }
.tswatch.any { background: conic-gradient(#e03232, #f0c850, #72cc72, #5db6e5, #8452de, #f68ec5, #e03232); }
/* touch: an outline is to scale (a few px on a phone); its touch area reaches 10px past it, the small ones on top win (where the game overlaps them a tap can open a neighbour; the list is right under) */
@media (pointer: coarse) { .hudother::after { content: ''; position: absolute; inset: -10px; } }
/* a code the game fills in as the text shows (~INPUT_CONTEXT~, ~BLIP_PACKAGE~, ~1~), in a game text drawn */
.ltext .tcode { padding: 1px 6px; border-radius: var(--r-1); background: var(--hover-2); color: var(--lilac); font: var(--t-code-small); }
