:root {
    --bg: #090612;
    --panel: #151022;
    --panel-2: #211536;
    --text: #f5f7fb;
    --muted: #b9a8d6;
    --line: rgba(218, 178, 255, .18);
    --accent: #c77dff;
    --accent-2: #7b2fff;
    --hot: #ff4fd8;
    --cyan: #55f1ff;
    --glow: 0 0 28px rgba(199, 125, 255, .28);
}

* {
    box-sizing: border-box;
}

html,
body {
    overscroll-behavior-y: contain;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% -2%, rgba(199, 125, 255, .32), transparent 25%),
        radial-gradient(circle at 86% 10%, rgba(255, 79, 216, .22), transparent 24%),
        radial-gradient(circle at 50% 105%, rgba(85, 241, 255, .12), transparent 28%),
        linear-gradient(180deg, #12091f 0%, var(--bg) 52%, #05030a 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
    border: 0;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 16px 14px 30px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
}

.balance {
    position: relative;
    min-width: 154px;
    padding: 10px 48px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(199, 125, 255, .12), rgba(85, 241, 255, .05));
    box-shadow: var(--glow);
    text-align: right;
}

.balance-add-button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd147, var(--hot));
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 18px rgba(255, 209, 71, .34);
}

.balance-add-button:active {
    transform: translateY(-50%) scale(.96);
}

.balance span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.balance strong {
    display: block;
    margin-top: 2px;
    font-size: 17px;
    white-space: nowrap;
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 14px;
}

.tab {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
    font-weight: 800;
}

.tab.active {
    border-color: rgba(199, 125, 255, .65);
    background: linear-gradient(135deg, var(--accent), var(--hot));
    color: #fff;
    box-shadow: 0 0 22px rgba(199, 125, 255, .35);
}

.view.hidden,
.hidden {
    display: none;
}

.welcome-panel,
.topup-panel,
.quest-panel,
.casino-panel,
.inventory-panel,
.case-card,
.roulette-panel,
.result-panel,
.rewards-panel,
.pet-panel,
.profile-panel,
.user-detail {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(199, 125, 255, .08), rgba(85, 241, 255, .025)),
        rgba(21, 16, 34, .92);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

.welcome-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px;
    padding: 16px;
}

.welcome-panel p:not(.eyebrow) {
    max-width: 640px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.topup-panel {
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.topup-panel::before {
    content: "";
    position: absolute;
    inset: -30% 52% auto -18%;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 71, .24), transparent 68%);
    pointer-events: none;
}

.topup-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.topup-hero p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.topup-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.topup-package {
    min-height: 92px;
    padding: 12px;
    border: 1px solid rgba(255, 209, 71, .28);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 209, 71, .18), transparent 42%),
        rgba(255, 255, 255, .055);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(255, 209, 71, .04);
}

.topup-package span,
.topup-package strong {
    display: block;
}

.topup-package span {
    font-size: 20px;
    font-weight: 900;
}

.topup-package strong {
    margin-top: 10px;
    color: #ffe082;
    font-size: 14px;
}

.topup-package:disabled {
    opacity: .62;
    cursor: wait;
}

.topup-empty {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}

.quest-panel {
    padding: 16px;
}

.quest-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quest-progress-head strong {
    display: inline-grid;
    place-items: center;
    min-width: 72px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 71, .28);
    background: rgba(255, 209, 71, .08);
    color: #ffe082;
    font-size: 14px;
}

.quest-star-bar {
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.quest-star-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd147, var(--hot), var(--accent));
    box-shadow: 0 0 18px rgba(255, 209, 71, .3);
    transition: width .28s ease;
}

.quest-reward-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.quest-reward {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(255, 209, 71, .24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 209, 71, .15), transparent 40%),
        rgba(255, 255, 255, .045);
    color: var(--text);
    text-align: left;
}

.quest-reward span {
    font-size: 26px;
}

.quest-reward strong {
    min-width: 0;
    font-size: 14px;
}

.quest-reward small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.quest-reward em {
    color: #ffe082;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.quest-reward.claimable {
    cursor: pointer;
    border-color: rgba(255, 209, 71, .55);
    box-shadow: 0 0 20px rgba(255, 209, 71, .15);
}

.quest-reward.claimed {
    border-color: rgba(82, 255, 174, .42);
    background: rgba(46, 213, 115, .08);
}

.quest-reward:disabled {
    cursor: default;
}

.quest-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.quest-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 0;
}

.quest-section-title h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
}

.quest-section-title.with-action {
    margin-top: 8px;
}

.anon-bot-link {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(199, 125, 255, .42);
    border-radius: 8px;
    background: rgba(199, 125, 255, .13);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.quest-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(199, 125, 255, .08), rgba(85, 241, 255, .025)),
        rgba(255, 255, 255, .04);
}

.quest-card.completed {
    border-color: rgba(82, 255, 174, .35);
    background:
        radial-gradient(circle at 0% 0%, rgba(82, 255, 174, .1), transparent 34%),
        rgba(255, 255, 255, .045);
}

.quest-emoji {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: 24px;
}

.quest-copy {
    min-width: 0;
}

.quest-copy h3 {
    margin: 0;
    font-size: 16px;
}

.quest-copy p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.quest-stars {
    display: flex;
    gap: 3px;
    margin-top: 7px;
}

.quest-stars span {
    filter: grayscale(1);
    opacity: .34;
    transform: scale(.92);
}

.quest-stars span.active {
    filter: none;
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 209, 71, .42);
    transform: scale(1);
}

.quest-progress {
    align-self: start;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: 12px;
    white-space: nowrap;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.quick-grid article {
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.quick-grid strong,
.quick-grid span {
    display: block;
}

.quick-grid span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading.compact {
    margin-bottom: 10px;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.case-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
}

.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
}

.accent-starter::before {
    background: linear-gradient(135deg, #31d0aa, transparent 55%);
}

.accent-premium::before {
    background: linear-gradient(135deg, #7aa7ff, transparent 55%);
}

.accent-imperial::before {
    background: linear-gradient(135deg, #ffd147, transparent 55%);
}

.case-main {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
}

.case-main p,
#detailTagline {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.case-main strong,
#detailPrice {
    white-space: nowrap;
    color: #ffe082;
}

.case-emoji {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 26px;
}

.primary-button,
.open-button,
.secondary-button,
.ghost-button {
    min-height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.primary-button,
.open-button {
    background: linear-gradient(135deg, var(--accent), var(--hot));
    color: #fff;
    box-shadow: 0 0 20px rgba(199, 125, 255, .25);
}

.open-button {
    position: relative;
    width: 100%;
    margin-top: 14px;
}

.secondary-button {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(199, 125, 255, .3);
    background: rgba(199, 125, 255, .12);
    color: var(--text);
}

.ghost-button {
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

.primary-button.is-disabled {
    opacity: .58;
    cursor: default;
    box-shadow: none;
}

.case-detail-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.roulette-panel {
    position: relative;
    overflow: hidden;
}

.marker {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .9);
}

.reel-viewport {
    overflow: hidden;
    padding: 18px 0;
}

.reel-track {
    display: flex;
    gap: 10px;
    min-height: 156px;
    padding-left: 50%;
    will-change: transform;
}

.prize-card {
    flex: 0 0 132px;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    text-align: center;
}

.prize-card.won {
    width: 180px;
    margin: 0 auto;
}

.prize-icon {
    font-size: 44px;
    line-height: 1;
}

.prize-card strong {
    font-size: 14px;
    line-height: 1.2;
}

.rarity-rare {
    box-shadow: inset 0 0 0 1px rgba(73, 162, 255, .8), 0 0 18px rgba(73, 162, 255, .32);
}

.rarity-epic {
    box-shadow: inset 0 0 0 1px rgba(178, 94, 255, .85), 0 0 20px rgba(178, 94, 255, .36);
}

.rarity-legendary {
    box-shadow: inset 0 0 0 1px rgba(255, 209, 71, .95), 0 0 23px rgba(255, 209, 71, .43);
}

.rarity-mythic {
    box-shadow: inset 0 0 0 1px rgba(255, 71, 87, .95), 0 0 26px rgba(255, 71, 87, .5);
}

.result-panel {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, .06);
}

.code-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #0b0d12;
    text-align: center;
}

.code-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.code-box strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    word-break: break-all;
}

.open-selected {
    width: 100%;
    margin-top: 12px;
}

.open-selected:disabled {
    opacity: .65;
    cursor: wait;
}

.rewards-panel {
    margin-top: 12px;
    padding: 12px;
}

.pet-panel {
    padding: 14px;
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.pet-panel > * {
    min-width: 0;
    max-width: 100%;
}

.pet-stage {
    --pet-accent: #31d0aa;
    --aura-core: rgba(49, 208, 170, .16);
    --aura-mid: rgba(199, 125, 255, .08);
    --aura-ring: rgba(255, 209, 71, .08);
    position: relative;
    min-height: 252px;
    min-width: 0;
    max-width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        radial-gradient(circle at 50% 31%, var(--aura-core), transparent 28%),
        radial-gradient(circle at 50% 32%, var(--aura-mid), transparent 47%),
        radial-gradient(circle at 50% 31%, var(--aura-ring), rgba(255, 255, 255, .03) 68%);
}

.pet-stage::before {
    content: "";
    position: absolute;
    inset: auto 10% 24px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    filter: blur(8px);
}

.pet-stage::after {
    content: "";
    position: absolute;
    inset: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pet-accent);
    border-radius: 8px;
    opacity: .35;
    pointer-events: none;
    z-index: 1;
}

.pet-stage::after {
    content: attr(data-aura);
    color: rgba(255, 255, 255, .22);
    font-size: clamp(18px, 6vw, 38px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 0 18px var(--pet-accent);
    white-space: normal;
    word-spacing: 18px;
}

.pet-creature {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(304px, 100%);
    max-width: 100%;
    min-width: 0;
    min-height: 190px;
    line-height: 1;
}

.aura-tier-0 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 16%, transparent);
    --aura-mid: rgba(199, 125, 255, .06);
    --aura-ring: rgba(255, 209, 71, .05);
}

.aura-tier-1 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 24%, transparent);
    --aura-mid: rgba(199, 125, 255, .09);
    --aura-ring: rgba(255, 209, 71, .07);
}

.aura-tier-2 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 32%, transparent);
    --aura-mid: rgba(199, 125, 255, .12);
    --aura-ring: rgba(255, 209, 71, .1);
}

.aura-tier-3 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 40%, transparent);
    --aura-mid: rgba(255, 79, 216, .15);
    --aura-ring: rgba(255, 209, 71, .14);
}

.aura-tier-4 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 48%, transparent);
    --aura-mid: rgba(255, 79, 216, .18);
    --aura-ring: rgba(85, 241, 255, .14);
}

.aura-tier-5 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 56%, transparent);
    --aura-mid: rgba(255, 209, 71, .2);
    --aura-ring: rgba(85, 241, 255, .18);
}

.aura-tier-6,
.aura-tier-7,
.aura-tier-8 {
    --aura-core: color-mix(in srgb, var(--pet-accent) 64%, transparent);
    --aura-mid: rgba(255, 209, 71, .24);
    --aura-ring: rgba(255, 79, 216, .22);
    box-shadow:
        inset 0 0 42px rgba(255, 209, 71, .08),
        0 0 28px rgba(199, 125, 255, .18);
}

.egg-state .pet-creature {
    width: min(230px, 88%);
    min-height: 182px;
}

.pet-svg {
    width: 100%;
    max-width: 270px;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .32));
}

.pet-image {
    display: block;
    width: 100%;
    max-height: 252px;
    object-fit: contain;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .34))
        drop-shadow(0 0 18px rgba(255, 91, 61, .32));
    transform-origin: 50% 82%;
}

.pet-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    z-index: 3;
    width: min(304px, 100%);
    max-width: 100%;
    min-width: 0;
    min-height: 248px;
    transform-origin: 50% 82%;
    animation: pet-image-rock 3.2s ease-in-out infinite;
}

.pet-image-parrot .pet-image {
    max-height: 248px;
}

.pet-image-pig .pet-image {
    max-height: 244px;
}

.pet-image-rhino .pet-image {
    max-height: 248px;
}

.parrot-layer-art,
.pig-layer-art,
.pig-full-art,
.pet-sleep-art,
.dragon-layer-art,
.rhino-full-art,
.rhino-layer-art,
.cat-layer-art {
    position: relative;
    z-index: 3;
    max-width: 100%;
    min-width: 0;
}

.parrot-layer-art {
    width: min(235px, 100%);
    aspect-ratio: 1520 / 2091;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .34))
        drop-shadow(0 0 18px rgba(255, 91, 61, .32));
}

.pig-layer-art {
    width: min(272px, 100%);
    aspect-ratio: 2197 / 2414;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(255, 122, 170, .22));
}

.pig-full-art {
    width: min(272px, 100%);
    aspect-ratio: 2197 / 2414;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(255, 122, 170, .22));
    transform-origin: 50% 78%;
    animation: pig-full-breathe 3.6s ease-in-out infinite;
}

.pet-sleep-art {
    --sleep-offset-y: 0px;
    width: min(292px, 100%);
    aspect-ratio: 1 / 1;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 20px rgba(157, 196, 255, .22));
    transform-origin: 50% 82%;
    animation: pet-sleep-breathe 4.8s ease-in-out infinite;
}

.pet-sleep-parrot {
    --sleep-offset-y: 4px;
    width: min(198px, 65%);
    aspect-ratio: 481 / 780;
    overflow: hidden;
}

.pet-sleep-parrot img {
    transform: scale(1.34);
    transform-origin: 50% 50%;
}

.pet-sleep-pig {
    width: min(292px, 100%);
}

.pet-sleep-dragon {
    width: min(292px, 100%);
}

.pet-sleep-rhino {
    width: min(292px, 100%);
}

.pet-sleep-cat {
    width: min(292px, 100%);
    aspect-ratio: 874 / 984;
}

.cat-layer-art {
    width: min(300px, 100%);
    aspect-ratio: 833 / 1004;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(154, 168, 201, .28));
}

.dragon-layer-art {
    width: min(320px, 100%);
    aspect-ratio: 816 / 992;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(255, 126, 34, .24));
}

.rhino-layer-art {
    width: min(328px, 100%);
    aspect-ratio: 833 / 1000;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(255, 176, 72, .2));
}

.rhino-full-art {
    width: min(270px, 100%);
    aspect-ratio: 2400 / 2820;
    filter:
        drop-shadow(0 18px 18px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(172, 200, 255, .2));
    overflow: visible;
}

.parrot-layer-art img,
.pig-layer-art img,
.pig-full-art img,
.pet-sleep-art img,
.dragon-layer-art img,
.rhino-full-art img,
.rhino-layer-art img,
.cat-layer-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.parrot-layer-body {
    transform-origin: 50% 78%;
    animation: parrot-body-breathe 3.45s ease-in-out infinite;
}

.pig-layer-body {
    transform-origin: 50% 78%;
    animation: pig-body-breathe 3.55s ease-in-out infinite;
}

.dragon-layer-body {
    transform-origin: 50% 58%;
    animation: dragon-body-breathe 3.75s ease-in-out infinite;
    z-index: 1;
}

.rhino-layer-body {
    transform-origin: 50% 57%;
    animation: rhino-body-breathe 3.85s ease-in-out infinite;
    z-index: 3;
}

.cat-layer-body {
    transform-origin: 50% 76%;
    animation: cat-body-breathe 3.5s ease-in-out infinite;
}

.cat-layer-head {
    transform-origin: 50% 58%;
    animation: cat-head-sway 4.3s ease-in-out infinite;
    z-index: 2;
}

.rhino-full-image {
    transform-origin: 50% 82%;
    animation: rhino-full-breathe 3.9s ease-in-out infinite;
}

.rhino-full-art::after {
    content: "";
    position: absolute;
    inset: 8% 18% 42% 18%;
    border-radius: 52% 48% 45% 55%;
    background: linear-gradient(112deg, transparent 0 42%, rgba(255, 255, 255, .16) 47%, transparent 55% 100%);
    filter: blur(.5px);
    opacity: .45;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: rhino-soft-glint 7.5s ease-in-out infinite;
}

.parrot-layer-head {
    transform-origin: 52.3% 62.1%;
    animation: parrot-head-sway 4.4s ease-in-out infinite;
}

.pig-layer-head {
    transform-origin: 50.3% 58.5%;
    animation: pig-head-sway 4.55s ease-in-out infinite;
}

.dragon-layer-head {
    transform-origin: 50% 62%;
    animation: dragon-head-sway 4.7s ease-in-out infinite;
    z-index: 2;
}

.rhino-layer-head {
    transform-origin: 50% 61%;
    animation: rhino-head-sway 4.55s ease-in-out infinite;
    z-index: 2;
}

.pet-stage.pet-dragon {
    min-height: 382px;
    height: 382px;
}

.pet-stage.pet-parrot {
    min-height: 322px;
    height: 322px;
}

.pet-stage.pet-parrot .pet-creature {
    height: 100%;
    min-height: 0;
}


.pet-stage.pet-pig {
    min-height: 336px;
}

.pet-stage.pet-rhino {
    min-height: 362px;
    height: 362px;
}

.pet-stage.pet-cat {
    min-height: 372px;
    height: 372px;
}

.pet-stage.pet-cat .pet-creature {
    height: 100%;
    min-height: 0;
}

.profile-pet-visual .parrot-layer-art,
.empty-pet-preview + .parrot-layer-art {
    width: 92px;
}

.profile-pet-visual .pig-layer-art,
.empty-pet-preview + .pig-layer-art,
.profile-pet-visual .pig-full-art,
.empty-pet-preview + .pig-full-art {
    width: 104px;
}

.profile-pet-visual .dragon-layer-art,
.empty-pet-preview + .dragon-layer-art,
.profile-pet-visual .rhino-full-art,
.empty-pet-preview + .rhino-full-art,
.profile-pet-visual .rhino-layer-art,
.empty-pet-preview + .rhino-layer-art,
.profile-pet-visual .cat-layer-art,
.empty-pet-preview + .cat-layer-art {
    width: 116px;
}

.egg-svg {
    max-width: 225px;
}

.pet-svg .pet-shadow {
    fill: rgba(0, 0, 0, .28);
}

.pet-svg .pet-body {
    transform-box: fill-box;
    transform-origin: 50% 80%;
    animation: pet-breathe 2.8s ease-in-out infinite;
}

.egg-svg .pet-body {
    animation: egg-wobble 2.2s ease-in-out infinite;
}

.blink-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: pet-blink 4.2s infinite;
}

.wing {
    transform-box: fill-box;
    transform-origin: 50% 80%;
    animation: wing-flap 2.6s ease-in-out infinite;
}

.wing-right {
    animation-delay: .12s;
}

.tail,
.tail-line {
    transform-box: fill-box;
    transform-origin: 10% 50%;
    animation: tail-wag 2.4s ease-in-out infinite;
}

.ear {
    transform-box: fill-box;
    transform-origin: 50% 85%;
    animation: ear-twitch 5s ease-in-out infinite;
}

.right-ear {
    animation-delay: .35s;
}

.paw {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: paw-tap 3.4s ease-in-out infinite;
}

.right-paw {
    animation-delay: .18s;
}

.spark {
    transform-box: fill-box;
    transform-origin: center;
    animation: spark-pop 1.8s ease-in-out infinite;
}

.pet-info {
    margin-top: 0;
    padding: 2px 2px 0;
}

.pet-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-info h2 {
    font-size: 23px;
    line-height: 1.15;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    cursor: pointer;
}

.icon-button:disabled {
    opacity: .55;
    cursor: wait;
}

.pet-info p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.35;
}

.pet-xp {
    display: grid;
    gap: 7px;
    margin-top: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.pet-xp > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.pet-xp strong {
    color: var(--text);
}

.pet-xp-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.pet-xp-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8f5cff, #ff4fd8, #ffd147);
    box-shadow: 0 0 16px rgba(255, 79, 216, .35);
    transition: width .28s ease;
}

.pet-info a {
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.no-pet-state .pet-creature {
    width: min(280px, 92%);
}

.no-pet-card {
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    min-height: 170px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    text-align: center;
}

.no-pet-card div {
    font-size: 54px;
}

.no-pet-card strong {
    max-width: 220px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
}

.pet-hatch-button {
    width: 100%;
    margin-top: 0;
}

.pet-stats {
    display: grid;
    gap: 10px;
    margin-top: 0;
    min-width: 0;
    width: 100%;
}

.stat-row {
    display: grid;
    grid-template-columns: minmax(0, 78px) minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    min-width: 0;
    width: 100%;
}

.stat-row span,
.stat-row strong {
    font-size: 13px;
}

.stat-row span {
    color: var(--muted);
}

.stat-row strong {
    text-align: right;
}

.stat-bar {
    height: 10px;
    min-width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.stat-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #ffd147);
    transition: width .25s ease;
}

.pet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.pet-actions .secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
}

.pet-actions.sub-menu {
    grid-template-columns: 1fr;
}

.pet-actions.sub-menu .secondary-button {
    justify-content: space-between;
    min-height: 44px;
    text-align: left;
}

.pet-actions.sub-menu .secondary-button strong {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 13px;
}

.pet-actions.sub-menu .secondary-button .free-care-count {
    color: #7fffd4;
    text-shadow: 0 0 12px rgba(127, 255, 212, .28);
}

.pet-actions.sub-menu .secondary-button span {
    min-width: 0;
}

.pet-actions .secondary-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pet-stage.is-sleeping .pet-creature {
    filter: saturate(.9) brightness(.9);
}

.sleep-stream {
    position: absolute;
    inset: -18px 0 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.sleep-stream span {
    position: absolute;
    display: grid;
    place-items: center;
    bottom: -44px;
    left: var(--x, 50%);
    width: var(--size, 34px);
    height: var(--size, 34px);
    border-radius: 999px;
    color: rgba(236, 230, 255, .68);
    font-size: var(--font-size, 22px);
    line-height: 1;
    opacity: 0;
    text-shadow:
        0 0 10px rgba(181, 159, 255, .34),
        0 0 18px rgba(109, 213, 255, .18);
    animation: sleep-rise var(--duration, 13s) linear infinite;
    animation-delay: var(--delay, 0s);
    transform: translate3d(0, 42px, 0);
}

.sleep-stream span:nth-child(1) { --x: 8%; --delay: -1.2s; --duration: 14s; --size: 30px; --font-size: 20px; --drift: 26px; }
.sleep-stream span:nth-child(2) { --x: 18%; --delay: -7.4s; --duration: 16s; --size: 38px; --font-size: 24px; --drift: -18px; }
.sleep-stream span:nth-child(3) { --x: 29%; --delay: -3.8s; --duration: 13s; --size: 34px; --font-size: 22px; --drift: 22px; }
.sleep-stream span:nth-child(4) { --x: 39%; --delay: -10.1s; --duration: 17s; --size: 42px; --font-size: 24px; --drift: -28px; }
.sleep-stream span:nth-child(5) { --x: 48%; --delay: -5.6s; --duration: 15s; --size: 32px; --font-size: 21px; --drift: 16px; }
.sleep-stream span:nth-child(6) { --x: 57%; --delay: -12.2s; --duration: 18s; --size: 28px; --font-size: 18px; --drift: 30px; }
.sleep-stream span:nth-child(7) { --x: 66%; --delay: -2.9s; --duration: 14s; --size: 36px; --font-size: 23px; --drift: -20px; }
.sleep-stream span:nth-child(8) { --x: 76%; --delay: -8.8s; --duration: 16s; --size: 40px; --font-size: 25px; --drift: 18px; }
.sleep-stream span:nth-child(9) { --x: 86%; --delay: -4.7s; --duration: 13.5s; --size: 31px; --font-size: 20px; --drift: -24px; }
.sleep-stream span:nth-child(10) { --x: 13%; --delay: -11.4s; --duration: 18s; --size: 44px; --font-size: 24px; --drift: 24px; }
.sleep-stream span:nth-child(11) { --x: 52%; --delay: -9.9s; --duration: 14.5s; --size: 35px; --font-size: 22px; --drift: -16px; }
.sleep-stream span:nth-child(12) { --x: 91%; --delay: -13.3s; --duration: 19s; --size: 29px; --font-size: 19px; --drift: -32px; }

.pet-quests {
    margin-top: 0;
    padding: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 0%, rgba(167, 139, 250, .18), transparent 32%),
        rgba(255, 255, 255, .045);
}

.pet-quests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}

.pet-quests-head > div {
    min-width: 0;
}

.pet-quests-head h3 {
    margin: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.pet-quests-head strong {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    font-size: 13px;
}

.pet-quest-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pet-quest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: start;
    gap: 8px 10px;
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 105, 105, .45);
    background: rgba(255, 70, 90, .09);
    box-shadow: inset 0 0 18px rgba(255, 70, 90, .06);
}

.pet-quest > div {
    min-width: 0;
}

.pet-quest.completed {
    border-color: rgba(82, 255, 174, .5);
    background: rgba(46, 213, 115, .1);
    box-shadow: inset 0 0 18px rgba(46, 213, 115, .08);
}

.pet-quest strong {
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pet-quest p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pet-quest > span {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quest-bonus {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quest-bonus.done {
    color: #7fffd4;
}

.pet-logs {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.pet-logs h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.pet-log-list {
    display: grid;
    gap: 8px;
}

.pet-log-item {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.pet-log-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.pet-log-item strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.pet-log-item p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.pet-log-more-button {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .024)),
        rgba(255, 255, 255, .035);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.pet-log-more-button:active {
    transform: scale(.985) translateY(1px);
}

.profile-panel {
    overflow: hidden;
    padding: 0;
}

.profile-flow-panel {
    position: relative;
}

.profile-flow-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 24%, transparent 76%, rgba(255, 255, 255, .035)),
        radial-gradient(circle at 50% 0%, rgba(199, 125, 255, .14), transparent 38%);
    pointer-events: none;
}

.profile-cover,
.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16), transparent 20%),
        linear-gradient(135deg, rgba(199, 125, 255, .28), rgba(255, 79, 216, .08) 62%, rgba(85, 241, 255, .06));
    border-bottom: 1px solid var(--line);
}

.profile-cover,
.profile-stage,
.profile-social-section,
.user-actions {
    position: relative;
    z-index: 1;
}

.profile-cover.public {
    min-height: 132px;
}

.profile-cover::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -22px;
    width: 180px;
    height: 54px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 79, 216, .18), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.profile-cover.compact,
.profile-hero.compact {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, rgba(199, 125, 255, .5), rgba(255, 79, 216, .2));
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(199, 125, 255, .24);
}

.profile-avatar img,
.profile-avatar > span {
    overflow: hidden;
    border-radius: 8px;
}

.profile-avatar.premium-red-frame {
    isolation: isolate;
    border-color: transparent;
    background: transparent;
    box-shadow:
        0 0 20px var(--avatar-aura-shadow-1, rgba(255, 205, 93, .32)),
        0 0 58px var(--avatar-aura-shadow-2, rgba(255, 188, 55, .18));
    animation: premium-soft-aura 3.2s ease-in-out infinite;
}

.profile-avatar.premium-red-frame::before,
.profile-avatar.premium-red-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.profile-avatar.premium-red-frame::before {
    left: 50%;
    top: 50%;
    width: var(--avatar-frame-width, 108px);
    height: var(--avatar-frame-height, 108px);
    z-index: 3;
    background: var(--avatar-frame-image) center / var(--avatar-frame-size, contain) no-repeat;
    filter:
        drop-shadow(0 0 8px var(--avatar-aura-drop-1, rgba(255, 213, 96, .32)))
        drop-shadow(0 0 20px var(--avatar-aura-drop-2, rgba(255, 188, 55, .2)));
    transform: translate(-50%, calc(-50% + var(--avatar-frame-y, 0px)));
}

.profile-avatar.premium-red-frame::after {
    inset: var(--avatar-aura-inset, -24px);
    z-index: 0;
    border-radius: 999px;
    opacity: var(--avatar-aura-opacity, .82);
    background:
        radial-gradient(circle at 50% 50%, var(--avatar-aura-core, rgba(255, 210, 90, .3)), transparent 42%),
        conic-gradient(
            from 0deg,
            transparent 0deg,
            var(--avatar-aura-mid, rgba(255, 190, 62, .16)) 72deg,
            var(--avatar-aura-edge, rgba(255, 245, 180, .12)) 145deg,
            transparent 215deg,
            var(--avatar-aura-mid, rgba(255, 190, 62, .16)) 292deg,
            transparent 360deg
        );
    filter: blur(var(--avatar-aura-blur, 12px));
    animation: premium-frame-aura var(--avatar-aura-speed, 6.4s) linear infinite;
    will-change: transform;
}

.profile-avatar.premium-red-frame .premium-avatar-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: inset 0 0 12px rgba(255, 202, 91, .12);
}

.profile-avatar.premium-red-frame .premium-avatar-core::after {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, .08) 43%,
        rgba(255, 238, 168, .44) 50%,
        rgba(255, 255, 255, .08) 57%,
        transparent 65%
    );
    transform: translateX(-120%) rotate(8deg);
    animation: premium-avatar-glint 6s ease-in-out infinite;
}

.profile-avatar.premium-red-frame .premium-avatar-core img,
.profile-avatar.premium-red-frame .premium-avatar-core > span {
    position: relative;
    z-index: 1;
    border-radius: 6px;
}

.profile-cover-text h2 {
    font-size: clamp(24px, 4vw, 34px);
}

.profile-avatar img,
.profile-avatar span,
.mini-avatar img,
.mini-avatar span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-muted {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.profile-stage {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 330px;
    overflow: hidden;
    padding: 24px 18px 20px;
    background:
        radial-gradient(circle at 50% 42%, rgba(199, 125, 255, .26), transparent 36%),
        radial-gradient(circle at 78% 28%, rgba(255, 79, 216, .15), transparent 25%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
}

.profile-stage.public {
    min-height: 360px;
}

.profile-stage::before {
    content: "";
    position: absolute;
    inset: 18px 9%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(199, 125, 255, .18), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}

.profile-stage.compact {
    min-height: 0;
    padding: 18px 0 12px;
}

.profile-stage-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 260px;
    max-width: 430px;
    text-shadow: 0 0 18px rgba(199, 125, 255, .16);
}

.profile-stage-copy h3 {
    margin: 6px 0 8px;
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.05;
}

.profile-stage-copy p {
    color: var(--muted);
    line-height: 1.45;
}

.soft-label {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-pet-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 1 260px;
    min-height: 220px;
    margin: 0;
    background:
        radial-gradient(circle at center, rgba(199, 125, 255, .22), transparent 58%);
}

.profile-pet-visual .pet-image-art,
.profile-pet-visual .pet-svg {
    width: min(235px, 88%);
    max-height: 220px;
}

.public-profile-stack {
    display: grid;
    gap: 10px;
}

.empty-pet-preview {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(199, 125, 255, .12);
    font-size: 42px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(199, 125, 255, .22), rgba(255, 79, 216, .1));
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.profile-ribbons {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.profile-ribbons.compact {
    justify-content: flex-start;
}

.profile-ribbons p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(199, 125, 255, .12);
}

.profile-ribbons span,
.profile-achievement-flow > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-ribbons strong {
    font-size: 13px;
}

.profile-achievement-flow {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100% - 20px));
    margin: -4px auto 18px;
    text-align: center;
}

.public-loading {
    padding: 22px;
}

.profile-achievement-flow.compact {
    width: 100%;
    margin: 0;
    text-align: left;
}

.profile-achievement-flow .chip-list {
    justify-content: center;
}

.profile-achievement-flow.compact .chip-list {
    justify-content: flex-start;
}

.profile-social-section {
    margin: 4px 18px 18px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(218, 178, 255, .16);
}

.profile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.profile-section-title span {
    color: var(--muted);
    font-size: 13px;
}

.profile-section-title strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(255, 79, 216, .18);
    color: var(--hot);
}

.friend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.friend-item,
.user-row,
.request-item {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 54px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.friend-item {
    grid-template-columns: auto 1fr;
}

.user-row.active {
    background: rgba(49, 208, 170, .12);
}

.user-row small,
.user-row i {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.user-row i {
    margin-top: 0;
    color: var(--accent);
    font-weight: 900;
}

.mini-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(199, 125, 255, .32), rgba(255, 79, 216, .14));
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.request-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.request-item {
    grid-template-columns: auto 1fr auto;
    cursor: default;
}

.request-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.request-actions {
    display: flex;
    gap: 6px;
}

.request-actions button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(199, 125, 255, .32);
    border-radius: 8px;
    background: rgba(199, 125, 255, .14);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.request-actions button:last-child {
    background: rgba(255, 79, 216, .12);
}

.user-search {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 8px;
    margin-bottom: 12px;
}

.user-search input {
    min-height: 42px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font: inherit;
}

.user-search .secondary-button {
    margin-top: 0;
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 12px;
}

.user-list {
    display: grid;
    align-content: start;
    gap: 8px;
}

.user-detail {
    min-height: 250px;
    padding: 14px;
}

.user-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.public-actions {
    margin: 0 18px 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(218, 178, 255, .16);
}

.user-actions .primary-button {
    width: 100%;
}

.ghost-button.inline {
    width: 100%;
    margin: 0;
}

@keyframes pet-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.025);
    }
}

@keyframes premium-soft-aura {
    0%,
    100% {
        box-shadow:
            0 0 18px var(--avatar-aura-shadow-1, rgba(255, 205, 93, .32)),
            0 0 50px var(--avatar-aura-shadow-2, rgba(255, 188, 55, .18));
    }

    50% {
        box-shadow:
            0 0 26px var(--avatar-aura-shadow-1, rgba(255, 205, 93, .42)),
            0 0 72px var(--avatar-aura-shadow-2, rgba(255, 188, 55, .26));
    }
}

@keyframes premium-frame-aura {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes premium-avatar-glint {
    0%,
    58%,
    100% {
        opacity: 0;
        transform: translateX(-120%) rotate(8deg);
    }

    66% {
        opacity: 1;
    }

    78% {
        opacity: 0;
        transform: translateX(120%) rotate(8deg);
    }
}

@keyframes pet-image-float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg) scale(1);
    }

    50% {
        transform: translateY(-7px) rotate(1deg) scale(1.025);
    }
}

@keyframes pet-image-rock {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }

    45% {
        transform: translateY(-5px) rotate(2deg) scale(1.015);
    }

    70% {
        transform: translateY(-2px) rotate(-1deg) scale(1.006);
    }
}

@keyframes parrot-body-breathe {
    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.018, .992) translateY(-1px);
    }
}

@keyframes pig-body-breathe {
    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.014, .994) translateY(-1px);
    }
}

@keyframes dragon-body-breathe {
    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.017, .998);
    }
}

@keyframes rhino-body-breathe {
    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.016, .998);
    }
}

@keyframes cat-body-breathe {
    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.016, .995) translateY(-1px);
    }
}

@keyframes pig-full-breathe {
    0%,
    100% {
        transform: translateY(0) rotate(-.35deg) scale(1);
    }

    50% {
        transform: translateY(-3px) rotate(.35deg) scale(1.012);
    }
}

@keyframes rhino-full-breathe {
    0%,
    100% {
        transform: translateY(0) rotate(-.18deg) scale(1);
    }

    45% {
        transform: translateY(-2px) rotate(.16deg) scale(1.012, 1.006);
    }

    70% {
        transform: translateY(-1px) rotate(.06deg) scale(1.006, 1.002);
    }
}

@keyframes rhino-soft-glint {
    0%,
    78%,
    100% {
        opacity: 0;
        transform: translateX(-42%) rotate(-8deg);
    }

    84% {
        opacity: .34;
    }

    92% {
        opacity: 0;
        transform: translateX(44%) rotate(-8deg);
    }
}

@keyframes parrot-head-sway {
    0%,
    100% {
        transform: rotate(-1deg) translateX(-.5px);
    }

    50% {
        transform: rotate(1.1deg) translateX(.8px) translateY(-.5px);
    }
}

@keyframes pig-head-sway {
    0%,
    100% {
        transform: rotate(-.72deg) translateX(-.35px);
    }

    50% {
        transform: rotate(.76deg) translateX(.45px) translateY(-.35px);
    }
}

@keyframes dragon-head-sway {
    0%,
    100% {
        transform: rotate(-.92deg) translateX(-.32px) translateY(3.2px);
    }

    50% {
        transform: rotate(.96deg) translateX(.44px) translateY(3.2px);
    }
}

@keyframes rhino-head-sway {
    0%,
    100% {
        transform: rotate(-1.04deg) translateX(-.42px) translateY(3px);
    }

    50% {
        transform: rotate(1.08deg) translateX(.56px) translateY(2.85px);
    }
}

@keyframes cat-head-sway {
    0%,
    100% {
        transform: rotate(-.84deg) translateX(-.3px);
    }

    50% {
        transform: rotate(.88deg) translateX(.42px) translateY(-.4px);
    }
}

@keyframes egg-wobble {
    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-6px);
    }
}

@keyframes pet-blink {
    0%,
    88%,
    92%,
    100% {
        transform: scaleY(1);
    }

    90% {
        transform: scaleY(.12);
    }
}

@keyframes wing-flap {
    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-8deg) translateY(-2px);
    }
}

@keyframes tail-wag {
    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(7deg);
    }
}

@keyframes ear-twitch {
    0%,
    82%,
    100% {
        transform: rotate(0deg);
    }

    86% {
        transform: rotate(-8deg);
    }

    90% {
        transform: rotate(5deg);
    }
}

@keyframes paw-tap {
    0%,
    72%,
    100% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-5px);
    }
}

@keyframes spark-pop {
    0%,
    100% {
        transform: scale(.92) rotate(0deg);
        opacity: .55;
    }

    50% {
        transform: scale(1.12) rotate(12deg);
        opacity: 1;
    }
}

@keyframes pet-sleep-breathe {
    0%,
    100% {
        transform: translateY(var(--sleep-offset-y)) rotate(-.18deg) scale(1);
    }

    50% {
        transform: translateY(calc(var(--sleep-offset-y) + 2px)) rotate(.18deg) scale(1.01, .996);
    }
}

@keyframes sleep-rise {
    0% {
        transform: translate3d(0, 48px, 0) scale(.72) rotate(-8deg);
        opacity: 0;
    }

    12% {
        opacity: .16;
    }

    52% {
        opacity: .32;
    }

    86% {
        opacity: .12;
    }

    100% {
        transform: translate3d(var(--drift, 18px), -270px, 0) scale(1.12) rotate(10deg);
        opacity: 0;
    }
}

.reward-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.reward-item {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.reward-item span {
    font-size: 25px;
}

.reward-item strong {
    font-size: 13px;
    line-height: 1.25;
}

.casino-panel {
    position: relative;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 14px;
    display: grid;
    gap: 14px;
}

.casino-panel::before {
    content: "";
    position: absolute;
    inset: -80px -120px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 71, .18), transparent 70%);
    pointer-events: none;
}

.casino-mode-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.casino-mode {
    min-height: 42px;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.casino-mode.active {
    background: linear-gradient(135deg, var(--accent), var(--hot));
    color: #fff;
    box-shadow: 0 0 18px rgba(199, 125, 255, .28);
}

.casino-game {
    position: relative;
    display: grid;
    gap: 14px;
    overscroll-behavior: contain;
}

.casino-game.hidden {
    display: none;
}

.casino-hero {
    display: grid;
    grid-template-columns: minmax(240px, 330px) 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 209, 71, .12), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.casino-copy h3 {
    margin: 0;
    font-size: 22px;
}

.casino-copy p:not(.eyebrow) {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.roulette-wheel-wrap {
    --wheel-size: min(316px, 82vw);
    --pocket-radius: calc((var(--wheel-size) / 2) - 24px);
    --ball-radius: calc((var(--wheel-size) / 2) - 13px);
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(var(--wheel-size) + 26px);
    isolation: isolate;
    touch-action: pan-y;
}

.roulette-pointer {
    position: absolute;
    z-index: 8;
    top: 5px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 0;
    border-bottom: 26px solid #ffd147;
    filter: drop-shadow(0 0 10px rgba(255, 209, 71, .72));
}

.casino-roulette-wheel {
    position: relative;
    z-index: 2;
    width: var(--wheel-size);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 12px solid #2b1738;
    box-shadow:
        inset 0 0 0 2px rgba(255, 209, 71, .76),
        inset 0 0 0 16px rgba(16, 8, 24, .62),
        inset 0 0 38px rgba(0, 0, 0, .76),
        0 20px 40px rgba(0, 0, 0, .35),
        0 0 36px rgba(255, 209, 71, .18);
    transition: transform 2.7s cubic-bezier(.09, .73, .08, 1);
    will-change: transform;
}

.casino-roulette-wheel::before {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: 1;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from -4.86deg,
        rgba(255, 255, 255, .42) 0deg .28deg,
        transparent .28deg 9.73deg
    );
    opacity: .62;
    pointer-events: none;
}

.roulette-pocket {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 9px;
    font-weight: 950;
    transform: rotate(var(--pocket-angle)) translateY(calc(-1 * var(--pocket-radius))) rotate(var(--label-angle));
    text-shadow: 0 1px 2px rgba(0, 0, 0, .72);
    box-shadow: 0 0 8px rgba(0, 0, 0, .24);
}

.roulette-pocket.red {
    background: linear-gradient(135deg, #d82045, #811429);
}

.roulette-pocket.black {
    background: linear-gradient(135deg, #242833, #06070a);
}

.roulette-pocket.green {
    background: linear-gradient(135deg, #13b97b, #08553a);
    box-shadow: 0 0 14px rgba(19, 185, 123, .52);
}

.roulette-ring {
    position: absolute;
    inset: 10px;
    z-index: 3;
    border-radius: 50%;
    border: 1px solid rgba(255, 209, 71, .52);
    pointer-events: none;
}

.roulette-ring-inner {
    inset: 28%;
    border-color: rgba(255, 255, 255, .18);
}

.roulette-wheel-center {
    position: absolute;
    z-index: 5;
    inset: 36%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .22), transparent 18%),
        linear-gradient(135deg, #ffd147, #7b2fff 62%, #261035);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, .12),
        0 0 22px rgba(255, 209, 71, .45);
}

.roulette-ball {
    position: absolute;
    z-index: 9;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 12px rgba(255, 255, 255, .95),
        0 4px 10px rgba(0, 0, 0, .45);
    transform: rotate(0deg) translateY(calc(-1 * var(--ball-radius)));
    transform-origin: center;
    transition: transform 2.7s cubic-bezier(.08, .78, .11, 1);
}

.roulette-result-number {
    position: absolute;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(9, 6, 18, .86);
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    box-shadow: 0 0 24px rgba(0, 0, 0, .45);
}

.roulette-result-number.red {
    background: linear-gradient(135deg, #d72047, #671224);
}

.roulette-result-number.black {
    background: linear-gradient(135deg, #252833, #050608);
}

.roulette-result-number.green {
    background: linear-gradient(135deg, #16b779, #075137);
}

.casino-bet-row {
    display: grid;
    grid-template-columns: minmax(160px, 230px) 1fr;
    gap: 10px;
    align-items: end;
}

.casino-bet-row.compact {
    grid-template-columns: 1fr;
}

.casino-bet-row label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.casino-bet-row input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(4, 3, 9, .72);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-weight: 900;
    outline: none;
}

.casino-bet-row input:focus {
    border-color: rgba(199, 125, 255, .7);
    box-shadow: 0 0 0 3px rgba(199, 125, 255, .12);
}

.casino-chip-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.casino-chip-row button {
    min-height: 44px;
    border: 1px solid rgba(255, 209, 71, .32);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(135deg, rgba(255, 209, 71, .22), rgba(199, 125, 255, .16));
    color: #fff;
    cursor: pointer;
    font-weight: 950;
}

.roulette-table-shell {
    display: grid;
    gap: 10px;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

.roulette-table {
    min-width: 690px;
    display: grid;
    grid-template-columns: 54px repeat(12, minmax(46px, 1fr));
    grid-template-rows: repeat(3, 46px) 42px 42px;
    gap: 4px;
    padding: 10px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 209, 71, .08), transparent 28%),
        linear-gradient(135deg, rgba(5, 61, 43, .88), rgba(6, 34, 28, .94));
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .035), inset 0 0 42px rgba(0, 0, 0, .38);
}

.roulette-table-shell {
    overflow-x: auto;
    overscroll-behavior: contain;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.roulette-table-cell {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 6px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.roulette-table-cell.number {
    font-size: 15px;
}

.roulette-table-cell.red {
    background: linear-gradient(145deg, #c7183d, #751226);
}

.roulette-table-cell.black {
    background: linear-gradient(145deg, #242834, #050608);
}

.roulette-table-cell.green {
    background: linear-gradient(145deg, #12a86f, #075138);
}

.roulette-table-cell.outside {
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    color: #dff8ed;
}

.roulette-table-cell.color-bet {
    font-size: 12px;
}

.roulette-table-cell.selected {
    border-color: #ffd147;
    box-shadow:
        inset 0 0 0 1px rgba(255, 209, 71, .74),
        0 0 18px rgba(255, 209, 71, .38);
    transform: translateY(-1px);
}

.roulette-table-cell.selected::after {
    content: "💠";
    position: absolute;
    right: -7px;
    top: -8px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd147, #c77dff);
    font-size: 12px;
    box-shadow: 0 0 12px rgba(255, 209, 71, .55);
}

.roulette-selected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
    font-weight: 900;
}

.roulette-selected-row strong {
    color: #ffe082;
    white-space: nowrap;
}

.roulette-spin-button {
    width: 100%;
    touch-action: manipulation;
}

.roulette-table-cell:disabled,
.roulette-spin-button:disabled,
.blackjack-controls button:disabled {
    opacity: .55;
    cursor: default;
}

.blackjack-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
}

.blackjack-felt {
    min-height: 490px;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 209, 71, .10), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(17, 149, 100, .48), rgba(6, 65, 45, .92) 58%, #05271d 100%);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .035), inset 0 0 60px rgba(0, 0, 0, .42);
}

.hand-zone {
    display: grid;
    gap: 10px;
    align-content: start;
}

.player-zone {
    align-content: end;
}

.hand-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
}

.hand-title strong {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .24);
    color: #ffe082;
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 104px;
}

.player-zone .card-row {
    align-items: flex-end;
}

.blackjack-card {
    position: relative;
    width: 70px;
    height: 98px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 7px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #e9edf5);
    color: #11131a;
    font-weight: 950;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
    animation: card-drop .24s ease both;
}

.blackjack-card strong {
    place-self: center;
    font-size: 34px;
    line-height: 1;
}

.blackjack-card em {
    justify-self: end;
    font-style: normal;
    transform: rotate(180deg);
}

.blackjack-card.red-card {
    color: #c91637;
}

.blackjack-card.card-back {
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent),
        repeating-linear-gradient(45deg, #421267 0 8px, #250a3c 8px 16px);
    color: #ffd147;
    border: 2px solid rgba(255, 255, 255, .38);
}

.blackjack-card.card-back span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 209, 71, .14);
}

.blackjack-message {
    justify-self: center;
    align-self: center;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(0, 0, 0, .26);
    color: #fff;
    text-align: center;
    font-weight: 900;
}

.blackjack-controls {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.blackjack-controls .primary-button,
.blackjack-controls .secondary-button {
    width: 100%;
    margin-top: 0;
}

.blackjack-action-row {
    display: grid;
    gap: 8px;
}

@keyframes card-drop {
    from {
        transform: translateY(-12px) rotate(-1deg);
        opacity: 0;
    }

    to {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 780px) {
    .welcome-panel {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
    }

    .topup-hero {
        grid-template-columns: 1fr;
    }

    .topup-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quest-reward-list {
        grid-template-columns: 1fr;
    }

    .quest-card {
        grid-template-columns: auto 1fr;
    }

    .quest-progress {
        grid-column: 2;
        width: fit-content;
    }

    .quick-grid,
    .case-list,
    .social-layout {
        grid-template-columns: 1fr;
    }

    .user-search {
        grid-template-columns: 1fr;
    }

    .profile-stage .profile-pet-visual {
        min-height: 170px;
    }

    .case-detail-head,
    .case-main {
        grid-template-columns: auto 1fr;
    }

    .case-main strong,
    #detailPrice {
        grid-column: 2;
    }

    .reward-list {
        grid-template-columns: 1fr 1fr;
    }

    .casino-hero,
    .casino-bet-row,
    .blackjack-table {
        grid-template-columns: 1fr;
    }

    .blackjack-felt {
        min-height: 430px;
    }

    .prize-card {
        flex-basis: 126px;
    }

    .stat-row {
        grid-template-columns: minmax(0, 72px) minmax(0, 1fr) 34px;
        gap: 6px;
    }
}

:root {
    --bg: #070711;
    --panel: #10121f;
    --panel-2: #171a2b;
    --panel-3: #20243a;
    --text: #f7f4ff;
    --muted: #aeb2d3;
    --line: rgba(190, 174, 255, .18);
    --accent: #9f7cff;
    --accent-2: #6d5dfc;
    --hot: #ff4eb8;
    --cyan: #43e6ff;
    --gold: #ffd75e;
    --green: #35e6a1;
    --danger: #ff5b7c;
    --glow: 0 18px 48px rgba(106, 89, 255, .24);
}

body {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(150deg, rgba(112, 93, 255, .16), transparent 28%),
        linear-gradient(23deg, rgba(255, 78, 184, .10), transparent 38%),
        linear-gradient(180deg, #111225 0%, #070711 48%, #05050c 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .84), transparent 82%);
    pointer-events: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    padding: 18px 16px 38px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -6px -4px 12px;
    padding: 10px 4px;
    backdrop-filter: blur(18px);
}

.topbar > div:first-child {
    min-width: 0;
}

.topbar h1 {
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: 0;
}

.eyebrow {
    color: #c7b8ff;
    letter-spacing: .08em;
}

.balance {
    min-width: 174px;
    border-color: rgba(255, 255, 255, .14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
        rgba(13, 15, 28, .78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 24px rgba(159, 124, 255, .18);
}

.balance-add-button {
    background: linear-gradient(135deg, var(--gold), var(--hot));
    box-shadow: 0 0 18px rgba(255, 215, 94, .38);
}

.tabs {
    position: sticky;
    top: 78px;
    z-index: 19;
    margin: 0 -2px 16px;
    padding: 6px 2px 10px;
    backdrop-filter: blur(16px);
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    min-width: auto;
    min-height: 44px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .055);
    color: #cbd0ee;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.tab.active {
    border-color: rgba(255, 255, 255, .22);
    background: linear-gradient(135deg, #7d6dff, #ff4eb8);
    box-shadow: 0 12px 28px rgba(159, 124, 255, .24);
}

.topup-panel,
.quest-panel,
.casino-panel,
.inventory-panel,
.case-card,
.roulette-panel,
.result-panel,
.rewards-panel,
.pet-panel,
.profile-panel,
.user-detail,
.welcome-panel {
    border-color: rgba(255, 255, 255, .12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(14, 16, 30, .84);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.primary-button,
.open-button {
    min-height: 46px;
    background: linear-gradient(135deg, #7d6dff, #ff4eb8);
    box-shadow: 0 14px 28px rgba(159, 124, 255, .24);
}

.secondary-button,
.ghost-button,
.ghost-button.inline {
    min-height: 44px;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .065);
    color: var(--text);
}

.ghost-button.inline {
    margin: 0;
    width: auto;
}

.section-heading {
    margin: 4px 0 14px;
}

.section-heading h2 {
    font-size: clamp(22px, 3vw, 28px);
}

.home-view {
    display: grid;
    gap: 14px;
}

.home-hero {
    position: relative;
    min-height: 330px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background:
        linear-gradient(125deg, rgba(125, 109, 255, .26), rgba(255, 78, 184, .10) 42%, rgba(67, 230, 255, .08)),
        linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        #111426;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 100%);
    background-size: 54px 54px;
    opacity: .35;
    pointer-events: none;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.home-hero h2 {
    max-width: 680px;
    font-size: clamp(34px, 7vw, 64px);
    line-height: .96;
}

.home-lead {
    max-width: 520px;
    margin-top: 14px;
    color: #d5d8f3;
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.45;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-actions .primary-button,
.home-actions .secondary-button {
    width: auto;
    min-width: 154px;
    margin: 0;
    padding: 0 18px;
}

.home-showcase {
    position: absolute;
    right: clamp(12px, 4vw, 44px);
    top: 50%;
    width: min(330px, 42vw);
    min-width: 246px;
    height: 250px;
    transform: translateY(-50%);
    opacity: .98;
}

.showcase-card {
    position: absolute;
    display: grid;
    gap: 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .035)),
        rgba(9, 10, 20, .72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.showcase-card span {
    font-size: 38px;
}

.showcase-card strong {
    font-size: 13px;
}

.main-prize {
    inset: 36px 68px 24px 54px;
    transform: rotate(-3deg);
}

.main-prize span {
    font-size: 72px;
}

.side-card {
    width: 118px;
    height: 98px;
}

.side-card.top {
    top: 0;
    right: 0;
    transform: rotate(6deg);
}

.side-card.bottom {
    left: 0;
    bottom: 8px;
    transform: rotate(5deg);
}

.showcase-chip {
    position: absolute;
    right: 18px;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd75e, #7d6dff);
    box-shadow: 0 0 28px rgba(255, 215, 94, .32);
    font-size: 28px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-stats article,
.home-feature,
.home-route,
.home-wallet-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .028)),
        rgba(13, 15, 29, .78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.home-stats article {
    min-height: 86px;
    padding: 14px;
}

.home-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.home-stats strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: clamp(20px, 4vw, 28px);
}

.home-services-section {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background:
        radial-gradient(circle at 18% 0%, rgba(85, 241, 255, .10), transparent 34%),
        radial-gradient(circle at 90% 90%, rgba(255, 78, 184, .10), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)),
        rgba(13, 15, 29, .76);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.home-services-section .home-section-title {
    margin-bottom: 0;
}

.home-services-section .eyebrow,
.home-leaderboard-section .eyebrow {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .02em;
}

.home-services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.home-service-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
    color: var(--text);
    text-align: left;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .10), transparent);
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity .18s ease, transform .38s ease;
}

.home-service-card:not(.disabled):active {
    transform: scale(.985);
}

.home-service-card:not(.disabled):hover {
    border-color: rgba(85, 241, 255, .28);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, .18),
        0 0 24px rgba(85, 241, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.home-service-card:not(.disabled):hover::before {
    opacity: 1;
    transform: translateX(35%);
}

.home-service-card.disabled {
    opacity: .62;
}

.home-service-card.current {
    cursor: default;
    border-color: rgba(199, 125, 255, .20);
}

.home-service-card.current:active,
.home-service-card.current:hover {
    transform: none;
}

.home-service-card.current::before {
    content: none;
}

.home-service-card.current em {
    color: rgba(199, 125, 255, .95);
}

.home-service-emoji {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .09);
    font-size: 15px;
}

.home-service-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.home-service-copy strong,
.home-service-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-service-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.home-service-copy small {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
}

.home-service-card em {
    color: rgba(85, 241, 255, .88);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-feature {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 138px;
    padding: 14px;
    overflow: hidden;
}

.home-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
}

.feature-cases::before {
    background: linear-gradient(135deg, #ffd75e, transparent 58%);
}

.feature-pet::before {
    background: linear-gradient(135deg, #35e6a1, transparent 58%);
}

.feature-casino::before {
    background: linear-gradient(135deg, #ff4eb8, transparent 58%);
}

.feature-quests::before {
    background: linear-gradient(135deg, #43e6ff, transparent 58%);
}

.feature-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 31px;
}

.home-feature > div,
.home-feature button {
    position: relative;
}

.home-feature h3,
.home-route h3,
.home-wallet-card h3 {
    margin: 0;
    font-size: 20px;
}

.home-feature p:not(.eyebrow),
.home-wallet-card p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.home-split {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 12px;
}

.home-route,
.home-wallet-card {
    padding: 14px;
}

.home-section-title {
    margin-bottom: 12px;
}

.route-list {
    display: grid;
    gap: 8px;
}

.route-list button {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.route-list span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(159, 124, 255, .16);
    color: #d8ceff;
    font-size: 12px;
    font-weight: 950;
}

.route-list strong,
.route-list em {
    display: block;
}

.route-list em {
    justify-self: end;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.home-wallet-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    background:
        linear-gradient(145deg, rgba(255, 215, 94, .16), rgba(255, 78, 184, .04)),
        rgba(13, 15, 29, .82);
}

.home-leaderboard-section,
.leaderboard-panel {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 214, 95, .09), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(85, 241, 255, .08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .024)),
        rgba(13, 15, 29, .78);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.home-leaderboard-section .home-section-title {
    display: block;
    margin-bottom: 0;
}

.home-leaderboard-section .home-section-title h3 {
    font-size: 17px;
}

.home-leaderboard-list,
.leaderboard-list {
    display: grid;
    gap: 5px;
}

.leaderboard-row {
    position: relative;
    display: grid;
    grid-template-columns: 26px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(255, 255, 255, .018);
    color: var(--text);
    text-align: left;
    overflow: hidden;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .09);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.leaderboard-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .08), transparent);
    opacity: 0;
    transform: translateX(-42%);
    transition: opacity .18s ease, transform .45s ease;
}

.leaderboard-row:hover,
.leaderboard-row.current {
    border-color: rgba(85, 241, 255, .18);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .14),
        0 0 12px rgba(85, 241, 255, .09),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.leaderboard-row:hover::before {
    opacity: 1;
    transform: translateX(42%);
}

.leaderboard-row:active {
    transform: scale(.985);
}

.leaderboard-row:disabled {
    cursor: default;
    opacity: .72;
}

.leaderboard-place {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.leaderboard-avatar-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    isolation: isolate;
}

.leaderboard-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 50%;
    display: none;
    background: transparent;
    box-shadow: none;
}

.leaderboard-row.tier-gold .leaderboard-avatar-wrap::before {
    display: block;
    background: linear-gradient(135deg, #fff3a6, #ffd15e 48%, #ff9d1b);
    box-shadow: 0 0 12px rgba(255, 208, 77, .30);
}

.leaderboard-row.tier-silver .leaderboard-avatar-wrap::before {
    display: block;
    background: linear-gradient(135deg, #ffffff, #cfd8ea 52%, #8da0c8);
    box-shadow: 0 0 11px rgba(212, 225, 255, .25);
}

.leaderboard-row.tier-bronze .leaderboard-avatar-wrap::before {
    display: block;
    background: linear-gradient(135deg, #ffd3a0, #c97a37 52%, #7b3e1f);
    box-shadow: 0 0 11px rgba(217, 128, 55, .25);
}

.leaderboard-avatar-wrap img,
.leaderboard-avatar-wrap span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(199, 125, 255, .46), rgba(85, 241, 255, .28)),
        rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    overflow: hidden;
}

.leaderboard-main {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    min-width: 0;
}

.leaderboard-main strong,
.leaderboard-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-main strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.leaderboard-main small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.leaderboard-row em {
    position: relative;
    z-index: 1;
    color: var(--cyan);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

.leaderboard-full-link {
    justify-self: start;
    padding: 2px 2px 0;
    border: 0;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.leaderboard-full-link:active {
    transform: scale(.98);
}

.home-leaderboard-current {
    display: grid;
    gap: 5px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.leaderboard-current-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.leaderboard-empty {
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
}

.leaderboard-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.leaderboard-panel {
    margin-bottom: 22px;
}

.home-wallet-card .primary-button {
    width: 100%;
}

.home-news-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .028)),
        rgba(13, 15, 29, .78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.home-news-card .home-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-news-card .home-section-title p:not(.eyebrow) {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.home-news-card .ghost-button.inline {
    min-width: 104px;
}

.home-news-list {
    display: grid;
    gap: 10px;
}

.home-news-item {
    display: grid;
    grid-template-columns: minmax(0, 150px) 1fr;
    gap: 12px;
    align-items: start;
    min-height: 92px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.home-news-item.empty {
    grid-template-columns: 1fr;
}

.home-news-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, .24);
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.home-news-meta span,
.home-news-meta em {
    display: inline-flex;
    color: var(--gold);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.home-news-meta em {
    color: var(--muted);
    font-style: normal;
    text-transform: none;
}

.home-news-meta button {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255, 91, 124, .28);
    border-radius: 999px;
    background: rgba(255, 91, 124, .12);
    color: #ffc7d2;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.home-news-item strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.home-news-item p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    white-space: pre-wrap;
}

.case-list {
    gap: 14px;
}

.case-card {
    min-height: 170px;
    padding: 16px;
}

.case-emoji {
    width: 52px;
    height: 52px;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
}

.inventory-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.inventory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.inventory-head h3 {
    margin: 0;
    font-size: 22px;
}

.inventory-head p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

.inventory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inventory-item,
.inventory-empty {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
}

.inventory-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 160px;
    overflow: hidden;
    padding: 14px;
}

.inventory-item::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
}

.inventory-item.rarity-rare::before {
    background: linear-gradient(135deg, #49a2ff, transparent 58%);
}

.inventory-item.rarity-epic::before {
    background: linear-gradient(135deg, #b25eff, transparent 58%);
}

.inventory-item.rarity-legendary::before {
    background: linear-gradient(135deg, #ffd147, transparent 58%);
}

.inventory-item.rarity-mythic::before {
    background: linear-gradient(135deg, #ff4757, transparent 58%);
}

.inventory-item.used {
    opacity: .68;
}

.inventory-item-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 31px;
}

.inventory-item-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.inventory-item-copy span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.inventory-item-copy h3 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 20px;
}

.inventory-item-copy p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.inventory-actions {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-self: end;
}

.inventory-actions .primary-button,
.inventory-actions .ghost-button.inline {
    width: 100%;
    min-height: 40px;
}

.inventory-actions button:disabled {
    opacity: .5;
    cursor: default;
}

.inventory-empty {
    grid-column: 1 / -1;
    padding: 18px;
}

.inventory-empty strong {
    display: block;
    font-size: 18px;
}

.inventory-empty p {
    margin-top: 6px;
    color: var(--muted);
}

.open-button,
.topup-package,
.quest-reward,
.quest-card,
.user-card,
.friend-card,
.request-card {
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.open-button:active,
.topup-package:active,
.quest-reward:active,
.quest-card:active,
.route-list button:active,
.home-feature button:active {
    transform: scale(.98);
}

.quest-card,
.quest-reward,
.topup-package,
.user-card,
.friend-card,
.request-card {
    border-radius: 8px;
}

.pet-panel {
    gap: 16px;
}

.pet-stage {
    border-color: rgba(255, 255, 255, .12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 50% 32%, var(--aura-core), transparent 28%),
        radial-gradient(circle at 50% 34%, var(--aura-mid), transparent 48%),
        radial-gradient(circle at 50% 34%, var(--aura-ring), rgba(255, 255, 255, .025) 68%);
}

.casino-panel,
.quest-panel,
.topup-panel,
.profile-panel {
    padding: 16px;
}

.profile-cover {
    border-radius: 8px;
}

@media (max-width: 860px) {
    .app-shell {
        padding: 14px 12px 30px;
    }

    .topbar {
        align-items: flex-start;
        top: 0;
    }

    .tabs {
        top: 76px;
    }

    .home-showcase {
        right: -12px;
        opacity: .32;
    }

    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature-grid,
    .home-split {
        grid-template-columns: 1fr;
    }

    .home-feature {
        grid-template-columns: auto 1fr;
    }

    .home-feature .ghost-button.inline {
        grid-column: 1 / -1;
        width: 100%;
    }

    .route-list button {
        grid-template-columns: 38px 1fr;
    }

    .route-list em {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .topbar h1 {
        font-size: 23px;
    }

    .balance {
        min-width: 142px;
        padding-right: 44px;
    }

    .balance strong {
        font-size: 15px;
    }

    .tab {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .tabs {
        top: 72px;
    }

    .home-hero {
        min-height: 360px;
        align-items: end;
    }

    .home-showcase {
        top: 102px;
        right: 4px;
        width: 246px;
        min-width: 220px;
        transform: none;
        opacity: .45;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-actions .primary-button,
    .home-actions .secondary-button {
        min-width: 0;
        width: 100%;
        padding: 0 10px;
    }

    .home-stats article {
        min-height: 78px;
    }

    .home-services-list {
        grid-template-columns: 1fr;
    }

    .home-leaderboard-section .home-section-title {
        display: block;
    }

    .leaderboard-row {
        grid-template-columns: 24px 32px minmax(0, 1fr) auto;
        gap: 7px;
        min-height: 42px;
    }

    .leaderboard-avatar-wrap {
        width: 32px;
        height: 32px;
    }

    .leaderboard-avatar-wrap img,
    .leaderboard-avatar-wrap span {
        width: 28px;
        height: 28px;
    }

    .leaderboard-row em {
        grid-column: auto;
        justify-self: end;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-news-card .home-section-title {
        display: grid;
    }

    .home-news-card .ghost-button.inline {
        width: 100%;
    }

    .home-news-item {
        grid-template-columns: 1fr;
    }

    .inventory-list {
        grid-template-columns: 1fr;
    }

    .inventory-actions {
        grid-template-columns: 1fr;
    }

    .home-feature {
        min-height: 132px;
    }

    .home-feature h3,
    .home-route h3,
    .home-wallet-card h3 {
        font-size: 18px;
    }

    .pet-quest {
        grid-template-columns: 1fr;
    }

    .pet-quest > span {
        text-align: left;
    }
}

.profile-pro-panel {
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(12, 14, 27, .86);
}

.profile-pro-cover {
    min-height: 238px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    overflow: hidden;
    padding: clamp(18px, 4vw, 30px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 16% 24%, rgba(255, 215, 94, .16), transparent 20%),
        radial-gradient(circle at 74% 18%, rgba(255, 78, 184, .18), transparent 28%),
        linear-gradient(135deg, rgba(125, 109, 255, .30), rgba(67, 230, 255, .06) 48%, rgba(255, 78, 184, .11)),
        #101426;
}

.profile-cover-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 100%);
    background-size: 54px 54px;
    opacity: .32;
    pointer-events: none;
}

.profile-pro-cover::after {
    right: -48px;
    bottom: -58px;
    width: 310px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 78, 184, .26), transparent 66%);
    filter: blur(12px);
}

.profile-avatar-xl,
.profile-pro-cover .profile-avatar {
    width: 116px;
    height: 116px;
    border-radius: 8px;
    font-size: 34px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .32),
        0 0 32px rgba(159, 124, 255, .22);
}

.profile-avatar-xl img,
.profile-avatar-xl > span,
.profile-pro-cover .profile-avatar img,
.profile-pro-cover .profile-avatar > span {
    border-radius: 8px;
}

.profile-pro-cover .profile-avatar.premium-red-frame::before {
    width: calc(var(--avatar-frame-width, 108px) * 1.48);
    height: calc(var(--avatar-frame-height, 108px) * 1.48);
}

.profile-pro-cover .profile-avatar.premium-red-frame::after {
    inset: calc(var(--avatar-aura-inset, -24px) * 1.18);
}

.profile-cover-text {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.profile-cover-text h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(31px, 6vw, 52px);
    line-height: 1;
}

.profile-pro-cover .profile-muted {
    margin-top: 7px;
    color: #d7d8f4;
}

.profile-identity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-identity-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.profile-cover-badge {
    position: relative;
    z-index: 2;
    align-self: start;
    min-width: 104px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(8, 10, 20, .38);
    text-align: right;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.profile-cover-badge span,
.profile-cover-badge strong {
    display: block;
}

.profile-cover-badge span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
}

.profile-cover-badge strong {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.profile-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 0;
}

.profile-metrics article {
    min-height: 82px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
}

.profile-metrics span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-metrics strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: clamp(22px, 4vw, 30px);
}

.profile-main-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 14px;
    padding: 14px 16px 16px;
}

.profile-main-grid.public {
    padding-top: 14px;
}

.profile-pet-card {
    min-height: 400px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 36%, rgba(159, 124, 255, .22), transparent 38%),
        radial-gradient(circle at 82% 14%, rgba(255, 78, 184, .14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022));
}

.profile-pet-card::before {
    inset: 28px 10%;
    opacity: .78;
}

.profile-pet-card .profile-pet-visual {
    flex: 1 1 320px;
    min-height: 270px;
}

.profile-pet-card .profile-pet-visual .pet-image-art,
.profile-pet-card .profile-pet-visual .pet-svg {
    width: min(300px, 94%);
    max-height: 270px;
}

.profile-pet-card .profile-stage-copy {
    flex: 1 1 260px;
    min-width: min(260px, 100%);
    text-align: left;
}

.profile-pet-card .profile-stage-copy h3 {
    margin-top: 4px;
    font-size: clamp(24px, 4vw, 34px);
}

.profile-pet-card .profile-stage-copy p {
    max-width: 440px;
    margin-top: 8px;
    color: #cfd2f0;
    line-height: 1.45;
}

.profile-side-stack {
    display: grid;
    align-content: start;
    gap: 14px;
}

.profile-card-block {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
}

.profile-achievement-flow.profile-card-block {
    width: 100%;
    text-align: left;
}

.profile-achievement-flow.profile-card-block .chip-list {
    justify-content: flex-start;
}

.profile-card-block > span,
.public-profile-note .soft-label {
    display: block;
    margin-bottom: 8px;
}

.public-profile-note h3 {
    margin: 0;
    font-size: 20px;
}

.public-profile-note p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.profile-social-section.profile-card-block {
    border-top: 0;
}

.profile-social-section.profile-card-block .friend-list,
.profile-social-section.profile-card-block .request-list {
    margin-top: 10px;
}

.friend-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.friend-item,
.request-item {
    width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.friend-item:hover,
.user-row:hover {
    background: rgba(159, 124, 255, .12);
}

.profile-section-title strong {
    background: rgba(159, 124, 255, .18);
    color: #d7ceff;
}

.public-actions {
    margin: 0 16px 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.user-detail .profile-pro-cover {
    margin: -14px -14px 0;
}

.user-detail .profile-metrics,
.user-detail .profile-main-grid {
    padding-left: 0;
    padding-right: 0;
}

#publicProfileDetail.profile-panel,
#publicProfileDetail.profile-flow-panel {
    overflow: hidden;
}

@media (max-width: 900px) {
    .profile-pro-cover {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-cover-badge {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }

    .profile-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .profile-pro-cover {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-cover-text {
        display: grid;
        justify-items: center;
    }

    .profile-identity-row {
        justify-content: center;
    }

    .profile-avatar-xl,
    .profile-pro-cover .profile-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-metrics {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 10px 10px 0;
    }

    .profile-metrics article {
        min-height: 72px;
        padding: 10px;
    }

    .profile-metrics span {
        font-size: 11px;
    }

    .profile-main-grid {
        padding: 10px;
    }

    .profile-pet-card {
        min-height: 0;
        padding: 14px;
    }

    .profile-pet-card .profile-stage-copy {
        text-align: center;
    }

    .friend-list {
        grid-template-columns: 1fr;
    }
}

.profile-pro-cover {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
}

.profile-pro-cover .profile-avatar {
    margin-top: 4px;
}

.profile-cover-text {
    display: grid;
    justify-items: center;
}

.profile-special-badges {
    justify-content: center;
}

.profile-special-badge,
.profile-special-empty {
    border-radius: 999px;
}

.profile-metrics.public {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.profile-metric-button.message {
    border-color: rgba(255, 215, 95, .34);
    background:
        linear-gradient(145deg, rgba(255, 215, 95, .15), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .045);
}

.profile-metric-button.message::after {
    content: "Написать";
    background: rgba(255, 215, 95, .18);
    color: #ffe8a6;
}

.profile-friends-page {
    display: grid;
    gap: 14px;
    margin: 14px 16px 16px;
}

.profile-friends-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-friends-toolbar .secondary-button.active {
    border-color: rgba(255, 215, 95, .42);
    color: #ffe6a3;
    box-shadow: 0 0 22px rgba(255, 215, 95, .12);
}

.profile-friend-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-friend-search input {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(5, 7, 18, .42);
    color: #fff;
    font: inherit;
    outline: none;
}

.profile-friend-search input:focus {
    border-color: rgba(181, 141, 255, .55);
    box-shadow: 0 0 0 3px rgba(159, 124, 255, .14);
}

.profile-friend-results {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(159, 124, 255, .18);
    border-radius: 8px;
    background: rgba(159, 124, 255, .055);
}

.profile-section-title.compact {
    margin: 0;
}

.recommended-title {
    margin-top: 16px;
}

.profile-person-list,
.user-list {
    display: grid;
    gap: 9px;
}

.profile-person-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .035);
}

.profile-person-row.active {
    border-color: rgba(49, 208, 170, .32);
    background: rgba(49, 208, 170, .08);
}

.profile-person-open {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.profile-person-open span:last-child {
    min-width: 0;
}

.profile-person-open strong,
.profile-person-open small {
    display: block;
}

.profile-person-open strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-person-open small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.profile-person-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.friend-status-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(49, 208, 170, .14);
    color: #8bf1d8;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.friend-status-pill.muted {
    background: rgba(255, 255, 255, .08);
    color: #cfd2f0;
}

.mini-action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
}

.mini-action.add {
    border-color: rgba(49, 208, 170, .36);
    color: #8bf1d8;
}

.mini-action.accept {
    border-color: rgba(49, 208, 170, .36);
    color: #8bf1d8;
}

.mini-action.danger {
    border-color: rgba(255, 96, 132, .32);
    color: #ff8faf;
}

.profile-list-empty {
    margin: 8px 0 0;
}

.friend-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 8px;
}

.friend-item > span:nth-child(2) {
    min-width: 0;
}

.friend-item small,
.friend-item i {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.friend-item i {
    color: #8bf1d8;
    font-weight: 950;
}

@media (max-width: 620px) {
    .profile-friend-search {
        grid-template-columns: 1fr;
    }

    .profile-person-row {
        grid-template-columns: 1fr;
    }

    .profile-person-actions {
        justify-content: flex-start;
    }
}

.profile-cover-badge {
    display: none;
}

.profile-pro-cover {
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-special-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.profile-special-empty,
.profile-special-badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.profile-special-empty {
    color: #cfd2f0;
    font-weight: 800;
}

.profile-special-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
}

.profile-special-badge strong,
.profile-special-badge small {
    display: block;
}

.profile-special-badge small {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.profile-special-badge.gold {
    border-color: rgba(255, 215, 95, .48);
    background: linear-gradient(135deg, rgba(255, 215, 95, .24), rgba(255, 168, 41, .10));
    box-shadow: 0 0 30px rgba(255, 195, 56, .16);
}

.profile-special-badge.silver {
    border-color: rgba(214, 226, 255, .42);
    background: linear-gradient(135deg, rgba(214, 226, 255, .20), rgba(128, 153, 211, .09));
    box-shadow: 0 0 28px rgba(178, 204, 255, .13);
}

.profile-special-badge.bronze {
    border-color: rgba(232, 155, 92, .42);
    background: linear-gradient(135deg, rgba(232, 155, 92, .20), rgba(154, 77, 38, .09));
    box-shadow: 0 0 28px rgba(232, 125, 68, .12);
}

.profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-metrics article,
.profile-metric-button {
    min-height: 84px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
}

.profile-metric-button {
    appearance: none;
    border-color: rgba(178, 142, 255, .28);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-metric-button:hover {
    transform: translateY(-1px);
    border-color: rgba(210, 185, 255, .5);
    background:
        linear-gradient(145deg, rgba(166, 124, 255, .18), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .045);
}

.profile-metric-button::after {
    content: "Открыть";
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #ded6ff;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.profile-main-grid,
.profile-main-grid.public {
    grid-template-columns: 1fr;
}

.profile-pet-card {
    min-height: 462px;
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(260px, 1fr);
    align-items: center;
}

.profile-pet-card .profile-pet-visual {
    min-height: 330px;
}

.profile-pet-card .profile-pet-visual .parrot-layer-art {
    width: min(232px, 76vw);
}

.profile-pet-card .profile-pet-visual .pig-layer-art,
.profile-pet-card .profile-pet-visual .pig-full-art {
    width: min(250px, 78vw);
}

.profile-pet-card .profile-pet-visual .dragon-layer-art,
.profile-pet-card .profile-pet-visual .rhino-layer-art,
.profile-pet-card .profile-pet-visual .rhino-full-art,
.profile-pet-card .profile-pet-visual .pet-image-wrap,
.profile-pet-card .profile-pet-visual .pet-sleep-art,
.profile-pet-card .profile-pet-visual .cat-layer-art {
    width: min(262px, 80vw);
}

.profile-friends-drawer,
.profile-wall,
.public-profile-note {
    margin: 0 16px 16px;
}

.profile-wall {
    display: grid;
    gap: 14px;
}

.profile-wall-compose {
    display: grid;
    gap: 10px;
}

.profile-wall-text {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(5, 7, 18, .42);
    color: #fff;
    font: inherit;
    line-height: 1.45;
    outline: none;
}

.profile-wall-text:focus {
    border-color: rgba(181, 141, 255, .55);
    box-shadow: 0 0 0 3px rgba(159, 124, 255, .14);
}

.profile-wall-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.profile-wall-tools .primary-button {
    margin-left: auto;
}

.profile-wall-anonymous {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    color: #dcdff7;
    font-size: 12px;
    font-weight: 850;
}

.profile-wall-list {
    display: grid;
    gap: 12px;
}

.profile-wall-empty,
.profile-wall-post {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022)),
        rgba(255, 255, 255, .035);
}

.profile-wall-empty {
    padding: 18px;
    color: #d8daf2;
}

.profile-wall-empty p {
    margin-top: 6px;
    color: var(--muted);
}

.profile-wall-post {
    padding: 13px;
}

.profile-wall-post-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.profile-wall-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-wall-author strong,
.profile-wall-author small {
    display: block;
}

.profile-wall-author strong {
    color: #fff;
    font-size: 14px;
}

.profile-wall-author small,
.profile-wall-post-meta span {
    color: var(--muted);
    font-size: 11px;
}

.profile-wall-post-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.profile-wall-delete {
    border: 0;
    background: transparent;
    color: #ff8faf;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.profile-wall-post p {
    margin-top: 12px;
    color: #f6f4ff;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

.profile-wall-media {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .10);
}

@media (max-width: 760px) {
    .profile-pet-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .profile-pet-card .profile-pet-visual {
        min-height: 290px;
    }

    .profile-pet-card .profile-stage-copy {
        text-align: center;
    }
}

@media (max-width: 620px) {
    .profile-special-badges {
        justify-content: center;
    }

    .profile-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .profile-metrics article,
    .profile-metric-button {
        min-height: 74px;
        padding: 10px;
    }

    .profile-wall-tools .primary-button {
        width: 100%;
        margin-left: 0;
    }

    .profile-wall-post-head {
        display: grid;
    }

    .profile-wall-post-meta {
        justify-items: start;
        text-align: left;
    }
}

/* Wall reconstruction final override */
.profile-wall {
    isolation: isolate;
    overflow: hidden;
    margin: 0 12px 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 5% 0%, rgba(255, 76, 213, .36), transparent 31%),
        radial-gradient(circle at 98% 6%, rgba(55, 221, 192, .30), transparent 30%),
        radial-gradient(circle at 50% 116%, rgba(255, 215, 92, .18), transparent 34%),
        linear-gradient(138deg, rgba(31, 18, 74, .96), rgba(13, 20, 48, .95) 48%, rgba(17, 48, 54, .93));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .32),
        0 0 46px rgba(181, 140, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .13);
}

.profile-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .12), transparent 4%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .10), transparent 5%);
    background-size: 42px 42px, 42px 42px, auto, auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .74), transparent 78%);
    opacity: .36;
}

.profile-wall::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    pointer-events: none;
}

.profile-wall-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0 2px 9px;
}

.profile-wall-head::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background:
        radial-gradient(circle at 35% 28%, #fff8c7, transparent 20%),
        linear-gradient(135deg, #ff4fd8, #8f6bff 48%, #31d0aa);
    box-shadow:
        0 0 24px rgba(255, 79, 216, .32),
        inset 0 1px 0 rgba(255, 255, 255, .34);
}

.profile-wall-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffdaff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-wall-head h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 22px rgba(255, 79, 216, .26);
}

.profile-wall-head p,
.profile-wall-count {
    display: none !important;
}

.profile-wall-compose {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
        rgba(12, 15, 39, .54);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
}

.profile-wall-compose-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    color: #fff;
    font-size: 11px;
    text-transform: none;
}

.profile-wall-compose-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .78), transparent 18%),
        linear-gradient(135deg, #31d0aa, #8f6bff 58%, #ff4fd8);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 18px rgba(49, 208, 170, .24);
}

.profile-wall-text {
    min-height: 58px;
    max-height: 160px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(6, 8, 24, .45);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.profile-wall-text::placeholder {
    color: rgba(235, 229, 255, .50);
}

.profile-wall-text:focus {
    border-color: rgba(255, 79, 216, .50);
    box-shadow:
        0 0 0 3px rgba(255, 79, 216, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.profile-wall-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border-color: rgba(49, 208, 170, .26);
    border-radius: 10px;
    background: rgba(49, 208, 170, .075);
}

.profile-wall-preview img {
    width: 72px;
    height: 54px;
    border-radius: 8px;
}

.profile-wall-compose-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.profile-wall-counter {
    min-width: 50px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #cfd2ff;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.profile-wall-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-wall-photo-button,
.profile-wall-send,
.profile-wall-anonymous {
    min-height: 32px;
    border-radius: 9px;
    font-size: 10px;
}

.profile-wall-photo-button {
    border-color: rgba(49, 208, 170, .28);
    background: rgba(49, 208, 170, .10);
    color: #c7fff3;
}

.profile-wall-send {
    padding-inline: 12px;
    background: linear-gradient(135deg, #ff4fd8, #8f6bff 52%, #31d0aa);
    color: #fff;
    box-shadow: 0 0 26px rgba(181, 140, 255, .24);
}

.profile-wall-anonymous {
    padding: 0 9px;
    border-color: rgba(255, 215, 92, .24);
    background: rgba(255, 215, 92, .10);
    color: #ffeab1;
}

.profile-wall-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 0;
}

.profile-wall-empty {
    overflow: hidden;
    padding: 22px 16px;
    border: 1px dashed rgba(255, 255, 255, .20);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 79, 216, .16), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(49, 208, 170, .14), transparent 34%),
        rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.profile-wall-empty-orb {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 36% 30%, #fff7c0, transparent 22%),
        linear-gradient(135deg, #ff4fd8, #31d0aa);
    box-shadow: 0 0 34px rgba(255, 79, 216, .20);
}

.profile-wall-post {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 79, 216, .15), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.profile-wall-post:nth-child(3n + 2) {
    background:
        radial-gradient(circle at 100% 0%, rgba(49, 208, 170, .16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post:nth-child(3n + 3) {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 92, .14), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post::before {
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4fd8, #8f6bff, #31d0aa);
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 79, 216, .28);
}

.profile-wall-author .mini-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .035),
        0 0 22px rgba(181, 140, 255, .16);
}

.profile-wall-author strong {
    color: #fff;
    font-size: 13px;
}

.profile-wall-author small,
.profile-wall-post-meta {
    color: rgba(222, 224, 255, .72);
}

.profile-wall-post-meta small {
    color: rgba(222, 224, 255, .52);
}

.profile-wall-delete {
    color: #ffb2c6;
}

.profile-wall-post-line {
    gap: 6px;
    margin-top: 10px;
}

.profile-wall-post-line span,
.profile-wall-anon-badge {
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .075);
    color: #e8e5ff;
    font-size: 9px;
}

.profile-wall-anon-badge {
    border-color: rgba(255, 215, 92, .22);
    background: rgba(255, 215, 92, .15) !important;
    color: #fff0bd !important;
}

.profile-wall-post-text {
    margin: 9px 0 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.48;
}

.profile-wall-media-frame {
    margin-top: 10px;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .17);
}

@media (max-width: 620px) {
    .profile-wall {
        margin: 0 8px 14px;
        padding: 10px;
        border-radius: 13px;
    }

    .profile-wall-head {
        display: flex;
        padding: 0 0 8px;
    }

    .profile-wall-head h3 {
        font-size: 18px;
    }

    .profile-wall-compose {
        margin: 0 0 9px;
        padding: 8px;
    }

    .profile-wall-text {
        min-height: 52px;
        padding: 9px 10px;
    }

    .profile-wall-compose-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .profile-wall-counter {
        justify-self: start;
    }

    .profile-wall-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .profile-wall-photo-button,
    .profile-wall-anonymous,
    .profile-wall-send {
        width: 100%;
        justify-content: center;
    }

    .profile-wall-send {
        grid-column: 1 / -1;
    }

    .profile-wall-list {
        gap: 9px;
        padding: 0;
    }

    .profile-wall-post {
        padding: 12px;
    }
}

/* Wall interaction polish */
.profile-wall-head::before {
    content: none !important;
}

.profile-wall-owner-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .24), transparent 28%),
        linear-gradient(135deg, rgba(255, 79, 216, .32), rgba(49, 208, 170, .20));
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .045),
        0 0 30px rgba(255, 79, 216, .22);
}

.profile-wall-owner-avatar img,
.profile-wall-owner-avatar span {
    width: 100%;
    height: 100%;
}

.profile-wall-owner-avatar span {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.profile-wall-compose {
    gap: 0;
    padding: 7px;
    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.profile-wall-compose.expanded {
    gap: 8px;
    border-color: rgba(255, 79, 216, .28);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .22),
        0 0 30px rgba(181, 140, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .13);
}

.profile-wall-compose-toggle {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 6px 7px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(255, 255, 255, .035);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.profile-wall-compose-toggle strong {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-wall-compose-chevron {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: #ffeab1;
    font-size: 18px;
    line-height: 1;
    transition: transform .24s ease, background .24s ease;
}

.profile-wall-compose.expanded .profile-wall-compose-chevron {
    transform: rotate(180deg);
    background: rgba(255, 215, 92, .13);
}

.profile-wall-compose-body {
    display: grid;
    gap: 7px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height .34s ease,
        opacity .22s ease,
        transform .28s ease;
    pointer-events: none;
}

.profile-wall-compose.expanded .profile-wall-compose-body {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-wall-author-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.profile-wall-author-link:hover strong {
    color: #ffeab1;
}

.profile-wall-author-link:active {
    transform: translateY(1px);
}

.profile-wall-post-line {
    margin-top: 9px;
}

.profile-wall-post-head + .profile-wall-media-frame {
    margin-top: 8px;
}

.profile-wall-post-line + .profile-wall-media-frame,
.profile-wall-post-text + .profile-wall-media-frame {
    margin-top: 9px;
}

@media (max-width: 620px) {
    .profile-wall-owner-avatar {
        width: 38px;
        height: 38px;
    }

    .profile-wall-compose-toggle {
        min-height: 40px;
    }

    .profile-wall-compose.expanded .profile-wall-compose-body {
        max-height: 430px;
    }
}

/* Wall reconstruction v2 */
.profile-wall {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 12px 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 76, 213, .36), transparent 31%),
        radial-gradient(circle at 96% 4%, rgba(55, 221, 192, .30), transparent 29%),
        radial-gradient(circle at 54% 115%, rgba(255, 215, 92, .18), transparent 34%),
        linear-gradient(138deg, rgba(31, 18, 74, .96), rgba(13, 20, 48, .95) 48%, rgba(17, 48, 54, .93));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .32),
        0 0 46px rgba(181, 140, 255, .17),
        inset 0 1px 0 rgba(255, 255, 255, .13);
}

.profile-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .12), transparent 4%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .10), transparent 5%);
    background-size: 42px 42px, 42px 42px, auto, auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .74), transparent 78%);
    opacity: .36;
}

.profile-wall::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    pointer-events: none;
}

.profile-wall-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 0 2px 9px;
}

.profile-wall-head::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background:
        radial-gradient(circle at 35% 28%, #fff8c7, transparent 20%),
        linear-gradient(135deg, #ff4fd8, #8f6bff 48%, #31d0aa);
    box-shadow:
        0 0 24px rgba(255, 79, 216, .32),
        inset 0 1px 0 rgba(255, 255, 255, .34);
}

.profile-wall-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffdaff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-wall-head h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 22px rgba(255, 79, 216, .26);
}

.profile-wall-head p,
.profile-wall-count {
    display: none !important;
}

.profile-wall-compose {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
        rgba(12, 15, 39, .54);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
}

.profile-wall-compose-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    color: #fff;
    font-size: 11px;
    text-transform: none;
}

.profile-wall-compose-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .78), transparent 18%),
        linear-gradient(135deg, #31d0aa, #8f6bff 58%, #ff4fd8);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 18px rgba(49, 208, 170, .24);
}

.profile-wall-text {
    min-height: 58px;
    max-height: 160px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(6, 8, 24, .45);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.profile-wall-text::placeholder {
    color: rgba(235, 229, 255, .50);
}

.profile-wall-text:focus {
    border-color: rgba(255, 79, 216, .50);
    box-shadow:
        0 0 0 3px rgba(255, 79, 216, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.profile-wall-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border-color: rgba(49, 208, 170, .26);
    border-radius: 10px;
    background: rgba(49, 208, 170, .075);
}

.profile-wall-preview img {
    width: 72px;
    height: 54px;
    border-radius: 8px;
}

.profile-wall-preview button {
    min-height: 32px;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.profile-wall-compose-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.profile-wall-counter {
    min-width: 50px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #cfd2ff;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.profile-wall-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-wall-photo-button,
.profile-wall-send,
.profile-wall-anonymous {
    min-height: 32px;
    border-radius: 9px;
    font-size: 10px;
}

.profile-wall-photo-button {
    border-color: rgba(49, 208, 170, .28);
    background: rgba(49, 208, 170, .10);
    color: #c7fff3;
}

.profile-wall-send {
    padding-inline: 12px;
    background:
        linear-gradient(135deg, #ff4fd8, #8f6bff 52%, #31d0aa);
    color: #fff;
    box-shadow: 0 0 26px rgba(181, 140, 255, .24);
}

.profile-wall-anonymous {
    padding: 0 9px;
    border-color: rgba(255, 215, 92, .24);
    background: rgba(255, 215, 92, .10);
    color: #ffeab1;
}

.profile-wall-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 0;
}

.profile-wall-empty {
    overflow: hidden;
    padding: 22px 16px;
    border: 1px dashed rgba(255, 255, 255, .20);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 79, 216, .16), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(49, 208, 170, .14), transparent 34%),
        rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.profile-wall-empty-orb {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 36% 30%, #fff7c0, transparent 22%),
        linear-gradient(135deg, #ff4fd8, #31d0aa);
    box-shadow: 0 0 34px rgba(255, 79, 216, .20);
}

.profile-wall-post {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 79, 216, .15), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.profile-wall-post:nth-child(3n + 2) {
    background:
        radial-gradient(circle at 100% 0%, rgba(49, 208, 170, .16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post:nth-child(3n + 3) {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 92, .14), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post::before {
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4fd8, #8f6bff, #31d0aa);
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 79, 216, .28);
}

.profile-wall-author .mini-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .035),
        0 0 22px rgba(181, 140, 255, .16);
}

.profile-wall-author strong {
    color: #fff;
    font-size: 13px;
}

.profile-wall-author small,
.profile-wall-post-meta {
    color: rgba(222, 224, 255, .72);
}

.profile-wall-post-meta small {
    color: rgba(222, 224, 255, .52);
}

.profile-wall-delete {
    color: #ffb2c6;
}

.profile-wall-post-line {
    gap: 6px;
    margin-top: 10px;
}

.profile-wall-post-line span,
.profile-wall-anon-badge {
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .075);
    color: #e8e5ff;
    font-size: 9px;
}

.profile-wall-anon-badge {
    border-color: rgba(255, 215, 92, .22);
    background: rgba(255, 215, 92, .15) !important;
    color: #fff0bd !important;
}

.profile-wall-post-text {
    margin: 9px 0 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.48;
}

.profile-wall-media-frame {
    margin-top: 10px;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .17);
}

@media (max-width: 620px) {
    .profile-wall {
        margin: 0 8px 14px;
        padding: 10px;
        border-radius: 13px;
    }

    .profile-wall-head {
        grid-template-columns: none;
        padding: 0 0 8px;
    }

    .profile-wall-head h3 {
        font-size: 18px;
    }

    .profile-wall-compose {
        margin: 0 0 9px;
        padding: 8px;
    }

    .profile-wall-text {
        min-height: 52px;
        padding: 9px 10px;
    }

    .profile-wall-compose-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .profile-wall-counter {
        justify-self: start;
    }

    .profile-wall-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .profile-wall-photo-button,
    .profile-wall-anonymous,
    .profile-wall-send {
        width: 100%;
        justify-content: center;
    }

    .profile-wall-send {
        grid-column: 1 / -1;
    }

    .profile-wall-list {
        gap: 9px;
        padding: 0;
    }

    .profile-wall-post {
        padding: 12px;
    }
}

/* Final profile layout fix */
.hidden,
.view.hidden,
.profile-friends-page.hidden,
.profile-public-friends-panel.hidden,
.public-profile-body.hidden {
    display: none !important;
}

.profile-pro-cover,
.profile-pro-cover.public,
.user-detail .profile-pro-cover {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    min-height: 0;
    padding: 18px 16px;
}

.profile-pro-cover .profile-avatar,
.profile-avatar-xl {
    order: 1;
    width: 108px;
    height: 108px;
}

.profile-pro-cover .profile-cover-text {
    order: 2;
    display: grid;
    justify-items: center;
    width: 100%;
}

.profile-pro-cover .profile-cover-text h2 {
    margin-top: 4px;
    font-size: clamp(28px, 7vw, 42px);
}

.profile-special-badges {
    width: 100%;
    justify-content: center !important;
    gap: 7px;
    margin-top: 10px;
}

.profile-special-empty {
    display: none !important;
}

.profile-special-badge {
    min-height: 28px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    line-height: 1.08 !important;
    text-align: center !important;
}

.profile-special-badge small {
    display: none !important;
}

.profile-special-badge strong {
    display: grid !important;
    gap: 2px;
    white-space: normal;
}

.profile-special-badge strong span,
.profile-special-badge strong em {
    display: block;
    font-style: normal;
    white-space: nowrap;
}

.profile-metrics.public {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
}

.profile-metrics.public.has-message {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-metrics.public article,
.profile-metrics.public .profile-metric-button {
    min-width: 0;
    min-height: 64px;
    padding: 8px 7px;
}

.profile-metrics.public span {
    font-size: 10px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.profile-metrics.public strong {
    margin-top: 5px;
    font-size: clamp(16px, 4.2vw, 22px);
}

.profile-metrics.public .profile-metric-button::after {
    display: none;
}

/* Liquid glass buttons v2 */
.primary-button,
.open-button,
.secondary-button,
.ghost-button,
.topup-package,
.casino-chip-row button,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    border-radius: 16px;
    background-clip: padding-box;
}

.primary-button,
.open-button {
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .42), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .20), transparent 30%),
        linear-gradient(135deg, rgba(150, 116, 255, .96), rgba(209, 84, 255, .88) 48%, rgba(255, 78, 184, .92));
    box-shadow:
        0 18px 44px rgba(159, 124, 255, .32),
        0 0 30px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .58),
        inset 0 -18px 32px rgba(34, 10, 92, .18);
}

.secondary-button,
.ghost-button,
.ghost-button.inline,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .24), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
        rgba(14, 12, 30, .68);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -14px 26px rgba(86, 58, 148, .08);
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before {
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 34% 6%, rgba(255, 255, 255, .44), transparent 24%),
        radial-gradient(ellipse at 65% 106%, rgba(85, 241, 255, .13), transparent 36%),
        linear-gradient(120deg, transparent 4%, rgba(255, 255, 255, .14) 30%, transparent 56%);
    opacity: .62;
    transform: none;
    animation: liquid-glass-flow 8s ease-in-out infinite;
}

.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    content: none;
    display: none;
}

.primary-button:hover,
.open-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.topup-package:hover,
.casino-chip-row button:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    transform: translateY(-2px) scale(1.008);
}

.primary-button:hover::before,
.open-button:hover::before,
.secondary-button:hover::before,
.ghost-button:hover::before,
.topup-package:hover::before,
.casino-chip-row button:hover::before,
.icon-button:hover::before,
.profile-settings-button:hover::before,
.profile-metric-button:hover::before,
.request-actions button:hover::before,
.home-news-meta button:hover::before,
.profile-wall-photo-button:hover::before,
.profile-wall-preview button:hover::before {
    opacity: .86;
    transform: none;
}

.pet-actions.menu-switching .secondary-button,
.pet-actions.menu-switching .secondary-button:hover,
.pet-actions.menu-switching .secondary-button:focus,
.pet-actions.menu-switching .secondary-button:active,
.pet-actions.sub-menu .secondary-button:hover,
.pet-actions.sub-menu .secondary-button:focus {
    transform: none !important;
    border-color: rgba(255, 255, 255, .18) !important;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .24), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
        rgba(14, 12, 30, .68) !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -14px 26px rgba(86, 58, 148, .08) !important;
}

/* Final casino tabs and tactile click layer */
.casino-mode-switch {
    gap: 8px;
    padding: 6px;
    border-color: rgba(255, 255, 255, .16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(10, 8, 24, .62);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.casino-mode {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(15, 12, 30, .54);
    color: #d9d2f4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .20),
        inset 0 -10px 22px rgba(86, 58, 148, .06);
    transition:
        transform .2s cubic-bezier(.2, .8, .2, 1),
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.casino-mode.active {
    border-color: rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .44), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .20), transparent 30%),
        linear-gradient(135deg, rgba(150, 116, 255, .96), rgba(209, 84, 255, .88) 48%, rgba(255, 78, 184, .92));
    color: #fff;
    box-shadow:
        0 14px 30px rgba(159, 124, 255, .30),
        0 0 24px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .54),
        inset 0 -14px 28px rgba(34, 10, 92, .16);
}

.casino-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 34% 6%, rgba(255, 255, 255, .42), transparent 24%),
        radial-gradient(ellipse at 65% 106%, rgba(85, 241, 255, .13), transparent 36%),
        linear-gradient(120deg, transparent 4%, rgba(255, 255, 255, .13) 30%, transparent 56%);
    opacity: .62;
    pointer-events: none;
    animation: liquid-glass-flow 8s ease-in-out infinite;
}

.casino-mode::after {
    content: none;
    display: none;
}

.primary-button.is-pressing,
.open-button.is-pressing,
.secondary-button.is-pressing,
.ghost-button.is-pressing,
.topup-package.is-pressing,
.casino-mode.is-pressing,
.casino-chip-row button.is-pressing,
.icon-button.is-pressing,
.profile-settings-button.is-pressing,
.profile-metric-button.is-pressing,
.request-actions button.is-pressing,
.home-news-meta button.is-pressing,
.profile-wall-photo-button.is-pressing,
.profile-wall-preview button.is-pressing {
    animation: liquid-button-press .34s cubic-bezier(.2, .8, .2, 1) !important;
}

.primary-button:active,
.open-button:active,
.secondary-button:active,
.ghost-button:active,
.topup-package:active,
.casino-mode:active,
.casino-chip-row button:active,
.icon-button:active,
.profile-settings-button:active,
.profile-metric-button:active,
.request-actions button:active,
.home-news-meta button:active,
.profile-wall-photo-button:active,
.profile-wall-preview button:active {
    transform: translateY(2px) scale(.965) !important;
    filter: brightness(.96) saturate(1.1);
}

.primary-button.is-pressing::before,
.open-button.is-pressing::before,
.secondary-button.is-pressing::before,
.ghost-button.is-pressing::before,
.topup-package.is-pressing::before,
.casino-mode.is-pressing::before,
.casino-chip-row button.is-pressing::before,
.icon-button.is-pressing::before,
.profile-settings-button.is-pressing::before,
.profile-metric-button.is-pressing::before,
.request-actions button.is-pressing::before,
.home-news-meta button.is-pressing::before,
.profile-wall-photo-button.is-pressing::before,
.profile-wall-preview button.is-pressing::before {
    animation: liquid-button-flash .34s cubic-bezier(.2, .8, .2, 1) !important;
}

/* Final tactile liquid glass buttons */
.casino-mode-switch {
    gap: 8px;
    padding: 6px;
    border-color: rgba(255, 255, 255, .16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(10, 8, 24, .62);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.primary-button,
.open-button,
.secondary-button,
.ghost-button,
.topup-package,
.casino-mode,
.casino-chip-row button,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 16px;
    transform: translateZ(0);
    background-clip: padding-box;
    transition:
        transform .2s cubic-bezier(.2, .8, .2, 1),
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        opacity .22s ease;
    -webkit-tap-highlight-color: transparent;
}

.casino-mode {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(15, 12, 30, .54);
    color: #d9d2f4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .20),
        inset 0 -10px 22px rgba(86, 58, 148, .06);
}

.casino-mode.active {
    border-color: rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .44), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .20), transparent 30%),
        linear-gradient(135deg, rgba(150, 116, 255, .96), rgba(209, 84, 255, .88) 48%, rgba(255, 78, 184, .92));
    color: #fff;
    box-shadow:
        0 14px 30px rgba(159, 124, 255, .30),
        0 0 24px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .54),
        inset 0 -14px 28px rgba(34, 10, 92, .16);
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-mode::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 34% 6%, rgba(255, 255, 255, .42), transparent 24%),
        radial-gradient(ellipse at 65% 106%, rgba(85, 241, 255, .13), transparent 36%),
        linear-gradient(120deg, transparent 4%, rgba(255, 255, 255, .13) 30%, transparent 56%);
    opacity: .62;
    pointer-events: none;
    animation: liquid-glass-flow 8s ease-in-out infinite;
}

.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-mode::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    content: none;
    display: none;
}

.primary-button > *,
.open-button > *,
.secondary-button > *,
.ghost-button > *,
.topup-package > *,
.casino-mode > *,
.casino-chip-row button > *,
.icon-button > *,
.profile-settings-button > *,
.profile-metric-button > *,
.request-actions button > *,
.home-news-meta button > *,
.profile-wall-photo-button > *,
.profile-wall-preview button > * {
    position: relative;
    z-index: 1;
}

.primary-button:hover,
.open-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.topup-package:hover,
.casino-mode:hover,
.casino-chip-row button:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    transform: translateY(-2px) scale(1.008);
}

.primary-button.is-pressing,
.open-button.is-pressing,
.secondary-button.is-pressing,
.ghost-button.is-pressing,
.topup-package.is-pressing,
.casino-mode.is-pressing,
.casino-chip-row button.is-pressing,
.icon-button.is-pressing,
.profile-settings-button.is-pressing,
.profile-metric-button.is-pressing,
.request-actions button.is-pressing,
.home-news-meta button.is-pressing,
.profile-wall-photo-button.is-pressing,
.profile-wall-preview button.is-pressing {
    animation: liquid-button-press .34s cubic-bezier(.2, .8, .2, 1);
}

.primary-button:active,
.open-button:active,
.secondary-button:active,
.ghost-button:active,
.topup-package:active,
.casino-mode:active,
.casino-chip-row button:active,
.icon-button:active,
.profile-settings-button:active,
.profile-metric-button:active,
.request-actions button:active,
.home-news-meta button:active,
.profile-wall-photo-button:active,
.profile-wall-preview button:active {
    transform: translateY(2px) scale(.965);
    filter: brightness(.96) saturate(1.1);
}

.primary-button.is-pressing::before,
.open-button.is-pressing::before,
.secondary-button.is-pressing::before,
.ghost-button.is-pressing::before,
.topup-package.is-pressing::before,
.casino-mode.is-pressing::before,
.casino-chip-row button.is-pressing::before,
.icon-button.is-pressing::before,
.profile-settings-button.is-pressing::before,
.profile-metric-button.is-pressing::before,
.request-actions button.is-pressing::before,
.home-news-meta button.is-pressing::before,
.profile-wall-photo-button.is-pressing::before,
.profile-wall-preview button.is-pressing::before {
    animation: liquid-button-flash .34s cubic-bezier(.2, .8, .2, 1);
}

@keyframes liquid-button-press {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    42% {
        transform: translateY(3px) scale(.955);
        filter: brightness(.94) saturate(1.08);
    }

    72% {
        transform: translateY(-1px) scale(1.012);
        filter: brightness(1.04) saturate(1.12);
    }

    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes liquid-button-flash {
    0% {
        opacity: .62;
    }

    42% {
        opacity: .92;
        filter: blur(.2px) brightness(1.12);
    }

    100% {
        opacity: .62;
    }
}

@media (hover: none), (pointer: coarse) {
    .primary-button:hover,
    .open-button:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .ghost-button.inline:hover,
    .topup-package:hover,
    .casino-mode:hover,
    .casino-chip-row button:hover,
    .icon-button:hover,
    .profile-settings-button:hover,
    .profile-metric-button:hover,
    .request-actions button:hover,
    .home-news-meta button:hover,
    .profile-wall-photo-button:hover,
    .profile-wall-preview button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button.is-pressing,
    .open-button.is-pressing,
    .secondary-button.is-pressing,
    .ghost-button.is-pressing,
    .topup-package.is-pressing,
    .casino-mode.is-pressing,
    .casino-chip-row button.is-pressing,
    .icon-button.is-pressing,
    .profile-settings-button.is-pressing,
    .profile-metric-button.is-pressing,
    .request-actions button.is-pressing,
    .home-news-meta button.is-pressing,
    .profile-wall-photo-button.is-pressing,
    .profile-wall-preview button.is-pressing {
        animation: none;
    }
}

.primary-button:hover,
.open-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.topup-package:hover,
.casino-chip-row button:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    transform: translateY(-2px) scale(1.008);
}

.primary-button:hover,
.open-button:hover {
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .48), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .23), transparent 30%),
        linear-gradient(135deg, rgba(164, 132, 255, .98), rgba(217, 93, 255, .92) 48%, rgba(255, 86, 190, .96));
    box-shadow:
        0 22px 52px rgba(159, 124, 255, .38),
        0 0 36px rgba(255, 78, 184, .26),
        inset 0 1px 0 rgba(255, 255, 255, .62),
        inset 0 -18px 32px rgba(34, 10, 92, .16);
}

.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    border-color: rgba(255, 255, 255, .26);
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .30), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .18), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
        rgba(18, 14, 38, .76);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .24),
        0 0 22px rgba(199, 125, 255, .12),
        inset 0 1px 0 rgba(255, 255, 255, .34),
        inset 0 -14px 26px rgba(86, 58, 148, .08);
}

.primary-button:hover::before,
.open-button:hover::before,
.secondary-button:hover::before,
.ghost-button:hover::before,
.topup-package:hover::before,
.casino-chip-row button:hover::before,
.icon-button:hover::before,
.profile-settings-button:hover::before,
.profile-metric-button:hover::before,
.request-actions button:hover::before,
.home-news-meta button:hover::before,
.profile-wall-photo-button:hover::before,
.profile-wall-preview button:hover::before {
    opacity: .86;
    transform: none;
}

@media (hover: none), (pointer: coarse) {
    .primary-button:hover,
    .open-button:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .ghost-button.inline:hover,
    .topup-package:hover,
    .casino-chip-row button:hover,
    .icon-button:hover,
    .profile-settings-button:hover,
    .profile-metric-button:hover,
    .request-actions button:hover,
    .home-news-meta button:hover,
    .profile-wall-photo-button:hover,
    .profile-wall-preview button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button,
    .open-button,
    .secondary-button,
    .ghost-button,
    .topup-package,
    .casino-chip-row button,
    .icon-button,
    .profile-settings-button,
    .profile-metric-button,
    .request-actions button,
    .home-news-meta button,
    .profile-wall-photo-button,
    .profile-wall-preview button,
    .primary-button::before,
    .open-button::before,
    .secondary-button::before,
    .ghost-button::before,
    .topup-package::before,
    .casino-chip-row button::before,
    .icon-button::before,
    .profile-settings-button::before,
    .profile-metric-button::before,
    .request-actions button::before,
    .home-news-meta button::before,
    .profile-wall-photo-button::before,
    .profile-wall-preview button::before {
        animation: none;
        transition: none;
    }
}

@keyframes liquid-glass-flow {
    0%,
    100% {
        background-position: 0% 0%, 100% 100%, -30% 0%;
        filter: saturate(1);
    }

    50% {
        background-position: 10% 4%, 92% 90%, 130% 0%;
        filter: saturate(1.12) brightness(1.03);
    }
}

@media (hover: none), (pointer: coarse) {
    .primary-button:hover,
    .open-button:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .ghost-button.inline:hover,
    .topup-package:hover,
    .casino-chip-row button:hover,
    .icon-button:hover,
    .profile-settings-button:hover,
    .profile-metric-button:hover,
    .request-actions button:hover,
    .home-news-meta button:hover,
    .profile-wall-photo-button:hover,
    .profile-wall-preview button:hover {
        transform: none;
    }

    .pet-actions .secondary-button:hover {
        border-color: rgba(255, 255, 255, .18);
        background:
            radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .24), transparent 24%),
            radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .14), transparent 34%),
            linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
            rgba(14, 12, 30, .68);
        box-shadow:
            0 12px 28px rgba(0, 0, 0, .22),
            inset 0 1px 0 rgba(255, 255, 255, .30),
            inset 0 -14px 26px rgba(86, 58, 148, .08);
    }
}

.profile-friends-page {
    display: grid;
    gap: 12px;
    width: auto;
    max-width: calc(100% - 20px);
    margin: 12px 10px 14px;
    overflow: hidden;
}

.profile-friends-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, max-content));
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.profile-friends-toolbar .ghost-button,
.profile-friends-toolbar .secondary-button {
    min-width: 112px;
    min-height: 40px;
    justify-content: center;
    text-align: center;
}

.profile-friend-search {
    grid-template-columns: minmax(0, 1fr) auto;
}

.profile-friend-search input {
    min-width: 0;
}

.profile-person-list {
    width: 100%;
}

.profile-person-row {
    width: 100%;
    min-width: 0;
}

.profile-person-open {
    min-width: 0;
}

.profile-person-actions {
    min-width: 0;
}

.friend-item {
    width: 100% !important;
    min-width: 0;
}

.public-profile-body {
    display: block;
}

.profile-public-friends-panel {
    margin: 12px 10px 14px;
}

@media (max-width: 430px) {
    .profile-metrics.public.has-message {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .profile-metrics.public article,
    .profile-metrics.public .profile-metric-button {
        min-height: 58px;
        padding: 7px 5px;
    }

    .profile-metrics.public span {
        font-size: 9px;
    }

    .profile-metrics.public strong {
        font-size: 15px;
    }

    .profile-friend-search {
        grid-template-columns: 1fr;
    }

    .profile-friends-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-friends-toolbar .ghost-button,
    .profile-friends-toolbar .secondary-button {
        min-width: 0;
        width: 100%;
    }
}

/* Wall redesign */
.profile-wall {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0 16px 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(176, 132, 255, .18);
    background:
        radial-gradient(circle at 16% 0%, rgba(202, 85, 255, .18), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(49, 208, 170, .10), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        rgba(9, 11, 24, .86);
}

.profile-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 100%);
    background-size: 46px 46px;
    opacity: .18;
}

.profile-wall-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 18px 18px 0;
}

.profile-wall-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #d9ceff;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.profile-wall-head h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1;
}

.profile-wall-head p {
    max-width: 520px;
    margin: 7px 0 0;
    color: #cfd2f0;
    font-size: 13px;
    line-height: 1.4;
}

.profile-wall-count {
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)),
        rgba(255, 255, 255, .055);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}

.profile-wall-compose {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0 14px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(4, 6, 18, .42);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .035),
        0 18px 38px rgba(0, 0, 0, .14);
}

.profile-wall-compose-top {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.profile-wall-compose-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(159, 124, 255, .32), rgba(255, 79, 216, .16));
    color: #fff;
}

.profile-wall-text {
    width: 100%;
    min-height: 112px;
    max-height: 260px;
    resize: vertical;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(2, 4, 14, .48);
    color: #fff;
    font: inherit;
    line-height: 1.48;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-wall-text::placeholder {
    color: rgba(214, 216, 244, .54);
}

.profile-wall-text:focus {
    border-color: rgba(191, 154, 255, .62);
    background: rgba(2, 4, 14, .62);
    box-shadow: 0 0 0 3px rgba(159, 124, 255, .14);
}

.profile-wall-preview {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.profile-wall-preview img {
    width: 108px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.profile-wall-preview button {
    justify-self: start;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 96, 132, .28);
    border-radius: 8px;
    background: rgba(255, 96, 132, .08);
    color: #ff9bb6;
    cursor: pointer;
    font-weight: 900;
}

.profile-wall-compose-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.profile-wall-counter {
    min-width: 54px;
    color: #aeb3dc;
    font-size: 11px;
    font-weight: 900;
}

.profile-wall-counter.near-limit {
    color: #ffe08b;
}

.profile-wall-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.profile-wall-photo-button,
.profile-wall-send {
    min-height: 38px;
}

.profile-wall-anonymous {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    color: #dcdff7;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.profile-wall-anonymous input {
    accent-color: #b58cff;
}

.profile-wall-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.profile-wall-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 30px 18px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(255, 255, 255, .025);
    color: #fff;
    text-align: center;
}

.profile-wall-empty-orb {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 95, .32), rgba(159, 124, 255, .12));
    color: #ffe7a7;
    font-size: 22px;
    box-shadow: 0 0 30px rgba(255, 215, 95, .14);
}

.profile-wall-empty p {
    max-width: 300px;
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
}

.profile-wall-post {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .026)),
        rgba(255, 255, 255, .038);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .028),
        0 18px 36px rgba(0, 0, 0, .12);
}

.profile-wall-post::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #b58cff, #ff4fd8, #31d0aa);
    opacity: .85;
}

.profile-wall-post-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.profile-wall-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-wall-author .mini-avatar {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.profile-wall-author strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-wall-author small {
    display: block;
    margin-top: 2px;
    color: #aeb3dc;
    font-size: 11px;
}

.profile-wall-post-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: #aeb3dc;
    font-size: 11px;
    text-align: right;
}

.profile-wall-post-meta small {
    color: rgba(207, 210, 240, .64);
}

.profile-wall-delete {
    margin-top: 4px;
    border: 0;
    background: transparent;
    color: #ff8faf;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.profile-wall-post-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.profile-wall-post-line span,
.profile-wall-anon-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #cfd2f0;
    font-size: 10px;
    font-weight: 950;
}

.profile-wall-anon-badge {
    background: rgba(255, 215, 95, .16) !important;
    color: #ffe6a3 !important;
}

.profile-wall-post-text {
    margin-top: 10px;
    color: #f8f6ff;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.profile-wall-media-frame {
    margin: 12px 0 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(0, 0, 0, .22);
}

.profile-wall-media {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

@media (max-width: 620px) {
    .profile-wall {
        margin: 0 10px 14px;
    }

    .profile-wall-head {
        grid-template-columns: 1fr;
        padding: 16px 14px 0;
    }

    .profile-wall-count {
        justify-self: start;
        min-width: 42px;
        min-height: 38px;
        font-size: 17px;
    }

    .profile-wall-compose {
        margin: 0 10px;
        padding: 11px;
    }

    .profile-wall-compose-footer {
        grid-template-columns: 1fr;
    }

    .profile-wall-tools {
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-wall-photo-button,
    .profile-wall-send,
    .profile-wall-anonymous {
        width: 100%;
        justify-content: center;
    }

    .profile-wall-preview {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .profile-wall-preview img {
        width: 86px;
        height: 66px;
    }

    .profile-wall-list {
        padding: 0 10px 10px;
    }

    .profile-wall-post-head {
        grid-template-columns: 1fr;
    }

    .profile-wall-post-meta {
        justify-items: start;
        text-align: left;
    }
}

/* Wall reconstruction definitive */
.profile-wall {
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 10px;
    margin: 0 12px 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 76, 213, .38), transparent 31%),
        radial-gradient(circle at 98% 6%, rgba(55, 221, 192, .31), transparent 30%),
        radial-gradient(circle at 50% 118%, rgba(255, 215, 92, .18), transparent 34%),
        linear-gradient(138deg, rgba(31, 18, 74, .96), rgba(13, 20, 48, .95) 48%, rgba(17, 48, 54, .93));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .32),
        0 0 46px rgba(181, 140, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .13);
}

.profile-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .12), transparent 4%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .10), transparent 5%);
    background-size: 42px 42px, 42px 42px, auto, auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .74), transparent 78%);
    opacity: .36;
}

.profile-wall::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    pointer-events: none;
}

.profile-wall-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0 2px;
}

.profile-wall-head::before {
    content: none !important;
}

.profile-wall-kicker {
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #ffdaff;
    font-size: 9px;
    letter-spacing: 0;
}

.profile-wall-head h3 {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 22px rgba(255, 79, 216, .26);
}

.profile-wall-head p,
.profile-wall-count {
    display: none !important;
}

.profile-wall-compose {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
        rgba(12, 15, 39, .54);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.profile-wall-compose-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    color: #fff;
    font-size: 11px;
    text-transform: none;
}

.profile-wall-compose-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .78), transparent 18%),
        linear-gradient(135deg, #31d0aa, #8f6bff 58%, #ff4fd8);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 18px rgba(49, 208, 170, .24);
}

.profile-wall-text {
    min-height: 58px;
    max-height: 160px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(6, 8, 24, .45);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.profile-wall-text::placeholder {
    color: rgba(235, 229, 255, .50);
}

.profile-wall-text:focus {
    border-color: rgba(255, 79, 216, .50);
    box-shadow:
        0 0 0 3px rgba(255, 79, 216, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.profile-wall-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border-color: rgba(49, 208, 170, .26);
    border-radius: 10px;
    background: rgba(49, 208, 170, .075);
}

.profile-wall-preview img {
    width: 72px;
    height: 54px;
    border-radius: 8px;
}

.profile-wall-compose-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.profile-wall-counter {
    min-width: 50px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #cfd2ff;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.profile-wall-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-wall-photo-button,
.profile-wall-send,
.profile-wall-anonymous {
    min-height: 32px;
    border-radius: 9px;
    font-size: 10px;
}

.profile-wall-photo-button {
    border-color: rgba(49, 208, 170, .28);
    background: rgba(49, 208, 170, .10);
    color: #c7fff3;
}

.profile-wall-send {
    padding-inline: 12px;
    background: linear-gradient(135deg, #ff4fd8, #8f6bff 52%, #31d0aa);
    color: #fff;
    box-shadow: 0 0 26px rgba(181, 140, 255, .24);
}

.profile-wall-anonymous {
    padding: 0 9px;
    border-color: rgba(255, 215, 92, .24);
    background: rgba(255, 215, 92, .10);
    color: #ffeab1;
}

.profile-wall-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 0;
}

.profile-wall-empty {
    overflow: hidden;
    padding: 22px 16px;
    border: 1px dashed rgba(255, 255, 255, .20);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 79, 216, .16), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(49, 208, 170, .14), transparent 34%),
        rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.profile-wall-empty-orb {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 36% 30%, #fff7c0, transparent 22%),
        linear-gradient(135deg, #ff4fd8, #31d0aa);
    box-shadow: 0 0 34px rgba(255, 79, 216, .20);
}

.profile-wall-post {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 79, 216, .15), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.profile-wall-post:nth-child(3n + 2) {
    background:
        radial-gradient(circle at 100% 0%, rgba(49, 208, 170, .16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post:nth-child(3n + 3) {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 92, .14), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(10, 14, 35, .62);
}

.profile-wall-post::before {
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4fd8, #8f6bff, #31d0aa);
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 79, 216, .28);
}

.profile-wall-author .mini-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .035),
        0 0 22px rgba(181, 140, 255, .16);
}

.profile-wall-author strong {
    color: #fff;
    font-size: 13px;
}

.profile-wall-author small,
.profile-wall-post-meta {
    color: rgba(222, 224, 255, .72);
}

.profile-wall-post-meta small {
    color: rgba(222, 224, 255, .52);
}

.profile-wall-delete {
    color: #ffb2c6;
}

.profile-wall-post-line {
    gap: 6px;
    margin-top: 10px;
}

.profile-wall-post-line span,
.profile-wall-anon-badge {
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .075);
    color: #e8e5ff;
    font-size: 9px;
}

.profile-wall-anon-badge {
    border-color: rgba(255, 215, 92, .22);
    background: rgba(255, 215, 92, .15) !important;
    color: #fff0bd !important;
}

.profile-wall-post-text {
    margin: 9px 0 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.48;
}

.profile-wall-media-frame {
    margin-top: 10px;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .17);
}

@media (max-width: 620px) {
    .profile-wall {
        margin: 0 8px 14px;
        padding: 10px;
        border-radius: 13px;
    }

    .profile-wall-head {
        display: flex;
        padding: 0 0 8px;
    }

    .profile-wall-head h3 {
        font-size: 18px;
    }

    .profile-wall-compose {
        margin: 0;
        padding: 8px;
    }

    .profile-wall-text {
        min-height: 52px;
        padding: 9px 10px;
    }

    .profile-wall-compose-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .profile-wall-counter {
        justify-self: start;
    }

    .profile-wall-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .profile-wall-photo-button,
    .profile-wall-anonymous,
    .profile-wall-send {
        width: 100%;
        justify-content: center;
    }

    .profile-wall-send {
        grid-column: 1 / -1;
    }

    .profile-wall-list {
        gap: 9px;
        padding: 0;
    }

    .profile-wall-post {
        padding: 12px;
    }
}

/* Profile settings */
.profile-settings-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .22), transparent 24%),
        linear-gradient(135deg, rgba(255, 79, 216, .22), rgba(49, 208, 170, .12));
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 24px rgba(181, 140, 255, .14);
}

.profile-settings-button:active {
    transform: translateY(1px);
}

.profile-settings-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-color: rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 79, 216, .20), transparent 30%),
        radial-gradient(circle at 100% 10%, rgba(49, 208, 170, .14), transparent 28%),
        rgba(12, 14, 34, .78);
}

.profile-panel.profile-panel-standalone {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-panel.profile-panel-standalone::before,
.profile-panel.profile-panel-standalone > .profile-cover,
.profile-panel.profile-panel-standalone > .profile-metrics,
.profile-panel.profile-panel-standalone > #profileSettingsDrawer,
.profile-panel.profile-panel-standalone > #profileFriendsDrawer,
.profile-panel.profile-panel-standalone > #profileMainGrid {
    display: none !important;
}

.profile-standalone-page {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 0 0 92px;
}

.profile-standalone-page.hidden {
    display: none !important;
}

.profile-standalone-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(159, 124, 255, .22), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
        rgba(10, 12, 28, .70);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 18px 34px rgba(0, 0, 0, .18);
}

.profile-standalone-toolbar h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 20px;
}

.profile-full-content {
    display: grid;
    gap: 14px;
}

.profile-settings-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.profile-settings-toolbar strong {
    color: #fff;
    font-size: 16px;
}

.profile-settings-content {
    display: grid;
    gap: 10px;
}

.profile-settings-menu,
.profile-frame-list,
.profile-badge-toggle-list,
.profile-privacy-list {
    display: grid;
    gap: 9px;
}

.profile-settings-tile,
.profile-frame-option,
.profile-badge-toggle,
.profile-privacy-row,
.profile-private-toggle,
.profile-wall-locked-compose,
.profile-private-notice {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .035);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.profile-settings-tile,
.profile-frame-option,
.profile-badge-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    cursor: pointer;
    text-align: left;
}

.profile-settings-tile > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
}

.profile-settings-tile strong,
.profile-frame-option strong,
.profile-badge-toggle strong,
.profile-privacy-row strong,
.profile-private-toggle strong,
.profile-wall-locked-compose strong,
.profile-private-notice strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.profile-settings-tile small,
.profile-frame-option small,
.profile-badge-toggle small,
.profile-privacy-row small,
.profile-private-toggle small,
.profile-wall-locked-compose span,
.profile-private-notice p {
    display: block;
    margin: 3px 0 0;
    color: rgba(222, 224, 255, .70);
    font-size: 11px;
    line-height: 1.35;
}

.profile-frame-option.active,
.profile-badge-toggle.enabled {
    border-color: rgba(255, 215, 92, .32);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 215, 92, .13), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
}

.profile-frame-option i,
.profile-badge-toggle i {
    min-width: 54px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffeab1;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.profile-frame-preview {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

.profile-frame-preview .profile-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
}

.profile-frame-preview .profile-avatar.premium-red-frame::before {
    width: calc(var(--avatar-frame-width, 108px) * .52);
    height: calc(var(--avatar-frame-height, 108px) * .52);
}

.profile-frame-preview .profile-avatar.premium-red-frame::after {
    inset: -8px;
}

.profile-badge-sample {
    min-width: 74px;
}

.profile-badge-sample .profile-special-badge {
    transform: scale(.86);
    transform-origin: left center;
}

.profile-privacy-row,
.profile-private-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
}

.profile-privacy-row select {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(7, 10, 28, .82);
    color: #fff;
    padding: 0 9px;
    font-weight: 800;
}

.profile-private-toggle input {
    width: 22px;
    height: 22px;
    accent-color: #b58cff;
}

.profile-settings-empty,
.profile-private-notice {
    padding: 16px;
    text-align: center;
}

.referral-panel {
    display: grid;
    gap: 14px;
}

.referral-hero,
.referral-progress-card,
.referral-reward-grid article,
.referral-rules,
.referral-link-card {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(181, 140, 255, .26), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(85, 241, 255, .14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 18px 36px rgba(3, 5, 18, .22);
}

.referral-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    overflow: hidden;
    padding: 18px;
    min-height: 168px;
    background:
        radial-gradient(circle at 14% 42%, rgba(255, 228, 129, .16), transparent 23%),
        radial-gradient(circle at 76% 8%, rgba(255, 79, 216, .22), transparent 30%),
        linear-gradient(145deg, rgba(159, 124, 255, .28), rgba(85, 241, 255, .08) 48%, rgba(255, 255, 255, .055)),
        rgba(9, 11, 30, .82);
}

.referral-hero-orb {
    position: relative;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .34), transparent 24%),
        linear-gradient(135deg, rgba(159, 124, 255, .48), rgba(85, 241, 255, .20)),
        rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 0 34px rgba(159, 124, 255, .28);
    font-size: 30px;
}

.referral-hero-orb i {
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: conic-gradient(from 160deg, transparent, rgba(255, 228, 129, .42), transparent, rgba(85, 241, 255, .34), transparent);
    opacity: .72;
    filter: blur(.2px);
    animation: referral-orbit 9s linear infinite;
}

.referral-hero h3 {
    margin: 2px 0 4px;
    color: #fff;
    font-size: 23px;
}

.referral-hero p:not(.eyebrow),
.referral-link-card small,
.referral-reward-grid small,
.referral-step-list p,
.referral-rules li,
.referral-rules p,
.referral-limit-note {
    color: rgba(230, 232, 255, .76);
    font-size: 12px;
    line-height: 1.45;
}

.referral-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.referral-hero-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .84);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.referral-progress-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 15px;
}

.referral-progress-card span,
.referral-reward-grid span,
.referral-link-card span {
    display: block;
    color: rgba(222, 224, 255, .66);
    font-size: 11px;
    font-weight: 800;
}

.referral-progress-card strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 22px;
}

.referral-progress-bar {
    grid-column: 1 / -1;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(4, 6, 20, .42);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .28);
}

.referral-progress-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9f7cff, #55f1ff, #ffe481);
    box-shadow: 0 0 20px rgba(159, 124, 255, .34);
}

.referral-progress-card small {
    grid-column: 1 / -1;
    color: rgba(230, 232, 255, .62);
    font-size: 11px;
    font-weight: 800;
}

.referral-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.referral-reward-grid article {
    padding: 13px;
}

.referral-reward-grid strong {
    display: block;
    margin: 5px 0 3px;
    color: #fff;
    font-size: 16px;
}

.referral-rules {
    padding: 15px;
}

.referral-rules strong {
    color: #fff;
    font-size: 14px;
}

.referral-step-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.referral-step-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
}

.referral-step-list span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(159, 124, 255, .46), rgba(85, 241, 255, .18));
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.referral-step-list p,
.referral-rules p {
    margin: 0;
}

.referral-rules li + li {
    margin-top: 6px;
}

.referral-link-card {
    display: grid;
    gap: 10px;
    padding: 15px;
}

.referral-link-card code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    border: 1px solid rgba(159, 124, 255, .18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(159, 124, 255, .16), transparent 34%),
        rgba(2, 4, 16, .34);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
}

.referral-link-card em {
    color: rgba(255, 228, 129, .84);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.referral-limit-note {
    margin: 0;
    text-align: center;
}

@keyframes referral-orbit {
    to {
        transform: rotate(360deg);
    }
}

.profile-private-notice.compact {
    margin: 0 12px 16px;
}

.profile-metric-button.is-locked {
    cursor: default;
    opacity: .78;
}

.ghost-button.danger,
.secondary-button.danger {
    border-color: rgba(255, 105, 135, .28);
    background: rgba(255, 105, 135, .08);
    color: #ffb2c6;
}

.profile-wall-locked-compose {
    position: relative;
    z-index: 1;
    padding: 11px;
}

@media (max-width: 620px) {
    .profile-settings-button {
        width: 38px;
        height: 38px;
    }

    .profile-settings-tile,
    .profile-frame-option,
    .profile-badge-toggle,
    .profile-privacy-row,
    .profile-private-toggle {
        grid-template-columns: 1fr;
    }

    .profile-standalone-toolbar,
    .referral-hero {
        grid-template-columns: 1fr;
    }

    .referral-hero-orb {
        width: 74px;
        height: 74px;
    }

    .referral-reward-grid {
        grid-template-columns: 1fr;
    }

    .profile-frame-option i,
    .profile-badge-toggle i {
        justify-self: start;
    }

    .profile-privacy-row select {
        width: 100%;
    }
}

/* Liquid glass bottom navigation */
.app-shell {
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
}

.view:not(.hidden) {
    animation: view-soft-enter .34s cubic-bezier(.2, .8, .2, 1) both;
}

.home-news-section {
    display: block;
}

.home-news-section .home-news-card {
    width: 100%;
}

.tabs {
    --active-index: 0;
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    width: min(760px, calc(100vw - 22px));
    margin: 0;
    padding: 8px;
    overflow: visible;
    isolation: isolate;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .045)),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .24), transparent 28%),
        rgba(20, 14, 36, .66);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, .42),
        0 0 34px rgba(178, 116, 255, .22),
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    scrollbar-width: none;
}

.tabs::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 0;
    width: calc((100% - 16px) / 7);
    transform: translateX(calc(var(--active-index) * 100%));
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .72), transparent 18%),
        radial-gradient(circle at 58% 72%, rgba(85, 241, 255, .28), transparent 38%),
        linear-gradient(135deg, rgba(196, 136, 255, .96), rgba(255, 75, 190, .88));
    box-shadow:
        0 10px 28px rgba(203, 117, 255, .36),
        0 0 22px rgba(255, 78, 184, .28),
        inset 0 1px 0 rgba(255, 255, 255, .48),
        inset 0 -12px 24px rgba(72, 31, 145, .18);
    transition:
        transform .45s cubic-bezier(.18, .9, .18, 1.12),
        filter .45s ease,
        box-shadow .45s ease;
}

.tabs::after {
    content: "";
    position: absolute;
    inset: 1px 18px auto;
    height: 18px;
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    opacity: .72;
    filter: blur(.2px);
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 56px;
    padding: 6px 3px 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(239, 232, 255, .72);
    box-shadow: none;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .24s ease,
        transform .34s cubic-bezier(.2, .8, .2, 1),
        opacity .24s ease;
}

.tab:hover {
    color: #fff;
}

.tab.active {
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    transform: translateY(-3px);
}

.tab-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28));
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), filter .34s ease;
}

.tab-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgba(239, 232, 255, .72);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    letter-spacing: 0;
    transition: color .24s ease, opacity .24s ease;
}

.tab.active .tab-icon {
    transform: scale(1.12);
    filter:
        drop-shadow(0 5px 12px rgba(0, 0, 0, .24))
        drop-shadow(0 0 12px rgba(255, 255, 255, .26));
}

.tab.active .tab-label {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

@keyframes view-soft-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.992);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 560px) {
    .app-shell {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    .tabs {
        width: min(430px, calc(100vw - 14px));
        bottom: calc(8px + env(safe-area-inset-bottom));
        padding: 7px;
    }

    .tabs::before {
        top: 7px;
        bottom: 7px;
        left: 7px;
        width: calc((100% - 14px) / 7);
    }

    .tab {
        min-height: 52px;
        padding: 5px 2px 4px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-label {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .view:not(.hidden) {
        animation: none;
    }

    .tabs::before,
    .tab,
    .tab-icon,
    .tab-label {
        transition: none;
    }
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before,
.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    z-index: 0;
    pointer-events: none;
}

.primary-button > *,
.open-button > *,
.secondary-button > *,
.ghost-button > *,
.topup-package > *,
.casino-chip-row button > *,
.icon-button > *,
.profile-settings-button > *,
.profile-metric-button > *,
.request-actions button > *,
.home-news-meta button > *,
.profile-wall-photo-button > *,
.profile-wall-preview button > * {
    position: relative;
    z-index: 1;
}

.profile-metric-button::after {
    content: "Открыть";
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #ded6ff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
}

.profile-metric-button.message::after {
    content: "Написать";
    background: rgba(255, 215, 95, .18);
    color: #ffe8a6;
}

.profile-metrics.public .profile-metric-button::after {
    display: none;
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before,
.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    z-index: 0;
    pointer-events: none;
}

.primary-button > *,
.open-button > *,
.secondary-button > *,
.ghost-button > *,
.topup-package > *,
.casino-chip-row button > *,
.icon-button > *,
.profile-settings-button > *,
.profile-metric-button > *,
.request-actions button > *,
.home-news-meta button > *,
.profile-wall-photo-button > *,
.profile-wall-preview button > * {
    position: relative;
    z-index: 1;
}

.profile-metric-button::after {
    content: "Открыть";
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #ded6ff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
}

.profile-metric-button.message::after {
    content: "Написать";
    background: rgba(255, 215, 95, .18);
    color: #ffe8a6;
}

.profile-metrics.public .profile-metric-button::after {
    display: none;
}

/* Polished liquid buttons */
.primary-button,
.open-button,
.secondary-button,
.ghost-button,
.topup-package,
.casino-chip-row button,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    border-radius: 14px;
    transition:
        transform .22s cubic-bezier(.2, .8, .2, 1),
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        color .22s ease,
        opacity .22s ease;
    will-change: transform;
}

.primary-button,
.open-button,
.secondary-button,
.ghost-button,
.casino-chip-row button,
.profile-settings-button,
.profile-metric-button,
.request-actions button {
    min-height: 44px;
}

.primary-button,
.open-button {
    border: 1px solid rgba(255, 255, 255, .24);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .34), transparent 20%),
        linear-gradient(135deg, #8b6dff 0%, #d958ff 44%, #ff4eb8 100%);
    color: #fff;
    box-shadow:
        0 16px 34px rgba(159, 124, 255, .30),
        0 0 28px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .42),
        inset 0 -12px 28px rgba(70, 20, 140, .20);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.secondary-button,
.ghost-button,
.ghost-button.inline,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .16), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
        rgba(15, 12, 30, .62);
    color: #f7f1ff;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22),
        inset 0 -1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.topup-package,
.casino-chip-row button {
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .20),
        0 0 20px rgba(255, 209, 71, .10),
        inset 0 1px 0 rgba(255, 255, 255, .26);
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .22) 18%, transparent 36%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 42%);
    opacity: .45;
    transform: translateX(-42%);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
}

.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.profile-metric-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    content: "";
    position: absolute;
    inset: auto 14px 7px;
    height: 1px;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    opacity: .48;
}

.primary-button:hover,
.open-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.topup-package:hover,
.casino-chip-row button:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    transform: translateY(-2px);
}

.primary-button:hover,
.open-button:hover {
    box-shadow:
        0 20px 42px rgba(159, 124, 255, .38),
        0 0 34px rgba(255, 78, 184, .28),
        inset 0 1px 0 rgba(255, 255, 255, .52),
        inset 0 -12px 28px rgba(70, 20, 140, .18);
}

.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    border-color: rgba(202, 166, 255, .34);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(145deg, rgba(167, 118, 255, .16), rgba(255, 255, 255, .045)),
        rgba(18, 13, 36, .70);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        0 0 24px rgba(169, 119, 255, .14),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.primary-button:hover::before,
.open-button:hover::before,
.secondary-button:hover::before,
.ghost-button:hover::before,
.topup-package:hover::before,
.casino-chip-row button:hover::before,
.icon-button:hover::before,
.profile-settings-button:hover::before,
.profile-metric-button:hover::before,
.request-actions button:hover::before,
.home-news-meta button:hover::before,
.profile-wall-photo-button:hover::before,
.profile-wall-preview button:hover::before {
    opacity: .78;
    transform: translateX(34%);
}

.primary-button:active,
.open-button:active,
.secondary-button:active,
.ghost-button:active,
.ghost-button.inline:active,
.topup-package:active,
.casino-chip-row button:active,
.icon-button:active,
.profile-settings-button:active,
.profile-metric-button:active,
.request-actions button:active,
.home-news-meta button:active,
.profile-wall-photo-button:active,
.profile-wall-preview button:active {
    transform: translateY(1px) scale(.985);
    transition-duration: .08s;
}

.primary-button:focus-visible,
.open-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.topup-package:focus-visible,
.casino-chip-row button:focus-visible,
.icon-button:focus-visible,
.profile-settings-button:focus-visible,
.profile-metric-button:focus-visible,
.request-actions button:focus-visible,
.home-news-meta button:focus-visible,
.profile-wall-photo-button:focus-visible,
.profile-wall-preview button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .12),
        0 0 0 5px rgba(199, 125, 255, .28),
        0 16px 34px rgba(159, 124, 255, .24);
}

.primary-button:disabled,
.open-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.topup-package:disabled,
.casino-chip-row button:disabled,
.icon-button:disabled,
.profile-settings-button:disabled,
.profile-metric-button:disabled,
.request-actions button:disabled,
.home-news-meta button:disabled,
.profile-wall-photo-button:disabled,
.profile-wall-preview button:disabled,
.primary-button.is-disabled {
    transform: none;
    opacity: .55;
    cursor: default;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.primary-button:disabled::before,
.open-button:disabled::before,
.secondary-button:disabled::before,
.ghost-button:disabled::before,
.topup-package:disabled::before,
.casino-chip-row button:disabled::before,
.icon-button:disabled::before,
.profile-settings-button:disabled::before,
.profile-metric-button:disabled::before,
.request-actions button:disabled::before,
.home-news-meta button:disabled::before,
.profile-wall-photo-button:disabled::before,
.profile-wall-preview button:disabled::before,
.primary-button.is-disabled::before {
    opacity: .18;
    transform: translateX(-42%);
}

.open-button,
#openSelectedCaseButton,
.roulette-spin-button {
    animation: main-button-breathe 3.8s ease-in-out infinite;
}

@keyframes main-button-breathe {
    0%,
    100% {
        filter: saturate(1);
    }

    50% {
        filter: saturate(1.12) brightness(1.04);
    }
}

@media (hover: none) {
    .primary-button:hover,
    .open-button:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .ghost-button.inline:hover,
    .topup-package:hover,
    .casino-chip-row button:hover,
    .icon-button:hover,
    .profile-settings-button:hover,
    .profile-metric-button:hover,
    .request-actions button:hover,
    .home-news-meta button:hover,
    .profile-wall-photo-button:hover,
    .profile-wall-preview button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button,
    .open-button,
    .secondary-button,
    .ghost-button,
    .topup-package,
    .casino-chip-row button,
    .icon-button,
    .profile-settings-button,
    .profile-metric-button,
    .request-actions button,
    .home-news-meta button,
    .profile-wall-photo-button,
    .profile-wall-preview button,
    .primary-button::before,
    .open-button::before,
    .secondary-button::before,
    .ghost-button::before,
    .topup-package::before,
    .casino-chip-row button::before,
    .icon-button::before,
    .profile-settings-button::before,
    .profile-metric-button::before,
    .request-actions button::before,
    .home-news-meta button::before,
    .profile-wall-photo-button::before,
    .profile-wall-preview button::before {
        animation: none;
        transition: none;
    }
}

/* Final button cascade fixes */
.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before,
.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    z-index: 0;
    pointer-events: none;
}

.primary-button > *,
.open-button > *,
.secondary-button > *,
.ghost-button > *,
.topup-package > *,
.casino-chip-row button > *,
.icon-button > *,
.profile-settings-button > *,
.profile-metric-button > *,
.request-actions button > *,
.home-news-meta button > *,
.profile-wall-photo-button > *,
.profile-wall-preview button > * {
    position: relative;
    z-index: 1;
}

.profile-metric-button::after {
    content: "Открыть";
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #ded6ff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
}

.profile-metric-button.message::after {
    content: "Написать";
    background: rgba(255, 215, 95, .18);
    color: #ffe8a6;
}

.profile-metrics.public .profile-metric-button::after {
    display: none;
}

/* Final liquid glass button override */
/* Final casino tabs and tactile click layer */
.casino-mode-switch {
    gap: 8px;
    padding: 6px;
    border-color: rgba(255, 255, 255, .16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        rgba(10, 8, 24, .62);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.casino-mode {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(15, 12, 30, .54);
    color: #d9d2f4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .20),
        inset 0 -10px 22px rgba(86, 58, 148, .06);
    transition:
        transform .2s cubic-bezier(.2, .8, .2, 1),
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.casino-mode.active {
    border-color: rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .44), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .20), transparent 30%),
        linear-gradient(135deg, rgba(150, 116, 255, .96), rgba(209, 84, 255, .88) 48%, rgba(255, 78, 184, .92));
    color: #fff;
    box-shadow:
        0 14px 30px rgba(159, 124, 255, .30),
        0 0 24px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .54),
        inset 0 -14px 28px rgba(34, 10, 92, .16);
}

.casino-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 34% 6%, rgba(255, 255, 255, .42), transparent 24%),
        radial-gradient(ellipse at 65% 106%, rgba(85, 241, 255, .13), transparent 36%),
        linear-gradient(120deg, transparent 4%, rgba(255, 255, 255, .13) 30%, transparent 56%);
    opacity: .62;
    pointer-events: none;
    animation: liquid-glass-flow 8s ease-in-out infinite;
}

.casino-mode::after {
    content: none;
    display: none;
}

.primary-button.is-pressing,
.open-button.is-pressing,
.secondary-button.is-pressing,
.ghost-button.is-pressing,
.topup-package.is-pressing,
.casino-mode.is-pressing,
.casino-chip-row button.is-pressing,
.icon-button.is-pressing,
.profile-settings-button.is-pressing,
.profile-metric-button.is-pressing,
.request-actions button.is-pressing,
.home-news-meta button.is-pressing,
.profile-wall-photo-button.is-pressing,
.profile-wall-preview button.is-pressing {
    animation: liquid-button-press .34s cubic-bezier(.2, .8, .2, 1) !important;
}

.primary-button:active,
.open-button:active,
.secondary-button:active,
.ghost-button:active,
.topup-package:active,
.casino-mode:active,
.casino-chip-row button:active,
.icon-button:active,
.profile-settings-button:active,
.profile-metric-button:active,
.request-actions button:active,
.home-news-meta button:active,
.profile-wall-photo-button:active,
.profile-wall-preview button:active {
    transform: translateY(2px) scale(.965) !important;
    filter: brightness(.96) saturate(1.1);
}

.primary-button.is-pressing::before,
.open-button.is-pressing::before,
.secondary-button.is-pressing::before,
.ghost-button.is-pressing::before,
.topup-package.is-pressing::before,
.casino-mode.is-pressing::before,
.casino-chip-row button.is-pressing::before,
.icon-button.is-pressing::before,
.profile-settings-button.is-pressing::before,
.profile-metric-button.is-pressing::before,
.request-actions button.is-pressing::before,
.home-news-meta button.is-pressing::before,
.profile-wall-photo-button.is-pressing::before,
.profile-wall-preview button.is-pressing::before {
    animation: liquid-button-flash .34s cubic-bezier(.2, .8, .2, 1) !important;
}

.primary-button:hover,
.open-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.topup-package:hover,
.casino-chip-row button:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    transform: translateY(-2px) scale(1.008);
}

.primary-button:hover,
.open-button:hover {
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .48), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .23), transparent 30%),
        linear-gradient(135deg, rgba(164, 132, 255, .98), rgba(217, 93, 255, .92) 48%, rgba(255, 86, 190, .96));
    box-shadow:
        0 22px 52px rgba(159, 124, 255, .38),
        0 0 36px rgba(255, 78, 184, .26),
        inset 0 1px 0 rgba(255, 255, 255, .62),
        inset 0 -18px 32px rgba(34, 10, 92, .16);
}

.secondary-button:hover,
.ghost-button:hover,
.ghost-button.inline:hover,
.icon-button:hover,
.profile-settings-button:hover,
.profile-metric-button:hover,
.request-actions button:hover,
.home-news-meta button:hover,
.profile-wall-photo-button:hover,
.profile-wall-preview button:hover {
    border-color: rgba(255, 255, 255, .26);
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .30), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .18), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
        rgba(18, 14, 38, .76);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .24),
        0 0 22px rgba(199, 125, 255, .12),
        inset 0 1px 0 rgba(255, 255, 255, .34),
        inset 0 -14px 26px rgba(86, 58, 148, .08);
}

.primary-button:hover::before,
.open-button:hover::before,
.secondary-button:hover::before,
.ghost-button:hover::before,
.topup-package:hover::before,
.casino-chip-row button:hover::before,
.icon-button:hover::before,
.profile-settings-button:hover::before,
.profile-metric-button:hover::before,
.request-actions button:hover::before,
.home-news-meta button:hover::before,
.profile-wall-photo-button:hover::before,
.profile-wall-preview button:hover::before {
    opacity: .86;
    transform: none;
}

@media (hover: none), (pointer: coarse) {
    .primary-button:hover,
    .open-button:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .ghost-button.inline:hover,
    .topup-package:hover,
    .casino-chip-row button:hover,
    .icon-button:hover,
    .profile-settings-button:hover,
    .profile-metric-button:hover,
    .request-actions button:hover,
    .home-news-meta button:hover,
    .profile-wall-photo-button:hover,
    .profile-wall-preview button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button,
    .open-button,
    .secondary-button,
    .ghost-button,
    .topup-package,
    .casino-chip-row button,
    .icon-button,
    .profile-settings-button,
    .profile-metric-button,
    .request-actions button,
    .home-news-meta button,
    .profile-wall-photo-button,
    .profile-wall-preview button,
    .primary-button::before,
    .open-button::before,
    .secondary-button::before,
    .ghost-button::before,
    .topup-package::before,
    .casino-chip-row button::before,
    .icon-button::before,
    .profile-settings-button::before,
    .profile-metric-button::before,
    .request-actions button::before,
    .home-news-meta button::before,
    .profile-wall-photo-button::before,
    .profile-wall-preview button::before {
        animation: none !important;
        transition: none !important;
    }
}

.primary-button,
.open-button,
.secondary-button,
.ghost-button,
.topup-package,
.casino-chip-row button,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    border-radius: 16px;
    background-clip: padding-box;
}

.primary-button,
.open-button {
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .42), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(85, 241, 255, .20), transparent 30%),
        linear-gradient(135deg, rgba(150, 116, 255, .96), rgba(209, 84, 255, .88) 48%, rgba(255, 78, 184, .92));
    box-shadow:
        0 18px 44px rgba(159, 124, 255, .32),
        0 0 30px rgba(255, 78, 184, .20),
        inset 0 1px 0 rgba(255, 255, 255, .58),
        inset 0 -18px 32px rgba(34, 10, 92, .18);
}

.secondary-button,
.ghost-button,
.ghost-button.inline,
.icon-button,
.profile-settings-button,
.profile-metric-button,
.request-actions button,
.home-news-meta button,
.profile-wall-photo-button,
.profile-wall-preview button {
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .24), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
        rgba(14, 12, 30, .68);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -14px 26px rgba(86, 58, 148, .08);
}

.primary-button::before,
.open-button::before,
.secondary-button::before,
.ghost-button::before,
.topup-package::before,
.casino-chip-row button::before,
.icon-button::before,
.profile-settings-button::before,
.profile-metric-button::before,
.request-actions button::before,
.home-news-meta button::before,
.profile-wall-photo-button::before,
.profile-wall-preview button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 34% 6%, rgba(255, 255, 255, .44), transparent 24%),
        radial-gradient(ellipse at 65% 106%, rgba(85, 241, 255, .13), transparent 36%),
        linear-gradient(120deg, transparent 4%, rgba(255, 255, 255, .14) 30%, transparent 56%);
    opacity: .62;
    transform: none;
    pointer-events: none;
    animation: liquid-glass-flow 8s ease-in-out infinite;
}

.primary-button::after,
.open-button::after,
.secondary-button::after,
.ghost-button::after,
.topup-package::after,
.casino-chip-row button::after,
.icon-button::after,
.profile-settings-button::after,
.request-actions button::after,
.home-news-meta button::after,
.profile-wall-photo-button::after,
.profile-wall-preview button::after {
    content: none;
    display: none;
}

.profile-metric-button::after {
    content: "Открыть";
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(159, 124, 255, .18);
    color: #ded6ff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
}

.profile-metric-button.message::after {
    content: "Написать";
    background: rgba(255, 215, 95, .18);
    color: #ffe8a6;
}

.profile-metrics.public .profile-metric-button::after {
    display: none;
}

.pet-actions.menu-switching .secondary-button,
.pet-actions.menu-switching .secondary-button:hover,
.pet-actions.menu-switching .secondary-button:focus,
.pet-actions.menu-switching .secondary-button:active,
.pet-actions.sub-menu .secondary-button:hover,
.pet-actions.sub-menu .secondary-button:focus {
    transform: none !important;
    border-color: rgba(255, 255, 255, .18) !important;
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .24), transparent 24%),
        radial-gradient(circle at 88% 84%, rgba(199, 125, 255, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
        rgba(14, 12, 30, .68) !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -14px 26px rgba(86, 58, 148, .08) !important;
}
