:root { --cy: #19b8c0; --or: #ff7a00; --teal: #17aeb4; --ln: rgba(255, 255, 255, .35); --font: Quantico, Orbitron, "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #02040e; color: #fff; font-family: var(--font); font-style: italic; font-weight: 700; -webkit-user-select: none; user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; font-style: italic; color: #fff; background: rgba(0, 0, 0, .45); border: 1px solid var(--ln); border-radius: 4px; padding: 9px 16px; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; }
button:hover { background: rgba(255, 255, 255, .16); box-shadow: 0 0 14px rgba(255, 255, 255, .25); }
button:disabled { opacity: .4; cursor: default; box-shadow: none; }
.screen { position: fixed; inset: 0; z-index: 3; overflow: hidden; }
.screen.grey { background: linear-gradient(115deg, #cfd1d4 0%, #aeb1b6 40%, #e9eaec 41%, #c9cbcf 62%, #fff 63%, #b9bcc1 100%); color: #fff; }
.screen.grey::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(70, 72, 78, .55) 21%, rgba(70, 72, 78, .55) 34%, transparent 35%, transparent 70%, rgba(40, 42, 46, .5) 71%, rgba(40, 42, 46, .5) 78%, transparent 79%); pointer-events: none; }
.screen.grey > * { z-index: 1; }
.screen.dark { background: rgba(0, 0, 0, .35); }
h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: .06em; text-shadow: 0 0 14px rgba(0, 0, 0, .5); }
.screen > h2 { position: absolute; left: 7vw; top: 14vh; z-index: 2; }

/* the slanted bands of the menus: a bar from the screen edge that lifts into a parallelogram */
.band { position: absolute; left: 0; right: 0; height: 12vh; max-height: 84px; min-height: 52px; display: flex; align-items: flex-end; }
.band .tail { flex: 0 0 24vw; height: 15%; margin-bottom: 0; background: var(--or); box-shadow: 0 0 14px rgba(255, 122, 0, .6); transition: flex-basis .2s; }
.band > button { position: relative; flex: 0 0 auto; height: 100%; min-width: 34vw; padding: 0 5vw; background: var(--or); border: 0; border-radius: 0; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); font-size: clamp(18px, 3.2vw, 30px); letter-spacing: .06em; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); margin-left: -2px; }
.band > button:hover { background: #ff9430; box-shadow: none; filter: drop-shadow(0 0 12px #ff9a3a); }
.band:hover .tail { flex-basis: 30vw; }
.band.teal .tail { background: var(--teal); box-shadow: 0 0 14px rgba(25, 200, 210, .6); height: 100%; }
.band.teal > button { background: var(--teal); min-width: 40vw; }
.band.teal > button:hover { background: #20c9d0; filter: drop-shadow(0 0 14px #34e6ee); }
.band.teal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: var(--teal); z-index: -1; }
.band.teal .tail { flex: 0 0 8vw; margin-right: -6vw; } .band.teal:hover .tail { flex-basis: 8vw; } .band.teal > button { z-index: 1; }
.band .tog { display: flex; align-items: center; gap: 12px; margin: 0 0 0 4vw; align-self: center; font-size: clamp(13px, 1.9vw, 20px); letter-spacing: .08em; } .band .tog span { color: #ffd3a8; }
.band .tog button { padding: 6px 18px; background: rgba(255, 255, 255, .22); } .band .tog button.on { background: #35e6ee; color: #02373a; box-shadow: 0 0 14px #35e6ee; }
#profile { position: absolute; left: 2vw; top: 2.5vh; display: flex; align-items: center; gap: 2vw; font-size: clamp(16px, 2.4vw, 26px); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
#profile .tri { border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
#profile input { width: 11ch; padding: 0; background: none; border: 0; color: #ff6a1f; font-size: inherit; font-weight: 700; text-transform: uppercase; }
#profile b { font-size: 1.5em; letter-spacing: .04em; } #profile #rankV { font-size: .7em; font-style: normal; font-weight: 400; font-family: system-ui, sans-serif; }
.status { position: absolute; left: 2vw; bottom: 3vh; margin: 0; font-size: 13px; color: #ffd3a8; letter-spacing: .1em; }
.corner { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.tile { width: 15vw; max-width: 150px; min-width: 96px; height: 11vh; min-height: 66px; padding: 0 8px 0 24px; border: 0; border-radius: 0; background: rgba(60, 70, 84, .8); clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); font-size: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; } .tile small { font-size: 12px; margin-top: 2px; }
.back { position: fixed; left: 0; top: 0; z-index: 6; padding: 14px 40px 14px 22px; border: 0; border-radius: 0; background: rgba(0, 0, 0, .7); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); font-size: 22px; }
#spbar { position: fixed; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 40px; background: linear-gradient(180deg, #d9dce0, #8a8e96); clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); }
#spbar .spi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: radial-gradient(circle at 35% 30%, #ffc36a, #ff6a00); box-shadow: 0 0 8px #ff8a2a; font-style: normal; }
#spbar b { min-width: 7ch; padding: 4px 12px; text-align: right; font-size: 26px; background: #111; border-radius: 4px; box-shadow: inset 0 0 8px #000; }
#spbar button { padding: 6px 10px; background: #e0307c; border: 0; border-radius: 4px; font-size: 14px; }

.tabs { display: flex; gap: 8px; margin: 0 0 12px; } .tabs button.on { border-color: var(--or); color: #ffb060; box-shadow: 0 0 12px rgba(255, 122, 0, .4); }
.tabs.top { position: absolute; left: 14vw; top: 3vh; gap: 2vw; } .tabs.top button { padding: 12px 3vw; background: rgba(0, 0, 0, .75); border: 2px solid rgba(255, 255, 255, .45); border-radius: 6px; font-size: clamp(14px, 2vw, 22px); }
.tabs.top button.on { background: #7a3d1c; border-color: #fff; color: #fff; }
.screen#custom { padding: 14vh 6vw 4vh; } .screen#custom > h2 { position: static; margin-bottom: 8px; color: #333; text-shadow: none; } .screen#custom .tabs button { background: rgba(0, 0, 0, .6); }
#collGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 66vh; overflow: auto; padding: 4px; }
.cell { position: relative; padding: 8px 4px 6px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 10px; line-height: 1.25; cursor: pointer; text-align: center; }
.cell canvas { width: 64px; height: 64px; display: block; margin: 0 auto 4px; } .cell b { display: block; font-size: 12px; }
.cell.lock { opacity: .6; cursor: default; } .cell.lock canvas { filter: grayscale(1) brightness(.55); } .cell.sel { border-color: var(--or); box-shadow: 0 0 14px rgba(255, 138, 42, .7); }
/* ball skins only (a cell with a canvas): padlock badge on locked ones, orange ring on the equipped one (sprites from the supplied pack) */
.cell.lock:has(canvas)::after { content: ''; position: absolute; top: 44px; left: calc(50% + 6px); width: 28px; height: 28px; background: url(assets/ui_zip/ball_lock_badge.png) center / contain no-repeat; filter: drop-shadow(0 1px 2px #000); pointer-events: none; }
.cell.sel:has(canvas)::before { content: ''; position: absolute; top: -6px; left: calc(50% - 46px); width: 92px; height: 92px; background: var(--or); -webkit-mask: url(assets/fx_zip/zip_ring_sharp.png) center / contain no-repeat; mask: url(assets/fx_zip/zip_ring_sharp.png) center / contain no-repeat; pointer-events: none; }
.cell small { display: block; color: #cfe3f2; font-size: 9px; font-weight: 400; } .cell .tag { font-size: 24px; margin: 8px 0; font-style: normal; }
#boostList { display: grid; gap: 8px; max-width: 640px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; background: rgba(0, 0, 0, .6); } .item b { display: block; font-size: 15px; } .item small { color: #cfe3f2; font-size: 11px; font-weight: 400; } .item.sel { border-color: var(--or); }
.pips { letter-spacing: 3px; color: var(--or); font-size: 11px; }

/* balls: stats on the left, the balls along a diagonal */
#ballStats { position: absolute; left: 2vw; top: 14vh; width: 36vw; max-width: 330px; display: grid; gap: 14px; }
#ballStats div { display: flex; align-items: center; gap: 12px; } #ballStats i { flex: 1; height: 12px; background: #3a3d44; display: block; } #ballStats u { display: block; height: 100%; background: #19c8e0; box-shadow: 0 0 8px #19c8e0; } #ballStats span { width: 8ch; font-size: 15px; color: #fff; text-shadow: 0 1px 0 #555; }
#ballRail { position: absolute; inset: 0; }
.rb { position: absolute; border-radius: 50%; padding: 0; cursor: pointer; border: 0; background: none; transform: translate(-50%, -50%); transition: left .25s, top .25s, width .25s, height .25s, opacity .25s; } .rb canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); } .rb:hover { background: none; box-shadow: none; }
.rb.lock canvas { filter: grayscale(1) brightness(.5); } .rb .pad { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; background: #222; display: grid; place-items: center; font-size: 12px; font-style: normal; }
.strip { position: absolute; left: 0; width: 56vw; top: 47vh; height: 9vh; min-height: 48px; background: rgba(40, 42, 46, .92); clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); display: flex; align-items: center; padding-left: 7vw; font-size: clamp(22px, 4vw, 40px); }
#ballDesc { position: absolute; left: 3vw; top: 58vh; margin: 0; width: 50vw; font-size: clamp(14px, 2vw, 22px); font-weight: 400; } #ballNeed { position: absolute; left: 3vw; top: 72vh; margin: 0; font-size: clamp(14px, 2.2vw, 24px); color: #ff8a1f; }
.cta { position: absolute; left: 3vw; bottom: 4vh; padding: 12px 30px; font-size: 20px; background: var(--or); border: 0; border-radius: 0; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
#thRail { position: absolute; left: 0; right: 0; top: 24vh; height: 54vh; } .th { position: absolute; top: 50%; border-radius: 4px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .6); transition: left .3s, width .3s, height .3s, opacity .3s; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); } .th canvas { width: 100%; height: 100%; display: block; }
.th .tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; background: rgba(0, 0, 0, .6); font-size: 12px; text-align: center; }
.screen#thEmes { }
#themes .cta { left: 50%; transform: translateX(-50%); bottom: 4vh; }
#thName { left: 0 !important; right: 0; text-align: center; font-size: clamp(26px, 5vw, 48px); top: 6vh !important; }
#grid { position: absolute; left: 7vw; right: 7vw; top: 26vh; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
#grid button { padding: 10px 0; font-size: 15px; background: rgba(0, 0, 0, .5); } #grid button.lock { opacity: .35; } #grid button i { display: block; font-style: normal; font-size: 9px; color: #ffb060; min-height: 11px; }
@media (max-width: 700px) { #grid { grid-template-columns: repeat(5, 1fr); } }

#boardBox { position: absolute; left: 3vw; right: 14vw; top: 14vh; bottom: 15vh; border: 2px solid rgba(255, 255, 255, .45); border-radius: 6px; background: rgba(0, 0, 0, .45); padding: 14px 20px; overflow: auto; } #boardBox h2 { font-size: 28px; }
#boardList .item { margin-bottom: 6px; background: rgba(255, 255, 255, .06); border: 0; } #boardList .item.me { background: rgba(255, 122, 0, .35); } #boardList span { font-size: 20px; }
#boardYou { position: absolute; left: 3vw; right: 14vw; bottom: 3vh; height: 9vh; background: rgba(0, 0, 0, .8); display: flex; align-items: center; padding: 0 20px; gap: 3vw; font-size: clamp(14px, 2.2vw, 24px); } #boardYou em { color: #ff9a4a; font-style: normal; }
#friendBox { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, 92vw); padding: 24px; background: rgba(0, 0, 0, .75); border: 2px solid rgba(255, 255, 255, .4); border-radius: 8px; text-align: center; }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.how { margin: 12px 0 4px; font-size: 13px; line-height: 1.5; color: #dce9f5; font-weight: 400; } .credit { margin: 8px 0 0; font-size: 11px; color: #9fb5c8; font-weight: 400; } .credit a { color: #8fd0ff; }
input { font: inherit; font-style: italic; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid var(--ln); border-radius: 4px; padding: 9px 10px; width: 120px; text-align: center; letter-spacing: .12em; text-transform: uppercase; } #oCode { width: 90px; } #oMyCode { color: #35e6ee; letter-spacing: .2em; }
#oFriends button { padding: 6px 10px; font-size: 12px; }
#warm { position: fixed; left: 50%; bottom: 2.5vh; transform: translateX(-50%); z-index: 8; text-align: center; padding: 10px 22px; background: rgba(0, 0, 0, .65); border: 1px solid rgba(53, 230, 238, .6); border-radius: 6px; } #warm b { display: block; font-size: 20px; color: #4ee8ff; letter-spacing: .08em; } #warm small { display: block; margin: 2px 0 8px; font-weight: 400; color: #cfe3f2; }
#note { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 20; padding: 10px 18px; border-radius: 6px; background: rgba(255, 122, 0, .95); color: #1a0d00; font-weight: 700; letter-spacing: .06em; }
#pauseBtn { position: fixed; left: 12px; top: 12px; z-index: 5; padding: 6px 12px; }

/* the end of a run: lines over the holographic planet */
#rBox { position: absolute; inset: 0; }
#rTitle.hi { position: absolute; left: 52vw; top: 14vh; margin: 0; font-size: clamp(18px, 3.4vw, 36px); color: #34eaf2; text-shadow: 0 0 12px #34eaf2; } #rTitle.hi.plain { color: #fff; text-shadow: none; }
#rBig { position: absolute; left: 0; right: 0; top: 17vh; text-align: right; padding-right: 8vw; font-size: clamp(40px, 9vw, 96px); text-shadow: 0 0 18px rgba(0, 0, 0, .6); border-bottom: 3px solid #fff; } #rBig::before { content: "SCORE"; position: absolute; left: 4vw; bottom: 6px; font-size: clamp(16px, 2.4vw, 28px); }
#rLines { position: absolute; left: 3vw; top: 38vh; width: 62vw; font-size: clamp(12px, 1.9vw, 24px); } #rLines .ln { margin: 0 0 1.6vh; border-bottom: 2px solid #fff; padding-bottom: 4px; } #rLines .v { display: block; text-align: right; font-size: 1.35em; color: #ff8a1f; margin-top: 6px; } #rLines .new { color: #35e6ee; } #rLines .rw { position: absolute; left: 36vw; top: 30vh; font-size: 1.2em; white-space: nowrap; }
#rStars { position: absolute; right: 8vw; top: 56vh; font-size: 42px; letter-spacing: 8px; color: #ffd24a; filter: drop-shadow(0 0 10px rgba(255, 190, 40, .7)); }
.bottombar { position: absolute; left: 0; right: 0; bottom: 0; height: 11vh; min-height: 56px; display: flex; } .bottombar button { flex: 1; border: 0; border-radius: 0; font-size: clamp(16px, 3vw, 30px); } .bottombar .or { background: var(--or); clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%); } .bottombar .teal { background: var(--teal); flex: 1.3; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); margin-left: -3vw; }
.cta.up { left: 24vw; background: var(--teal); } #ballStats { gap: 9px; } #ballStats span { width: 11ch; font-size: 13px; }
#ballDesc { top: 56vh; line-height: 1.35; font-size: clamp(12px, 1.7vw, 19px); }
.medal { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 14px; border-radius: 50%; font-style: normal; font-size: 16px; color: #2a1800; vertical-align: middle; box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff1b0, #f2b21b 60%, #b57a00); } .medal.m2 { background: radial-gradient(circle at 35% 30%, #fff, #c4c9d2 60%, #7f8693); } .medal.m3 { background: radial-gradient(circle at 35% 30%, #ffd9b0, #d4833a 60%, #8a4a14); } .medal.m4 { background: #2a2d34; color: #cfd6e0; box-shadow: inset 0 0 0 2px #596070; }
#rStars .st { display: inline-block; font-style: normal; font-size: 68px; color: #3a3d44; margin: 0 6px; } #rStars .st.on { color: #ffd24a; text-shadow: 0 0 20px #ffb000; animation: starpop .55s both; }
@keyframes starpop { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

/* menu tiles, SP bar and boost tiles: sprites from the supplied atlases (assets/ui2_zip/), cut by tools/slice_ui2.py */
.corner .tile { width: 104px; height: 84px; min-width: 0; min-height: 0; max-width: none; padding: 0; clip-path: none; background: transparent center / 100% 100% no-repeat; font-size: 0; position: relative; }
#bTrophy.tile { background-image: url(assets/ui2_zip/trophy_idle.png); } #bTrophy.tile:hover, #bTrophy.tile:focus-visible { background-image: url(assets/ui2_zip/trophy_hover.png); }
#bSettings.tile { background-image: url(assets/ui2_zip/settings_idle.png); } #bSettings.tile:hover, #bSettings.tile:focus-visible { background-image: url(assets/ui2_zip/settings_hover.png); }
#bSettings.tile small { display: none; }
#bTrophy.tile small { display: block; position: absolute; left: 0; right: 0; bottom: 6px; font-size: 12px; text-align: center; }
#spbar { width: min(300px, 64vw); aspect-ratio: 373 / 72; height: auto; padding: 0; clip-path: none; display: block; background: url(assets/ui2_zip/sp_bar.png) center / 100% 100% no-repeat; }
#spbar .spi { display: none; }
#spbar b { position: absolute; left: 23.6%; width: 56.8%; top: 15%; height: 63%; min-width: 0; padding: 0 3%; display: flex; align-items: center; justify-content: flex-end; background: transparent; box-shadow: none; font-size: clamp(15px, 4.6vw, 24px); }
#spbar button { position: absolute; right: 100%; top: 14%; margin-right: 6px; }
#boostList .item { position: relative; padding-left: 134px; min-height: 64px; }
#boostList .item::before { content: ''; position: absolute; left: 12px; top: 50%; width: 106px; height: 48px; margin-top: -24px; background: url(assets/ui2_zip/boost_plate.png) center / 100% 100% no-repeat; }
#boostList .item[data-id="multi"]::before { background-image: url(assets/ui2_zip/boost_multi.png); }
#boostList .item[data-id="x2"]::before { background-image: url(assets/ui2_zip/boost_x2.png); }
@media (max-width: 560px) {   /* small screens: FREE SP goes under the bar (it overlapped BACK), narrower boost tiles */
  #spbar button { right: 0; top: 104%; margin: 0; }
  #boostList .item { padding-left: 92px; }
  #boostList .item::before { left: 8px; width: 74px; height: 34px; margin-top: -17px; }
}
#boostList .how { color: #2a2d33; text-shadow: none; font-size: 13px; margin: 4px 2px 10px; }
/* the menu plates like the original game: silver, slanted, bevelled (sprites from the supplied pack, assets/match_zip) */
.band .tail, .band.teal::after { display: none; }
.band > button, .band.teal > button { background: url(assets/match_zip/plate_grey.png) 0 0 / 100% 100% no-repeat; clip-path: none; min-width: 42vw; color: #fff; font-family: Orbitron, Quantico, sans-serif; font-weight: 900; font-style: italic; letter-spacing: .05em; text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 10px rgba(255, 255, 255, .35); padding-bottom: 6px; border: 0; }
.band > button:hover, .band.teal > button:hover { background-image: url(assets/match_zip/plate_teal.png); filter: none; box-shadow: none; }
.vol { display: flex; align-items: center; gap: 16px; margin: 14px 4px 0; font-size: 15px; } .vol span { width: 9ch; text-align: left; }
.vol input[type=range] { flex: 1; width: auto; padding: 0; height: 10px; -webkit-appearance: none; appearance: none; background: #3a3d44; border: 0; border-radius: 0; text-transform: none; }
.vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 26px; background: #19c8e0; border: 0; box-shadow: 0 0 10px #19c8e0; cursor: pointer; }
.vol input[type=range]::-moz-range-thumb { width: 18px; height: 26px; background: #19c8e0; border: 0; border-radius: 0; cursor: pointer; }
/* the scroll bars: slim, teal, square, like the rest of the interface */
* { scrollbar-width: thin; scrollbar-color: #19c8e0 rgba(0, 0, 0, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #35e6ee, #17aeb4); border: 2px solid rgba(0, 0, 0, .35); } ::-webkit-scrollbar-thumb:hover { background: #7ff6ff; }
/* the levels: each one is a small world */
#grid button { height: 66px; background-size: cover; background-position: center; border: 1px solid rgba(255, 255, 255, .4); font-size: 20px; text-shadow: 0 2px 4px #000; } #grid button:hover { border-color: #35e6ee; box-shadow: 0 0 14px rgba(53, 230, 238, .6); } #grid button i { text-shadow: 0 1px 3px #000; }
/* the bands of the menus: a slow shine passes over them */
.band > button { overflow: hidden; } .band > button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .3) 50%, transparent 58%); transform: translateX(-130%); animation: shine 6s infinite; pointer-events: none; }
.band:nth-of-type(2) > button::after { animation-delay: 1s; } .band:nth-of-type(3) > button::after { animation-delay: 2s; }
@keyframes shine { 0%, 65% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* Country profile selector and country leaderboard */
#pCountry{max-width:112px;min-width:82px;padding:6px 5px;font-size:10px;letter-spacing:.02em;background:rgba(4,12,28,.88);color:#fff;border:1px solid rgba(80,220,235,.5);border-radius:4px}
#pCountry option{background:#07101f;color:#fff}
#board .tabs{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
#board .tabs button{font-size:clamp(10px,1.5vw,14px);padding:8px 10px}
#boardList .item b{display:flex;align-items:center;gap:8px}
.country-flag{font-style:normal;font-size:18px;line-height:1}

.info-panel { position: absolute; left: 3vw; right: 14vw; top: 14vh; bottom: 8vh; border: 2px solid rgba(255, 255, 255, .45); border-radius: 6px; background: rgba(0, 0, 0, .45); padding: 14px clamp(18px, 3vw, 34px); overflow: auto; color: #fff; }
#shopInfo { bottom: auto; height: 34vh; }
.info-panel h2 { font-size: 28px; margin: 0 0 14px; }
.info-panel h3 { margin: 18px 0 4px; font-size: 16px; font-family: Orbitron, Quantico, sans-serif; font-style: italic; color: #ff9a4a; letter-spacing: .05em; }
.info-panel p { margin: 4px 0; font-size: clamp(13px, 1.7vw, 16px); line-height: 1.6; font-weight: 400; color: #dce9f5; }
.news-card { padding: 12px 14px; margin: 10px 0; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--or); }
.news-card b { font-family: Orbitron, Quantico, sans-serif; font-style: italic; letter-spacing: .05em; } .news-card small { display: block; margin-top: 4px; color: #9fb5c8; font-size: 11px; }
.shop-balance { font-size: 18px !important; color: #fff !important; }
.info-panel .row { justify-content: flex-start; margin-top: 8px; }
#boardList .country-flag{width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.25);font-style:normal}

#ccWrap{position:relative;font-size:12px;font-family:Quantico,sans-serif;font-style:italic;font-weight:700;text-shadow:none}
#ccBtn{display:flex;align-items:center;gap:6px;min-width:96px;max-width:150px;padding:5px 8px;background:rgba(4,12,28,.88);color:#fff;border:1px solid rgba(80,220,235,.5);border-radius:4px;cursor:pointer;font:inherit;text-transform:uppercase}
#ccBtn span{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} #ccBtn i{font-style:normal;opacity:.7}
#ccList{position:absolute;left:0;top:100%;margin-top:3px;width:190px;max-height:55vh;overflow-y:auto;scrollbar-width:none;background:#07101f;border:1px solid rgba(80,220,235,.5);border-radius:4px;z-index:30;box-shadow:0 6px 18px rgba(0,0,0,.6)}
#ccList::-webkit-scrollbar{width:0} #ccList[hidden]{display:none}
#ccList div{display:flex;align-items:center;gap:8px;padding:6px 8px;color:#fff;cursor:pointer;text-transform:uppercase} #ccList div:hover{background:#1b6fe0}
#ccBtn img,#ccList img{width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.25)}

.skin-ico{width:26px;height:26px;vertical-align:middle;flex:none} #boardYou .country-flag{width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.25)} #boardYou{align-items:center}

/* Discord login / profile (step A) */
#acct{position:absolute;right:2vw;top:2.5vh;z-index:5} #acct button{display:flex;align-items:center;gap:10px;padding:8px 14px;background:rgba(10,14,24,.78);color:#fff;border:1px solid rgba(255,255,255,.45);border-radius:6px;font:700 clamp(11px,1.4vw,14px) Quantico,sans-serif;font-style:italic;letter-spacing:.06em;cursor:pointer} #acct button:hover{background:rgba(88,101,242,.75)}
#acct img{width:26px;height:26px;border-radius:50%} #acct .dc{width:20px;height:20px;border-radius:5px;background:#5865f2;display:grid;place-items:center;font:900 12px Orbitron,sans-serif}
#acctCard{display:flex;align-items:center;gap:18px;justify-content:center;margin:10px 0 6px;text-align:left} #acctCard img{border-radius:50%;box-shadow:0 0 14px rgba(88,101,242,.8)} #acctCard b{display:block;font-size:26px} #acctCard small{display:block;opacity:.75;font-size:14px;margin-top:3px}
#account .how{margin:12px 8px;line-height:1.5}

#acEditRow input{width:min(250px,50vw);text-transform:none;padding:8px 10px;background:rgba(0,0,0,.6);color:#fff;border:1px solid rgba(255,255,255,.45);font:700 15px Quantico,sans-serif;font-style:italic} #acEditRow{margin:8px 0}
/* statistics on the profile (B1) */
#account #friendBox{max-height:90vh;overflow-y:auto;scrollbar-width:none} #account #friendBox::-webkit-scrollbar{width:0} #acStats{text-align:left;margin:6px 0 4px}
#acStats .stHead{display:flex;align-items:center;gap:10px;margin:12px 0 2px;font:900 15px Orbitron,sans-serif;font-style:italic;letter-spacing:.06em} #acStats .stHead span{font:900 11px Orbitron,sans-serif;padding:3px 8px;border-radius:3px;letter-spacing:.1em}
#acStats .tagU{background:#c8791a;color:#fff} #acStats .tagV{background:#1f9d6a;color:#fff} #acStats .stNote{margin:3px 0 8px;font-size:12px;opacity:.7;line-height:1.4} #acStats .stCats{margin:6px 0 2px;font-size:13px;line-height:1.5}
#acStats .stGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px;margin:8px 0} #acStats .stGrid div{background:rgba(255,255,255,.06);border-left:3px solid #c8791a;padding:6px 9px} #acStats .stGrid small{display:block;opacity:.7;font-size:11px} #acStats .stGrid b{font-size:17px}
/* phones: the Discord button leaves the top row (it covered the rank and the country), bottom left above the online count */
/* phones: the "searching for a player" panel is one thin bar at the bottom (it took a quarter of the screen and hid the court) */
@media (max-width:760px){#warm{left:8px;right:8px;transform:none;bottom:8px;padding:6px 10px;text-align:left} #warm:not([hidden]){display:flex;align-items:center;gap:10px} #warm b{display:block;flex:1;font-size:13px;letter-spacing:.04em;line-height:1.2} #warm small{display:none} #warm button{padding:6px 12px;font-size:12px;margin:0;flex:none}}
/* ===== phones (portrait or landscape): smaller menu, nothing on top of anything =====
   top row: the player (left) and, at the right, the Discord button with the full screen button under it. The corner tiles shrink and sit in a row. The bands shrink. */
#bFull{display:none}
@media (max-width:760px), (max-height:520px){
  #profile{left:2vw;top:1.2vh;max-width:calc(100vw - 150px);flex-wrap:wrap;gap:2px 8px;font-size:14px} #profile input{width:9ch} #profile .tri{border-left-width:9px;border-top-width:6px;border-bottom-width:6px}
  #profile #rankV{flex-basis:100%;font-size:.75em}
  #acct{top:1.2vh;right:2vw;bottom:auto;left:auto} #acct button{padding:5px 8px;font-size:11px;gap:6px;max-width:138px} #acct button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} #acct img,#acct .dc{width:20px;height:20px;flex:none}
  #bFull{display:grid;place-items:center;position:absolute;right:2vw;top:calc(1.2vh + 38px);width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:6px;background:rgba(10,14,24,.78);color:#fff;font-size:18px;cursor:pointer;z-index:5} #bFull[hidden]{display:none}
  .band{height:8.5vh;max-height:54px;min-height:40px} .band > button{font-size:clamp(14px,4.2vw,20px);min-width:48vw;padding:0 4vw}
  .band .tog{margin-left:2vw;gap:6px;font-size:11px} .band .tog button{padding:4px 10px}
  .corner{flex-direction:row;gap:4px;right:4px;bottom:4px} .corner .tile{width:62px;height:50px} #bTrophy.tile small{font-size:9px;bottom:3px}
  .status{font-size:11px;bottom:1.2vh}
  #spbar{width:min(220px,48vw)}
  .back{padding:8px 26px 8px 12px;font-size:15px}
  #friendBox,#account #friendBox{top:52px;transform:translateX(-50%);max-height:calc(100vh - 60px);overflow-y:auto;scrollbar-width:none;padding:14px} #friendBox::-webkit-scrollbar{width:0}
  .tabs.top{left:92px;right:4px;top:1vh;gap:4px;justify-content:flex-end} .tabs.top button{padding:7px 9px;font-size:12px}
}
@media (max-height:520px){   /* a phone held sideways: the six bands of EXTRAS get a tighter pitch, the menu bands too */
  #menu .band{max-height:44px;min-height:36px} #extras .band{max-height:40px;min-height:34px}
  .info-panel{top:19vh}
  #shopInfo{height:36vh;padding:8px 14px} #spShop .info-panel h2{font-size:16px;margin:0 0 4px} #spShop .info-panel p{font-size:11px;line-height:1.3;margin:2px 0} #shopFree{padding:5px 10px;font-size:12px;margin-top:4px}
  #ballStats{top:12vh;gap:4px;width:32vw} #ballStats i{height:9px} #ballStats span{font-size:11px;width:9ch} .strip{top:52vh;height:8vh;min-height:34px;font-size:20px;padding-left:5vw} #ballDesc{top:64vh;font-size:11px;line-height:1.25;width:46vw} #ballNeed{top:82vh;font-size:12px}
}
@media (max-width:420px) and (min-height:521px){.status{bottom:42px}}   /* narrow phones: the online count sits above the chat bar, not beside it */
/* phones: the bands of PLAY / EXTRAS menus are laid out as a column with equal gaps (no more percentages: they could end up stuck together or uneven), a little narrower */
@media (max-width:760px), (max-height:520px){
  #play:not([hidden]), #extras:not([hidden]){display:flex;flex-direction:column;justify-content:center;gap:16px;padding:64px 0 76px}
  #menu:not([hidden]){display:flex;flex-direction:column;gap:16px;padding:0 0 76px}   /* profile in the flow: the player is the first item, the bands never land on it */
  #menu #profile{position:relative !important;left:auto;top:auto;margin:8px 164px 0 8px;width:auto;justify-content:center;text-align:center;flex:none}   /* it fills the space left of the Discord / full screen buttons, centred in it */
  #menu > .band:nth-of-type(2){margin-top:auto} #menu > .band:nth-of-type(5){margin-bottom:auto}   /* the four bands are centred in what is left under the player */
  #extras:not([hidden]){gap:12px;padding:58px 0 14px}
  #menu .band, #play .band, #extras .band{position:relative !important;top:auto !important;left:auto;right:auto;flex:none}
  #menu .band > button, #play .band > button, #extras .band > button{min-width:40vw;max-width:60vw;font-size:clamp(13px,3.8vw,18px)}
}
@media (max-height:520px){
  #play:not([hidden]){gap:10px;padding:52px 0 54px} #menu:not([hidden]){gap:10px;padding:0 0 54px} #extras:not([hidden]){gap:6px;padding:46px 0 6px}
  #menu #profile{margin-top:4px;gap:0 8px;font-size:13px} #menu #profile #rankV{font-size:.7em}
  #menu .band{height:40px;max-height:40px;min-height:0} #play .band{height:40px;max-height:40px;min-height:0} #extras .band{height:34px;max-height:34px;min-height:0}
}

.band .tog button#oOff.on { background: #ff3b4e; color: #fff; box-shadow: 0 0 14px #ff3b4e; }   /* ONLINE OFF: red when chosen */

/* menu bands, hover/press: the same silver plate (the outlined one of the original sheet) with a neon blue outline, like the ON button; the shorthand resets the old orange fill that tiled the plate */
.band > button:hover, .band.teal > button:hover, .band > button:active, .band.teal > button:active, .band > button:focus-visible { background: url(assets/match_zip/plate_teal.png) 0 0 / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 0 1px #35e6ee) drop-shadow(0 0 2px #35e6ee) drop-shadow(0 0 9px #35e6ee); }
/* the red NEW tag over COMPETITIVE MATCH, in the style of the red STAR CODE plate of the original menu */
.band .newtag { position: relative; z-index: 3; align-self: flex-start; margin-left: -7vw; transform: translateY(-48%) rotate(-5deg); padding: 3px 12px 4px; border-radius: 7px; background: linear-gradient(#5a1414, #2a0606); border: 2px solid #ff4a4a; box-shadow: 0 0 10px #ff2a2a, 0 0 22px rgba(255, 40, 40, .55), inset 0 0 8px rgba(255, 60, 60, .5); color: #ff6a6a; font: 900 clamp(12px, 1.6vw, 18px) Orbitron, Quantico, sans-serif; font-style: italic; letter-spacing: .1em; text-shadow: 0 0 6px #ff2a2a, 0 1px 0 #3a0000; pointer-events: none; animation: newpulse 1.6s ease-in-out infinite; }
@keyframes newpulse { 50% { box-shadow: 0 0 14px #ff3a3a, 0 0 32px rgba(255, 40, 40, .75), inset 0 0 8px rgba(255, 60, 60, .5); } }

.band .tog button#oOff.on { background: #ff3b4e; color: #fff; box-shadow: 0 0 14px #ff3b4e; }   /* ONLINE OFF: red when chosen */
