/* «Стиль»: the looks a player buys for the profile — the picture behind it, the nickname, the avatar frame, the
   avatar itself — and the badge in the top. Rebuilt 25.11.2026 after the owner («стили получились полное говно ...
   больше красивых цветов, градиент неон, эффекты крови, аватарок кастомных, фонов»): his painted backgrounds,
   frames and avatars (design/style), and nicknames that move. The list of looks is STYLE_PRESETS in server.js. */

/* ── the picture behind the profile (data-cover on <html>, set by js/profile.js): the painting as it is, no tint.
   html[...] outweighs the tint of profile.css, which is linked later. ── */
html[data-cover] body::before { background: var(--cover, none) center 32% / cover no-repeat; background-blend-mode: normal; }
html[data-cover="lanterns"] { --cover: url(/media/style/bg-lanterns.webp?v=2); }
html[data-cover="bloodmoon"] { --cover: url(/media/style/bg-bloodmoon.webp?v=2); }
html[data-cover="jade"] { --cover: url(/media/style/bg-jade.webp?v=2); }
html[data-cover="dragon"] { --cover: url(/media/style/bg-dragon.webp?v=2); }
html[data-cover="sakura"] { --cover: url(/media/style/bg-sakura.webp?v=2); }
html[data-cover="ink"] { --cover: url(/media/style/bg-ink.webp?v=2); }
/* wide and dense screens: the paintings enlarged by Real-ESRGAN to 2560 px (design/cn/upscale_bgs.py) */
@media (min-width: 1700px), (min-width: 1100px) and (min-resolution: 1.3dppx) {
    html[data-cover="lanterns"] { --cover: url(/media/style/bg-lanterns-2k.webp?v=1); }
    html[data-cover="bloodmoon"] { --cover: url(/media/style/bg-bloodmoon-2k.webp?v=1); }
    html[data-cover="jade"] { --cover: url(/media/style/bg-jade-2k.webp?v=1); }
    html[data-cover="dragon"] { --cover: url(/media/style/bg-dragon-2k.webp?v=1); }
    html[data-cover="sakura"] { --cover: url(/media/style/bg-sakura-2k.webp?v=1); }
    html[data-cover="ink"] { --cover: url(/media/style/bg-ink-2k.webp?v=1); }
}

/* ── nicknames. New since 26.11.2026: the owner («мне очень не нравятся варианты текстов») chose them on a test page.
   Every effect has its own material, and most of them their own font with Russian letters (web/fonts, Google Fonts,
   OFL): cast gold, running wet blood, red lacquer, frosted ice with cracks, cut jade, a light hand in petal pink, ink
   on rice paper. Neon, fire, the northern lights and a broken screen were here too; the owner did not like them and
   the red lacquer took their place the same day (STYLE_OLD of server.js shows them as it). The SVG filters the
   effects use (#st-f-…) are put on every page by js/layout.js; it also gives the big nicknames (the profile, the page
   of «Стиль»: .st-big) a little life — petals past sakura, sparkles on ice. With animations turned off in the system
   nothing moves (site.css stops it), and every effect still reads as a picture. ── */
[class*="st-nick-"] { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-nick-gold, .st-nick-blood, .st-nick-lacquer, .st-nick-ice, .st-nick-jade {
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* the colour of a clipped effect is painted only inside its box, and the tails of a script or the drips of blood
   reach below it: a little room under the letters (it does not move the lines of a sentence) */
.st-nick-blood, .st-nick-jade { padding-bottom: 0.16em; }
/* the fonts of the effects have one weight and no italic: drawn as they are, the height of their small letters
   brought to that of Exo 2, so a script or a wide font is not smaller or larger than the others */
.st-nick-blood, .st-nick-lacquer, .st-nick-jade, .st-nick-sakura, .st-nick-ink {
    font-style: normal; font-synthesis: none; font-size-adjust: 0.52;
}
/* now and then a narrow light (the first of the two pictures) runs across gold and ice */
@keyframes st-glint { 0%, 60% { background-position: 130% 0, 0 0; } 88%, 100% { background-position: -30% 0, 0 0; } }

/* gold: cast metal — bands of light and shade like a polished bar, a bevel lit from the upper left, a dark rim */
.st-nick-gold {
    background-image:
        linear-gradient(105deg, transparent 44%, rgba(255, 253, 238, 0.95) 50%, transparent 56%),
        linear-gradient(180deg, #fff8dc 0%, #ffe39a 18%, #e3aa3c 38%, #8a520c 50%, #d99b33 57%, #ffe9a8 74%, #f2c763 86%, #9a6214 100%);
    background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 130% 0, 0 0; background-color: #e7a136;
    filter: url(#st-f-gold); animation: st-glint 5.5s ease-in-out infinite;
}
/* blood: letters that run by themselves (Rubik Wet Paint), wet gloss, a dark shadow, and now and then a drop falls */
.st-nick-blood {
    position: relative; display: inline-block; font-family: 'Rubik Wet Paint', var(--wide); font-weight: 400; letter-spacing: 0.02em;
    background-image: linear-gradient(180deg, #ff5d50 0%, #d3101c 36%, #8d0610 68%, #4c0006 100%); background-color: #c3121b;
    filter: url(#st-f-wet);
}
.st-nick-blood::after {
    content: ""; position: absolute; left: 58%; top: 80%; width: 0.13em; height: 0.18em; pointer-events: none; opacity: 0;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 38% 32%, #ff8a80, #b0000f 55%, #4c0006);
    animation: st-drop 6s ease-in infinite;
}
@keyframes st-drop {
    0%, 42% { transform: translateY(0) scale(0.2); opacity: 0; }
    52% { transform: translateY(0) scale(1); opacity: 1; }
    64% { transform: translateY(0.06em) scale(0.95, 1.15); opacity: 1; }
    92% { transform: translateY(1.3em) scale(0.85, 1.25); opacity: 0; }
    100% { opacity: 0; }
}
/* red lacquer, the one of the second choice the owner took: the red lacquer of the menu tiles — deep red, a glossy
   light on top, a thin gold rim; the face of the menu labels (Philosopher) */
.st-nick-lacquer {
    font-family: 'Philosopher', var(--sans); font-weight: 700; letter-spacing: 0.02em;
    background-image: linear-gradient(180deg, #ff9a86 0%, #ee3a40 20%, #b8121f 52%, #6e0811 100%); background-color: #c3121b;
    filter: url(#st-f-lacquer);
}
/* ice: frosted letters with white cracks inside, a dark-blue rim, a cold glow; a glint, and sparkles on big ones */
.st-nick-ice {
    background-image:
        linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, 0.95) 50%, transparent 56%),
        linear-gradient(180deg, #f6fdff 0%, #cdf0ff 28%, #86cff5 52%, #3d8ed1 76%, #c9edff 100%);
    background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 130% 0, 0 0; background-color: #7cc7ff;
    filter: url(#st-f-frost); animation: st-glint 6.5s ease-in-out infinite;
}
/* jade: cut stone (Rubik Gemstones has facets), green with milky veins and a glassy gloss */
.st-nick-jade {
    font-family: 'Rubik Gemstones', var(--wide); font-weight: 400; letter-spacing: 0.02em; background-color: #1f9c66;
    background-image:
        radial-gradient(ellipse 22% 70% at 22% 30%, rgba(225, 255, 238, 0.55), transparent 70%),
        radial-gradient(ellipse 30% 60% at 68% 72%, rgba(2, 50, 28, 0.6), transparent 70%),
        linear-gradient(120deg, #07553a 0%, #1f9c66 30%, #93ecc2 48%, #2aa874 60%, #0b6a43 80%, #043d26 100%);
    filter: url(#st-f-gem);
}
/* sakura: a light hand (Marck Script) in petal pink with a deeper pink under it; petals fall past big ones. Plain
   colour, not a clipped gradient: the lines of this script are so tall that a gradient lost the tails below */
.st-nick-sakura {
    font-family: 'Marck Script', cursive; font-weight: 400; text-transform: none; letter-spacing: 0.01em;
    /* its small letters a size down from the others: brought to the same height, this script with its tall capitals
       and loops looked a size larger than every other name (the owner: «сакуру тоже уменьши», 26.11.2026) */
    font-size-adjust: 0.38;
    color: #ffc6da; text-shadow: 0 0.04em 0 #e4477f;
    filter: drop-shadow(0 0 0.5px #4a0a1f) drop-shadow(0 2px 1px rgba(50, 0, 18, 0.75)) drop-shadow(0 0 10px rgba(255, 120, 170, 0.45));
}
/* ink: handwriting (Caveat) in black ink, a little run into a strip of rice paper with torn edges and a red seal */
.st-nick-ink {
    position: relative; display: inline-block; font-family: 'Caveat', cursive; font-weight: 700; text-transform: none; color: #160f0d;
    text-shadow: none; padding: 0.06em 1.45em 0.1em 0.42em; line-height: 1.1; border-radius: 2px;
    background: radial-gradient(rgba(120, 90, 50, 0.08) 1px, transparent 1px) 0 0 / 5px 5px, linear-gradient(180deg, #f3e8d0, #e6d4b2);
    box-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.4), 0 0.3em 0.7em rgba(0, 0, 0, 0.5); filter: url(#st-f-paper);
}
.st-nick-ink::after {
    content: "印"; position: absolute; right: 0.3em; top: 50%; translate: 0 -50%; rotate: -5deg; display: grid; place-items: center;
    width: 0.9em; height: 0.9em; font: 700 0.6em/1 serif; color: #fff0e6; background: #b3121b; border-radius: 0.1em;
    box-shadow: inset 0 0 0 0.06em rgba(255, 240, 230, 0.6);
}
/* The owner's own (26.11.2026, his alone: STYLE_OWNER of server.js): his nickname on one of the three black plates
   he drew in ChatGPT — cracked obsidian with bone claws and chains, scratched iron with barbed wire, black lacquer
   with blood and crosses (design/style/cut_plates.py). The ends of a plate stay as drawn, its middle stretches to the
   length of the name (border-image; the numbers are pixels of the 150 px high picture: where each end ends). The
   plate is 2em high, its ends as wide as they are drawn at that height; the letters bone-white, in the middle of the
   body of the plate. It keeps its ends in whatever box it stands: it never shrinks below its two ends and a little of
   the name (in the narrow menu of the account it was squeezed, its ends met and the name ran out of it), and a name
   too long for the box is cut with «…» inside the plate. It takes its full height wherever it stands (reaching out of
   its line, it ran into the rank under it in the menu and would be cut by the name box of the chat). */
.st-nick-obsidian, .st-nick-barbed, .st-nick-crosses {
    --h: 2em; display: inline-block; box-sizing: border-box; height: var(--h); vertical-align: middle;
    min-width: calc(var(--l) + var(--r) + 2.4em); max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    border-style: solid; border-color: transparent; border-width: 0 var(--r) 0 var(--l); padding: var(--t) 0.12em 0;
    font-family: var(--wide); font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1;
    white-space: nowrap; color: #ece4d8; text-shadow: 0 0.05em 0.02em #000, 0 0 0.35em rgba(200, 18, 28, 0.55);
}
.st-nick-obsidian { --l: calc(var(--h) * 215 / 150); --r: calc(var(--h) * 210 / 150); --t: 0.36em; border-image: url(/media/style/plate-obsidian.webp?v=1) 0 210 0 215 fill / 0 var(--r) 0 var(--l) stretch; }
.st-nick-barbed { --l: calc(var(--h) * 210 / 150); --r: calc(var(--h) * 210 / 150); --t: 0.45em; border-image: url(/media/style/plate-barbed.webp?v=1) 0 210 0 210 fill / 0 var(--r) 0 var(--l) stretch; text-shadow: 0 0.05em 0.02em #000, 0 0 0.35em rgba(230, 230, 240, 0.3); }
.st-nick-crosses { --l: calc(var(--h) * 262 / 150); --r: calc(var(--h) * 250 / 150); --t: 0.55em; border-image: url(/media/style/plate-crosses.webp?v=1) 0 250 0 262 fill / 0 var(--r) 0 var(--l) stretch; }
/* a big name (the profile, the fitting room: .st-big) is set at half its size on its plate, so that the plate is about
   as tall as the letters of the other big nicknames (the owner: «слишком большие по сравнению с другими», then «ещё
   уменьшить немного, чтобы соответствовало, как красного лака»), and takes its full height, so nothing under it is
   covered */
:is(.st-nick-obsidian, .st-nick-barbed, .st-nick-crosses).st-big { font-size: 0.5em; margin-block: 0.08em; }
/* in a tile of the pickers and in the menu of the account the plate is smaller, so its ends fit with the name */
.st-tile .st-sample :is(.st-nick-obsidian, .st-nick-barbed, .st-nick-crosses) { font-size: 0.7em; }
.um-who :is(.st-nick-obsidian, .st-nick-barbed, .st-nick-crosses) { font-size: 0.6em; }
/* and the mask of the rank beside it gives up a little of its room, so the widest plate (crosses) keeps the whole name */
.um-head:has(.um-who :is(.st-nick-obsidian, .st-nick-barbed, .st-nick-crosses)) .um-mask { width: 62px; height: 40px; }
/* the mark on a tile of the owner's own looks: nobody else sees them in the list */
.st-tile .st-mine { position: absolute; left: 7px; top: 6px; z-index: 2; padding: 1px 6px; border-radius: 5px; font: 700 10px/1.5 var(--sans); letter-spacing: 0.02em; color: #140608; background: #ece4d8; }
/* the life of big nicknames, put in by js/layout.js */
.st-big:is(.st-nick-sakura, .st-nick-ice) { position: relative; width: fit-content; max-width: 100%; }
.st-life { position: absolute; pointer-events: none; opacity: 0; }
.st-petal { left: var(--x); top: -0.3em; width: 0.24em; height: 0.17em; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #fff0f6, #ff96bb); box-shadow: 0 0 4px rgba(255, 150, 190, 0.5); animation: st-fall var(--d) linear var(--delay) infinite; }
@keyframes st-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12% { opacity: 0.95; } 100% { transform: translate(var(--dx), 1.7em) rotate(340deg); opacity: 0; } }
.st-spark { left: var(--x); top: var(--y); width: 0.2em; height: 0.2em; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 3px #9fe0ff); animation: st-twinkle var(--d) ease-in-out var(--delay) infinite; }
@keyframes st-twinkle { 0%, 100% { transform: scale(0.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* ── the frame: a picture of the owner's (design/style/cut_style.py) over the round avatar; in every frame the
   hole is 0.52 of the picture, so the picture is the avatar / 0.52, centred on it ── */
.st-ava { position: relative; display: inline-grid; place-items: center; flex: none; }
.st-ava > :first-child { grid-area: 1 / 1; }
.st-frame { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(100% / 0.52); max-width: none; height: auto; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }

/* ── the badge next to the name in the top, on the profile and on the page of «Стиль»: one of six pictures of the
   owner's, the player's pick (26.11.2026; a star drawn by the site before). --st-badge is its size where it stands ── */
.st-badge { display: inline-block; width: var(--st-badge, 20px); height: var(--st-badge, 20px); margin-left: 6px; vertical-align: middle; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.pf-id h1 .st-badge { --st-badge: clamp(30px, 3.4vw, 44px); margin-left: 12px; vertical-align: -0.04em; }
.st-tile .st-badge-big, .st-tile .st-badge-none { display: block; width: 64px; height: 64px; margin: 10px 0 6px; }
.st-tile .st-badge-big { object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.st-tile .st-badge-none { display: grid; place-items: center; border-radius: 12px; background: repeating-linear-gradient(135deg, #160a0b 0 8px, #1d0d0f 8px 16px); color: var(--muted); }

/* ── the editor of the profile and the card of the shop: a tile for every look ── */
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-pick.is-round { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.st-tile {
    position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0; padding: 10px 8px 9px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(18, 8, 9, 0.7); color: var(--soft); font: 600 13px/1.25 var(--sans);
    text-align: center; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 150ms var(--ease-out, ease-out);
}
@media (hover: hover) and (pointer: fine) { .st-tile:hover { border-color: rgba(231, 161, 54, 0.55); background: rgba(42, 18, 21, 0.9); } }
.st-tile:active { transform: scale(0.98); }
.st-tile:focus-visible { outline: 2px solid #e7a136; outline-offset: 2px; }
.st-tile.is-on { border-color: rgba(255, 214, 130, 0.95); color: #fff; background: rgba(90, 18, 18, 0.75); box-shadow: 0 0 0 1px rgba(255, 214, 130, 0.4), 0 8px 22px -12px rgba(255, 150, 60, 0.6); }
.st-tile.is-on::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; z-index: 2;
    background: #e7a136 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%231a0806' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.st-tile .st-cover { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: #120809; }
.st-tile .st-none { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: repeating-linear-gradient(135deg, #160a0b 0 8px, #1d0d0f 8px 16px); color: var(--muted); }
.st-tile .st-sample { display: grid; place-items: center; width: 100%; min-height: 52px; padding: 4px 2px 6px; font: italic 900 19px/1.2 var(--wide); text-transform: uppercase; overflow: hidden; }
.st-tile .st-ava img:first-child, .st-tile .st-face { display: block; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #120809; }
.st-tile .st-ava { margin: 22px 0 18px; }
.st-tile .st-face { width: 72px; height: 72px; }
.st-tile.is-steam .st-face { filter: saturate(0.85); }

/* ── the preview in the offer of the profile and in the card of the shop: a little profile — an avatar of the set
   in the dragon frame and a shining name on the blood moon — and three more backgrounds under it ── */
.st-teaser { display: grid; gap: 8px; margin: 6px 0 14px; }
.st-teaser-me {
    order: -1; display: flex; align-items: center; gap: 22px; min-height: 112px; padding: 10px 18px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(90deg, rgba(13, 9, 9, 0.82), rgba(13, 9, 9, 0.25) 75%), url(/media/style/bg-bloodmoon.webp?v=2) 70% 40% / cover;
    box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.3);
}
.st-teaser-me .st-ava { margin: 14px 16px; }
.st-teaser-me .st-face { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.st-teaser-me b { min-width: 0; font: italic 900 clamp(18px, 2.2vw, 24px)/1.15 var(--wide); text-transform: uppercase; overflow-wrap: anywhere; }
.st-teaser-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-teaser-covers .st-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.25); }
.style-holds { list-style: none; display: grid; gap: 5px; margin: 0 0 14px; padding: 0; color: var(--soft); font-size: 14px; }
.style-holds li { display: flex; gap: 8px; }
.style-holds li::before { content: "✦"; flex: none; color: #e7a136; }

/* the profile header: the frame reaches past the avatar, so the avatar keeps a little room around it */
.pf-ava-box { margin: clamp(22px, 2.6vw, 38px); }

/* ── a switch, for the character of «Стиль» in game (26.11.2026: off until the player turns it on), in the editor of
   the profile and on the page of «Стиль»: the box itself is hidden, its track and knob are drawn ── */
.st-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14.5px; line-height: 1.35; cursor: pointer; }
.st-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.st-switch i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(60, 22, 26, 0.9); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 160ms ease, box-shadow 160ms ease; }
.st-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9b8b4; transition: transform 180ms var(--ease-out, ease-out), background-color 160ms ease; }
.st-switch input:checked + i { background: #b8861f; box-shadow: inset 0 0 0 1px rgba(255, 214, 130, 0.75); }
.st-switch input:checked + i::after { transform: translateX(18px); background: #fff4d6; }
.st-switch input:focus-visible + i { outline: 2px solid #e7a136; outline-offset: 2px; }
.st-switch input:disabled + i { opacity: 0.6; }
.st-switch b { font: 400 1.3em/1 "KaiTi", "STKaiti", "Kaiti SC", "SimSun", serif; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.st-switch-note { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .st-switch i, .st-switch i::after { transition: none; } }

/* ── the groups of looks as tabs, one group of tiles at a time: the page of «Стиль» and, since 26.11.2026, the editor
   of the profile too (the owner: «в профиле в редактировании стиля все по группам, как во вкладке покупки стиля»).
   They wrap to a second row rather than scroll, so no group hides past the edge of a phone ── */
.st-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.st-tabs button {
    display: inline-flex; flex: none; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: rgba(18, 8, 9, 0.78); color: var(--soft); font: 600 14.5px/1 var(--sans); white-space: nowrap; cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.st-tabs button small { color: var(--muted); font: 700 12.5px/1 var(--num); }
.st-tabs button[aria-selected="true"] { border-color: rgba(255, 214, 130, 0.9); background: rgba(90, 18, 18, 0.85); color: #fff; }
.st-tabs button[aria-selected="true"] small { color: var(--cn-gold-hi, #ffe2a0); }
@media (hover: hover) and (pointer: fine) { .st-tabs button:hover { border-color: rgba(231, 161, 54, 0.7); color: #fff; } }
.st-tabs button:active { transform: scale(0.97); }
.st-tabs button:focus-visible { outline: 2px solid #e7a136; outline-offset: 2px; }
.style-edit .st-tabs { margin: 16px 0 12px; }
@media (max-width: 640px) {
    .st-tabs { gap: 5px; }
    .st-tabs button { gap: 5px; height: 36px; padding: 0 11px; font-size: 14px; }
    .st-tabs button small { font-size: 11.5px; }
}

/* ── the menu of the player (js/layout.js) with «Стиль»: the painting behind the head, the avatar in its frame (it keeps
   room round it, the frame reaches past the avatar), the badge after the name ── */
.um-head.has-cover { background: linear-gradient(90deg, rgba(13, 9, 9, 0.62), rgba(13, 9, 9, 0.12) 72%), linear-gradient(180deg, rgba(13, 9, 9, 0) 40%, var(--panel) 98%), var(--um-cover) center 40% / cover no-repeat; }
.um-ava-box { margin: 12px; }
.um-head.has-style .um-mask { width: 86px; height: 50px; }
.um-head.has-style .um-who b { font-size: 18px; }
.um-ava-box .um-ava { display: block; border: 0; }
.um-who b { display: flex; align-items: center; gap: 7px; }
.um-who b > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.um-who b .st-badge { --st-badge: 20px; margin: 0; }
