/* FRAY ARENA · FRAY GAMES brand layer (2.10.1) — the rules are in docs/BRAND.md (Brand Book 1.0).
 *
 * Type     Bungee for the logo, titles and buttons (capitals only, never running text) ·
 *          Rubik for text, interface and numbers (400 text, 500 emphasis, 700 interface).
 * Colour   Navy is the ground, steel and tile the surfaces, frost the text, gold the brand, neon blue
 *          and neon pink the edge. The extended neon colours keep fixed jobs and are never decoration:
 *          volt = XP, rewards, new · hot orange = damage, super, enemies · arcade green = heal,
 *          success, ready · ultraviolet = epic, power cubes · neon blue = info, your team ·
 *          neon pink = danger. At most two neon colours in one element.
 * Shape    buttons 14 px, cards 22 px, chips and pills fully round. Light comes from the top left:
 *          gold light to dark, a 3D edge to the bottom right. The neon edge (blue bottom left, pink
 *          bottom right, 4 % of the letter height) only on the logo and big titles.
 * Loaded after ui/sundown.css, which carries the palette and the fonts in its variables.
 */
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/bungee-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/bungee-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rubik-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rubik-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/rubik-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/rubik-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/rubik-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/rubik-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fg-navy: #0A111B; --fg-steel: #121A2B; --fg-tile: #1B2540; --fg-frost: #EEF3FF;
  --fg-gold: #F6A83B; --fg-goldlight: #FCD286; --fg-amber: #D68029; --fg-rivet: #B86F1F;
  --fg-blue: #2BA3EE; --fg-pink: #FF4F8B; --fg-volt: #FFE44D; --fg-orange: #FF7A29; --fg-green: #39E07A; --fg-violet: #9B6BFF;
  --fg-gold-fill: linear-gradient(135deg, #FCD286 0%, #F6A83B 45%, #D68029 100%);
  --fg-edge: -.04em .04em 0 var(--fg-blue), .04em .04em 0 var(--fg-pink);
  --fg-ground: radial-gradient(70% 90% at 0% 100%, #2BA3EE26, #2BA3EE00 62%), radial-gradient(60% 80% at 100% 0%, #FF4F8B21, #FF4F8B00 60%), linear-gradient(160deg, #0F1A2E 0%, #0A111B 55%, #070C14 100%);
  --fg-r-btn: 14px; --fg-r-card: 22px;
  /* the engine's own HUD variables (assets/index-*.css) */
  --night: #0A111B; --ink: #0A111B; --plum: #1B2540; --gold: #F6A83B; --gold-deep: #D68029; --ember: #FF7A29; --mint: #39E07A;
  --lilac: #A8B4D0; --paper: #EEF3FF; --panel: #121A2Bdb;
  --font: 'Bungee', 'Arial Black', sans-serif; --body: 'Rubik', 'Segoe UI', Roboto, sans-serif;
}
html, body { background: var(--fg-navy); }
/* Bungee has one weight: never a fake bold of it (Rubik brings 400 / 500 / 700) */
html { font-synthesis: style small-caps; }
body.sd, body.sd button, body.sd input, body.sd select, body.sd textarea { font-family: var(--sd-body); }

/* ------------------------------------------------------------------ buttons */
/* primary: gold, navy Bungee, light from the top left, a 3D edge to the bottom right */
body.sd .sk-btn { clip-path: none; border-radius: var(--fg-r-btn); background: var(--fg-gold-fill); color: var(--fg-navy); box-shadow: 3px 4px 0 var(--fg-rivet); text-shadow: none; letter-spacing: .02em; }
body.sd .sk-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--fg-rivet); filter: none; }
/* tertiary: tile, frost Bungee */
body.sd .sk-btn.alt, body.sd .sk-btn.sm.alt { background: var(--fg-tile); color: var(--fg-frost); box-shadow: inset 0 0 0 1px #2C3A5C; font-family: var(--sd-display); font-weight: 400; letter-spacing: .03em; }
body.sd .sk-btn.alt:active { box-shadow: inset 0 0 0 1px #2C3A5C; }
body.sd .sk-btn.sm { border-radius: 12px; box-shadow: 2px 3px 0 var(--fg-rivet); font-family: var(--sd-display); font-weight: 400; letter-spacing: .03em; }
body.sd .sk-btn.sm.alt { box-shadow: inset 0 0 0 1px #2C3A5C; }
body.sd .sk-btn[disabled] { filter: saturate(.35) brightness(.7); box-shadow: none; }
body.sd .sk-shop-card .sk-btn { font: 400 12px/1 var(--sd-display) !important; letter-spacing: .03em !important; }
body.sd #sd-share, body.sd #sd-picker .act .fr { clip-path: none; border-radius: var(--fg-r-btn); font-family: var(--sd-display); font-weight: 400; letter-spacing: .03em; }
body.sd #sd-share { background: transparent; border: 1.5px solid #EEF3FFcc; white-space: nowrap; font-size: 11px; letter-spacing: .01em; }
@media (max-width: 760px) { body.sd #sd-share { font-size: 9.5px; gap: 6px; } }
body.sd #sk-play small, body.sd #sd-pk-play small { font-family: var(--sd-cond); font-weight: 700; letter-spacing: .06em; }
body.sd #sk-play.sq-ready { box-shadow: 3px 4px 0 #1C8A49 !important; }
body.sd .sd-plus { border-radius: 10px; background: var(--fg-gold-fill); box-shadow: 1px 2px 0 var(--fg-rivet); }

/* ------------------------------------------------------------------ chips, pills, badges */
.sd-chip { border-radius: 999px; padding: 3px 9px; background: #0A111B80; }
.sd-chip.fill { color: var(--fg-navy) !important; }
/* rarity pills are outlined: common grey, rare blue, epic violet, legendary orange, mythic pink (--rc from shell.js) */
body.sd .sk-rar { border-radius: 999px !important; padding: 2px 9px !important; background: transparent !important; border: 1.5px solid var(--rc, #A8B4D0) !important; color: var(--rc, #A8B4D0) !important; }
.sd-badge { border-radius: 999px; }
.sd-badge.new, .sd-hs .roster .sk-mini em { background: var(--fg-volt); color: var(--fg-navy); }
.sd-newtag { color: var(--fg-volt); }
#sd-gas { border-radius: 999px; }
body.sd .sk-slot.q b em { background: var(--fg-blue); color: var(--fg-navy); border-radius: 999px; padding: 1px 6px; }
body.sd #sk-qgrid .qteam.mine > span { color: var(--fg-blue); }
.sd-rk b em { border-radius: 999px; padding: 1px 6px; background: var(--fg-gold); }
.sd-rk.me { border-color: var(--fg-gold); background: #F6A83B14; }
.sd-rk .n { color: var(--fg-gold); }
.sd-rk .av, body.sd #sk-av { background: var(--fg-gold-fill); color: var(--fg-navy); }
.sd-pass.v2 .rows span:last-child { color: var(--fg-amber); }
body.sd #social-panel .soc-label { color: var(--fg-gold); }

/* ------------------------------------------------------------------ surfaces: rows 14 px, cards 22 px */
body.sd #sk-prof, body.sd #sk-cur .sk-pill, body.sd #sk-gear, body.sd #sk-crewbtn, body.sd .sd-qchip { border-radius: var(--fg-r-btn); background: #121A2Be6; }
body.sd #sk-av { border-radius: 10px; color: var(--fg-navy); }
body.sd .sk-tab { border-radius: var(--fg-r-btn); }
body.sd .sk-tab.on { background: #F6A83B1a; border-color: #F6A83B99; }
#sd-modecard, body.sd #sk-liveops, body.sd .sk-item, body.sd #sd-picker .sk-mode, body.sd #sd-picker .sk-map, .sd-rw, .sd-rk, .sd-wal .bal,
.sd-hs .flt button, .sd-hs .mdl .btns button, .sd-hs .sts .tiers div, body.sd .sk-slot, body.sd #sk-qgrid .qteam, #sq-body .sq-row, #sq-body .sq-code,
body.sd #social-panel .soc-tabs button, body.sd #social-panel .soc-card, body.sd #social-panel .soc-stats > div { border-radius: var(--fg-r-btn) !important; }
#sd-modecard img, body.sd #sd-picker .sk-map img { border-radius: 10px; }
/* the lobby's mode card: the variant as a gold label, the mode as a display title */
#sd-modecard .mc { gap: 3px; }
#sd-modecard .mc .mv { font: 700 9px/1 var(--sd-cond); letter-spacing: .14em; color: var(--fg-gold); font-style: normal; }
#sd-modecard .mc b { font: 400 15px/1.05 var(--sd-display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-kit .t, .sd-hs .kit .t, .sd-rw .t, .sd-hs .skins u, #sd-squadrow .sq i, .sd-hs .roster .sk-mini, body.sd .sk-slot.q .pic { border-radius: 12px !important; }
.sd-pass .cell, .sd-pass.v2 .cell, .sd-rl .tiles div { border-radius: var(--fg-r-btn); }
body.sd .sk-shop-card, #sd-claimfx .cf-box, #sq-sheet .sq-box, body.sd #social-panel .soc-sheet, .sd-fraystat, .fs-phase { border-radius: var(--fg-r-card) !important; }
#sd-picker .x, #sq-sheet .x, body.sd .sk-arrow { border-radius: 12px; }
body.sd .sk-arrow { border-radius: 50%; }
/* progress: gold on tile */
.sd-mbar u, .sd-hs .sts .bar u, .sd-pass .nx u, .sd-rw u, body.sd .sk-bar, .sd-qchip u, body.sd #sk-qbar { background: var(--fg-tile) !important; border-radius: 999px !important; }
.sd-mbar u i, body.sd .sk-bar b, .sd-pass .nx u i, body.sd .sd-qchip u b { background: var(--fg-gold-fill) !important; border-radius: 999px; }
body.sd #sk-qbar b { background: var(--fg-gold-fill); border-radius: 999px; }

/* ------------------------------------------------------------------ titles */
/* the neon edge stays with the big ones: the hero name, the placement, the match banners */
body.sd #sk-hname { text-shadow: var(--fg-edge); color: var(--fg-gold); letter-spacing: 0; }
.sd-rl .rk b { text-shadow: var(--fg-edge); }
body.sd.sk-match #banner { font-family: var(--sd-display); color: var(--fg-gold); text-shadow: var(--fg-edge), 0 6px 18px #0A111B99; letter-spacing: .01em; }
body.sd #sk-rtitle { font-family: var(--sd-display) !important; font-weight: 400 !important; letter-spacing: .06em !important; }
body.sd #sk-rtitle.lose { color: var(--fg-pink) !important; }
/* section labels: gold */
body.sd #settings h4 { color: var(--fg-gold) !important; font-family: var(--sd-cond); font-weight: 700; letter-spacing: .12em; }
body.sd #settings h3, body.sd #sk-sheettitle, #sd-picker h2, #sq-sheet h2, body.sd #social-panel h2 { color: var(--fg-frost); letter-spacing: .01em; }

/* ------------------------------------------------------------------ panels and grounds */
body.sd #sk-sheet .bg { background: radial-gradient(70% 90% at 0% 100%, #2BA3EE1a, #2BA3EE00 60%), radial-gradient(60% 80% at 100% 0%, #FF4F8B17, #FF4F8B00 60%), #0A111Bed; }
#sd-picker { background: radial-gradient(70% 90% at 0% 100%, #2BA3EE1a, #2BA3EE00 60%), radial-gradient(60% 80% at 100% 0%, #FF4F8B17, #FF4F8B00 60%), linear-gradient(90deg, #0A111Bf6, #0A111Beb 60%, #0A111Bd6); }
body.sd #settings { border-radius: var(--fg-r-card) !important; border: 1px solid var(--sd-line) !important; background: #121A2Bf7 !important; }
body.sd #settings .seg button { border-radius: 12px !important; }
body.sd #settings .seg button.on { background: #F6A83B1f !important; border-color: var(--fg-gold) !important; color: var(--fg-gold) !important; }
body.sd #sk-dialog .box, body.sd #sk-dialog > div { border-radius: var(--fg-r-card); }

/* boot and connect: the brand ground with the logo */
body.sd #sk-boot { background: var(--fg-ground); }
body.sd #sk-boot #sk-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
body.sd #sk-boot .sk-brandbig { width: auto; height: min(46vh, 230px); max-width: 80vw; filter: none; }
body.sd #sk-boot .sk-brandtag, body.sd #sk-boot #sk-chain { display: none; }
body.sd .sk-bootbar { background: var(--fg-tile); border-radius: 999px; overflow: hidden; }
body.sd .sk-bootbar b { background: var(--fg-gold-fill); border-radius: 999px; }
body.sd #sk-connect { background: radial-gradient(70% 90% at 0% 100%, #2BA3EE2e, #2BA3EE00 62%), radial-gradient(60% 80% at 100% 0%, #FF4F8B26, #FF4F8B00 60%), radial-gradient(ellipse 62% 74% at 50% 46%, #0A111Bf0 0%, #0A111Bc4 58%, #0A111B66 100%); }
body.sd #sk-connect #sk-logo2 { display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.sd #sk-connect .sk-brandbig { width: auto; height: min(20vh, 92px); max-width: 74vw; filter: none; }
body.sd #sk-connect .sk-brandtag { color: var(--fg-goldlight); font: 700 10px/1 var(--sd-cond); letter-spacing: .2em; text-shadow: none; }
body.sd .sk-wbtn { border-radius: var(--fg-r-btn) !important; border: 1px solid #2C3A5C !important; background: #121A2Bf0 !important; box-shadow: none !important; }
body.sd .sk-wbtn span { font-family: var(--sd-display); font-weight: 400; letter-spacing: .02em; color: var(--fg-frost); }
body.sd .sk-wbtn span small { font-family: var(--sd-body); font-weight: 500; letter-spacing: 0; color: var(--sd-muted); }
body.sd .sk-wbtn i.wi { border-radius: 12px !important; background: var(--fg-gold-fill) !important; color: var(--fg-navy) !important; border: 0 !important; }
body.sd .sk-wbtn:active { transform: scale(.99); }

/* the engine's loading cover: the emblem in a ring of eight rivets (8 fighters a match) */
#loading { background: var(--fg-ground) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--sd-muted); font: 500 13px/1.3 var(--sd-body); letter-spacing: .02em; }
#loading:before { content: none; display: none; }   /* the engine's spinner: the rivet ring takes its place */
#loading .fg-load { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
#loading .fg-load img { width: 96px; height: 96px; }
#loading .fg-rivets { position: absolute; inset: 0; }
#loading .fg-rivets b { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--fg-gold); opacity: .25;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-63px); animation: fg-rivet 1.2s linear infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes fg-rivet { 0%, 60%, 100% { opacity: .25; } 10% { opacity: 1; background: var(--fg-goldlight); } }
@media (prefers-reduced-motion: reduce) { #loading .fg-rivets b { animation: none; opacity: .6; } }

/* ------------------------------------------------------------------ the $FRAY token and Coins */
/* the $FRAY sign is the simplified emblem: never below the brand book's 20 px */
.fray-ico { width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; border-radius: 50%; }
/* the logo carries no shadow, glow or outline (Brand Book 1.0) */
.sk-brandbig, .sk-screenlogo, #loading .fg-load img { filter: none !important; }

/* ------------------------------------------------------------------ match HUD */
/* your team neon blue, enemies hot orange (also for colour-blind eyes: blue / orange) */
.oh-name { color: var(--fg-orange); font-family: var(--sd-cond); font-weight: 700; }
.oh.me .oh-name, .oh.ally .oh-name { color: var(--fg-blue); }
.oh-bar { background: var(--fg-navy); border-color: var(--fg-navy); border-radius: 999px; }
.oh-fill { background: linear-gradient(#FF9A5C, #FF7A29 55%, #E2560B); }
.oh.me .oh-fill, .oh.ally .oh-fill { background: linear-gradient(#6FC6FF, #2BA3EE 55%, #1679C2); }
.oh.box .oh-fill { background: linear-gradient(#BFA2FF, #9B6BFF 55%, #6E3FE0); }
.oh-cubes { color: var(--fg-violet); }
/* 2.13: opening a pack (shell.js packMoment): pack drops and shakes, flash, the card turns over */
#sd-packfx { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 46%, #172557 0%, #0A1024 46%, #04060D 100%); --pk: #2BA3EE; perspective: 900px; }
#sd-packfx.on { display: flex; animation: sd-fadein .16s ease-out; }
#sd-packfx .pk-rays { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--pk) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 58%); mask: radial-gradient(circle, #000 0, transparent 58%);
  animation: pk-spin 18s linear infinite; }
#sd-packfx.reveal .pk-rays { opacity: .22; transition: opacity .5s .1s; }
#sd-packfx.reveal.t2 .pk-rays { opacity: .32; } #sd-packfx.reveal.t3 .pk-rays, #sd-packfx.reveal.t4 .pk-rays { opacity: .46; }
#sd-packfx .pk-pack { position: relative; height: min(62vh, 250px); aspect-ratio: 3 / 4; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(155deg, #223A8F 0%, #101B4A 55%, #0A1030 100%); border: 2px solid #2BA3EE; box-shadow: 0 0 34px #2BA3EE55, inset 0 0 0 4px #0A103066;
  animation: pk-drop .34s cubic-bezier(.2, 1.5, .4, 1) both, pk-shake .96s .34s linear both, pk-heat .96s .34s ease-in both; }
#sd-packfx .pk-pack img { width: 46%; filter: drop-shadow(0 4px 10px #0008); }
#sd-packfx .pk-pack b { font: 800 13px/1 var(--sd-cond); letter-spacing: .14em; color: #DCE6FF; }
#sd-packfx.reveal .pk-pack { animation: pk-burst .26s ease-out both; }
#sd-packfx .pk-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#sd-packfx.reveal .pk-flash { animation: pk-flash .5s ease-out both; }
#sd-packfx .pk-card { position: absolute; display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); max-width: 92vw; opacity: 0; pointer-events: none; }
#sd-packfx.reveal .pk-card { pointer-events: auto; animation: pk-flip .52s .1s cubic-bezier(.2, 1.25, .3, 1) both; }
#sd-packfx .pk-card > img { height: min(78vh, 330px); width: auto; max-width: 44vw; object-fit: contain; border-radius: 16px; border: 2px solid var(--pk); background: radial-gradient(circle at 50% 30%, #1C2748, #0A111B);
  box-shadow: 0 0 44px color-mix(in srgb, var(--pk) 55%, transparent); }
#sd-packfx .pk-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
#sd-packfx .pk-info em { font: 400 clamp(22px, 5vh, 30px)/1 var(--font); font-style: normal; color: var(--pk); letter-spacing: .04em; text-shadow: 0 0 18px color-mix(in srgb, var(--pk) 60%, transparent); }
#sd-packfx .pk-info b { font: 400 clamp(26px, 7vh, 40px)/1 var(--font); color: #fff; }
#sd-packfx .pk-info span { font: 700 12px/1.35 var(--sd-cond); letter-spacing: .05em; color: var(--sd-muted); max-width: 250px; }
#sd-packfx .pk-info .sk-btn { margin-top: 10px; }
#sd-packfx .pk-skip { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 800 11px/1 var(--sd-cond); letter-spacing: .14em; color: #8FA0CC; animation: sd-glow 1.2s ease-in-out infinite; }
#sd-packfx.reveal .pk-skip { display: none; }
#sd-packfx.calm .pk-pack, #sd-packfx.calm .pk-flash, #sd-packfx.calm .pk-rays { display: none; }
#sd-packfx.calm.reveal .pk-card { animation: sd-fadein .2s ease-out both; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
@keyframes pk-drop { from { transform: translateY(-70vh) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pk-shake { 0%, 100% { transform: rotate(0) scale(1); } 12% { transform: rotate(-3deg); } 24% { transform: rotate(3deg); } 36% { transform: rotate(-5deg) scale(1.02); } 48% { transform: rotate(5deg) scale(1.03); }
  60% { transform: rotate(-7deg) scale(1.05); } 72% { transform: rotate(7deg) scale(1.06); } 84% { transform: rotate(-8deg) scale(1.08); } 94% { transform: rotate(6deg) scale(1.1); } }
@keyframes pk-heat { 0%, 55% { border-color: #2BA3EE; box-shadow: 0 0 34px #2BA3EE55, inset 0 0 0 4px #0A103066; } 100% { border-color: var(--pk); box-shadow: 0 0 80px var(--pk), inset 0 0 0 4px #0A103066; } }
@keyframes pk-burst { from { transform: scale(1.1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@keyframes pk-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes pk-flip { from { transform: rotateY(88deg) scale(.7); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }

/* 2.13: the result as a picture to share (shell.js ShareCard) */
#sd-sharefx { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: #04060Ddd; backdrop-filter: blur(4px); padding: 10px; }
#sd-sharefx.on { display: flex; animation: sd-fadein .16s ease-out; }
#sd-sharefx .sf-box { display: flex; align-items: center; gap: 18px; max-width: 96vw; max-height: 94vh; }
#sd-sharefx .sf-pic { height: min(88vh, 520px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0A1024; border: 1px solid #2BA3EE66; display: grid; place-items: center; flex: none; }
#sd-sharefx .sf-pic img { width: 100%; height: 100%; object-fit: cover; display: block; animation: sd-pop .3s cubic-bezier(.2, 1.5, .4, 1); }
#sd-sharefx .sf-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2BA3EE44; border-top-color: #2BA3EE; animation: pk-spin .8s linear infinite; }
#sd-sharefx .sf-side { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
#sd-sharefx .sf-side > b { font: 400 20px/1.1 var(--font); color: #EEF3FF; }
#sd-sharefx .sf-btns { display: flex; flex-direction: column; gap: 8px; }
#sd-sharefx .sf-btns .sk-btn, #sd-sharefx #sf-close { width: 100%; }
#sd-sharefx .sf-note { min-height: 14px; color: #F6A83B; font: 700 11px/1.3 var(--sd-cond); letter-spacing: .04em; }

/* 2.12: a bot says so on its name tag (online rooms hold players and bots) */
.oh-bot { display: inline-block; margin-left: 4px; padding: 1px 4px 0; border-radius: 3px; background: #26324DCC; color: #A8B4D0; font: 800 8px/1.25 var(--sd-cond); letter-spacing: .08em; vertical-align: 1px; }
.oh.bot .oh-name .n { opacity: .82; }
/* 2.12: the ranked queue: a seat a player of your league has taken */
body.sd .sk-slot.q.found { border-color: var(--fg-blue); animation: sd-pop .3s cubic-bezier(.2, 1.6, .4, 1); }
body.sd .sk-slot.q.found .pic { background: #2BA3EE22 center / 60% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232BA3EE'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8z'/%3E%3C/svg%3E"); border-color: #2BA3EE66; }
body.sd .sk-slot.q.found b { color: var(--sd-paper); }
body.sd .sk-slot.q b u { text-decoration: none; font: 800 8px/1 var(--sd-cond); letter-spacing: .08em; color: #A8B4D0; background: #26324D; padding: 1px 4px; border-radius: 3px; vertical-align: 1px; }
body.sd .sk-slot.q.wait b u { visibility: hidden; }
body.sd .sk-slot.q.found small { color: var(--fg-blue); }
.oh-hp { font-family: var(--sd-cond); font-weight: 700; color: var(--fg-frost); }
.oh-ammo i { background: var(--fg-navy); border-color: var(--fg-navy); border-radius: 999px; }
.oh-ammo i b { background: linear-gradient(#FCD286, #F6A83B); }
.floater { font-family: var(--sd-display); }
.floater.dmg, .floater.dmg-self { color: var(--fg-orange); }
.floater.heal { color: var(--fg-green); }
.floater.power { color: var(--fg-violet); }
#hurt { background: radial-gradient(#FF4F8B00 45%, #FF4F8B80); }
#gas-warn { background: radial-gradient(#FF4F8B00 40%, #FF4F8B59); }
body.sd #banner.small { color: var(--fg-goldlight); }
body.sd #super { border-color: var(--fg-navy); background: conic-gradient(var(--fg-orange) calc(var(--p, 0) * 1%), #121A2Bd9 0); }
body.sd #super .core { border-color: var(--fg-navy); background: var(--fg-steel); font-family: var(--sd-display); font-weight: 400; font-size: 11px; letter-spacing: .02em; }
/* SUPER READY: hot orange, navy type */
body.sd #super.ready .core { background: radial-gradient(#FFB27F, var(--fg-orange) 62%, #D9560F); color: var(--fg-navy); }
/* the gadget: arcade green when ready */
body.sd #sk-gadget { border-color: var(--fg-green) !important; }
body.sd #sk-gadget b { font-family: var(--sd-display) !important; font-weight: 400 !important; font-size: 9px !important; letter-spacing: .02em !important; }
body.sd #sk-gadget small { color: var(--fg-green) !important; font-family: var(--sd-cond) !important; font-weight: 700 !important; }
body.sd #topbar .pill, body.sd #sk-live .sk-pill, body.sd #sk-dm-score, body.sd #feed div { border-radius: 999px; background: #121A2Be6; }
body.sd #feed .k { color: var(--fg-frost); }
body.sd #feed .v { color: var(--fg-orange); }
body.sd #feed .you { color: var(--fg-blue); }
#sd-minimap { border-color: var(--fg-rivet); border-radius: 14px; background: var(--fg-navy); }
/* 2.14.1: no double-tap zoom anywhere (touch-action is not inherited across scroll areas, hence
   every element). The arena canvas, SUPER and the shop canvas keep their own `none` (id rules win). */
html, body, *, *::before, *::after { touch-action: manipulation; }
/* 2.14.1: the joysticks. The stick is a 0x0 point that the engine moves with translate3d; a later
   skin in the engine's CSS gave it a background and a border and set `.stick:before { inset: 22px }`,
   so the ring was drawn 84 px right of and below its knob (at rest and while held). Back on the
   point: a 124 px ring (the knob travels 58 px), the knob centred to the pixel. */
.stick { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.stick:before { inset: auto; top: -62px; left: -62px; width: 124px; height: 124px; box-sizing: border-box; border: 2px solid #EEF3FFb3; background: #0A111B59; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.stick i { box-sizing: border-box; width: 58px; height: 58px; top: -29px; left: -29px; background: var(--fg-frost); border-color: var(--fg-navy); }
.stick b { font-family: var(--sd-cond); font-weight: 700; }
#toast { background: #121A2Bf2; border: 1px solid #2C3A5C; border-radius: 999px; color: var(--fg-frost); font-family: var(--sd-cond); font-weight: 700; }
body.sd #sk-toast2 { border-radius: 999px; }

/* ------------------------------------------------------------------ the 3D hero viewer */
.fm-card { border: 1px solid #26324D; border-radius: var(--fg-r-card); background: linear-gradient(160deg, #1B2540, #0A111B 62%); }
.fm-head, .fm-actions { border-color: #26324D; }
.fm-kicker { color: var(--fg-gold); font: 700 8px/1 var(--sd-cond); letter-spacing: .2em; }
.fm-head b { font: 400 18px/1 var(--sd-display); letter-spacing: .02em; color: var(--fg-frost); }
.fm-head button { border-color: #2C3A5C; background: var(--fg-tile); color: var(--fg-frost); }
.fm-stage { background: radial-gradient(ellipse at 50% 42%, #22305A 0%, #0F1A2E 62%, #0A111B 100%); }
.fm-hint { color: #7D89A8; font-family: var(--sd-cond); font-weight: 700; }
.fm-actions button { border: 1px solid #2C3A5C; border-radius: 999px; background: var(--fg-tile); color: #A8B4D0; }
.fm-actions button.on { background: var(--fg-gold); border-color: var(--fg-gold); color: var(--fg-navy); }

/* ------------------------------------------------------------------ the Telegram / TON layer (ton-app.css) */
#tg-dock .tg-pill { border-radius: 999px; padding: 5px 10px; font-family: var(--sd-cond); font-weight: 700; letter-spacing: .06em; }
#tg-panel .tg-sheet, #social-panel .soc-sheet { border-radius: var(--fg-r-card); }
#tg-panel .tg-btn, #social-panel .soc-btn { border: 0; border-radius: var(--fg-r-btn); background: var(--fg-gold-fill); color: var(--fg-navy);
  box-shadow: 2px 3px 0 var(--fg-rivet); font-family: var(--sd-display); font-weight: 400; letter-spacing: .02em; }
#tg-panel .tg-btn:active, #social-panel .soc-btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 var(--fg-rivet); }
/* secondary: frost outline */
#tg-panel .tg-openbot { border: 1.5px solid #EEF3FFcc; border-radius: var(--fg-r-btn); background: transparent; color: var(--fg-frost); font-family: var(--sd-display); font-weight: 400; letter-spacing: .02em; }
#tg-toast { border-radius: 999px; }
#rotate-hint { background: var(--fg-ground); }
#rotate-hint b { letter-spacing: .02em; }
body.sd .sk-shop-tag { color: var(--sd-muted) !important; }
body.sd .sk-shop-card.featured .sk-shop-tag { color: var(--fg-gold) !important; }

/* ------------------------------------------------------------------ wallet */
body.sd .sk-wstate { background: var(--fg-steel); border: 1px solid #26324D; border-radius: var(--fg-r-btn); }
body.sd .sk-wstate b { font: 700 11px/1.2 var(--sd-cond); letter-spacing: .12em; color: var(--fg-frost); }
body.sd .sk-wstate span { font-family: var(--sd-body); color: var(--sd-muted); }
body.sd .sk-frayid { background: var(--fg-navy); border: 1px solid #26324D; border-radius: var(--fg-r-btn); }
body.sd .sk-frayid span { font: 700 8px/1 var(--sd-cond); letter-spacing: .14em; color: var(--sd-dim); }
body.sd .sk-frayid b { font: 700 13px/1 var(--sd-cond); letter-spacing: .08em; color: var(--fg-gold); }
body.sd .sk-frayid button { background: var(--fg-tile); border: 1px solid #2C3A5C; color: var(--fg-frost); font: 700 8px/1 var(--sd-cond); letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; }
/* FRAY status (before the token launch): gold, the brand's own colour */
.sd-fraystat { border-color: #F6A83B88 !important; background: linear-gradient(90deg, #F6A83B1f, #121A2Bcc) !important; border-radius: var(--fg-r-btn) !important; }

/* ------------------------------------------------------------------ settings controls */
body.sd #settings .row { color: var(--fg-frost); }
body.sd #settings .seg button { color: var(--sd-muted) !important; background: var(--fg-tile) !important; border-color: #2C3A5C !important; }
body.sd #settings .row input[type=checkbox] { flex: none; background: var(--fg-navy); border: 1px solid #2C3A5C; border-radius: 6px; accent-color: var(--fg-gold) !important; }
body.sd #settings .row input[type=checkbox]:checked { background: var(--fg-gold-fill); border-color: var(--fg-gold); }
body.sd #settings .row input[type=checkbox]:checked:after { color: var(--fg-navy); }
body.sd #settings .row input[type=range] { accent-color: var(--fg-gold) !important; background: linear-gradient(90deg, #D68029, #F6A83B); border-radius: 999px; }
body.sd #settings .row input[type=range]::-webkit-slider-thumb { background: var(--fg-goldlight); border: 2px solid var(--fg-navy); }
body.sd #settings .row input[type=range]::-moz-range-thumb { background: var(--fg-goldlight); border: 2px solid var(--fg-navy); }
body.sd #settings #time-label { color: var(--fg-frost); }
/* secondary buttons: frost outline */
body.sd .ghost-btn { border: 1.5px solid #EEF3FFb3; border-radius: var(--fg-r-btn); background: transparent; color: var(--fg-frost); font-family: var(--sd-display); font-weight: 400; letter-spacing: .02em; }
body.sd .ghost-btn:hover, body.sd .ghost-btn:active { background: #EEF3FF14; color: var(--fg-frost); }
body.sd .sk-bar { border-color: #26324D; }
#loading.done .fg-rivets b { animation: none; }

/* ------------------------------------------------------------------ the heroes sheet: Rubik is wider than the old
   condensed type, so the info column can run longer than the sheet: its rows keep their height (the lore line
   collapsed to nothing in a shrinking flex column) and the column scrolls with the fade it already has */
.sd-hs .inf > * { flex-shrink: 0; }
.sd-hs .sd-heroc .sk-muted { font-size: 11px; line-height: 1.3; }

/* ------------------------------------------------------------------ the fight picker: one line per mode */
body.sd #sd-picker .sk-mode { letter-spacing: .01em !important; }
body.sd #sd-picker .sk-mode > span:not(.fee) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sd #sd-picker .sk-mode .fee .fw { font-style: normal; }
@media (max-width: 760px) {
  body.sd #sd-picker .sk-mode { font-size: 11.5px !important; gap: 8px; }
  body.sd #sd-picker .sk-mode .fee .fw { display: none; }   /* "⚡1" on small phones */
}

/* ------------------------------------------------------------------ 2.11 · hit feedback */
/* damage numbers add up on one target and grow with the amount (fray-feel.js) */
.floater.dmg, .floater.dmg-self, .floater.heal { font-size: 21px; }
.floater.big { font-size: 28px; }
.floater.huge { font-size: 36px; }
.floater.takedown { font-family: var(--sd-display); font-size: 17px; letter-spacing: .03em; color: var(--fg-gold); }
body.sd #settings #sk-sndseg { margin-top: 6px; }

/* ------------------------------------------------------------------ 2.11 · guided training (first session) */
#sk-guide { display: none; position: fixed; z-index: 60; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(380px, 56vw); padding: 10px 14px 12px; border-radius: var(--fg-r-card); background: #121A2Bf2; border: 1px solid #2C3A5C; color: var(--fg-frost);
  box-shadow: 0 10px 30px #0A111B80; pointer-events: auto; }
#sk-guide.on { display: block; }
#sk-guide .gh { display: flex; align-items: center; justify-content: space-between; }
#sk-guide .gs { font: 700 9px/1 var(--sd-cond); letter-spacing: .16em; color: var(--fg-gold); }
#sk-guide .gx { border: 0; background: transparent; color: var(--sd-dim); font: 700 9px/1 var(--sd-cond); letter-spacing: .14em; padding: 4px 0 4px 12px; cursor: pointer; }
#sk-guide .gt { display: block; margin-top: 6px; font: 400 17px/1.05 var(--sd-display); letter-spacing: .01em; }
#sk-guide .gp { margin: 5px 0 0; font: 500 12px/1.35 var(--sd-body); color: var(--sd-muted); }
#sk-guide .gc { color: var(--fg-volt); font-weight: 700; }
#sk-guide .gb { display: block; height: 5px; margin-top: 9px; border-radius: 999px; background: var(--fg-tile); overflow: hidden; text-decoration: none; }
#sk-guide .gb i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--fg-gold-fill); transition: width .2s ease-out; }
#sk-guide.done { text-align: center; padding: 14px 16px; }
#sk-guide.done .gt { color: var(--fg-gold); text-shadow: var(--fg-edge); font-size: 20px; margin-top: 0; }
#sk-guide .ga { display: flex; gap: 10px; justify-content: center; margin-top: 11px; }
#sk-guide .ga .sk-btn { flex: 1; min-height: 38px; }
/* the control of the step pulses in gold; the mode pills make room for the panel */
body.guide-on #topbar, body.guide-on #sd-sun, body.guide-on #sd-gas { display: none !important; }
body.guide-move #stick-move, body.guide-fire #stick-aim, body.guide-super #super { animation: fg-guide 1.1s ease-in-out infinite; border-radius: 50%; }
@keyframes fg-guide { 0%, 100% { box-shadow: 0 0 0 0 #F6A83B00; } 50% { box-shadow: 0 0 0 9px #F6A83B8c; } }
body.reduce-motion.guide-move #stick-move, body.reduce-motion.guide-fire #stick-aim, body.reduce-motion.guide-super #super { animation: none; box-shadow: 0 0 0 5px #F6A83B8c; }
