
/* 
 * CAROLANDIA PROJECT - Global Premium Styles
 * Centralized Theme: Prehistoric Fossil Amber
 */

:root {
    --tdl-surface: #0a0a0a;
    --tdl-raised: #14120e;
    --tdl-panel-fill: linear-gradient(145deg, #12110e, #080808 78%);
    --tdl-panel-line: rgba(198, 146, 58, .22);
    --tdl-panel-radius: 18px;
    --tdl-ink: #faf7ef;
    --tdl-copy-muted: #bdb6a8;
    --tdl-brand-gold: #d7a64c;
    --tdl-heading-font: Oswald, sans-serif;
    --bg-primary: #080604;
    --charcoal: var(--tdl-raised);
    --neonGreen: #c6923a;
    --neonGreen-glow: rgba(198, 146, 58, 0.36);
    --darkGreen: #2d2b28;
    --bloodRed: #8B0000;
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: var(--tdl-panel-line);
    --glass-border-hover: rgba(198, 146, 58, 0.22);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --radius-xl: 2.5rem;
    --radius-lg: 1.5rem;
}

/* Global resets & Smoothness */
html { 
    overflow-y: auto;
    scrollbar-gutter: stable;
    scroll-behavior: smooth; 
    background-color: var(--bg-primary); 
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body { 
    min-width: 320px;
    min-height: 100svh;
    isolation: isolate;
    background-color: transparent; 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

/* Revisión integral 2026-09: interfaz móvil compacta, clara y sin contenido tapado. */
@media (max-width: 640px) {
    .app-topbar :is(.notification-top-button,.gift-top-button,.app-user-chip,#nav-toggle) { min-height: 44px !important; }
    #duel-refresh,
    #adm-ops-refresh,
    #adm-server-refresh,
    .adm-ops-tab,
    .adm-ops-control-button { min-height: 44px !important; }
    .site-footer {
        content-visibility:visible !important;
        contain-intrinsic-size:none !important;
        height:auto !important;
    }
    .global-chat-tab.store-quick-tab,
    .community-fab,
    .friends-fab {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 15px !important;
    }
    .global-chat-tab.store-quick-tab { left: 12px !important; right: auto !important; }
    .community-fab { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
    .friends-fab { left: auto !important; right: 12px !important; }
    .store-quick-tab .global-chat-tab-copy,
    .community-fab-label,
    .friends-fab-label { display: none !important; }
    .global-chat-tab.store-quick-tab .global-chat-tab-icon,
    .community-fab-icon,
    .friends-fab-icon {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
        font-size: 15px !important;
    }

    /* Tienda: navegación horizontal y tarjetas que se pueden comparar sin
       recorrer una columna interminable. */
    .store-page-wrap > .container,
    .store-page-wrap .tab-content { padding-right: 10px !important; padding-left: 10px !important; }
    .store-page-wrap .store-page-head { padding-top: 16px !important; }
    .store-page-wrap .store-page-head h1 { font-size: 2.7rem !important; }
    .store-page-wrap .store-section-nav {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding: 5px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    .store-page-wrap .store-section-link {
        min-width: 94px !important;
        min-height: 46px !important;
        flex: 0 0 auto !important;
        padding: 8px !important;
        scroll-snap-align: start;
    }
    #tab-dinos > .flex:first-child { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px !important; margin-bottom:14px !important; }
    #tab-dinos .category-filter { width:100% !important; min-height:44px !important; padding:10px 5px !important; }
    #tab-dinos > .grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
    #tab-dinos .product-card { border-radius:14px !important; }
    #tab-dinos .product-card > .aspect-square { height:138px !important; aspect-ratio:auto !important; border-radius:14px 14px 0 0 !important; }
    #tab-dinos .product-card > .p-8 { padding:10px !important; }
    #tab-dinos .product-card h3 { min-height:34px; margin-bottom:5px !important; font-size:15px !important; line-height:1.08; }
    #tab-dinos .product-card .mb-6 { margin-bottom:10px !important; }
    #tab-dinos .product-card .btn-neon { min-height:44px; padding:8px 4px !important; }
    #tab-lootbox > .flex { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px !important; }
    #tab-lootbox > .flex > .glass { width:100% !important; padding:12px 9px !important; border-radius:14px !important; }
    #tab-lootbox > .flex > .glass > img { width:112px !important; height:112px !important; margin-bottom:12px !important; }
    #tab-lootbox > .flex > .glass h3 { min-height:48px; margin-bottom:6px !important; font-size:18px !important; }
    #tab-lootbox > .flex > .glass .mb-8 { margin-bottom:12px !important; }
    .membership-card-visual { min-height:170px !important; aspect-ratio:16/7 !important; }
    .membership-card-content { padding:4px 15px 17px !important; }
    .membership-card-title { font-size:34px !important; }
    .membership-card-heading { gap:8px !important; padding-bottom:12px !important; }
    .membership-benefits-heading { margin-top:13px !important; }
    .membership-benefits-list { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; font-size:10px !important; }
    .membership-card-actions { padding-top:15px !important; }
    .membership-card .membership-payment-button { min-height:54px !important; }

    /* Ajustes: conserva todos los controles, con menos espacio ornamental. */
    body.page-ajustes .hub-page { padding-right:10px !important; padding-left:10px !important; padding-bottom:76px !important; }
    body.page-ajustes .hub-page > form { gap:12px !important; }
    body.page-ajustes .hub-page .hub-card { padding:16px !important; border-radius:15px !important; }
    body.page-ajustes .hub-page h1 { font-size:2.45rem !important; }
    body.page-ajustes .hub-page h2 { font-size:1.55rem !important; }
    body.page-ajustes .hub-page .mt-8 { margin-top:16px !important; }
    body.page-ajustes .hub-page .mt-6 { margin-top:13px !important; }
    body.page-ajustes .profile-style-options { gap:8px !important; }

    /* Rankings: las cuatro categorías siempre tienen un desplazamiento claro. */
    .ranking-tabs { gap:7px !important; padding:5px 18px 8px 0 !important; scroll-snap-type:x mandatory; }
    .ranking-tab { min-width:108px !important; min-height:44px !important; scroll-snap-align:start; }

    /* Comunidad: reduce bloques introductorios antes de las herramientas. */
    body.page-comunidad .community-page { padding-right:10px !important; padding-left:10px !important; padding-top:18px !important; }
    body.page-comunidad .community-hero { gap:14px !important; }
    body.page-comunidad .community-hero h1 { margin-top:12px !important; font-size:2.7rem !important; }
    body.page-comunidad .community-quick-nav { gap:7px !important; margin-top:16px !important; }
}

/* Vista general más compacta en escritorio. Las páginas que necesitan escala
   nativa (administración, mapa, soporte, etc.) quedan fuera de este zoom. */
@media (min-width: 1200px) and (pointer: fine) {
    html:not(.native-page-scale) body {
        zoom: .8;
    }
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid rgba(240, 198, 111, .95);
    outline-offset: 3px;
}

/* Disable scroll-reveal animations globally: all page content is visible immediately. */
[data-aos],
[data-aos^="fade"],
[data-aos^="zoom"],
[data-aos^="slide"],
[data-aos^="flip"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Immersive Background System */
.bg-immersive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #080604;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.95) 90%),
        url('../img/fossils_bg2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -20;
    pointer-events: none;
}

.reptile-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 1px, transparent 1px 5px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -10;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    opacity: .92;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* UI Elements & Containers */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
}

.glass-nav {
    background: rgba(3, 3, 3, 0.9);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    height: 80px;
    transition: all 0.4s;
}

/* Navigation styling */
.nav-item {
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.4s;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover, .nav-item.active {
    color: var(--neonGreen);
    background: rgba(198, 146, 58, 0.08);
}

.nav-item.active {
    text-shadow: 0 0 10px var(--neonGreen-glow);
}

/* Wallet and Profile Pills */
.wallet-pill {
    background: rgba(198, 146, 58, 0.08);
    border: 1px solid rgba(198, 146, 58, 0.18);
    padding: 10px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s;
}

.wallet-pill:hover {
    border-color: var(--neonGreen);
    box-shadow: 0 0 25px rgba(198, 146, 58, 0.14);
}

/* Typography */
.title-3d {
    font-family: 'Oswald', sans-serif;
    font-weight: 950;
    letter-spacing: 1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-neon {
    background: var(--neonGreen);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border-radius: 14px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 0 20px var(--neonGreen-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px var(--neonGreen-glow);
    filter: brightness(1.1);
}

.btn-neon:active {
    transform: scale(0.95);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neonGreen);
}

/* Global Animations */
@keyframes scaneer {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scanner {
    animation: scaneer 4s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.animate-float-premium {
    animation: float 8s ease-in-out infinite;
}

/* Skeleton Loading utility */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.facu {
    height: 100% !important;
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(198, 146, 58, 0.22)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(198, 146, 58, 0.48)); }
}

.animate-pulse-logo {
    animation: pulse-logo 0.5s ease-in-out infinite;
}

/* Carolandia Hub shell */
.app-shell-offset {
    min-height: 100vh;
    padding-top: 92px;
}

@media (min-width: 1024px) {
    .app-shell-offset {
        padding-left: 118px;
        padding-top: 96px;
    }
}

.app-sidebar {
    position: fixed;
    inset: 16px auto 16px 16px;
    z-index: 130;
    width: 86px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background: rgba(5, 8, 7, .82);
    box-shadow: 0 28px 90px rgba(0,0,0,.48);
    backdrop-filter: blur(22px);
}

.app-sidebar-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-top: 10px;
    border-radius: 20px;
    background: rgba(198,146,58,.08);
    border: 1px solid rgba(198,146,58,.18);
}

.app-sidebar-logo img,
.app-mobile-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(198,146,58,.32));
}

.app-sidebar-nav {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 0 10px;
}

.app-sidebar-foot {
    width: 100%;
    margin-top: auto;
    padding: 0 10px 12px;
    display: grid;
    gap: 8px;
}

.app-nav-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    min-height: 54px;
    border-radius: 18px;
    color: #7c8795;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
    border: 1px solid transparent;
}

.app-nav-link i {
    font-size: 17px;
}

.app-nav-link span {
    position: absolute;
    left: 74px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(5,8,7,.94);
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    transition: opacity .2s ease, transform .2s ease;
}

.app-nav-link:hover,
.app-nav-link.active {
    color: var(--neonGreen);
    background: rgba(198,146,58,.10);
    border-color: rgba(198,146,58,.22);
}

.app-nav-link:hover span {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.app-admin-link {
    color: #efb454;
}

.app-topbar {
    left: 12px;
    right: 12px;
    height: 72px;
}

@media (min-width: 1024px) {
    .app-topbar {
        left: 118px;
        right: 20px;
        top: 16px;
    }
}

.app-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background: rgba(5, 8, 7, .80);
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
    backdrop-filter: blur(22px);
    padding: 0 14px 0 16px;
}

.app-mobile-brand {
    display: grid;
    place-items: center;
}

.app-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(210px, 18vw);
    min-width: 172px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    padding: 7px 12px 7px 7px;
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
    transition: border-color .2s ease, background .2s ease;
}

/* Tienda de skins: lenguaje visual del inventario, sin la antigua dominante marrón. */
.store-page-wrap #tab-skins {
    --skin-accent: #f1cc85;
    --skin-accent-strong: #deb05c;
    --skin-panel: rgba(12, 12, 12, .94);
    --skin-panel-deep: rgba(7, 7, 7, .98);
    --skin-border: rgba(242, 205, 135, .15);
}
.store-page-wrap #tab-skins .skin-store-filters {
    overflow: visible;
    border: 1px solid var(--skin-border) !important;
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(circle at 92% 0%, rgba(222, 176, 92, .12), transparent 30%),
        linear-gradient(145deg, var(--skin-panel), var(--skin-panel-deep)) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.025);
}
.store-page-wrap #tab-skins .skin-store-filters::before {
    border-radius: inherit;
    opacity: .42;
    background: linear-gradient(115deg, rgba(255,255,255,.025), transparent 38%, rgba(222,176,92,.035)) !important;
}
.store-page-wrap #tab-skins .skin-store-filter-heading span { color: #82807d; }
.store-page-wrap #tab-skins .skin-store-filter-heading strong { margin-top: 6px; color: #f7f5f2; font-family: 'Oswald',sans-serif; font-size: 28px; letter-spacing: .02em; }
.store-page-wrap #tab-skins .skin-store-filter-heading b {
    min-height: 36px;
    border-color: rgba(241,204,133,.28) !important;
    padding: 0 14px;
    color: #f9dfad !important;
    background: rgba(222,176,92,.09) !important;
}
.store-page-wrap #tab-skins .skin-store-filter-controls {
    grid-template-columns: repeat(3,minmax(0,1fr)) minmax(128px,.42fr);
    gap: 13px;
    margin-top: 20px;
}
.store-page-wrap #tab-skins .skin-store-filter-field {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 82px;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    padding: 11px 12px;
    color: #e6e4e1;
    background: rgba(255,255,255,.035);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.store-page-wrap #tab-skins .skin-store-filter-field::before { display: none; }
.store-page-wrap #tab-skins .skin-store-filter-field:hover,
.store-page-wrap #tab-skins .skin-store-filter-field:focus-within {
    border-color: rgba(241,204,133,.42);
    background: rgba(222,176,92,.07);
    box-shadow: 0 0 0 3px rgba(222,176,92,.055);
    transform: translateY(-1px);
}
.store-page-wrap #tab-skins .skin-store-filter-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(241,204,133,.22);
    border-radius: 12px;
    color: var(--skin-accent);
    background: rgba(222,176,92,.08);
    font-size: 15px;
}
.store-page-wrap #tab-skins .skin-store-filter-copy { display: grid; min-width: 0; gap: 5px; }
.store-page-wrap #tab-skins .skin-store-filter-copy > b { color: #93918e; font-size: 8px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.store-page-wrap #tab-skins .skin-store-filter-controls select {
    width: 100%;
    min-height: 25px;
    appearance: auto;
    border: 0 !important;
    border-radius: 0;
    padding: 0 4px 0 0;
    color: #f5f3f0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
}
.store-page-wrap #tab-skins .skin-store-filter-controls select option { color: #f5f3f0; background: #110f0c; }
.store-page-wrap #tab-skins #skin-filter-reset {
    align-self: stretch;
    min-height: 82px;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 15px;
    padding: 0 18px;
    color: #bbb9b6 !important;
    background: rgba(255,255,255,.035) !important;
    font-size: 10px;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.store-page-wrap #tab-skins #skin-filter-reset i { margin-right: 8px; color: #908e8b; }
.store-page-wrap #tab-skins #skin-filter-reset:hover {
    border-color: rgba(241,204,133,.38) !important;
    color: #f9dfad !important;
    background: rgba(222,176,92,.08) !important;
    transform: translateY(-1px);
}
.store-page-wrap #tab-skins #skin-filter-empty {
    border-color: rgba(241,204,133,.16);
    color: #b8b6b3;
    background: rgba(222,176,92,.045);
}
.store-page-wrap #tab-skins #skin-products-grid { gap: 20px; }
.store-page-wrap #tab-skins #skin-products-grid > [data-store-skin-card] {
    border: 1px solid var(--skin-border) !important;
    border-radius: 18px !important;
    background: linear-gradient(150deg, rgba(19,17,14,.96), rgba(7,7,7,.99)) !important;
    box-shadow: 0 15px 34px rgba(0,0,0,.22) !important;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.store-page-wrap #tab-skins #skin-products-grid > [data-store-skin-card]:hover {
    border-color: rgba(241,204,133,.4) !important;
    box-shadow: 0 20px 42px rgba(0,0,0,.34), 0 0 24px rgba(222,176,92,.07) !important;
}
.store-page-wrap #tab-skins #skin-products-grid .store-skin-preview-stage {
    height: 238px;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background:
        radial-gradient(ellipse at 50% 82%, rgba(222,176,92,.15), transparent 48%),
        linear-gradient(155deg, #1c1a17, #0a0a0a 72%) !important;
}
.store-page-wrap #tab-skins #skin-products-grid .store-skin-preview-stage::after {
    position: absolute;
    right: 12%;
    bottom: 15px;
    left: 12%;
    height: 7px;
    border-radius: 50%;
    background: rgba(222,176,92,.16);
    filter: blur(7px);
    content: "";
}
.store-page-wrap #tab-skins #skin-products-grid .store-skin-stealth-preview { position: relative; z-index: 1; filter: drop-shadow(0 18px 18px rgba(0,0,0,.58)); }
.store-page-wrap #tab-skins #skin-products-grid [data-store-skin-card] > div:last-child { padding: 20px !important; background: transparent !important; }
.store-page-wrap #tab-skins #skin-products-grid .text-neonGreen,
.store-page-wrap #tab-skins #store-skin-detail-modal .text-neonGreen { color: var(--skin-accent) !important; }
.store-page-wrap #tab-skins #skin-products-grid .bg-black\/35 { border: 1px solid rgba(241,204,133,.11); background: rgba(0,0,0,.28) !important; }
.store-page-wrap #tab-skins .store-skin-modal-panel,
.store-page-wrap #tab-skins #store-skin-detail-modal > div {
    border-color: rgba(241,204,133,.22) !important;
    background: linear-gradient(145deg, rgba(18,16,13,.99), rgba(6,6,6,.99)) !important;
}
@media (max-width: 960px) {
    .store-page-wrap #tab-skins .skin-store-filter-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .store-page-wrap #tab-skins #skin-filter-reset { min-height: 72px; }
}
@media (max-width: 620px) {
    .store-page-wrap #tab-skins .skin-store-filters { padding: 14px; border-radius: 16px; }
    .store-page-wrap #tab-skins .skin-store-filter-heading { align-items: flex-start; flex-direction: column; }
    .store-page-wrap #tab-skins .skin-store-filter-heading strong { font-size: 22px; }
    .store-page-wrap #tab-skins .skin-store-filter-controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
    .store-page-wrap #tab-skins .skin-store-filter-field { min-height: 58px; grid-template-columns: 32px minmax(0,1fr); gap: 8px; padding: 8px; }
    .store-page-wrap #tab-skins .skin-store-filter-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
    .store-page-wrap #tab-skins .skin-store-filter-copy { gap: 2px; }
    .store-page-wrap #tab-skins .skin-store-filter-controls select { min-height: 26px; font-size: 11px; }
    .store-page-wrap #tab-skins #skin-filter-reset { min-height: 48px; grid-column: 1 / -1; }
    .store-page-wrap #tab-skins #skin-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px; }
    .store-page-wrap #tab-skins #skin-products-grid > [data-store-skin-card] { border-radius: 14px !important; }
    .store-page-wrap #tab-skins #skin-products-grid .store-skin-preview-stage { height: 128px; padding: 10px !important; }
    .store-page-wrap #tab-skins #skin-products-grid [data-store-skin-card] > div:last-child { padding: 10px !important; }
    .store-page-wrap #tab-skins #skin-products-grid h3 { min-height: 34px; margin-top: 5px !important; font-size: 15px !important; line-height: 1.08; }
    .store-page-wrap #tab-skins #skin-products-grid p { display: -webkit-box; min-height: 32px !important; margin-top: 6px !important; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px !important; line-height: 1.55; }
    .store-page-wrap #tab-skins #skin-products-grid .my-6 { margin-top: 8px !important; margin-bottom: 8px !important; padding: 5px 7px !important; }
    .store-page-wrap #tab-skins #skin-products-grid .my-6 img { width: 15px !important; height: 15px !important; }
    .store-page-wrap #tab-skins #skin-products-grid .my-6 span { font-size: 13px !important; }
    .store-page-wrap #tab-skins #skin-products-grid .btn-neon { min-height: 44px; padding: 8px 4px !important; font-size: 8px !important; letter-spacing: .08em !important; }
}

.app-user-chip:hover {
    border-color: rgba(198,146,58,.28);
    background: rgba(198,146,58,.08);
}

.user-menu-caret {
    margin-left: auto;
    align-items: center;
    justify-content: center;
    color: #9ca69f;
    font-size: 9px;
    transition: transform .18s ease, color .18s ease;
}

.user-menu-wrapper:hover .user-menu-caret,
.user-menu-wrapper:focus-within .user-menu-caret,
.user-menu-wrapper.is-open .user-menu-caret {
    color: var(--neonGreen);
    transform: rotate(180deg);
}

.app-user-chip img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(198,146,58,.34);
}

.app-user-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.app-user-battle-level,
.battle-level-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border: 1px solid rgba(251,191,36,.65);
    border-radius: 999px;
    color: #120d03;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 0 16px rgba(245,158,11,.32);
    font: 900 10px/1 Inter, sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
}

.app-user-battle-level {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
}

.battle-level-badge::before {
    content: none;
}

.app-user-chip strong {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-user-chip small {
    color: #7c8795;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.app-user-chip small.membership-rank-label {
    display: inline-block;
    width: max-content;
    max-width: 128px;
    color: #b98c4e;
    text-shadow: 0 0 10px rgba(198,146,58,.16);
}

.app-user-chip small.rank-survivor {
    color: #9f855f;
    text-shadow: 0 0 8px rgba(159,133,95,.14);
}

.app-user-chip small.rank-prime {
    color: #f0c96b;
    text-shadow:
        0 0 10px rgba(240,201,107,.32),
        0 0 22px rgba(198,146,58,.18);
}

.app-user-chip small.rank-ancestral {
    background: linear-gradient(90deg, #fff1ad 0%, #f4b84a 35%, #ff6d4d 68%, #ffd56d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 12px rgba(255,184,74,.45),
        0 0 26px rgba(255,91,67,.22);
}

.app-icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #d6d4d1;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.app-icon-button:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(198,146,58,.30);
    background: rgba(198,146,58,.10);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.035);
    color: #8d99a8;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--neonGreen);
    border-color: rgba(198,146,58,.24);
    background: rgba(198,146,58,.10);
}

.mobile-menu-backdrop {
    position: fixed;
    z-index: 190;
    inset: 0;
    border: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .68);
    transition: opacity .22s ease, visibility .22s ease;
}

.mobile-menu-backdrop.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    min-height: 100dvh;
    overflow: hidden;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform .26s cubic-bezier(.22, .8, .2, 1) !important;
    will-change: transform;
}

#mobile-menu.open {
    transform: translate3d(0, 0, 0) !important;
}

.mobile-menu-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 3px calc(28px + env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 146, 58, .35) transparent;
}

.mobile-logout-link {
    display: flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    border: 1px solid rgba(248, 113, 113, .22);
    border-radius: 12px;
    color: #fca5a5;
    background: rgba(127, 29, 29, .12);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.overlay-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.hub-page {
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 90px;
}

.hub-kicker {
    color: var(--neonGreen);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.hub-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.6rem, 7vw, 6.8rem);
    line-height: .86;
    text-transform: uppercase;
    color: #fff;
}

.hub-title-dashboard {
    font-size: clamp(3.4rem, 6vw, 5.9rem);
    line-height: .88;
}

.hub-card,
.hub-module,
.hub-panel {
    border: 1px solid var(--tdl-panel-line);
    background: var(--tdl-panel-fill);
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
}

.hub-card {
    border-radius: var(--tdl-panel-radius);
}

.hub-module {
    position: relative;
    display: flex;
    min-height: 158px;
    overflow: hidden;
    border-radius: 8px;
    padding: 18px;
    isolation: isolate;
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.hub-module:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--module-image, linear-gradient(135deg, rgba(198,146,58,.18), transparent));
    background-size: cover;
    background-position: center;
    opacity: .30;
    filter: saturate(1.05);
}

.hub-module:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3,3,3,.24), rgba(3,3,3,.88));
}

.hub-module:hover {
    transform: translateY(-4px);
    border-color: rgba(198,146,58,.28);
}

.hub-module-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(198,146,58,.14);
    color: var(--neonGreen);
    border: 1px solid rgba(198,146,58,.22);
}

.hub-stat {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    padding: 14px;
}

.hub-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.hub-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c6923a, #f3d08a);
}

.daily-status {
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.18);
    background: rgba(198,146,58,.08);
}

.daily-status.claimed {
    border-color: rgba(208,158,69,.28);
    background: rgba(208,158,69,.08);
}

.daily-status.locked {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

@media (max-width: 640px) {
    .hub-page {
        width: min(100% - 20px, 1540px);
    }

    .wallet-pill {
        padding: 8px 12px;
    }
}

/* Horizontal redesign overrides */
.app-shell-offset {
    padding-top: 124px;
    padding-left: 0;
}

@media (min-width: 1024px) {
    .app-shell-offset {
        padding-left: 0;
        padding-top: 126px;
    }
}

.app-topbar {
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    top: 0;
    height: 96px;
}

@media (min-width: 1024px) {
    .app-topbar {
        left: 0;
        right: 0;
        top: 0;
    }
}

.app-topbar-inner.horizontal {
    border-radius: 0;
    padding: 0 30px 0 18px;
    gap: 34px;
}

.app-brand {
    display: inline-grid;
    place-items: center;
    width: 148px;
    height: 82px;
    flex: 0 0 148px;
    border-radius: 8px;
    background: rgba(198,146,58,.055);
    border: 1px solid rgba(198,146,58,.14);
    margin-right: 4px;
}

.app-brand img {
    width: 128px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(198,146,58,.32));
}

.app-horizontal-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 8px;
    flex-wrap: nowrap;
}

.app-horizontal-nav::-webkit-scrollbar {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px !important;
    padding-left: 12px;
}

.top-nav-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #9aa6b5;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.top-nav-link:hover,
.top-nav-link.active {
    color: var(--neonGreen);
    border-color: rgba(198,146,58,.22);
    background: rgba(198,146,58,.10);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-caret {
    font-size: 8px;
    opacity: .65;
}

.top-nav-menu,
.notification-menu,
.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.20);
    background: rgba(5,8,7,.98);
    box-shadow: 0 28px 80px rgba(0,0,0,.58);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 260;
}

.top-nav-menu {
    left: 0;
    right: auto;
}

.nav-more-dropdown .top-nav-menu {
    left: auto;
    right: 0;
}

.nav-more-dropdown.is-empty {
    display: none;
}

.more-nav-menu {
    min-width: 238px;
}

.primary-nav-item.is-in-more {
    display: none;
}

.responsive-more-group {
    display: none;
}

.responsive-more-group.is-visible {
    display: block;
}

.more-nav-parent {
    color: #fff;
}

.more-nav-child {
    margin-left: 12px;
    padding-left: 18px;
    color: #8793a2;
    font-size: 10px;
}

.more-nav-child i {
    opacity: .72;
}

.nav-dropdown:hover .top-nav-menu,
.nav-dropdown:focus-within .top-nav-menu,
.notification-wrapper:hover .notification-menu,
.notification-wrapper:focus-within .notification-menu,
.user-menu-wrapper:hover .user-menu-panel,
.user-menu-wrapper:focus-within .user-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav-child,
.user-menu-link,
.mobile-subnav a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #a6afba;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 13px;
    transition: color .18s ease, background .18s ease;
}

.top-nav-child:hover,
.user-menu-link:hover,
.mobile-subnav a:hover {
    color: var(--neonGreen);
    background: rgba(198,146,58,.10);
}

.collaboration-user-menu-link > i {
    color: #ef4444;
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, .42));
}

.collaboration-user-menu-link:hover > i {
    color: #ff6b6b;
}

.notification-wrapper,
.user-menu-wrapper {
    position: relative;
}

.notification-top-button,
.gift-top-button {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.28);
    background: rgba(198,146,58,.10);
    color: #ffc247;
    box-shadow: 0 0 22px rgba(198,146,58,.12);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.notification-top-button {
    position: relative;
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    overflow: visible;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, .18);
    background: linear-gradient(145deg, rgba(40,47,55,.94), rgba(20,24,29,.94));
    color: #eef4fb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.22);
}

.notification-top-button i {
    font-size: 16px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
}

.notification-top-button span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    place-items: center;
    border-radius: 999px;
    border: 2px solid #080a09;
    background: linear-gradient(135deg, #ffc95b, #e69527);
    color: #211604;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(0,0,0,.38), 0 0 14px rgba(255,190,62,.24);
}

.notification-top-button span[hidden] {
    display: none;
}

.notification-menu {
    width: min(360px, calc(100vw - 24px));
}

.notification-menu strong,
.notification-menu small {
    display: block;
    padding: 4px 6px;
}

.notification-menu strong {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.notification-menu small {
    color: #7c8795;
    font-weight: 800;
}

.wallet-pill {
    min-height: 50px;
    border-radius: 8px;
    padding: 10px 14px;
    gap: 10px;
}

.wallet-pill img {
    animation: none !important;
    transform: none !important;
}

.user-menu-panel {
    min-width: 220px;
}

.language-switcher {
    margin-top: 8px;
    padding: 10px 8px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.language-switcher-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 8px;
    color: #84827f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}

.language-switcher-label i {
    color: var(--neonGreen);
    font-size: 12px;
}

.language-switcher-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.language-switcher-button {
    position: relative;
    min-width: 0;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #94928f;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.language-switcher-button:hover {
    color: #fff;
    border-color: rgba(198,146,58,.28);
    background: rgba(198,146,58,.09);
}

.language-switcher-button:focus-visible {
    outline: 2px solid rgba(198,146,58,.65);
    outline-offset: 2px;
}

.language-switcher-button.active {
    color: #070806;
    border-color: #d6a649;
    background: linear-gradient(145deg, #e0b45c, var(--neonGreen));
    box-shadow: 0 5px 15px rgba(198,146,58,.24), inset 0 1px 0 rgba(255,255,255,.3);
}

.language-switcher-button.active::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
}

.gift-top-button:hover {
    transform: translateY(-1px);
    border-color: rgba(198,146,58,.48);
    background: rgba(198,146,58,.16);
}

.gift-top-button.gift-claim-ready {
    position: relative;
    border-color: rgba(255, 197, 83, .9);
    background: linear-gradient(145deg, rgba(218, 153, 42, .42), rgba(91, 58, 10, .48));
    color: #ffe19a;
    box-shadow: 0 0 0 1px rgba(255, 198, 86, .2), 0 0 28px rgba(255, 171, 48, .48), inset 0 1px 0 rgba(255,255,255,.16);
    animation: gift-ready-glow 1.8s ease-in-out infinite;
}

.gift-top-button.gift-claim-ready::after {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 13px;
    height: 13px;
    content: '';
    border: 2px solid #080808;
    border-radius: 50%;
    background: #ffd15b;
    box-shadow: 0 0 14px rgba(255, 193, 65, .9);
}

.gift-top-button.gift-claim-ready i {
    filter: drop-shadow(0 0 8px rgba(255, 211, 113, .72));
}

@keyframes gift-ready-glow {
    50% { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 4px rgba(255, 188, 67, .1), 0 0 34px rgba(255, 171, 48, .62), inset 0 1px 0 rgba(255,255,255,.2); }
}

@media (prefers-reduced-motion: reduce) {
    .gift-top-button.gift-claim-ready { animation: none; }
}

.notification-top-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255,194,71,.55);
    background: linear-gradient(145deg, rgba(83,64,28,.9), rgba(37,31,22,.95));
    color: #ffd879;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 28px rgba(0,0,0,.3), 0 0 20px rgba(255,190,62,.12);
}

.mobile-subnav {
    display: grid;
    gap: 4px;
    margin: -4px 0 8px 24px;
}

.friends-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 180;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(198,146,58,.42);
    border-radius: 999px;
    background: linear-gradient(135deg, #d4a347, #8f641e);
    color: #100b03;
    padding: 13px 17px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: 0 16px 36px rgba(0,0,0,.38), 0 0 26px rgba(198,146,58,.20);
    transition: transform .18s ease, filter .18s ease;
}

.friends-fab:hover { transform: translateY(-3px); filter: brightness(1.08); }
.friends-drawer { position: fixed; inset: 0; z-index: 320; visibility: hidden; pointer-events: none; }
.friends-drawer.open { visibility: visible; pointer-events: auto; }
.friends-drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .22s ease; }
.friends-drawer.open .friends-drawer-backdrop { opacity: 1; }
.friends-drawer-panel { position: absolute; top: 0; right: 0; width: min(390px, 100vw); height: 100%; overflow: auto; border-left: 1px solid rgba(198,146,58,.26); background: linear-gradient(180deg, rgba(17,15,12,.99), rgba(6,6,6,.99)); box-shadow: -30px 0 80px rgba(0,0,0,.46); padding: 26px 20px; transform: translateX(100%); transition: transform .25s ease; }
.friends-drawer.open .friends-drawer-panel { transform: translateX(0); }
.friends-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 2px 4px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.friends-drawer-head p { margin: 0 0 4px; color: #9a7a43; font-size: 9px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.friends-drawer-head h2 { margin: 0; color: #fff; font-family: Oswald, sans-serif; font-size: 34px; line-height: 1; text-transform: uppercase; }
.friends-drawer-close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.05); color: #d6d4d1; }

#notification-delete-all {
    min-height: 40px;
    padding: 0 8px;
}

[data-notification-delete] {
    min-width: 40px;
    min-height: 40px;
}
.friends-add-form { display: flex; gap: 8px; margin-top: 20px; }
.friends-add-form input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.28); color: #fff; padding: 13px 14px; font-size: 13px; outline: none; }
.friends-add-form input:focus { border-color: rgba(198,146,58,.55); }
.friends-add-form button { width: 46px; border: 1px solid rgba(198,146,58,.4); border-radius: 10px; background: rgba(198,146,58,.16); color: #e9be69; }
.friends-feedback { min-height: 18px; margin: 10px 3px; color: #c4c2bf; font-size: 11px; font-weight: 700; }
.friends-feedback.error {
    border: 1px solid rgba(248, 113, 113, .25);
    border-radius: 10px;
    padding: 9px 10px;
    color: #fecaca;
    background: rgba(127, 29, 29, .18);
}
.friends-list { display: grid; gap: 9px; margin-top: 12px; }
.friends-empty { margin: 28px 0; text-align: center; color: #72706d; font-size: 12px; }
.friend-row { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); padding: 10px; }
.friend-row > img { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(198,146,58,.22); border-radius: 12px; object-fit: cover; }
.friend-row-main { min-width: 0; flex: 1; }
.friend-row-main strong, .friend-row-main small, .friend-row-main em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-row-main strong { color: #fff; font-size: 12px; }
.friend-row-main small { margin-top: 3px; color: #888683; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.friend-row-main small.online { color: #6ee7b7; }
.friend-row-main em { margin-top: 3px; color: #989693; font-size: 10px; font-style: normal; }
.friend-row-actions { display: grid; grid-template-columns: repeat(2, 30px); gap: 5px; }
.friend-row-actions a, .friend-row-actions button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: transparent; color: #b5b3b0; font-size: 11px; }
.friend-row-actions button:hover { border-color: rgba(248,113,113,.35); color: #fca5a5; }

@media (max-width: 640px) {
    .friends-fab { right: 14px; bottom: 14px; min-width: 44px; min-height: 44px; padding: 13px; }
    .friends-fab span { display: none; }
}

@media (max-width: 1023px) {
    .app-shell-offset {
        padding-top: calc(88px + env(safe-area-inset-top));
    }

    .app-topbar {
        height: calc(74px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
    }

    .app-topbar-inner.horizontal {
        gap: 8px;
        border-radius: 0 0 16px 16px;
        padding: 0 10px;
        background: rgba(5, 8, 7, .94);
        backdrop-filter: none;
    }

    .app-brand {
        width: 70px;
        height: 58px;
        flex-basis: 70px;
        margin-right: 0;
        border-radius: 10px;
    }

    .app-brand img {
        width: 66px;
        height: 48px;
    }

    .topbar-actions {
        min-width: 0;
        gap: 6px !important;
        padding-left: 0;
    }

    .app-icon-button,
    .notification-top-button,
    .gift-top-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .app-user-chip {
        width: 44px;
        min-width: 44px;
        height: 44px;
        justify-content: center;
        overflow: hidden;
        padding: 2px;
        border-radius: 12px;
    }

    .app-user-chip img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .notification-menu {
        position: fixed;
        top: calc(70px + env(safe-area-inset-top));
        right: 8px;
        width: min(360px, calc(100vw - 16px));
        max-height: calc(100dvh - 84px - env(safe-area-inset-top));
        overflow-y: auto;
    }

    #mobile-menu {
        width: min(360px, 92vw);
        max-width: none;
        padding: calc(22px + env(safe-area-inset-top)) 18px 18px;
        gap: 18px;
        background: #080a08 !important;
        backdrop-filter: none;
    }

    .mobile-nav-link {
        min-height: 48px;
        border-radius: 12px;
        padding-inline: 14px;
    }

    .mobile-subnav {
        margin-left: 14px;
    }

    .mobile-subnav a {
        min-height: 44px;
    }

    .bg-immersive {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 100svh;
    }

    .reptile-texture {
        display: none !important;
    }

    #particles-canvas {
        display: block !important;
        opacity: .84;
    }

    .glass,
    .hub-card,
    .hub-module,
    .hub-panel,
    .gift-modal-backdrop,
    .friends-drawer-panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .gift-modal {
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    }

    .gift-modal-panel {
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overscroll-behavior: contain;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 360px) {
    .app-brand {
        width: 60px;
        flex-basis: 60px;
    }

    .app-brand img {
        width: 56px;
    }

    .topbar-actions > a.app-icon-button[href="logout.php"] {
        display: none;
    }
}

@media (hover: none) {
    .glass:hover,
    .hub-module:hover,
    .friends-fab:hover,
    .site-footer-social:hover,
    .footer-quick-grid a:hover {
        transform: none !important;
    }
}

@supports (content-visibility: auto) {
    .site-footer {
        content-visibility: auto;
        contain-intrinsic-size: auto 850px;
    }
}

@media (max-width: 1500px) {
    .app-topbar-inner.horizontal {
        gap: 18px;
        padding-right: 18px;
    }

    .app-brand {
        width: 124px;
        flex-basis: 124px;
    }

    .app-brand img {
        width: 112px;
    }

    .top-nav-link {
        padding: 0 8px;
        font-size: 10px;
        gap: 9px;
    }

    .wallet-pill {
        padding: 10px 12px;
    }

    .topbar-actions {
        gap: 10px !important;
        padding-left: 4px;
    }
}

@media (min-width: 1024px) and (max-width: 1500px) {
    .app-topbar {
        height: 78px;
    }

    .app-shell-offset {
        padding-top: 98px;
    }

    .app-topbar-inner.horizontal {
        gap: 12px;
        padding: 0 14px 0 10px;
    }

    .app-brand {
        width: 96px;
        height: 66px;
        flex-basis: 96px;
    }

    .app-brand img {
        width: 88px;
        height: 58px;
    }

    .app-horizontal-nav {
        gap: 4px;
        padding-inline: 2px;
    }

    .top-nav-link {
        min-height: 44px;
        gap: 6px;
        padding-inline: 6px;
    }

    .topbar-actions {
        gap: 6px !important;
        padding-left: 2px;
    }
}

.gift-welcome-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 16px;
    border: 1px solid rgba(198, 146, 58, .28);
    border-radius: 12px;
    background: rgba(198, 146, 58, .09);
    padding: 13px 15px;
    color: #eed193;
}

.gift-welcome-banner strong,
.gift-welcome-banner span {
    display: block;
}

.gift-welcome-banner strong {
    color: #fff;
    font-size: 16px;
}

.gift-welcome-banner span {
    margin-top: 3px;
    font-size: 14px;
}

body.page-perfil .profile-page {
    padding-top: 34px;
}

/* Conserva la geometria de la cabecera al alternar Mi Dino e Inventario. */
body.page-perfil.profile-inventory-active #live-dino-status.hidden {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.adm-dino-media-title strong,
.adm-dino-card-head h4,
.adm-dino-live-head h4 {
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.adm-ops-player-card span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) and (max-width: 1599px) {
    body {
        font-size: 15px;
    }

    main p,
    main li,
    [role="dialog"] p,
    .gift-modal p,
    .friends-drawer p {
        font-size: 13px !important;
    }

    main label,
    [role="dialog"] label {
        font-size: 11px !important;
    }

    main input,
    main textarea,
    main select,
    [role="dialog"] input,
    [role="dialog"] textarea,
    [role="dialog"] select {
        font-size: 13px !important;
    }

    main small,
    [role="dialog"] small,
    .gift-modal small,
    .friends-drawer small,
    .friends-drawer em,
    .notification-menu small {
        font-size: 10px !important;
    }

    .notification-menu b { font-size: 11px !important; }
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gift-modal.open {
    display: flex;
}

.gift-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
}

.gift-modal-panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: min(820px, calc(100vh - 42px));
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.26);
    background:
        radial-gradient(circle at 22% 0%, rgba(198,146,58,.16), transparent 34%),
        linear-gradient(180deg, rgba(9,9,9,.98), rgba(5,5,5,.96));
    box-shadow: 0 40px 120px rgba(0,0,0,.70);
}

.gift-modal-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(198,146,58,.18);
}

.gift-title-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 4px;
    border: 1px solid rgba(198,146,58,.36);
    background: rgba(198,146,58,.14);
    color: #ffc247;
    font-size: 22px;
}

.gift-progress {
    height: 5px;
    background: rgba(255,255,255,.07);
}

.gift-progress span {
    display: block;
    height: 100%;
    background: #ffb000;
}

.gift-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    gap: 12px;
    padding: 34px 32px 30px;
    overflow-x: auto;
}

.gift-day {
    position: relative;
    isolation: isolate;
    min-height: 232px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    padding: 18px;
    color: #73716e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.gift-day-glow {
    position: absolute;
    inset: auto -30% -40% -30%;
    z-index: -1;
    height: 130px;
    background: radial-gradient(circle, rgba(198,146,58,.18), transparent 70%);
    opacity: .4;
}

.gift-day.next {
    border-color: rgba(198,146,58,.52);
    background: linear-gradient(180deg, rgba(198,146,58,.17), rgba(9,9,9,.54));
    color: #f3d08a;
    box-shadow: 0 0 34px rgba(198,146,58,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

.gift-day.claimed {
    border-color: rgba(222,176,92,.28);
    background: rgba(40,38,35,.16);
    color: #bc8c39;
}

.gift-day.locked {
    opacity: .72;
}

.gift-day.box {
    border-color: rgba(198,146,58,.24);
}

.gift-day.rare {
    border-color: rgba(185,137,55,.34);
}

.gift-day.epic {
    border-color: rgba(181,134,53,.42);
}

.gift-day.box .gift-day-glow {
    opacity: .72;
}

.gift-day.rare .gift-day-glow {
    background: radial-gradient(circle, rgba(185,137,55,.22), transparent 70%);
}

.gift-day.epic .gift-day-glow {
    background: radial-gradient(circle, rgba(181,134,53,.26), transparent 70%);
}

.gift-day.claimed,
.gift-day.claimed.box,
.gift-day.claimed.rare,
.gift-day.claimed.epic {
    border-color: rgba(239, 198, 121, .58);
    background:
        radial-gradient(circle at 50% 112%, rgba(208, 158, 69, .34), transparent 58%),
        linear-gradient(180deg, rgba(134, 94, 32, .52), rgba(27, 25, 22, .80));
    color: #f0c87d;
    box-shadow: 0 0 0 1px rgba(225, 179, 96, .08), 0 18px 42px rgba(103, 69, 20, .25), inset 0 1px 0 rgba(252, 234, 197, .12);
}

.gift-day.claimed .gift-day-glow {
    background: radial-gradient(circle, rgba(222, 176, 92, .38), transparent 70%);
    opacity: .85;
}

.gift-day.claimed .gift-reward-icon {
    border-color: rgba(244, 211, 147, .36);
    background: rgba(208, 158, 69, .14);
}

.gift-day-head {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-right: 25px;
}

.gift-day-head > div {
    min-width: 0;
}

.gift-day-head h3 {
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.gift-claimed-check {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    place-items: center;
    border: 1px solid rgba(253, 237, 205, .45);
    border-radius: 7px;
    background: linear-gradient(145deg, #efc77a, #cb9942);
    box-shadow: 0 5px 16px rgba(165, 119, 44, .38);
    color: #211f1c;
    font-size: 9px;
}

.gift-reward-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 30px auto 16px;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.22);
    background: rgba(198,146,58,.10);
    color: currentColor;
    font-size: 28px;
    box-shadow: 0 18px 42px rgba(0,0,0,.25);
}

.gift-reward-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.gift-day strong {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gift-day small {
    display: block;
    margin-top: 6px;
    text-align: center;
    color: currentColor;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gift-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 32px 32px;
}

.map-real-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #12100d;
}

.map-real-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    background: #14120f;
}

.dino-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    color: #e4e2df;
    padding: 0 16px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.dino-action-button:hover {
    transform: translateY(-1px);
    border-color: rgba(198,146,58,.34);
    background: rgba(198,146,58,.10);
    color: #fff;
}

.dino-action-button.primary {
    border-color: rgba(208,158,69,.28);
    background: rgba(208,158,69,.10);
    color: #f4d495;
}

.dino-action-button.danger {
    border-color: rgba(239,68,68,.28);
    background: rgba(239,68,68,.10);
    color: #fca5a5;
}

.dino-action-button.prime {
    border-color: rgba(251,191,36,.36);
    background: rgba(251,191,36,.12);
    color: #facc15;
}

.profile-tab-btn,
.profile-filter {
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: #ddae59;
    padding: 0 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.profile-tab-btn:hover,
.profile-tab-btn.active,
.profile-filter:hover,
.profile-filter.active {
    color: #000;
    border-color: rgba(198,146,58,.52);
    background: var(--neonGreen);
}

body.page-perfil.profile-inventory-active > .friends-fab {
    display: inline-flex;
}

.membership-profile-badge {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.42);
    background: rgba(198,146,58,.14);
    color: #f2d58a;
    padding: 0 16px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.membership-profile-badge.muted {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: #ddae59;
}

.live-dino-stage {
    position: relative;
    min-height: clamp(480px, 62vh, 700px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 50% 35%, rgba(198,146,58,.12), transparent 42%),
        linear-gradient(180deg, rgba(11,11,11,.86), rgba(4,4,4,.80));
    box-shadow: 0 30px 110px rgba(0,0,0,.42), inset 0 0 110px rgba(0,0,0,.62);
}

.live-dino-glow {
    position: absolute;
    inset: 16%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(198,146,58,.22), transparent 68%);
    filter: blur(18px);
}

.live-dino-image {
    position: relative;
    z-index: 1;
    width: min(34rem, 86%);
    height: min(34rem, 56vh);
    object-fit: contain;
    filter: drop-shadow(0 0 90px rgba(198,146,58,.30));
    animation: float 6s ease-in-out infinite;
}

.live-console-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(251,232,192,.08);
    background:
        linear-gradient(180deg, rgba(17,15,12,.42), rgba(6,6,6,.28)),
        repeating-linear-gradient(0deg, rgba(251,232,192,.035) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(251,232,192,.035) 0 1px, transparent 1px 48px);
    padding: clamp(16px, 2vw, 26px);
    box-shadow: inset 0 0 80px rgba(0,0,0,.22);
}

.live-console-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
    align-items: start;
}

.live-cornered {
    position: relative;
    border: 1px solid rgba(253,237,205,.70);
    background: rgba(10,10,10,.70);
    box-shadow: inset 0 0 46px rgba(0,0,0,.22);
}

.live-cornered::before,
.live-cornered::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.live-cornered::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid #fdf0d3;
    border-left: 2px solid #fdf0d3;
}

.live-cornered::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid #fdf0d3;
    border-bottom: 2px solid #fdf0d3;
}

.live-terminal-card {
    min-height: 620px;
    overflow: hidden;
}

.live-terminal-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    border-bottom: 1px solid rgba(253,237,205,.08);
    padding: 0 22px;
    color: #757370;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.live-terminal-top strong {
    color: #d8a851;
}

.live-terminal-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d8a851;
    box-shadow: 0 0 18px rgba(216,168,81,.65);
}

.live-terminal-hero {
    position: relative;
    min-height: 255px;
    overflow: hidden;
    border-bottom: 1px solid rgba(253,237,205,.08);
    background:
        linear-gradient(180deg, rgba(103,69,20,.25), rgba(10,10,10,.88)),
        repeating-linear-gradient(0deg, rgba(216,168,81,.07) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(216,168,81,.07) 0 1px, transparent 1px 22px);
}

.live-terminal-watermark {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    color: rgba(216,168,81,.055);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4.2rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    max-width: 92%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-terminal-image {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 42%;
    width: min(340px, 42vw);
    height: 210px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 20px 28px rgba(0,0,0,.58));
}

.live-terminal-copy {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 190px;
    bottom: 30px;
}

.live-terminal-copy span,
.live-side-kicker,
.live-mutation-title,
.live-prime-label {
    display: block;
    color: #d8a851;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.live-terminal-copy h2 {
    margin-top: 14px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 3.3vw, 3.3rem);
    line-height: .95;
    text-transform: lowercase;
}

.live-terminal-growth {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 32px;
    text-align: right;
}

.live-terminal-growth small {
    display: block;
    color: #72706d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.live-terminal-growth strong {
    color: #d8a851;
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    line-height: 1;
}

.live-console-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(253,237,205,.08);
}

.live-console-tab {
    min-height: 52px;
    border-right: 1px solid rgba(253,237,205,.06);
    color: #6e6c69;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.live-console-tab:last-child {
    border-right: 0;
}

.live-console-tab.active {
    color: #d8a851;
    background: rgba(216,168,81,.07);
    box-shadow: inset 0 -3px 0 #d8a851;
}

.live-view-panel {
    padding: 26px 28px 30px;
}

.live-metric-row {
    border: 1px solid rgba(253,237,205,.08);
    background: rgba(255,255,255,.025);
    padding: 10px 12px;
}

.live-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #787673;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.live-metric-head strong {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: .06em;
}

.live-metric-track {
    position: relative;
    overflow: hidden;
    height: 7px;
    margin-top: 10px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 6px),
        rgba(255,255,255,.05);
}

.live-metric-fill {
    height: 100%;
    width: 0;
    background: #d8a851;
    box-shadow: 0 0 20px rgba(216,168,81,.45);
    transition: width .35s ease;
}

.live-metric-fill.health { background: #ec5c7a; box-shadow: 0 0 18px rgba(236,92,122,.44); }
.live-metric-fill.stamina { background: #e7bc23; box-shadow: 0 0 18px rgba(231,188,35,.42); }
.live-metric-fill.hunger { background: #f08d22; box-shadow: 0 0 18px rgba(240,141,34,.42); }
.live-metric-fill.thirst { background: #ddaf5a; box-shadow: 0 0 18px rgba(221,175,90,.42); }

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

.live-coord-card {
    border: 1px solid rgba(253,237,205,.08);
    background: rgba(255,255,255,.025);
    padding: 13px 14px;
}

.live-coord-card span {
    display: block;
    color: #706e6b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.live-coord-card strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

.live-mutation-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(253,237,205,.10);
}

.live-mutation-section:first-child {
    padding-top: 0;
}

.live-mutation-section:last-child {
    border-bottom: 0;
}

.live-mutation-section ul {
    display: grid;
    gap: 6px;
    margin-top: 9px;
    color: #a7a5a2;
    font-size: 12px;
}

.live-mutation-section li {
    list-style: none;
}

.live-prime-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    border: 1px solid rgba(253,237,205,.09);
    background: rgba(255,255,255,.025);
    padding: 18px;
}

.live-prime-summary i {
    color: #706e6b;
    font-size: 28px;
}

.live-prime-summary strong {
    display: block;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}

.live-prime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.live-prime-condition {
    min-height: 54px;
    border: 1px solid rgba(253,237,205,.09);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #686663;
    padding: 12px 14px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
}

.live-prime-condition i {
    flex: 0 0 auto;
    margin: 0 !important;
}

.live-prime-condition.done {
    border-color: rgba(231,188,35,.46);
    background: rgba(231,188,35,.08);
    color: #e7bc23;
}

.live-side-stack {
    display: grid;
    gap: 16px;
}

.live-side-card {
    padding: 22px;
}

.live-side-title {
    margin-top: 7px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
}

.live-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 22px;
}

.live-action-option,
.live-action-secondary {
    min-height: 74px;
    border: 1px solid rgba(253,237,205,.10);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        rgba(0,0,0,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    color: #7b7976;
    padding: 10px 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.live-action-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.live-action-option:not(:disabled) {
    border-color: rgba(208,160,76,.22);
    color: #cccac7;
    cursor: pointer;
}

.live-action-option:not(:disabled):hover {
    border-color: rgba(208,160,76,.58);
    background:
        linear-gradient(180deg, rgba(208,160,76,.14), rgba(208,160,76,.055)),
        rgba(0,0,0,.18);
    color: #ffe0a2;
}

.live-action-label {
    display: flex;
    width: 100%;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 1.25;
    text-wrap: balance;
}

.live-action-countdown {
    position: absolute;
    top: 6px;
    right: 7px;
    display: inline-flex;
    min-width: 42px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(231,188,35,.34);
    border-radius: 6px;
    background: rgba(6,6,6,.82);
    color: #ffd15c;
    padding: 0 5px;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
    pointer-events: none;
}

.live-action-option[data-live-action="kill"] .live-action-countdown {
    border-color: rgba(255,92,118,.38);
    color: #ff9bad;
}

.live-action-requirement {
    display: -webkit-box;
    max-width: 100%;
    min-height: 20px;
    margin-top: 7px;
    overflow: hidden;
    color: #d8ad5c;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.35;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.live-action-option i,
.live-action-secondary i {
    display: block;
    margin-bottom: 7px;
    font-size: 16px;
}

.live-action-option.active,
.live-action-secondary.active {
    border-color: rgba(216,168,81,.62);
    background: rgba(216,168,81,.10);
    color: #f8dca7;
}

.live-action-secondary {
    min-height: 48px;
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.live-action-secondary i {
    margin-bottom: 0;
}

.live-action-secondary .live-action-label {
    width: auto;
    min-height: 0;
}

.live-action-description {
    min-height: 48px;
    margin-top: 18px;
    color: #dfddda;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.live-action-note {
    margin-top: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #c0bebb;
    padding: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.live-action-note.warn {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #e7bc23;
}

.live-action-note.danger {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #ff8aa0;
}

.live-confirm-button {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: #f47a37;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: filter .18s ease, transform .18s ease;
}

.live-confirm-button:hover {
    filter: brightness(1.08);
    transform: none;
}

.live-confirm-button.prime { background: #c99b48; color: #090806; }
.live-confirm-button.pause { background: #ab7d30; color: #fff; }
.live-confirm-button.release { background: #b98937; color: #fff; }
.live-confirm-button.danger { background: #b91c1c; color: #fff; }

.live-connection-card strong {
    display: block;
    margin-top: 9px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}

.live-connection-card span {
    display: block;
    margin-top: 7px;
    color: #72706d;
    font-size: 11px;
}

/* Live dino command center base */
.live-console-section {
    border-color: rgba(198,146,58,.16);
    background:
        radial-gradient(circle at 18% 8%, rgba(198,146,58,.18), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(216,168,81,.12), transparent 24%),
        linear-gradient(135deg, rgba(9,9,9,.86), rgba(4,4,4,.72));
    box-shadow: 0 28px 90px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.025);
}

.live-console-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .58fr);
    gap: 26px;
}

.live-cornered {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(18,16,13,.82), rgba(6,6,6,.72)),
        rgba(0,0,0,.34);
    box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.live-cornered::before,
.live-cornered::after {
    display: none;
}

.live-terminal-card {
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

.live-terminal-top {
    min-height: 46px;
    margin: 16px 16px 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(0,0,0,.22);
    padding: 0 18px;
}

.live-terminal-hero {
    min-height: 300px;
    margin: 14px 16px 0;
    border: 1px solid rgba(198,146,58,.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 66% 30%, rgba(198,146,58,.20), transparent 28%),
        linear-gradient(110deg, rgba(216,168,81,.12), rgba(0,0,0,.18) 48%, rgba(198,146,58,.08)),
        url('../img/fossils_bg2.jpg') center/cover;
}

.live-terminal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.48), transparent 45%, rgba(0,0,0,.16));
    pointer-events: none;
}

.live-terminal-watermark {
    left: 34px;
    right: 24px;
    top: auto;
    bottom: 8px;
    transform: none;
    max-width: none;
    color: rgba(255,255,255,.045);
    font-size: clamp(3.5rem, 8vw, 7.6rem);
    text-align: left;
}

.live-terminal-image {
    left: 66%;
    top: 43%;
    width: min(380px, 42vw);
    height: 245px;
    filter: drop-shadow(0 28px 36px rgba(0,0,0,.70)) drop-shadow(0 0 24px rgba(198,146,58,.16));
}

.live-terminal-copy {
    left: 30px;
    right: 42%;
    bottom: 34px;
}

.live-terminal-copy span,
.live-side-kicker,
.live-mutation-title,
.live-prime-label {
    color: #d0a04c;
    letter-spacing: .22em;
}

.live-terminal-copy h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    text-transform: none;
    text-shadow: 0 16px 40px rgba(0,0,0,.70);
}

.live-terminal-growth {
    right: 26px;
    top: 24px;
    bottom: auto;
    min-width: 118px;
    border: 1px solid rgba(216,168,81,.22);
    border-radius: 16px;
    background: rgba(0,0,0,.38);
    padding: 14px 16px;
}

.live-terminal-growth strong {
    color: #f5d69b;
    font-size: 2.25rem;
}

.live-console-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 16px 0;
    border: 0;
}

.live-console-tab {
    flex: 1 1 0;
    min-height: 46px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.live-console-tab:last-child {
    border-right: 1px solid rgba(255,255,255,.07);
}

.live-console-tab.active {
    color: #0c0c0c;
    background: #d0a04c;
    border-color: rgba(208,160,76,.82);
    box-shadow: 0 14px 34px rgba(208,160,76,.15);
}

.live-view-panel {
    padding: 18px 16px 22px;
}

.live-metric-row {
    border-color: rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    padding: 13px 14px;
}

.live-metric-track {
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.075);
}

.live-metric-fill {
    border-radius: inherit;
}

.live-coord-card,
.live-prime-summary,
.live-prime-condition {
    border-color: rgba(255,255,255,.075);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.live-side-stack {
    gap: 18px;
}

.live-side-card {
    padding: 24px;
}

.live-side-title {
    font-size: 1.55rem;
}

.live-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.live-action-option,
.live-action-secondary {
    min-height: 82px;
    border-color: transparent;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}

.live-action-option:disabled,
.live-action-secondary:disabled {
    cursor: not-allowed;
    opacity: 1;
    filter: none;
}

.live-action-option:disabled {
    border-color: rgba(208,160,76,.13);
    background: rgba(255,255,255,.025);
    color: #6a6865;
}

.live-action-secondary:disabled {
    opacity: .42;
    filter: grayscale(.45);
}

.live-action-option.active,
.live-action-secondary.active {
    border-color: rgba(208,160,76,.72);
    background: rgba(208,160,76,.14);
    color: #ffd78f;
}

.live-action-secondary {
    min-height: 54px;
    border-color: transparent;
}

.live-action-option[data-live-action="prime"],
.live-action-option[data-live-action="pause"],
.live-action-option[data-live-action="kill"],
.live-action-secondary[data-live-action="release"],
.live-action-option[data-live-action="prime"].active,
.live-action-option[data-live-action="pause"].active,
.live-action-option[data-live-action="kill"].active,
.live-action-secondary[data-live-action="release"].active {
    border-color: transparent;
}

.live-action-description {
    border-left: 0;
    padding-left: 0;
}

.live-action-option[data-live-action="release"],
.live-action-option[data-live-action="release"].active {
    border-color: transparent;
}

.live-confirm-button {
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #d0a04c, #f47a37);
    color: #080604;
}

.live-confirm-button.pause,
.live-confirm-button.release,
.live-confirm-button.prime,
.live-confirm-button.danger {
    color: #080604;
}

.live-confirm-button:disabled,
.live-confirm-button.prime:disabled,
.live-confirm-button.pause:disabled,
.live-confirm-button.release:disabled,
.live-confirm-button.danger:disabled {
    cursor: not-allowed;
    border: 1px solid rgba(255,255,255,.08);
    background: #252b28;
    color: #8f9994;
    box-shadow: none;
    filter: grayscale(1);
    opacity: .72;
    transform: none;
}

.live-confirm-button:disabled:hover {
    filter: grayscale(1);
    transform: none;
}

.live-connection-card {
    background:
        radial-gradient(circle at 12% 0%, rgba(216,168,81,.13), transparent 34%),
        rgba(0,0,0,.36);
}

/* Habitat cockpit: distinct layout for the live dino panel */
.live-console-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.live-terminal-card {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
    grid-template-areas:
        "hero tabs"
        "hero panel";
    gap: 14px;
    height: clamp(520px, 58dvh, 600px);
    min-height: 0;
    padding: 16px;
}

.live-terminal-top {
    grid-area: status;
    margin: 0;
}

.live-terminal-hero {
    grid-area: hero;
    min-height: 0;
    height: 100%;
    margin: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 36%, rgba(198,146,58,.24), transparent 35%),
        linear-gradient(180deg, rgba(12,12,12,.32), rgba(0,0,0,.66)),
        url('../img/fossils_bg2.jpg') center/cover;
}

.live-terminal-hero::before {
    display: none;
}

.live-terminal-hero::after {
    background:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.70)),
        radial-gradient(circle at 50% 44%, transparent 30%, rgba(0,0,0,.30) 68%);
}

.live-terminal-watermark {
    left: 24px;
    right: 24px;
    bottom: 96px;
    color: rgba(255,255,255,.055);
    font-size: clamp(2.8rem, 5.8vw, 6.2rem);
    text-align: center;
    white-space: normal;
}

.live-terminal-image {
    left: 50%;
    top: 44%;
    width: min(460px, 86%);
    height: 300px;
    object-position: center;
}

.live-terminal-copy {
    left: 24px;
    right: 24px;
    bottom: 28px;
    text-align: center;
}

.live-terminal-copy h2 {
    font-size: clamp(2.5rem, 4.4vw, 4.7rem);
}

.live-terminal-growth {
    left: 22px;
    right: auto;
    top: 22px;
    text-align: left;
}

.live-console-tabs {
    grid-area: tabs;
    min-width: 0;
    height: 64px;
    margin: 0;
}

.live-view-panel {
    grid-area: panel;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    scrollbar-gutter: stable;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    padding: 16px;
}

.live-view-panel > .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.live-view-panel > .grid .live-metric-row:first-child {
    grid-column: auto;
}

.live-metric-row {
    min-height: 76px;
}

.live-coord-grid {
    margin-top: 14px;
}

.live-side-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.live-side-card:not(.live-connection-card) {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr) minmax(300px, .62fr);
    grid-template-areas:
        "heading actions confirm"
        "heading release confirm";
    gap: 14px 18px;
    align-items: stretch;
}

.live-side-card:not(.live-connection-card) .live-action-details {
    grid-area: confirm;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0;
}

.live-side-card:not(.live-connection-card) .live-side-kicker {
    grid-area: heading;
}

.live-side-card:not(.live-connection-card) .live-side-title {
    grid-area: heading;
    align-self: center;
    margin-top: 22px;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    line-height: .95;
}

.live-side-card:not(.live-connection-card) .live-action-grid {
    grid-area: actions;
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-side-card:not(.live-connection-card) .live-action-secondary {
    grid-area: release;
    margin-top: 0;
}

.live-side-card:not(.live-connection-card) .live-action-description {
    margin-top: 0;
    min-height: 72px;
    display: -webkit-box;
    overflow: hidden;
    color: #cfcdca;
    font-size: clamp(13px, .85vw, 15px);
    font-weight: 600;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.live-side-card:not(.live-connection-card) .live-action-note {
    align-self: stretch;
    margin-top: 0;
    font-size: clamp(13px, .8vw, 15px);
    line-height: 1.45;
}

.live-side-card:not(.live-connection-card) .live-confirm-button {
    align-self: stretch;
    margin-top: 0;
    font-size: 11px;
}

.live-connection-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1180px) {
    .live-console-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-side-stack {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .live-terminal-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 64px minmax(394px, auto);
        grid-template-areas:
            "hero"
            "tabs"
            "panel";
        height: auto;
    }

    .live-terminal-hero {
        min-height: 380px;
        height: auto;
    }

    .live-side-card:not(.live-connection-card) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "actions"
            "release"
            "confirm";
    }

    .live-side-card:not(.live-connection-card) .live-action-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .live-terminal-card {
        grid-template-rows: auto auto auto;
        min-height: 0;
    }

    .live-terminal-hero {
        min-height: 310px;
    }

    .live-terminal-image {
        width: min(300px, 82vw);
        top: 36%;
    }

    .live-terminal-copy {
        left: 18px;
        right: 18px;
        bottom: 76px;
    }

    .live-terminal-growth {
        left: 18px;
        right: auto;
        bottom: 22px;
        text-align: left;
    }

    .live-console-tabs,
    .live-coord-grid,
    .live-prime-grid,
    .live-side-stack {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-console-tabs {
        height: auto;
    }

    .live-view-panel {
        height: auto;
        overflow: visible;
        scrollbar-gutter: auto;
    }

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

.profile-flash-dismiss {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    transition: background .18s ease, color .18s ease;
}

.profile-flash-dismiss:hover {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.12);
    color: #fff;
}

@media (min-width: 1181px) {
    .profile-page {
        width: min(1320px, calc(100% - 64px));
        padding-bottom: 60px;
    }

    .profile-page .live-console-section {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .profile-page .live-console-layout {
        height: auto;
        min-height: 0;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .profile-page .live-terminal-card {
        height: 656px;
        min-height: 656px;
        grid-template-rows: 64px minmax(0, 1fr);
    }

    .profile-page .live-terminal-image {
        width: min(520px, 90%);
        height: 360px;
    }

    .profile-page .live-view-panel {
        height: 100%;
        overflow-y: auto;
        scrollbar-gutter: auto;
    }

    .profile-page .live-view-panel[data-live-panel="general"] {
        padding: 16px;
    }

    .profile-page .live-view-panel[data-live-panel="general"] > .grid {
        height: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(5, minmax(76px, 1fr));
        align-content: stretch;
        gap: 12px;
    }

    .profile-page .live-view-panel[data-live-panel="general"] .live-metric-row:first-child {
        grid-column: auto;
    }

    .profile-page .live-view-panel[data-live-panel="general"] .live-metric-row {
        display: block;
        min-height: 76px;
        padding: 13px 14px;
    }

    .profile-page .live-view-panel[data-live-panel="general"] .live-metric-head,
    .profile-page .live-view-panel[data-live-panel="general"] .live-metric-head strong {
        line-height: normal;
    }

    .profile-page .live-view-panel[data-live-panel="general"] .live-metric-track {
        height: 9px;
        margin-top: 10px;
    }

    .profile-page .live-view-panel[data-live-panel="mutations"]:not(.hidden) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 12px;
    }

    .profile-page .live-view-panel[data-live-panel="mutations"] .live-mutation-section {
        min-height: 150px;
        border: 1px solid rgba(255,255,255,.075);
        border-radius: 14px;
        background: rgba(255,255,255,.03);
        padding: 16px;
    }

    .profile-page .live-view-panel[data-live-panel="mutations"] .live-mutation-section:first-child,
    .profile-page .live-view-panel[data-live-panel="mutations"] .live-mutation-section:last-child {
        border: 1px solid rgba(255,255,255,.075);
        padding: 16px;
    }

    .profile-page .live-view-panel[data-live-panel="mutations"] .live-mutation-section ul {
        gap: 7px;
        margin-top: 12px;
    }

    .profile-page .live-view-panel[data-live-panel="mutations"] .live-mutation-section li {
        display: flex;
        min-height: 32px;
        align-items: center;
        border: 1px solid rgba(255,255,255,.055);
        border-radius: 9px;
        background: rgba(0,0,0,.18);
        color: #cdcbc8;
        padding: 8px 10px;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-summary {
        min-height: 96px;
        padding: 20px;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-summary strong {
        font-size: 1.35rem;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-summary span:not(#live-prime-credits) {
        color: #a5a3a0;
        line-height: 1.5;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-grid {
        gap: 12px;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-condition {
        min-height: 60px;
        padding: 14px 16px;
        font-size: 11px;
    }

    .profile-page .live-view-panel[data-live-panel="prime"] .live-prime-condition:not(.done) {
        color: #a5a3a0;
    }

    .profile-page .live-side-stack {
        gap: 0;
    }

    .profile-page .live-side-card {
        padding: 16px 20px;
    }

    .profile-page .live-side-card:not(.live-connection-card) {
        height: 210px;
        min-height: 210px;
        max-height: 210px;
        overflow: hidden;
    }

    .profile-page .live-side-card:not(.live-connection-card) .live-action-details {
        display: flex;
        height: 178px;
        padding: 0;
    }

    .profile-page .live-side-card:not(.live-connection-card) .live-confirm-button {
        height: 50px;
        min-height: 50px;
        margin-top: 0;
    }

    .profile-page .live-side-card:not(.live-connection-card) .live-action-grid,
    .profile-page .live-side-card:not(.live-connection-card) .live-action-secondary {
        align-self: start;
    }

    .profile-page .live-side-card:not(.live-connection-card) .live-action-option {
        height: 88px;
        min-height: 88px;
        overflow: hidden;
    }

    .profile-page .live-side-card:not(.live-connection-card) .live-action-secondary {
        height: 70px;
        min-height: 70px;
        overflow: hidden;
    }
}

.live-action-description.is-blocked {
    min-height: 0;
    border: 1px solid rgba(216, 173, 92, .28);
    border-left: 3px solid #d8ad5c;
    border-radius: 11px;
    background: rgba(216, 173, 92, .075);
    color: #f3d79d;
    padding: 10px 12px;
    -webkit-line-clamp: unset;
}

.live-action-state-kicker,
.live-action-state-reason {
    display: block;
}

.live-action-state-kicker {
    margin-bottom: 4px;
    color: #d8ad5c;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.live-action-state-reason {
    color: #f5e4c1;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.live-stat {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    padding: 18px;
}

.live-stat i {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: .18;
    font-size: 28px;
}

.live-stat span,
.live-mutation-box span {
    display: block;
    color: #888683;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.live-stat strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
}

.live-mutation-box {
    min-height: 116px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.20);
    padding: 14px;
}

.live-mutation-box ul {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    color: #d6d4d1;
    font-size: 11px;
}

.profile-inventory-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(10,10,10,.84), rgba(6,6,6,.72));
    transition: border-color .2s ease, transform .2s ease;
}

.profile-inventory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(198,146,58,.28);
}

.profile-inventory-frame {
    display: block;
    width: 100%;
    min-height: 460px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.profile-inventory-frame.modal-open {
    position: fixed;
    inset: 0;
    z-index: 240;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh;
    border-radius: 0;
    background: transparent !important;
}

#profile-panel-inventory.modal-host-open {
    min-height: var(--profile-inventory-stable-height, 460px);
}

html.inventory-modal-open,
body.inventory-modal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

/* Persistent entry point for the personal pet nest. */
.pet-nest-fab {
    position: fixed;
    z-index: 284;
    left: max(18px, env(safe-area-inset-left));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(198, 146, 58, .42);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(32, 24, 11, .97), rgba(9, 9, 9, .97));
    padding: 7px 14px 7px 7px;
    color: #f3d996;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .06);
    transition: transform .2s ease, border-color .2s ease, filter .2s ease;
}
.pet-nest-fab:hover,
.pet-nest-fab:focus-visible,
.pet-nest-fab.active {
    border-color: rgba(231, 183, 78, .8);
    color: #fff1be;
    filter: brightness(1.12);
    transform: translateY(-3px);
}
.pet-nest-fab:focus-visible { outline: 3px solid rgba(198, 146, 58, .28); outline-offset: 3px; }
.pet-nest-fab-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(231, 183, 78, .34);
    border-radius: 10px;
    background: rgba(198, 146, 58, .14);
    font-size: 17px;
}
.pet-nest-fab-label {
    font: 800 14px/1 Oswald, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pet-nest-fab-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    border: 2px solid #0a0b08;
    border-radius: 999px;
    background: #ef4444;
    padding: 0 5px;
    color: #fff;
    font: 900 10px/18px Inter, sans-serif;
    text-align: center;
}
@media (max-width: 640px) {
    .pet-nest-fab { left: max(12px, env(safe-area-inset-left)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); padding: 7px; }
    .pet-nest-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Global pet: it exists after hatching and never captures page clicks outside its body. */
.pet-web-walker { position:fixed; z-index:248; inset:0; overflow:hidden; pointer-events:none; }
.pet-web-walker-track { position:absolute; bottom:max(4px,env(safe-area-inset-bottom)); left:0; width:clamp(150px,14vw,225px); transform:translate3d(var(--pet-walker-x,40vw),0,0); will-change:transform; }
.pet-web-walker-sprite { position:relative; display:block; width:100%; aspect-ratio:1.45; border:0; background:transparent; padding:0; filter:drop-shadow(0 12px 10px rgba(0,0,0,.7)); cursor:pointer; pointer-events:auto; transform-origin:center bottom; }
.pet-web-walker-canvas,.pet-web-walker-fallback { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.pet-web-walker-canvas { opacity:0; transition:opacity .25s ease; }
.pet-web-walker-fallback { object-fit:contain; transform:scaleX(var(--pet-walker-facing,1)); transform-origin:center bottom; }
.pet-web-walker.unity-ready .pet-web-walker-canvas { opacity:1; }
.pet-web-walker.unity-ready .pet-web-walker-fallback { opacity:0; }
.pet-web-walker.is-walking:not(.unity-ready) .pet-web-walker-sprite { animation:petWalkerStep .48s ease-in-out infinite alternate; }
.pet-web-walker.is-reacting .pet-web-walker-sprite { animation:petWalkerReact .45s ease-out 2 alternate; }
.pet-web-walker-bubble { position:absolute; bottom:calc(100% + 10px); left:50%; width:230px; border:1px solid rgba(216,174,82,.42); border-radius:16px; background:rgba(8,8,8,.96); padding:13px; color:#dedcd9; box-shadow:0 18px 48px rgba(0,0,0,.58); pointer-events:auto; transform:translateX(-50%); }
.pet-web-walker-bubble header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.pet-web-walker-bubble header strong { color:#f0d27d; font:800 17px/1 Oswald,sans-serif; text-transform:uppercase; }
.pet-web-walker-bubble header span { color:#e5b967; font-size:9px; font-weight:900; text-transform:uppercase; }
.pet-web-walker-bubble > div { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:6px; }
.pet-web-walker-bubble > div span { border-radius:8px; background:rgba(255,255,255,.04); padding:6px; color:#969491; font-size:9px; text-transform:uppercase; }
.pet-web-walker-bubble b { float:right; color:#f1efec; }
.pet-web-walker-bubble a { display:flex; min-height:34px; align-items:center; justify-content:center; gap:7px; margin-top:10px; border-radius:9px; background:rgba(198,146,58,.16); color:#efd58f; font-size:10px; font-weight:900; text-transform:uppercase; }
@keyframes petWalkerStep { from { transform:scaleX(var(--pet-walker-facing,1)) translateY(0) rotate(-1deg); } to { transform:scaleX(var(--pet-walker-facing,1)) translateY(-4px) rotate(1deg); } }
@keyframes petWalkerReact { from { transform:scaleX(var(--pet-walker-facing,1)) scale(1); } to { transform:scaleX(var(--pet-walker-facing,1)) scale(1.08) translateY(-7px); } }
@media (max-width:640px) { .pet-web-walker-track { width:132px; bottom:max(4px,env(safe-area-inset-bottom)); }.pet-web-walker-bubble{width:min(230px,calc(100vw - 24px));} }
@media (prefers-reduced-motion:reduce) { .pet-web-walker.is-walking .pet-web-walker-sprite,.pet-web-walker.is-reacting .pet-web-walker-sprite { animation:none; } }

.profile-inventory-art {
    aspect-ratio: 1.15;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(198,146,58,.13), transparent 42%),
        rgba(0,0,0,.34);
    padding: 22px;
}

.profile-inventory-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,.35));
}

.profile-stored-dino-art {
    overflow: hidden;
    padding: 10px;
}

.profile-stored-dino-art img {
    transform: scale(1.35);
    transform-origin: center 58%;
    transition: transform .22s ease;
}

.profile-inventory-card:hover .profile-stored-dino-art img {
    transform: scale(1.4);
}

.membership-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: end;
    gap: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(198,146,58,.22);
}

.store-page-wrap {
    padding-top: 148px;
}

.store-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(198,146,58,.18);
}

.store-section-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.store-section-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    padding: 0 16px;
    color: #dad8d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.store-section-link i {
    color: currentColor !important;
    transition: color .2s ease;
}

.store-section-link:hover,
.store-section-link.active-tab {
    color: #000 !important;
    border-color: rgba(198,146,58,.48);
    background: var(--neonGreen) !important;
    box-shadow: 0 0 22px rgba(198,146,58,.18);
}

.store-section-link:hover i,
.store-section-link.active-tab i {
    color: #000 !important;
}

.membership-plans-grid {
    align-items: stretch;
}

.membership-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(198,146,58,.28);
    background-color: #040404;
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.membership-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .98;
    background: url('../img/membership/membership-superviviente-v2.png') 72% center/cover;
    filter: brightness(1.08) contrast(1.06) saturate(1.02);
}

/* Las ilustraciones se renderizan como imagen real para que carguen aunque
   el hosting no procese correctamente los fondos del CSS. */
.membership-card-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    opacity: .98;
    filter: brightness(1.08) contrast(1.06) saturate(1.02);
}

.membership-card.prime .membership-card-art {
    object-position: 76% center;
    filter: brightness(1.13) contrast(1.08) saturate(1.04);
}

.membership-card.ancestral .membership-card-art {
    object-position: 78% center;
    filter: brightness(1.14) contrast(1.06) saturate(.92);
}

.membership-card-shade {
    z-index: 1;
}

.membership-card-content {
    position: relative;
    z-index: 2;
}

.membership-card.prime:before {
    background-image: url('../img/membership/membership-prime-v2.png');
    background-position: 76% center;
    filter: brightness(1.13) contrast(1.08) saturate(1.04);
}

.membership-card.ancestral:before {
    background-image: url('../img/membership/membership-ancestral-v2.png');
    background-position: 78% center;
    filter: brightness(1.14) contrast(1.06) saturate(.92);
}

.membership-card-dino {
    display: none;
}

.membership-card-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% 18%, rgba(238,184,89,.20), transparent 32%),
        linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.54) 43%, rgba(0,0,0,.12) 74%, rgba(0,0,0,.04) 100%),
        linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.14) 55%, rgba(0,0,0,.60) 100%);
}

.membership-card.ancestral .membership-card-shade {
    background:
        radial-gradient(circle at 74% 16%, rgba(210,40,25,.22), transparent 34%),
        linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.54) 43%, rgba(0,0,0,.14) 74%, rgba(0,0,0,.05) 100%),
        linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.14) 55%, rgba(0,0,0,.62) 100%);
}

.membership-card-content {
    width: 100%;
    text-shadow: 0 2px 18px rgba(0,0,0,.72);
}

.membership-popular {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    border-radius: 999px;
    border: 1px solid rgba(198,146,58,.42);
    background: rgba(0,0,0,.58);
    padding: 8px 14px;
    color: #f2d58a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .membership-hero {
        grid-template-columns: 1fr;
    }

    .store-page-head {
        grid-template-columns: 1fr;
    }

    .store-section-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .gift-modal-head {
        grid-template-columns: 1fr auto;
        padding: 22px;
    }

    .gift-modal-head > .text-right {
        display: none;
    }

    .gift-week-grid {
        padding: 28px 22px 22px;
    }

    .gift-modal-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 0 22px 24px;
    }
}
/* Navegación continua global: indicador ligero, sin bloquear la página. */
.site-nav-progress {
    position: fixed;
    z-index: 20000;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, #b87a28, #f1cc78, #ebc071);
    box-shadow: 0 0 18px rgba(225, 177, 83, .65);
    transition: width .75s cubic-bezier(.2,.7,.2,1), opacity .12s ease;
}

.site-nav-progress.active {
    width: 82%;
    opacity: 1;
}

.site-nav-progress.complete {
    width: 100%;
    opacity: 0;
    transition: width .12s ease, opacity .16s ease .04s;
}

/* Final responsive overrides live last so desktop compaction rules cannot
   accidentally expand the header again on small screens. */
@media (max-width: 1023px) {
    .app-topbar-inner.horizontal {
        gap: 8px;
        padding: 0 10px;
    }

    .app-brand {
        width: 70px;
        height: 58px;
        flex-basis: 70px;
        margin-right: 0;
    }

    .app-brand img {
        width: 66px;
        height: 48px;
    }

    .topbar-actions {
        min-width: 0;
        gap: 6px !important;
        padding-left: 0;
    }

    .gift-modal-panel {
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

@media (max-width: 360px) {
    .app-brand {
        width: 60px;
        flex-basis: 60px;
    }

    .app-brand img {
        width: 56px;
    }
}

/* Silueta propia de dinosaurio para no reutilizar el icono de dragón. */
.icon-dinosaur {
    display: inline-block;
    width: 1.65em;
    height: 1.4em;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 15c2.9-.5 4.7-2.5 6.6-4.8C10.4 8 12.5 6 16 5.7l4.2-.4L22 7.5l-.8 3.3-4.6.5-1.4 2.1 2.8 1.8-.8 1.4-3.7-1.2-1 4.1h2V21H9v-1.5h1.5l.2-4c-2.9.5-6.1.3-8.7-.5Zm16.5-7.8a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 15c2.9-.5 4.7-2.5 6.6-4.8C10.4 8 12.5 6 16 5.7l4.2-.4L22 7.5l-.8 3.3-4.6.5-1.4 2.1 2.8 1.8-.8 1.4-3.7-1.2-1 4.1h2V21H9v-1.5h1.5l.2-4c-2.9.5-6.1.3-8.7-.5Zm16.5-7.8a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    font-style: normal;
}

/* La interfaz usa escala nativa: 16px deben verse como 16px reales. */
body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
}

/* Header controls: the menu trigger only belongs to compact layouts. */
#nav-toggle {
    display: none;
}

.friends-fab {
    right: 24px;
    bottom: 24px;
    min-height: 50px;
    gap: 9px;
    padding: 7px 17px 7px 7px;
    border-color: rgba(235, 191, 102, .64);
    background:
        linear-gradient(135deg, rgba(244, 202, 113, .96), rgba(176, 117, 30, .98));
    font-size: 10px;
    letter-spacing: .13em;
    box-shadow:
        0 20px 46px rgba(0, 0, 0, .46),
        0 0 34px rgba(198, 146, 58, .26),
        inset 0 1px 0 rgba(255, 255, 255, .42);
}

.friends-fab-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(60, 34, 5, .24);
    border-radius: 50%;
    background: rgba(34, 20, 4, .17);
    font-size: 14px;
}

.friends-fab-label {
    display: inline-block;
}

.community-fab {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 180;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 9px;
    padding: 7px 17px 7px 7px;
    border: 1px solid rgba(104, 117, 255, .72);
    border-radius: 999px;
    background: linear-gradient(135deg, #6f7cff, #4752c4);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    box-shadow:
        0 20px 46px rgba(0, 0, 0, .46),
        0 0 34px rgba(88, 101, 242, .28),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.community-fab:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.community-fab-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(20, 24, 83, .22);
    font-size: 14px;
}

.community-fab-label {
    display: inline-block;
}

body.page-comunidad > .community-fab {
    border-color: rgba(57, 255, 20, .58);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, .46),
        0 0 34px rgba(57, 255, 20, .18),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

@media (max-width: 1023px) {
    #nav-toggle {
        display: inline-grid;
    }

    .app-horizontal-nav {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .friends-fab {
        right: 14px;
        bottom: 14px;
        min-width: 54px;
        min-height: 54px;
        padding: 5px;
    }

    .friends-fab-icon {
        width: 42px;
        height: 42px;
    }

    .friends-fab-label {
        display: none;
    }

    .community-fab {
        left: 14px;
        bottom: 14px;
        min-width: 54px;
        min-height: 54px;
        padding: 5px;
    }

    .community-fab-icon {
        width: 42px;
        height: 42px;
    }

    .community-fab-label {
        display: none;
    }
}

/* Profile state must win over the later command-center grid declarations. */
.live-console-layout.hidden {
    display: none !important;
}

/* The account level is a small nameplate, not a notification bubble. */
.app-user-battle-level {
    position: absolute;
    z-index: 3;
    top: auto;
    right: auto;
    bottom: -8px;
    left: 50%;
    display: inline-flex;
    width: max-content;
    min-width: 46px;
    height: 18px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transform: translateX(-50%);
    border: 1px solid rgba(238, 190, 92, .62);
    border-radius: 5px;
    background: linear-gradient(180deg, #24190a, #100b04);
    padding: 0 5px;
    color: #f4cf7b;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .08);
    letter-spacing: 0;
}

.app-user-battle-level > small {
    color: #a88b55 !important;
    font: 900 6px/1 Inter, sans-serif !important;
    letter-spacing: .12em !important;
}

.app-user-battle-level > strong {
    overflow: visible;
    color: #ffe39a;
    font: 900 10px/1 Oswald, sans-serif;
    letter-spacing: 0;
}

.wallet-balance-updated {
    animation: wallet-balance-flash .8s ease;
}

@keyframes wallet-balance-flash {
    0% { transform: scale(1); }
    35% { transform: scale(1.08); border-color: rgba(244, 211, 147, .72); box-shadow: 0 0 28px rgba(244, 211, 147, .25); }
    100% { transform: scale(1); }
}

/* Friend request notifications in the global drawer. */
.friends-pending-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #090909;
    border-radius: 999px;
    background: #ef4444;
    padding: 0 5px;
    color: #fff;
    font: 900 10px/1 Inter, sans-serif;
    letter-spacing: 0;
    box-shadow: 0 6px 18px rgba(239, 68, 68, .38);
}

.friends-pending-badge[hidden] {
    display: none !important;
}

.friend-request-row,
.friend-teleport-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(225, 177, 83, .20);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(225, 177, 83, .09), rgba(255, 255, 255, .025));
    padding: 10px;
}

.friend-request-row.teleport {
    border-color: rgba(224, 179, 95, .30);
    background: linear-gradient(135deg, rgba(224, 179, 95, .10), rgba(255, 255, 255, .025));
}

.friend-request-row > img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(225, 177, 83, .30);
    border-radius: 11px;
    object-fit: cover;
}

.friend-request-row > div:nth-child(2),
.friend-teleport-progress > div {
    min-width: 0;
    flex: 1;
}

.friend-request-row span,
.friend-request-row strong,
.friend-teleport-progress strong,
.friend-teleport-progress small {
    display: block;
}

.friend-request-row span {
    color: #9a7a43;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.friend-request-row strong,
.friend-teleport-progress strong {
    margin-top: 3px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.friend-request-actions button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(248, 113, 113, .28);
    border-radius: 8px;
    background: rgba(248, 113, 113, .07);
    color: #fca5a5;
}

.friend-request-actions button.accept {
    border-color: rgba(222, 176, 92, .32);
    background: rgba(222, 176, 92, .09);
    color: #f1cc85;
}

.friend-teleport-progress > i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(224, 179, 95, .12);
    color: #f2cd87;
}

.friend-teleport-progress small {
    margin-top: 3px;
    color: #7e7c79;
    font-size: 9px;
    line-height: 1.35;
}

.friends-manage-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    border: 1px solid rgba(225, 177, 83, .22);
    border-radius: 10px;
    background: rgba(225, 177, 83, .07);
    color: #dcb76e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* Friends hub. */
.friends-page,
.friend-profile-page {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 42px));
    margin: 0 auto;
    padding: 24px 0 100px;
}

.friends-page-hero,
.friends-page-request-card,
.friends-request-stack,
.friends-pack-section,
.friend-profile-hero,
.friend-stats-panel,
.friend-teleport-panel {
    border: 1px solid rgba(255, 255, 255, .085);
    background: linear-gradient(145deg, rgba(14, 18, 15, .94), rgba(5, 8, 7, .92));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.friends-page-hero {
    position: relative;
    display: grid;
    min-height: 310px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    border-color: rgba(225, 177, 83, .22);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(6, 6, 6, .96), rgba(6, 6, 6, .54)),
        radial-gradient(circle at 80% 24%, rgba(225, 177, 83, .22), transparent 30%),
        url("../img/fossils_bg2.webp") center 44% / cover;
    padding: clamp(34px, 5vw, 70px);
}

.friends-page-hero::before {
    position: absolute;
    top: -150px;
    right: 5%;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(225, 177, 83, .11);
    border-radius: 50%;
    content: "";
    box-shadow: inset 0 0 90px rgba(225, 177, 83, .06);
}

.friends-page-hero-copy,
.friends-page-summary {
    position: relative;
    z-index: 1;
}

.friends-page-hero h1 {
    max-width: 760px;
    margin: 12px 0 0;
    color: #fff;
    font: 900 clamp(3.4rem, 7vw, 7.6rem)/.84 Oswald, sans-serif;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.friends-page-hero-copy > p:last-child {
    max-width: 700px;
    margin-top: 24px;
    color: #a3a19e;
    font-size: 14px;
    line-height: 1.75;
}

.friends-page-summary {
    display: grid;
    min-width: 390px;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(14px);
}

.friends-page-summary > div {
    padding: 25px 18px;
    text-align: center;
}

.friends-page-summary > div + div {
    border-left: 1px solid rgba(255, 255, 255, .07);
}

.friends-page-summary strong,
.friends-page-summary span {
    display: block;
}

.friends-page-summary strong {
    color: #f2c96f;
    font: 900 34px/1 Oswald, sans-serif;
}

.friends-page-summary span {
    margin-top: 8px;
    color: #807e7b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.friends-page-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    border: 1px solid;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 800;
}

.friends-page-alert.success {
    border-color: rgba(52, 211, 153, .28);
    background: rgba(52, 211, 153, .08);
    color: #8be2bf;
}

.friends-page-alert.error {
    border-color: rgba(248, 113, 113, .28);
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}

.friends-page-request-card {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr);
    gap: clamp(30px, 5vw, 80px);
    margin-top: 24px;
    border-radius: 22px;
    padding: clamp(28px, 4vw, 48px);
}

.friends-eyebrow,
.friends-page-request-card > div > span,
.friends-request-stack header span,
.friend-stats-panel header span,
.friend-teleport-panel header span {
    color: #c99b49;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.friends-page-request-card h2,
.friends-pack-section h2,
.friends-request-stack h2,
.friend-stats-panel h2,
.friend-teleport-panel h2 {
    margin: 7px 0 0;
    color: #fff;
    font: 800 30px/1 Oswald, sans-serif;
    text-transform: uppercase;
}

.friends-page-request-card > div p,
.friends-pack-section > header p,
.friend-teleport-panel header p {
    margin-top: 12px;
    color: #7f7d7a;
    font-size: 12px;
    line-height: 1.65;
}

.friends-page-request-card form label {
    display: block;
    margin-bottom: 9px;
    color: #918f8c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.friends-page-request-card form > div {
    display: flex;
    gap: 9px;
}

.friends-page-request-card input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: rgba(0, 0, 0, .32);
    padding: 15px 17px;
    color: #fff;
    outline: none;
}

.friends-page-request-card input:focus {
    border-color: rgba(225, 177, 83, .52);
    box-shadow: 0 0 0 3px rgba(225, 177, 83, .07);
}

.friends-page-request-card button,
.friend-teleport-panel > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #d7a64b;
    border-radius: 12px;
    background: linear-gradient(135deg, #e2b35c, #a66e20);
    padding: 0 22px;
    color: #110b03;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(200, 146, 58, .18);
}

.friends-requests-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.friends-request-stack {
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
}

.friends-request-stack > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 2px 2px 18px;
}

.friends-request-stack > header b {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(225, 177, 83, .25);
    border-radius: 11px;
    background: rgba(225, 177, 83, .08);
    color: #e5bc6b;
    font: 800 17px/1 Oswald, sans-serif;
}

.friends-request-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border-top: 1px solid rgba(255, 255, 255, .065);
    padding: 14px 2px;
}

.friends-request-card > img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(225, 177, 83, .25);
    border-radius: 14px;
    object-fit: cover;
}

.friends-request-card > div {
    min-width: 0;
}

.friends-request-card strong,
.friends-request-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-request-card strong {
    color: #fff;
    font-size: 12px;
}

.friends-request-card small {
    margin-top: 5px;
    color: #7f7d7a;
    font-size: 9px;
}

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

.friends-request-buttons button {
    min-height: 34px;
    border: 1px solid rgba(248, 113, 113, .26);
    border-radius: 8px;
    background: rgba(248, 113, 113, .06);
    padding: 0 10px;
    color: #fca5a5;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.friends-request-buttons button i {
    margin-right: 5px;
}

.friends-request-buttons button.accept {
    border-color: rgba(222, 176, 92, .3);
    background: rgba(222, 176, 92, .08);
    color: #f1cc85;
}

.friends-stack-empty {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 22px 2px 4px;
    color: #6b6966;
    font-size: 11px;
}

.friends-pack-section {
    margin-top: 20px;
    border-radius: 22px;
    padding: clamp(26px, 4vw, 46px);
}

.friends-pack-section > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.friends-pack-section > header p {
    max-width: 420px;
    text-align: right;
}

.friends-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.friends-pack-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 30%, rgba(225, 177, 83, .10), transparent 42%),
        rgba(0, 0, 0, .25);
    padding: 15px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}

.friends-pack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 177, 83, .3);
}

.friends-pack-card-top {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
}

.friends-online-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #68716c;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.friends-online-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #535b56;
}

.friends-online-state.online {
    color: #70dab0;
}

.friends-online-state.online i {
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
}

.friends-pack-card-top button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #615f5c;
}

.friends-pack-card-top button:hover {
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}

.friends-pack-avatar {
    width: 88px;
    height: 88px;
    margin: 13px auto 16px;
    border: 2px solid rgba(225, 177, 83, .34);
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .32);
}

.friends-pack-card h3 {
    overflow: hidden;
    color: #fff;
    font: 800 21px/1 Oswald, sans-serif;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.friends-pack-card > p {
    margin-top: 7px;
    overflow: hidden;
    color: #7b7976;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-growth {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 18px 3px 0;
}

.friends-growth > span {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.friends-growth > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #cf9635, #ebc071);
}

.friends-growth b {
    color: #c9a461;
    font: 800 10px/1 Oswald, sans-serif;
}

.friends-pack-card > a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 17px;
    border: 1px solid rgba(225, 177, 83, .2);
    border-radius: 10px;
    background: rgba(225, 177, 83, .07);
    color: #d9b36d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.friends-pack-empty {
    margin-top: 26px;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 54px 24px;
    text-align: center;
}

.friends-pack-empty > i {
    color: #353330;
    font-size: 38px;
}

.friends-pack-empty h3 {
    margin-top: 16px;
    color: #cfcdca;
    font: 800 25px/1 Oswald, sans-serif;
    text-transform: uppercase;
}

.friends-pack-empty p {
    margin-top: 8px;
    color: #686663;
    font-size: 11px;
}

/* Friend profile and consent-based teleport. */
.friend-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #bf9b5a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.friend-profile-hero {
    position: relative;
    display: grid;
    min-height: 285px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    border-color: rgba(225, 177, 83, .22);
    border-radius: 30px;
    padding: clamp(28px, 4vw, 44px);
}

.friend-profile-atmosphere {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 7, 5, .94), rgba(4, 7, 5, .34)),
        radial-gradient(circle at 76% 30%, rgba(45, 212, 191, .15), transparent 28%),
        url("../img/fossils_bg2.webp") center / cover;
}

.friend-profile-identity,
.friend-profile-dino {
    position: relative;
    z-index: 1;
}

.friend-profile-identity {
    display: flex;
    align-items: end;
    gap: 28px;
}

.friend-profile-avatar {
    position: relative;
    flex: 0 0 auto;
}

.friend-profile-avatar > img {
    width: clamp(105px, 11vw, 145px);
    height: clamp(105px, 11vw, 145px);
    border: 2px solid rgba(225, 177, 83, .45);
    border-radius: 38px;
    object-fit: cover;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .48);
}

.friend-profile-avatar > span {
    position: absolute;
    right: -8px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(7, 10, 8, .92);
    padding: 8px 12px;
    color: #768079;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.friend-profile-avatar > span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #535b56;
}

.friend-profile-avatar > span.online {
    color: #7de0ba;
}

.friend-profile-avatar > span.online i {
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
}

.friend-profile-identity h1 {
    max-width: 720px;
    margin: 13px 0 0;
    overflow: hidden;
    color: #fff;
    font: 900 clamp(2.7rem, 5vw, 4.8rem)/.9 Oswald, sans-serif;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.friend-profile-copy > p:not(.friends-eyebrow) {
    margin-top: 16px;
    color: #adaba8;
    font-size: 14px;
}

.friend-profile-own-profile {
    display: grid;
    gap: 7px;
    min-width: 214px;
    margin-left: auto;
    border: 1px solid rgba(225, 177, 83, .25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(19, 18, 12, .8), rgba(10, 10, 10, .76));
    padding: 15px 16px;
    box-shadow: 0 15px 42px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
}

.friend-profile-own-profile > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3bc68;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.friend-profile-own-profile > span i {
    color: #f2d38a;
    font-size: 11px;
}

.friend-profile-own-profile p {
    margin: 0;
    color: #a2a09d;
    font-size: 10px;
    line-height: 1.45;
}

.friend-profile-own-profile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin-top: 3px;
    border: 1px solid rgba(246, 194, 88, .66);
    border-radius: 9px;
    background: linear-gradient(135deg, #d99a32, #f0c76c);
    color: #151108;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.friend-profile-own-profile a:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(225, 177, 83, .22);
}

.friend-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px solid rgba(225, 177, 83, .27);
    border-radius: 8px;
    background: rgba(225, 177, 83, .08);
    padding: 7px 10px;
}

.friend-level-chip small {
    color: #a88b55;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.friend-level-chip strong {
    color: #f2c96f;
    font: 900 15px/1 Oswald, sans-serif;
}

.friend-profile-dino {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(0, 0, 0, .48);
    padding: 26px;
    backdrop-filter: blur(12px);
}

.friend-profile-dino span,
.friend-profile-dino strong {
    display: block;
}

.friend-profile-dino span {
    color: #918f8c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.friend-profile-dino strong {
    margin-top: 10px;
    color: #f0c76c;
    font: 900 54px/1 Oswald, sans-serif;
}

.friend-profile-dino > div {
    height: 6px;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.friend-profile-dino > div i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d69c37, #ebc071);
    box-shadow: 0 0 16px rgba(235, 192, 113, .24);
}

.friend-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
    gap: 20px;
    margin-top: 20px;
}

.friend-stats-panel,
.friend-teleport-panel {
    border-radius: 22px;
    padding: clamp(22px, 3vw, 32px);
}

.friend-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.friend-stat-grid > div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(0, 0, 0, .22);
    padding: 19px;
}

.friend-stat-grid i {
    color: #bc9043;
    font-size: 14px;
}

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

.friend-stat-grid span {
    margin-top: 18px;
    color: #777572;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.friend-stat-grid strong {
    margin-top: 7px;
    overflow: hidden;
    color: #fff;
    font: 900 30px/1 Oswald, sans-serif;
    text-overflow: ellipsis;
}

.friend-teleport-panel {
    border-color: rgba(224, 179, 95, .16);
    background:
        radial-gradient(circle at 88% 8%, rgba(224, 179, 95, .11), transparent 32%),
        linear-gradient(145deg, rgba(16, 14, 11, .96), rgba(6, 6, 6, .94));
}

.friend-teleport-state {
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 15px;
    background: rgba(0, 0, 0, .24);
    padding: 16px;
}

.friend-teleport-state > i {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    background: rgba(224, 179, 95, .09);
    color: #f2cd87;
    font-size: 17px;
}

.friend-teleport-state > div:not(.friend-teleport-actions):not(.teleport-countdown) {
    min-width: 0;
    flex: 1;
}

.friend-teleport-state strong,
.friend-teleport-state small {
    display: block;
}

.friend-teleport-state strong {
    color: #f4f2ef;
    font-size: 12px;
}

.friend-teleport-state small {
    margin-top: 5px;
    color: #7f7d7a;
    font-size: 9px;
    line-height: 1.45;
}

.friend-teleport-state.pending {
    border-color: rgba(225, 177, 83, .22);
}

.friend-teleport-state.failed {
    border-color: rgba(248, 113, 113, .22);
}

.friend-teleport-state.failed > i {
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}

.friend-teleport-state.completed {
    border-color: rgba(222, 176, 92, .28);
}

.friend-teleport-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.friend-teleport-actions button {
    min-height: 30px;
    border: 1px solid rgba(225, 177, 83, .24);
    border-radius: 7px;
    background: rgba(225, 177, 83, .08);
    padding: 0 9px;
    color: #ddba75;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.teleport-countdown {
    --teleport-progress: 0%;
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #0f0d0a 58%, transparent 60%),
        conic-gradient(#eabf6f var(--teleport-progress), rgba(255, 255, 255, .08) 0);
    text-align: center;
}

.teleport-countdown strong {
    color: #fff;
    font: 900 24px/1 Oswald, sans-serif;
}

.teleport-countdown small {
    margin-top: 2px;
    color: #eec476;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.friend-teleport-panel > button {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
}

.friend-teleport-panel > button:disabled {
    cursor: not-allowed;
    filter: grayscale(.8);
    opacity: .42;
}

#friend-teleport-feedback {
    min-height: 18px;
    margin-top: 10px;
    color: #989693;
    font-size: 9px;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .friends-page-hero,
    .friend-profile-hero {
        grid-template-columns: 1fr;
    }

    .friends-page-summary {
        min-width: 0;
    }

    .friends-page-request-card,
    .friend-profile-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .friends-page,
    .friend-profile-page {
        width: min(100% - 24px, 1460px);
        padding-top: 12px;
    }

    .friends-page-hero,
    .friend-profile-hero {
        min-height: 0;
        border-radius: 20px;
        padding: 28px 22px;
    }

    .friends-page-hero h1,
    .friend-profile-identity h1 {
        font-size: clamp(2.8rem, 15vw, 5rem);
    }

    .friends-page-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .friends-page-summary > div {
        padding: 18px 8px;
    }

    .friends-page-request-card form > div,
    .friends-pack-section > header,
    .friend-profile-identity {
        align-items: stretch;
        flex-direction: column;
    }

    .friends-page-request-card form > div {
        display: grid;
    }

    .friends-page-request-card button {
        min-height: 48px;
    }

    .friends-requests-grid,
    .friends-pack-grid {
        grid-template-columns: 1fr;
    }

    .friends-request-card {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .friends-request-card > img {
        width: 46px;
        height: 46px;
    }

    .friends-request-buttons {
        grid-column: 1 / -1;
    }

    .friends-pack-section > header p {
        text-align: left;
    }

    .friend-profile-identity {
        display: flex;
    }

    .friend-profile-own-profile {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .friend-profile-avatar > img {
        width: 120px;
        height: 120px;
        border-radius: 28px;
    }

    .friend-profile-dino {
        padding: 20px;
    }

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

    .friend-teleport-state {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .friend-teleport-actions {
        width: 100%;
        flex-direction: row;
    }

    .friend-teleport-actions button {
        min-height: 36px;
        flex: 1;
    }
}

/* Rankings — a shared Hall of Alphas for kills, deaths, hours and battle pass. */
.ranking-page {
    --ranking-accent: #d5a34a;
    --ranking-accent-rgb: 213, 163, 74;
    position: relative;
    z-index: 2;
    width: min(1540px, calc(100% - 44px));
    margin: 0 auto;
    padding: 18px 0 92px;
    color: #fcfaf7;
}

.ranking-page[data-ranking-category="kills"] {
    --ranking-accent: #e3a546;
    --ranking-accent-rgb: 227, 165, 70;
    --ranking-bg: url("../img/ranking_backgrounds/kills-canyon.png");
}

#friend-teleport-feedback.error {
    border: 1px solid rgba(248, 113, 113, .25);
    border-radius: 10px;
    padding: 9px 10px;
    color: #fecaca;
    background: rgba(127, 29, 29, .18);
}

.ranking-page[data-ranking-category="deaths"] {
    --ranking-accent: #dc684f;
    --ranking-accent-rgb: 220, 104, 79;
    --ranking-bg: url("../img/ranking_backgrounds/deaths-ravine.png");
}

.ranking-page[data-ranking-category="hours"] {
    --ranking-accent: #dcad58;
    --ranking-accent-rgb: 121, 183, 140;
    --ranking-bg: url("../img/ranking_backgrounds/hours-coast.png");
}

.ranking-page[data-ranking-category="battle_pass"] {
    --ranking-accent: #daaa53;
    --ranking-accent-rgb: 181, 142, 232;
    --ranking-bg: url("../img/ranking_backgrounds/battle-pass-terraces.png");
}

.ranking-hero,
.ranking-board {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, rgba(8, 8, 8, .94), rgba(8, 8, 8, .98)),
        var(--ranking-bg, url("../img/fossils_bg2.webp")) center / cover;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.ranking-hero {
    min-height: 660px;
    padding: 48px 54px 58px;
    border-color: rgba(var(--ranking-accent-rgb), .24);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, .68), rgba(5, 5, 5, .96)),
        radial-gradient(circle at 50% 70%, rgba(var(--ranking-accent-rgb), .19), transparent 35%),
        var(--ranking-bg, url("../img/fossils_bg2.webp")) center 42% / cover;
}

.ranking-board {
    background:
        linear-gradient(180deg, rgba(8, 8, 8, .87), rgba(8, 8, 8, .97)),
        var(--ranking-bg, url("../img/fossils_bg2.webp")) center 58% / cover;
}

.ranking-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .55;
    background:
        linear-gradient(110deg, transparent 0 46%, rgba(255, 255, 255, .025) 46.2% 46.7%, transparent 47%),
        repeating-linear-gradient(90deg, transparent 0 139px, rgba(255, 255, 255, .018) 140px);
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.ranking-hero::after {
    position: absolute;
    right: -54px;
    bottom: -112px;
    width: 370px;
    height: 370px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(var(--ranking-accent-rgb), .18);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(var(--ranking-accent-rgb), .035),
        0 0 0 88px rgba(var(--ranking-accent-rgb), .025);
}

.ranking-hero-ambient span {
    position: absolute;
    z-index: 0;
    display: block;
    width: 170px;
    height: 8px;
    opacity: .16;
    transform: rotate(-52deg);
    border-radius: 100%;
    background: linear-gradient(90deg, transparent, var(--ranking-accent), transparent);
    filter: blur(1px);
}

.ranking-hero-ambient span:nth-child(1) { top: 190px; right: 8%; }
.ranking-hero-ambient span:nth-child(2) { top: 240px; right: 11%; }
.ranking-hero-ambient span:nth-child(3) { top: 290px; right: 14%; }

.ranking-hero-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.ranking-heading {
    max-width: 830px;
}

.ranking-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 13px;
    color: var(--ranking-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.ranking-eyebrow i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--ranking-accent-rgb), .35);
    border-radius: 9px;
    background: rgba(var(--ranking-accent-rgb), .11);
    letter-spacing: 0;
}

.ranking-heading h1 {
    margin: 0;
    font-family: Oswald, sans-serif;
    font-size: clamp(4rem, 7vw, 7.8rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .88;
    text-transform: uppercase;
    text-shadow: 0 14px 34px rgba(0, 0, 0, .68);
}

.ranking-heading > p:last-child {
    max-width: 670px;
    margin: 24px 0 0;
    color: #a2a09d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.ranking-live-note {
    display: flex;
    min-width: 236px;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(6, 6, 6, .74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
}

.ranking-live-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #e5b967;
    box-shadow: 0 0 0 5px rgba(229, 185, 103, .1), 0 0 16px rgba(229, 185, 103, .65);
    animation: ranking-live-pulse 1.8s ease-in-out infinite;
}

@keyframes ranking-live-pulse {
    50% { opacity: .5; transform: scale(.86); }
}

.ranking-live-note strong,
.ranking-live-note small {
    display: block;
}

.ranking-live-note strong {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ranking-live-note small {
    margin-top: 4px;
    color: #787673;
    font-size: 10px;
}

.ranking-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    margin: 36px 0 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 16px;
    background: rgba(5, 5, 5, .76);
    backdrop-filter: blur(12px);
}

.ranking-tab {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #888683;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.ranking-tab:hover {
    color: #fff;
    transform: translateY(-1px);
}

.ranking-tab.active {
    border-color: rgba(var(--ranking-accent-rgb), .44);
    background: linear-gradient(145deg, rgba(var(--ranking-accent-rgb), .25), rgba(var(--ranking-accent-rgb), .09));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .22);
}

.ranking-tab.active i {
    color: var(--ranking-accent);
}

.ranking-podium-wrap {
    position: relative;
    z-index: 2;
    margin-top: 66px;
}

.ranking-podium-intro {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 13px;
    margin-bottom: 34px;
    text-align: center;
}

.ranking-podium-intro span {
    color: var(--ranking-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.ranking-podium-intro strong {
    color: #d2d0cd;
    font-size: 12px;
    font-weight: 700;
}

.ranking-podium {
    display: grid;
    min-height: 342px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.ranking-podium-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 296px;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    padding: 46px 24px 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px 24px 16px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(5, 5, 5, .9);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.ranking-podium-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    opacity: .56;
    background: radial-gradient(circle at 50% 22%, rgba(var(--medal-rgb), .18), transparent 38%);
}

.ranking-podium-card.podium-position-1 {
    --medal: #edbd58;
    --medal-rgb: 237, 189, 88;
    order: 2;
    min-height: 342px;
    padding-top: 46px;
    border-color: rgba(237, 189, 88, .38);
    background:
        linear-gradient(180deg, rgba(126, 87, 24, .25), rgba(255, 255, 255, .018)),
        rgba(5, 5, 5, .94);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .44), 0 0 42px rgba(237, 189, 88, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.ranking-podium-card.podium-position-2 {
    --medal: #b9b7b4;
    --medal-rgb: 174, 184, 194;
    order: 1;
}

.ranking-podium-card.podium-position-3 {
    --medal: #c27d45;
    --medal-rgb: 194, 125, 69;
    order: 3;
}

.ranking-podium-rank {
    position: absolute;
    top: -22px;
    z-index: 3;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 2px solid var(--medal);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(var(--medal-rgb), .30), #12100d 58%);
    color: var(--medal);
    font-family: Oswald, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .48), 0 0 24px rgba(var(--medal-rgb), .18);
    transform: rotate(45deg);
}

.ranking-podium-rank i {
    position: absolute;
    opacity: .18;
    font-size: 20px;
    transform: rotate(-45deg);
}

.ranking-podium-rank span {
    position: relative;
    font-size: 19px;
    font-weight: 900;
    transform: rotate(-45deg);
}

.ranking-podium-avatar {
    position: relative;
    z-index: 2;
    display: grid;
    width: 106px;
    height: 106px;
    place-items: center;
}

.podium-position-1 .ranking-podium-avatar {
    width: 128px;
    height: 128px;
}

.ranking-podium-avatar img {
    position: relative;
    z-index: 2;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    background: #0a0a0a;
    object-fit: cover;
    box-shadow: 0 13px 30px rgba(0, 0, 0, .56);
}

.ranking-avatar-orbit {
    position: absolute;
    inset: 0;
    border: 2px solid var(--medal);
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(var(--medal-rgb), .22), inset 0 0 18px rgba(var(--medal-rgb), .12);
}

.ranking-avatar-orbit::before,
.ranking-avatar-orbit::after {
    position: absolute;
    inset: 6px;
    content: "";
    border: 1px dashed rgba(var(--medal-rgb), .56);
    border-radius: 50%;
}

.ranking-avatar-orbit::after {
    inset: -7px;
    border-style: solid;
    border-color: transparent var(--medal);
    opacity: .45;
    transform: rotate(35deg);
}

/* En el podio el avatar crea su propio nivel de apilado; el efecto debe quedar
   por encima de la imagen para que no desaparezca detrás del ganador. */
.ranking-podium-avatar > .social-avatar-motion {
    z-index: 3;
    inset: -16px;
    border-radius: 50%;
    mix-blend-mode: screen;
}

/* La lista lateral de amigos también necesita su capa de efecto por encima
   del avatar para que no quede escondida dentro del pequeño círculo. */
.friend-row-avatar > .social-avatar-motion,
.friends-search-avatar > .social-avatar-motion,
.friends-pack-avatar-wrap > .social-avatar-motion,
.friends-request-avatar > .social-avatar-motion,
.presence-avatar-shell > .social-avatar-motion,
.ranking-row-avatar > .social-avatar-motion {
    z-index: 3;
    inset: -10px;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.ranking-podium-card > p,
.ranking-podium-identity,
.ranking-podium-score,
.ranking-podium-prize {
    position: relative;
    z-index: 2;
}

.ranking-podium-card > p {
    margin: 13px 0 5px;
    color: var(--medal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ranking-podium-identity {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}

.ranking-podium-identity > h2 {
    width: 100%;
    overflow: hidden;
    margin: 18px 0 0;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ranking-podium-score {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 12px;
}

.ranking-podium-score strong {
    color: var(--medal);
    font-family: Oswald, sans-serif;
    font-size: 24px;
    line-height: 1;
}

.ranking-podium-score span {
    color: #7d7b78;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ranking-podium-prize {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid rgba(var(--medal-rgb), .19);
    border-radius: 11px;
    background: rgba(var(--medal-rgb), .065);
}

.ranking-podium-prize span {
    color: #7c7a77;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ranking-podium-prize strong {
    color: var(--medal);
    font-family: Oswald, sans-serif;
    font-size: 15px;
}

.ranking-board {
    margin-top: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0 0, rgba(var(--ranking-accent-rgb), .09), transparent 25%),
        linear-gradient(145deg, rgba(16, 14, 11, .93), rgba(6, 6, 6, .97)),
        var(--ranking-bg, url("../img/fossils_bg2.webp")) center 58% / cover;
}

.ranking-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 38px 27px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.ranking-board-head p {
    margin: 0 0 7px;
    color: var(--ranking-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.ranking-board-head h2 {
    margin: 0;
    color: #f6f4f1;
    font-family: Oswald, sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
}

.ranking-player-count {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #898784;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ranking-list {
    display: grid;
    gap: 10px;
    padding: 20px 22px 24px;
}

.ranking-row {
    position: relative;
    display: grid;
    min-height: 78px;
    grid-template-columns: 70px 54px minmax(180px, 1fr) minmax(0, auto) minmax(138px, auto);
    align-items: center;
    gap: 17px;
    overflow: hidden;
    padding: 11px 20px 11px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;
    background: rgba(255, 255, 255, .026);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ranking-row::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    opacity: .45;
    background: var(--ranking-accent);
}

.ranking-row:hover {
    z-index: 2;
    transform: translateX(4px);
    border-color: rgba(var(--ranking-accent-rgb), .22);
    background: rgba(var(--ranking-accent-rgb), .055);
}

.ranking-row-position {
    display: flex;
    height: 52px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, .07);
}

.ranking-row-position small {
    color: #62605d;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ranking-row-position strong {
    margin-top: 2px;
    color: #cac8c5;
    font-family: Oswald, sans-serif;
    font-size: 23px;
    line-height: 1;
}

.ranking-row-avatar {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(var(--ranking-accent-rgb), .24);
    border-radius: 13px;
    background: #090909;
    object-fit: cover;
}

.ranking-row-player {
    min-width: 0;
    overflow: hidden;
}

.ranking-row-player strong,
.ranking-row-player span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row-player strong {
    color: #f8f6f3;
    font-size: 13px;
    font-weight: 900;
}

.ranking-row-player span {
    margin-top: 5px;
    color: #72706d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ranking-row-reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(221, 170, 75, .2);
    border-radius: 9px;
    background: rgba(221, 170, 75, .07);
    color: #dbaa4f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ranking-row-score {
    min-width: 138px;
    text-align: right;
}

.ranking-row-score strong,
.ranking-row-score span {
    display: block;
}

.ranking-row-score strong {
    color: var(--ranking-accent);
    font-family: Oswald, sans-serif;
    font-size: 26px;
    line-height: 1;
}

.ranking-row-score span {
    margin-top: 4px;
    color: #706e6b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ranking-rewards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, .18);
}

.ranking-rewards-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.ranking-rewards-copy > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(220, 171, 76, .24);
    border-radius: 11px;
    background: rgba(220, 171, 76, .08);
    color: #dcab4c;
}

.ranking-rewards-copy strong,
.ranking-rewards-copy span > span {
    display: block;
}

.ranking-rewards-copy strong {
    color: #edebe8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ranking-rewards-copy span {
    color: #716f6c;
    font-size: 10px;
    line-height: 1.5;
}

.ranking-reward-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.ranking-reward-chips span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    color: #a3a19e;
    font-family: Oswald, sans-serif;
    font-size: 12px;
}

.ranking-reward-chips b {
    color: #d9a74c;
}

.ranking-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 250px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #767471;
    text-align: center;
}

.ranking-empty i {
    margin-bottom: 6px;
    color: var(--ranking-accent);
    font-size: 28px;
    opacity: .65;
}

.ranking-empty strong {
    color: #cfcdca;
    font-family: Oswald, sans-serif;
    font-size: 24px;
    text-transform: uppercase;
}

.ranking-empty span {
    font-size: 11px;
}

.ranking-empty.compact {
    min-height: 118px;
}

.ranking-empty.compact i {
    font-size: 20px;
}

@media (max-width: 1023px) {
    .ranking-page {
        width: min(100% - 24px, 1540px);
        padding-top: 4px;
    }

    .ranking-hero {
        min-height: 0;
        padding: 32px 28px 42px;
        border-radius: 25px;
    }

    .ranking-hero-head {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .ranking-live-note {
        width: fit-content;
        min-width: 0;
    }

    .ranking-heading h1 {
        font-size: clamp(3.7rem, 12vw, 6rem);
    }

    .ranking-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .ranking-tab {
        flex: 0 0 auto;
    }

    .ranking-podium {
        gap: 13px;
    }

    .ranking-podium-card {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ranking-podium-prize {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 64px 52px minmax(0, 1fr) minmax(112px, auto);
        min-width: 0;
    }

    .ranking-row-reward {
        display: none;
    }

    .ranking-rewards {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-reward-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .ranking-page {
        width: min(100% - 18px, 1540px);
        padding-bottom: 64px;
    }

    .ranking-hero {
        padding: 26px 18px 30px;
        border-radius: 20px;
    }

    .ranking-heading > p:last-child {
        margin-top: 18px;
        font-size: 13px;
    }

    .ranking-eyebrow {
        font-size: 9px;
        letter-spacing: .2em;
    }

    .ranking-tabs {
        margin-top: 26px;
    }

    .ranking-podium-wrap {
        margin-top: 50px;
    }

    .ranking-podium-intro {
        align-items: center;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 38px;
    }

    .ranking-podium {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .ranking-podium-card,
    .ranking-podium-card.podium-position-1 {
        order: initial;
        min-height: 308px;
        padding: 46px 20px 20px;
    }

    .ranking-podium-card.podium-position-1 { order: 1; }
    .ranking-podium-card.podium-position-2 { order: 2; }
    .ranking-podium-card.podium-position-3 { order: 3; }

    .ranking-podium-avatar,
    .podium-position-1 .ranking-podium-avatar {
        width: 112px;
        height: 112px;
    }

    .ranking-podium-identity > h2 {
        margin-top: 16px;
    }

    .ranking-board {
        border-radius: 20px;
    }

    .ranking-board-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 26px 20px 22px;
    }

    .ranking-board-head h2 {
        font-size: 2rem;
    }

    .ranking-list {
        gap: 8px;
        padding: 12px;
    }

    .ranking-row {
        min-height: 76px;
        grid-template-columns: 44px 45px minmax(0, 1fr) minmax(72px, auto);
        gap: 9px;
        padding: 10px 10px 10px 7px;
        border-radius: 13px;
    }

    .ranking-row-position {
        height: 46px;
    }

    .ranking-row-position small {
        display: none;
    }

    .ranking-row-position strong {
        font-size: 19px;
    }

    .ranking-row-avatar {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .ranking-row-player strong {
        font-size: 11px;
    }

    .ranking-row-player span {
        font-size: 7px;
        letter-spacing: .08em;
    }

    .ranking-row-score {
        min-width: 0;
    }

    .ranking-row-score strong {
        font-size: 20px;
    }

    .ranking-row-score span {
        font-size: 7px;
    }

    .ranking-rewards {
        padding: 22px 18px;
    }

    .ranking-reward-chips span {
        min-height: 32px;
        padding: 0 9px;
    }
}

/* Mobile shell hardening --------------------------------------------------
   Keep every primary action inside the viewport and make the compact
   navigation usable without hiding destinations behind horizontal scroll. */
@media (max-width: 767px) {
    .app-shell-offset {
        padding-top: calc(82px + env(safe-area-inset-top));
    }

    .app-topbar {
        height: calc(70px + env(safe-area-inset-top));
    }

    .app-topbar-inner.horizontal {
        width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 0 8px;
        overflow: visible;
    }

    .app-brand {
        width: 64px;
        height: 54px;
        flex: 0 0 64px;
    }

    .app-brand img {
        width: 60px;
        height: 44px;
    }

    .topbar-actions {
        display: flex;
        min-width: 0;
        max-width: calc(100% - 70px);
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 5px !important;
        padding: 0;
    }

    .topbar-actions > * {
        flex-shrink: 0;
    }

    .topbar-logout {
        display: none !important;
    }

    .wallet-pill {
        display: inline-flex !important;
        width: 40px;
        min-width: 40px;
        height: 40px;
        justify-content: center;
        padding: 0;
        border-radius: 11px;
    }

    .wallet-pill img {
        width: 25px;
        height: 25px;
    }

    .wallet-pill [data-dinocoin-balance] {
        display: none;
    }

    .app-icon-button,
    .notification-top-button,
    .gift-top-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
    }

    .app-user-chip {
        width: 42px;
        min-width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .app-user-chip > span:not(.app-user-avatar-wrap) {
        display: none !important;
    }

    .app-user-chip img {
        width: 36px;
        height: 36px;
    }

    #nav-toggle {
        display: inline-grid !important;
        flex: 0 0 40px;
    }

    #mobile-menu {
        width: min(344px, 94vw);
        max-width: 100vw;
        padding: calc(16px + env(safe-area-inset-top)) 14px
            max(14px, env(safe-area-inset-bottom));
        gap: 12px;
    }

    #mobile-menu > div:first-child {
        margin-bottom: 0;
        padding: 2px 2px 14px;
    }

    .mobile-menu-scroll {
        gap: 8px !important;
        padding-inline: 1px;
    }

    .mobile-nav-link {
        min-height: 46px;
        gap: 12px;
        padding-inline: 13px;
        font-size: 10px;
    }

    .mobile-subnav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 4px 10px;
        padding-left: 8px;
    }

    .mobile-subnav a {
        min-width: 0;
        min-height: 42px;
        gap: 8px;
        padding: 0 9px;
        font-size: 8px;
        line-height: 1.2;
    }

    .mobile-subnav a span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mobile-logout-link {
        min-height: 46px;
    }

    .hub-page {
        width: min(100% - 18px, 1540px);
        padding-bottom: 64px;
    }

    .hub-title,
    .hub-title-dashboard {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .gift-modal-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .gift-modal-head h2 {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    .gift-modal-head > .text-right {
        order: 3;
        width: 100%;
        text-align: left;
    }

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

    .ranking-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
    }

    .ranking-tab {
        width: 100%;
        min-width: 0;
        justify-content: center;
        gap: 7px;
        padding: 0 8px;
        text-align: center;
        white-space: normal;
    }

    .ranking-tab:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ranking-heading h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
        overflow-wrap: anywhere;
    }

    .site-footer,
    .site-footer * {
        max-width: 100%;
    }

    .friends-drawer-panel {
        width: min(100vw, 390px);
        max-width: 100vw;
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }
}

@media (max-width: 520px) {
    .map-layer-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .map-layer-buttons .map-control-btn {
        width: 100%;
        min-width: 0;
        padding-inline: 6px;
        font-size: 8px;
    }

    .map-daily-card {
        top: calc(340px + env(safe-area-inset-top)) !important;
    }
}

@media (max-width: 374px) {
    .app-topbar-inner.horizontal {
        padding-inline: 6px;
    }

    .app-brand {
        width: 54px;
        flex-basis: 54px;
    }

    .app-brand img {
        width: 51px;
    }

    .topbar-actions {
        max-width: calc(100% - 58px);
        gap: 3px !important;
    }

    .wallet-pill,
    .app-icon-button,
    .notification-top-button,
    .gift-top-button {
        width: 38px;
        min-width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .app-user-chip {
        width: 40px;
        min-width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    #nav-toggle {
        flex-basis: 38px;
    }

    .ranking-row {
        grid-template-columns: 40px 40px minmax(0, 1fr) minmax(62px, auto);
        gap: 6px;
    }
}

@media (max-width: 1023px) and (max-height: 500px) {
    #mobile-menu {
        padding: max(8px, env(safe-area-inset-top)) 12px
            max(8px, env(safe-area-inset-bottom));
        gap: 6px;
    }

    #mobile-menu > div:first-child {
        padding-bottom: 7px;
    }

    #mobile-menu > div:first-child > span {
        font-size: 1rem;
    }

    #mobile-menu .app-icon-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .mobile-menu-scroll {
        gap: 5px !important;
        padding-bottom: 8px;
    }

    .mobile-nav-link {
        min-height: 38px;
    }

    .mobile-subnav a {
        min-height: 34px;
    }

    .mobile-logout-link {
        min-height: 38px;
    }
}
/* Community and friends: compact, predictable floating controls. */
.friends-fab,
.community-fab {
    display: inline-flex !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    left: auto !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 16px !important;
}
.friends-fab { bottom: max(20px, env(safe-area-inset-bottom)) !important; }
.community-fab { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 68px) !important; }
.friends-fab-label,
.community-fab-label { display: none !important; }
.friends-fab-icon,
.community-fab-icon {
    width: auto !important;
    height: auto !important;
    font-size: 20px !important;
}

.friends-search-results {
    max-height: 250px;
    margin: 8px 0 12px;
    overflow-y: auto;
    border: 1px solid rgba(198,146,58,.2);
    border-radius: 12px;
    background: rgba(4,5,5,.96);
}
/* Keep manual results readable when the other drawer sections fill the panel. */
.friends-drawer-panel:has(#friends-search-results:not([hidden])) {
    overflow-y: auto;
}
#friends-search-results:not([hidden]) {
    flex: 0 0 auto;
    max-height: min(250px, 40dvh);
    min-height: 64px;
    overflow-y: auto;
}
.friends-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.friends-search-row:last-child { border-bottom: 0; }
.friends-search-row > a {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 9px;
}
.friends-search-row img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
}
.friends-search-row span { display: grid; min-width: 0; }
.friends-search-row strong,
.friends-search-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friends-search-row strong { color: #f4f1e8; font-size: 13px; }
.friends-search-row small { color: #898784; font-size: 11px; }
.friends-search-row button {
    min-width: 68px;
    padding: 8px 10px;
    border: 1px solid rgba(198,146,58,.38);
    border-radius: 8px;
    color: #efc976;
    background: rgba(198,146,58,.12);
    font-size: 11px;
    font-weight: 800;
}
.friends-search-row button:disabled { color: #706e6b; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }

.gift-modal-welcome .gift-modal-panel {
    animation: welcomeGiftEntrance .55s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 35px 100px rgba(0,0,0,.8), 0 0 70px rgba(198,146,58,.18);
}
.gift-modal-welcome .gift-welcome-banner {
    position: relative;
    min-height: 118px;
    margin: 6px 0 22px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid rgba(240,190,91,.55);
    background:
        radial-gradient(circle at 12% 20%, rgba(255,207,104,.3), transparent 28%),
        linear-gradient(120deg, rgba(198,146,58,.24), rgba(79,56,19,.12));
    box-shadow: inset 0 0 45px rgba(218,160,55,.08), 0 12px 32px rgba(0,0,0,.28);
}
.gift-welcome-banner small {
    display: block;
    margin-bottom: 4px;
    color: #d8a84e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.gift-modal-welcome .gift-welcome-banner strong {
    font-family: Oswald, sans-serif;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1;
    text-transform: uppercase;
}
.gift-modal-welcome .gift-welcome-banner span {
    max-width: 620px;
    margin-top: 9px;
    color: #d7d3c9;
    font-size: 15px;
    line-height: 1.55;
}
@keyframes welcomeGiftEntrance {
    from { opacity: 0; transform: translateY(34px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
    .friends-fab,
    .community-fab {
        right: max(12px, env(safe-area-inset-right)) !important;
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
    }
    .community-fab { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px) !important; }
    .friends-fab { bottom: max(14px, env(safe-area-inset-bottom)) !important; }
    .gift-modal-welcome .gift-welcome-banner { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .gift-modal-welcome .gift-modal-panel { animation: none !important; }
}

/* Public profile customization and collection showcase. */
.profile-customization-card { overflow: hidden; }
.profile-customization-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.profile-customization-head > div > p:last-child {
    max-width: 720px;
    margin-top: 7px;
    color: #92908d;
    font-size: 12px;
    line-height: 1.5;
}
.profile-membership-rank,
.friend-membership-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid color-mix(in srgb, var(--profile-accent, #d7a64c) 45%, transparent);
    border-radius: 999px;
    color: #f0cc7d;
    background: rgba(215,166,76,.1);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.profile-membership-rank.rank-1,.friend-membership-chip.rank-1 { color: #69dbbc; border-color: rgba(81,200,164,.4); background: rgba(81,200,164,.1); }
.profile-membership-rank.rank-2,.friend-membership-chip.rank-2 { color: #bca0ff; border-color: rgba(150,108,255,.42); background: rgba(150,108,255,.12); }
.profile-membership-rank.rank-3,.friend-membership-chip.rank-3 { color: #ffc267; border-color: rgba(255,183,77,.48); background: rgba(255,145,31,.12); }
.profile-style-preview,
.friend-profile-hero {
    --profile-bg: url('../img/fossils_bg2.webp');
    --profile-accent: #d7a64c;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,6,5,.92), rgba(4,6,5,.54)),
        var(--profile-bg) center/cover no-repeat !important;
}
.profile-style-preview::before,
.friend-profile-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 2px solid var(--profile-accent);
    border-radius: inherit;
    content: "";
    pointer-events: none;
    box-shadow: inset 0 0 55px color-mix(in srgb, var(--profile-accent) 17%, transparent);
}
.profile-style-preview {
    display: flex;
    min-height: 190px;
    margin: 28px 0;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border-radius: 18px;
}
.profile-style-preview > img {
    width: 104px;
    height: 104px;
    border: 5px solid var(--profile-accent);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px color-mix(in srgb, var(--profile-accent) 36%, transparent);
}
.profile-style-preview > div:not(.profile-style-particles) { display: grid; gap: 3px; }
.profile-style-preview small { color: var(--profile-accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.profile-style-preview strong { color: #fff; font: 900 clamp(22px,4vw,34px)/1 Oswald,sans-serif; text-transform: uppercase; }
.profile-style-preview span { color: #b8b9b4; font-size: 12px; }
.profile-style-fieldset { margin-top: 28px; }
.profile-style-fieldset legend {
    margin-bottom: 12px;
    color: #f0eee8;
    font: 800 14px/1.2 Inter,sans-serif;
}
.profile-style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(145px,1fr));
    gap: 12px;
}
.profile-style-option {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: rgba(0,0,0,.25);
    cursor: pointer;
}
.profile-style-option:has(input:checked),
.profile-style-option.is-selected {
    border-color: #d7a64c;
    box-shadow: 0 0 0 2px rgba(215,166,76,.13);
}
.profile-style-option.locked { opacity: .62; cursor: not-allowed; }
.profile-style-option input { position: absolute; opacity: 0; pointer-events: none; }
.profile-style-swatch {
    display: grid;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #12100d;
}
.profile-style-swatch.background { background-position: center; background-size: cover; }
.profile-style-swatch.frame i {
    width: 48px;
    height: 48px;
    border: 5px solid var(--swatch-tone);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--swatch-tone);
}
.profile-style-swatch.effect i { color: #d7a64c; font-size: 26px; }
.profile-style-option > strong { color: #fff; font-size: 11px; }
.profile-style-option > small { color: #84827f; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.profile-style-option > b {
    position: absolute;
    top: 19px;
    right: -32px;
    width: 120px;
    padding: 4px;
    color: #16130d;
    background: #d7a64c;
    font-size: 8px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(40deg);
}
.profile-upgrade-note {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(215,166,76,.22);
    border-radius: 12px;
    color: #aaa69b;
    background: rgba(215,166,76,.06);
    font-size: 11px;
    line-height: 1.5;
}
.profile-upgrade-note i,.profile-upgrade-note a { color: #e4b85e; }
.profile-upgrade-note a { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* Confirmación visual para pagos de rangos y colaboraciones. */
.payment-result-page {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    width: 100vw;
    height: 100dvh;
    padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
    place-items: center;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 10%,rgba(198,146,58,.16),transparent 38%),rgba(2,2,2,.88);
    backdrop-filter: blur(14px);
}
.payment-result-modal {
    --result-accent: #d9ad5b;
    position: relative;
    width: min(900px,100%);
    max-height: calc(100dvh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb,var(--result-accent) 40%,transparent);
    border-radius: 25px;
    background: linear-gradient(145deg,rgba(21,19,16,.99),rgba(5,5,5,.99));
    box-shadow: 0 30px 100px rgba(0,0,0,.72),0 0 55px color-mix(in srgb,var(--result-accent) 11%,transparent);
}
.payment-result-modal.is-pending { --result-accent:#f4c95d; width:min(650px,100%); }
.payment-result-modal.donation-result-modal { --result-accent:#f0c87d; width:min(780px,100%); }
.payment-result-glow {
    position: absolute;
    top: -150px;
    right: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: color-mix(in srgb,var(--result-accent) 16%,transparent);
    filter: blur(50px);
    pointer-events: none;
}
.payment-result-header {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) 38px;
    gap: 17px;
    align-items: start;
    padding: 27px 28px 23px;
    border-bottom: 1px solid rgba(255,255,255,.075);
}
.payment-result-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid color-mix(in srgb,var(--result-accent) 42%,transparent);
    border-radius: 19px;
    color: var(--result-accent);
    background: color-mix(in srgb,var(--result-accent) 11%,transparent);
    font-size: 27px;
    box-shadow: inset 0 0 22px color-mix(in srgb,var(--result-accent) 8%,transparent);
}
.payment-result-header p { margin:1px 0 5px; color:var(--result-accent); font-size:9px; font-weight:1000; letter-spacing:.2em; text-transform:uppercase; }
.payment-result-header h1 { color:#fff; font:900 clamp(27px,4vw,42px)/1 Oswald,sans-serif; text-transform:uppercase; }
.payment-result-header > div > span { display:block; max-width:680px; margin-top:8px; color:#9d9b98; font-size:12px; font-weight:650; line-height:1.55; }
.payment-result-close { display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(255,255,255,.09); border-radius:11px; color:#868481; background:rgba(255,255,255,.035); transition:.18s; }
.payment-result-close:hover,.payment-result-close:focus-visible { border-color:rgba(255,255,255,.24); color:#fff; outline:none; }
.payment-result-summary {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 22px 28px 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    background: rgba(255,255,255,.035);
}
.payment-result-summary img { width:74px; height:74px; border-radius:14px; object-fit:cover; border:1px solid color-mix(in srgb,var(--result-accent) 38%,transparent); }
.payment-result-summary small { display:block; color:#7b7976; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.payment-result-summary strong { display:block; margin-top:3px; color:#fff; font:900 24px/1 Oswald,sans-serif; text-transform:uppercase; }
.payment-result-summary span { display:block; margin-top:6px; color:#9b9996; font-size:10px; }
.payment-result-summary > b { color:var(--result-accent); font:900 17px/1 Oswald,sans-serif; letter-spacing:.04em; }
.payment-result-delivery { display:flex; gap:12px; align-items:center; margin:12px 28px 0; padding:12px 15px; border:1px solid rgba(240,200,125,.2); border-radius:14px; color:#f0c87d; background:rgba(240,200,125,.065); }
.payment-result-delivery > i { font-size:18px; }
.payment-result-delivery strong,.payment-result-delivery small { display:block; }
.payment-result-delivery strong { color:#fdedcc; font-size:11px; }
.payment-result-delivery small { margin-top:2px; color:#c6953f; font-size:9px; }
.payment-result-benefits { padding:22px 28px 5px; }
.payment-result-benefits h2 { margin-bottom:12px; color:#dddcd5; font-size:10px; font-weight:1000; letter-spacing:.16em; text-transform:uppercase; }
.payment-benefit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.payment-benefit-item { display:flex; min-width:0; gap:11px; align-items:center; padding:11px 12px; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(0,0,0,.2); }
.payment-benefit-item > i { display:grid; width:31px; height:31px; flex:0 0 31px; place-items:center; border-radius:9px; color:var(--result-accent); background:color-mix(in srgb,var(--result-accent) 10%,transparent); font-size:12px; }
.payment-benefit-item strong,.payment-benefit-item small { display:block; }
.payment-benefit-item strong { color:#edebe8; font-size:10px; }
.payment-benefit-item small { margin-top:2px; color:#858380; font-size:9px; line-height:1.35; }
.payment-result-actions { display:flex; justify-content:flex-end; gap:9px; padding:20px 28px 25px; }
.payment-result-primary,.payment-result-secondary { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:8px; padding:0 20px; border-radius:11px; font-size:9px; font-weight:1000; letter-spacing:.11em; text-transform:uppercase; }
.payment-result-primary { color:#0c0c0c; background:linear-gradient(135deg,var(--result-accent),color-mix(in srgb,var(--result-accent) 70%,#80601d)); box-shadow:0 10px 28px color-mix(in srgb,var(--result-accent) 15%,transparent); }
.payment-result-secondary { border:1px solid rgba(255,255,255,.1); color:#ddd; background:rgba(255,255,255,.035); }
.donation-result-amount { display:flex; align-items:baseline; gap:11px; margin:22px 28px 0; padding:14px 17px; border:1px solid rgba(240,200,125,.18); border-radius:14px; background:rgba(240,200,125,.055); }
.donation-result-amount small { color:#c6953f; font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.donation-result-amount strong { color:#fdf1d5; font:900 23px/1 Oswald,sans-serif; }
.donation-result-amount span { margin-left:auto; color:#f0c87d; font-size:9px; font-weight:900; text-transform:uppercase; }
.donation-thanks-copy { display:flex; gap:16px; margin:13px 28px 0; padding:19px; border:1px solid rgba(255,255,255,.075); border-radius:16px; background:rgba(255,255,255,.025); }
.donation-thanks-copy > i { color:#f0c87d; font-size:25px; }
.donation-thanks-copy strong { color:#fff; font-size:13px; line-height:1.45; }
.donation-thanks-copy p { margin-top:6px; color:#8f8d8a; font-size:10px; line-height:1.6; }
.donation-use-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:13px 28px 0; }
.donation-use-grid > span { display:grid; min-width:0; padding:13px; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(0,0,0,.18); }
.donation-use-grid i { color:#f0c87d; font-size:14px; }
.donation-use-grid b { margin-top:7px; color:#eee; font-size:10px; }
.donation-use-grid small { margin-top:3px; color:#7b7976; font-size:8px; line-height:1.35; }
.payment-result-footnote { margin:-11px 28px 22px; color:#666461; font-size:8px; font-weight:800; letter-spacing:.08em; text-align:right; text-transform:uppercase; }
@media (min-width:1200px) and (pointer:fine) {
    html:not(.native-page-scale) .payment-result-page { zoom:1.25; }
}
@media (max-width:640px) {
    .payment-result-page { padding:12px; }
    .payment-result-modal { max-height:calc(100dvh - 24px); border-radius:19px; }
    .payment-result-header { grid-template-columns:48px minmax(0,1fr) 32px; gap:11px; padding:19px 17px 17px; }
    .payment-result-icon { width:48px; height:48px; border-radius:14px; font-size:21px; }
    .payment-result-close { width:32px; height:32px; }
    .payment-result-header h1 { font-size:27px; }
    .payment-result-summary { grid-template-columns:56px 1fr; margin:15px 17px 0; padding:12px; }
    .payment-result-summary img { width:56px; height:56px; }
    .payment-result-summary > b { grid-column:2; }
    .payment-result-delivery { margin:9px 17px 0; }
    .payment-result-benefits { padding:18px 17px 3px; }
    .payment-benefit-grid { grid-template-columns:1fr; }
    .payment-result-actions { display:grid; grid-template-columns:1fr; padding:17px; }
    .donation-result-amount { flex-wrap:wrap; margin:15px 17px 0; }
    .donation-result-amount span { width:100%; margin-left:0; }
    .donation-thanks-copy { margin:10px 17px 0; padding:15px; }
    .donation-use-grid { grid-template-columns:repeat(2,1fr); margin:10px 17px 0; }
    .payment-result-footnote { margin:-7px 17px 18px; text-align:center; }
}

.profile-style-particles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.profile-effect-embers .profile-style-particles::before,
.profile-effect-energy .profile-style-particles::before,
.profile-effect-aurora .profile-style-particles::before {
    position: absolute;
    width: 180%;
    height: 180%;
    left: -40%;
    bottom: -145%;
    border-radius: 42%;
    content: "";
    animation: profileEffectOrbit 8s linear infinite;
}
.profile-effect-embers .profile-style-particles::before {
    background: conic-gradient(from 20deg,transparent 0 20%,rgba(255,112,25,.46),transparent 29% 55%,rgba(255,197,67,.35),transparent 64%);
}
.profile-effect-energy .profile-style-particles::before {
    background: conic-gradient(from 20deg,transparent 0 20%,rgba(105,67,255,.5),transparent 29% 55%,rgba(61,209,255,.42),transparent 64%);
    animation-duration: 5s;
}
.profile-effect-aurora .profile-style-particles::before {
    background: conic-gradient(from 20deg,transparent 0 14%,rgba(0,255,200,.52),transparent 26% 40%,rgba(159,73,255,.5),transparent 52% 70%,rgba(255,175,54,.42),transparent 82%);
    filter: blur(12px);
    animation-duration: 4s;
}
@keyframes profileEffectOrbit { to { transform: rotate(360deg); } }
.profile-frame-dominant::before { border-width: 3px; box-shadow: inset 0 0 60px rgba(150,108,255,.2),0 0 30px rgba(150,108,255,.18); }
.profile-frame-titan::before { border-width: 4px; box-shadow: inset 0 0 70px rgba(255,183,77,.25),0 0 38px rgba(255,183,77,.22); }

.friend-profile-page {
    width: min(1120px,calc(100% - 32px)) !important;
    max-width: 1120px !important;
}
.friend-profile-hero { min-height: 300px !important; padding: 44px !important; }
.friend-profile-atmosphere { background: none !important; }
.friend-profile-hero::before { z-index: 3; }
.friend-profile-avatar > img { border-color: var(--profile-accent) !important; box-shadow: 0 0 35px color-mix(in srgb,var(--profile-accent) 35%,transparent) !important; }
.friend-membership-chip { margin-left: 8px; }
.friend-showcase-section {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: linear-gradient(145deg,rgba(19,17,14,.92),rgba(7,8,7,.96));
}
.friend-showcase-section > header { margin-bottom: 18px; }
.friend-showcase-section > header span { color: #89734a; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.friend-showcase-section > header h2 { margin-top: 4px; color: #fff; font: 900 28px/1 Oswald,sans-serif; text-transform: uppercase; }
.friend-ranking-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.friend-ranking-grid article {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(215,166,76,.14);
    border-radius: 12px;
    background: rgba(215,166,76,.045);
}
.friend-ranking-grid small { color: #8f8d8a; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.friend-ranking-grid strong { color: #e8bd69; font: 900 27px/1 Oswald,sans-serif; }
.friend-ranking-grid span { color: #b8b9b4; font-size: 12px; }
.friend-mission-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.friend-mission-grid article { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(226,181,98,.14); border-radius: 11px; background: rgba(226,181,98,.045); }
.friend-mission-grid i { color: #eabf6f; font-size: 18px; }
.friend-mission-grid div { display: grid; gap: 3px; }
.friend-mission-grid strong { color: #eceae7; font-size: 13px; }
.friend-mission-grid small { color: #7a7875; font-size: 10px; }
.friend-collection-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.friend-collection-grid article { display: grid; gap: 6px; padding: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(0,0,0,.28); }
.friend-collection-grid img { width: 100%; aspect-ratio: 16/10; border-radius: 8px; object-fit: contain; background: radial-gradient(circle,rgba(215,166,76,.12),transparent 70%); }
.friend-collection-grid strong { overflow-wrap: anywhere; color: #fff; font-size: 13px; }
.friend-collection-grid small { color: #817f7c; font-size: 10px; }
.friend-showcase-empty { padding: 18px; border-radius: 11px; color: #7b7976; background: rgba(255,255,255,.025); font-size: 13px; }
@media (max-width: 760px) {
    .profile-customization-head { display: grid; }
    .profile-style-preview { padding: 20px; }
    .profile-style-preview > img { width: 76px; height: 76px; }
    .friend-profile-hero { min-height: 250px !important; padding: 26px 20px !important; }
    .friend-ranking-grid,.friend-collection-grid { grid-template-columns: repeat(2,1fr); }
    .friend-mission-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-style-particles::before { animation: none !important; }
}
.store-purchase-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.store-purchase-success span { display: inline-flex; align-items: center; gap: 8px; }
.store-purchase-success a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 9px;
    color: #10140f;
    background: #c6923a;
}
@media (max-width: 580px) {
    .store-purchase-success { flex-direction: column; }
}

/* Social controls: keep the colored button, remove the extra badge around the icon. */
.friends-fab-icon,
.community-fab-icon {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Epic public-profile frames and clearly differentiated motion effects. */
.profile-style-preview,
.friend-profile-hero {
    background:
        linear-gradient(90deg, rgba(3,5,4,.76), rgba(3,5,4,.20)),
        linear-gradient(0deg, rgba(2,3,3,.58), transparent 60%),
        var(--profile-bg) center/cover no-repeat !important;
}
.profile-style-preview::before,
.friend-profile-hero::before {
    inset: 0;
    padding: 3px;
    border: 0 !important;
    background: conic-gradient(from 20deg, var(--profile-accent), transparent 18%, var(--profile-accent) 31%, transparent 48%, var(--profile-accent) 67%, transparent 82%, var(--profile-accent));
    box-shadow: inset 0 0 48px color-mix(in srgb,var(--profile-accent) 18%,transparent), 0 0 28px color-mix(in srgb,var(--profile-accent) 18%,transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.profile-frame-stone::before {
    padding: 4px;
    background: repeating-conic-gradient(from 12deg,#4c5651 0 10deg,#9ba39d 10deg 17deg,#313936 17deg 27deg);
    filter: saturate(.55);
}
.profile-frame-amber::before {
    background: conic-gradient(from 0deg,#6e4313,#f7cc6b,#9a5d19,#fff0a2,#744414,#eab654,#6e4313);
    box-shadow: inset 0 0 48px rgba(234,182,84,.2),0 0 34px rgba(234,182,84,.28);
}
.profile-frame-tracker::before {
    background: repeating-conic-gradient(from 0deg,#163f35 0 10deg,#65ffd0 10deg 13deg,transparent 13deg 24deg);
    box-shadow: inset 0 0 56px rgba(64,255,196,.18),0 0 36px rgba(64,255,196,.26);
    animation: profileFrameGlow 3.4s ease-in-out infinite;
}
.profile-frame-dominant::before {
    padding: 4px;
    background: conic-gradient(from 10deg,#2a1248,#b884ff,#4d1d8c,#f0c7ff,#54238f,#9b5eff,#2a1248);
    box-shadow: inset 0 0 65px rgba(165,91,255,.24),0 0 44px rgba(157,88,255,.34);
    animation: profileFrameGlow 2.8s ease-in-out infinite reverse;
}
.profile-frame-titan::before {
    padding: 5px;
    background: conic-gradient(from 0deg,#3c1600,#ff7a00,#ffe58a,#ff9d16,#fff3b0,#b63d00,#ffc640,#3c1600);
    filter: drop-shadow(0 0 8px rgba(255,169,42,.72));
    animation: profileFrameGlow 1.9s ease-in-out infinite;
}
@keyframes profileFrameGlow { 50% { opacity: .66; filter: brightness(1.45) saturate(1.3); } }

.profile-style-particles::before,
.profile-style-particles::after {
    position: absolute;
    inset: -25%;
    content: "";
    pointer-events: none;
}
.profile-effect-none .profile-style-particles::before,
.profile-effect-none .profile-style-particles::after { display: none; }
.profile-effect-embers .profile-style-particles::before {
    width: auto;
    height: auto;
    left: -25%;
    bottom: -25%;
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 84%,#ffcc58 0 2px,transparent 3px),
        radial-gradient(circle at 28% 94%,#ff6a1f 0 3px,transparent 4px),
        radial-gradient(circle at 47% 86%,#ffe08a 0 2px,transparent 3px),
        radial-gradient(circle at 63% 96%,#ff7825 0 3px,transparent 4px),
        radial-gradient(circle at 82% 88%,#ffbd45 0 2px,transparent 3px);
    filter: drop-shadow(0 0 7px #ff7022);
    animation: profileEmberRise 4.8s linear infinite;
}
.profile-effect-embers .profile-style-particles::after {
    background: radial-gradient(ellipse at 50% 110%,rgba(255,87,20,.48),transparent 58%);
    animation: profileEffectPulse 2.1s ease-in-out infinite;
}
.profile-effect-energy .profile-style-particles::before {
    width: auto;
    height: auto;
    left: -25%;
    bottom: -25%;
    border-radius: 0;
    background:
        repeating-linear-gradient(118deg,transparent 0 12%,rgba(84,220,255,.08) 13%,transparent 15% 24%),
        linear-gradient(105deg,transparent 22%,rgba(112,78,255,.75) 23%,transparent 25% 44%,rgba(66,221,255,.72) 45%,transparent 48%);
    filter: blur(.2px) drop-shadow(0 0 9px #815dff);
    animation: profileEnergyStrike 3.2s steps(1,end) infinite;
}
.profile-effect-energy .profile-style-particles::after {
    inset: 0;
    border: 1px solid rgba(87,224,255,.45);
    background: radial-gradient(circle at 70% 38%,rgba(80,226,255,.24),transparent 22%);
    box-shadow: inset 0 0 45px rgba(120,78,255,.22);
    animation: profileEffectPulse 1.45s ease-in-out infinite;
}
.profile-effect-aurora .profile-style-particles::before {
    width: auto;
    height: auto;
    left: -25%;
    bottom: -25%;
    border-radius: 0;
    background:
        linear-gradient(115deg,transparent 5%,rgba(0,255,192,.34) 28%,rgba(108,79,255,.48) 47%,rgba(255,74,206,.34) 65%,transparent 88%);
    filter: blur(22px) saturate(1.5);
    animation: profileAuroraWave 5.5s ease-in-out infinite alternate;
}
.profile-effect-aurora .profile-style-particles::after {
    background-image:
        radial-gradient(circle,#fff 0 1px,transparent 1.5px),
        radial-gradient(circle,#88ffe5 0 1px,transparent 1.5px);
    background-position: 0 0,18px 26px;
    background-size: 43px 43px,57px 57px;
    opacity: .48;
    animation: profileStarDrift 10s linear infinite;
}
@keyframes profileEmberRise {
    from { transform: translateY(26%) scale(1); opacity: .35; }
    55% { opacity: 1; }
    to { transform: translateY(-42%) scale(1.18); opacity: 0; }
}
@keyframes profileEnergyStrike {
    0%,46%,100% { opacity: .38; transform: translateX(-5%); }
    47%,52% { opacity: 1; transform: translateX(4%); }
    53%,78% { opacity: .55; transform: translateX(0); }
    79%,83% { opacity: .95; transform: translateX(-2%); }
}
@keyframes profileAuroraWave {
    from { transform: translate3d(-12%,8%,0) skewX(-8deg) scale(1.05); }
    to { transform: translate3d(12%,-6%,0) skewX(8deg) scale(1.22); }
}
@keyframes profileStarDrift { to { transform: translate3d(43px,-43px,0); } }
@keyframes profileEffectPulse { 50% { opacity: .48; filter: brightness(1.55); } }

/* Avatar versions of the selected frame, shared by settings, profiles, friends and Community. */
.social-avatar-frame {
    --social-accent: #8f978f;
    position: relative;
    isolation: isolate;
    overflow: visible !important;
}
.social-avatar-frame > img,
.social-avatar-frame > .presence-avatar {
    position: relative;
    z-index: 2;
}
.social-avatar-frame::before,
.social-avatar-frame::after {
    position: absolute;
    z-index: 1;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}
.social-avatar-frame::before {
    inset: -5px;
    padding: 3px;
    background: conic-gradient(from 0deg,var(--social-accent),transparent 20%,var(--social-accent) 42%,transparent 62%,var(--social-accent) 82%,transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.social-avatar-frame::after {
    inset: -8px;
    border: 1px solid color-mix(in srgb,var(--social-accent) 46%,transparent);
    opacity: .52;
    box-shadow: 0 0 18px color-mix(in srgb,var(--social-accent) 44%,transparent);
}
.social-avatar-frame.social-frame-stone::before {
    background: repeating-conic-gradient(#4c5651 0 12deg,#a8afa9 12deg 18deg,#303734 18deg 30deg);
    filter: saturate(.5);
}
.social-avatar-frame.social-frame-amber::before {
    background: conic-gradient(#6e4313,#ffda75,#8d5314,#fff0a1,#925514,#ffc75c,#6e4313);
}
.social-avatar-frame.social-frame-tracker::before {
    background: repeating-conic-gradient(#123d31 0 12deg,#63ffd0 12deg 16deg,transparent 16deg 28deg);
    animation: socialFrameSpin 7s linear infinite;
}
.social-avatar-frame.social-frame-dominant::before {
    background: conic-gradient(#24113f,#bd8cff,#4b1d83,#f0c9ff,#5e279a,#a25eff,#24113f);
    filter: drop-shadow(0 0 5px #8c4dff);
    animation: socialFrameSpin 5.8s linear infinite reverse;
}
.social-avatar-frame.social-frame-titan::before {
    padding: 4px;
    background: conic-gradient(#451600,#ff7900,#fff1a7,#ff9d17,#fff,#d04e00,#ffc43d,#451600);
    filter: drop-shadow(0 0 6px #ff9f24);
    animation: socialFrameSpin 3.8s linear infinite;
}
.social-avatar-motion {
    position: absolute;
    inset: -13px;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.social-effect-embers .social-avatar-motion {
    background: conic-gradient(from 25deg,transparent 0 18%,rgba(255,98,21,.72),transparent 28% 58%,rgba(255,199,71,.62),transparent 70%);
    filter: blur(5px);
    animation: socialFrameSpin 5s linear infinite;
}
.social-effect-energy .social-avatar-motion {
    border: 1px dashed #71e8ff;
    box-shadow: inset 0 0 14px #714fff,0 0 16px #4fe5ff;
    animation: socialEnergyPulse 1.25s ease-in-out infinite;
}
.social-effect-aurora .social-avatar-motion {
    background: conic-gradient(from 0deg,rgba(0,255,190,.75),transparent 22%,rgba(155,73,255,.8),transparent 48%,rgba(255,72,198,.74),transparent 72%,rgba(0,255,190,.75));
    filter: blur(6px);
    animation: socialFrameSpin 3.3s linear infinite;
}
@keyframes socialFrameSpin { to { transform: rotate(360deg); } }
@keyframes socialEnergyPulse { 50% { transform: scale(1.08); opacity: .52; } }

.profile-preview-avatar {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border-radius: 50%;
}
.profile-preview-avatar > img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
    box-shadow: 0 0 30px color-mix(in srgb,var(--social-accent) 36%,transparent);
}
.friend-profile-avatar-art {
    width: clamp(105px,11vw,145px);
    height: clamp(105px,11vw,145px);
    border-radius: 38px;
}
.friend-profile-avatar-art > img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
    box-shadow: 0 26px 70px rgba(0,0,0,.48);
}
.friends-pack-avatar-wrap {
    width: 88px;
    height: 88px;
    margin: 16px auto 19px;
    border-radius: 26px;
}
.friends-pack-avatar-wrap .friends-pack-avatar {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: inherit;
}
.presence-avatar-shell {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
}
.presence-avatar-shell .presence-avatar { width: 100%; height: 100%; }
.friends-search-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
}
.friends-search-avatar > img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.friend-row-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
}
.friend-row-avatar > img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.profile-style-swatch.frame.social-frame-tracker i { border-style: dashed; border-color: #63ffd0; animation: socialFrameSpin 5s linear infinite; }
.profile-style-swatch.frame.social-frame-dominant i { border-color: #a66cff; box-shadow: 0 0 24px #8c4dff,inset 0 0 12px #8c4dff; transform: rotate(45deg); border-radius: 14px; }
.profile-style-swatch.frame.social-frame-titan i { border-color: #ffc04f; box-shadow: 0 0 27px #ff8a19,inset 0 0 13px #fff0a0; clip-path: polygon(50% 0,62% 15%,82% 8%,86% 30%,100% 43%,86% 58%,90% 82%,66% 84%,50% 100%,34% 84%,10% 82%,14% 58%,0 43%,14% 30%,18% 8%,38% 15%); border-radius: 0; }
.profile-style-swatch.frame.social-frame-amber i { border-color: #e5ae49; box-shadow: 0 0 22px #d88921,inset 0 0 12px #f8d377; }
.friend-stat-grid small {
    display: block;
    margin-top: 8px;
    color: #d9ad56;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
}

@media (max-width: 760px) {
    .profile-preview-avatar { width: 76px; height: 76px; flex-basis: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-frame-tracker::before,
    .profile-frame-dominant::before,
    .profile-frame-titan::before,
    .profile-style-particles::before,
    .profile-style-particles::after,
    .social-avatar-frame::before,
    .social-avatar-motion { animation: none !important; }
}

/* Global and private social chats. */
.global-chat-tab {
    position: fixed;
    z-index: 285;
    right: 0;
    top: 48%;
    display: flex;
    min-width: 182px;
    align-items: center;
    gap: 10px;
    overflow: visible;
    border: 1px solid rgba(45, 212, 191, .36);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(115deg, rgba(6, 35, 29, .98), rgba(5, 13, 11, .98));
    padding: 9px 13px 9px 9px;
    color: #d8fff5;
    box-shadow: -16px 16px 44px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: translateY(-50%);
    transition: transform .2s ease, border-color .2s ease, filter .2s ease;
}
.global-chat-tab:hover {
    border-color: rgba(45, 212, 191, .7);
    filter: brightness(1.1);
    transform: translateY(-50%) translateX(-4px);
}
.global-chat-tab-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(45, 212, 191, .32);
    border-radius: 10px;
    background: rgba(20, 184, 166, .12);
    color: #4fe2c8;
}
.global-chat-tab-copy {
    min-width: 0;
    text-align: left;
}
.global-chat-tab-copy strong,
.global-chat-tab-copy small {
    display: block;
}
.global-chat-tab-copy strong {
    font: 800 14px/1 Oswald, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.global-chat-tab-copy small {
    margin-top: 5px;
    color: #65887f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.global-chat-unread {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 22px;
    height: 22px;
    border: 2px solid #0c0c0c;
    border-radius: 999px;
    background: #ef4444;
    padding: 0 5px;
    color: white;
    font: 900 10px/18px Inter, sans-serif;
    text-align: center;
}
.global-chat-drawer {
    position: fixed;
    z-index: 340;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}
.global-chat-drawer.open {
    visibility: visible;
    pointer-events: auto;
}
.global-chat-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    transition: opacity .22s ease;
}
.global-chat-drawer.open .global-chat-backdrop { opacity: 1; }
.global-chat-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(500px, 100vw);
    height: 100%;
    transform: translateX(100%);
    transition: transform .26s ease;
}
.global-chat-drawer.open .global-chat-panel { transform: translateX(0); }
.social-chat-widget {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(203, 153, 66, .24);
    background:
        linear-gradient(rgba(9, 9, 9, .96), rgba(7, 7, 7, .985)),
        url("../img/fossils_bg2.webp") center / cover;
    color: #dddbd8;
    box-shadow: -34px 0 90px rgba(0, 0, 0, .58);
}
.social-chat-head {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(224, 179, 95, .16);
    padding: 20px 22px;
    background: linear-gradient(90deg, rgba(35, 33, 30, .56), rgba(10, 10, 10, .2));
}
.social-chat-head > div:first-child > span,
.social-chat-private-copy > span {
    color: #e0b35f;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.social-chat-head h2 {
    margin: 6px 0 0;
    color: #fefcf9;
    font: 800 27px/1 Oswald, sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.social-chat-head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}
.social-chat-head-actions > button,
.social-chat-head.private > a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #8c8a87;
}
.social-chat-online {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(45, 212, 191, .16);
    border-radius: 9px;
    background: rgba(20, 184, 166, .06);
    padding: 0 10px;
    color: #64857d;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.social-chat-online i,
.private-chat-sidebar-head i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
}
.social-chat-online b { color: #4fd9be; }
.social-chat-scope-bar {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    padding: 0 20px;
}
.social-chat-scope-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ecc375;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.social-chat-scope-bar small { color: #605e5b; font-size: 8px; }
.social-chat-messages {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 18px;
    scrollbar-color: rgba(43, 166, 143, .45) rgba(255, 255, 255, .035);
    scrollbar-width: thin;
}
.social-chat-empty {
    display: grid;
    min-height: 180px;
    place-content: center;
    gap: 13px;
    color: #605e5b;
    font-size: 10px;
    text-align: center;
}
.social-chat-empty i {
    color: #a87a2e;
    font-size: 24px;
}
.social-chat-message {
    display: flex;
    gap: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    padding: 14px 4px;
}
.social-chat-message.mine {
    background: linear-gradient(90deg, transparent, rgba(203, 153, 66, .035));
}
.social-chat-message-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(224, 179, 95, .24);
    border-radius: 11px;
    background: rgba(203, 153, 66, .1);
    color: #f2cd87;
    font-weight: 900;
}
.social-chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.social-chat-message-body { min-width: 0; flex: 1; }
.social-chat-message-body > header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}
.social-chat-message-body > header strong {
    color: #f7f5f2;
    font: 700 14px/1 Oswald, sans-serif;
}
.social-chat-message-body > header time,
.social-chat-message-body > header em {
    color: #5e5c59;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.social-chat-message-text {
    margin: 7px 0 0;
    color: #b6b4b1;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.social-chat-quote {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    overflow: hidden;
    border: 0;
    border-left: 2px solid #e0b35f;
    background: rgba(224, 179, 95, .04);
    padding: 6px 9px;
    color: #817f7c;
    text-align: left;
}
.social-chat-quote b { flex: 0 0 auto; color: #e3b664; font-size: 9px; }
.social-chat-quote span {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-chat-media {
    display: block;
    width: auto;
    max-width: min(100%, 360px);
    max-height: 300px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    object-fit: cover;
}
.social-chat-message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin-top: 8px;
    opacity: .42;
    transition: opacity .15s ease;
}
.social-chat-message:hover .social-chat-message-actions,
.social-chat-message:focus-within .social-chat-message-actions { opacity: 1; }
.social-chat-message-actions button,
.social-chat-reactions button {
    min-height: 26px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    padding: 0 7px;
    color: #7c7a77;
    font-size: 8px;
    font-weight: 800;
}
.social-chat-message-actions button i { margin-right: 4px; }
.social-chat-message-actions button:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .045);
    color: #e7e5e2;
}
.social-chat-message-actions button.reaction {
    min-width: 26px;
    padding: 0 3px;
    font-size: 12px;
}
.social-chat-message-actions button.danger:hover { color: #fca5a5; }
.social-chat-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 7px;
}
.social-chat-reactions button {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    font-size: 10px;
}
.social-chat-reactions button.active {
    border-color: rgba(224, 179, 95, .48);
    background: rgba(203, 153, 66, .13);
    color: #fceac5;
}
.social-chat-reply,
.social-chat-attachment-preview {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    border-top: 1px solid rgba(224, 179, 95, .13);
    background: rgba(203, 153, 66, .05);
    padding: 7px 17px;
    color: #d4a34a;
    font-size: 9px;
}
.social-chat-reply[hidden],
.social-chat-attachment-preview[hidden] { display: none; }
.social-chat-reply span,
.social-chat-attachment-preview span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-chat-reply button,
.social-chat-attachment-preview button {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
    color: #807e7b;
}
.social-chat-feedback {
    min-height: 16px;
    margin: 0;
    padding: 2px 18px 0;
    color: #73716e;
    font-size: 8px;
}
.social-chat-feedback.error { color: #fca5a5; }
.social-chat-feedback.ok { color: #f1cc85; }
.social-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px auto;
    align-items: end;
    gap: 7px;
    padding: 8px 16px 15px;
}
.social-chat-compose textarea {
    width: 100%;
    min-height: 42px;
    max-height: 112px;
    resize: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(0, 0, 0, .32);
    padding: 12px 13px;
    color: #f5f3f0;
    font-size: 11px;
    line-height: 1.5;
    outline: 0;
}
.social-chat-compose textarea:focus {
    border-color: rgba(224, 179, 95, .48);
    box-shadow: 0 0 0 3px rgba(203, 153, 66, .07);
}
.social-chat-file {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #7f7d7a;
    cursor: pointer;
}
.social-chat-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.social-chat-compose > button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #c08f3b;
    border-radius: 10px;
    background: linear-gradient(135deg, #c99741, #8e6523);
    padding: 0 15px;
    color: #fdfbf8;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.social-chat-compose > button:disabled { cursor: wait; filter: grayscale(.5); opacity: .55; }
.social-chat-foot {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 0 18px;
    color: #555350;
    font-size: 8px;
}
.social-chat-foot a { color: #d9a953; }
.social-chat-edit {
    margin-top: 9px;
    border: 1px solid rgba(224, 179, 95, .18);
    border-radius: 10px;
    background: rgba(0, 0, 0, .22);
    padding: 8px;
}
.social-chat-edit textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(0, 0, 0, .32);
    padding: 9px;
    color: #fff;
    font-size: 11px;
    outline: 0;
}
.social-chat-edit > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}
.social-chat-edit span {
    margin-right: auto;
    color: #676562;
    font-size: 7px;
}
.social-chat-edit button {
    min-height: 28px;
    border: 1px solid rgba(224, 179, 95, .18);
    border-radius: 7px;
    background: rgba(224, 179, 95, .07);
    padding: 0 9px;
    color: #f4d292;
    font-size: 8px;
    font-weight: 800;
}

.friends-pack-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 17px;
}
.friends-pack-card-actions > button,
.friends-pack-card-actions > a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(225, 177, 83, .2);
    border-radius: 10px;
    background: rgba(225, 177, 83, .07);
    padding: 0 7px;
    color: #d9b36d;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.friends-pack-card-actions > button {
    border-color: rgba(224, 179, 95, .26);
    background: rgba(203, 153, 66, .08);
    color: #efc679;
}
.private-chat-section {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(224, 179, 95, .15);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 13, 10, .97), rgba(6, 6, 6, .97));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
.private-chat-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 28px 32px;
}
.private-chat-section-head h2 {
    margin-top: 7px;
    color: #fff;
    font: 800 30px/1 Oswald, sans-serif;
    text-transform: uppercase;
}
.private-chat-section-head > p {
    max-width: 510px;
    color: #82807d;
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
}
.private-chat-shell {
    display: grid;
    height: min(680px, 72vh);
    min-height: 520px;
    grid-template-columns: 300px minmax(0, 1fr);
}
.private-chat-sidebar {
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .19);
}
.private-chat-sidebar-head {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    padding: 0 17px;
}
.private-chat-sidebar-head strong {
    color: #d6d4d1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.private-chat-sidebar-head span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a6782c;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}
.private-chat-list {
    height: calc(100% - 56px);
    overflow-y: auto;
    padding: 8px;
}
.private-chat-contact {
    display: grid;
    width: 100%;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    padding: 9px;
    color: #c8c6c3;
    text-align: left;
}
.private-chat-contact:hover,
.private-chat-contact.active {
    border-color: rgba(224, 179, 95, .16);
    background: rgba(203, 153, 66, .075);
}
.private-chat-contact-avatar {
    position: relative;
    width: 43px;
    height: 43px;
}
.private-chat-contact-avatar img {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    object-fit: cover;
}
.private-chat-contact-avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #0c0c0c;
    border-radius: 50%;
    background: #585653;
}
.private-chat-contact-avatar i.online {
    background: #10b981;
    box-shadow: 0 0 9px #10b981;
}
.private-chat-contact > span:nth-child(2) { min-width: 0; }
.private-chat-contact strong,
.private-chat-contact small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.private-chat-contact strong { color: #e4e2df; font-size: 10px; }
.private-chat-contact small { margin-top: 5px; color: #6a6865; font-size: 8px; }
.private-chat-contact > b {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #b38434;
    padding: 0 5px;
    color: #fff;
    font: 900 8px/20px Inter, sans-serif;
    text-align: center;
}
.private-chat-list-empty,
.private-chat-placeholder {
    display: grid;
    height: 100%;
    place-content: center;
    gap: 11px;
    padding: 28px;
    color: #656360;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}
.private-chat-list-empty i { color: #a87a2e; font-size: 22px; }
.private-chat-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
}
.private-chat-placeholder > span {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 5px;
    place-items: center;
    border: 1px solid rgba(224, 179, 95, .2);
    border-radius: 22px;
    background: rgba(203, 153, 66, .07);
    color: #e3b663;
    font-size: 25px;
}
.private-chat-placeholder h3 {
    color: #e6e4e1;
    font: 800 25px/1 Oswald, sans-serif;
    text-transform: uppercase;
}
.private-chat-widget {
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: none;
}
.private-chat-widget[hidden] { display: none; }
.social-chat-head.private {
    min-height: 76px;
    justify-content: flex-start;
    padding: 13px 18px;
}
.social-chat-head.private > img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(224, 179, 95, .25);
    border-radius: 13px;
    object-fit: cover;
}
.social-chat-private-copy {
    min-width: 0;
    flex: 1;
}
.social-chat-private-copy h2 {
    overflow: hidden;
    margin-top: 3px;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-chat-private-copy small {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #767471;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-chat-private-copy small.online { color: #4fc7ac; }

@media (max-width: 800px) {
    .global-chat-tab {
        top: auto;
        right: 14px;
        bottom: 84px;
        min-width: 52px;
        border-right: 1px solid rgba(45, 212, 191, .36);
        border-radius: 14px;
        padding: 6px;
        transform: none;
    }
    .global-chat-tab:hover { transform: translateY(-3px); }
    .global-chat-tab-copy { display: none; }
    .global-chat-tab-icon { width: 40px; height: 40px; }
    .private-chat-section-head { align-items: flex-start; flex-direction: column; }
    .private-chat-section-head > p { text-align: left; }
    .private-chat-shell {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }
    .private-chat-sidebar {
        max-height: 280px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
    .private-chat-list { max-height: 224px; }
    .private-chat-stage { height: min(650px, 72vh); min-height: 480px; }
}
@media (max-width: 520px) {
    .social-chat-head { padding: 15px 14px; }
    .social-chat-online { display: none; }
    .social-chat-messages { padding: 10px 11px; }
    .social-chat-compose {
        grid-template-columns: minmax(0, 1fr) 40px 42px;
        padding-right: 10px;
        padding-left: 10px;
    }
    .social-chat-compose > button { width: 42px; padding: 0; }
    .social-chat-compose > button span { display: none; }
    .social-chat-foot { display: none; }
    .friends-pack-card-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .global-chat-tab,
    .global-chat-panel,
    .global-chat-backdrop { transition: none !important; }
}

/* Asegura el orden visual de la ilustracion, la sombra y el contenido. */
.membership-card-art { z-index: 0; }
.membership-card-shade { z-index: 1; }
.membership-card-content { position: relative; z-index: 2; }

/* Chat global y conversaciones privadas: misma identidad Fossil Amber que el resto del sitio. */
.global-chat-tab {
    border-color: rgba(198, 146, 58, .55);
    background: linear-gradient(135deg, rgba(30, 19, 8, .98), rgba(7, 6, 4, .99));
    color: #fff4d5;
    box-shadow: -18px 18px 55px rgba(0, 0, 0, .62), 0 0 24px rgba(198, 146, 58, .12);
}
.global-chat-tab:hover {
    border-color: rgba(240, 198, 111, .9);
    box-shadow: -18px 20px 58px rgba(0, 0, 0, .68), 0 0 32px rgba(198, 146, 58, .2);
}
.global-chat-tab-icon {
    border-color: rgba(198, 146, 58, .45);
    background: rgba(198, 146, 58, .1);
    color: #e7b95f;
}
.global-chat-unread {
    background: #8b0000;
    border-color: #080604;
}
.global-chat-panel,
.social-chat-widget {
    border-color: rgba(198, 146, 58, .35);
    background:
        linear-gradient(rgba(8, 6, 4, .96), rgba(4, 3, 2, .99)),
        url("../img/fossils_bg2.webp") center / cover;
    box-shadow: -34px 0 100px rgba(0, 0, 0, .78);
}
.social-chat-head {
    border-bottom-color: rgba(198, 146, 58, .28);
    background: linear-gradient(90deg, rgba(46, 29, 12, .82), rgba(8, 6, 4, .38));
}
.social-chat-head > div:first-child > span,
.social-chat-private-copy > span,
.social-chat-scope-bar span {
    color: #e7b95f;
}
.social-chat-head h2,
.social-chat-private-copy h2,
.private-chat-section-head h2 {
    color: #fff8e8;
}
.social-chat-online,
.social-chat-scope-bar {
    border-color: rgba(198, 146, 58, .2);
    background: rgba(198, 146, 58, .06);
}
.social-chat-online { color: #bda879; }
.social-chat-online i,
.private-chat-contact-avatar i.online {
    background: #62c58f;
    box-shadow: 0 0 0 3px rgba(98, 197, 143, .12), 0 0 12px rgba(98, 197, 143, .4);
}
.social-chat-message { border-bottom-color: rgba(198, 146, 58, .11); }
.social-chat-message.mine { background: linear-gradient(90deg, transparent, rgba(198, 146, 58, .08)); }
.social-chat-message-avatar {
    border-color: rgba(198, 146, 58, .45);
    background: rgba(198, 146, 58, .12);
    color: #f0c66f;
}
.social-chat-message-body > header strong { color: #eed9a8; }
.social-chat-message-body > header time,
.social-chat-message-body > header em,
.social-chat-message-text { color: #c8bda7; }
.social-chat-quote {
    border-left-color: #c6923a;
    background: rgba(198, 146, 58, .07);
}
.social-chat-message-actions button:hover,
.social-chat-reactions button.active,
.social-chat-reply button:hover { color: #e7b95f; }
.social-chat-reactions button.active {
    border-color: rgba(198, 146, 58, .5);
    background: rgba(198, 146, 58, .13);
}
.social-chat-reply,
.social-chat-attachment-preview {
    border-top-color: rgba(198, 146, 58, .2);
    background: rgba(198, 146, 58, .06);
}
.social-chat-compose textarea {
    border-color: rgba(198, 146, 58, .24);
    background: rgba(0, 0, 0, .34);
    color: #fff8e8;
}
.social-chat-compose textarea:focus {
    border-color: rgba(240, 198, 111, .75);
    box-shadow: 0 0 0 3px rgba(198, 146, 58, .12);
}
.social-chat-file {
    border-color: rgba(198, 146, 58, .3);
    background: rgba(198, 146, 58, .06);
    color: #d9b36d;
}
.social-chat-compose > button {
    border-color: #c6923a;
    background: linear-gradient(135deg, #e0aa49, #8b5d1e);
    color: #120c04;
}
.social-chat-foot a { color: #d9b36d; }
.social-chat-edit { border-color: rgba(198, 146, 58, .2); }

.private-chat-section {
    border-color: rgba(198, 146, 58, .28);
    background: linear-gradient(145deg, rgba(22, 13, 6, .97), rgba(4, 3, 2, .98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}
.private-chat-section-head {
    border-bottom-color: rgba(198, 146, 58, .16);
    background: linear-gradient(90deg, rgba(42, 26, 10, .5), transparent);
}
.private-chat-section-head > p,
.private-chat-contact small,
.private-chat-list-empty,
.private-chat-placeholder p,
.social-chat-private-copy small { color: #897f6c; }
.private-chat-sidebar {
    border-right-color: rgba(198, 146, 58, .14);
    background: rgba(0, 0, 0, .3);
}
.private-chat-contact:hover,
.private-chat-contact.active {
    border-color: rgba(198, 146, 58, .35);
    background: rgba(198, 146, 58, .09);
}
.private-chat-contact-avatar img,
.social-chat-head.private > img {
    border-color: rgba(198, 146, 58, .45);
}
.private-chat-contact-avatar i { border-color: #080604; }
.private-chat-placeholder > span {
    border-color: rgba(198, 146, 58, .3);
    background: rgba(198, 146, 58, .08);
    color: #e7b95f;
}
.social-chat-private-copy small.online { color: #62c58f; }

/* Accesos sociales: global abajo a la izquierda y privados en mini ventana. */
.friends-fab {
    cursor: pointer;
}

.global-chat-tab {
    top: auto;
    right: auto;
    left: 24px;
    bottom: 24px;
    display: grid;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    place-items: center;
    gap: 0;
    border: 1px solid rgba(235, 191, 102, .64);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(244, 202, 113, .96), rgba(176, 117, 30, .98));
    color: #100b03;
    padding: 0;
    transform: none;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .46), 0 0 34px rgba(198, 146, 58, .26), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.global-chat-tab:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 226, 151, .9);
    filter: brightness(1.08);
}

.global-chat-tab-copy {
    display: none !important;
}

.global-chat-tab-icon {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #100b03;
    font-size: 20px;
}

.global-chat-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 34px 0 100px rgba(0, 0, 0, .78);
}

.global-chat-drawer.open .global-chat-panel {
    transform: translateX(0);
}

.private-chat-mini {
    position: fixed;
    z-index: 350;
    right: 24px;
    bottom: 88px;
    width: min(390px, calc(100vw - 32px));
    height: min(570px, calc(100vh - 120px));
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.private-chat-mini.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.private-chat-mini-panel {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .74), 0 0 0 1px rgba(198, 146, 58, .16);
}

.private-chat-mini-panel[hidden] {
    display: none;
}

.private-chat-mini.open .private-chat-mini-panel {
    display: flex !important;
}

.private-chat-mini-panel .social-chat-head {
    min-height: 76px;
    padding: 13px 15px;
}

.private-chat-mini-panel .social-chat-head.private > img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.private-chat-mini-panel .social-chat-private-copy h2 {
    font-size: 22px;
}

.private-chat-mini-panel .social-chat-messages {
    padding: 10px 12px;
}

@media (max-width: 640px) {
    .global-chat-tab {
        left: 14px;
        bottom: 14px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
    }

    .ranking-row-player {
        min-width: 0;
    }

    .ranking-row-player strong,
    .ranking-row-player span,
    .ranking-row-score strong,
    .ranking-row-score span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .private-chat-mini {
        right: 14px;
        bottom: 78px;
        width: calc(100vw - 28px);
        height: min(620px, calc(100vh - 100px));
    }
}

/* El modal de Amigos mantiene las tres acciones en una sola fila centrada. */
.friends-drawer .friend-row-actions {
    display: grid;
    grid-template-columns: repeat(3, 30px);
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 100px;
}

/* Ventanas privadas: hasta tres conversaciones, arrastrables y acoplables. */
.private-chat-dock {
    position: fixed;
    inset: 0;
    z-index: 350;
    pointer-events: none;
}
.private-chat-dock::after {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 9px 13px;
    border: 1px solid rgba(198,146,58,.45);
    border-radius: 999px;
    background: rgba(17,12,5,.96);
    color: #f0c870;
    content: 'Máximo de 3 conversaciones abiertas';
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}
.private-chat-dock.limit-reached::after { opacity: 1; transform: translateY(0); }
.private-chat-mini[hidden] { display: none; }
.private-chat-mini {
    position: absolute;
    right: 24px;
    bottom: 88px;
    width: min(390px, calc(100vw - 32px));
    height: min(570px, calc(100vh - 120px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.private-chat-mini.open { display: block; pointer-events: auto; opacity: 1; transform: translateY(0) scale(1); }
.private-chat-mini.picker-open { z-index: 20; }
.private-chat-mini.dragging,
.private-chat-mini.dragging .private-chat-mini-panel { transition: none !important; }
.private-chat-mini-panel { cursor: default; }
.private-chat-mini-panel .social-chat-head[data-private-chat-drag] { cursor: grab; user-select: none; touch-action: none; }
.private-chat-mini.dragging .social-chat-head[data-private-chat-drag] { cursor: grabbing; }
.private-chat-unread,
.private-chat-tab > b {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: #d65043;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}
.private-chat-tab {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(198,146,58,.5);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29,21,10,.98), rgba(8,9,8,.98));
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.private-chat-tab[hidden] { display: none; }
.private-chat-tab img { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid rgba(198,146,58,.55); border-radius: 9px; object-fit: cover; }
.private-chat-tab > span { min-width: 0; flex: 1; }
.private-chat-tab strong, .private-chat-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.private-chat-tab strong { font-size: 12px; }
.private-chat-tab small { margin-top: 2px; color: #a5a59e; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.private-chat-mini.minimized { width: 230px; height: 48px; bottom: 24px; }
.private-chat-mini.edge-tab { width: 58px; height: 174px; }
.private-chat-mini.edge-tab .private-chat-mini-panel { display: none !important; }
.private-chat-mini.edge-tab .private-chat-tab { border-radius: 0 14px 14px 0; flex-direction: column; justify-content: center; padding: 10px 6px; text-align: center; }
.private-chat-mini.edge-right .private-chat-tab { border-radius: 14px 0 0 14px; }
.private-chat-mini.edge-tab .private-chat-tab img { width: 36px; height: 36px; flex-basis: 36px; }
.private-chat-mini.edge-tab .private-chat-tab > span { flex: 0 0 auto; max-width: 44px; }
.private-chat-mini.edge-tab .private-chat-tab strong { font-size: 9px; }
.private-chat-mini.edge-tab .private-chat-tab small { display: none; }
.private-chat-mini.edge-tab .private-chat-tab > b { position: absolute; top: 10px; right: 7px; min-width: 17px; height: 17px; font-size: 8px; }
.private-chat-mini.edge-top,
.private-chat-mini.edge-bottom { width: 250px; height: 58px; }
.private-chat-mini.edge-top .private-chat-tab,
.private-chat-mini.edge-bottom .private-chat-tab { border-radius: 0 0 14px 14px; }
.private-chat-mini.edge-bottom .private-chat-tab { border-radius: 14px 14px 0 0; }

/* Encabezado del perfil propio: acciones claras y una jerarquía menos genérica. */
.profile-page-head {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.profile-page-head .hub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.profile-page-head .hub-kicker::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ebc071;
    box-shadow: 0 0 12px rgba(235,192,113,.65);
    content: '';
}

/* El nombre de la especie es una marca de fondo: puede ocupar varias líneas,
   pero nunca debe truncarse con puntos suspensivos. */
body.page-perfil .live-terminal-watermark {
    right: 24px;
    max-width: calc(100% - 48px);
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: .9;
}
.profile-edit-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(215,166,76,.52);
    border-radius: 10px;
    background: linear-gradient(135deg, #d7a64c, #a87527);
    color: #17120b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.profile-edit-button:hover {
    color: #17120b;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.3);
}
@media (max-width: 639px) {
    .profile-edit-button { flex: 1 1 100%; }
}

/* Los avisos usan el mismo amarillo del contador del header. */
.global-chat-unread,
.private-chat-unread,
.private-chat-tab > b,
.friends-pending-badge {
    border-color: #080604;
    background: linear-gradient(135deg, #ffc95b, #e69527);
    color: #211604;
    box-shadow: 0 5px 14px rgba(255,190,62,.28);
}
.private-chat-mini.edge-tab .private-chat-tab { cursor: grab; }
.private-chat-mini.dragging .private-chat-tab,
.private-chat-mini.dragging .social-chat-head[data-private-chat-drag] { cursor: grabbing; }

/* Chat global: controles compactos, reacciones al pasar el mouse y nivel sobre el avatar. */
.global-chat-compose-wrap {
    position: relative;
}
.private-chat-compose-wrap {
    position: relative;
    flex: 0 0 auto;
}
.private-chat-mini-panel .private-chat-compose {
    grid-template-columns: auto minmax(0, 1fr) 38px 44px;
    gap: 6px;
    padding: 8px 10px 12px;
}
.private-chat-mini-panel .private-chat-compose .social-chat-compose-tools {
    align-items: stretch;
    gap: 4px;
}
.private-chat-mini-panel .private-chat-compose .social-chat-compose-tools button {
    width: 36px;
    height: 42px;
}
.private-chat-mini-panel .private-chat-compose .social-chat-file {
    width: 38px;
}
.private-chat-mini-panel .private-chat-compose > button {
    width: 44px;
    min-width: 44px;
    padding: 0;
}
.private-chat-mini-panel .private-chat-compose > button span {
    display: none;
}
.private-chat-compose-wrap .social-chat-picker {
    right: 10px;
    bottom: calc(100% + 6px);
    left: 10px;
}
.private-chat-compose-wrap .social-chat-emoji-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.global-chat-compose {
    grid-template-columns: auto minmax(0, 1fr) auto;
}
.social-chat-compose-tools {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}
.social-chat-compose-tools button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(198, 146, 58, .3);
    border-radius: 10px;
    background: rgba(198, 146, 58, .07);
    color: #d9b36d;
    cursor: pointer;
    font-size: 16px;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.social-chat-compose-tools button:hover,
.social-chat-compose-tools button[aria-expanded="true"] {
    border-color: rgba(240, 198, 111, .78);
    background: rgba(198, 146, 58, .17);
    color: #fff0c7;
    transform: translateY(-1px);
}
.social-chat-picker {
    position: absolute;
    right: 16px;
    bottom: calc(100% + 8px);
    left: 16px;
    z-index: 12;
    overflow: hidden;
    border: 1px solid rgba(198, 146, 58, .34);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(21, 17, 9, .99), rgba(7, 7, 7, .99));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .64), 0 0 28px rgba(198, 146, 58, .08);
    padding: 12px;
}
.social-chat-picker[hidden] {
    display: none !important;
}
.social-chat-picker > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(198, 146, 58, .14);
    margin-bottom: 10px;
    padding: 0 2px 9px;
}
.social-chat-picker > header strong {
    color: #f0c66f;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.social-chat-picker > header small {
    color: #817f7c;
    font-size: 8px;
}
.social-chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px;
}
.social-chat-emoji-grid button {
    display: grid;
    min-width: 0;
    height: 35px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    font-size: 19px;
}
.social-chat-emoji-grid button:hover {
    border-color: rgba(198, 146, 58, .35);
    background: rgba(198, 146, 58, .12);
    transform: scale(1.08);
}
.social-chat-sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: min(390px, 62dvh);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 146, 58, .38) transparent;
}
.social-chat-sticker-grid button {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 38%, rgba(198, 146, 58, .14), rgba(255, 255, 255, .025) 68%);
    padding: 6px;
    color: #b9b5a8;
    cursor: pointer;
}
.social-chat-sticker-grid button:hover {
    border-color: rgba(240, 198, 111, .5);
    background: radial-gradient(circle at 50% 38%, rgba(198, 146, 58, .25), rgba(255, 255, 255, .045) 72%);
}
.social-chat-sticker-grid img {
    width: 100%;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    filter: contrast(1.04);
    transition: transform .18s ease;
}
.social-chat-sticker-grid button:hover img {
    transform: scale(1.08);
}
.social-chat-sticker-grid span {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    font-size: 8px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-chat-sticker {
    display: inline-flex;
    min-width: 150px;
    max-width: 220px;
    flex-direction: column;
    align-items: center;
    margin: 8px 0 2px;
    border: 1px solid rgba(198, 146, 58, .18);
    border-radius: 16px;
    background: radial-gradient(circle at 50% 42%, rgba(198, 146, 58, .1), rgba(0, 0, 0, .2) 70%);
    padding: 8px 12px 7px;
}
.social-chat-sticker img {
    width: 180px;
    max-width: 100%;
    height: 180px;
    border-radius: 11px;
    object-fit: cover;
    filter: contrast(1.04);
}
.social-chat-sticker figcaption {
    color: #d9b36d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.social-chat-message-avatar {
    position: relative;
    overflow: visible;
}
.social-chat-message-avatar img {
    overflow: hidden;
    border-radius: inherit;
}
.social-chat-message-body {
    position: relative;
}
.avatar-battle-level {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 3;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-width: 1px;
    font-size: 8px;
    line-height: 19px;
    text-align: center;
}
.social-chat-hover-tools {
    position: absolute;
    top: -7px;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.social-chat-message:hover .social-chat-hover-tools,
.social-chat-message:focus-within .social-chat-hover-tools,
.social-chat-message.reaction-open .social-chat-hover-tools {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.social-chat-icon-action {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(198, 146, 58, .34);
    border-radius: 8px;
    background: rgba(14, 10, 5, .94);
    color: #d9b36d;
    font-size: 10px;
    cursor: pointer;
}
.social-chat-icon-action:hover {
    border-color: rgba(240, 198, 111, .75);
    background: rgba(198, 146, 58, .16);
    color: #fff1c8;
}
.social-chat-icon-action.danger:hover { color: #ffaaa0; }
.social-chat-reaction-menu { position: relative; }
.social-chat-reaction-popup {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: flex;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(198, 146, 58, .42);
    border-radius: 10px;
    background: rgba(15, 10, 5, .98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px) scale(.96);
    transform-origin: top right;
    transition: opacity .12s ease, visibility .12s ease, transform .12s ease;
}
.social-chat-message.reaction-open .social-chat-reaction-popup {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.social-chat-reaction-popup button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}
.social-chat-reaction-popup button:hover { background: rgba(198, 146, 58, .18); }
.social-chat-message-actions {
    margin-top: 4px;
    opacity: .38;
}
.social-chat-message-actions button { font-size: 9px; }

@media (min-width: 641px) {
    .global-chat-panel .social-chat-message-text {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {
    .global-chat-compose {
        grid-template-columns: auto minmax(0, 1fr) 42px;
    }
    .social-chat-compose-tools {
        gap: 3px;
    }
    .social-chat-compose-tools button {
        width: 36px;
    }
    .social-chat-picker {
        right: 10px;
        left: 10px;
    }
    .social-chat-picker > header small {
        display: none;
    }
    .social-chat-emoji-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .social-chat-sticker-grid img {
        height: 58px;
    }
    .social-chat-sticker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Solapa privada: tarjeta visible, arrastrable y recuperable desde cualquier borde. */
.private-chat-tab {
    position: relative;
    gap: 12px;
    padding: 10px 14px;
    border-color: rgba(215, 166, 76, .62);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(47, 30, 12, .98), rgba(13, 10, 6, .99));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 236, 180, .12);
    color: #fff5dc;
    touch-action: none;
    user-select: none;
}
.private-chat-tab::before {
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}
.private-chat-tab:hover {
    border-color: rgba(255, 218, 130, .88);
    filter: brightness(1.08);
}
.private-chat-tab img {
    position: relative;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-color: rgba(255, 205, 104, .7);
    border-radius: 13px;
    box-shadow: 0 0 0 3px rgba(198, 146, 58, .1), 0 5px 14px rgba(0, 0, 0, .35);
}
.private-chat-tab > span { position: relative; }
.private-chat-tab strong {
    color: #fff2c9;
    font: 700 15px/1 Oswald, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.private-chat-tab small {
    margin-top: 5px;
    color: #c7a96d;
    font-size: 9px;
    letter-spacing: .14em;
}
.private-chat-tab > b {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    border: 1px solid #080604;
    background: linear-gradient(135deg, #ffc95b, #e69527);
    color: #211604;
    box-shadow: 0 5px 14px rgba(255, 190, 62, .28);
}
.private-chat-mini.minimized {
    width: 292px;
    height: 68px;
    bottom: 24px;
}
.private-chat-mini.edge-tab {
    width: 82px;
    height: 196px;
}
.private-chat-mini.edge-tab .private-chat-tab {
    gap: 9px;
    padding: 14px 7px;
    border-radius: 0 18px 18px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.private-chat-mini.edge-right .private-chat-tab {
    border-radius: 18px 0 0 18px;
}
.private-chat-mini.edge-tab .private-chat-tab img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
}
.private-chat-mini.edge-tab .private-chat-tab > span {
    flex: 0 0 auto;
    width: 100%;
    max-width: 66px;
}
.private-chat-mini.edge-tab .private-chat-tab strong {
    font-size: 11px;
    line-height: 1.15;
}
.private-chat-mini.edge-tab .private-chat-tab small { display: none; }
.private-chat-mini.edge-tab .private-chat-tab > b {
    position: absolute;
    top: 11px;
    right: 8px;
    min-width: 19px;
    height: 19px;
    font-size: 8px;
}
.private-chat-mini.edge-top,
.private-chat-mini.edge-bottom {
    width: 292px;
    height: 68px;
}
.private-chat-mini.edge-top .private-chat-tab,
.private-chat-mini.edge-bottom .private-chat-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 0 0 18px 18px;
    text-align: left;
}
.private-chat-mini.edge-bottom .private-chat-tab {
    border-radius: 18px 18px 0 0;
}
.private-chat-mini.edge-top .private-chat-tab > span,
.private-chat-mini.edge-bottom .private-chat-tab > span {
    flex: 1;
    width: auto;
    max-width: none;
}
.private-chat-mini.edge-top .private-chat-tab small,
.private-chat-mini.edge-bottom .private-chat-tab small {
    display: block;
}

@media (max-width: 640px) {
    .private-chat-mini.minimized {
        width: min(292px, calc(100vw - 28px));
        height: 64px;
    }
    .private-chat-mini.edge-top,
    .private-chat-mini.edge-bottom {
        width: min(292px, calc(100vw - 28px));
        height: 64px;
    }
    .private-chat-mini.edge-tab {
        width: 76px;
        height: 184px;
    }
}

/*
 * Modal layout contract
 *
 * Los modales se montan desde varias páginas y algunos bloquean el scroll en
 * body mientras otros lo hacen en html. Reservamos siempre el gutter del
 * scrollbar y usamos el viewport dinámico para evitar saltos del contenido de
 * fondo y descentrados en pantallas con barras de scroll o safe areas.
 */
html,
body {
    scrollbar-gutter: stable;
}

html {
    overflow-y: scroll;
}

body.overlay-open,
body.inventory-modal-open,
body.store-skin-modal-open,
body.purchase-confirm-open,
body.site-modal-open {
    scrollbar-gutter: stable;
}

html.site-modal-open {
    overflow-y: scroll !important;
}

html.inventory-modal-open:has(.profile-inventory-frame.modal-open) {
    overflow-y: scroll !important;
}

body.site-modal-open {
    overflow-y: clip;
    overscroll-behavior: none;
}

/* El zoom general de escritorio tambien reduce las capas fixed: quedan con
 * 80% del viewport y centradas contra la esquina superior izquierda. Los
 * overlays recuperan la escala del viewport, mientras su pagina conserva el
 * 80% solicitado. El iframe del inventario necesita la misma compensacion
 * cuando se convierte temporalmente en una capa de pantalla completa. */
@media (min-width: 1200px) and (pointer: fine) {
    html:not(.native-page-scale) :where(
        .gift-modal,
        .gift-reveal-modal,
        .inventory-modal-frame,
        .store-skin-modal,
        .purchase-confirm-modal,
        .market-modal,
        #member-payment-modal,
        #roulette-modal,
        #live-action-modal,
        .nest-page-dialog,
        .profile-inventory-frame.modal-open
    ),
    html:not(.native-page-scale) dialog.adm-ops-dialog[open] {
        zoom: 1.25;
    }
}

:where(
    .gift-modal,
    .gift-reveal-modal,
    .inventory-modal-frame,
    .store-skin-modal,
    .purchase-confirm-modal,
    .market-modal,
    #member-payment-modal,
    #roulette-modal,
    #live-action-modal,
    .nest-page-dialog
) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    margin: 0;
    box-sizing: border-box;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left)) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

:where(
    .gift-modal > :not(.gift-modal-backdrop),
    .gift-reveal-modal > :not(.gift-modal-backdrop),
    .inventory-modal-frame > *,
    .store-skin-modal > *,
    .purchase-confirm-modal > *,
    .market-modal > :not(.market-modal-backdrop),
    #member-payment-modal > *,
    #roulette-modal > *,
    #live-action-modal > *,
    .nest-page-dialog > *
) {
    max-width: 100%;
}

#roulette-modal > .relative {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

:where(
    #member-payment-modal > section,
    #purchase-confirm-content,
    #store-skin-detail-modal-content,
    #live-action-modal-content,
    .gift-modal-panel,
    .gift-reveal-card,
    .skin-detail-modal-panel,
    .mutation-modal-shell,
    .nest-page-dialog-card
) {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 640px) {
    :where(
        #member-payment-modal,
        #purchase-confirm-modal,
        #store-skin-detail-modal,
        #roulette-modal,
        #live-action-modal,
        .inventory-modal-frame,
        .nest-page-dialog
    ) {
        padding-top: max(12px, env(safe-area-inset-top)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        padding-left: max(12px, env(safe-area-inset-left)) !important;
    }

    :where(
        #member-payment-modal > section,
        #purchase-confirm-content,
        #store-skin-detail-modal-content,
        #live-action-modal-content,
        .gift-modal-panel,
        .gift-reveal-card,
        .skin-detail-modal-panel,
        .mutation-modal-shell,
        .nest-page-dialog-card
    ) {
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

/* El regalo semanal nunca debe crecer por fuera de la ventana. La cabecera y
 * las acciones quedan visibles; si falta espacio, solo se desplazan las cards. */
.gift-modal {
    overflow: hidden !important;
}

.gift-modal-panel {
    display: flex;
    width: min(1060px, 100%);
    max-height: calc(100dvh - 32px);
    flex-direction: column;
    overflow: hidden;
}

.gift-modal-head,
.gift-progress,
.gift-modal-welcome .gift-welcome-banner,
.gift-modal-actions {
    flex: 0 0 auto;
}

.gift-modal-head {
    padding: 20px 22px 18px;
}

.gift-modal-welcome .gift-welcome-banner {
    min-height: 0;
    margin: 0;
    padding: 16px 22px;
}

.gift-week-grid {
    min-height: 0;
    padding: 18px 20px;
    gap: 9px;
    overflow: auto;
    overscroll-behavior: contain;
}

.gift-day {
    min-height: 190px;
    padding: 13px;
}

.gift-reward-icon {
    width: 56px;
    height: 56px;
    margin: 18px auto 12px;
}

.gift-reward-icon img {
    width: 42px;
    height: 42px;
}

.gift-modal-actions {
    padding: 0 20px 18px;
}

/* Tipografia compacta para la recompensa diaria. Las tarjetas y sus imagenes
 * conservan el tamano; solo se corrige la escala visual de los textos. */
.gift-modal-head h2 {
    font-size: 22px;
    line-height: 1;
}

.gift-modal-head > .flex > div:last-child > p {
    font-size: 10px;
}

.gift-modal-head > .text-right > p:first-child {
    font-size: 8px;
}

.gift-modal-head > .text-right > p:last-child {
    font-size: 17px;
    line-height: 1.05;
}

.gift-welcome-banner small {
    font-size: 9px;
}

.gift-modal-welcome .gift-welcome-banner strong {
    font-size: clamp(20px, 2.5vw, 28px);
}

.gift-modal-welcome .gift-welcome-banner span {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.45;
}

.gift-day-head h3 {
    font-size: 15px;
}

.gift-day-head [data-gift-status] {
    font-size: 8px;
    letter-spacing: .1em;
}

.gift-day strong {
    font-size: 9.5px;
    line-height: 1.3;
    letter-spacing: .055em;
}

.gift-day small {
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: .08em;
}

.gift-modal-actions button {
    font-size: 9px;
}

#gift-claim-feedback {
    font-size: 10px;
}

@media (max-width: 1100px) {
    .gift-week-grid {
        grid-template-columns: repeat(4, minmax(132px, 1fr));
    }
}

@media (max-width: 760px) {
    .gift-modal {
        padding: max(10px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(10px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left)) !important;
    }

    .gift-modal-panel {
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .gift-modal-head {
        padding: 16px;
    }

    .gift-modal-welcome .gift-welcome-banner {
        padding: 13px 16px;
    }

    .gift-week-grid {
        grid-template-columns: repeat(2, minmax(128px, 1fr));
        padding: 14px 16px;
    }

    .gift-day {
        min-height: 174px;
    }

    .gift-modal-actions {
        padding: 0 16px 16px;
    }
}

/* Rediseño del calendario semanal: más aire, lectura clara y un pie útil. */
.gift-modal-panel {
    width: min(1120px, calc(100vw - 48px));
    border-radius: 18px;
}

.gift-modal-head {
    min-height: 92px;
    padding: 18px 22px;
    background: linear-gradient(90deg, rgba(205, 153, 48, .08), transparent 48%);
}

.gift-modal-head .app-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.gift-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.gift-week-grid {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 30px) / 4 + 10px);
    grid-auto-flow: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(224, 177, 75, .5) rgba(255, 255, 255, .04);
    scrollbar-width: thin;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.gift-week-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.gift-week-grid::-webkit-scrollbar {
    height: 7px;
}

.gift-week-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
}

.gift-week-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #b77b25, #e5b94f);
}

.gift-day {
    display: flex !important;
    height: 320px !important;
    min-height: 320px !important;
    flex-direction: column;
    padding: 17px 15px;
    border-radius: 18px;
    scroll-snap-align: start;
}

.gift-day::before,
.gift-day::after {
    content: none;
}

.gift-day-head {
    min-height: 39px;
    padding-right: 23px;
}

.gift-day-head h3 {
    font-size: 15px;
    line-height: 1;
}

.gift-day-head [data-gift-status] {
    min-height: 18px;
    margin-top: 4px;
    font-size: 7px;
    line-height: 1.2;
}

.gift-reward-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    margin: 28px auto 18px;
    border-radius: 16px;
}

.gift-day strong {
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: .025em;
    text-align: center;
}

.gift-day small {
    margin-top: 9px;
    font-size: 8px;
    line-height: 1.45;
    letter-spacing: .045em;
    text-align: center;
}

.gift-modal-actions {
    min-height: 66px;
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    background: rgba(0, 0, 0, .14);
}

.gift-modal-actions button {
    min-width: 168px;
    min-height: 44px;
    border-radius: 11px;
}

#gift-claim-feedback {
    max-width: 360px;
    color: #989693;
    line-height: 1.4;
    text-align: right;
}

@media (max-width: 1280px) {
    .gift-modal-panel {
        width: min(980px, calc(100vw - 28px));
    }

    .gift-week-grid {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - 30px) / 4 + 10px);
    }

    .gift-day {
        height: 300px !important;
        min-height: 300px !important;
    }
}

@media (max-width: 760px) {
    .gift-modal-panel {
        width: 100%;
        border-radius: 15px;
    }

    .gift-modal-head {
        min-height: 72px;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 10px;
        padding: 12px;
    }

    .gift-modal-head .flex {
        min-width: 0;
        gap: 10px;
    }

    .gift-title-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .gift-modal-head h2 {
        overflow: hidden;
        font-size: 19px;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gift-week-grid {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - 8px) / 2);
        padding: 12px;
        gap: 8px;
    }

    .gift-day {
        display: flex !important;
        height: 210px !important;
        min-height: 192px !important;
        flex-direction: column;
        padding: 11px 9px;
        border-radius: 18px;
    }

    .gift-reward-icon {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        margin: 10px auto 8px;
    }

    .gift-reward-icon img {
        width: 38px;
        height: 38px;
    }

    .gift-day strong {
        font-size: 9.5px;
        text-align: center;
    }

    .gift-day small {
        font-size: 7px;
        text-align: center;
    }

    .gift-modal-actions {
        gap: 9px;
        padding: 10px 12px 12px;
    }

    .gift-modal-actions button {
        width: 100%;
    }

    #gift-claim-feedback {
        max-width: none;
        text-align: center;
    }
}

/* Los cuadros del panel usan <dialog>; se normaliza su caja para que el
 * centrado no dependa de los valores por defecto del navegador. */
dialog.adm-ops-dialog[open] {
    position: fixed;
    inset: 0;
    width: min(440px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    margin: auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Friends: cards and friend profiles share the same Fossil Amber hierarchy. */
.friends-pack-section > header p {
    max-width: 540px !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.friends-pack-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    justify-content: flex-start;
    border-color: rgba(198,146,58,.16);
    background:
        radial-gradient(circle at 50% 21%, rgba(198,146,58,.16), transparent 40%),
        linear-gradient(180deg, rgba(18,18,14,.92), rgba(6,6,6,.97));
}
.friends-pack-card:hover {
    border-color: rgba(198,146,58,.42);
    box-shadow: 0 22px 48px rgba(0,0,0,.3), 0 0 26px rgba(198,146,58,.07);
}
.friends-pack-card h3 { margin-top: 2px; }
.friends-pack-card > p { margin-top: 9px; min-height: 16px; }
.friends-pack-card-actions { margin-top: auto; padding-top: 18px; }
.friends-pack-card-actions > button,
.friends-pack-card-actions > a {
    border-color: rgba(198,146,58,.25);
    background: rgba(198,146,58,.08);
    color: #e4ba69;
}
.friends-pack-card-actions > button {
    border-color: rgba(198,146,58,.32);
    background: linear-gradient(135deg, rgba(198,146,58,.2), rgba(198,146,58,.06));
    color: #f0ca7d;
}

.friend-profile-page {
    width: min(1320px, calc(100% - 36px)) !important;
    max-width: 1320px !important;
    padding-top: 28px;
}
.friend-profile-back {
    min-height: 38px;
    margin-bottom: 18px;
    border: 1px solid rgba(198,146,58,.22);
    border-radius: 11px;
    background: rgba(198,146,58,.06);
    padding: 0 13px;
    color: #e5ba69;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.friend-profile-back:hover {
    border-color: rgba(198,146,58,.52);
    background: rgba(198,146,58,.13);
    transform: translateX(-2px);
}
.friend-profile-hero {
    min-height: 380px !important;
    border-color: rgba(198,146,58,.3) !important;
    border-radius: 26px !important;
    padding: clamp(30px, 5vw, 58px) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07);
}
.friend-profile-atmosphere {
    opacity: 1;
    background:
        linear-gradient(90deg, rgba(5,7,5,.96) 0%, rgba(5,7,5,.82) 40%, rgba(5,7,5,.42) 100%),
        radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--profile-accent) 28%, transparent), transparent 33%),
        var(--profile-bg) center / cover !important;
}
.friend-profile-identity {
    display: grid;
    width: 100%;
    grid-template-columns: 156px minmax(0, 1fr) minmax(230px, 280px);
    align-items: center;
    gap: clamp(22px, 4vw, 46px);
}
.friend-profile-avatar-art {
    width: 148px;
    height: 148px;
    border-radius: 34px;
}
.friend-profile-avatar > span { right: -16px; bottom: 8px; }
.friend-profile-copy { min-width: 0; }
.friend-profile-identity h1 {
    max-width: none;
    overflow: visible;
    font-size: clamp(3rem, 5.3vw, 6rem);
    line-height: .88;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}
.friend-profile-copy > p:not(.friends-eyebrow) {
    margin-top: 18px;
    color: #d6d4d1;
    font-size: 16px;
    font-weight: 700;
}
.friend-level-chip { margin-top: 19px; }
.friend-profile-own-profile {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    border-color: rgba(198,146,58,.3);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(33,25,13,.78), rgba(8,8,8,.8));
    box-shadow: 0 18px 42px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
    padding: 19px;
}
.friend-profile-own-profile p { font-size: 11px; }
.friend-profile-own-profile a { min-height: 42px; margin-top: 8px; }
.friend-profile-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: 22px;
    margin-top: 22px;
}
.friend-stats-panel,
.friend-teleport-panel {
    border-color: rgba(198,146,58,.2);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(19,17,14,.94), rgba(6,6,6,.97));
    box-shadow: 0 22px 65px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.035);
}
.friend-stat-grid { gap: 12px; margin-top: 26px; }
.friend-stat-grid > div {
    border-color: rgba(198,146,58,.13);
    background: rgba(198,146,58,.045);
}
.friend-stat-grid i { color: #d7a64c; }
.friend-stat-grid span { color: #9c8a64; font-size: 8px; }
.friend-stat-grid strong { font-size: 32px; }
.friend-teleport-panel {
    border-color: rgba(198,146,58,.25);
    background:
        radial-gradient(circle at 88% 8%, rgba(198,146,58,.14), transparent 32%),
        linear-gradient(145deg, rgba(24,20,13,.96), rgba(6,6,6,.97));
}
.friend-teleport-panel header p { color: #aeaca9; font-size: 13px; }
.friend-teleport-state { border-color: rgba(198,146,58,.16); background: rgba(0,0,0,.3); }
.friend-teleport-state > i { background: rgba(198,146,58,.1); color: #e1b65e; }
.friend-teleport-panel > button { min-height: 48px; }
.friend-showcase-section {
    margin-top: 22px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(198,146,58,.18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(19,17,14,.92), rgba(6,6,6,.97));
    box-shadow: 0 22px 65px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03);
}
.friend-showcase-section > header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.friend-showcase-section > header span { color: #d7a64c; }
.friend-mission-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.friend-mission-grid article { border-color: rgba(198,146,58,.14); background: rgba(198,146,58,.045); }
.friend-mission-grid i { color: #d7a64c; }
.friend-collection-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.friend-collection-grid article {
    border-color: rgba(198,146,58,.13);
    border-radius: 14px;
    background: rgba(0,0,0,.3);
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.friend-collection-grid article:hover {
    border-color: rgba(198,146,58,.42);
    background: rgba(198,146,58,.06);
    transform: translateY(-3px);
}
.friend-collection-grid img { background: radial-gradient(circle, rgba(198,146,58,.16), transparent 70%); }

@media (max-width: 1050px) {
    .friend-profile-identity { grid-template-columns: 140px minmax(0, 1fr); }
    .friend-profile-own-profile { grid-column: 1 / -1; }
    .friend-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .friends-pack-section > header p { max-width: none !important; }
    .friend-profile-page { width: min(100% - 24px, 1320px) !important; padding-top: 14px; }
    .friend-profile-hero { min-height: 0 !important; padding: 28px 20px !important; }
    .friend-profile-identity { grid-template-columns: 1fr; gap: 22px; text-align: center; }
    .friend-profile-avatar { margin: 0 auto; }
    .friend-profile-avatar > span { right: -24px; }
    .friend-profile-copy h1 { font-size: clamp(2.7rem, 14vw, 4.7rem); }
    .friend-profile-copy > p:not(.friends-eyebrow) { font-size: 14px; }
    .friend-profile-own-profile { text-align: left; }
    .friend-mission-grid,
    .friend-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tienda: evita componer decenas de capas con blur fuera de pantalla. */
#skin-products-grid > [data-store-skin-card],
#tab-dinos .product-card,
#tab-lootbox > div > .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(145deg, rgba(11, 11, 11, .98), rgba(5, 5, 5, .96));
    content-visibility: auto;
    contain: layout paint style;
}
#skin-products-grid > [data-store-skin-card] { contain-intrinsic-size: auto 360px; }
#tab-dinos .product-card { contain-intrinsic-size: auto 285px; }
#tab-lootbox > div > .glass { contain-intrinsic-size: auto 320px; }

@media (max-width: 640px) {
    #skin-products-grid > [data-store-skin-card] { contain-intrinsic-size: auto 330px; }
    #tab-dinos .product-card { contain-intrinsic-size: auto 278px; }
}

/* Perfiles sociales: tarjetas separadas, avatares circulares y marcos visibles. */
.friend-row,
.friends-search-row,
.friends-request-row,
.presence-member,
.ranking-row {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, .075) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.16);
}
.friend-row:hover,
.friends-search-row:hover,
.friends-request-row:hover,
.presence-member:hover,
.ranking-row:hover {
    border-color: color-mix(in srgb, var(--social-accent, #d7a64c) 42%, transparent) !important;
    background: linear-gradient(135deg, rgba(215,166,76,.11), rgba(255,255,255,.025)) !important;
}
.friend-row,
.friends-search-row,
.friends-request-row,
.presence-member {
    position: relative;
    isolation: isolate;
}
.friend-row-avatar,
.friends-search-avatar,
.friends-pack-avatar-wrap,
.friends-request-avatar,
.presence-avatar-shell,
.friend-profile-avatar-art,
.ranking-podium-avatar,
.ranking-row-avatar {
    border-radius: 50% !important;
}
.friend-row-avatar,
.friends-search-avatar,
.friends-request-avatar,
.presence-avatar-shell {
    overflow: visible !important;
}
.friend-row-avatar > img,
.friends-search-avatar > img,
.friends-request-avatar > img,
.presence-avatar-shell .presence-avatar,
.friend-profile-avatar-art > img,
.ranking-podium-avatar > img,
.ranking-row-avatar > img {
    border-radius: 50% !important;
}
.friends-request-card {
    position: relative;
    margin: 8px 0;
    padding: 12px 10px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.16);
}
.friends-request-card > img { display: none; }
.friends-request-avatar {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}
.friends-request-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.friends-search-row { margin: 5px; padding: 8px !important; border-bottom: 1px solid rgba(255,255,255,.075) !important; }
.friends-search-row:last-child { border-bottom: 1px solid rgba(255,255,255,.075) !important; }
.friends-pack-card { border-radius: 22px !important; }
.friends-pack-avatar-wrap { overflow: visible !important; }
.presence-member {
    margin: 5px 0;
    padding: 9px 10px !important;
}
.presence-avatar-shell { overflow: visible !important; }
.ranking-podium-avatar { overflow: visible !important; }
.ranking-row-avatar {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}
.ranking-row-avatar > img {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(var(--ranking-accent-rgb), .24);
    background: #090909;
    object-fit: cover;
    box-shadow: 0 13px 30px rgba(0,0,0,.42);
}
.friend-profile-avatar-art { overflow: visible !important; }
.friend-profile-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.friend-profile-style-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--profile-accent) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--profile-accent) 10%, transparent);
    color: #e7d19a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.friend-profile-style-chips i { color: var(--profile-accent); }

/* En el perfil de amigo las partículas deben quedar sobre la atmósfera, no detrás del fondo. */
.friend-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}
.friend-profile-actions > button,
.friend-profile-actions > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(198,146,58,.3);
    border-radius: 11px;
    background: rgba(198,146,58,.1);
    padding: 0 15px;
    color: #f0ca7d;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.friend-profile-actions > button {
    border-color: rgba(224,179,95,.3);
    background: linear-gradient(135deg, rgba(203,153,66,.18), rgba(203,153,66,.06));
    color: #f4d291;
}
.friend-profile-actions > a {
    background: linear-gradient(135deg, rgba(198,146,58,.24), rgba(198,146,58,.08));
}
.friend-profile-actions > button:hover,
.friend-profile-actions > a:hover {
    transform: translateY(-2px);
    border-color: rgba(240,202,125,.62);
    box-shadow: 0 9px 22px rgba(0,0,0,.2);
}

.friend-profile-hero > .friend-profile-atmosphere {
    z-index: 0;
}
.friend-profile-hero > .profile-style-particles {
    z-index: 1;
}
.friend-profile-hero > .friend-profile-identity {
    position: relative;
    z-index: 2;
}

/* Expanded profile collection: extra frames, backgrounds and effects. */
.profile-frame-bone::before {
    padding: 4px;
    background: repeating-conic-gradient(from 6deg,#6f6047 0 8deg,#f1dfb0 8deg 15deg,#a58c63 15deg 22deg,#fff0bf 22deg 30deg);
    box-shadow: inset 0 0 45px rgba(255,226,159,.24), 0 0 30px rgba(238,204,133,.24);
}
.profile-frame-neon::before {
    padding: 4px;
    background: conic-gradient(from 0deg,#0c546d,#5ee7ff,#a66cff,#ff5fcf,#5ee7ff,#0c546d);
    box-shadow: inset 0 0 55px rgba(94,231,255,.25), 0 0 42px rgba(166,108,255,.34);
    animation: profileFrameGlow 2.2s ease-in-out infinite;
}
.profile-frame-venom::before {
    padding: 4px;
    background: repeating-conic-gradient(from 16deg,#183b17 0 11deg,#a5ff62 11deg 16deg,#d7ff9b 16deg 19deg,#245a1c 19deg 29deg);
    box-shadow: inset 0 0 60px rgba(165,255,98,.25), 0 0 38px rgba(122,255,62,.32);
    animation: profileFrameGlow 2.4s ease-in-out infinite reverse;
}
.profile-frame-cosmic::before {
    padding: 5px;
    background: conic-gradient(from 45deg,#26114e,#f28cff,#51d9ff,#17133f,#ff5bbd,#f5e2ff,#26114e);
    box-shadow: inset 0 0 70px rgba(242,140,255,.28), 0 0 50px rgba(81,217,255,.34);
    animation: socialFrameSpin 7s linear infinite;
}

.profile-effect-dust .profile-style-particles::before {
    background:
        radial-gradient(circle at 12% 72%,rgba(241,218,166,.8) 0 2px,transparent 3px),
        radial-gradient(circle at 28% 84%,rgba(194,168,116,.62) 0 3px,transparent 4px),
        radial-gradient(circle at 48% 66%,rgba(255,241,190,.72) 0 2px,transparent 3px),
        radial-gradient(circle at 70% 80%,rgba(206,177,118,.55) 0 2px,transparent 3px),
        radial-gradient(circle at 88% 60%,rgba(255,226,157,.7) 0 3px,transparent 4px);
    filter: blur(.2px) drop-shadow(0 0 5px rgba(220,190,128,.62));
    animation: profileDustDrift 7s linear infinite;
}
.profile-effect-dust .profile-style-particles::after {
    background: linear-gradient(115deg,transparent 20%,rgba(225,202,155,.14),transparent 70%);
    animation: profileEffectPulse 3.8s ease-in-out infinite;
}
.profile-effect-storm .profile-style-particles::before {
    background:
        repeating-linear-gradient(108deg,transparent 0 19%,rgba(102,226,255,.14) 20%,transparent 22% 39%),
        linear-gradient(116deg,transparent 12%,rgba(196,247,255,.9) 13%,transparent 15% 48%,rgba(92,156,255,.86) 49%,transparent 52%);
    filter: drop-shadow(0 0 10px #4cdfff);
    animation: profileStormFlash 3.6s steps(1,end) infinite;
}
.profile-effect-storm .profile-style-particles::after {
    inset: 0;
    border: 1px solid rgba(128,227,255,.4);
    background: radial-gradient(circle at 26% 28%,rgba(111,223,255,.26),transparent 20%);
    animation: profileEffectPulse 1.8s ease-in-out infinite;
}
.profile-effect-toxic .profile-style-particles::before {
    background:
        radial-gradient(ellipse at 18% 90%,rgba(109,255,72,.5),transparent 22%),
        radial-gradient(ellipse at 52% 102%,rgba(184,255,76,.45),transparent 25%),
        radial-gradient(ellipse at 84% 86%,rgba(64,213,101,.4),transparent 22%);
    filter: blur(13px) saturate(1.45);
    animation: profileToxicBreathe 4.2s ease-in-out infinite alternate;
}
.profile-effect-toxic .profile-style-particles::after {
    background-image: radial-gradient(circle,rgba(205,255,122,.6) 0 1px,transparent 2px);
    background-size: 35px 31px;
    opacity: .42;
    animation: profileStarDrift 8s linear infinite reverse;
}
.profile-effect-void .profile-style-particles::before {
    background:
        radial-gradient(circle at 72% 38%,#060610 0 7%,rgba(96,39,153,.62) 11%,transparent 25%),
        radial-gradient(circle at 72% 38%,rgba(244,148,255,.65) 0 1px,transparent 2px),
        linear-gradient(135deg,transparent 30%,rgba(81,101,255,.18),transparent 70%);
    filter: blur(1px) drop-shadow(0 0 13px #865cff);
    animation: profileVoidOrbit 8s linear infinite;
}
.profile-effect-void .profile-style-particles::after {
    background-image:
        radial-gradient(circle,#fff 0 1px,transparent 1.5px),
        radial-gradient(circle,#b88cff 0 1px,transparent 1.5px);
    background-position: 0 0,23px 17px;
    background-size: 49px 49px,71px 71px;
    opacity: .5;
    animation: profileStarDrift 12s linear infinite;
}
@keyframes profileDustDrift { from { transform: translate3d(-2%,18%,0) scale(1); opacity: .25; } 50% { opacity: .85; } to { transform: translate3d(3%,-24%,0) scale(1.12); opacity: .1; } }
@keyframes profileStormFlash { 0%,44%,100% { opacity: .22; transform: translateX(-4%); } 45%,49% { opacity: 1; transform: translateX(3%); } 50%,78% { opacity: .4; } 79%,84% { opacity: .9; transform: translateX(-2%); } }
@keyframes profileToxicBreathe { from { transform: translate3d(-3%,4%,0) scale(.96); opacity: .42; } to { transform: translate3d(4%,-7%,0) scale(1.12); opacity: .9; } }
@keyframes profileVoidOrbit { to { transform: rotate(360deg) scale(1.08); } }

.social-avatar-frame.social-frame-bone::before {
    background: repeating-conic-gradient(#806f50 0 10deg,#f1dfb0 10deg 16deg,#a58c63 16deg 23deg,#fff0bf 23deg 30deg);
    filter: drop-shadow(0 0 5px rgba(238,204,133,.5));
}
.social-avatar-frame.social-frame-neon::before {
    background: conic-gradient(#0c546d,#5ee7ff,#a66cff,#ff5fcf,#5ee7ff,#0c546d);
    filter: drop-shadow(0 0 7px #5ee7ff);
    animation: socialFrameSpin 3.8s linear infinite;
}
.social-avatar-frame.social-frame-venom::before {
    background: repeating-conic-gradient(#183b17 0 11deg,#a5ff62 11deg 16deg,#e1ffae 16deg 20deg,#245a1c 20deg 30deg);
    filter: drop-shadow(0 0 7px #7dff4d);
    animation: socialEnergyPulse 1.8s ease-in-out infinite;
}
.social-avatar-frame.social-frame-cosmic::before {
    background: conic-gradient(#26114e,#f28cff,#51d9ff,#17133f,#ff5bbd,#f5e2ff,#26114e);
    filter: drop-shadow(0 0 8px #d776ff);
    animation: socialFrameSpin 5s linear infinite reverse;
}
.social-effect-dust .social-avatar-motion {
    background: radial-gradient(circle,rgba(255,226,157,.85) 0 1px,transparent 2px);
    background-size: 13px 17px;
    filter: drop-shadow(0 0 4px #dcb875);
    animation: socialDustFloat 4.8s linear infinite;
}
.social-effect-storm .social-avatar-motion {
    border: 1px solid rgba(102,226,255,.72);
    background: repeating-linear-gradient(125deg,transparent 0 35%,rgba(155,239,255,.86) 36% 38%,transparent 39% 57%);
    box-shadow: inset 0 0 15px #4cdfff,0 0 18px rgba(68,183,255,.8);
    animation: socialEnergyPulse 1.1s steps(2,end) infinite;
}
.social-effect-toxic .social-avatar-motion {
    background: radial-gradient(ellipse at 50% 90%,rgba(145,255,74,.8),transparent 62%);
    filter: blur(5px) drop-shadow(0 0 9px #78ff4b);
    animation: socialToxicPulse 2.4s ease-in-out infinite alternate;
}
.social-effect-void .social-avatar-motion {
    border: 1px solid rgba(218,137,255,.56);
    background: radial-gradient(circle at 50% 50%,#05050d 0 23%,rgba(163,76,255,.72) 30%,transparent 62%);
    box-shadow: inset 0 0 16px #6439ff,0 0 19px #b861ff;
    animation: socialFrameSpin 6s linear infinite;
}
@keyframes socialDustFloat { to { transform: translateY(-8px) rotate(360deg); opacity: .18; } }
@keyframes socialToxicPulse { to { transform: scale(1.12); opacity: .5; } }

.profile-style-swatch.frame.social-frame-bone i { border-color: #ead8ad; box-shadow: 0 0 22px #c9a96c,inset 0 0 10px #fff0bf; }
.profile-style-swatch.frame.social-frame-neon i { border-color: #5ee7ff; box-shadow: 0 0 23px #5ee7ff,inset 0 0 12px #f28cff; }
.profile-style-swatch.frame.social-frame-venom i { border-color: #a5ff62; box-shadow: 0 0 25px #7dff4d,inset 0 0 12px #e1ffae; }
.profile-style-swatch.frame.social-frame-cosmic i { border-color: #f28cff; box-shadow: 0 0 26px #d776ff,inset 0 0 12px #51d9ff; }
.profile-style-swatch.effect.social-effect-dust i { color: #ead8ad; }
.profile-style-swatch.effect.social-effect-storm i { color: #5ee7ff; text-shadow: 0 0 12px #5ee7ff; }
.profile-style-swatch.effect.social-effect-toxic i { color: #a5ff62; text-shadow: 0 0 12px #7dff4d; }
.profile-style-swatch.effect.social-effect-void i { color: #f28cff; text-shadow: 0 0 12px #b861ff; }

@media (prefers-reduced-motion: reduce) {
    .profile-frame-neon::before,
    .profile-frame-venom::before,
    .profile-frame-cosmic::before,
    .profile-effect-dust .profile-style-particles::before,
    .profile-effect-dust .profile-style-particles::after,
    .profile-effect-storm .profile-style-particles::before,
    .profile-effect-storm .profile-style-particles::after,
    .profile-effect-toxic .profile-style-particles::before,
    .profile-effect-toxic .profile-style-particles::after,
    .profile-effect-void .profile-style-particles::before,
    .profile-effect-void .profile-style-particles::after,
    .social-avatar-frame.social-frame-neon::before,
    .social-avatar-frame.social-frame-venom::before,
    .social-avatar-frame.social-frame-cosmic::before,
    .social-avatar-motion { animation: none !important; }
}

/* Acabado natural para los efectos nuevos y el marco cósmico. */
.profile-frame-cosmic::before {
    padding: 4px;
    background: conic-gradient(from 165deg,#33204d 0deg,#a875d6 34deg,#65d9e8 76deg,#211b3b 116deg,#ead4ff 154deg,#6b9dce 204deg,#291b48 252deg,#c887d8 308deg,#33204d 360deg);
    box-shadow: inset 0 0 30px rgba(191,139,236,.18), 0 0 28px rgba(102,206,229,.22);
    animation: cosmicFrameBreath 7s ease-in-out infinite;
}
.social-avatar-frame.social-frame-cosmic::before {
    background: conic-gradient(from 165deg,#33204d,#a875d6 12%,#65d9e8 25%,#211b3b 40%,#ead4ff 54%,#6b9dce 69%,#291b48 83%,#c887d8,#33204d);
    filter: drop-shadow(0 0 6px rgba(171,120,217,.58));
    animation: cosmicFrameBreath 7s ease-in-out infinite;
}
.social-avatar-frame.social-frame-cosmic::after {
    border-color: rgba(190,164,235,.42);
    box-shadow: 0 0 16px rgba(101,217,232,.24);
}
@keyframes cosmicFrameBreath { 50% { filter: brightness(1.14) saturate(1.08); opacity: .84; } }

.profile-effect-dust .profile-style-particles::before {
    background:
        radial-gradient(circle at 8% 82%,rgba(255,237,188,.55) 0 1px,transparent 2px),
        radial-gradient(circle at 19% 58%,rgba(216,192,143,.38) 0 1px,transparent 2px),
        radial-gradient(circle at 31% 91%,rgba(255,232,174,.46) 0 1px,transparent 2px),
        radial-gradient(circle at 48% 68%,rgba(202,174,124,.34) 0 1px,transparent 2px),
        radial-gradient(circle at 66% 84%,rgba(255,240,190,.44) 0 1px,transparent 2px),
        radial-gradient(circle at 84% 55%,rgba(217,193,147,.34) 0 1px,transparent 2px),
        radial-gradient(circle at 94% 78%,rgba(255,229,170,.48) 0 1px,transparent 2px);
    filter: blur(.15px) drop-shadow(0 0 3px rgba(218,189,132,.42));
    opacity: .72;
    animation: realisticDustDrift 12s ease-in-out infinite alternate;
}
.profile-effect-dust .profile-style-particles::after {
    background: radial-gradient(ellipse at 50% 100%,rgba(213,184,127,.16),transparent 58%);
    opacity: .55;
    animation: realisticHaze 8s ease-in-out infinite alternate;
}
.profile-effect-storm .profile-style-particles::before {
    background:
        radial-gradient(ellipse at 78% 18%,rgba(155,218,255,.22),transparent 26%),
        linear-gradient(118deg,transparent 45%,rgba(195,242,255,.5) 48%,transparent 50%),
        linear-gradient(109deg,transparent 61%,rgba(111,178,255,.34) 63%,transparent 65%);
    filter: blur(1.4px) drop-shadow(0 0 9px rgba(72,190,255,.42));
    opacity: .58;
    animation: realisticStormFlash 8s ease-in-out infinite;
}
.profile-effect-storm .profile-style-particles::after {
    inset: -10%;
    border: 0;
    background: linear-gradient(180deg,rgba(83,148,202,.08),transparent 50%,rgba(18,44,71,.18));
    opacity: .6;
    animation: realisticHaze 6s ease-in-out infinite alternate-reverse;
}
.profile-effect-toxic .profile-style-particles::before {
    background:
        radial-gradient(ellipse at 12% 92%,rgba(116,201,81,.25),transparent 26%),
        radial-gradient(ellipse at 48% 104%,rgba(171,216,94,.2),transparent 30%),
        radial-gradient(ellipse at 88% 88%,rgba(67,167,100,.2),transparent 25%);
    filter: blur(18px) saturate(1.08);
    opacity: .68;
    animation: realisticToxicMist 9s ease-in-out infinite alternate;
}
.profile-effect-toxic .profile-style-particles::after {
    background:
        radial-gradient(circle at 20% 75%,rgba(213,255,153,.36) 0 1px,transparent 2px),
        radial-gradient(circle at 72% 62%,rgba(170,232,117,.28) 0 1px,transparent 2px);
    background-size: 55px 49px,71px 63px;
    opacity: .3;
    animation: realisticDustDrift 15s linear infinite alternate-reverse;
}
.profile-effect-void .profile-style-particles::before {
    background:
        radial-gradient(ellipse at 78% 30%,rgba(179,126,255,.26),transparent 15%),
        repeating-radial-gradient(ellipse at 78% 30%,transparent 0 9px,rgba(156,103,240,.12) 10px 12px,transparent 14px 24px),
        radial-gradient(circle at 78% 30%,rgba(246,220,255,.65) 0 1px,transparent 2px),
        linear-gradient(132deg,transparent 25%,rgba(95,114,217,.1),transparent 72%);
    filter: blur(.45px) drop-shadow(0 0 10px rgba(137,96,229,.34));
    opacity: .7;
    mix-blend-mode: screen;
    animation: realisticVoidDrift 16s ease-in-out infinite alternate;
}
.profile-effect-void .profile-style-particles::after {
    background-image:
        radial-gradient(circle,rgba(255,255,255,.68) 0 1px,transparent 1.5px),
        radial-gradient(circle,rgba(183,157,255,.38) 0 1px,transparent 1.5px);
    background-position: 0 0,23px 17px;
    background-size: 67px 67px,91px 91px;
    opacity: .24;
    animation: realisticStarDrift 24s linear infinite;
}
.social-effect-dust .social-avatar-motion {
    background: radial-gradient(circle,rgba(255,235,178,.65) 0 1px,transparent 2px);
    background-size: 17px 21px;
    filter: drop-shadow(0 0 3px rgba(219,185,122,.5));
    opacity: .65;
    animation: realisticAvatarDust 8s ease-in-out infinite alternate;
}
.social-effect-storm .social-avatar-motion {
    border: 1px solid rgba(135,218,255,.45);
    background: radial-gradient(ellipse at 68% 22%,rgba(151,220,255,.34),transparent 44%);
    box-shadow: inset 0 0 13px rgba(75,185,255,.34),0 0 13px rgba(68,183,255,.38);
    opacity: .7;
    animation: realisticAvatarStorm 4.8s ease-in-out infinite;
}
.social-effect-toxic .social-avatar-motion {
    background: radial-gradient(ellipse at 50% 88%,rgba(155,236,103,.48),transparent 62%);
    filter: blur(6px) drop-shadow(0 0 6px rgba(120,205,80,.4));
    opacity: .62;
    animation: realisticAvatarToxic 6s ease-in-out infinite alternate;
}
.social-effect-void .social-avatar-motion {
    border: 1px solid rgba(205,170,255,.35);
    background:
        repeating-radial-gradient(ellipse at 50% 50%,transparent 0 4px,rgba(161,117,238,.16) 5px 6px,transparent 8px 14px),
        radial-gradient(circle at 72% 28%,rgba(242,220,255,.55) 0 1px,transparent 2px);
    box-shadow: inset 0 0 14px rgba(102,70,191,.28),0 0 15px rgba(170,120,245,.28);
    opacity: .7;
    animation: realisticAvatarVoid 13s ease-in-out infinite alternate;
}
@keyframes realisticDustDrift { from { transform: translate3d(-2%,7%,0); } to { transform: translate3d(3%,-8%,0); } }
@keyframes realisticHaze { from { transform: translate3d(-2%,2%,0) scale(1); } to { transform: translate3d(2%,-2%,0) scale(1.06); } }
@keyframes realisticStormFlash { 0%,72%,100% { opacity: .28; } 76%,79% { opacity: .72; } 82% { opacity: .36; } }
@keyframes realisticToxicMist { from { transform: translate3d(-3%,3%,0) scale(.98); } to { transform: translate3d(4%,-4%,0) scale(1.08); } }
@keyframes realisticVoidDrift { from { transform: translate3d(-2%,1%,0) scale(1); } to { transform: translate3d(2%,-2%,0) scale(1.05); } }
@keyframes realisticStarDrift { to { transform: translate3d(32px,-24px,0); } }
@keyframes realisticAvatarDust { from { transform: translateY(5px); } to { transform: translateY(-5px); } }
@keyframes realisticAvatarStorm { 0%,70%,100% { opacity: .35; } 74%,80% { opacity: .78; } }
@keyframes realisticAvatarToxic { from { transform: scale(.97); } to { transform: scale(1.08); } }
@keyframes realisticAvatarVoid { from { transform: rotate(-3deg) scale(.98); } to { transform: rotate(3deg) scale(1.04); } }

@media (max-width: 720px) {
    .ranking-row-avatar { width: 44px; height: 44px; }
    .friends-request-avatar { width: 46px; height: 46px; flex-basis: 46px; }
}

/* Pagos: acciones más claras, premium y fáciles de distinguir. */
.membership-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.membership-payment-actions.is-patreon-only {
    grid-template-columns: minmax(0, 1fr);
}
.membership-payment-actions.is-patreon-only .membership-payment-button {
    width: 100%;
    min-height: 70px;
    padding: 12px 16px;
}
.membership-payment-button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 76px;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 11px 13px;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, filter .2s ease;
}
.membership-payment-button::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .7;
    background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 42%);
}
.membership-payment-button:active,
.membership-payment-button:active:hover {
    transform: translateY(0);
    filter: none;
}
.membership-payment-card {
    border-color: rgba(239, 192, 94, .58);
    background: linear-gradient(135deg, rgba(198,146,58,.38), rgba(90,55,18,.48));
    color: #fff4d0;
    box-shadow: 0 12px 28px rgba(198,146,58,.16), inset 0 1px 0 rgba(255,255,255,.18);
}
.membership-payment-patreon {
    border-color: rgba(249,104,84,.66);
    background: linear-gradient(135deg, rgba(249,104,84,.34), rgba(113,37,33,.5));
    color: #ffe8e4;
    box-shadow: 0 12px 28px rgba(249,104,84,.12), inset 0 1px 0 rgba(255,255,255,.12);
}
.membership-payment-disabled {
    border-color: rgba(255,255,255,.1);
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    color: #7f7d7a;
    cursor: not-allowed;
    opacity: .7;
}
.membership-payment-button-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 13px;
    background: rgba(0,0,0,.2);
    font-size: 17px;
}
.membership-patreon-logo {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
}
.membership-payment-button-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 4px;
}
.membership-payment-button-copy strong,
.membership-payment-button-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.membership-payment-button-copy strong {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.membership-payment-button-copy small {
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
}
.membership-payment-button-arrow {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    transition: transform .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .membership-payment-button:hover {
        transform: translateY(-3px);
        filter: brightness(1.08);
    }
    .membership-payment-card:hover {
        border-color: rgba(255, 224, 143, .9);
        box-shadow: 0 18px 34px rgba(198,146,58,.26), inset 0 1px 0 rgba(255,255,255,.22);
    }
    .membership-payment-patreon:hover {
        border-color: rgba(255, 153, 138, .9);
        box-shadow: 0 18px 34px rgba(249,104,84,.22), inset 0 1px 0 rgba(255,255,255,.18);
    }
    .membership-payment-button:hover .membership-payment-button-arrow { transform: translateX(3px); }
}
.membership-billing-options {
    margin-top: 28px;
}
.membership-billing-form {
    display: grid;
    gap: 12px;
}
.membership-billing-form > button {
    position: relative;
    display: flex !important;
    width: 100%;
    min-height: 76px;
    align-items: center;
    gap: 13px;
    border: 1px solid transparent !important;
    border-radius: 18px !important;
    padding: 12px 16px !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.membership-billing-form > button::after {
    margin-left: auto;
    color: rgba(255,255,255,.6);
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    transition: transform .2s ease;
}
.membership-billing-form > button:hover:not(:disabled) {
    transform: translateY(-2px);
}
.membership-billing-form > button:hover:not(:disabled)::after { transform: translateX(3px); }
.membership-billing-form > button > i:first-child {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    margin: 0 !important;
    border-radius: 14px;
    background: rgba(0,0,0,.2);
    font-size: 17px;
}
.membership-billing-subscription {
    border-color: rgba(198,146,58,.62) !important;
    background: linear-gradient(135deg, rgba(198,146,58,.24), rgba(198,146,58,.06)) !important;
    color: #ffe5a3 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.membership-billing-subscription > i:first-child { color: #f4c763; }
.membership-billing-manual {
    border-color: rgba(255,255,255,.16) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)) !important;
    color: #f5f3f0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.membership-billing-manual > i:first-child { color: #c4c2bf; }
.membership-billing-form > button:disabled {
    cursor: not-allowed !important;
    filter: grayscale(.5);
    opacity: .42;
}

/* Rangos: banners premium horizontales. La capa visual mantiene intactas las acciones de compra. */
.membership-plans-grid {
    display: grid;
    gap: 30px;
}
.membership-card {
    --rank-accent: #efc679;
    --rank-glow: rgba(219, 172, 86, .28);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(330px, 42%) minmax(0, 58%);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--rank-accent) 42%, transparent);
    border-radius: 24px;
    background: linear-gradient(125deg, #0c0c0c 0%, #0a0a0a 54%, #060606 100%);
    box-shadow: 0 28px 80px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.025) inset;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.membership-card.prime { --rank-accent: #e3b664; --rank-glow: rgba(170, 124, 47, .34); }
.membership-card.ancestral { --rank-accent: #ffb34f; --rank-glow: rgba(225, 107, 25, .36); }
.membership-card.explorer { --rank-accent: #f0c87e; --rank-glow: rgba(216, 167, 80, .28); }
.membership-card.stalker { --rank-accent: #eac070; --rank-glow: rgba(211, 162, 72, .3); }
.membership-card::before { display: none; }
.membership-card.is-active { border-color: var(--rank-accent); box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 36px var(--rank-glow), 0 0 0 1px var(--rank-accent) inset; }
.membership-card::after {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.035) 50%, transparent 72%);
    content: "";
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.membership-card-visual { position: relative; min-height: 100%; overflow: hidden; background: #080808; }
.membership-card-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 63% center;
    opacity: 1;
    filter: brightness(1.07) contrast(1.08) saturate(1.04);
    transform: scale(1.015);
    transition: transform .6s ease, filter .4s ease;
}
.membership-card.prime .membership-card-art { object-position: 66% 36%; filter: brightness(1.12) contrast(1.08) saturate(1.08); }
.membership-card.ancestral .membership-card-art { object-position: 68% center; filter: brightness(1.12) contrast(1.08) saturate(.98); }
.membership-card.explorer .membership-card-art { object-position: 58% 34%; filter: brightness(1.1) contrast(1.08) saturate(1.04); }
.membership-card.stalker .membership-card-art { object-position: 55% 34%; filter: brightness(1.1) contrast(1.1) saturate(1.06); }
.membership-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent 42%, rgba(8,8,8,.38) 72%, #0a0a0a 100%), linear-gradient(0deg, rgba(4,4,4,.5), transparent 45%), radial-gradient(circle at 45% 48%, transparent 10%, rgba(0,0,0,.2) 90%);
}
.membership-card-emblem {
    position: absolute;
    bottom: 22px;
    left: 24px;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--rank-accent) 55%, transparent);
    border-radius: 50%;
    color: var(--rank-accent);
    background: rgba(6,6,6,.66);
    box-shadow: 0 0 24px var(--rank-glow);
    backdrop-filter: blur(8px);
}
.membership-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 38px 40px 34px;
    text-shadow: none;
}
.membership-card-content::before { position:absolute; top:0; right:0; width:58%; height:2px; background:linear-gradient(90deg,transparent,var(--rank-accent)); content:""; opacity:.75; }
.membership-card-statuses { display:flex; min-height:28px; align-items:center; gap:9px; flex-wrap:wrap; }
.membership-tier-label, .membership-popular, .membership-active-badge { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:7px 11px; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.membership-tier-label { padding-left:0; color:var(--rank-accent); }
.membership-popular { position:static; border:1px solid rgba(242,213,138,.36); color:#f6d990; background:rgba(198,146,58,.12); }
.membership-active-badge { border:1px solid color-mix(in srgb, var(--rank-accent) 45%, transparent); color:#0c0c0c; background:var(--rank-accent); }
.membership-card-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin-top:10px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.09); }
.membership-card-title { margin:0; color:#fff; font-family:'Oswald',sans-serif; font-size:clamp(42px,4vw,62px); line-height:.98; letter-spacing:.015em; text-transform:uppercase; }
.membership-card-coins { display:flex; align-items:center; gap:8px; margin:12px 0 0; color:var(--rank-accent); font-size:10px; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.membership-card-price { display:grid; flex:0 0 auto; justify-items:end; padding-bottom:3px; }
.membership-card-price span { color:#fff; font-family:'Oswald',sans-serif; font-size:28px; line-height:1; }
.membership-card-price small { margin-top:5px; color:#7a7875; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.membership-benefits-heading { display:flex; align-items:center; justify-content:space-between; margin-top:20px; color:#b7b5b2; font-size:9px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.membership-benefits-heading i { color:var(--rank-accent); }
.membership-benefits-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 18px; margin:15px 0 0; padding:0; color:#dddbd8; font-size:12px; font-weight:700; line-height:1.4; list-style:none; }
.membership-benefits-list li { display:flex; align-items:flex-start; gap:9px; min-width:0; }
.membership-benefit-icon { display:grid; width:18px; height:18px; flex:0 0 18px; place-items:center; margin-top:0; border:1px solid color-mix(in srgb, var(--rank-accent) 35%, transparent); border-radius:5px; color:var(--rank-accent); background:color-mix(in srgb, var(--rank-accent) 10%, transparent); font-size:8px; }
.membership-card-actions { margin-top:auto; padding-top:26px; }
.membership-card .membership-payment-actions { gap:12px; }
.membership-card .membership-payment-button { border-radius:14px; }
.membership-card .membership-payment-actions.is-patreon-only { width:100%; }
@media (hover:hover) and (pointer:fine) {
    .membership-card:hover { transform:translateY(-4px); border-color:color-mix(in srgb, var(--rank-accent) 72%, transparent); box-shadow:0 34px 95px rgba(0,0,0,.55),0 0 32px var(--rank-glow); }
    .membership-card:hover::after { transform:translateX(100%); }
    .membership-card:hover .membership-card-art { transform:scale(1.055); filter:brightness(1.14) contrast(1.08) saturate(1.08); }
}
@media (max-width:900px) {
    .membership-card { grid-template-columns:minmax(270px,38%) minmax(0,62%); }
    .membership-card-content { padding:30px 28px; }
    .membership-benefits-list { grid-template-columns:1fr; }
}
@media (max-width:680px) {
    .membership-plans-grid { gap:22px; }
    .membership-card { display:flex; min-height:0; flex-direction:column; border-radius:20px; }
    .membership-card-visual { min-height:260px; aspect-ratio:16/10; }
    .membership-card-art, .membership-card.prime .membership-card-art, .membership-card.ancestral .membership-card-art, .membership-card.explorer .membership-card-art, .membership-card.stalker .membership-card-art { object-position:center 38%; }
    .membership-card.prime .membership-card-art { object-position:center 22%; }
    .membership-card-shade { background:linear-gradient(0deg,#0a0a0a 0%,rgba(10,10,10,.3) 36%,transparent 70%),linear-gradient(90deg,rgba(0,0,0,.15),transparent,rgba(0,0,0,.15)); }
    .membership-card-emblem { bottom:18px; left:18px; }
    .membership-card-content { padding:4px 20px 24px; }
    .membership-card-content::before { display:none; }
    .membership-card-statuses { margin-bottom:12px; }
    .membership-card-heading { flex-direction:column; align-items:stretch; gap:14px; margin-top:0; }
    .membership-card-title { font-size:42px; }
    .membership-card-price { justify-items:start; }
    .membership-card-price span { font-size:24px; }
    .membership-benefits-list { gap:10px; font-size:12px; }
    .membership-card-actions { padding-top:22px; }
    .membership-card .membership-payment-actions { grid-template-columns:1fr; }
    .membership-card .membership-payment-button { min-height:66px; }
}

/* Los marcos del chat privado siempre siguen la silueta circular del avatar. */
.private-chat-widget .social-chat-message-avatar,
.private-chat-widget .social-chat-message-avatar > img,
.private-chat-widget .social-chat-message-avatar::before,
.private-chat-widget .social-chat-message-avatar::after,
.private-chat-mini-panel .social-chat-message-avatar,
.private-chat-mini-panel .social-chat-message-avatar > img,
.private-chat-mini-panel .social-chat-message-avatar::before,
.private-chat-mini-panel .social-chat-message-avatar::after,
.private-chat-tab img,
.private-chat-contact-avatar,
.private-chat-contact-avatar img,
.social-chat-head.private > img {
    border-radius: 50% !important;
}

@media (max-width: 620px) {
    .membership-payment-actions { grid-template-columns: 1fr; }
    .membership-payment-button { min-height: 68px; }
}

/* Chat global: panel de comunidad con jerarquía clara y actualización en vivo. */
.global-chat-head {
    min-height: 122px;
    align-items: flex-start;
    padding: 22px 20px 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(198,146,58,.18), transparent 38%),
        linear-gradient(135deg, rgba(46,29,12,.78), rgba(10,8,5,.3));
}
.global-chat-head-copy {
    min-width: 0;
}
.social-chat-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}
.social-chat-kicker > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f2ce89;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.social-chat-kicker > span i { font-size: 10px; }
.social-chat-kicker > small {
    color: #c79640;
    font-size: 8px;
    font-weight: 800;
}
.global-chat-head h2 {
    margin-top: 9px;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: .07em;
}
.global-chat-head p {
    margin-top: 7px;
    color: #dbab55;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}
.global-chat-head .social-chat-head-actions {
    flex: 0 0 auto;
    align-items: flex-start;
}
.global-chat-head .social-chat-online {
    min-width: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 5px 9px;
    text-align: center;
}
.global-chat-head .social-chat-online i { display: none; }
.global-chat-head .social-chat-online b {
    font-size: 16px;
    line-height: 1;
}
.global-chat-head .social-chat-online > span {
    color: #71968d;
    font-size: 7px;
    letter-spacing: .12em;
}
.global-chat-panel {
    border-color: rgba(224,179,95,.34);
}
.global-chat-panel .social-chat-scope-bar {
    min-height: 48px;
    background: rgba(20,18,15,.38);
}
.global-chat-panel .social-chat-scope-bar small {
    color: #be8e3a;
    text-align: right;
}
.global-chat-panel .social-chat-message {
    animation: social-chat-message-in .22s ease both;
    border-radius: 12px;
    padding-inline: 8px;
    transition: background .18s ease, border-color .18s ease;
}
.global-chat-panel .social-chat-message:hover {
    border-bottom-color: rgba(224,179,95,.18);
    background: linear-gradient(90deg, rgba(224,179,95,.02), rgba(224,179,95,.1));
}
.global-chat-panel .social-chat-message.mine {
    border-left: 2px solid rgba(224,179,95,.45);
    padding-left: 6px;
}
.global-chat-panel .social-chat-message-text {
    color: #d1cfcc;
    font-size: 12px;
    line-height: 1.65;
}
.global-chat-panel .social-chat-compose {
    border-top: 1px solid rgba(224,179,95,.12);
    background: linear-gradient(180deg, rgba(20,18,15,.25), rgba(7,7,7,.7));
    padding-top: 12px;
}
@keyframes social-chat-message-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 620px) {
    .global-chat-head { min-height: 108px; padding: 16px 13px 13px; }
    .global-chat-head p { font-size: 9px; }
    .global-chat-head .social-chat-online { display: flex; min-width: 62px; }
    .global-chat-head .social-chat-head-actions > button { width: 34px; height: 34px; }
    .global-chat-panel .social-chat-scope-bar { padding-inline: 13px; }
    .global-chat-panel .social-chat-scope-bar small { display: none; }
}

/* La solapa vuelve a ser un botón completo: título visible y caja redondeada. */
.global-chat-tab {
    left: 24px;
    right: auto;
    bottom: 24px;
    top: auto;
    display: flex;
    width: 146px;
    min-width: 146px;
    height: auto;
    min-height: 58px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid rgba(235, 191, 102, .64);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 202, 113, .97), rgba(176, 117, 30, .98));
    padding: 8px 14px 8px 9px;
    color: #100b03;
    transform: none;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .46), 0 0 34px rgba(198, 146, 58, .26), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.global-chat-tab:hover { transform: translateY(-3px); }
.global-chat-tab:active { transform: translateY(0); }
.global-chat-tab-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #100b03;
    font-size: 15px;
}
.global-chat-tab-copy {
    display: grid !important;
    min-width: 0;
    gap: 0;
    text-align: left;
}
.global-chat-tab-copy strong,
.global-chat-tab-copy small { display: block; }
.global-chat-tab-copy strong {
    color: #100b03;
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.global-chat-tab-copy small {
    margin-top: 0;
    color: rgba(16, 11, 3, .68);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.global-chat-tab {
    gap: 6px;
}
.global-chat-tab-copy {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}
.global-chat-tab-copy strong {
    display: inline !important;
    white-space: nowrap;
}
.global-chat-tab-copy small { display: none !important; }
.global-chat-unread {
    top: -8px;
    left: -8px;
    border-color: #201506;
}
@media (max-width: 640px) {
    .global-chat-tab {
        left: 14px;
        bottom: 14px;
        width: 132px;
        min-width: 0;
        min-height: 58px;
    }
    .global-chat-tab { gap: 5px; }
    .global-chat-tab-icon { width: 34px; height: 34px; flex-basis: 34px; }
    .global-chat-tab-copy strong { font-size: 9px; }
}

/* Los tres accesos sociales comparten el mismo botón rectangular completo. */
.friends-fab,
.community-fab {
    display: inline-flex !important;
    width: 146px !important;
    min-width: 146px !important;
    height: auto !important;
    min-height: 58px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border-radius: 18px !important;
    padding: 8px 14px 8px 9px !important;
}
.friends-fab {
    right: max(24px, env(safe-area-inset-right)) !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
}
.community-fab {
    right: max(24px, env(safe-area-inset-right)) !important;
    left: auto !important;
    bottom: calc(max(24px, env(safe-area-inset-bottom)) + 70px) !important;
}
.friends-fab-label,
.community-fab-label {
    display: inline-block !important;
    min-width: 0;
    color: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.friends-fab-icon,
.community-fab-icon {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    place-items: center;
    border-radius: 12px !important;
    font-size: 15px !important;
}
.friends-fab:active,
.community-fab:active { transform: translateY(0) !important; }
@media (max-width: 640px) {
    .friends-fab,
    .community-fab {
        width: 132px !important;
        min-width: 132px !important;
        min-height: 52px !important;
        border-radius: 16px !important;
        padding: 6px 11px 6px 7px !important;
    }
    .friends-fab { bottom: max(14px, env(safe-area-inset-bottom)) !important; }
    .community-fab { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px) !important; }
    .friends-fab-icon,
    .community-fab-icon { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
    .friends-fab-label,
    .community-fab-label { font-size: 9px; }
}

/* El fondo elegido por cada usuario acompaña su tarjeta en todas las vistas sociales. */
.friend-row,
.friends-search-row,
.friend-request-row,
.friends-request-card,
.presence-member,
.friends-pack-card,
.ranking-row,
.ranking-podium-card {
    background:
        linear-gradient(90deg, rgba(6, 6, 6, .94), rgba(6, 6, 6, .64)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
    background-blend-mode: normal;
}
.friend-row:hover,
.friends-search-row:hover,
.friend-request-row:hover,
.friends-request-card:hover,
.presence-member:hover,
.friends-pack-card:hover,
.ranking-row:hover,
.ranking-podium-card:hover {
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .9), rgba(10, 10, 10, .48)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
}
.friend-row-main,
.friends-search-row > a > span:last-child,
.friends-request-card > div,
.presence-member > div,
.ranking-row-player,
.ranking-row-score,
.ranking-row-reward {
    position: relative;
    z-index: 1;
}

/* Intercambios entre amigos */
.friends-pack-card-actions .friends-trade-button {
    color: #eae8e5;
    border-color: rgba(231, 188, 107, .36);
    background: linear-gradient(135deg, rgba(138, 97, 34, .78), rgba(26, 24, 21, .88));
}
.trades-page { width: min(1220px, calc(100% - 34px)); margin: 30px auto 70px; color: #f3f1ee; }
.trades-hero,
.trades-partner-card,
.trades-friend-picker,
.trades-offers-section,
.trade-builder-column,
.trade-builder-submit {
    border: 1px solid rgba(240, 201, 127, .18);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(21, 19, 16, .96), rgba(9, 9, 9, .94));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}
.trades-hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px 34px; background: linear-gradient(105deg, rgba(27, 25, 22, .97), rgba(18, 16, 13, .93)); }
.trades-hero h1 { margin: 3px 0 8px; font-size: clamp(28px, 4vw, 45px); }
.trades-hero p { max-width: 680px; margin: 0; color: #c1bfbc; line-height: 1.55; }
.trades-hero-back,
.trades-partner-card > a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(202, 171, 85, .45); border-radius: 14px; padding: 11px 15px; color: #ffe5a2; text-decoration: none; white-space: nowrap; background: rgba(65, 47, 14, .28); }
.trades-alert { display: flex; align-items: center; gap: 9px; margin: 18px 0; padding: 13px 16px; border-radius: 14px; border: 1px solid; }
.trades-alert.success { color: #c8f4c8; border-color: rgba(92, 210, 117, .42); background: rgba(35, 104, 52, .27); }
.trades-alert.error { color: #ffd1c8; border-color: rgba(235, 105, 83, .44); background: rgba(116, 37, 25, .28); }
.trades-friend-picker,
.trades-offers-section { margin-top: 22px; padding: 25px; }
.trades-friend-picker header h2,
.trades-offers-section h2 { margin: 4px 0 0; }
.trades-friend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.trades-friend-grid a { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(242, 206, 137, .16); border-radius: 16px; color: #f5f3f0; text-decoration: none; background: rgba(255,255,255,.025); transition: .18s ease; }
.trades-friend-grid a:hover { transform: translateY(-2px); border-color: rgba(207, 171, 79, .54); background: rgba(198, 150, 59, .1); }
.trades-friend-grid img,
.trades-partner-card > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(211, 177, 83, .7); }
.trades-friend-grid span { display: grid; gap: 2px; flex: 1; }.trades-friend-grid small { color: #b1afac; }.trades-friend-grid i { color: #e4be69; }
.trades-partner-card { display: flex; align-items: center; gap: 15px; margin-top: 22px; padding: 18px 22px; }
.trades-partner-card > img { width: 64px; height: 64px; }.trades-partner-card > div { flex: 1; }.trades-partner-card span { color: #c8a657; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }.trades-partner-card h2 { margin: 1px 0 4px; }.trades-partner-card p { margin: 0; color: #b8b6b3; }
.trade-builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.trade-builder-column { padding: 22px; min-width: 0; }.trade-builder-column.offered { border-top: 3px solid #d6a54d; }.trade-builder-column.requested { border-top: 3px solid #d5ab58; }
.trade-builder-column header span { color: #f9dfad; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }.trade-builder-column.requested header span { color: #f0cf8a; }.trade-builder-column h2 { margin: 5px 0; }.trade-builder-column header p { margin: 0; color: #a7a5a2; font-size: 13px; }
.trade-item-group { margin-top: 19px; }.trade-item-group h3 { margin: 0 0 8px; color: #d1cfcc; font-size: 13px; }
.trade-item-choice { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 7px; border: 1px solid rgba(242, 206, 137, .14); border-radius: 13px; cursor: pointer; background: rgba(255,255,255,.025); transition: .16s ease; }
.trade-item-choice:hover { border-color: rgba(205, 172, 86, .52); }.trade-item-choice input { accent-color: #cfa846; width: 16px; height: 16px; }.trade-item-choice span { display: grid; flex: 1; min-width: 0; }.trade-item-choice b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.trade-item-choice small { color: #a9a7a4; font-size: 12px; margin-top: 2px; }.trade-item-choice > i { opacity: 0; color: #f4d078; }.trade-item-choice:has(input:checked) { border-color: rgba(220, 181, 82, .7); background: rgba(185, 139, 43, .13); }.trade-item-choice:has(input:checked) > i { opacity: 1; }
.trade-empty { padding: 17px; border-radius: 14px; color: #b3b1ae; background: rgba(255,255,255,.025); }.trade-empty.wide { margin: 18px 0 0; }
.trade-builder-submit { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; align-items: end; padding: 18px 22px; }.trade-builder-submit label { grid-column: 1 / -1; color: #d0cecb; font-size: 13px; }.trade-builder-submit input { min-width: 0; padding: 12px 14px; border: 1px solid rgba(242,206,137,.22); border-radius: 12px; color: #f5f3f0; background: rgba(0,0,0,.2); }.trade-builder-submit button,
.trade-offer-actions button { border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; color: #1d1b18; background: linear-gradient(135deg, #e6c15e, #b88e38); }.trade-builder-submit button:disabled { opacity: .45; cursor: not-allowed; }
.trades-offers-section > header { display: flex; justify-content: space-between; gap: 18px; align-items: end; }.trades-offers-section > header p { margin: 0; color: #a9a7a4; }.trade-offers-list { display: grid; gap: 12px; margin-top: 19px; }
.trade-offer-card { padding: 17px; border: 1px solid rgba(242, 206, 137, .16); border-left: 3px solid #cba64f; border-radius: 16px; background: rgba(255,255,255,.025); }.trade-offer-card.incoming { border-left-color: #e1b461; }.trade-offer-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.trade-offer-heading small { margin-left: auto; color: #9e9c99; }.trade-status { padding: 4px 8px; border-radius: 999px; color: #f6d98f; background: rgba(182,137,45,.17); font-size: 11px; font-weight: 800; }.trade-status.accepted { color: #f9dfac; background: rgba(187,139,57,.2); }.trade-status.rejected,.trade-status.cancelled,.trade-status.invalidated,.trade-status.expired { color: #dad8d5; background: rgba(130,130,130,.16); }.trade-offer-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 13px; }.trade-offer-items p { margin: 0; padding: 10px; border-radius: 11px; color: #d0cecb; background: rgba(0,0,0,.16); font-size: 13px; }.trade-offer-items b { display: block; margin-bottom: 4px; color: #f0d59a; }.trade-offer-card blockquote { margin: 11px 0 0; padding: 8px 11px; border-left: 2px solid #b99648; color: #c8c6c3; font-size: 13px; }.trade-offer-actions { display: flex; gap: 9px; margin-top: 14px; }.trade-offer-actions button { padding: 9px 12px; }.trade-offer-actions .accept { color: #f9f7f4; background: linear-gradient(135deg, #bb8b39, #7f591d); }.trade-offer-actions button:not(.accept) { color: #edebe8; background: rgba(255,255,255,.1); }
@media (max-width: 760px) { .trades-page { width: min(100% - 22px, 1220px); margin-top: 16px; }.trades-hero { display: grid; padding: 23px; }.trades-hero-back { justify-self: start; }.trades-partner-card { align-items: flex-start; flex-wrap: wrap; }.trades-partner-card > a { width: 100%; }.trade-builder { grid-template-columns: 1fr; }.trade-builder-submit { grid-column: auto; grid-template-columns: 1fr; }.trade-builder-submit button { width: 100%; }.trades-offers-section > header { display: grid; }.trade-offer-items { grid-template-columns: 1fr; }.trade-offer-heading small { margin-left: 0; width: 100%; } }

/* Mercado de jugadores */
.market-page { width: min(1280px, calc(100% - 34px)); margin: 30px auto 70px; color: #f3f1ee; }
.market-hero,
.market-sell-section,
.market-listings-section { border: 1px solid rgba(243, 209, 143, .18); border-radius: 24px; background: linear-gradient(145deg, rgba(20, 18, 15, .97), rgba(9, 9, 9, .95)); box-shadow: 0 18px 46px rgba(0,0,0,.24); }
.market-hero { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 31px 35px; background: linear-gradient(105deg, rgba(34, 32, 29, .97), rgba(17, 15, 12, .94)); }.market-hero h1 { margin: 3px 0 8px; font-size: clamp(29px, 4vw, 45px); }.market-hero p { margin: 0; max-width: 700px; color: #c2c0bd; line-height: 1.55; }
.market-balance { min-width: 180px; display: grid; gap: 2px; text-align: right; }.market-balance span,.market-balance small { color: #b8b6b3; font-size: 12px; }.market-balance strong { color: #f3cf76; font-size: 27px; white-space: nowrap; }.market-balance strong i { margin-right: 7px; font-size: 20px; }
.market-alert { display: flex; gap: 9px; align-items: center; padding: 13px 16px; margin: 18px 0; border: 1px solid; border-radius: 14px; }.market-alert.success { color: #c8f4c8; border-color: rgba(92,210,117,.42); background: rgba(35,104,52,.27); }.market-alert.error { color: #ffd1c8; border-color: rgba(235,105,83,.44); background: rgba(116,37,25,.28); }
.market-sell-section,.market-listings-section { margin-top: 22px; padding: 25px; }.market-sell-section > header,.market-listings-section > header { display: flex; justify-content: space-between; gap: 18px; align-items: end; }.market-sell-section h2,.market-listings-section h2 { margin: 4px 0 0; }.market-sell-section > header p,.market-listings-section > header p { margin: 0; color: #a9a7a4; max-width: 350px; text-align: right; font-size: 13px; }.market-empty { padding: 18px; margin: 18px 0 0; border-radius: 15px; color: #b3b1ae; background: rgba(255,255,255,.025); }
.market-sell-grid,.market-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 13px; margin-top: 19px; }.market-sell-card,.market-listing-card { display: flex; flex-direction: column; padding: 17px; min-width: 0; border: 1px solid rgba(242,207,139,.16); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }.market-sell-card h3,.market-listing-card h3 { margin: 13px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }.market-sell-card > p,.market-listing-card > p { min-height: 34px; margin: 0; color: #b4b2af; font-size: 13px; line-height: 1.35; }
.market-item-type { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 5px 9px; border: 1px solid rgba(202,170,83,.32); border-radius: 999px; color: #ecd085; background: rgba(183,137,43,.11); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.market-sell-card label { display: grid; gap: 6px; margin-top: 17px; color: #ceccc9; font-size: 12px; font-weight: 700; }.market-sell-card input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid rgba(242,207,139,.22); border-radius: 11px; color: #f6f4f1; background: rgba(0,0,0,.2); font: inherit; }.market-sell-card button,.market-listing-card button { width: 100%; margin-top: 11px; border: 0; border-radius: 12px; padding: 11px; color: #1d1b18; background: linear-gradient(135deg, #e6c15e, #b88e38); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }.market-sell-card button i,.market-listing-card button i { margin-right: 6px; }
.market-listing-card { border-top: 3px solid rgba(222,182,83,.7); }.market-listing-card.owner { border-top-color: rgba(222,176,91,.8); }.market-listing-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.market-price { color: #f4d374; font-weight: 900; font-size: 14px; white-space: nowrap; }.market-price i { margin-right: 4px; }.market-seller { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 15px; color: #b4b2af; font-size: 12px; }.market-seller img { width: 28px; height: 28px; border: 1px solid rgba(205,174,87,.54); border-radius: 50%; object-fit: cover; }.market-seller strong { color: #eeece9; }.market-listing-card .market-buy { color: #f9f7f4; background: linear-gradient(135deg, #bc8c39, #825a1e); }.market-listing-card .market-cancel { color: #eeece9; background: rgba(255,255,255,.11); }
@media (max-width: 720px) { .market-page { width: min(100% - 22px, 1280px); margin-top: 16px; }.market-hero { display: grid; padding: 24px; }.market-balance { text-align: left; }.market-sell-section,.market-listings-section { padding: 19px; }.market-sell-section > header,.market-listings-section > header { display: grid; }.market-sell-section > header p,.market-listings-section > header p { text-align: left; } }

/* Mercado: estructura de intercambio propia de TheDinoLeague. */
.market-command-header { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:32px 36px; border:1px solid rgba(212,178,89,.28); border-radius:22px; overflow:hidden; position:relative; background:radial-gradient(circle at 88% 12%,rgba(205,159,54,.18),transparent 27%),linear-gradient(115deg,rgba(28,26,23,.98),rgba(11,11,11,.98)); box-shadow:0 18px 48px rgba(0,0,0,.22); }
.market-command-header:after { content:""; position:absolute; inset:auto -70px -95px auto; width:280px; height:280px; border:1px solid rgba(214,174,67,.16); border-radius:50%; box-shadow:0 0 0 25px rgba(214,174,67,.035),0 0 0 50px rgba(214,174,67,.025); pointer-events:none; }.market-command-header h1 { margin:3px 0 8px; font-size:clamp(30px,4vw,46px); letter-spacing:-.035em; }.market-command-header p { max-width:690px; margin:0; line-height:1.55; color:#c2c0bd; }.market-command-header > div { position:relative; z-index:1; }
.market-nav { display:flex; gap:8px; margin:19px 0; padding:7px; border:1px solid rgba(213,211,208,.13); border-radius:16px; background:rgba(9,9,9,.64); }.market-nav button { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:1; min-height:43px; padding:9px 16px; border:1px solid transparent; border-radius:11px; color:#b7b5b2; background:transparent; font:700 13px inherit; cursor:pointer; transition:.2s ease; }.market-nav button:hover { color:#f4f2ef; background:rgba(255,255,255,.04); }.market-nav button.active { color:#1f1d1a; border-color:rgba(245,211,119,.58); background:linear-gradient(135deg,#e6c36c,#bd9138); box-shadow:0 7px 17px rgba(0,0,0,.2); }.market-nav button b { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; color:#f8e9bb; background:rgba(255,255,255,.13); font-size:10px; }.market-nav button.active b { color:#473710; background:rgba(255,255,255,.36); }
.market-panel { padding:25px; border:1px solid rgba(211,209,206,.14); border-radius:20px; background:linear-gradient(145deg,rgba(29,27,24,.88),rgba(12,12,12,.94)); }.market-panel[hidden] { display:none !important; }.market-panel-header { display:flex; align-items:end; justify-content:space-between; gap:22px; margin-bottom:20px; }.market-panel-header h2 { margin:4px 0 0; font-size:25px; }.market-panel-header p { max-width:390px; margin:0; color:#aba9a6; text-align:right; font-size:13px; line-height:1.45; }
.market-exchange-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:11px; padding:13px; border:1px solid rgba(212,210,207,.12); border-radius:15px; background:rgba(0,0,0,.17); }.market-exchange-toolbar label { display:grid; gap:5px; min-width:170px; color:#a4a29f; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }.market-exchange-toolbar select { min-height:38px; padding:0 29px 0 10px; border:1px solid rgba(211,209,206,.21); border-radius:9px; color:#efedea; background:#1b1916; font:600 12px inherit; outline:none; }.market-result-count { margin-left:auto; padding:10px 4px; color:#9f9d9a; font-size:12px; }.market-result-count strong { color:#ebca75; font-size:17px; }
.market-lot-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(255px,1fr)); gap:15px; margin-top:19px; }.market-lot-card { overflow:hidden; border:1px solid rgba(210,208,205,.15); border-top:3px solid rgba(229,191,91,.78); border-radius:16px; background:linear-gradient(155deg,rgba(36,34,31,.9),rgba(16,14,11,.96)); box-shadow:0 12px 24px rgba(0,0,0,.16); transition:transform .2s ease,border-color .2s ease; }.market-lot-card:hover { transform:translateY(-3px); border-color:rgba(231,197,104,.53); }.market-lot-card.owner { border-top-color:#deaf5b; }.market-lot-media { height:137px; position:relative; overflow:hidden; display:grid; place-items:center; background:radial-gradient(circle at 50% 82%,rgba(186,140,45,.27),transparent 45%),linear-gradient(155deg,#2b2926,#171512); }.market-lot-media:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(10,10,10,.68)); pointer-events:none; }.market-lot-media img { width:100%; height:100%; object-fit:contain; position:relative; z-index:1; filter:drop-shadow(0 12px 10px rgba(0,0,0,.5)); }.market-lot-ribbon { position:absolute; z-index:2; top:10px; left:10px; padding:5px 8px; border:1px solid rgba(241,210,125,.42); border-radius:7px; color:#f5da91; background:rgba(11,11,11,.74); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }.market-lot-ribbon i { margin-right:5px; }.market-lot-content { display:flex; flex-direction:column; min-height:250px; padding:14px; }.market-lot-heading { display:flex; align-items:center; justify-content:space-between; gap:7px; }.market-active { color:#e6bb6a; font-size:10px; font-weight:800; }.market-active i { margin-right:4px; font-size:7px; }.market-lot-card h3 { margin:11px 0 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f5f3f0; font-size:18px; }.market-lot-description { min-height:34px; margin:0; color:#b7b5b2; font-size:12px; line-height:1.42; }.market-lot-card .market-seller { margin-top:14px; padding-top:0; }.market-seller span { display:grid; gap:1px; }.market-seller strong { max-width:166px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.market-lot-metrics { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; padding:10px 0; border-top:1px solid rgba(228,226,223,.1); border-bottom:1px solid rgba(228,226,223,.1); }.market-lot-metrics span { display:grid; gap:3px; }.market-lot-metrics small { color:#8d8b88; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }.market-lot-metrics strong { color:#f1cd72; font-size:14px; }.market-lot-metrics strong i { margin-right:4px; }.market-lot-metrics b { color:#dfddda; font-size:12px; }.market-lot-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:auto; padding-top:12px; }.market-lot-actions form { margin:0; }.market-lot-actions button { width:100%; margin:0; border-radius:9px; padding:10px 8px; font-size:11px; }.market-details { border:1px solid rgba(214,212,209,.22); color:#e5e3e0; background:rgba(255,255,255,.055); }.market-details:hover { background:rgba(255,255,255,.11); }.market-lot-actions .market-cancel { background:rgba(227,225,222,.1); }.market-lot-actions .market-buy { color:#fbf9f6; background:linear-gradient(135deg,#c1903c,#896021); }
.market-sell-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }.market-sell-card { position:relative; overflow:hidden; padding:0 15px 16px; border-radius:16px; background:linear-gradient(155deg,rgba(37,35,32,.92),rgba(16,14,11,.96)); }.market-sell-media { height:116px; margin:0 -15px 13px; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 90%,rgba(193,149,52,.24),transparent 49%),#1c1a17; }.market-sell-media img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 10px 9px rgba(0,0,0,.5)); }.market-sell-card h3 { margin-top:11px; }.market-sell-card button { border-radius:9px; }.market-sell-card label { margin-top:auto; }
.market-modal[hidden] { display:none; }.market-modal { position:fixed; z-index:10050; inset:0; display:grid; place-items:center; padding:20px; }.market-modal-backdrop { position:absolute; inset:0; background:rgba(4,4,4,.76); backdrop-filter:blur(4px); }.market-modal-card { width:min(590px,100%); position:relative; z-index:1; display:grid; grid-template-columns:205px 1fr; gap:23px; padding:22px; border:1px solid rgba(230,193,94,.38); border-radius:18px; color:#f1efec; background:linear-gradient(145deg,#282623,#14120f); box-shadow:0 25px 65px rgba(0,0,0,.5); }.market-modal-card > img { width:100%; height:190px; object-fit:contain; align-self:center; filter:drop-shadow(0 13px 12px rgba(0,0,0,.55)); }.market-modal-card h2 { margin:11px 0 7px; font-size:25px; }.market-modal-card p { margin:0; color:#bab8b5; line-height:1.5; }.market-modal-close { position:absolute; top:10px; right:10px; width:30px; height:30px; border:0; border-radius:50%; color:#e4e2df; background:rgba(255,255,255,.09); cursor:pointer; }.market-detail-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; padding-top:12px; border-top:1px solid rgba(230,228,225,.13); }.market-detail-meta span { display:grid; gap:4px; color:#9e9c99; font-size:11px; }.market-detail-meta strong { color:#f1cf79; font-size:14px; }
@media (max-width:720px) { .market-command-header { display:grid; padding:25px; }.market-nav { overflow:auto; }.market-nav button { flex:0 0 auto; white-space:nowrap; }.market-panel { padding:18px; }.market-panel-header { display:grid; align-items:start; }.market-panel-header p { text-align:left; }.market-exchange-toolbar label { flex:1 1 140px; min-width:0; }.market-result-count { width:100%; margin-left:0; }.market-lot-grid { grid-template-columns:1fr; }.market-modal-card { grid-template-columns:1fr; gap:9px; }.market-modal-card > img { height:150px; } }

.market-overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-top:17px; }.market-overview-stats article { min-width:0; padding:14px 16px; border:1px solid rgba(211,209,206,.14); border-radius:15px; background:linear-gradient(145deg,rgba(29,27,24,.9),rgba(12,12,12,.96)); }.market-overview-stats span { display:flex; align-items:center; gap:7px; color:#b8b6b3; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }.market-overview-stats span i { color:#dbb962; }.market-overview-stats strong { display:block; margin-top:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f2d176; font-size:22px; line-height:1; }.market-overview-stats small { display:block; margin-top:6px; color:#8f8d8a; font-size:10px; }.market-nav { margin-top:17px; }.market-panel { margin-top:0; }.market-overview-stats + .market-alert + .market-nav { margin-top:17px; }
@media (max-width:720px) { .market-overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.market-overview-stats article { padding:13px; }.market-overview-stats strong { font-size:19px; } }

/* Intercambios: inventario visual, parejo y facil de escanear. */
.trades-page { width:min(1220px,calc(100% - 34px)); margin:30px auto 72px; color:#f3f1ee; }
.trades-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px 36px; border:1px solid rgba(212,178,89,.27); border-radius:22px; background:radial-gradient(circle at 88% 15%,rgba(198,146,58,.18),transparent 28%),linear-gradient(120deg,rgba(33,31,28,.98),rgba(12,12,12,.98)); box-shadow:0 18px 45px rgba(0,0,0,.2); }
.trades-hero:after { content:""; position:absolute; right:-70px; bottom:-115px; width:290px; height:290px; border:1px solid rgba(223,185,83,.18); border-radius:50%; box-shadow:0 0 0 26px rgba(223,185,83,.035),0 0 0 52px rgba(223,185,83,.025); pointer-events:none; }
.trades-hero > div,.trades-hero-back { position:relative; z-index:1; }.trades-hero h1 { margin:3px 0 8px; font-size:clamp(30px,4vw,46px); letter-spacing:-.04em; }.trades-hero p:not(.hub-kicker) { max-width:720px; margin:0; color:#c2c0bd; line-height:1.55; }.trades-hero-back { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; padding:11px 15px; border:1px solid rgba(237,204,116,.4); border-radius:11px; color:#f4d582; background:rgba(255,255,255,.055); font-size:12px; font-weight:800; }
.trades-friend-picker,.trades-partner-card,.trade-builder-column,.trades-offers-section { border:1px solid rgba(211,209,206,.14); border-radius:19px; background:linear-gradient(145deg,rgba(29,27,24,.9),rgba(12,12,12,.95)); box-shadow:0 12px 30px rgba(0,0,0,.13); }.trades-friend-picker,.trades-offers-section { margin-top:19px; padding:24px; }.trades-friend-picker header h2,.trades-offers-section h2 { margin:4px 0 0; font-size:24px; }.trades-friend-picker > p { color:#b8b6b3; }.trades-friend-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(235px,1fr)); gap:10px; margin-top:18px; }.trades-friend-grid a { display:flex; align-items:center; gap:10px; min-width:0; padding:11px; border:1px solid rgba(210,208,205,.13); border-radius:13px; color:#f0eeeb; background:rgba(255,255,255,.035); transition:.2s ease; }.trades-friend-grid a:hover { transform:translateY(-2px); border-color:rgba(231,196,100,.5); background:rgba(198,146,58,.09); }.trades-friend-grid img { width:42px; height:42px; flex:0 0 auto; border:1px solid rgba(221,186,91,.48); border-radius:13px; object-fit:cover; }.trades-friend-grid span { display:grid; gap:3px; min-width:0; }.trades-friend-grid strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.trades-friend-grid small { color:#a09e9b; font-size:10px; }.trades-friend-grid a > i { margin-left:auto; color:#d7b65f; }
.trades-partner-card { display:flex; align-items:center; gap:14px; margin-top:19px; padding:16px 19px; }.trades-partner-card > img { width:57px; height:57px; border:2px solid rgba(226,190,87,.65); border-radius:17px; object-fit:cover; }.trades-partner-card > div { min-width:0; }.trades-partner-card span { color:#a6a4a1; font-size:10px; text-transform:uppercase; letter-spacing:.12em; }.trades-partner-card h2 { margin:3px 0; font-size:22px; }.trades-partner-card p { margin:0; color:#a9a7a4; font-size:12px; }.trades-partner-card > a { margin-left:auto; white-space:nowrap; padding:9px 11px; border-radius:10px; color:#c3c1be; background:rgba(255,255,255,.06); font-size:11px; }
.trade-builder { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-top:15px; }.trade-builder-column { min-width:0; padding:19px; }.trade-builder-column > header { padding-bottom:14px; border-bottom:1px solid rgba(227,225,222,.11); }.trade-builder-column > header > span { display:inline-flex; align-items:center; gap:7px; color:#e4c36f; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }.trade-builder-column > header h2 { margin:6px 0 4px; font-size:23px; }.trade-builder-column > header p { margin:0; color:#a3a19e; font-size:12px; }.trade-builder-column.requested > header > span { color:#edc375; }.trade-item-group { margin-top:16px; }.trade-item-group h3 { display:flex; align-items:center; gap:7px; margin:0 0 8px; color:#d1cfcc; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }.trade-item-group h3 > i { color:#d8b85f; }.trade-item-group h3 small { margin-left:auto; color:#8f8d8a; font-size:9px; font-weight:700; letter-spacing:.03em; text-transform:none; }.trade-item-choice { display:flex; align-items:center; gap:9px; min-height:66px; margin-top:7px; padding:8px 9px; border:1px solid rgba(211,209,206,.13); border-radius:12px; color:#f3f1ee; background:rgba(255,255,255,.035); cursor:pointer; transition:.18s ease; }.trade-item-choice:hover { border-color:rgba(225,190,87,.43); background:rgba(198,146,58,.08); }.trade-item-choice:has(input:checked) { border-color:rgba(221,188,91,.75); background:linear-gradient(90deg,rgba(198,146,58,.17),rgba(198,146,58,.05)); box-shadow:0 0 0 2px rgba(198,146,58,.08); }.trade-item-choice > input { position:absolute; opacity:0; pointer-events:none; }.trade-choice-art { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }.trade-choice-art > img { width:48px; height:48px; flex:0 0 auto; padding:4px; border:1px solid rgba(216,186,102,.21); border-radius:10px; object-fit:contain; background:radial-gradient(circle,rgba(198,146,58,.18),transparent 70%),#161411; filter:drop-shadow(0 5px 5px rgba(0,0,0,.35)); }.trade-choice-art > span { display:grid; gap:4px; min-width:0; }.trade-choice-art b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.trade-choice-art small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#a9a7a4; font-size:10px; }.trade-item-choice > i { display:grid; place-items:center; width:24px; height:24px; border-radius:8px; color:#201e1b; background:rgba(255,255,255,.09); opacity:.55; }.trade-item-choice:has(input:checked) > i { color:#1d1b18; background:#dabb60; opacity:1; }
.trade-builder-submit { grid-column:1/-1; display:grid; grid-template-columns:1fr 2fr auto; align-items:end; gap:10px; padding:15px 17px; border:1px solid rgba(211,209,206,.14); border-radius:15px; background:rgba(12,12,12,.84); }.trade-builder-submit label { color:#a9a7a4; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }.trade-builder-submit input { width:100%; min-height:41px; box-sizing:border-box; margin-top:5px; padding:0 12px; border:1px solid rgba(211,209,206,.18); border-radius:9px; color:#f3f1ee; background:rgba(255,255,255,.045); font:inherit; }.trade-builder-submit button { min-height:41px; border:0; border-radius:9px; padding:0 17px; color:#1d1b18; background:linear-gradient(135deg,#e2bf62,#b78c37); font-size:11px; font-weight:900; cursor:pointer; }.trade-builder-submit button:disabled { opacity:.45; cursor:not-allowed; }
.trades-offers-section > header { display:flex; align-items:end; justify-content:space-between; gap:18px; }.trades-offers-section > header p { margin:0; color:#a3a19e; font-size:12px; text-align:right; }.trade-offers-list { display:grid; gap:11px; margin-top:18px; }.trade-offer-card { padding:16px; border:1px solid rgba(211,209,206,.13); border-left:3px solid #cba64f; border-radius:14px; background:rgba(255,255,255,.035); }.trade-offer-card.incoming { border-left-color:#e1b461; }.trade-offer-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }.trade-offer-heading small { margin-left:auto; color:#8d8b88; }.trade-offer-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }.trade-offer-items p { min-width:0; margin:0; padding:10px; border-radius:10px; color:#c7c5c2; background:rgba(0,0,0,.18); font-size:12px; }.trade-offer-items b { display:block; margin-bottom:4px; color:#ecd18a; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }.trade-offer-card blockquote { margin:10px 0 0; padding:8px 11px; border-left:2px solid #b99648; color:#c2c0bd; font-size:12px; }.trade-offer-actions { display:flex; gap:8px; margin-top:12px; }.trade-offer-actions button { border:0; border-radius:8px; padding:9px 12px; color:#eeece9; background:rgba(255,255,255,.1); font-size:11px; cursor:pointer; }.trade-offer-actions .accept { color:#f9f7f4; background:linear-gradient(135deg,#bb8b39,#7f591d); }
@media (max-width:760px) { .trades-page { width:min(100% - 22px,1220px); margin-top:16px; }.trades-hero { display:grid; padding:24px; }.trades-hero-back { justify-self:start; }.trades-partner-card { align-items:flex-start; flex-wrap:wrap; }.trades-partner-card > a { width:100%; text-align:center; }.trade-builder { grid-template-columns:1fr; }.trade-builder-submit { grid-column:auto; grid-template-columns:1fr; }.trade-builder-submit button { width:100%; }.trades-offers-section > header { display:grid; }.trades-offers-section > header p { text-align:left; }.trade-offer-items { grid-template-columns:1fr; }.trade-offer-heading small { width:100%; margin-left:0; } }

/* Intercambios: tablero de actividad y busqueda de jugadores inspirado en la referencia. */
.trades-overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-top:17px; }.trades-overview-stats article { min-width:0; padding:15px 16px; border:1px solid rgba(211,209,206,.14); border-radius:15px; background:linear-gradient(145deg,rgba(29,27,24,.92),rgba(12,12,12,.96)); }.trades-overview-stats span { display:flex; align-items:center; gap:7px; color:#b8b6b3; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }.trades-overview-stats span i { color:#dbb962; }.trades-overview-stats strong { display:block; margin-top:8px; color:#f2d176; font-size:25px; line-height:1; }.trades-overview-stats small { display:block; margin-top:6px; color:#8f8d8a; font-size:10px; }.trade-friend-search { display:flex; align-items:center; gap:9px; max-width:520px; margin-top:17px; padding:0 12px; border:1px solid rgba(211,209,206,.16); border-radius:11px; color:#d8b764; background:rgba(0,0,0,.17); }.trade-friend-search input { width:100%; min-height:40px; border:0; outline:0; color:#f3f1ee; background:transparent; font:inherit; font-size:12px; }.trade-friend-search:focus-within { border-color:rgba(224,190,96,.68); box-shadow:0 0 0 3px rgba(198,146,58,.1); }.trades-friend-grid a[hidden] { display:none; }
@media (max-width:760px) { .trades-overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.trades-overview-stats article { padding:13px; } }
/* Mercado: previsualizacion y cantidades de venta al estilo inventario. */
.market-sell-media { height: 172px; }
.market-sell-media img { width: 100%; height: auto; max-width: none; max-height: none; align-self: center; object-fit: contain; filter: drop-shadow(0 13px 12px rgba(0,0,0,.58)); }
.market-sell-media.is-skin img { width: 130%; transform: translateY(-34%); }
.market-sell-media.is-dino img { width: 100%; }
.market-sell-card h3 { min-height: 24px; color: #f7f5f2; }
.market-sell-card > p { min-height: 36px; }
.market-sell-quantity { display: grid; grid-template-columns: 1fr 84px; align-items: center; gap: 8px; margin-top: 15px !important; padding: 10px; border: 1px solid rgba(220, 194, 109, .18); border-radius: 12px; background: rgba(0,0,0,.15); }
.market-sell-quantity > span { color: #e7d38d; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.market-sell-quantity input { grid-column: 2; grid-row: 1 / span 2; min-height: 39px; padding: 0 8px; text-align: center; color: #fff6d4; border-color: rgba(226, 194, 91, .45); background: rgba(18, 16, 13, .85); }
.market-sell-quantity small { grid-column: 1; color: #93918e; font-size: 10px; }
.market-lot-media.is-skin img { width: 130%; height: auto; max-width: none; max-height: none; transform: translateY(-34%); }
.market-lot-media.is-dino img { width: 100%; height: auto; max-width: none; max-height: none; }
@media (max-width: 720px) {
    .market-sell-media { height: 160px; }
}

/* Efectos cosméticos: acabado natural para polvo, brasas, tormenta y niebla. */
.profile-effect-dust .profile-style-particles::before {
    inset: -8%;
    background:
        radial-gradient(circle at 7% 76%, rgba(230,211,169,.52) 0 1px, transparent 2px),
        radial-gradient(circle at 16% 42%, rgba(180,165,139,.38) 0 1px, transparent 2px),
        radial-gradient(circle at 27% 88%, rgba(242,224,183,.46) 0 1px, transparent 2px),
        radial-gradient(circle at 39% 61%, rgba(170,155,128,.32) 0 2px, transparent 3px),
        radial-gradient(circle at 53% 79%, rgba(232,211,166,.43) 0 1px, transparent 2px),
        radial-gradient(circle at 66% 48%, rgba(192,173,137,.34) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 86%, rgba(239,218,175,.42) 0 2px, transparent 3px),
        radial-gradient(ellipse at 18% 104%, rgba(128,111,83,.25), transparent 35%),
        radial-gradient(ellipse at 82% 108%, rgba(174,145,91,.18), transparent 34%);
    background-repeat: no-repeat;
    filter: blur(.2px) drop-shadow(0 0 4px rgba(213,184,127,.28));
    opacity: .7;
    animation: fossilDustLift 13s ease-in-out infinite alternate;
}
.profile-effect-dust .profile-style-particles::after {
    inset: 8% -12% -10%;
    background:
        radial-gradient(ellipse at 18% 70%, rgba(190,169,130,.13), transparent 32%),
        radial-gradient(ellipse at 72% 58%, rgba(218,190,137,.11), transparent 30%),
        repeating-radial-gradient(ellipse at 45% 110%, transparent 0 18px, rgba(201,177,127,.055) 21px 24px, transparent 29px 43px);
    filter: blur(5px);
    opacity: .72;
    animation: fossilDustHaze 10s ease-in-out infinite alternate;
}
.profile-effect-storm .profile-style-particles::before {
    inset: -12%;
    background:
        radial-gradient(ellipse at 70% 18%, rgba(88,126,158,.34), transparent 25%),
        radial-gradient(ellipse at 37% 31%, rgba(42,75,101,.3), transparent 32%),
        linear-gradient(180deg, rgba(15,34,52,.28), transparent 48%, rgba(7,17,28,.34));
    filter: blur(13px);
    opacity: .82;
    animation: stormCloudRoll 12s ease-in-out infinite alternate;
}
.profile-effect-storm .profile-style-particles::after {
    inset: 7% auto auto 64%;
    width: 24%;
    height: 72%;
    border: 0;
    border-radius: 0;
    clip-path: polygon(62% 0, 44% 39%, 58% 39%, 28% 100%, 43% 53%, 30% 53%);
    background: linear-gradient(160deg, rgba(239,252,255,.98), rgba(102,201,255,.7) 48%, transparent 70%);
    filter: drop-shadow(0 0 10px rgba(87,206,255,.9));
    opacity: 0;
    animation: naturalLightning 8.5s steps(1, end) infinite;
}
.profile-effect-toxic .profile-style-particles::before {
    inset: -12%;
    background:
        radial-gradient(ellipse at 13% 91%, rgba(94,133,64,.3), transparent 29%),
        radial-gradient(ellipse at 48% 105%, rgba(143,171,75,.27), transparent 33%),
        radial-gradient(ellipse at 86% 88%, rgba(57,112,72,.3), transparent 26%),
        linear-gradient(180deg, transparent 42%, rgba(86,127,65,.12) 84%, rgba(39,67,44,.3));
    filter: blur(20px) saturate(.82);
    opacity: .78;
    mix-blend-mode: screen;
    animation: toxicFogRoll 11s ease-in-out infinite alternate;
}
.profile-effect-toxic .profile-style-particles::after {
    inset: 5% -10% -10%;
    background:
        radial-gradient(circle at 22% 69%, rgba(191,225,125,.3) 0 1px, transparent 3px),
        radial-gradient(circle at 68% 57%, rgba(157,210,107,.24) 0 1px, transparent 3px),
        repeating-radial-gradient(ellipse at 50% 116%, transparent 0 17px, rgba(164,203,103,.065) 20px 25px, transparent 31px 46px);
    filter: blur(2px);
    opacity: .5;
    animation: toxicVaporDrift 14s linear infinite alternate;
}
.profile-effect-embers .profile-style-particles::before {
    inset: -8%;
    background:
        radial-gradient(circle at 9% 91%, #ffbd4c 0 1px, transparent 3px),
        radial-gradient(circle at 18% 72%, #ff6e28 0 2px, transparent 4px),
        radial-gradient(circle at 31% 97%, #ffe59a 0 1px, transparent 3px),
        radial-gradient(circle at 44% 64%, #ff812d 0 1px, transparent 3px),
        radial-gradient(circle at 57% 88%, #ffc95b 0 2px, transparent 4px),
        radial-gradient(circle at 71% 70%, #ff6a22 0 1px, transparent 3px),
        radial-gradient(circle at 84% 94%, #ffe08a 0 1px, transparent 3px),
        radial-gradient(ellipse at 50% 112%, rgba(255,93,20,.3), transparent 53%);
    filter: drop-shadow(0 0 6px rgba(255,117,31,.65));
    opacity: .82;
    animation: livingEmberRise 7s linear infinite;
}
.profile-effect-embers .profile-style-particles::after {
    inset: 18% -10% -18%;
    background:
        radial-gradient(ellipse at 50% 108%, rgba(255,83,18,.4), transparent 50%),
        linear-gradient(180deg, transparent 50%, rgba(44,17,8,.18));
    filter: blur(7px);
    opacity: .75;
    animation: emberHearthPulse 3.8s ease-in-out infinite alternate;
}
.social-effect-dust .social-avatar-motion {
    inset: -12%;
    background:
        radial-gradient(circle at 18% 76%, rgba(232,211,169,.62) 0 1px, transparent 3px),
        radial-gradient(circle at 51% 39%, rgba(189,165,121,.45) 0 1px, transparent 3px),
        radial-gradient(circle at 82% 68%, rgba(237,217,174,.5) 0 1px, transparent 3px),
        radial-gradient(ellipse at 50% 105%, rgba(172,143,91,.28), transparent 60%);
    filter: blur(.3px) drop-shadow(0 0 4px rgba(214,180,116,.34));
    opacity: .75;
    animation: avatarFossilDust 8s ease-in-out infinite alternate;
}
.social-effect-storm .social-avatar-motion {
    inset: 11% auto auto 57%;
    width: 31%;
    height: 72%;
    border: 0;
    border-radius: 0;
    clip-path: polygon(62% 0, 43% 40%, 57% 40%, 27% 100%, 42% 54%, 29% 54%);
    background: linear-gradient(160deg, rgba(239,252,255,.95), rgba(86,191,255,.65) 48%, transparent 72%);
    box-shadow: none;
    filter: drop-shadow(0 0 6px rgba(74,193,255,.9));
    opacity: 0;
    animation: avatarLightning 7s steps(1, end) infinite;
}
.social-effect-toxic .social-avatar-motion {
    inset: -18%;
    background:
        radial-gradient(ellipse at 16% 86%, rgba(111,161,75,.4), transparent 40%),
        radial-gradient(ellipse at 82% 88%, rgba(69,133,82,.36), transparent 38%),
        radial-gradient(ellipse at 50% 110%, rgba(170,200,91,.3), transparent 58%);
    filter: blur(6px) saturate(.8);
    opacity: .7;
    animation: avatarToxicFog 8s ease-in-out infinite alternate;
}
.social-effect-embers .social-avatar-motion {
    inset: -15%;
    background:
        radial-gradient(circle at 19% 84%, #ffbd4c 0 1px, transparent 3px),
        radial-gradient(circle at 44% 62%, #ff6b24 0 1px, transparent 3px),
        radial-gradient(circle at 71% 82%, #ffe39a 0 1px, transparent 3px),
        radial-gradient(ellipse at 50% 110%, rgba(255,91,18,.38), transparent 56%);
    filter: drop-shadow(0 0 5px rgba(255,105,27,.7));
    opacity: .8;
    animation: avatarEmberRise 5.8s linear infinite;
}
@keyframes fossilDustLift { from { transform: translate3d(-2%, 8%, 0); } to { transform: translate3d(3%, -10%, 0); } }
@keyframes fossilDustHaze { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(3%, -3%, 0) scale(1.08); } }
@keyframes stormCloudRoll { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(4%, -2%, 0) scale(1.08); } }
@keyframes naturalLightning { 0%, 70%, 100% { opacity: 0; } 73%, 76% { opacity: 1; } 78% { opacity: .15; } 80% { opacity: .86; } 82% { opacity: 0; } }
@keyframes toxicFogRoll { from { transform: translate3d(-4%, 3%, 0) scale(.98); } to { transform: translate3d(5%, -4%, 0) scale(1.08); } }
@keyframes toxicVaporDrift { from { transform: translate3d(-2%, 3%, 0); } to { transform: translate3d(3%, -4%, 0); } }
@keyframes livingEmberRise { from { transform: translate3d(-1%, 13%, 0) scale(1); } to { transform: translate3d(3%, -18%, 0) scale(1.06); } }
@keyframes emberHearthPulse { from { transform: scale(.96); opacity: .45; } to { transform: scale(1.06); opacity: .82; } }
@keyframes avatarFossilDust { from { transform: translateY(5px); } to { transform: translateY(-6px); } }
@keyframes avatarLightning { 0%, 72%, 100% { opacity: 0; } 75%, 78% { opacity: 1; } 80% { opacity: 0; } }
@keyframes avatarToxicFog { from { transform: scale(.94); } to { transform: scale(1.1); } }
@keyframes avatarEmberRise { from { transform: translateY(7px); opacity: .3; } to { transform: translateY(-9px); opacity: .88; } }
@media (prefers-reduced-motion: reduce) {
    .profile-effect-dust .profile-style-particles::before,
    .profile-effect-dust .profile-style-particles::after,
    .profile-effect-storm .profile-style-particles::before,
    .profile-effect-storm .profile-style-particles::after,
    .profile-effect-toxic .profile-style-particles::before,
    .profile-effect-toxic .profile-style-particles::after,
    .profile-effect-embers .profile-style-particles::before,
    .profile-effect-embers .profile-style-particles::after,
    .social-avatar-motion { animation: none !important; }
}

/* Chat global: cada mensaje conserva el fondo, marco y efecto del autor. */
.global-chat-panel .social-chat-message {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background-image:
        linear-gradient(90deg, rgba(11, 11, 11, .96), rgba(11, 11, 11, .78)),
        var(--social-bg);
    background-position: center;
    background-size: cover;
}
.global-chat-panel .social-chat-message > .social-chat-message-avatar,
.global-chat-panel .social-chat-message > .social-chat-message-body {
    position: relative;
    z-index: 1;
}
.global-chat-panel .social-chat-message-avatar {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(15, 13, 10, .72);
}
.global-chat-panel .social-chat-message-avatar::after {
    opacity: .72;
}
.global-chat-panel .social-chat-message:hover {
    background-image:
        linear-gradient(90deg, rgba(11, 11, 11, .91), rgba(11, 11, 11, .67)),
        var(--social-bg);
}

/* Intercambios: las listas largas se desplazan dentro de cada panel. */
.trade-builder {
    align-items: start;
}
.trade-builder-column {
    max-height: 650px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(218, 184, 91, .55) rgba(0, 0, 0, .22);
    scrollbar-width: thin;
}
.trade-builder-column::-webkit-scrollbar {
    width: 7px;
}
.trade-builder-column::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
}
.trade-builder-column::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(218, 184, 91, .55);
}
.trade-builder-column > header {
    position: sticky;
    top: -19px;
    z-index: 3;
    margin: -19px -19px 0;
    padding: 19px 19px 14px;
    background: linear-gradient(180deg, rgba(29, 27, 24, .99), rgba(29, 27, 24, .94));
    backdrop-filter: blur(9px);
}
.trade-item-group {
    margin-top: 13px;
}
.trade-item-choice {
    min-height: 54px;
    margin-top: 5px;
    padding: 6px 8px;
}
.trade-choice-art {
    gap: 8px;
}
.trade-choice-art > img {
    width: 38px;
    height: 38px;
    padding: 3px;
}
.trade-choice-art > span {
    gap: 2px;
}
.trade-choice-art b {
    font-size: 12px;
}
.trade-choice-art small {
    font-size: 9px;
}
.trade-item-choice > i {
    width: 21px;
    height: 21px;
}

@media (max-width: 760px) {
    .trade-builder-column {
        max-height: 480px;
    }
    .trade-builder-column > header {
        top: -19px;
    }
}

/* Chat global: el hover conserva siempre la imagen de fondo del autor. */
.global-chat-panel .social-chat-message {
    background:
        linear-gradient(90deg, rgba(11, 11, 11, .96), rgba(11, 11, 11, .78)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
}
.global-chat-panel .social-chat-message:hover,
.global-chat-panel .social-chat-message:focus-within,
.global-chat-panel .social-chat-message.reaction-open {
    background:
        linear-gradient(90deg, rgba(11, 11, 11, .91), rgba(11, 11, 11, .67)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
}

/* Los dinosaurios usan una miniatura grande del mismo modelo 3D de la tienda. */
.trade-item-choice:has(.trade-choice-art.is-dino) {
    min-height: 76px;
}
.trade-choice-art.is-dino {
    gap: 11px;
}
.trade-choice-art.is-dino > img {
    width: 62px;
    height: 62px;
    padding: 4px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 75%, rgba(198,146,58,.22), transparent 63%), #161411;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,.46));
}
.trade-choice-art.is-dino b {
    font-size: 13px;
}

/* Identidad visual compartida: tienda, intercambios y mercado. */
.store-page-wrap,
.trades-page,
.market-page {
    --tdl-panel: rgba(22, 17, 10, .96);
    --tdl-panel-deep: rgba(9, 8, 6, .98);
    --tdl-border: rgba(198, 146, 58, .24);
    --tdl-border-soft: rgba(198, 146, 58, .14);
    --tdl-gold: #e1b65e;
    --tdl-gold-bright: #f0ca7d;
    --tdl-text: #f3eee0;
    --tdl-muted: #a89d88;
}

/* Skins */
.store-page-wrap .store-section-link:hover,
.store-page-wrap .store-section-link.active-tab {
    color: #160f05 !important;
    border-color: rgba(240, 202, 125, .72) !important;
    background: linear-gradient(135deg, #e1b65e, #b88b35) !important;
}
.store-page-wrap #skin-preview-active-dino {
    border-color: rgba(198, 146, 58, .32) !important;
    color: var(--tdl-gold-bright) !important;
    background: rgba(198, 146, 58, .09) !important;
}
.store-page-wrap .skin-store-filters {
    border-color: rgba(198, 146, 58, .28) !important;
    background:
        radial-gradient(circle at 94% 4%, rgba(198, 146, 58, .15), transparent 25%),
        linear-gradient(145deg, rgba(26, 21, 13, .97), rgba(9, 8, 6, .98)) !important;
}
.store-page-wrap .skin-store-filter-heading b {
    border-color: rgba(198, 146, 58, .36) !important;
    color: var(--tdl-gold-bright) !important;
    background: rgba(198, 146, 58, .10) !important;
}
.store-page-wrap .skin-store-filter-controls select,
.store-page-wrap #skin-filter-reset {
    border-color: rgba(198, 146, 58, .22) !important;
    color: var(--tdl-text) !important;
    background: rgba(19, 14, 8, .90) !important;
}
.store-page-wrap #skin-products-grid > [data-store-skin-card] {
    border-color: rgba(198, 146, 58, .18) !important;
    background: linear-gradient(145deg, rgba(25, 20, 13, .96), rgba(9, 8, 6, .98)) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .30) !important;
}
.store-page-wrap #skin-products-grid .store-skin-preview-stage {
    background:
        radial-gradient(circle at 50% 85%, rgba(198, 146, 58, .18), transparent 53%),
        linear-gradient(150deg, #241a0e, #0c0906) !important;
}
.store-page-wrap #skin-products-grid [data-store-skin-card] > div:last-child {
    background: transparent !important;
}
.store-page-wrap #skin-products-grid .text-neonGreen,
.store-page-wrap #store-skin-detail-modal .text-neonGreen {
    color: var(--tdl-gold) !important;
}
.store-page-wrap .store-skin-modal-panel,
.store-page-wrap #store-skin-detail-modal > div {
    border-color: rgba(198, 146, 58, .30) !important;
    background: linear-gradient(145deg, rgba(25, 20, 13, .98), rgba(9, 8, 6, .99)) !important;
}

/* Intercambios */
.trades-page {
    color: var(--tdl-text);
}
.trades-page .trades-hero,
.trades-page .trades-friend-picker,
.trades-page .trades-partner-card,
.trades-page .trade-builder-column,
.trades-page .trades-offers-section,
.trades-page .trade-builder-submit {
    border-color: var(--tdl-border) !important;
    background: linear-gradient(145deg, var(--tdl-panel), var(--tdl-panel-deep)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
.trades-page .trades-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(198, 146, 58, .15), transparent 28%),
        linear-gradient(115deg, rgba(28, 22, 13, .98), rgba(9, 8, 6, .98)) !important;
}
.trades-page .trade-builder-column.offered,
.trades-page .trade-builder-column.requested {
    border-top-color: #c6923a !important;
}
.trades-page .trade-builder-column.requested > header > span,
.trades-page .trade-builder-column.offered > header > span {
    color: var(--tdl-gold-bright) !important;
}
.trades-page .trades-friend-grid a,
.trades-page .trade-item-choice,
.trades-page .trade-offer-card,
.trades-page .trade-empty {
    border-color: var(--tdl-border-soft) !important;
    background: rgba(255, 255, 255, .028) !important;
}
.trades-page .trades-friend-grid a:hover,
.trades-page .trade-item-choice:hover {
    border-color: rgba(240, 202, 125, .50) !important;
    background: rgba(198, 146, 58, .09) !important;
}
.trades-page .trade-item-choice:has(input:checked) {
    border-color: rgba(240, 202, 125, .48) !important;
    background: linear-gradient(90deg, rgba(198, 146, 58, .18), rgba(198, 146, 58, .05)) !important;
}
.trades-page .trade-choice-art.is-dino > img {
    background: radial-gradient(circle at 50% 75%, rgba(198, 146, 58, .22), transparent 63%), #171109 !important;
}
.trades-page .trade-offer-card.incoming {
    border-left-color: #d7a64c !important;
}
.trades-page .trade-offer-actions .accept {
    color: #160f05 !important;
    background: linear-gradient(135deg, #d7a64c, #9a6c25) !important;
}
.trades-page .trade-offer-actions button:not(.accept) {
    color: var(--tdl-text) !important;
    background: rgba(255, 255, 255, .08) !important;
}
.trades-page .trade-status.accepted {
    color: var(--tdl-gold-bright) !important;
    background: rgba(198, 146, 58, .13) !important;
}

/* Mercado */
.market-page {
    color: var(--tdl-text);
}
.market-page .market-command-header,
.market-page .market-hero,
.market-page .market-sell-section,
.market-page .market-listings-section,
.market-page .market-panel,
.market-page .market-sell-card,
.market-page .market-lot-card,
.market-page .market-listing-card,
.market-page .market-modal-card {
    border-color: var(--tdl-border) !important;
    background: linear-gradient(145deg, var(--tdl-panel), var(--tdl-panel-deep)) !important;
}
.market-page .market-command-header,
.market-page .market-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(198, 146, 58, .15), transparent 27%),
        linear-gradient(115deg, rgba(28, 22, 13, .98), rgba(9, 8, 6, .98)) !important;
}
.market-page .market-nav {
    border-color: var(--tdl-border-soft) !important;
    background: rgba(10, 8, 5, .82) !important;
}
.market-page .market-nav button {
    color: #b9ad96 !important;
}
.market-page .market-nav button:hover {
    color: var(--tdl-text) !important;
    background: rgba(198, 146, 58, .08) !important;
}
.market-page .market-nav button.active {
    color: #160f05 !important;
    border-color: rgba(240, 202, 125, .60) !important;
    background: linear-gradient(135deg, #e1b65e, #b88b35) !important;
}
.market-page .market-sell-card,
.market-page .market-lot-card,
.market-page .market-listing-card {
    background: linear-gradient(155deg, rgba(29, 23, 14, .96), rgba(10, 8, 6, .98)) !important;
}
.market-page .market-sell-card input,
.market-page .market-exchange-toolbar,
.market-page .market-exchange-toolbar select,
.market-page .market-details {
    border-color: var(--tdl-border-soft) !important;
    color: var(--tdl-text) !important;
    background: rgba(19, 14, 8, .85) !important;
}
.market-page .market-lot-media,
.market-page .market-sell-media {
    background:
        radial-gradient(circle at 50% 90%, rgba(198, 146, 58, .20), transparent 49%),
        linear-gradient(155deg, #251b0e, #0e0906) !important;
}
.market-page .market-listing-card.owner {
    border-top-color: #d7a64c !important;
}
.market-page .market-listing-card .market-buy,
.market-page .market-lot-actions .market-buy,
.market-page .market-sell-card button,
.market-page .market-listing-card button,
.market-page .market-lot-card button {
    color: #160f05 !important;
    background: linear-gradient(135deg, #e1b65e, #b88b35) !important;
}
.market-page .market-lot-card button.market-cancel,
.market-page .market-listing-card .market-cancel {
    color: var(--tdl-text) !important;
    background: rgba(255, 255, 255, .08) !important;
}
.market-page .market-active {
    color: var(--tdl-gold) !important;
}
.market-page .market-seller {
    color: #b9ad96 !important;
}
.market-page .market-sell-section > header p,
.market-page .market-listings-section > header p,
.market-page .market-panel-header > p {
    color: var(--tdl-muted) !important;
}

/* Los indicadores superiores también usan la misma superficie que el resto. */
.trades-page .trades-overview-stats article,
.market-page .market-overview-stats article {
    border-color: var(--tdl-border-soft) !important;
    background: linear-gradient(145deg, rgba(25, 20, 13, .94), rgba(10, 8, 6, .98)) !important;
}
.trades-page .trade-builder-column > header {
    background: linear-gradient(180deg, rgba(25, 20, 13, .99), rgba(25, 20, 13, .94)) !important;
}

/* Solicitudes del panel derecho: el marco social no puede agrandar el avatar. */
.friend-request-row {
    min-height: 70px;
    padding: 9px !important;
}
.friend-request-row > .friend-request-avatar {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex: 0 0 50px;
    border-radius: 50% !important;
    overflow: visible !important;
}
.friend-request-row > .friend-request-avatar > img {
    display: block;
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50% !important;
    object-fit: cover;
}
.friend-request-row > .friend-request-avatar > .social-avatar-motion {
    position: absolute;
    inset: -7px;
    width: auto;
    height: auto;
    border-radius: 50%;
}
.friend-request-row > div:nth-child(2) {
    align-self: center;
}

/* Chat global compacto: marcos circulares ajustados al avatar. */
.global-chat-panel .social-chat-message {
    min-height: 0 !important;
    gap: 9px !important;
    padding: 8px 8px !important;
    border-radius: 11px !important;
}
.global-chat-panel .social-chat-message.mine {
    padding-left: 7px !important;
}
.global-chat-panel .social-chat-message > .social-chat-message-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    margin: 2px 1px 0 2px;
    border-radius: 50% !important;
    overflow: visible !important;
}
.global-chat-panel .social-chat-message-avatar > img {
    display: block;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
}
.global-chat-panel .social-chat-message-avatar::before {
    inset: -3px !important;
    padding: 2px !important;
    border-radius: 50% !important;
}
.global-chat-panel .social-chat-message-avatar::after {
    inset: -5px !important;
    border-radius: 50% !important;
}
.global-chat-panel .social-chat-message-avatar > .social-avatar-motion {
    inset: -5px !important;
    border-radius: 50% !important;
}
.global-chat-panel .avatar-battle-level {
    top: -6px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 7px;
    line-height: 16px;
}
.global-chat-panel .social-chat-message-body > header {
    min-height: 16px;
    gap: 5px;
}
.global-chat-panel .social-chat-message-body > header strong {
    font-size: 12px;
}
.global-chat-panel .social-chat-message-text {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}
.global-chat-panel .social-chat-message-actions {
    margin-top: 2px;
    line-height: 1;
}
.global-chat-panel .social-chat-message-actions button {
    min-height: 18px;
    padding: 0 3px;
    font-size: 7px;
}
.global-chat-panel .social-chat-message-actions button i {
    margin-right: 3px;
}
.global-chat-panel .social-chat-quote {
    margin-top: 4px;
    padding: 4px 7px;
}

/* Confirmación de borrado dentro del panel derecho de amigos. */
.friends-remove-confirm[hidden] {
    display: none !important;
}
.friends-remove-confirm {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3, 4, 3, .78);
    backdrop-filter: blur(8px);
}
.friends-remove-confirm > section {
    width: 100%;
    padding: 24px 20px 20px;
    border: 1px solid rgba(198, 146, 58, .34);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(198, 146, 58, .14), transparent 34%),
        linear-gradient(155deg, rgba(25, 20, 13, .99), rgba(8, 7, 5, .99));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
    text-align: center;
}
.friends-remove-confirm-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    place-items: center;
    border: 1px solid rgba(248, 113, 113, .36);
    border-radius: 17px;
    color: #ffaaa0;
    background: rgba(127, 29, 29, .20);
    font-size: 20px;
}
.friends-remove-confirm p {
    margin: 0 0 5px;
    color: #c6923a;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.friends-remove-confirm h3 {
    margin: 0;
    color: #f5efe3;
    font: 700 25px/1.1 Oswald, sans-serif;
    text-transform: uppercase;
}
.friends-remove-confirm section > div:not(.friends-remove-confirm-actions) {
    margin-top: 12px;
    color: #b9ad96;
    font-size: 12px;
    line-height: 1.5;
}
.friends-remove-confirm section > div strong {
    color: #f0ca7d;
}
.friends-remove-confirm small {
    display: block;
    margin-top: 7px;
    color: #756d60;
    font-size: 9px;
    line-height: 1.45;
}
.friends-remove-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
}
.friends-remove-confirm-actions button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    color: #d8d0c1;
    background: rgba(255, 255, 255, .055);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.friends-remove-confirm-actions button.danger {
    border-color: rgba(248, 113, 113, .34);
    color: #ffd0cb;
    background: linear-gradient(135deg, rgba(153, 46, 46, .82), rgba(92, 25, 25, .92));
}
.friends-remove-confirm-actions button i {
    margin-right: 6px;
}
.friends-remove-confirm-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

/* Polvo fósil: partículas visibles sin ocultar el fondo ni el avatar. */
.profile-effect-dust .profile-style-particles::before {
    inset: -10% !important;
    background:
        radial-gradient(circle at 5% 82%, rgba(255,235,187,.92) 0 2px, transparent 4px),
        radial-gradient(circle at 12% 48%, rgba(213,186,135,.76) 0 1px, transparent 3px),
        radial-gradient(circle at 21% 91%, rgba(244,216,162,.88) 0 2px, transparent 4px),
        radial-gradient(circle at 29% 66%, rgba(188,157,109,.72) 0 2px, transparent 4px),
        radial-gradient(circle at 38% 39%, rgba(255,230,176,.82) 0 1px, transparent 3px),
        radial-gradient(circle at 47% 84%, rgba(222,188,128,.80) 0 2px, transparent 4px),
        radial-gradient(circle at 55% 57%, rgba(255,237,197,.88) 0 1px, transparent 3px),
        radial-gradient(circle at 64% 92%, rgba(197,161,105,.74) 0 2px, transparent 4px),
        radial-gradient(circle at 72% 43%, rgba(239,209,154,.82) 0 2px, transparent 4px),
        radial-gradient(circle at 81% 74%, rgba(255,235,190,.88) 0 1px, transparent 3px),
        radial-gradient(circle at 91% 54%, rgba(202,168,112,.76) 0 2px, transparent 4px),
        radial-gradient(ellipse at 22% 106%, rgba(181,143,83,.42), transparent 37%),
        radial-gradient(ellipse at 78% 109%, rgba(217,174,98,.34), transparent 39%);
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(242,204,132,.62)) !important;
    mix-blend-mode: screen;
    opacity: .96 !important;
    animation: fossilDustLift 7.5s ease-in-out infinite alternate !important;
}
.profile-effect-dust .profile-style-particles::after {
    inset: 2% -14% -12% !important;
    background:
        radial-gradient(ellipse at 17% 77%, rgba(219,184,125,.30), transparent 31%),
        radial-gradient(ellipse at 51% 88%, rgba(176,139,83,.24), transparent 35%),
        radial-gradient(ellipse at 82% 68%, rgba(242,208,147,.26), transparent 30%),
        repeating-radial-gradient(ellipse at 48% 112%, transparent 0 16px, rgba(234,201,142,.12) 19px 22px, transparent 27px 40px);
    filter: blur(4px) drop-shadow(0 0 8px rgba(202,161,94,.34)) !important;
    mix-blend-mode: screen;
    opacity: .90 !important;
    animation: fossilDustHaze 7s ease-in-out infinite alternate !important;
}
.social-effect-dust .social-avatar-motion {
    inset: -24% !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 12% 76%, rgba(255,239,199,.98) 0 2px, transparent 4px),
        radial-gradient(circle at 25% 34%, rgba(214,180,120,.88) 0 1px, transparent 3px),
        radial-gradient(circle at 39% 88%, rgba(251,222,165,.96) 0 2px, transparent 4px),
        radial-gradient(circle at 54% 22%, rgba(238,204,147,.90) 0 1px, transparent 3px),
        radial-gradient(circle at 68% 70%, rgba(255,237,192,.96) 0 2px, transparent 4px),
        radial-gradient(circle at 84% 43%, rgba(205,168,108,.88) 0 2px, transparent 4px),
        radial-gradient(circle at 91% 82%, rgba(249,219,158,.94) 0 1px, transparent 3px),
        radial-gradient(ellipse at 50% 108%, rgba(200,157,88,.42), transparent 61%) !important;
    filter: drop-shadow(0 0 5px rgba(246,207,136,.72)) !important;
    mix-blend-mode: screen;
    opacity: .98 !important;
    animation: avatarFossilDust 4.8s ease-in-out infinite alternate !important;
}

/* Tormenta eléctrica: lluvia continua y rayos claramente reconocibles. */
.profile-effect-storm .profile-style-particles::before {
    inset: -12% !important;
    clip-path: none !important;
    background:
        radial-gradient(ellipse at 22% 4%, rgba(42, 60, 76, .80), transparent 38%),
        radial-gradient(ellipse at 68% 1%, rgba(28, 45, 61, .88), transparent 43%),
        linear-gradient(180deg, rgba(7, 15, 24, .46), transparent 48%),
        repeating-linear-gradient(105deg, transparent 0 15px, rgba(169, 220, 246, .58) 16px 17px, transparent 18px 29px) !important;
    background-size: 100% 52%, 100% 58%, 100% 100%, 36px 58px !important;
    background-position: center top, center top, center, 0 -58px !important;
    filter: drop-shadow(0 0 3px rgba(121, 202, 245, .34)) !important;
    mix-blend-mode: screen;
    opacity: .88 !important;
    animation: electricRainFall .72s linear infinite !important;
}
.profile-effect-storm .profile-style-particles::after {
    inset: 5% 17% 8% 57% !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: polygon(53% 0, 35% 39%, 51% 39%, 23% 100%, 63% 48%, 47% 48%, 76% 0) !important;
    background: linear-gradient(165deg, #f8fdff 0 18%, #a8e7ff 38%, #4fbfff 68%, transparent 100%) !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 5px #dff7ff) drop-shadow(0 0 14px rgba(73, 191, 255, .96)) !important;
    opacity: 0 !important;
    animation: electricLightningStrike 5.4s steps(1, end) infinite !important;
}
.social-effect-storm .social-avatar-motion {
    inset: -22% !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 50% !important;
    clip-path: none !important;
    background:
        linear-gradient(180deg, rgba(16, 34, 48, .46), transparent 54%),
        repeating-linear-gradient(108deg, transparent 0 8px, rgba(157, 220, 249, .72) 9px 10px, transparent 11px 18px),
        linear-gradient(158deg, transparent 0 43%, #f7fdff 44% 47%, #60c9ff 48% 52%, transparent 53% 100%) !important;
    background-size: 100% 100%, 22px 32px, 28% 62% !important;
    background-position: center, 0 -32px, 72% 18% !important;
    background-repeat: no-repeat, repeat, no-repeat !important;
    box-shadow: 0 0 12px rgba(70, 184, 247, .48) !important;
    filter: drop-shadow(0 0 4px rgba(141, 224, 255, .82)) !important;
    mix-blend-mode: screen;
    opacity: .86 !important;
    animation: avatarStormRain .7s linear infinite, avatarElectricStorm 4.7s steps(1, end) infinite !important;
}
@keyframes electricRainFall {
    from { background-position: center top, center top, center, 0 -58px; }
    to { background-position: center top, center top, center, -18px 0; }
}
@keyframes electricLightningStrike {
    0%, 61%, 66%, 100% { opacity: 0; transform: translate3d(0, -4%, 0) scale(.96); }
    62% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    63% { opacity: .16; }
    64% { opacity: .94; transform: translate3d(-2%, 1%, 0) scale(1.02); }
    65% { opacity: 0; }
    82% { opacity: 0; transform: translate3d(18%, -2%, 0) scale(.82); }
    83% { opacity: .88; transform: translate3d(18%, 0, 0) scale(.86); }
    84% { opacity: 0; }
}
@keyframes avatarElectricStorm {
    0%, 57%, 62%, 100% { opacity: .78; }
    58% { opacity: 1; filter: brightness(1.65) drop-shadow(0 0 7px #8bdcff); }
    59% { opacity: .72; }
    60% { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 6px #8bdcff); }
    61% { opacity: .76; }
}
@keyframes avatarStormRain {
    from { background-position: center, 0 -32px, 72% 18%; }
    to { background-position: center, -10px 0, 72% 18%; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-effect-storm .profile-style-particles::before,
    .profile-effect-storm .profile-style-particles::after,
    .social-effect-storm .social-avatar-motion {
        animation: none !important;
    }
    .profile-effect-storm .profile-style-particles::after { opacity: .72 !important; }
}

/* Solicitudes en la página Amigos: avatar y marco siempre compactos. */
.friends-request-card {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    min-height: 72px !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 10px 11px !important;
}
.friends-request-card > .friends-request-avatar {
    position: relative;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    flex: 0 0 50px !important;
    border-radius: 50% !important;
    overflow: visible !important;
}
.friends-request-card > .friends-request-avatar > img {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.friends-request-card > .friends-request-avatar::before {
    inset: -3px !important;
    padding: 2px !important;
    border-radius: 50% !important;
}
.friends-request-card > .friends-request-avatar::after {
    inset: -5px !important;
    border-radius: 50% !important;
}
.friends-request-card > .friends-request-avatar > .social-avatar-motion {
    inset: -5px !important;
    border-radius: 50% !important;
}
.friends-request-card > div {
    min-width: 0 !important;
}
.friends-request-card .friends-request-buttons {
    display: flex !important;
    align-items: center;
    gap: 6px;
}
.friends-request-card .friends-request-buttons button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
}
.friends-request-card .friends-request-buttons button i {
    margin: 0 !important;
    font-size: 12px;
}

/* Polvo fosil v2: sedimento natural, terroso y sin brillo artificial. */
.profile-effect-dust .profile-style-particles::before {
    inset: -18% !important;
    background:
        radial-gradient(circle at 7% 83%, rgba(222,194,139,.82) 0 1px, transparent 2px),
        radial-gradient(circle at 14% 57%, rgba(166,137,91,.62) 0 1.5px, transparent 3px),
        radial-gradient(circle at 23% 91%, rgba(235,210,158,.70) 0 1px, transparent 2px),
        radial-gradient(circle at 31% 69%, rgba(145,116,76,.60) 0 2px, transparent 3.5px),
        radial-gradient(circle at 40% 44%, rgba(212,183,127,.68) 0 1px, transparent 2.5px),
        radial-gradient(circle at 48% 86%, rgba(174,142,91,.66) 0 1.5px, transparent 3px),
        radial-gradient(circle at 57% 61%, rgba(230,205,156,.72) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 94%, rgba(151,119,73,.62) 0 2px, transparent 3.5px),
        radial-gradient(circle at 74% 49%, rgba(204,174,117,.66) 0 1px, transparent 2.5px),
        radial-gradient(circle at 82% 78%, rgba(229,202,148,.72) 0 1.5px, transparent 3px),
        radial-gradient(circle at 93% 60%, rgba(160,128,81,.60) 0 1px, transparent 2.5px),
        radial-gradient(ellipse at 30% 104%, rgba(127,97,57,.24), transparent 34%),
        radial-gradient(ellipse at 74% 108%, rgba(183,145,82,.20), transparent 38%) !important;
    background-repeat: no-repeat !important;
    filter: blur(.15px) drop-shadow(0 1px 1px rgba(39,25,10,.72)) !important;
    mix-blend-mode: normal !important;
    opacity: .78 !important;
    animation: fossilSedimentDrift 11s cubic-bezier(.37,0,.63,1) infinite alternate !important;
}
.profile-effect-dust .profile-style-particles::after {
    inset: 22% -18% -18% !important;
    background:
        radial-gradient(ellipse at 12% 84%, rgba(142,106,60,.18), transparent 25%),
        radial-gradient(ellipse at 42% 91%, rgba(205,166,101,.15), transparent 31%),
        radial-gradient(ellipse at 76% 78%, rgba(158,119,66,.17), transparent 27%),
        radial-gradient(ellipse at 96% 96%, rgba(219,180,111,.12), transparent 23%) !important;
    filter: blur(11px) !important;
    mix-blend-mode: normal !important;
    opacity: .64 !important;
    animation: fossilGroundHaze 14s ease-in-out infinite alternate !important;
}
.social-effect-dust .social-avatar-motion {
    inset: -31% !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 12% 78%, rgba(221,192,137,.80) 0 1px, transparent 2.5px),
        radial-gradient(circle at 27% 38%, rgba(158,126,79,.66) 0 1px, transparent 2px),
        radial-gradient(circle at 39% 91%, rgba(229,203,152,.76) 0 1.5px, transparent 3px),
        radial-gradient(circle at 56% 25%, rgba(188,153,97,.68) 0 1px, transparent 2.5px),
        radial-gradient(circle at 69% 72%, rgba(226,199,145,.74) 0 1px, transparent 2px),
        radial-gradient(circle at 85% 47%, rgba(151,117,70,.66) 0 1.5px, transparent 3px),
        radial-gradient(circle at 92% 84%, rgba(208,174,116,.72) 0 1px, transparent 2px),
        radial-gradient(ellipse at 50% 106%, rgba(132,96,49,.24), transparent 58%) !important;
    filter: drop-shadow(0 1px 1px rgba(37,22,8,.75)) !important;
    mix-blend-mode: normal !important;
    opacity: .82 !important;
    animation: avatarFossilSediment 7.6s ease-in-out infinite alternate !important;
}
@keyframes fossilSedimentDrift {
    0% { transform: translate3d(-3%, 9%, 0) rotate(-.4deg) scale(.98); }
    45% { transform: translate3d(1%, -1%, 0) rotate(.15deg) scale(1.01); }
    100% { transform: translate3d(4%, -12%, 0) rotate(.55deg) scale(1.03); }
}
@keyframes fossilGroundHaze {
    0% { transform: translate3d(-5%, 3%, 0) scale(.96); opacity: .42; }
    55% { transform: translate3d(1%, -2%, 0) scale(1.03); opacity: .66; }
    100% { transform: translate3d(6%, -5%, 0) scale(1.08); opacity: .48; }
}
@keyframes avatarFossilSediment {
    0% { transform: translate3d(-2px, 5px, 0) rotate(-2deg); }
    50% { transform: translate3d(1px, -1px, 0) rotate(1deg); }
    100% { transform: translate3d(3px, -7px, 0) rotate(3deg); }
}

/* Chat global: acciones separadas del borde superior del mensaje. */
.global-chat-panel .social-chat-hover-tools {
    top: 5px !important;
    right: 2px;
}

/* Mi Dino: composicion limpia para nombres largos e imagen completa. */
body.page-perfil .live-terminal-hero {
    isolation: isolate;
}
body.page-perfil .live-terminal-watermark {
    z-index: 0;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 92px !important;
    width: calc(100% - 48px);
    max-width: none;
    overflow: hidden;
    transform: translateX(-50%) !important;
    font-size: clamp(2.25rem, 6vw, 5.25rem) !important;
    letter-spacing: .035em;
    line-height: .88;
    text-align: center;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
    background: transparent !important;
    color: rgba(255, 255, 255, .055);
}
body.page-perfil .live-terminal-image {
    z-index: 1;
    left: 50% !important;
    top: 42% !important;
    width: min(430px, 76%) !important;
    height: min(300px, 52%) !important;
    max-width: calc(100% - 64px);
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%) !important;
}
body.page-perfil .live-terminal-copy {
    z-index: 3;
    bottom: 30px;
}

/* Paneles sociales más amplios y legibles. Los valores de escritorio
   compensan el zoom global del 80% sin modificar el resto de la página. */
.global-chat-panel {
    width: min(700px, 100vw);
}
.global-chat-panel .social-chat-message {
    gap: 12px !important;
    padding: 11px 12px !important;
}
.global-chat-panel .social-chat-message > .social-chat-message-avatar,
.global-chat-panel .social-chat-message-avatar > img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    flex-basis: 48px !important;
}
.global-chat-panel .social-chat-message-body > header strong {
    font-size: 14px;
}
.global-chat-panel .social-chat-message-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
}
.global-chat-panel .social-chat-compose textarea {
    min-height: 56px;
    font-size: 14px;
}

/* Chat global: mensajes propios a la derecha y barra de envío más cómoda. */
.global-chat-panel .social-chat-message.mine {
    width: 88%;
    margin-left: auto;
    flex-direction: row;
    border: 1px solid rgba(224, 170, 73, .22);
    border-radius: 16px 5px 16px 16px !important;
    background:
        linear-gradient(270deg, rgba(30, 24, 11, .92), rgba(16, 14, 11, .82)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
}
.global-chat-panel .social-chat-message.mine:hover,
.global-chat-panel .social-chat-message.mine:focus-within,
.global-chat-panel .social-chat-message.mine.reaction-open {
    background:
        linear-gradient(270deg, rgba(39, 30, 12, .9), rgba(16, 14, 11, .72)),
        var(--social-bg, url('../img/fossils_bg2.webp')) center / cover no-repeat !important;
}
.global-chat-panel .social-chat-message.mine .social-chat-message-body {
    text-align: left;
}
.global-chat-panel .social-chat-message.mine .social-chat-message-body > header,
.global-chat-panel .social-chat-message.mine .social-chat-message-actions,
.global-chat-panel .social-chat-message.mine .social-chat-reactions {
    justify-content: flex-start;
}
.global-chat-panel .social-chat-message.mine .social-chat-hover-tools {
    right: 0;
    left: auto;
}
.global-chat-panel .social-chat-message.mine .social-chat-quote,
.global-chat-panel .social-chat-message.mine .social-chat-sticker,
.global-chat-panel .social-chat-message.mine .social-chat-media {
    margin-right: auto;
    margin-left: 0;
}
.global-chat-panel .global-chat-compose {
    grid-template-columns: auto minmax(0, 1fr) 118px;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px 18px;
}
.global-chat-panel .social-chat-compose-tools {
    align-items: stretch;
    gap: 8px;
}
.global-chat-panel .social-chat-compose-tools button {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 21px;
}
.global-chat-panel .global-chat-compose > textarea {
    min-height: 56px;
    padding: 15px 16px;
    border-radius: 14px;
}
.global-chat-panel .global-chat-compose > button {
    min-width: 118px;
    min-height: 56px;
    border-radius: 14px;
    font-size: 11px;
}
.social-chat-sticker-grid-empty {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 132px;
    place-items: center;
}
.social-chat-sticker-placeholder {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 2px dashed rgba(240, 198, 111, .38);
    border-radius: 18px;
    background: rgba(198, 146, 58, .055);
    color: rgba(240, 198, 111, .42);
    font-size: 30px;
}
.social-chat-sticker figcaption,
.social-chat-sticker-grid span:not(.social-chat-sticker-placeholder) {
    display: none !important;
}

@media (max-width: 640px) {
    .global-chat-panel .social-chat-message.mine {
        width: 92%;
    }
    .global-chat-panel .global-chat-compose {
        grid-template-columns: auto minmax(0, 1fr) 54px;
        gap: 7px;
        padding: 10px 10px 13px;
    }
    .global-chat-panel .social-chat-compose-tools {
        gap: 5px;
    }
    .global-chat-panel .social-chat-compose-tools button {
        width: 48px;
        height: 54px;
        font-size: 19px;
    }
    .global-chat-panel .global-chat-compose > textarea,
    .global-chat-panel .global-chat-compose > button {
        min-height: 54px;
    }
    .global-chat-panel .global-chat-compose > button {
        width: 54px;
        min-width: 54px;
        padding: 0;
    }
    .global-chat-panel .global-chat-compose > button span {
        display: none;
    }
}

.friends-drawer-panel {
    width: min(600px, 100vw);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.friends-drawer-head h2 {
    font-size: 30px;
}
.friends-add-form input {
    min-height: 44px;
    font-size: 13px;
}
.friends-add-form button {
    width: 44px;
}
.friends-list {
    gap: 9px;
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    overflow-y: auto;
    padding-right: 3px;
    padding-bottom: 8px;
}
.friends-drawer .friend-row {
    gap: 10px;
    min-height: 82px;
    padding: 11px 12px;
}
.friends-drawer .friend-row-avatar,
.friends-drawer .friend-row-avatar > img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}
.friends-drawer .friend-row-main strong {
    font-size: 13px;
}
.friends-drawer .friend-row-main small {
    font-size: 9px;
}
.friends-drawer .friend-row-main em {
    font-size: 10px;
}
.friends-drawer .friend-row-actions {
    grid-template-columns: repeat(4, 32px);
    gap: 4px;
    width: 140px;
}
.friends-drawer .friend-row-actions a,
.friends-drawer .friend-row-actions button {
    width: 32px;
    height: 32px;
    font-size: 11px;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
}
.friends-drawer .friend-row-actions .friend-row-message:hover,
.friends-drawer .friend-row-actions .friend-row-message:focus-visible {
    transform: translateY(-2px);
    border-color: #f4d394;
    color: #fdfbf8;
    background: linear-gradient(135deg,#b18233,#79541b);
    box-shadow: 0 8px 20px rgba(155,111,40,.3);
}
.friends-drawer .friend-row-actions .friend-row-trade {
    border-color: rgba(238, 193, 101, .34);
    color: #e9c979;
    background: rgba(198, 146, 58, .08);
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.friends-drawer .friend-row-actions .friend-row-trade:hover,
.friends-drawer .friend-row-actions .friend-row-trade:focus-visible {
    transform: translateY(-2px);
    border-color: #ffe19a;
    color: #fff;
    background: linear-gradient(135deg,#e5b957,#ae7925);
    box-shadow: 0 8px 20px rgba(181,126,35,.3);
}
.friends-drawer .friend-row-actions .friend-row-profile:hover,
.friends-drawer .friend-row-actions .friend-row-profile:focus-visible {
    transform: translateY(-2px);
    border-color: #f0c87d;
    color: #fff;
    background: linear-gradient(135deg,#a4762b,#674514);
    box-shadow: 0 8px 20px rgba(131,92,31,.32);
}
.friends-drawer .friend-row-actions .friend-row-remove:hover,
.friends-drawer .friend-row-actions .friend-row-remove:focus-visible {
    transform: translateY(-2px);
    border-color: #ff9696;
    color: #fff;
    background: linear-gradient(135deg,#a94a4a,#712d2d);
    box-shadow: 0 8px 20px rgba(133,48,48,.32);
}
.friends-drawer .friend-row-actions :is(a,button):focus-visible {
    outline: 2px solid #f1cf79;
    outline-offset: 2px;
}
.friends-manage-link {
    flex: 0 0 auto;
    min-height: 44px;
    margin-top: 12px;
    font-size: 10px;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.friends-manage-link:hover,
.friends-manage-link:focus-visible {
    transform: translateY(-2px);
    border-color: #f1cf79;
    color: #fff5d5;
    background: linear-gradient(135deg,rgba(198,146,58,.34),rgba(103,66,20,.42));
    box-shadow: 0 10px 24px rgba(198,146,58,.24);
}
.friends-manage-link:focus-visible {
    outline: 2px solid #f1cf79;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .global-chat-panel,
    .friends-drawer-panel {
        width: 100vw;
        max-width: 100vw;
    }
    .friends-drawer-panel {
        padding: 22px max(14px, env(safe-area-inset-right)) 22px max(14px, env(safe-area-inset-left));
    }
    .friends-drawer .friend-row {
        min-height: 74px;
        padding: 10px;
    }
    .friends-drawer .friend-row-avatar,
    .friends-drawer .friend-row-avatar > img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    .friends-drawer .friend-row-main strong {
        font-size: 14px;
    }
    .friends-drawer .friend-row-actions {
        grid-template-columns: repeat(4, 34px);
        width: 154px;
    }
    .friends-drawer .friend-row-actions a,
    .friends-drawer .friend-row-actions button {
        width: 34px;
        height: 34px;
    }
}
body.page-perfil .live-terminal-copy h2 {
    margin-top: 9px;
    font-size: clamp(2.15rem, 4vw, 3.65rem) !important;
    line-height: 1;
    overflow-wrap: anywhere;
}
@media (max-width: 720px) {
    body.page-perfil .live-terminal-watermark {
        bottom: 104px !important;
        width: calc(100% - 28px);
        font-size: clamp(1.75rem, 10vw, 3.2rem) !important;
    }
    body.page-perfil .live-terminal-image {
        top: 39% !important;
        width: min(330px, 84%) !important;
        height: 210px !important;
        max-width: calc(100% - 30px);
    }
    body.page-perfil .live-terminal-copy {
        bottom: 64px;
    }
    body.page-perfil .live-terminal-copy h2 {
        font-size: clamp(2rem, 12vw, 3.15rem) !important;
    }
}

/* Skins v2: grafito neutro y filtros visuales tipo Inventario. */
.store-page-wrap #tab-skins {
    --skin-accent: #e4bd69;
    --skin-accent-strong: #f0ce83;
    --skin-panel: rgba(15,13,10,.96);
    --skin-panel-deep: rgba(6,6,6,.99);
    --skin-border: rgba(221,219,216,.12);
}
.store-page-wrap #tab-skins .skin-store-filters {
    background: linear-gradient(145deg,rgba(19,17,14,.98),rgba(7,7,7,.99)) !important;
}
.store-page-wrap #tab-skins .skin-store-filters::after {
    position:absolute;
    top:0;
    right:24px;
    left:24px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(228,189,105,.38),transparent);
    content:"";
}
.store-page-wrap #tab-skins .skin-store-filter-heading b {
    border-color:rgba(228,189,105,.28) !important;
    color:#e8c87e !important;
    background:rgba(228,189,105,.07) !important;
}
.store-page-wrap #tab-skins .skin-store-filter-controls {
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}
.store-page-wrap #tab-skins .skin-store-filter-field {
    display:grid;
    min-height:0;
    grid-template-columns:150px minmax(0,1fr);
    align-items:start;
    gap:16px;
    padding:14px;
    border-color:rgba(255,255,255,.075);
    background:rgba(255,255,255,.025);
    cursor:default;
}
.store-page-wrap #tab-skins .skin-store-filter-field:hover,
.store-page-wrap #tab-skins .skin-store-filter-field:focus-within {
    border-color:rgba(228,189,105,.2);
    background:rgba(255,255,255,.032);
    box-shadow:none;
    transform:none;
}
.store-page-wrap #tab-skins .skin-store-filter-title {
    display:flex;
    min-height:42px;
    align-items:center;
    gap:11px;
    color:#e5e3e0;
    font-size:10px;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.store-page-wrap #tab-skins .skin-store-filter-icon {
    border-color:rgba(228,189,105,.22);
    color:#e4bd69;
    background:rgba(228,189,105,.065);
}
.store-page-wrap #tab-skins .skin-filter-native {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    opacity:0 !important;
    pointer-events:none !important;
}
.store-page-wrap #tab-skins .skin-filter-options {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.store-page-wrap #tab-skins .skin-filter-options button {
    min-height:42px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:11px;
    padding:0 15px;
    color:#b2b0ad;
    background:rgba(255,255,255,.035);
    font-size:10px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    transition:color .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.store-page-wrap #tab-skins .skin-filter-options button:hover {
    border-color:rgba(228,189,105,.34);
    color:#eee4cd;
    background:rgba(228,189,105,.06);
    transform:translateY(-1px);
}
.store-page-wrap #tab-skins .skin-filter-options button.is-active {
    border-color:#d7ac52;
    color:#120e06;
    background:linear-gradient(135deg,#efd184,#c99b42);
    box-shadow:0 8px 20px rgba(201,155,66,.16);
}
.store-page-wrap #tab-skins #skin-filter-reset {
    justify-self:start;
    min-height:48px;
    padding:0 22px;
    border-color:rgba(255,255,255,.11) !important;
    color:#bdbbb8 !important;
    background:rgba(255,255,255,.035) !important;
}
.store-page-wrap #tab-skins #skin-filter-reset:hover {
    border-color:rgba(228,189,105,.28) !important;
    color:#ead39e !important;
    background:rgba(228,189,105,.055) !important;
}
.store-page-wrap #tab-skins #skin-products-grid > [data-store-skin-card] {
    background:linear-gradient(150deg,rgba(18,16,13,.97),rgba(6,6,6,.99)) !important;
}
.store-page-wrap #tab-skins #skin-products-grid .store-skin-preview-stage {
    background:radial-gradient(ellipse at 50% 82%,rgba(226,224,221,.09),transparent 48%),linear-gradient(155deg,#181613,#080808 72%) !important;
}
.store-page-wrap #tab-skins #skin-products-grid .store-skin-preview-stage::after { background:rgba(228,189,105,.1); }
.store-page-wrap #tab-skins #skin-products-grid > [data-store-skin-card]:hover {
    border-color:rgba(228,189,105,.28) !important;
    box-shadow:0 20px 42px rgba(0,0,0,.34),0 0 22px rgba(228,189,105,.045) !important;
}
.store-page-wrap #tab-skins #skin-products-grid .text-neonGreen,
.store-page-wrap #tab-skins #store-skin-detail-modal .text-neonGreen { color:#e4bd69 !important; }
.store-page-wrap #tab-skins .store-skin-modal-panel,
.store-page-wrap #tab-skins #store-skin-detail-modal > div { border-color:rgba(228,189,105,.2) !important; background:linear-gradient(145deg,rgba(19,17,14,.99),rgba(6,6,6,.99)) !important; }
@media (max-width:720px) {
    .store-page-wrap #tab-skins .skin-store-filter-field { grid-template-columns:1fr; gap:11px; }
    .store-page-wrap #tab-skins .skin-filter-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .store-page-wrap #tab-skins .skin-filter-options button { width:100%; padding:0 8px; }
    .store-page-wrap #tab-skins #skin-filter-reset { width:100%; justify-self:stretch; }
}

/* Skins v2.1: misma claridad, con menor carga visual. */
@media (min-width:721px) {
    .store-page-wrap #tab-skins .skin-store-filter-controls {
        grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
        align-items:start;
        gap:11px;
    }
    .store-page-wrap #tab-skins .skin-store-filter-field {
        grid-template-columns:1fr;
        gap:10px;
        padding:13px;
    }
    .store-page-wrap #tab-skins .skin-store-filter-field:nth-child(3) {
        grid-column:1 / -1;
        grid-template-columns:120px minmax(0,1fr);
        align-items:center;
    }
    .store-page-wrap #tab-skins .skin-store-filter-title { min-height:36px; }
    .store-page-wrap #tab-skins .skin-store-filter-icon { width:36px; height:36px; border-radius:10px; }
    .store-page-wrap #tab-skins .skin-filter-options { gap:6px; }
    .store-page-wrap #tab-skins .skin-filter-options button {
        min-height:36px;
        padding:0 12px;
        font-size:9px;
    }
    .store-page-wrap #tab-skins #skin-filter-reset {
        min-height:42px;
        margin-top:1px;
    }
}

/* Filtro de color: controles grandes y reconocibles de un vistazo. */
.store-page-wrap #tab-skins .skin-filter-colors {
    gap:10px;
}
.store-page-wrap #tab-skins .skin-filter-colors button {
    display:inline-flex;
    min-height:50px;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 19px;
    border-radius:13px;
    color:#ceccc9;
    font-size:11px;
    letter-spacing:.075em;
}
.store-page-wrap #tab-skins .skin-filter-colors button::before {
    width:12px;
    height:12px;
    flex:0 0 12px;
    border:1px solid rgba(255,255,255,.32);
    border-radius:50%;
    background:linear-gradient(135deg,#a5a3a0,#615f5c);
    box-shadow:0 0 0 3px rgba(255,255,255,.045);
    content:"";
}
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="all"]::before { background:conic-gradient(#deb05b,#c79640,#dc5e62,#e0b354,#c0903c,#f5f5f2); }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="verde"]::before { background:#daaa54; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="azul"]::before { background:#c5943e; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="rojo"]::before { background:#dc5b5b; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="dorado"]::before { background:#dfb54e; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="violeta"]::before { background:#b88837; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="naranja"]::before { background:#e98643; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="rosa"]::before { background:#e881aa; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="negro"]::before { background:#111; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="blanco"]::before { background:#f2f3f1; }
.store-page-wrap #tab-skins .skin-filter-colors button[data-filter-value="gris"]::before { background:#8d8b88; }
.store-page-wrap #tab-skins .skin-filter-colors button.is-active::before {
    border-color:rgba(18,14,6,.45);
    box-shadow:0 0 0 3px rgba(18,14,6,.12);
}
@media (max-width:720px) {
    .store-page-wrap #tab-skins .skin-filter-colors button {
        min-height:48px;
        padding:0 18px;
        font-size:10px;
    }
}

/* Mercado v2: superficies y jerarquía compartidas con Inventario. */
.market-page {
    --market-gold:#e2b85e;
    --market-gold-bright:#f0cf86;
    --market-panel:rgba(17,15,12,.97);
    --market-deep:rgba(7,7,7,.99);
    --market-border:rgba(222,220,217,.12);
    width:min(1380px,calc(100% - 36px));
    margin-top:26px;
    color:#f3f1ee;
}
.market-page .market-command-header {
    min-height:190px;
    border:1px solid var(--market-border) !important;
    border-radius:24px;
    padding:34px 38px;
    background:
        radial-gradient(circle at 86% 20%,rgba(226,184,94,.14),transparent 29%),
        linear-gradient(120deg,rgba(22,20,17,.98),rgba(8,8,8,.99)) !important;
    box-shadow:0 24px 60px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.025);
}
.market-page .market-command-header::before {
    position:absolute;
    top:0;
    right:30px;
    left:30px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(240,207,134,.38),transparent);
    content:"";
}
.market-page .market-command-header h1 { color:#f8f6f3; font-family:'Oswald',sans-serif; font-size:clamp(38px,5vw,58px); line-height:1; text-transform:uppercase; }
.market-page .market-command-header p:not(.hub-kicker) { color:#b3b1ae; }
.market-page .market-balance {
    min-width:230px;
    border:1px solid rgba(226,184,94,.16);
    border-radius:16px;
    padding:18px 20px;
    background:rgba(0,0,0,.22);
}
.market-page .market-balance strong { color:var(--market-gold-bright); font-size:31px; }
.market-page .market-overview-stats { gap:13px; }
.market-page .market-overview-stats article {
    min-height:104px;
    padding:17px 18px;
    border:1px solid var(--market-border) !important;
    border-radius:16px;
    background:linear-gradient(145deg,rgba(22,20,17,.96),rgba(9,9,9,.99)) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.15);
}
.market-page .market-overview-stats span { color:#a6a4a1; }
.market-page .market-overview-stats span i,
.market-page .market-overview-stats strong { color:var(--market-gold); }
.market-page .market-nav {
    gap:9px;
    border:1px solid var(--market-border) !important;
    border-radius:17px;
    padding:8px;
    background:rgba(9,9,9,.9) !important;
}
.market-page .market-nav button {
    min-height:52px;
    border-radius:12px;
    color:#b7b5b2 !important;
    font-size:12px;
    font-weight:900;
    letter-spacing:.055em;
    text-transform:uppercase;
}
.market-page .market-nav button:hover { color:#f3f1ee !important; background:rgba(255,255,255,.05) !important; }
.market-page .market-nav button.active {
    border-color:#d2a74c !important;
    color:#151006 !important;
    background:linear-gradient(135deg,#efd083,#c7983f) !important;
    box-shadow:0 9px 22px rgba(199,152,63,.17);
}
.market-page .market-panel {
    border:1px solid var(--market-border) !important;
    border-radius:22px;
    padding:28px;
    background:linear-gradient(145deg,var(--market-panel),var(--market-deep)) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.22);
}
.market-page .market-panel-header { padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.07); }
.market-page .market-panel-header h2 { color:#f5f3f0; font-family:'Oswald',sans-serif; font-size:30px; text-transform:uppercase; }
.market-page .market-panel-header > p { color:#a6a4a1 !important; }
.market-page .market-exchange-toolbar {
    display:grid;
    grid-template-columns:minmax(240px,1.35fr) minmax(170px,.72fr) minmax(170px,.72fr) auto;
    align-items:end;
    gap:12px;
    border:1px solid rgba(255,255,255,.075) !important;
    border-radius:16px;
    padding:14px;
    background:rgba(255,255,255,.025) !important;
}
.market-page .market-exchange-toolbar label { min-width:0; color:#999794; font-size:9px; letter-spacing:.12em; }
.market-page .market-exchange-toolbar select,
.market-page .market-search-field > div {
    min-height:48px;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.1) !important;
    border-radius:12px;
    color:#edebe8 !important;
    background:#13110e !important;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.market-page .market-exchange-toolbar select { width:100%; padding:0 34px 0 13px; }
.market-page .market-search-field > div { display:flex; align-items:center; gap:10px; padding:0 13px; }
.market-page .market-search-field i { color:#a68c54; }
.market-page .market-search-field input { width:100%; min-width:0; border:0; outline:0; color:#f3f1ee; background:transparent; font:700 12px inherit; }
.market-page .market-search-field input::placeholder { color:#787673; }
.market-page .market-exchange-toolbar select:focus,
.market-page .market-search-field > div:focus-within { border-color:rgba(226,184,94,.48) !important; box-shadow:0 0 0 3px rgba(226,184,94,.07); background:#151310 !important; }
.market-page .market-result-count { align-self:center; min-width:154px; color:#93918e; text-align:right; }
.market-page .market-result-count strong { color:var(--market-gold-bright); }
.market-page .market-lot-grid,
.market-page .market-sell-grid { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; }
.market-page .market-lot-card,
.market-page .market-sell-card,
.market-page .market-listing-card {
    overflow:hidden;
    border:1px solid var(--market-border) !important;
    border-top:1px solid var(--market-border) !important;
    border-radius:18px;
    background:linear-gradient(150deg,rgba(20,18,15,.98),rgba(8,8,8,.99)) !important;
    box-shadow:0 14px 30px rgba(0,0,0,.2);
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.market-page .market-lot-card:hover,
.market-page .market-sell-card:hover { transform:translateY(-3px); border-color:rgba(226,184,94,.3) !important; box-shadow:0 20px 42px rgba(0,0,0,.3),0 0 22px rgba(226,184,94,.035); }
.market-page .market-lot-card.owner { border-color:rgba(226,184,94,.38) !important; box-shadow:inset 0 2px 0 rgba(226,184,94,.42),0 14px 30px rgba(0,0,0,.2); }
.market-page .market-lot-media,
.market-page .market-sell-media {
    height:180px;
    border-bottom:1px solid rgba(255,255,255,.055);
    background:radial-gradient(ellipse at 50% 86%,rgba(226,184,94,.12),transparent 48%),linear-gradient(155deg,#181613,#090909 72%) !important;
}
.market-page .market-lot-ribbon,
.market-page .market-item-type { border-color:rgba(226,184,94,.25); color:#e7c77f; background:rgba(10,10,10,.78); }
.market-page .market-lot-content { padding:17px; }
.market-page .market-lot-card h3,
.market-page .market-sell-card h3 { color:#f5f3f0; font-family:'Oswald',sans-serif; font-size:21px; text-transform:uppercase; }
.market-page .market-lot-description,
.market-page .market-sell-card > p { color:#a8a6a3; }
.market-page .market-active { color:#d9b660 !important; }
.market-page .market-seller { color:#9c9a97 !important; }
.market-page .market-seller img { width:34px; height:34px; border-color:rgba(226,184,94,.32); }
.market-page .market-lot-metrics { gap:12px; padding:13px 0; }
.market-page .market-lot-metrics strong { color:var(--market-gold-bright); font-size:16px; }
.market-page .market-lot-actions { gap:10px; }
.market-page .market-lot-actions button,
.market-page .market-sell-card > button {
    min-height:48px;
    border-radius:11px;
    font-size:11px;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.market-page .market-details { border:1px solid rgba(255,255,255,.11) !important; color:#dad8d5 !important; background:rgba(255,255,255,.045) !important; }
.market-page .market-details:hover { border-color:rgba(226,184,94,.28) !important; color:#f0d89e !important; background:rgba(226,184,94,.055) !important; }
.market-page .market-buy,
.market-page .market-sell-card > button { color:#151006 !important; background:linear-gradient(135deg,#efd083,#c7983f) !important; }
.market-page .market-cancel { border:1px solid rgba(255,255,255,.1) !important; color:#dad8d5 !important; background:rgba(255,255,255,.055) !important; }
.market-page .market-sell-card input { min-height:47px; border-color:rgba(255,255,255,.1) !important; border-radius:11px; color:#f3f1ee !important; background:#13110e !important; }
.market-page .market-sell-quantity { border-color:rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.market-page .market-sell-quantity > span { color:#c8b47f; }
.market-page .market-empty { border:1px dashed rgba(255,255,255,.11); padding:28px; color:#9c9a97; background:rgba(255,255,255,.02); text-align:center; }
.market-page + .market-modal .market-modal-card {
    border-color:rgba(226,184,94,.25) !important;
    border-radius:20px;
    background:linear-gradient(145deg,rgba(20,18,15,.99),rgba(7,7,7,.99)) !important;
}
@media (max-width:900px) {
    .market-page .market-exchange-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .market-page .market-search-field { grid-column:1 / -1; }
    .market-page .market-result-count { min-width:0; text-align:left; }
}
@media (max-width:720px) {
    .market-page { width:min(100% - 22px,1380px); }
    .market-page .market-command-header { min-height:0; padding:25px 22px; }
    .market-page .market-balance { min-width:0; text-align:left; }
    .market-page .market-overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .market-page .market-overview-stats article { min-height:94px; }
    .market-page .market-nav { overflow-x:auto; }
    .market-page .market-nav button { min-height:48px; flex:0 0 auto; }
    .market-page .market-panel { padding:19px; }
    .market-page .market-exchange-toolbar { grid-template-columns:1fr; }
    .market-page .market-search-field { grid-column:auto; }
    .market-page .market-lot-grid,
    .market-page .market-sell-grid { grid-template-columns:1fr; }
}

/* Mercado reconstruido: interfaz propia de terminal comercial. */
.market-rebuild {
    width:min(1460px,calc(100% - 40px));
    margin:28px auto 80px;
    color:#f3f1ee;
}
.market-rebuild .market-command-header {
    position:relative;
    isolation:isolate;
    display:grid;
    min-height:230px;
    grid-template-columns:minmax(0,1fr) 280px;
    align-items:center;
    gap:42px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.1) !important;
    border-radius:28px;
    padding:42px 48px;
    background:linear-gradient(105deg,#080808 0%,#13110e 58%,#17150f 100%) !important;
    box-shadow:0 30px 80px rgba(0,0,0,.38);
}
.market-rebuild .market-command-header::after {
    position:absolute;
    z-index:-1;
    inset:0;
    background:radial-gradient(circle at 83% 45%,rgba(224,178,79,.18),transparent 24%),repeating-linear-gradient(115deg,transparent 0 34px,rgba(255,255,255,.012) 35px 36px);
    content:"";
}
.market-rebuild .market-command-header .hub-kicker { color:#d8aa4c; letter-spacing:.23em; }
.market-rebuild .market-command-header h1 { max-width:780px; margin:8px 0 14px; font-size:clamp(46px,6vw,76px); letter-spacing:-.035em; }
.market-rebuild .market-command-header p:not(.hub-kicker) { max-width:650px; color:#b0aeab; font-size:15px; }
.market-rebuild .market-balance {
    position:relative;
    display:grid;
    min-width:0;
    gap:6px;
    border:1px solid rgba(225,181,84,.3);
    border-radius:20px;
    padding:24px;
    text-align:left;
    background:linear-gradient(145deg,rgba(27,26,21,.88),rgba(8,8,8,.92));
    box-shadow:0 18px 40px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.04);
}
.market-rebuild .market-balance::before { position:absolute; top:18px; right:18px; color:rgba(225,181,84,.2); content:"\f51e"; font-family:"Font Awesome 6 Free"; font-size:34px; font-weight:900; }
.market-rebuild .market-balance span { color:#8f8d8a; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.market-rebuild .market-balance strong { margin-top:7px; color:#f0c96f; font-family:'Oswald',sans-serif; font-size:36px; }
.market-rebuild .market-balance small { color:#7c7a77; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.market-rebuild .market-overview-stats {
    display:flex;
    gap:0;
    overflow:hidden;
    margin:16px 0 0;
    border:1px solid rgba(255,255,255,.085);
    border-radius:18px;
    background:#0b0b0b;
}
.market-rebuild .market-overview-stats article {
    min-height:92px;
    flex:1;
    border:0 !important;
    border-right:1px solid rgba(255,255,255,.075) !important;
    border-radius:0;
    padding:18px 22px;
    background:transparent !important;
    box-shadow:none;
}
.market-rebuild .market-overview-stats article:last-child { border-right:0 !important; }
.market-rebuild .market-overview-stats span { color:#888683; }
.market-rebuild .market-overview-stats strong { margin-top:9px; color:#e7bd63; font-family:'Oswald',sans-serif; font-size:27px; }
.market-rebuild .market-workspace {
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    align-items:start;
    gap:18px;
    margin-top:18px;
}
.market-rebuild .market-nav {
    position:sticky;
    top:112px;
    display:grid;
    gap:7px;
    margin:0;
    border:1px solid rgba(255,255,255,.085) !important;
    border-radius:20px;
    padding:12px;
    background:linear-gradient(160deg,#13110e,#080808) !important;
    box-shadow:0 18px 42px rgba(0,0,0,.22);
}
.market-rebuild .market-nav-heading { padding:14px 13px 16px; border-bottom:1px solid rgba(255,255,255,.07); }
.market-rebuild .market-nav-heading span { display:block; color:#787673; font-size:8px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.market-rebuild .market-nav-heading strong { display:block; margin-top:5px; color:#f3f1ee; font-family:'Oswald',sans-serif; font-size:25px; text-transform:uppercase; }
.market-rebuild .market-nav button {
    display:grid;
    min-height:58px;
    grid-template-columns:34px minmax(0,1fr) auto;
    justify-content:start;
    gap:10px;
    border:1px solid transparent;
    border-radius:13px;
    padding:0 13px;
    text-align:left;
    color:#a5a3a0 !important;
    background:transparent !important;
    font-size:10px;
}
.market-rebuild .market-nav button > i { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; color:#a2a09d; background:rgba(255,255,255,.045); }
.market-rebuild .market-nav button:hover { border-color:rgba(255,255,255,.08); color:#f2f0ed !important; background:rgba(255,255,255,.035) !important; }
.market-rebuild .market-nav button.active { border-color:rgba(224,178,79,.28) !important; color:#f0d18b !important; background:linear-gradient(90deg,rgba(224,178,79,.14),rgba(224,178,79,.025)) !important; box-shadow:inset 3px 0 0 #d8aa4c; }
.market-rebuild .market-nav button.active > i { color:#171106; background:#d9ad50; }
.market-rebuild .market-nav button b { justify-self:end; }
.market-rebuild .market-nav-note { display:flex; gap:10px; margin-top:5px; padding:14px 12px 10px; border-top:1px solid rgba(255,255,255,.07); color:#aa8e51; }
.market-rebuild .market-nav-note > i { margin-top:2px; }
.market-rebuild .market-nav-note span { display:grid; gap:4px; }
.market-rebuild .market-nav-note strong { color:#c0bebb; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.market-rebuild .market-nav-note small { color:#716f6c; font-size:9px; line-height:1.45; }
.market-rebuild .market-panel {
    min-width:0;
    margin:0;
    border:1px solid rgba(255,255,255,.085) !important;
    border-radius:22px;
    padding:30px;
    background:linear-gradient(150deg,#13110e,#080808) !important;
    box-shadow:0 22px 55px rgba(0,0,0,.24);
}
.market-rebuild .market-panel-header { align-items:center; margin-bottom:22px; padding-bottom:22px; }
.market-rebuild .market-panel-header .friends-eyebrow { color:#b08d48; }
.market-rebuild .market-panel-header h2 { margin-top:6px; font-size:34px; letter-spacing:.01em; }
.market-rebuild .market-exchange-toolbar {
    grid-template-columns:minmax(220px,1.45fr) minmax(170px,.7fr) minmax(170px,.7fr);
    gap:10px;
    border:0 !important;
    border-radius:0;
    padding:0 0 18px;
    background:transparent !important;
}
.market-rebuild .market-result-count { grid-column:1 / -1; justify-self:start; padding:3px 0 0; text-align:left; }
.market-rebuild .market-exchange-toolbar select,
.market-rebuild .market-search-field > div { min-height:54px; border-color:rgba(255,255,255,.1) !important; border-radius:13px; background:#0f0d0a !important; }
.market-rebuild .market-lot-grid,
.market-rebuild .market-sell-grid { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:0; }
.market-rebuild .market-lot-card,
.market-rebuild .market-sell-card {
    border-color:rgba(255,255,255,.09) !important;
    border-radius:20px;
    background:#0c0c0c !important;
    box-shadow:none;
}
.market-rebuild .market-lot-card:hover,
.market-rebuild .market-sell-card:hover { transform:translateY(-4px); border-color:rgba(224,178,79,.35) !important; box-shadow:0 18px 38px rgba(0,0,0,.3); }
.market-rebuild .market-lot-media,
.market-rebuild .market-sell-media { height:205px; background:radial-gradient(ellipse at 50% 92%,rgba(224,178,79,.13),transparent 42%),linear-gradient(160deg,#181613,#080808) !important; }
.market-rebuild .market-lot-ribbon { top:13px; left:13px; border-radius:9px; }
.market-rebuild .market-lot-content { padding:19px; }
.market-rebuild .market-lot-heading { padding-bottom:13px; border-bottom:1px solid rgba(255,255,255,.06); }
.market-rebuild .market-lot-card h3,
.market-rebuild .market-sell-card h3 { margin-top:16px; font-size:23px; }
.market-rebuild .market-lot-actions button,
.market-rebuild .market-sell-card > button { min-height:52px; }
.market-rebuild .market-details { color:#dad8d5 !important; background:#151310 !important; }
.market-rebuild .market-buy,
.market-rebuild .market-sell-card > button { color:#171106 !important; background:linear-gradient(135deg,#eccb7d,#c4953c) !important; }
.market-rebuild .market-empty { min-height:150px; display:grid; place-items:center; border-radius:17px; }
@media (max-width:980px) {
    .market-rebuild .market-workspace { grid-template-columns:1fr; }
    .market-rebuild .market-nav { position:static; display:flex; overflow-x:auto; }
    .market-rebuild .market-nav-heading,.market-rebuild .market-nav-note { display:none; }
    .market-rebuild .market-nav button { min-width:175px; flex:1 0 auto; }
}
@media (max-width:720px) {
    .market-rebuild { width:min(100% - 20px,1460px); margin-top:14px; }
    .market-rebuild .market-command-header { grid-template-columns:1fr; gap:22px; padding:28px 22px; border-radius:22px; }
    .market-rebuild .market-command-header h1 { font-size:44px; }
    .market-rebuild .market-balance { padding:20px; }
    .market-rebuild .market-overview-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .market-rebuild .market-overview-stats article { min-width:0; border-right:1px solid rgba(255,255,255,.075) !important; border-bottom:1px solid rgba(255,255,255,.075) !important; }
    .market-rebuild .market-workspace { gap:12px; margin-top:12px; }
    .market-rebuild .market-nav { border-radius:15px; }
    .market-rebuild .market-nav button { min-width:158px; min-height:52px; }
    .market-rebuild .market-panel { padding:20px 15px; border-radius:18px; }
    .market-rebuild .market-panel-header h2 { font-size:28px; }
    .market-rebuild .market-exchange-toolbar { grid-template-columns:1fr; }
    .market-rebuild .market-result-count { grid-column:auto; }
    .market-rebuild .market-lot-grid,
    .market-rebuild .market-sell-grid { grid-template-columns:1fr; }
}

/* Mercado refinado: sin información duplicada y con controles visuales. */
.market-rebuild .market-workspace { margin-top:18px; }
.market-rebuild .market-nav { padding:13px; }
.market-rebuild .market-nav > button:first-of-type { margin-top:0; }
.market-rebuild .market-balance::before { display:none; }
.market-rebuild .market-balance strong,
.market-rebuild .market-lot-metrics strong { display:flex; align-items:center; gap:8px; }
.market-rebuild .market-balance strong img { width:30px; height:30px; object-fit:contain; }
.market-rebuild .market-lot-metrics strong img { width:19px; height:19px; object-fit:contain; }
.market-rebuild .market-exchange-toolbar {
    grid-template-columns:minmax(220px,1fr);
    gap:13px;
}
.market-rebuild .market-search-field { max-width:620px; }
.market-rebuild .market-filter-block {
    display:grid;
    grid-template-columns:90px minmax(0,1fr);
    align-items:center;
    gap:12px;
}
.market-rebuild .market-filter-block > span {
    color:#878582;
    font-size:9px;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
}
.market-rebuild .market-native-filter {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    opacity:0 !important;
    pointer-events:none !important;
}
.market-rebuild .market-choice-group {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.market-rebuild .market-choice-group button {
    display:inline-flex;
    min-height:46px;
    align-items:center;
    gap:8px;
    border:1px solid rgba(255,255,255,.095);
    border-radius:12px;
    padding:0 16px;
    color:#a7a5a2;
    background:#12100d;
    font-size:10px;
    font-weight:900;
    letter-spacing:.045em;
    text-transform:uppercase;
    cursor:pointer;
    transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease;
}
.market-rebuild .market-choice-group button i { color:#807e7b; }
.market-rebuild .market-choice-group button:hover { transform:translateY(-1px); border-color:rgba(224,178,79,.28); color:#eceae7; }
.market-rebuild .market-choice-group button.active {
    border-color:rgba(224,178,79,.55);
    color:#171106;
    background:linear-gradient(135deg,#eccb7c,#c5973e);
}
.market-rebuild .market-choice-group button.active i { color:#171106; }
.market-rebuild .market-result-count { grid-column:auto; margin:2px 0 0 102px; }
@media (max-width:720px) {
    .market-rebuild .market-filter-block { grid-template-columns:1fr; gap:8px; }
    .market-rebuild .market-choice-group { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; scrollbar-color:rgba(224,178,79,.3) transparent; }
    .market-rebuild .market-choice-group button { min-width:max-content; flex:0 0 auto; }
    .market-rebuild .market-result-count { margin-left:0; }
}

/* Mercado: filtros balanceados y previews completas. */
.market-rebuild .market-exchange-toolbar {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
}
.market-rebuild .market-search-field {
    grid-column:1 / -1;
    width:100%;
    max-width:none;
}
.market-rebuild .market-filter-block {
    grid-template-columns:1fr;
    align-content:start;
    gap:8px;
    min-width:0;
    border:1px solid rgba(255,255,255,.07);
    border-radius:14px;
    padding:12px;
    background:rgba(255,255,255,.018);
}
.market-rebuild .market-choice-group {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
}
.market-rebuild .market-choice-group button {
    width:100%;
    min-width:0;
    justify-content:center;
    padding:0 10px;
}
.market-rebuild .market-result-count {
    grid-column:1 / -1;
    margin-left:0;
}
.market-rebuild .market-lot-media,
.market-rebuild .market-sell-media { height:230px; padding:12px; box-sizing:border-box; }
.market-rebuild .market-lot-media.is-dino img,
.market-rebuild .market-sell-media.is-dino img {
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    padding:6px;
    box-sizing:border-box;
    object-fit:contain;
    object-position:center;
    transform:none;
}
.market-rebuild .market-lot-media.is-skin img,
.market-rebuild .market-sell-media.is-skin img {
    width:112%;
    height:112%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    object-position:center;
    transform:none;
}
@media (max-width:720px) {
    .market-rebuild .market-exchange-toolbar { grid-template-columns:1fr; }
    .market-rebuild .market-search-field,
    .market-rebuild .market-result-count { grid-column:auto; }
    .market-rebuild .market-choice-group { display:grid; overflow:visible; padding-bottom:0; }
    .market-rebuild .market-choice-group button { min-width:0; }
    .market-rebuild .market-lot-media,
    .market-rebuild .market-sell-media { height:220px; }
}
@media (max-width:720px) {
    .store-page-wrap #tab-skins .skin-store-filter-field {
        gap:8px;
        padding:12px;
    }
    .store-page-wrap #tab-skins .skin-store-filter-title { min-height:38px; }
    .store-page-wrap #tab-skins .skin-store-filter-icon { width:38px; height:38px; }
    .store-page-wrap #tab-skins .skin-filter-options {
        display:flex;
        flex-wrap:nowrap;
        gap:7px;
        overflow-x:auto;
        padding:1px 1px 7px;
        scroll-snap-type:x proximity;
        scrollbar-width:thin;
        scrollbar-color:rgba(228,189,105,.32) transparent;
    }
    .store-page-wrap #tab-skins .skin-filter-options button {
        width:auto;
        min-width:max-content;
        min-height:38px;
        flex:0 0 auto;
        padding:0 14px;
        scroll-snap-align:start;
    }
}
.market-dino-details { display:grid; gap:8px; margin-top:16px; }
.market-dino-details[hidden] { display:none; }
.market-dino-details > span { display:grid; grid-template-columns:24px 1fr; column-gap:8px; padding:9px 10px; border:1px solid rgba(230,228,225,.12); border-radius:10px; background:rgba(255,255,255,.035); }
.market-dino-details i { grid-row:1 / 3; align-self:center; color:#f1cf79; text-align:center; }
.market-dino-details small { color:#9e9c99; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.market-dino-details strong { color:#f1efec; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.market-page .market-lot-actions .market-cancel { border:1px solid rgba(214,88,88,.4) !important; color:#efb1b1 !important; background:rgba(142,38,38,.16) !important; transition:border-color .2s ease,color .2s ease,background .2s ease,transform .2s ease; }
.market-page .market-lot-actions .market-cancel:hover { border-color:rgba(238,112,112,.72) !important; color:#fff0f0 !important; background:rgba(181,48,48,.32) !important; transform:translateY(-1px); }
.market-section-filters { display:grid; grid-template-columns:minmax(230px,1fr) auto auto; align-items:center; gap:12px; margin-bottom:20px; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:15px; background:rgba(255,255,255,.025); }
.market-section-filters > label { min-height:46px; display:flex; align-items:center; gap:10px; padding:0 13px; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:#13110e; }
.market-section-filters > label:focus-within { border-color:rgba(226,184,94,.48); box-shadow:0 0 0 3px rgba(226,184,94,.07); }
.market-section-filters > label i { color:#b99a57; }
.market-section-filters input { width:100%; min-width:0; border:0 !important; outline:0; color:#f3f1ee !important; background:transparent !important; font:700 12px inherit; }
.market-section-filters > div { display:flex; gap:7px; }
.market-section-filters button { min-height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.09); border-radius:10px; color:#b7b5b2; background:rgba(255,255,255,.035); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; cursor:pointer; transition:.18s ease; }
.market-section-filters button:hover { color:#f1dfb2; border-color:rgba(226,184,94,.28); }
.market-section-filters button.active { color:#1b1508; border-color:#dfb85f; background:linear-gradient(135deg,#efd083,#c7983f); }
.market-section-filters > strong { min-width:90px; color:#999794; font-size:10px; text-align:right; text-transform:uppercase; }
.market-section-filters > strong span { display:block; color:#efd083; font:800 20px 'Oswald',sans-serif; }
.market-page .market-sell-media.is-skin { height:215px; padding:8px 5px 0; }
.market-page .market-sell-media.is-skin img,.market-page .market-lot-media.is-skin img { width:96%; height:96%; object-fit:contain; object-position:center bottom; transform:none; }
.market-price-field { display:grid !important; gap:7px !important; margin-top:14px !important; }
.market-price-field > span { color:#d5bf87; font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.market-price-field > div { min-height:54px; display:grid; grid-template-columns:25px minmax(70px,1fr) auto; align-items:center; gap:8px; padding:0 12px; border:1px solid rgba(226,184,94,.25); border-radius:12px; background:linear-gradient(145deg,rgba(226,184,94,.07),rgba(255,255,255,.02)); }
.market-price-field > div:focus-within { border-color:rgba(239,208,131,.62); box-shadow:0 0 0 3px rgba(226,184,94,.08); }
.market-price-field img { width:23px; height:23px; object-fit:contain; }
.market-page .market-price-field input { min-height:42px !important; padding:0 !important; border:0 !important; color:#f4d681 !important; background:transparent !important; font:800 18px 'Oswald',sans-serif; }
.market-page .market-price-field input { width:100% !important; min-width:0; padding:0 6px !important; border-radius:0 !important; outline:none !important; box-shadow:none !important; appearance:textfield; -moz-appearance:textfield; }
.market-page .market-price-field input::-webkit-inner-spin-button,.market-page .market-price-field input::-webkit-outer-spin-button { margin:0; appearance:none; -webkit-appearance:none; }
.market-page .market-price-field > div { grid-template-columns:28px minmax(0,1fr) auto; gap:10px; padding:0 14px; }
.market-page .market-price-field > div:focus-within { border-color:rgba(239,208,131,.52); box-shadow:0 0 0 2px rgba(226,184,94,.07); }
.market-page .market-price-field b { padding-left:10px; border-left:1px solid rgba(255,255,255,.09); white-space:nowrap; }
.market-page.market-rebuild .market-lot-grid { align-items:stretch; grid-auto-rows:1fr; }
.market-page.market-rebuild .market-lot-card { height:100%; min-height:0; display:flex; flex-direction:column; box-sizing:border-box; }
.market-page.market-rebuild .market-lot-card .market-lot-media { flex:0 0 250px; }
.market-page.market-rebuild .market-lot-card .market-lot-content { flex:1 1 auto; display:flex; flex-direction:column; }
.market-page.market-rebuild .market-lot-card .market-lot-actions { margin-top:auto; }
@media (max-width:720px) { .market-page.market-rebuild .market-lot-card .market-lot-media { flex-basis:225px; } }
.market-page.market-rebuild [data-market-collection-card][hidden],.market-page.market-rebuild [data-market-listing][hidden] { display:none !important; }
.market-page.market-rebuild [data-collection-empty][hidden],.market-page.market-rebuild [data-market-no-results][hidden] { display:none !important; }
.market-page .market-lot-metrics.single { grid-template-columns:1fr; }
.market-stored-skin { display:block; margin-top:5px; color:#e0bf70; font-size:10px; font-weight:800; letter-spacing:.04em; }
.market-preview-species { display:grid !important; gap:7px !important; margin-top:14px !important; }
.market-preview-species > span { color:#d5bf87; font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.market-preview-species select { width:100%; min-height:48px; padding:0 38px 0 13px; border:1px solid rgba(226,184,94,.22); border-radius:11px; outline:0; color:#f3f1ee; background:#13110e; font:700 12px inherit; cursor:pointer; }
.market-preview-species select:focus { border-color:rgba(239,208,131,.55); box-shadow:0 0 0 3px rgba(226,184,94,.07); }
.market-preview-species > small { color:#898784; font-size:10px; line-height:1.4; }
.market-price-field b { color:#a5a3a0; font-size:9px; letter-spacing:.06em; text-transform:uppercase; }
.market-price-field > small { color:#898784; font-size:10px; line-height:1.4; }
@media (max-width:860px) { .market-section-filters { grid-template-columns:1fr; }.market-section-filters > div { overflow-x:auto; }.market-section-filters > strong { text-align:left; }.market-section-filters > strong span { display:inline; margin-right:5px; } }
.market-page .market-lot-actions.has-edit { grid-template-columns:repeat(3,minmax(0,1fr)); }
.market-page .market-edit { border:1px solid rgba(226,184,94,.3) !important; color:#ecd18f !important; background:rgba(226,184,94,.08) !important; transition:.18s ease; }
.market-page .market-edit:hover { border-color:rgba(239,208,131,.58) !important; color:#fff0bf !important; background:rgba(226,184,94,.16) !important; transform:translateY(-1px); }
.market-edit-price[hidden] { display:none !important; }
.market-edit-price { display:grid; gap:10px; margin-top:12px; padding:12px; border:1px solid rgba(226,184,94,.2); border-radius:12px; background:rgba(226,184,94,.045); }
.market-edit-price label { display:grid; gap:6px; }
.market-edit-price label > span { color:#cbb77f; font-size:9px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.market-edit-price label > div { min-height:46px; display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:8px; padding:0 10px; border:1px solid rgba(255,255,255,.11); border-radius:10px; background:#13110e; }
.market-edit-price label > div:focus-within { border-color:rgba(239,208,131,.55); }
.market-edit-price img { width:20px; height:20px; object-fit:contain; }
.market-page .market-edit-price input { min-height:40px !important; padding:0 !important; border:0 !important; outline:0; color:#f2d17b !important; background:transparent !important; font:800 17px 'Oswald',sans-serif; }
.market-edit-price b { color:#93918e; font-size:8px; text-transform:uppercase; }
.market-edit-price > div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.market-edit-price > div button { min-height:40px; border:1px solid rgba(255,255,255,.1); border-radius:9px; color:#d3d1ce; background:rgba(255,255,255,.04); font-size:10px; font-weight:900; text-transform:uppercase; cursor:pointer; }
.market-edit-price > div button[type="submit"] { border-color:rgba(226,184,94,.4); color:#1b1508; background:linear-gradient(135deg,#efd083,#c7983f); }
@media (max-width:420px) { .market-page .market-lot-actions.has-edit { grid-template-columns:1fr; } }
.market-page.market-rebuild .market-sell-media.is-dino,.market-page.market-rebuild .market-lot-media.is-dino { height:230px; padding:22px 18px; overflow:hidden; }
.market-page.market-rebuild .market-sell-media.is-dino img,.market-page.market-rebuild .market-lot-media.is-dino img { width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important; padding:0 !important; object-fit:scale-down !important; object-position:center center !important; transform:scale(.9) !important; transform-origin:center center; }
@media (max-width:720px) { .market-page.market-rebuild .market-sell-media.is-dino,.market-page.market-rebuild .market-lot-media.is-dino { height:210px; padding:20px 15px; }.market-page.market-rebuild .market-sell-media.is-dino img,.market-page.market-rebuild .market-lot-media.is-dino img { transform:scale(.88) !important; } }
.market-page.market-rebuild .market-sell-media,.market-page.market-rebuild .market-lot-media { position:relative; height:250px !important; padding:0 !important; overflow:hidden; }
.market-page.market-rebuild .market-sell-media > img,.market-page.market-rebuild .market-lot-media > img { position:absolute !important; z-index:1; inset:18px !important; display:block !important; width:calc(100% - 36px) !important; height:calc(100% - 36px) !important; max-width:none !important; max-height:none !important; margin:0 !important; padding:0 !important; object-fit:contain !important; object-position:center center !important; transform:none !important; }
.market-page.market-rebuild .market-sell-media.is-skin > img,.market-page.market-rebuild .market-lot-media.is-skin > img { inset:4px 10px 14px !important; width:calc(100% - 20px) !important; height:calc(100% - 18px) !important; object-position:center center !important; }
.market-page.market-rebuild .market-sell-media.is-skin > img,.market-page.market-rebuild .market-lot-media.is-skin > img { transform:scale(var(--market-skin-zoom,1.28)) !important; transform-origin:center center !important; }
@media (max-width:720px) { .market-page.market-rebuild .market-sell-media,.market-page.market-rebuild .market-lot-media { height:225px !important; }.market-page.market-rebuild .market-sell-media > img,.market-page.market-rebuild .market-lot-media > img { inset:16px !important; width:calc(100% - 32px) !important; height:calc(100% - 32px) !important; } }

/* Mercado: navegacion superior y cuatro tarjetas por fila en escritorio. */
.market-page.market-rebuild .market-workspace {
    grid-template-columns:minmax(0,1fr);
}
.market-page.market-rebuild .market-nav {
    position:static;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:8px;
    box-sizing:border-box;
}
.market-page.market-rebuild .market-nav-heading,
.market-page.market-rebuild .market-nav-note { display:none; }
.market-page.market-rebuild .market-nav > button {
    min-width:0;
    margin:0;
}
.market-page.market-rebuild .market-panel {
    width:100%;
    box-sizing:border-box;
}
.market-page.market-rebuild .market-lot-grid,
.market-page.market-rebuild .market-sell-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
}
@media (max-width:980px) {
    .market-page.market-rebuild .market-lot-grid,
    .market-page.market-rebuild .market-sell-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
    .market-page.market-rebuild .market-lot-grid,
    .market-page.market-rebuild .market-sell-grid { grid-template-columns:1fr; }
}
@media (max-width:560px) {
    .market-page.market-rebuild .market-nav {
        display:flex;
        flex-wrap:nowrap;
        overflow-x:auto;
        scrollbar-width:thin;
        scrollbar-color:rgba(224,178,79,.3) transparent;
    }
    .market-page.market-rebuild .market-nav > button {
        min-width:158px;
        flex:0 0 158px;
    }
}

/* Mercado: tarjetas de publicación uniformes y cantidad de usos destacada. */
.market-page.market-rebuild .market-sell-grid {
    align-items:stretch;
    grid-auto-rows:1fr;
}
.market-page.market-rebuild .market-sell-card {
    display:flex;
    width:100%;
    min-height:740px;
    height:100%;
    box-sizing:border-box;
}
.market-page.market-rebuild .market-sell-card > h3 {
    min-height:30px;
    margin-bottom:5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.market-page.market-rebuild .market-sell-card > p {
    display:-webkit-box;
    min-height:40px;
    max-height:40px;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.market-page.market-rebuild .market-sell-card .market-preview-species,
.market-page.market-rebuild .market-sell-card .market-sell-quantity {
    flex:0 0 auto;
}
.market-page.market-rebuild .market-sell-card .market-price-field {
    margin-top:auto!important;
}
.market-page.market-rebuild .market-lot-uses {
    align-content:center;
    justify-items:start;
    min-width:92px;
    padding-left:13px;
    border-left:1px solid rgba(226,184,94,.16);
}
.market-page.market-rebuild .market-lot-metrics .market-use-count {
    display:inline-flex;
    min-width:62px;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:4px 12px;
    border:1px solid rgba(239,208,131,.42);
    border-radius:10px;
    color:#ffe5a2;
    background:linear-gradient(135deg,rgba(197,144,47,.3),rgba(111,73,19,.2));
    font:900 26px/1 'Oswald',sans-serif;
    letter-spacing:.03em;
    box-shadow:inset 0 1px rgba(255,255,255,.08),0 7px 16px rgba(0,0,0,.2);
}
.market-page.market-rebuild .market-lot-ribbon {
    padding:7px 11px;
    font-size:11px;
}
@media (max-width:720px) {
    .market-page.market-rebuild .market-sell-card { min-height:700px; }
    .market-page.market-rebuild .market-lot-metrics .market-use-count { font-size:24px; }
}

/* Publicación compacta: skins y dinosaurios conservan la misma estructura sin
   usar un alto artificial ni dejar un bloque vacío antes del precio. */
.market-page.market-rebuild .market-sell-grid {
    grid-auto-rows:1fr;
}
.market-page.market-rebuild .market-sell-card {
    min-height:0;
    height:100%;
}
.market-page.market-rebuild .market-sell-media {
    height:205px !important;
}
.market-page.market-rebuild .market-sell-card .market-sell-options {
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(92px,.75fr);
    gap:8px;
    min-height:98px;
    height:98px;
    margin-top:12px;
}
.market-page.market-rebuild .market-sell-card .market-sell-options > label {
    min-width:0;
    margin-top:0 !important;
}
.market-page.market-rebuild .market-sell-options .market-preview-species,
.market-page.market-rebuild .market-sell-options .market-sell-quantity,
.market-page.market-rebuild .market-dino-sale-fact {
    display:grid !important;
    grid-template-columns:1fr;
    grid-template-rows:auto 42px auto;
    align-content:start;
    gap:5px !important;
    min-width:0;
    min-height:0;
    height:100%;
    box-sizing:border-box;
    margin:0 !important;
    padding:9px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:11px;
    background:rgba(255,255,255,.025);
}
.market-page.market-rebuild .market-sell-options .market-preview-species > span,
.market-page.market-rebuild .market-sell-options .market-sell-quantity > span,
.market-page.market-rebuild .market-dino-sale-fact > span {
    overflow:hidden;
    color:#c8b47f;
    font-size:9px;
    font-weight:900;
    letter-spacing:.07em;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}
.market-page.market-rebuild .market-sell-options .market-preview-species select,
.market-page.market-rebuild .market-sell-options .market-sell-quantity input {
    grid-column:1;
    grid-row:2;
    width:100%;
    min-width:0;
    min-height:42px !important;
    height:42px;
    box-sizing:border-box;
    padding:0 10px;
    border-radius:9px;
}
.market-page.market-rebuild .market-sell-options .market-sell-quantity input {
    text-align:center;
}
.market-page.market-rebuild .market-sell-options small {
    grid-column:1;
    grid-row:3;
    overflow:hidden;
    color:#898784;
    font-size:8px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.market-page.market-rebuild .market-dino-sale-fact {
    grid-template-rows:auto 1fr;
}
.market-page.market-rebuild .market-dino-sale-fact strong {
    align-self:center;
    color:#edebe8;
    font-size:11px;
    line-height:1.3;
}
.market-page.market-rebuild .market-sell-card .market-price-field {
    margin-top:12px !important;
}
.market-page.market-rebuild .market-sell-card > button {
    min-height:46px;
}
@media (max-width:720px) {
    .market-page.market-rebuild .market-sell-card { min-height:0; }
    .market-page.market-rebuild .market-sell-media { height:195px !important; }
}

/* Confirmacion global para borrar mensajes: comparte el lenguaje visual fosil
   de la pagina y recupera el viewport completo aun con el zoom general al 80%. */
.social-chat-delete-modal[hidden] { display:none !important; }
.social-chat-delete-modal {
    position:fixed !important;
    z-index:1500;
    inset:0 !important;
    display:grid;
    width:100vw !important;
    height:100dvh !important;
    min-height:100dvh;
    place-items:center;
    box-sizing:border-box;
    padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
    isolation:isolate;
}
.social-chat-delete-backdrop {
    position:absolute;
    z-index:-1;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:rgba(4,4,4,.86);
    backdrop-filter:blur(12px) saturate(.75);
    cursor:default;
}
.social-chat-delete-card {
    position:relative;
    width:min(470px,calc(100vw - 32px));
    max-height:calc(100dvh - 32px);
    overflow:auto;
    border:1px solid rgba(218,74,68,.32);
    border-radius:22px;
    color:#f4f1e9;
    background:radial-gradient(circle at 9% 0%,rgba(170,48,43,.18),transparent 36%),linear-gradient(145deg,#171512,#080808 74%);
    box-shadow:0 36px 110px rgba(0,0,0,.76),0 0 0 1px rgba(238,204,124,.035) inset;
    animation:socialDeleteEnter .22s cubic-bezier(.16,1,.3,1);
}
.social-chat-delete-accent {
    position:absolute;
    inset:0 20% auto;
    height:3px;
    border-radius:0 0 8px 8px;
    background:linear-gradient(90deg,transparent,#df4c46,#e5b85c,#df4c46,transparent);
    box-shadow:0 0 20px rgba(223,76,70,.42);
}
.social-chat-delete-head {
    display:grid;
    grid-template-columns:50px minmax(0,1fr) 36px;
    align-items:start;
    gap:14px;
    padding:25px 24px 20px;
    border-bottom:1px solid rgba(255,255,255,.07);
}
.social-chat-delete-icon {
    display:grid;
    width:50px;
    height:50px;
    place-items:center;
    border:1px solid rgba(223,76,70,.34);
    border-radius:15px;
    color:#ff827c;
    background:linear-gradient(145deg,rgba(223,76,70,.17),rgba(113,28,25,.1));
    box-shadow:0 13px 30px rgba(96,23,20,.25);
    font-size:17px;
}
.social-chat-delete-head p { margin:1px 0 4px;color:#e46a64;font-size:9px;font-weight:900;letter-spacing:.2em;text-transform:uppercase; }
.social-chat-delete-head h2 { margin:0;color:#fff;font:800 28px/1 'Oswald',sans-serif;letter-spacing:.015em;text-transform:uppercase; }
.social-chat-delete-head div > span { display:block;margin-top:8px;color:#989693;font-size:11px;line-height:1.55; }
.social-chat-delete-close {
    display:grid;
    width:36px;
    height:36px;
    place-items:center;
    border:1px solid rgba(255,255,255,.09);
    border-radius:10px;
    color:#888683;
    background:rgba(255,255,255,.035);
    transition:.18s ease;
}
.social-chat-delete-close:hover { border-color:rgba(229,184,92,.3);color:#f0d99c;background:rgba(229,184,92,.08); }
.social-chat-delete-body { padding:20px 24px 17px; }
.social-chat-delete-body > small { display:flex;align-items:center;gap:7px;margin-bottom:9px;color:#7f7d7a;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase; }
.social-chat-delete-body blockquote {
    max-height:128px;
    overflow:auto;
    margin:0;
    border:1px solid rgba(255,255,255,.08);
    border-left:3px solid rgba(218,74,68,.62);
    border-radius:12px;
    padding:13px 14px;
    color:#dddbd8;
    background:rgba(0,0,0,.28);
    font-size:12px;
    line-height:1.55;
    overflow-wrap:anywhere;
}
.social-chat-delete-warning { display:flex;align-items:center;gap:8px;margin:13px 0 0;color:#b97975;font-size:10px;line-height:1.4; }
.social-chat-delete-feedback { margin:11px 0 0;border:1px solid rgba(248,113,113,.2);border-radius:9px;padding:9px 11px;color:#fca5a5;background:rgba(127,29,29,.12);font-size:10px;line-height:1.45; }
.social-chat-delete-actions { display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 24px 24px; }
.social-chat-delete-actions button { display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;border-radius:11px;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;transition:.18s ease; }
.social-chat-delete-actions button:hover:not(:disabled) { transform:translateY(-1px); }
.social-chat-delete-keep { border:1px solid rgba(255,255,255,.1);color:#ceccc9;background:rgba(255,255,255,.035); }
.social-chat-delete-keep:hover:not(:disabled) { border-color:rgba(229,184,92,.26);color:#f0d99c;background:rgba(229,184,92,.07); }
.social-chat-delete-confirm { border:1px solid rgba(238,82,75,.5);color:#fff;background:linear-gradient(135deg,#be3935,#7d201d);box-shadow:0 13px 29px rgba(108,25,22,.25); }
.social-chat-delete-confirm:hover:not(:disabled) { border-color:#ff837e;background:linear-gradient(135deg,#d94b45,#962723);box-shadow:0 15px 34px rgba(126,28,25,.33); }
.social-chat-delete-actions button:disabled,.social-chat-delete-close:disabled,.social-chat-delete-backdrop:disabled { opacity:.55;cursor:wait; }
body.social-chat-delete-open { overflow:hidden !important;overscroll-behavior:none; }
@keyframes socialDeleteEnter { from { opacity:0;transform:translateY(15px) scale(.965); } to { opacity:1;transform:none; } }
@media (min-width:1200px) and (pointer:fine) {
    html:not(.native-page-scale) .social-chat-delete-modal { zoom:1.25; }
}
@media (max-width:520px) {
    .social-chat-delete-head { grid-template-columns:43px minmax(0,1fr) 34px;gap:11px;padding:21px 17px 17px; }
    .social-chat-delete-icon { width:43px;height:43px;border-radius:12px; }
    .social-chat-delete-head h2 { font-size:24px; }
    .social-chat-delete-body { padding:17px; }
    .social-chat-delete-actions { grid-template-columns:1fr;padding:0 17px 17px; }
    .social-chat-delete-confirm { grid-row:1; }
}
@media (prefers-reduced-motion:reduce) { .social-chat-delete-card { animation:none; } }

/* Intercambios V4: tablero premium, flujo guiado y lectura clara de propuestas. */
.trades-page-v4 {
    width:min(1320px,calc(100% - 34px));
    margin:24px auto 78px;
    color:#f3f0e7;
}
.trades-page-v4 .trades-hero {
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 150px auto;
    min-height:280px;
    align-items:center;
    gap:30px;
    overflow:hidden;
    padding:38px 40px;
    border:1px solid rgba(231,190,95,.34) !important;
    border-radius:24px;
    background:
        linear-gradient(90deg,rgba(8,7,5,.97) 0%,rgba(14,11,7,.83) 48%,rgba(8,7,5,.58) 100%),
        url('../img/coinflip_vault_bg.webp') center 58%/cover no-repeat !important;
    box-shadow:0 34px 90px rgba(0,0,0,.46),inset 0 1px rgba(255,255,255,.08) !important;
}
.trades-page-v4 .trades-hero::before{position:absolute;inset:0;background:linear-gradient(115deg,transparent 44%,rgba(255,217,123,.08) 52%,transparent 60%);background-size:220% 100%;content:"";animation:tradeHeroSweep 8s ease-in-out infinite;pointer-events:none}.trades-page-v4 .trades-hero::after{right:-90px;bottom:-155px;width:360px;height:360px;border-color:rgba(235,195,99,.2);box-shadow:0 0 0 34px rgba(235,195,99,.035),0 0 0 70px rgba(235,195,99,.022)}
@keyframes tradeHeroSweep{0%,20%{background-position:130% 0}70%,100%{background-position:-70% 0}}
.trades-hero-copy{position:relative;z-index:2;max-width:760px}.trades-page-v4 .trades-hero h1{margin:8px 0 12px;color:#fff;font:900 clamp(42px,5vw,66px)/.9 Oswald,sans-serif;letter-spacing:-.035em;text-transform:uppercase;text-shadow:0 14px 38px rgba(0,0,0,.64)}.trades-page-v4 .trades-hero-copy>p:not(.hub-kicker){max-width:680px;color:#b9b6aa;font-size:13px;line-height:1.65}.trades-hero-trust{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.trades-hero-trust span{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(228,188,91,.2);border-radius:999px;padding:7px 10px;color:#d9c488;background:rgba(8,7,5,.52);font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.trades-hero-seal{position:relative;z-index:2;display:grid;width:126px;height:126px;place-items:center;border:1px solid rgba(240,207,126,.4);border-radius:50%;color:#f3cf76;background:radial-gradient(circle,rgba(199,145,46,.22),rgba(6,6,5,.82) 68%);box-shadow:0 0 0 8px rgba(7,6,4,.36),0 0 42px rgba(216,166,60,.18);text-align:center}.trades-hero-seal::before{position:absolute;inset:9px;border:1px dashed rgba(240,207,126,.35);border-radius:inherit;content:"";animation:socialFrameSpin 22s linear infinite}.trades-hero-seal i{font-size:27px}.trades-hero-seal span,.trades-hero-seal b{display:block;position:absolute;left:0;width:100%;font-size:8px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.trades-hero-seal span{top:24px}.trades-hero-seal b{bottom:23px}.trades-page-v4 .trades-hero-back{position:relative;z-index:2;min-height:45px;border-color:rgba(238,204,117,.36);border-radius:11px;color:#f2d48b;background:rgba(7,7,5,.56);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;transition:.2s ease}.trades-page-v4 .trades-hero-back:hover{transform:translateY(-2px);border-color:rgba(248,218,143,.7);background:rgba(207,155,52,.14)}
.trades-page-v4 .trades-overview-stats{gap:12px;margin-top:14px}.trades-page-v4 .trades-overview-stats article{position:relative;overflow:hidden;min-height:112px;padding:18px 19px;border:1px solid rgba(229,191,100,.17) !important;border-radius:16px;background:linear-gradient(145deg,rgba(24,20,14,.98),rgba(8,8,6,.99)) !important;box-shadow:0 16px 36px rgba(0,0,0,.2)}.trades-page-v4 .trades-overview-stats article::after{position:absolute;right:-22px;bottom:-28px;width:82px;height:82px;border:1px solid rgba(232,193,98,.08);border-radius:50%;content:""}.trades-page-v4 .trades-overview-stats span{color:#989487;font-size:8px;letter-spacing:.14em}.trades-page-v4 .trades-overview-stats strong{margin-top:11px;color:#f2cc70;font:800 31px/1 Oswald,sans-serif}.trades-page-v4 .trades-overview-stats small{color:#7b7976;font-size:9px}
.trade-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:12px;margin-top:14px;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(7,8,6,.72)}.trade-flow>span{display:grid;grid-template-columns:28px 28px minmax(0,1fr);align-items:center;gap:8px;min-height:48px;padding:7px 10px;border:1px solid rgba(255,255,255,.06);border-radius:11px;color:#7a7875;background:rgba(255,255,255,.025)}.trade-flow>span>b{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:rgba(255,255,255,.055);font-size:9px}.trade-flow>span>i{font-size:13px;text-align:center}.trade-flow>span>small{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.trade-flow>span.active{border-color:rgba(229,185,83,.36);color:#f1d083;background:rgba(198,146,58,.09);box-shadow:inset 0 0 24px rgba(198,146,58,.04)}.trade-flow>span.done{color:#f0c980;border-color:rgba(219,172,87,.2);background:rgba(171,124,47,.07)}.trade-flow>i{color:#42403d;font-size:9px}
.trades-page-v4 .trades-friend-picker,.trades-page-v4 .trades-partner-card,.trades-page-v4 .trade-builder-column,.trades-page-v4 .trades-offers-section,.trades-page-v4 .trade-builder-submit{border:1px solid rgba(229,191,100,.17) !important;background:linear-gradient(145deg,rgba(22,19,13,.98),rgba(8,8,6,.99)) !important;box-shadow:0 22px 55px rgba(0,0,0,.25) !important}.trades-page-v4 .trades-friend-picker,.trades-page-v4 .trades-offers-section{margin-top:15px;padding:26px;border-radius:19px}.trades-page-v4 .trades-friend-picker h2,.trades-page-v4 .trades-offers-section h2{color:#fff;font:800 31px/1 Oswald,sans-serif;text-transform:uppercase}.trades-page-v4 .trade-friend-search{max-width:none;min-height:48px;margin-top:19px;border-color:rgba(229,191,100,.18);background:#0b0c09}.trades-page-v4 .trade-friend-search input{min-height:46px}.trades-page-v4 .trades-friend-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.trades-page-v4 .trades-friend-grid a{min-height:75px;padding:12px;border-color:rgba(229,191,100,.14) !important;border-radius:13px;background:rgba(255,255,255,.026) !important}.trades-page-v4 .trades-friend-grid a:hover{border-color:rgba(240,205,121,.48) !important;background:rgba(198,146,58,.09) !important;box-shadow:0 13px 28px rgba(0,0,0,.22)}.trades-page-v4 .trades-friend-grid img{width:48px;height:48px;border-radius:12px}.trades-page-v4 .trades-friend-grid strong{font-size:12px}.trades-page-v4 .trades-friend-grid small{font-size:9px}
.trades-page-v4 .trades-partner-card{position:relative;min-height:94px;margin-top:15px;padding:16px 20px;border-radius:17px}.trades-page-v4 .trades-partner-card::before{position:absolute;inset:0 auto 0 0;width:3px;border-radius:17px 0 0 17px;background:linear-gradient(#f3d17d,#9c671f);content:""}.trades-page-v4 .trades-partner-card>img{width:62px;height:62px;border-radius:16px;box-shadow:0 0 0 4px rgba(198,146,58,.08)}.trades-page-v4 .trades-partner-card h2{color:#fff;font:800 26px/1 Oswald,sans-serif;text-transform:uppercase}.trades-page-v4 .trades-partner-card>div{flex:1}.trades-page-v4 .trades-partner-card>a{min-height:40px;border-color:rgba(255,255,255,.09);color:#b8b9b2;background:rgba(255,255,255,.035);font-size:9px;font-weight:900;text-transform:uppercase}
.trades-page-v4 .trade-builder{gap:14px;margin-top:14px}.trades-page-v4 .trade-builder-column{max-height:690px;padding:20px;border-radius:18px}.trades-page-v4 .trade-builder-column.offered{border-top:3px solid #d7a64c !important}.trades-page-v4 .trade-builder-column.requested{border-top:3px solid #dbac56 !important}.trades-page-v4 .trade-builder-column>header{top:-20px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:-20px -20px 0;padding:20px;border-bottom:1px solid rgba(255,255,255,.075);background:linear-gradient(180deg,rgba(22,19,13,.995),rgba(22,19,13,.96)) !important}.trades-page-v4 .trade-builder-column.requested>header{background:linear-gradient(180deg,rgba(19,17,14,.995),rgba(19,17,14,.96)) !important}.trades-page-v4 .trade-builder-column>header h2{color:#fff;font:800 27px/1 Oswald,sans-serif;text-transform:uppercase}.trades-page-v4 .trade-builder-column>header>div>span{display:inline-flex;align-items:center;gap:7px;color:#f1ca6c !important;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.trades-page-v4 .trade-builder-column.requested>header>div>span{color:#edc476 !important}.trades-page-v4 .trade-selection-count{flex:0 0 auto;border:1px solid rgba(230,191,96,.18);border-radius:999px;padding:7px 9px;color:#d7bd79;background:rgba(198,146,58,.07);font-size:8px;letter-spacing:.06em;text-transform:uppercase}.trades-page-v4 .requested .trade-selection-count{border-color:rgba(219,172,86,.2);color:#efc679;background:rgba(219,172,86,.07)}.trades-page-v4 .trade-item-group h3{margin:17px 0 9px;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.055);color:#b7b6ad;font-size:9px}.trades-page-v4 .trade-item-choice{position:relative;min-height:67px;padding:8px 10px;border-color:rgba(255,255,255,.075) !important;border-radius:12px;background:rgba(255,255,255,.025) !important}.trades-page-v4 .trade-item-choice:hover{transform:translateX(2px);border-color:rgba(232,194,101,.38) !important;background:rgba(198,146,58,.07) !important}.trades-page-v4 .trade-item-choice:has(input:checked){border-color:rgba(239,204,119,.58) !important;background:linear-gradient(90deg,rgba(198,146,58,.17),rgba(198,146,58,.035)) !important;box-shadow:inset 3px 0 #d8aa4d}.trades-page-v4 .requested .trade-item-choice:has(input:checked){border-color:rgba(230,186,105,.5) !important;background:linear-gradient(90deg,rgba(186,138,56,.15),rgba(186,138,56,.025)) !important;box-shadow:inset 3px 0 #ddae59}.trades-page-v4 .trade-choice-art>img{width:48px;height:48px;border-color:rgba(232,194,101,.15);background:radial-gradient(circle at 50% 78%,rgba(198,146,58,.18),transparent 62%),#0f0d0a}.trades-page-v4 .trade-choice-art.is-dino>img{width:68px;height:60px}.trades-page-v4 .trade-item-choice>i{border-radius:50%;color:#7b7976;background:rgba(255,255,255,.06)}.trades-page-v4 .trade-item-choice:has(input:checked)>i{color:#19150a;background:#ebc969;box-shadow:0 0 18px rgba(235,201,105,.28)}
.trades-page-v4 .trade-builder-submit{grid-column:1/-1;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(300px,1.2fr) auto;align-items:end;gap:16px;padding:18px 20px;border-radius:16px}.trade-submit-copy{display:grid;gap:4px}.trade-submit-copy>span{color:#d5b765;font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.trade-submit-copy strong{color:#f1eee4;font-size:12px}.trade-submit-copy small{color:#7e7c79;font-size:9px}.trades-page-v4 .trade-builder-submit>label{display:grid;grid-column:auto;gap:7px}.trades-page-v4 .trade-builder-submit>label>span{color:#93918e;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.trades-page-v4 .trade-builder-submit input{min-height:46px;margin:0;border-color:rgba(255,255,255,.1);background:#0c0c0c}.trades-page-v4 .trade-builder-submit button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;padding:0 19px;border:1px solid #eccb76;border-radius:10px;color:#191206;background:linear-gradient(135deg,#efd17f,#b87d28);box-shadow:0 12px 28px rgba(150,97,27,.2);font-size:9px;letter-spacing:.08em;text-transform:uppercase;transition:.2s ease}.trades-page-v4 .trade-builder-submit button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.08)}
.trades-page-v4 .trades-offers-section>header{align-items:center}.trades-page-v4 .trades-offers-section>header>div:first-child>p{margin-top:7px;text-align:left}.trade-offer-filters{display:flex;gap:6px;padding:5px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:#0b0b0b}.trade-offer-filters button{min-height:34px;border:0;border-radius:8px;padding:0 12px;color:#868481;background:transparent;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.trade-offer-filters button.active{color:#191308;background:linear-gradient(135deg,#edcc7a,#b98531)}.trades-page-v4 .trade-offers-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.trades-page-v4 .trade-offer-card{padding:17px;border:1px solid rgba(255,255,255,.075) !important;border-left:0 !important;border-radius:14px;background:rgba(255,255,255,.025) !important;box-shadow:inset 0 1px rgba(255,255,255,.025)}.trades-page-v4 .trade-offer-card.incoming{box-shadow:inset 3px 0 #d9a952}.trades-page-v4 .trade-offer-card.outgoing{box-shadow:inset 3px 0 #d1a44a}.trades-page-v4 .trade-offer-card[hidden]{display:none}.trades-page-v4 .trade-offer-heading{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center}.trade-direction-icon{display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(230,191,96,.16);border-radius:11px;color:#d7af55;background:rgba(198,146,58,.07)}.incoming .trade-direction-icon{border-color:rgba(221,174,89,.2);color:#e6ba69;background:rgba(185,137,56,.07)}.trades-page-v4 .trade-offer-heading>div{display:grid;gap:6px;min-width:0}.trades-page-v4 .trade-offer-heading strong{overflow:hidden;color:#eceae1;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.trades-page-v4 .trade-status{width:max-content;padding:4px 7px;font-size:7px;letter-spacing:.08em;text-transform:uppercase}.trades-page-v4 .trade-offer-heading>small{display:flex;align-items:center;gap:5px;margin:0;color:#767471;font-size:8px;white-space:nowrap}.trades-page-v4 .trade-offer-items p{padding:12px;border:1px solid rgba(255,255,255,.045);background:#0b0b0b;font-size:10px;line-height:1.55}.trades-page-v4 .trade-offer-card blockquote{border:1px solid rgba(225,183,85,.1);border-left:2px solid #b88a31;border-radius:8px;background:rgba(198,146,58,.035)}.trades-page-v4 .trade-offer-actions button{min-height:36px;padding:0 13px;border:1px solid rgba(255,255,255,.08);font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.trades-page-v4 .trade-offer-actions .accept{border-color:rgba(225,184,89,.48);color:#171106 !important;background:linear-gradient(135deg,#e8c86f,#ad7626) !important}
.friends-pack-card-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.friends-pack-card-actions>.friends-trade-button{border-color:rgba(225,177,83,.3);color:#e2bc71;background:rgba(198,146,58,.09)}.friends-pack-card-actions>.friends-trade-button:hover{border-color:rgba(239,202,116,.58);color:#ffe2a0;background:rgba(198,146,58,.17);transform:translateY(-1px)}
@media(max-width:980px){.trades-page-v4 .trades-hero{grid-template-columns:minmax(0,1fr) 112px}.trades-page-v4 .trades-hero-back{grid-column:1/-1;justify-self:start}.trades-hero-seal{width:104px;height:104px}.trades-page-v4 .trades-friend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trades-page-v4 .trade-builder-submit{grid-template-columns:1fr 1fr}.trades-page-v4 .trade-builder-submit button{grid-column:1/-1}.trades-page-v4 .trades-offers-list{grid-template-columns:1fr}}
@media(max-width:720px){.trades-page-v4{width:min(100% - 22px,1320px);margin-top:14px}.trades-page-v4 .trades-hero{grid-template-columns:1fr;min-height:0;padding:27px 23px}.trades-page-v4 .trades-hero h1{font-size:39px}.trades-hero-seal{display:none}.trades-page-v4 .trades-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-flow{grid-template-columns:1fr;gap:7px}.trade-flow>i{display:none}.trades-page-v4 .trades-friend-picker,.trades-page-v4 .trades-offers-section{padding:19px}.trades-page-v4 .trades-friend-grid{grid-template-columns:1fr}.trades-page-v4 .trade-builder{grid-template-columns:1fr}.trades-page-v4 .trade-builder-column{max-height:540px}.trades-page-v4 .trade-builder-submit{grid-column:auto;grid-template-columns:1fr}.trades-page-v4 .trade-builder-submit button{grid-column:auto}.trades-page-v4 .trades-offers-section>header{align-items:flex-start;flex-direction:column}.trade-offer-filters{width:100%;overflow-x:auto}.trade-offer-filters button{flex:1}.trades-page-v4 .trade-offer-heading{grid-template-columns:40px minmax(0,1fr)}.trades-page-v4 .trade-offer-heading>small{grid-column:2}.friends-pack-card-actions{grid-template-columns:1fr 1fr}.friends-pack-card-actions>a:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.trades-page-v4 .trades-hero::before,.trades-hero-seal::before{animation:none}}

/* Intercambios: filtros independientes por inventario y previews más legibles. */
.trades-page-v4 .trade-inventory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 4px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: #0b0b0b;
}
.trades-page-v4 .trade-inventory-filters button {
    display: inline-flex;
    min-height: 34px;
    flex: 1 1 118px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 9px;
    color: #8b8986;
    background: transparent;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.trades-page-v4 .trade-inventory-filters button:hover,
.trades-page-v4 .trade-inventory-filters button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(235,199,111,.34);
    color: #f1d28b;
    background: rgba(198,146,58,.09);
}
.trades-page-v4 .trade-inventory-filters button.active {
    border-color: rgba(239,204,119,.5);
    color: #191308;
    background: linear-gradient(135deg,#edcc7a,#b98531);
    box-shadow: 0 7px 18px rgba(158,105,30,.2);
}
.trades-page-v4 .trade-item-group[hidden] {
    display: none !important;
}
.trades-page-v4 .trade-item-choice.is-locked {
    border-style: dashed !important;
    border-color: rgba(238,177,87,.24) !important;
    background: rgba(79,58,24,.08) !important;
    cursor: not-allowed;
    opacity: .58;
}
.trades-page-v4 .trade-item-choice.is-locked:hover {
    transform: none;
    border-color: rgba(238,177,87,.34) !important;
    background: rgba(79,58,24,.12) !important;
}
.trades-page-v4 .trade-item-choice.is-locked .trade-choice-art > img {
    filter: grayscale(.7) brightness(.72) drop-shadow(0 5px 5px rgba(0,0,0,.35));
}
.trades-page-v4 .trade-item-lock {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(235,190,91,.28);
    border-radius: 999px;
    padding: 6px 8px;
    color: #e4bd67;
    background: rgba(198,146,58,.1);
    font-size: 7px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.trades-page-v4 .trade-item-choice {
    min-height: 78px;
}
.trades-page-v4 .trade-choice-art > img {
    width: 58px;
    height: 58px;
}
.trades-page-v4 .trade-item-choice:has(.trade-choice-art.is-dino) {
    min-height: 88px;
}
.trades-page-v4 .trade-choice-art.is-dino > img {
    width: 82px;
    height: 72px;
}
@media (max-width: 720px) {
    .trades-page-v4 .trade-inventory-filters button {
        flex-basis: calc(50% - 3px);
    }
    .trades-page-v4 .trade-choice-art.is-dino > img {
        width: 74px;
        height: 66px;
    }
}

/* Profile presentation V3: sharper collectible frames and cinematic living backgrounds. */
.profile-style-preview,
.friend-profile-hero {
    --epic-bg-x: 50%;
    --epic-bg-y: 50%;
    --epic-bg-scale: 108%;
    --epic-bg-x-end: 53%;
    --epic-bg-y-end: 48%;
    --epic-bg-scale-end: 116%;
    background-image:
        linear-gradient(90deg,rgba(3,5,4,.91) 0%,rgba(3,5,4,.64) 42%,rgba(3,5,4,.19) 100%),
        linear-gradient(0deg,rgba(1,2,2,.78),transparent 63%),
        var(--profile-bg) !important;
    background-position:center,center,var(--epic-bg-x) var(--epic-bg-y) !important;
    background-size:auto,auto,var(--epic-bg-scale) !important;
    background-repeat:no-repeat !important;
    box-shadow:0 28px 75px rgba(0,0,0,.43),inset 0 1px rgba(255,255,255,.08);
    animation:epicProfileBackdrop 16s cubic-bezier(.45,0,.55,1) infinite alternate;
    backface-visibility:hidden;
}
.profile-background-fossils { --epic-bg-x:48%;--epic-bg-y:51%;--epic-bg-x-end:53%;--epic-bg-y-end:47%; }
.profile-background-jungle { --epic-bg-x:48%;--epic-bg-y:45%;--epic-bg-x-end:54%;--epic-bg-y-end:50%;--epic-bg-scale:110%;--epic-bg-scale-end:119%; }
.profile-background-gateway { --epic-bg-x:63%;--epic-bg-y:50%;--epic-bg-x-end:57%;--epic-bg-y-end:46%;--epic-bg-scale:109%;--epic-bg-scale-end:118%; }
.profile-background-arena { --epic-bg-x:50%;--epic-bg-y:55%;--epic-bg-x-end:55%;--epic-bg-y-end:49%; }
.profile-background-ocean { --epic-bg-x:60%;--epic-bg-y:48%;--epic-bg-x-end:55%;--epic-bg-y-end:44%;--epic-bg-scale:107%;--epic-bg-scale-end:115%; }
.profile-background-season { --epic-bg-x:50%;--epic-bg-y:42%;--epic-bg-x-end:54%;--epic-bg-y-end:48%;--epic-bg-scale:109%;--epic-bg-scale-end:118%; }
.profile-background-wildlands { --epic-bg-x:55%;--epic-bg-y:52%;--epic-bg-x-end:49%;--epic-bg-y-end:47%;--epic-bg-scale:111%;--epic-bg-scale-end:120%; }
.profile-background-apex { --epic-bg-x:54%;--epic-bg-y:49%;--epic-bg-x-end:49%;--epic-bg-y-end:45%;--epic-bg-scale:108%;--epic-bg-scale-end:117%; }
.profile-background-horizon { --epic-bg-x:65%;--epic-bg-y:46%;--epic-bg-x-end:58%;--epic-bg-y-end:50%;--epic-bg-scale:107%;--epic-bg-scale-end:116%; }
@keyframes epicProfileBackdrop {
    to {
        background-position:center,center,var(--epic-bg-x-end) var(--epic-bg-y-end);
        background-size:auto,auto,var(--epic-bg-scale-end);
    }
}

.friend-profile-atmosphere {
    z-index:0;
    opacity:1;
    background:
        radial-gradient(circle at 78% 30%,color-mix(in srgb,var(--profile-accent) 28%,transparent),transparent 34%),
        linear-gradient(115deg,transparent 35%,rgba(255,255,255,.07) 48%,transparent 61%) !important;
    background-size:auto,220% 100% !important;
    mix-blend-mode:screen;
    animation:epicAtmosphereSweep 8s ease-in-out infinite;
    pointer-events:none;
}
@keyframes epicAtmosphereSweep {
    0%,18% { background-position:center,145% 0;opacity:.54; }
    62%,100% { background-position:center,-85% 0;opacity:1; }
}

.profile-style-preview::before,
.friend-profile-hero::before {
    inset:0;
    z-index:4;
    padding:4px;
    border:0 !important;
    border-radius:inherit;
    background:conic-gradient(from 18deg,var(--profile-accent),rgba(255,255,255,.9),var(--profile-accent),transparent 18%,var(--profile-accent) 38%,rgba(255,255,255,.75),var(--profile-accent) 63%,transparent 79%,var(--profile-accent));
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 52px color-mix(in srgb,var(--profile-accent) 22%,transparent),0 0 26px color-mix(in srgb,var(--profile-accent) 24%,transparent);
    filter:drop-shadow(0 0 4px color-mix(in srgb,var(--profile-accent) 45%,transparent));
}
.profile-frame-stone::before { background:repeating-conic-gradient(from 7deg,#242a27 0 8deg,#737e77 8deg 14deg,#c1c7c2 14deg 17deg,#46504a 17deg 27deg);filter:saturate(.45) contrast(1.18) drop-shadow(0 0 3px rgba(190,202,195,.35)); }
.profile-frame-amber::before { background:conic-gradient(from 8deg,#4c2908,#bf7724,#fff1a6,#8a4b12,#f6c966,#fff8c9,#9d5816,#4c2908);filter:contrast(1.08) drop-shadow(0 0 5px rgba(255,184,65,.48)); }
.profile-frame-bone::before { background:repeating-conic-gradient(from 4deg,#5b4c36 0 8deg,#bda77c 8deg 12deg,#fff4cf 12deg 17deg,#927a54 17deg 24deg);filter:contrast(1.1) drop-shadow(0 0 4px rgba(255,226,166,.42)); }
.profile-frame-tracker::before { background:repeating-conic-gradient(from 0deg,#0a2720 0 9deg,#74ffda 9deg 12deg,transparent 12deg 17deg,#1c6855 17deg 25deg);animation:epicFramePulse 3.4s ease-in-out infinite; }
.profile-frame-neon::before { background:conic-gradient(from 0deg,#08394a,#5ee7ff,#f5faff,#ae6cff,#ff5fcf,#5ee7ff,#08394a);animation:epicFrameHue 5.5s linear infinite; }
.profile-frame-dominant::before { background:conic-gradient(from 12deg,#1d0a38,#8c42e8,#f3d7ff,#56208e,#d39aff,#7336bc,#1d0a38);animation:epicFramePulse 2.7s ease-in-out infinite reverse; }
.profile-frame-venom::before { background:repeating-conic-gradient(from 11deg,#10280e 0 8deg,#68c43d 8deg 12deg,#e2ffad 12deg 15deg,#75ff43 15deg 20deg,#193d14 20deg 29deg);animation:epicFramePulse 2.2s ease-in-out infinite; }
.profile-frame-titan::before { padding:5px;background:conic-gradient(from 0deg,#391200,#d95700,#fff2a6,#ff9d17,#fff,#ffc53d,#a93400,#391200);animation:epicFramePulse 1.9s ease-in-out infinite; }
.profile-frame-cosmic::before { padding:5px;background:conic-gradient(from 0deg,#170b39,#764cff,#f6b2ff,#50dcff,#20104e,#ff5abd,#fff,#7046ff,#170b39);animation:epicCosmicSheen 5.8s ease-in-out infinite; }
@keyframes epicFramePulse { 50% { opacity:.73;filter:brightness(1.32) saturate(1.25) drop-shadow(0 0 8px var(--profile-accent)); } }
@keyframes epicFrameHue { to { filter:hue-rotate(360deg) brightness(1.12) drop-shadow(0 0 7px var(--profile-accent)); } }
@keyframes epicCosmicSheen { 50% { filter:hue-rotate(24deg) brightness(1.38) saturate(1.22) drop-shadow(0 0 9px var(--profile-accent)); } }

.social-avatar-frame::before {
    inset:-6px;
    padding:3px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 0 9px color-mix(in srgb,var(--social-accent) 46%,transparent);
    filter:contrast(1.12) saturate(1.12);
}
.social-avatar-frame::after {
    inset:-10px;
    border:1px solid color-mix(in srgb,var(--social-accent) 62%,transparent);
    opacity:.58;
    box-shadow:0 0 24px color-mix(in srgb,var(--social-accent) 52%,transparent),inset 0 0 15px color-mix(in srgb,var(--social-accent) 22%,transparent);
    animation:epicAvatarHalo 3s ease-in-out infinite;
}
.social-avatar-frame.social-frame-stone::before { background:repeating-conic-gradient(#232925 0 9deg,#7e8881 9deg 15deg,#d2d7d3 15deg 18deg,#3c4540 18deg 28deg); }
.social-avatar-frame.social-frame-amber::before { background:conic-gradient(#4c2908,#d88921,#fff3ad,#8d4a0e,#ffd875,#fff9cc,#9b5414,#4c2908); }
.social-avatar-frame.social-frame-bone::before { background:repeating-conic-gradient(#594b36 0 9deg,#d4be8f 9deg 14deg,#fff3cc 14deg 18deg,#8f7751 18deg 27deg); }
.social-avatar-frame.social-frame-tracker::before { background:repeating-conic-gradient(#09251e 0 9deg,#69ffd4 9deg 12deg,transparent 12deg 17deg,#1f765e 17deg 25deg);animation:socialFrameSpin 8s linear infinite; }
.social-avatar-frame.social-frame-neon::before { background:conic-gradient(#073849,#5ee7ff,#fff,#a66cff,#ff5fcf,#5ee7ff,#073849);animation:socialFrameSpin 4.5s linear infinite; }
.social-avatar-frame.social-frame-dominant::before { background:conic-gradient(#1c0937,#8c4dff,#f2d5ff,#4b1d83,#c782ff,#702db3,#1c0937);animation:socialFrameSpin 7s linear infinite reverse; }
.social-avatar-frame.social-frame-venom::before { background:repeating-conic-gradient(#10280d 0 9deg,#72e544 9deg 13deg,#e5ffb5 13deg 16deg,#6fff3d 16deg 21deg,#183a13 21deg 29deg);animation:epicAvatarHalo 2s ease-in-out infinite; }
.social-avatar-frame.social-frame-titan::before { padding:4px;background:conic-gradient(#391200,#e36100,#fff2a8,#ff9d17,#fff,#ffc43d,#ae3700,#391200);animation:socialFrameSpin 4.5s linear infinite; }
.social-avatar-frame.social-frame-cosmic::before { padding:4px;background:conic-gradient(#160a37,#7046ff,#f5b0ff,#51d9ff,#1d1049,#ff5bbd,#fff,#7046ff,#160a37);animation:socialFrameSpin 5.5s linear infinite; }
@keyframes epicAvatarHalo { 50% { opacity:.32;transform:scale(1.045);filter:brightness(1.35); } }

.profile-style-swatch.background {
    background-size:112%;
    transition:background-size .45s ease,filter .35s ease;
}
.profile-style-option:hover .profile-style-swatch.background,
.profile-style-option.is-selected .profile-style-swatch.background { background-size:124%;filter:saturate(1.16) contrast(1.08); }
.profile-style-swatch.frame i { box-shadow:0 0 22px color-mix(in srgb,var(--swatch-tone) 58%,transparent),inset 0 0 12px rgba(255,255,255,.17); }

@media (max-width:760px) {
    .profile-style-preview,.friend-profile-hero { --epic-bg-scale:cover;--epic-bg-scale-end:cover;animation-duration:20s; }
    .friend-profile-atmosphere { animation-duration:10s; }
    .social-avatar-frame::after { box-shadow:0 0 15px color-mix(in srgb,var(--social-accent) 42%,transparent); }
}
@media (prefers-reduced-motion:reduce) {
    .profile-style-preview,.friend-profile-hero,.friend-profile-atmosphere,
    .profile-style-preview::before,.friend-profile-hero::before,
    .social-avatar-frame::before,.social-avatar-frame::after { animation:none !important; }
}

/* Profile presentation V4: premium materials, depth and restrained cinematic motion. */
.profile-style-preview,
.friend-profile-hero {
    --epic-haze: rgba(215,166,76,.16);
    --epic-haze-alt: rgba(255,255,255,.08);
    border:1px solid color-mix(in srgb,var(--profile-accent) 30%,rgba(255,255,255,.08));
    background-image:
        linear-gradient(90deg,rgba(2,4,3,.94) 0%,rgba(2,4,3,.7) 42%,rgba(2,4,3,.24) 100%),
        linear-gradient(0deg,rgba(1,2,2,.84) 0%,transparent 66%),
        var(--profile-bg) !important;
    box-shadow:
        0 30px 84px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,255,255,.025),
        inset 0 1px rgba(255,255,255,.11),
        inset 0 -38px 70px rgba(0,0,0,.26);
}
.profile-style-preview > :not(.profile-style-particles),
.friend-profile-hero > :not(.profile-style-particles):not(.friend-profile-atmosphere) {
    position:relative;
    z-index:2;
}
.profile-style-preview::after,
.friend-profile-hero::after {
    position:absolute;
    inset:-22%;
    z-index:0;
    border-radius:38%;
    content:"";
    pointer-events:none;
    background:
        radial-gradient(ellipse at 79% 31%,var(--epic-haze) 0%,transparent 34%),
        radial-gradient(ellipse at 18% 82%,var(--epic-haze-alt) 0%,transparent 29%),
        repeating-linear-gradient(118deg,transparent 0 10%,rgba(255,255,255,.018) 10.3%,transparent 10.7% 19%);
    background-size:100% 100%,100% 100%,190% 190%;
    mix-blend-mode:screen;
    opacity:.72;
    transform:translate3d(-2%,1%,0) scale(1.03);
    animation:epicBackgroundBreath 11s ease-in-out infinite alternate;
}
.profile-background-fossils { --epic-haze:rgba(224,190,115,.15);--epic-haze-alt:rgba(163,185,168,.08); }
.profile-background-jungle { --epic-haze:rgba(63,208,133,.19);--epic-haze-alt:rgba(205,243,133,.09); }
.profile-background-gateway { --epic-haze:rgba(224,178,90,.18);--epic-haze-alt:rgba(255,226,161,.09); }
.profile-background-arena { --epic-haze:rgba(255,108,48,.18);--epic-haze-alt:rgba(255,204,99,.1); }
.profile-background-ocean { --epic-haze:rgba(54,198,255,.2);--epic-haze-alt:rgba(112,108,255,.11); }
.profile-background-season { --epic-haze:rgba(255,80,46,.19);--epic-haze-alt:rgba(255,191,66,.11); }
.profile-background-wildlands { --epic-haze:rgba(103,220,113,.17);--epic-haze-alt:rgba(215,176,86,.09); }
.profile-background-apex { --epic-haze:rgba(255,142,38,.22);--epic-haze-alt:rgba(255,229,137,.11); }
.profile-background-horizon { --epic-haze:rgba(130,93,255,.22);--epic-haze-alt:rgba(55,220,255,.13); }
@keyframes epicBackgroundBreath {
    0% { opacity:.48;transform:translate3d(-3%,2%,0) scale(1.02);background-position:center,center,0 0; }
    52% { opacity:.82; }
    100% { opacity:.68;transform:translate3d(3%,-2%,0) scale(1.09);background-position:center,center,34% 18%; }
}

.profile-style-preview::before,
.friend-profile-hero::before {
    background-size:230% 230%;
    background-position:0% 50%;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        inset 0 0 0 2px rgba(0,0,0,.28),
        inset 0 0 58px color-mix(in srgb,var(--profile-accent) 25%,transparent),
        0 0 30px color-mix(in srgb,var(--profile-accent) 28%,transparent);
    filter:contrast(1.16) saturate(1.14) drop-shadow(0 0 5px color-mix(in srgb,var(--profile-accent) 48%,transparent));
    animation:epicFrameLustre 8s cubic-bezier(.45,0,.55,1) infinite;
}
.profile-frame-stone::before {
    background-image:repeating-conic-gradient(from 7deg,#171b19 0 6deg,#525c56 6deg 11deg,#d4dbd5 11deg 13deg,#69736d 13deg 18deg,#262d29 18deg 28deg);
    animation-duration:13s;
}
.profile-frame-amber::before {
    background-image:conic-gradient(from 8deg,#2c1604,#9d500d,#ffd566,#fff8c9,#a85c14,#572904,#f5ae38,#fff0a0,#6d3508,#2c1604);
    animation-duration:8.5s;
}
.profile-frame-bone::before {
    background-image:repeating-conic-gradient(from 4deg,#443723 0 7deg,#967f58 7deg 11deg,#fff7d9 11deg 15deg,#c7ae7b 15deg 20deg,#685438 20deg 28deg);
    animation-duration:11s;
}
.profile-frame-tracker::before {
    background-image:repeating-conic-gradient(from 0deg,#061b16 0 8deg,#17483d 8deg 11deg,#a6ffe6 11deg 13deg,transparent 13deg 17deg,#35bd98 17deg 21deg,#0a2b23 21deg 29deg);
    animation:epicTrackerScan 3.6s ease-in-out infinite;
}
.profile-frame-neon::before {
    background-image:conic-gradient(from 0deg,#052432,#27d7ff,#f7ffff,#8a55ff,#ff45c5,#fff,#35e6ff,#052432);
    animation:epicNeonCircuit 5.2s linear infinite;
}
.profile-frame-dominant::before {
    background-image:conic-gradient(from 12deg,#130520,#57208c,#d9a7ff,#fff,#7130ac,#35105d,#b864ff,#f1d8ff,#130520);
    animation:epicRoyalPulse 4.2s ease-in-out infinite;
}
.profile-frame-venom::before {
    background-image:repeating-conic-gradient(from 11deg,#071806 0 7deg,#2b6b1f 7deg 11deg,#dfff9b 11deg 14deg,#64ff32 14deg 18deg,#153e10 18deg 27deg);
    animation:epicVenomFlow 3.1s ease-in-out infinite;
}
.profile-frame-titan::before {
    padding:5px;
    background-image:conic-gradient(from 0deg,#220800,#8e2600,#ff7700,#fff0a0,#fff,#ffb51e,#c43c00,#ffcf58,#5b1500,#220800);
    animation:epicTitanForge 2.8s ease-in-out infinite;
}
.profile-frame-cosmic::before {
    padding:5px;
    background-image:conic-gradient(from 0deg,#0a061b,#4d27d8,#c678ff,#fff,#42e9ff,#141044,#ff4fc3,#f4d7ff,#6145ff,#0a061b);
    animation:epicCosmicOrbit 6.4s linear infinite;
}
@keyframes epicFrameLustre {
    0%,100% { background-position:0% 50%;filter:contrast(1.16) saturate(1.12) brightness(.92) drop-shadow(0 0 4px color-mix(in srgb,var(--profile-accent) 42%,transparent)); }
    50% { background-position:100% 50%;filter:contrast(1.2) saturate(1.2) brightness(1.18) drop-shadow(0 0 8px color-mix(in srgb,var(--profile-accent) 62%,transparent)); }
}
@keyframes epicTrackerScan { 0%,100% { background-position:0 50%;opacity:.88; } 48% { background-position:100% 50%;opacity:1;filter:brightness(1.35) drop-shadow(0 0 9px #58ffd0); } }
@keyframes epicNeonCircuit { to { background-position:230% 50%;filter:hue-rotate(360deg) brightness(1.22) saturate(1.35) drop-shadow(0 0 9px #62e8ff); } }
@keyframes epicRoyalPulse { 0%,100% { background-position:0 50%;filter:brightness(.94) saturate(1.12) drop-shadow(0 0 5px #8440d2); } 50% { background-position:100% 50%;filter:brightness(1.35) saturate(1.3) drop-shadow(0 0 11px #cb87ff); } }
@keyframes epicVenomFlow { 0%,100% { background-position:0 50%;filter:brightness(.9) saturate(1.15) drop-shadow(0 0 5px #57d932); } 55% { background-position:100% 50%;filter:brightness(1.38) saturate(1.42) drop-shadow(0 0 11px #8dff52); } }
@keyframes epicTitanForge { 0%,100% { background-position:0 50%;filter:brightness(.94) saturate(1.18) drop-shadow(0 0 7px #ff7c18); } 50% { background-position:100% 50%;filter:brightness(1.42) saturate(1.32) drop-shadow(0 0 14px #ffc94e); } }
@keyframes epicCosmicOrbit { to { background-position:230% 50%;filter:hue-rotate(28deg) brightness(1.2) saturate(1.35) drop-shadow(0 0 12px #8a62ff); } }

.social-avatar-frame::before {
    background-size:210% 210%;
    background-position:0% 50%;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.42),
        inset 0 0 0 2px rgba(0,0,0,.3),
        0 0 12px color-mix(in srgb,var(--social-accent) 54%,transparent);
    animation:epicAvatarLustre 7s ease-in-out infinite;
}
.social-avatar-frame::after {
    border-color:color-mix(in srgb,var(--social-accent) 72%,transparent);
    box-shadow:
        0 0 25px color-mix(in srgb,var(--social-accent) 48%,transparent),
        inset 0 0 14px color-mix(in srgb,var(--social-accent) 24%,transparent);
}
.social-avatar-frame.social-frame-stone::before { animation-duration:12s; }
.social-avatar-frame.social-frame-amber::before { animation-duration:9s; }
.social-avatar-frame.social-frame-bone::before { animation-duration:11s; }
.social-avatar-frame.social-frame-tracker::before { animation:epicAvatarLustre 4.8s ease-in-out infinite; }
.social-avatar-frame.social-frame-neon::before { animation:epicAvatarOrbit 4.6s linear infinite; }
.social-avatar-frame.social-frame-dominant::before { animation:epicAvatarOrbit 6.5s linear infinite reverse; }
.social-avatar-frame.social-frame-venom::before { animation:epicAvatarLustre 3.2s ease-in-out infinite; }
.social-avatar-frame.social-frame-titan::before { animation:epicAvatarOrbit 3.8s linear infinite; }
.social-avatar-frame.social-frame-cosmic::before { animation:epicAvatarOrbit 5.4s linear infinite reverse; }
@keyframes epicAvatarLustre { 0%,100% { background-position:0 50%;filter:brightness(.94) contrast(1.12) saturate(1.12); } 50% { background-position:100% 50%;filter:brightness(1.34) contrast(1.18) saturate(1.28); } }
@keyframes epicAvatarOrbit { to { transform:rotate(360deg);filter:brightness(1.22) saturate(1.32) drop-shadow(0 0 7px var(--social-accent)); } }

.profile-style-swatch.frame i {
    border:1px solid rgba(255,255,255,.26);
    box-shadow:
        0 0 24px color-mix(in srgb,var(--swatch-tone) 64%,transparent),
        inset 0 0 0 2px rgba(0,0,0,.3),
        inset 0 0 14px rgba(255,255,255,.2);
}
.profile-style-swatch.background {
    box-shadow:inset 0 0 28px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.12);
    transition:background-size .65s cubic-bezier(.2,.75,.25,1),filter .35s ease,transform .35s ease;
}
.profile-style-option:hover .profile-style-swatch.background,
.profile-style-option.is-selected .profile-style-swatch.background {
    transform:translateY(-1px);
    filter:saturate(1.24) contrast(1.12) brightness(1.08);
}

@media (prefers-reduced-motion:reduce) {
    .profile-style-preview::after,.friend-profile-hero::after,
    .profile-style-preview::before,.friend-profile-hero::before,
    .social-avatar-frame::before,.social-avatar-frame::after { animation:none !important; }
}

/* Sistema tipográfico global V1: una escala legible y pareja en todas las páginas públicas. */
:root {
    --type-page-title:clamp(38px,4.4vw,60px);
    --type-section-title:clamp(24px,2.5vw,34px);
    --type-card-title:clamp(18px,1.65vw,24px);
    --type-body:13px;
    --type-control:12px;
    --type-label:10px;
}

/* Títulos principales. La lista evita alterar encabezados internos del mapa y cifras decorativas. */
:where(
    .home-hero-copy h1,
    .hub-title,
    .hub-title-dashboard,
    .friends-page-hero h1,
    .friend-profile-identity h1,
    .ranking-heading h1,
    .missions-hero h1,
    .market-command-header h1,
    .trades-page-v4 .trades-hero h1,
    .collab-hero h1,
    .community-hero h1,
    .rules-hero h1,
    .privacy-hero h1,
    .support-head h1,
    .slot-hero-title,
    #pet-nest-title,
    #profile-page-title,
    .store-page-head h1,
    .bp-summary h1,
    .bp-hero h1,
    body.page-coinflip main>section:first-of-type h1,
    body.page-dino_duelo main>section:first-of-type h1,
    body.page-inventario header h1,
    body.page-eventos main>section:first-child h1,
    body.page-foro main>section:first-child h1,
    body.page-ajustes main>section:first-child h1,
    body.page-juegos main>section:first-child h1
) {
    font-size:var(--type-page-title)!important;
    line-height:.96!important;
    overflow-wrap:anywhere;
}

/* Encabezados de secciones y títulos de tarjetas reutilizados por las distintas áreas. */
:where(
    .market-panel-header h2,
    .mission-section-head h2,
    .friends-page-request-card h2,
    .friends-pack-section h2,
    .friends-request-stack h2,
    .friend-showcase-section>header h2,
    .warning-overview-copy h2,
    .support-thread-head h2,
    .trades-friend-picker h2,
    .trades-offers-section h2,
    .trade-builder-column>header h2,
    .rule-card h2,
    .collab-card h2,
    .live-terminal-copy h2
) {
    font-size:var(--type-section-title)!important;
    line-height:1.05!important;
}

:where(
    .market-lot-card h3,
    .market-sell-card h3,
    .mission-card h2,
    .friends-pack-card h3,
    .privacy-card h2,
    .warning-section-head h3,
    .warning-help-card h3,
    .warning-empty-state h3,
    .trade-offer-card h3
) {
    font-size:var(--type-card-title)!important;
    line-height:1.12!important;
}

/* Texto corriente, descripciones de portada y controles. */
:where(
    .home-lead,
    .friends-page-hero-copy>p:last-child,
    .missions-hero-copy>p,
    .market-command-header>div>p:last-child,
    .trades-hero-copy>p:not(.hub-kicker),
    .collab-hero>p:not(.collab-kicker),
    .community-hero p,
    .rules-hero>p,
    .privacy-hero>p,
    .support-head p,
    .store-page-head>div>p:last-child,
    .bp-summary>div>p,
    .bp-hero p,
    .ranking-heading>p:last-child
) {
    font-size:var(--type-body)!important;
    line-height:1.65!important;
}

main :where(input,select,textarea) {
    font-size:var(--type-control)!important;
    line-height:1.35;
}
main :where(button:not(.app-icon-button),[role="button"]) {
    font-size:max(var(--type-label),.68rem)!important;
}
main small { font-size:var(--type-label)!important; line-height:1.45; }

/* Etiquetas y estados antes demasiado pequeños (7–9 px). */
:where(
    .hub-kicker,
    [class$="-kicker"],
    [class*="-eyebrow"],
    .market-item-type,
    .market-active,
    .mission-status,
    .trade-status,
    .support-status,
    .support-message strong,
    .support-message time,
    .support-item footer,
    .gift-day [data-gift-status],
    .site-footer-social-label,
    .site-footer-legal,
    .site-footer-legal-links
) { font-size:var(--type-label)!important; }

main :where(
    [class*="text-[7px]"],
    [class*="text-[8px]"],
    [class*="text-[9px]"]
) { font-size:var(--type-label)!important; }

.site-footer-description { font-size:12px!important; }
.footer-quick-grid a,.footer-island-content>span { font-size:10px!important; }

@media (max-width:720px) {
    :root {
        --type-page-title:clamp(32px,9vw,42px);
        --type-section-title:clamp(22px,7vw,30px);
        --type-card-title:clamp(18px,5.6vw,22px);
        --type-body:13px;
        --type-control:13px;
        --type-label:10px;
    }
    main :where(p,li) { font-size:var(--type-body)!important; }
    main label { font-size:11px!important; }
    main small { font-size:var(--type-label)!important; }
}

/* Chat global: identidad completamente Fossil Amber. Los marcos de perfil
   conservan sus colores propios, pero la interfaz ya no usa celeste/turquesa. */
.global-chat-panel {
    border-color:rgba(215,166,76,.48) !important;
}
.global-chat-panel .global-chat-head {
    border-bottom-color:rgba(215,166,76,.24) !important;
    background:
        radial-gradient(circle at 12% 0%,rgba(215,166,76,.22),transparent 40%),
        linear-gradient(135deg,rgba(48,31,13,.86),rgba(10,8,5,.42)) !important;
}
.global-chat-panel .social-chat-kicker > span,
.global-chat-panel .social-chat-online b,
.global-chat-panel .social-chat-scope-bar span,
.global-chat-panel .social-chat-empty i,
.global-chat-panel .social-chat-quote b {
    color:#e7b95f !important;
}
.global-chat-panel .social-chat-kicker > small,
.global-chat-panel .global-chat-head p,
.global-chat-panel .social-chat-online > span,
.global-chat-panel .social-chat-scope-bar small,
.global-chat-panel .social-chat-message-body > header time,
.global-chat-panel .social-chat-message-body > header em {
    color:#9b8b69 !important;
}
.global-chat-panel .social-chat-online {
    border-color:rgba(215,166,76,.27) !important;
    background:rgba(215,166,76,.09) !important;
}
.global-chat-panel .social-chat-scope-bar {
    border-bottom-color:rgba(215,166,76,.16) !important;
    background:rgba(38,27,11,.48) !important;
}
.global-chat-panel .social-chat-messages {
    scrollbar-color:rgba(215,166,76,.55) rgba(255,255,255,.035) !important;
}
.global-chat-panel .social-chat-message:hover,
.global-chat-panel .social-chat-message:focus-within,
.global-chat-panel .social-chat-message.reaction-open {
    border-bottom-color:rgba(215,166,76,.26) !important;
}
.global-chat-panel .social-chat-message + .social-chat-message {
    margin-top:10px;
}
.global-chat-panel .social-chat-message-text {
    color:#d2c7ae !important;
}
.global-chat-panel .social-chat-compose {
    border-top-color:rgba(215,166,76,.2) !important;
    background:linear-gradient(180deg,rgba(38,27,11,.3),rgba(9,6,3,.76)) !important;
}
.global-chat-panel .social-chat-head-actions > button:hover,
.global-chat-panel .social-chat-head-actions > button:focus-visible {
    border-color:rgba(240,198,111,.55) !important;
    background:rgba(215,166,76,.13) !important;
    color:#f0c66f !important;
}
.global-chat-panel .social-chat-foot {
    border-top-color:rgba(215,166,76,.16) !important;
    color:#8f815f !important;
}

/* Estados del servidor: son avisos breves, no texto de contenido. Se excluyen
   del tamaño mínimo global para que no dominen Mapa ni Mi Dino. */
body.page-mapa #map-live-status,
body.page-perfil #live-dino-status {
    font-size:9px !important;
    line-height:1.45 !important;
}
body.page-mapa #map-live-status {
    letter-spacing:.11em !important;
}
body.page-perfil #live-dino-status {
    letter-spacing:.18em !important;
}
/* Inventario embebido: controles legibles aunque el perfil use escala al 80%. */
body.page-inventario .embedded-inventory-shell .inventory-view-btn {
    min-height: 44px;
    gap: 8px;
    padding: 0 16px;
    font-size: 10px;
    letter-spacing: .13em;
}

body.page-inventario .embedded-inventory-shell .inventory-filter-btn {
    min-height: 42px;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    letter-spacing: .12em !important;
}

body.page-inventario .embedded-inventory-shell .item-card .absolute.inset-0.bg-gradient-to-t :is(a, button) {
    min-height: 42px;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
}

body.page-inventario .embedded-inventory-shell .stored-dino-action,
body.page-inventario .embedded-inventory-shell .garage-order-button {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 10px;
    letter-spacing: .1em;
}

body.page-inventario .embedded-inventory-shell .item-card .trash-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
}
/* Mobile shell final: el saldo y la marca siempre visibles, sin sacrificar
   los accesos principales del header. */
@media (max-width: 767px) {
    .app-topbar {
        height: calc(70px + env(safe-area-inset-top));
    }

    .app-topbar-inner.horizontal {
        gap: 3px;
        padding-inline: 4px;
    }

    .app-brand {
        width: 80px;
        height: 58px;
        flex: 0 0 80px;
        overflow: visible;
    }

    .app-brand img {
        width: 88px;
        height: 52px;
        max-width: none;
        object-fit: contain;
    }

    .topbar-actions {
        max-width: calc(100% - 83px);
        gap: 3px !important;
    }

    .wallet-pill {
        display: inline-flex !important;
        width: auto !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 44px !important;
        flex: 0 0 auto !important;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0 5px !important;
        border-radius: 10px;
    }

    .wallet-pill img {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }

    .wallet-pill [data-dinocoin-balance] {
        display: inline !important;
        min-width: 0;
        overflow: hidden;
        font-size: 8.5px !important;
        letter-spacing: 0 !important;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-icon-button,
    .notification-top-button,
    .gift-top-button {
        width: 34px;
        min-width: 34px;
        height: 36px;
        flex-basis: 34px;
        padding: 0 !important;
    }

    .app-user-chip {
        width: 34px;
        min-width: 34px;
        height: 36px;
        flex-basis: 34px;
        padding: 1px !important;
    }

    .app-user-chip img {
        width: 31px;
        height: 31px;
    }

    #nav-toggle {
        flex-basis: 34px;
    }
}

/* En teléfonos, los tres controles flotantes son únicamente iconos. */
@media (max-width: 640px) {
    .global-chat-tab,
    .friends-fab,
    .community-fab {
        display: grid !important;
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
        place-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 15px !important;
    }

    .global-chat-tab-copy,
    .friends-fab-label,
    .community-fab-label {
        display: none !important;
    }

    .global-chat-tab-icon,
    .friends-fab-icon,
    .community-fab-icon {
        display: grid !important;
        position: absolute !important;
        inset: 0 !important;
        width: auto !important;
        height: auto !important;
        flex: none !important;
        place-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .global-chat-tab-icon > i,
    .friends-fab-icon > i,
    .community-fab-icon > i {
        display: block !important;
        width: 1em !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        transform: none !important;
    }

    .global-chat-tab {
        left: max(12px, env(safe-area-inset-left)) !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    .friends-fab {
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    .community-fab {
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px) !important;
    }
}

@media (max-width: 374px) {
    .app-topbar-inner.horizontal {
        padding-inline: 4px;
    }

    .app-brand {
        width: 76px;
        flex-basis: 76px;
    }

    .app-brand img {
        width: 84px;
        height: 50px;
    }

    .topbar-actions {
        max-width: calc(100% - 79px);
        gap: 3px !important;
    }

    .wallet-pill {
        min-width: 76px !important;
        max-width: 76px !important;
        padding-inline: 4px !important;
        gap: 3px;
    }

    .wallet-pill img {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .wallet-pill [data-dinocoin-balance] {
        font-size: 8.25px !important;
        letter-spacing: 0 !important;
    }

    .app-icon-button,
    .notification-top-button,
    .gift-top-button,
    #nav-toggle {
        width: 32px;
        min-width: 32px;
        height: 34px;
        flex-basis: 32px;
    }

    .app-user-chip {
        width: 32px;
        min-width: 32px;
        height: 34px;
        flex-basis: 32px;
    }

    .app-user-chip img {
        width: 29px;
        height: 29px;
    }

    .global-chat-tab,
    .friends-fab,
    .community-fab {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .community-fab {
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 56px) !important;
    }
}

/* Anuncio global de eventos: se abre una sola vez por versión publicada. */
.entry-event-modal{position:fixed;inset:0;z-index:410;display:grid;place-items:center;padding:18px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}.entry-event-modal.open{visibility:visible;opacity:1;pointer-events:auto}.entry-event-backdrop{position:absolute;inset:0;border:0;background:rgba(3,3,3,.82);backdrop-filter:blur(8px)}.entry-event-panel{position:relative;display:grid;width:min(760px,100%);grid-template-columns:minmax(230px,.78fr) minmax(0,1.22fr);overflow:hidden;border:1px solid rgba(231,190,93,.34);border-radius:24px;background:linear-gradient(145deg,#151310,#080808);box-shadow:0 34px 100px rgba(0,0,0,.7),0 0 60px rgba(198,146,58,.08);transform:translateY(15px) scale(.98);transition:transform .24s ease}.entry-event-modal.open .entry-event-panel{transform:none}.entry-event-art{position:relative;display:grid;min-height:360px;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 42%,rgba(224,178,76,.25),transparent 31%),linear-gradient(155deg,#2c2a27,#0b0b0b 72%)}.entry-event-art:after{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(4,4,4,.58));content:""}.entry-event-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.68}.entry-event-art>span{position:relative;z-index:1;display:grid;width:96px;height:96px;place-items:center;border:1px solid rgba(242,207,127,.36);border-radius:50%;color:#efc876;background:rgba(5,5,5,.66);font-size:34px;box-shadow:0 0 0 13px rgba(224,178,76,.055),0 20px 45px rgba(0,0,0,.45);backdrop-filter:blur(7px)}.entry-event-copy{position:relative;display:flex;min-width:0;flex-direction:column;justify-content:center;padding:38px 35px}.entry-event-copy>p{margin:0;color:#d9aa4f;font-size:8px;font-weight:950;letter-spacing:.22em;text-transform:uppercase}.entry-event-copy h2{margin:10px 40px 13px 0;color:#fff;font:750 clamp(30px,4vw,45px)/.94 Oswald,sans-serif;text-transform:uppercase}.entry-event-copy>strong{display:flex;align-items:center;gap:8px;color:#e6c57f;font-size:10px}.entry-event-copy>span{margin-top:15px;color:#a5a3a0;font-size:11px;font-weight:650;line-height:1.65}.entry-event-copy>em{display:flex;align-items:flex-start;gap:8px;margin-top:12px;color:#898784;font-size:9px;font-style:normal;line-height:1.45}.entry-event-copy i{color:#dbae54}.entry-event-close{position:absolute;top:17px;right:17px;display:grid;width:36px;height:36px;place-items:center;border:1px solid rgba(255,255,255,.09);border-radius:10px;color:#959390;background:rgba(255,255,255,.035);transition:.18s}.entry-event-close:hover{border-color:rgba(225,183,84,.38);color:#f0c773;background:rgba(225,183,84,.08)}.entry-event-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.entry-event-actions a,.entry-event-actions button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid rgba(255,255,255,.09);border-radius:11px;color:#a6a4a1;background:rgba(255,255,255,.035);font-size:8px!important;font-weight:950;letter-spacing:.1em;text-transform:uppercase;transition:.18s}.entry-event-actions a{border-color:rgba(224,180,82,.45);color:#17130c;background:linear-gradient(135deg,#e8c16a,#bb812d)}.entry-event-actions a:hover,.entry-event-actions button:hover{transform:translateY(-2px);filter:brightness(1.08)}@media(max-width:680px){.entry-event-panel{grid-template-columns:1fr}.entry-event-art{min-height:165px}.entry-event-art>span{width:70px;height:70px;font-size:25px}.entry-event-copy{padding:25px 22px 24px}.entry-event-copy h2{font-size:30px}.entry-event-actions>*{flex:1}}

/* Mi Dino mobile v3: elimina marcos anidados y prioriza lectura/acciones. */
@media (max-width: 820px) {
    body.page-perfil .profile-page {
        width: 100% !important;
        max-width: 520px;
        margin-inline: auto;
        padding: 16px 14px 28px !important;
    }

    body.page-perfil .profile-page-head {
        margin-bottom: 16px !important;
        padding: 2px 0 16px !important;
    }

    body.page-perfil .profile-page-head > div:first-child {
        margin-bottom: 10px !important;
    }

    body.page-perfil #profile-page-title {
        font-size: clamp(31px, 9vw, 38px) !important;
        letter-spacing: -.015em;
    }

    body.page-perfil #profile-page-description {
        max-width: none !important;
        color: #9c9a97 !important;
    }

    body.page-perfil .profile-page-head > .flex.flex-wrap {
        grid-template-rows: auto auto;
        gap: 7px !important;
    }

    body.page-perfil #profile-refresh-live {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        min-height: 44px !important;
    }

    body.page-perfil .profile-page-head .profile-tab-btn {
        min-height: 44px !important;
        border-radius: 11px !important;
        font-size: 9px !important;
    }

    body.page-perfil #profile-panel-live {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    body.page-perfil .live-console-layout {
        gap: 12px !important;
    }

    body.page-perfil .live-terminal-card {
        gap: 9px !important;
        border-radius: 18px !important;
        padding: 10px !important;
        background: linear-gradient(150deg, rgba(18,16,13,.96), rgba(6,6,6,.98)) !important;
    }

    body.page-perfil .live-terminal-hero {
        min-height: 238px !important;
        border-radius: 15px !important;
    }

    body.page-perfil .live-terminal-watermark {
        bottom: 70px !important;
        width: calc(100% - 24px) !important;
        font-size: clamp(1.65rem, 9vw, 2.75rem) !important;
    }

    body.page-perfil .live-terminal-image {
        top: 42% !important;
        width: min(320px, 88%) !important;
        height: 175px !important;
        max-width: calc(100% - 20px) !important;
    }

    body.page-perfil .live-terminal-copy {
        right: 14px !important;
        bottom: 18px !important;
        left: 14px !important;
    }

    body.page-perfil .live-terminal-copy span {
        font-size: 8px !important;
        letter-spacing: .16em !important;
    }

    body.page-perfil .live-terminal-copy h2 {
        margin-top: 4px !important;
        font-size: clamp(2rem, 11vw, 2.8rem) !important;
    }

    body.page-perfil .live-terminal-growth {
        top: 13px !important;
        right: auto !important;
        bottom: auto !important;
        left: 13px !important;
        min-width: 0 !important;
        border-radius: 11px !important;
        padding: 8px 10px !important;
    }

    body.page-perfil .live-terminal-growth small {
        font-size: 7px !important;
        letter-spacing: .13em !important;
    }

    body.page-perfil .live-terminal-growth strong {
        font-size: 27px !important;
        line-height: 1 !important;
    }

    body.page-perfil .live-console-tabs {
        gap: 6px !important;
        margin: 0 !important;
    }

    body.page-perfil .live-console-tab {
        min-height: 44px !important;
        border-radius: 11px !important;
        padding: 7px 5px !important;
        font-size: 8px !important;
        letter-spacing: .06em !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] {
        overflow: visible !important;
        height: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        padding: 2px 0 0 !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-row {
        min-height: 70px !important;
        border-radius: 12px !important;
        padding: 10px !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-row:last-child {
        grid-column: 1 / -1 !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-head {
        gap: 6px !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-head span {
        font-size: 8px !important;
        letter-spacing: .08em !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-head strong {
        font-size: 13px !important;
    }

    body.page-perfil .live-view-panel[data-live-panel="general"] .live-metric-track {
        height: 8px !important;
        margin-top: 9px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) {
        grid-template-columns: 1fr !important;
        grid-template-areas: "heading" "notice" "actions" "release" "confirm" !important;
        gap: 12px !important;
        border-radius: 18px !important;
        padding: 15px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-side-kicker {
        align-self: end !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-side-title {
        align-self: start !important;
        margin-top: 19px !important;
        font-size: 27px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl {
        grid-area: notice !important;
        margin-top: 0 !important;
        border-radius: 12px !important;
        padding: 11px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl > div:first-child {
        gap: 9px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl strong {
        font-size: 9px !important;
        letter-spacing: .12em !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl p {
        font-size: 10px !important;
        line-height: 1.45 !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl > .mt-3 {
        margin-top: 8px !important;
        gap: 5px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) > .mt-5.rounded-2xl > .mt-3 > div {
        padding: 7px 4px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-action-option {
        min-height: 78px !important;
        border-radius: 12px !important;
        padding: 10px 6px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-action-secondary {
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-action-details {
        gap: 9px !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-action-description {
        display: block !important;
        min-height: 0 !important;
        overflow: visible !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
    }

    body.page-perfil .live-side-card:not(.live-connection-card) .live-confirm-button {
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    body.page-perfil .profile-inventory-frame {
        border-radius: 16px !important;
    }

    body.page-perfil .warning-page-shell {
        max-width: 100% !important;
    }

    body.page-perfil .warning-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.page-perfil .warning-summary-card:first-child {
        grid-column: 1 / -1 !important;
    }

    body.page-perfil .warning-summary-card {
        min-height: 76px !important;
        border-radius: 12px !important;
        padding: 11px !important;
    }

    body.page-perfil .site-footer {
        padding-top: 14px !important;
        padding-bottom: 72px !important;
    }

    body.page-perfil .site-footer .grid.grid-cols-1 {
        margin-bottom: 12px !important;
        padding: 17px 14px !important;
    }

    body.page-perfil .site-footer .footer-quick-nav,
    body.page-perfil .site-footer .footer-island-card {
        display: none !important;
    }

    body.page-perfil .site-footer .site-footer-bottom {
        margin-top: 8px !important;
        padding-top: 12px !important;
    }
}

/* Inventario embebido mobile v2: navegación compacta y tarjetas escaneables. */
@media (max-width: 820px) {
    body.page-inventario .embedded-inventory-shell {
        width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-view-switcher {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        margin-bottom: 14px !important;
        border-radius: 13px !important;
        padding: 5px !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-view-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        align-content: center !important;
        border-radius: 9px !important;
        padding: 6px 4px !important;
        font-size: 8px !important;
        letter-spacing: .035em !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-view-btn > i {
        width: 100% !important;
        margin: 0 !important;
        font-size: 12px !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-view-count {
        min-width: 19px !important;
        height: 19px !important;
        padding: 0 5px !important;
        font-size: 8px !important;
    }

    body.page-inventario .embedded-inventory-shell [data-inventory-view-panel="items"] .inventory-section-title {
        display: none !important;
    }

    body.page-inventario .embedded-inventory-shell [data-inventory-filters] {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-filter-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 7px 4px !important;
        border-radius: 10px !important;
        font-size: 8px !important;
        letter-spacing: .045em !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card {
        min-width: 0 !important;
        contain-intrinsic-size: 228px !important;
        border-radius: 13px !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card > .aspect-square,
    body.page-inventario .embedded-inventory-shell .item-card > .skin-preview-stage,
    body.page-inventario .embedded-inventory-shell .item-card > .gift-inventory-stage {
        height: 138px !important;
        min-height: 138px !important;
        aspect-ratio: auto !important;
        padding: 12px 10px !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card > .p-4 {
        min-height: 92px !important;
        padding: 10px !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card h4 {
        min-height: 32px !important;
        margin: 0 0 6px !important;
        font-size: 14px !important;
        line-height: 1.12 !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card .absolute.inset-0.bg-gradient-to-t {
        padding: 8px !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card .absolute.inset-0.bg-gradient-to-t :is(a, button) {
        min-height: 36px !important;
        border-radius: 9px !important;
        padding: 7px 5px !important;
        font-size: 8px !important;
        letter-spacing: .035em !important;
        line-height: 1.2 !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card .skin-ribbon {
        top: 7px !important;
        left: 7px !important;
        padding: 4px 6px !important;
        font-size: 7px !important;
        letter-spacing: .1em !important;
    }

    body.page-inventario .embedded-inventory-shell .item-card .trash-btn {
        top: 7px !important;
        right: 7px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > .mb-4 {
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > .mb-4 > .mb-2 {
        margin: 0 !important;
        gap: 5px !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > .mb-4 > .mb-2 > span:first-child {
        font-size: 8px !important;
        letter-spacing: .06em !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > .mb-4 > .mb-2 > span:last-child {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > .mb-4 > :has(> [data-skin-uses-bar]) {
        display: none !important;
    }

    body.page-inventario .embedded-inventory-shell .skin-inventory-card > .p-4 > div:last-child {
        display: none !important;
    }

    body.page-inventario .embedded-inventory-shell .inventory-section-spacer {
        margin-bottom: 16px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-grid {
        gap: 10px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-card {
        border-radius: 15px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-media {
        min-height: 178px !important;
        padding: 30px 16px 10px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-image {
        height: 138px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-body {
        gap: 9px !important;
        padding: 12px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-stat {
        min-height: 58px !important;
        padding: 7px !important;
    }

    body.page-inventario .embedded-inventory-shell .stored-dino-action,
    body.page-inventario .embedded-inventory-shell .garage-order-button {
        min-height: 42px !important;
    }

    body.page-inventario .embedded-inventory-shell .garage-order-button.hidden {
        display: none !important;
    }

    body.page-inventario .embedded-inventory-shell:has([data-stored-dino-empty]:not(.hidden)) .garage-order-toolbar .garage-order-button {
        display: none !important;
    }

    body.page-inventario .embedded-inventory-shell [data-inventory-view-panel="stored"] section:not(:has(.stored-dino-grid)) .garage-order-toolbar .garage-order-button {
        display: none !important;
    }
}

/* UX 2026-09: dock mobile único. Evita que los accesos persistentes tapen
   tarjetas, acciones del mapa y contenido del footer. */
@media (max-width: 640px) {
    .global-chat-tab.store-quick-tab,
    .community-fab,
    .friends-fab {
        display: inline-flex !important;
        position: fixed !important;
        top: auto !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        width: calc((100vw - 36px) / 3) !important;
        min-width: 0 !important;
        max-width: 118px !important;
        height: 50px !important;
        min-height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 8px !important;
        border-radius: 14px !important;
        transform: none !important;
    }

    .global-chat-tab.store-quick-tab { right: auto !important; left: 8px !important; }
    .community-fab { right: auto !important; left: 50% !important; transform: translateX(-50%) !important; }
    .friends-fab { right: 8px !important; left: auto !important; }

    .store-quick-tab .global-chat-tab-copy,
    .friends-fab-label,
    .community-fab-label {
        display: inline-block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        font-size: 8px !important;
        font-weight: 900 !important;
        letter-spacing: .035em !important;
        line-height: 1 !important;
        text-overflow: ellipsis !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }

    .global-chat-tab.store-quick-tab .global-chat-tab-icon,
    .friends-fab-icon,
    .community-fab-icon {
        display: grid !important;
        position: static !important;
        inset: auto !important;
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        place-items: center !important;
        font-size: 14px !important;
    }

    .map-layer-panel { bottom: auto !important; }
    .map-live-card {
        right: 10px !important;
        bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
}

/* Prioridad final para el dock: estas reglas deben quedar después de los
   estilos históricos del chat y de Comunidad. */
@media (max-width: 640px) {
    .global-chat-tab.store-quick-tab,
    .community-fab,
    .friends-fab {
        width:48px !important;
        min-width:48px !important;
        max-width:48px !important;
        height:48px !important;
        min-height:48px !important;
        gap:0 !important;
        padding:0 !important;
        border-radius:15px !important;
    }
    .global-chat-tab.store-quick-tab { left:12px !important; right:auto !important; }
    .community-fab { left:50% !important; right:auto !important; transform:translateX(-50%) !important; }
    .friends-fab { left:auto !important; right:12px !important; }
    .store-quick-tab .global-chat-tab-copy,
    .community-fab-label,
    .friends-fab-label { display:none !important; }
    .global-chat-tab.store-quick-tab .global-chat-tab-icon,
    .community-fab-icon,
    .friends-fab-icon { width:22px !important; height:22px !important; flex:0 0 22px !important; font-size:15px !important; }
    .ranking-tabs { gap:7px !important; padding-right:18px !important; scroll-snap-type:x mandatory; }
    .ranking-tab { min-width:108px !important; min-height:44px !important; scroll-snap-align:start; }
}


/* Weekly gifts modal refresh — 2026-09-22 */
#gift-modal .gift-modal-backdrop {
    background: rgba(4, 4, 4, 0.82);
    backdrop-filter: blur(12px) saturate(0.85);
}

#gift-modal .gift-modal-panel {
    width: min(1180px, calc(100vw - 48px));
    max-height: min(760px, calc(100dvh - 40px));
    overflow: hidden;
    border: 1px solid rgba(214, 161, 55, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(214, 161, 55, 0.13), transparent 32%),
        linear-gradient(160deg, rgba(15, 13, 10, 0.99), rgba(6, 6, 6, 0.99));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

#gift-modal .gift-modal-head {
    min-height: 86px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: linear-gradient(90deg, rgba(214, 161, 55, 0.08), transparent 46%);
}

#gift-modal .gift-modal-head h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1;
    letter-spacing: 0.035em;
}

#gift-modal .gift-title-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 15px;
    color: #f4bb47;
    background: linear-gradient(145deg, rgba(214, 161, 55, 0.25), rgba(214, 161, 55, 0.08));
    border: 1px solid rgba(244, 187, 71, 0.24);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

#gift-modal .gift-welcome-banner {
    margin: 16px 20px 12px;
    padding: 14px 18px;
    border: 1px solid rgba(214, 161, 55, 0.26);
    border-radius: 16px;
    background: linear-gradient(100deg, rgba(214, 161, 55, 0.18), rgba(214, 161, 55, 0.035) 60%, transparent);
    box-shadow: none;
}

#gift-modal .gift-welcome-banner small {
    display: block;
    margin-bottom: 3px;
    color: #d9a53e;
    font-size: 10px;
    letter-spacing: 0.18em;
}

#gift-modal .gift-welcome-banner strong {
    display: block;
    font-size: clamp(1.35rem, 2.25vw, 2rem);
    line-height: 1.08;
}

#gift-modal .gift-progress {
    height: 4px;
    margin: 0 20px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
}

#gift-modal .gift-progress span {
    border-radius: inherit;
    background: linear-gradient(90deg, #bd7f16, #f3c65a);
    box-shadow: 0 0 14px rgba(243, 198, 90, 0.36);
}

#gift-modal .gift-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px 20px;
    overflow-x: visible;
    scrollbar-width: thin;
}

#gift-modal .gift-day {
    min-width: 0;
    min-height: 224px;
    padding: 14px 12px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.13));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#gift-modal .gift-day:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 187, 71, 0.26);
}

#gift-modal .gift-day h3 {
    font-size: 1.05rem;
    line-height: 1.05;
}

#gift-modal .gift-day [data-gift-status] {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

#gift-modal .gift-reward-icon {
    width: 62px;
    height: 62px;
    margin: 22px auto 15px;
    border-radius: 17px;
    background: rgba(214, 161, 55, 0.075);
    border: 1px solid rgba(214, 161, 55, 0.16);
}

#gift-modal .gift-reward-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.38));
}

#gift-modal .gift-day > strong {
    display: block;
    min-height: 2.6em;
    color: #f3f4f1;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

#gift-modal .gift-day > small {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #807e7b;
    font-size: 8px;
    line-height: 1.45;
    text-align: center;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#gift-modal .gift-day.locked {
    opacity: 0.62;
    filter: none;
}

#gift-modal .gift-day.claimed {
    opacity: 1;
    border-color: rgba(223, 178, 94, 0.34);
    background: linear-gradient(165deg, rgba(174, 127, 49, 0.22), rgba(28, 26, 23, 0.52));
}

#gift-modal .gift-day.next {
    z-index: 2;
    transform: translateY(-5px);
    border-color: rgba(244, 187, 71, 0.68);
    background: linear-gradient(165deg, rgba(214, 161, 55, 0.2), rgba(40, 28, 7, 0.42));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(214, 161, 55, 0.08);
}

#gift-modal .gift-day.next::after {
    content: "HOY";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #151006;
    background: #e7ae3c;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

#gift-modal .gift-claimed-check {
    width: 23px;
    height: 23px;
    border-radius: 8px;
}

#gift-modal .gift-mobile-swipe-hint {
    display: none;
}

#gift-modal .gift-modal-actions {
    min-height: 72px;
    padding: 13px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(5, 5, 5, 0.78);
}

#gift-modal .gift-modal-actions .btn-neon {
    min-width: 220px;
    min-height: 46px;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(214, 161, 55, 0.16);
}

@media (max-width: 1100px) {
    #gift-modal .gift-week-grid {
        grid-template-columns: repeat(7, 170px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }

    #gift-modal .gift-day {
        scroll-snap-align: start;
    }

    #gift-modal .gift-mobile-swipe-hint {
        display: block;
        margin: 10px 20px 0;
        color: #878582;
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (max-width: 640px) {
    #gift-modal {
        padding: 8px;
        align-items: flex-end;
    }

    #gift-modal .gift-modal-panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
    }

    #gift-modal .gift-modal-head {
        min-height: 72px;
        padding: 14px 14px;
    }

    #gift-modal .gift-title-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }

    #gift-modal .gift-modal-head h2 {
        font-size: 1.25rem;
    }

    #gift-modal .gift-modal-head .text-right {
        display: none;
    }

    #gift-modal .gift-welcome-banner {
        margin: 10px 12px 8px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    #gift-modal .gift-welcome-banner strong {
        font-size: 1.3rem;
    }

    #gift-modal .gift-progress {
        margin-inline: 12px;
    }

    #gift-modal .gift-mobile-swipe-hint {
        margin-inline: 12px;
    }

    #gift-modal .gift-week-grid {
        grid-template-columns: repeat(7, minmax(156px, 72vw));
        gap: 9px;
        padding: 12px 12px 16px;
    }

    #gift-modal .gift-day {
        min-height: 218px;
    }

    #gift-modal .gift-modal-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
        padding: 12px;
        text-align: center;
    }

    #gift-modal .gift-modal-actions .btn-neon {
        width: 100%;
        min-width: 0;
    }
}


/* Weekly gifts modal refresh — 2026-09-22 */
#gift-modal .gift-modal-backdrop{background:rgba(4,4,4,.84);backdrop-filter:blur(12px) saturate(.85)}
#gift-modal .gift-modal-panel{width:min(1180px,calc(100vw - 48px));max-height:min(760px,calc(100dvh - 40px));overflow:hidden;border:1px solid rgba(214,161,55,.3);border-radius:24px;background:radial-gradient(circle at 12% 0%,rgba(214,161,55,.13),transparent 32%),linear-gradient(160deg,rgba(15,13,10,.99),rgba(6,6,6,.99));box-shadow:0 34px 90px rgba(0,0,0,.72)}
#gift-modal .gift-modal-head{min-height:84px;padding:17px 21px;border-bottom:1px solid rgba(255,255,255,.07);background:linear-gradient(90deg,rgba(214,161,55,.09),transparent 48%)}
#gift-modal .gift-modal-head h2{font-size:clamp(1.4rem,2.2vw,2rem);line-height:1;letter-spacing:.035em}
#gift-modal .gift-title-icon{width:50px;height:50px;flex:0 0 50px;border-radius:15px;color:#f4bb47;background:linear-gradient(145deg,rgba(214,161,55,.25),rgba(214,161,55,.08));border:1px solid rgba(244,187,71,.25)}
#gift-modal .gift-welcome-banner{margin:15px 20px 11px;padding:13px 17px;border:1px solid rgba(214,161,55,.28);border-radius:16px;background:linear-gradient(100deg,rgba(214,161,55,.18),rgba(214,161,55,.035) 62%,transparent);box-shadow:none}
#gift-modal .gift-welcome-banner small{display:block;margin-bottom:3px;color:#d9a53e;font-size:10px;letter-spacing:.18em}
#gift-modal .gift-welcome-banner strong{display:block;font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.08}
#gift-modal .gift-progress{height:4px;margin:0 20px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.065)}
#gift-modal .gift-progress span{border-radius:inherit;background:linear-gradient(90deg,#bd7f16,#f3c65a);box-shadow:0 0 14px rgba(243,198,90,.36)}
#gift-modal .gift-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:18px 20px 20px;overflow-x:visible}
#gift-modal .gift-day{position:relative;min-width:0;min-height:220px;padding:14px 12px;border-radius:17px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(165deg,rgba(255,255,255,.04),rgba(0,0,0,.13));box-shadow:0 10px 30px rgba(0,0,0,.16);transition:transform .18s ease,border-color .18s ease}
#gift-modal .gift-day:hover{transform:translateY(-3px);border-color:rgba(244,187,71,.28)}
#gift-modal .gift-day h3{font-size:1.05rem;line-height:1.05}
#gift-modal .gift-day [data-gift-status]{margin-top:4px;font-size:8px;line-height:1.2;letter-spacing:.12em}
#gift-modal .gift-reward-icon{width:62px;height:62px;margin:21px auto 14px;border-radius:17px;background:rgba(214,161,55,.075);border:1px solid rgba(214,161,55,.17)}
#gift-modal .gift-reward-icon img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.38))}
#gift-modal .gift-day>strong{display:block;min-height:2.6em;color:#f3f4f1;font-size:10px;line-height:1.3;text-align:center}
#gift-modal .gift-day>small{display:-webkit-box;margin-top:8px;overflow:hidden;color:#858380;font-size:8px;line-height:1.45;text-align:center;-webkit-line-clamp:3;-webkit-box-orient:vertical}
#gift-modal .gift-day.locked{opacity:.62;filter:none}
#gift-modal .gift-day.claimed{opacity:1;border-color:rgba(223,178,94,.36);background:linear-gradient(165deg,rgba(174,127,49,.23),rgba(28,26,23,.52))}
#gift-modal .gift-day.next{z-index:2;transform:translateY(-5px);border-color:rgba(244,187,71,.7);background:linear-gradient(165deg,rgba(214,161,55,.21),rgba(40,28,7,.43));box-shadow:0 18px 42px rgba(0,0,0,.34),0 0 24px rgba(214,161,55,.09)}
#gift-modal .gift-day.next:after{content:'HOY';position:absolute;top:12px;right:12px;padding:4px 7px;border-radius:999px;color:#151006;background:#e7ae3c;font-size:7px;font-weight:900;letter-spacing:.14em}
#gift-modal .gift-claimed-check{width:23px;height:23px;border-radius:8px}
#gift-modal .gift-mobile-swipe-hint{display:none}
#gift-modal .gift-modal-actions{min-height:70px;padding:12px 20px;border-top:1px solid rgba(255,255,255,.07);background:rgba(5,5,5,.8)}
#gift-modal .gift-modal-actions .btn-neon{min-width:220px;min-height:46px;border-radius:13px;box-shadow:0 10px 26px rgba(214,161,55,.16)}
@media(max-width:1100px){#gift-modal .gift-week-grid{grid-template-columns:repeat(7,170px);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}#gift-modal .gift-day{scroll-snap-align:start}#gift-modal .gift-mobile-swipe-hint{display:block;margin:10px 20px 0;color:#878582;font-size:9px;letter-spacing:.08em;text-transform:uppercase}}
@media(max-width:640px){#gift-modal{padding:8px;align-items:flex-end}#gift-modal .gift-modal-panel{width:100%;max-height:calc(100dvh - 16px);border-radius:22px}#gift-modal .gift-modal-head{min-height:72px;padding:14px}#gift-modal .gift-title-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}#gift-modal .gift-modal-head h2{font-size:1.25rem}#gift-modal .gift-modal-head .text-right{display:none}#gift-modal .gift-welcome-banner{margin:10px 12px 8px;padding:12px 14px;border-radius:14px}#gift-modal .gift-welcome-banner strong{font-size:1.3rem}#gift-modal .gift-progress{margin-inline:12px}#gift-modal .gift-mobile-swipe-hint{margin-inline:12px}#gift-modal .gift-week-grid{grid-template-columns:repeat(7,minmax(156px,72vw));gap:9px;padding:12px 12px 16px}#gift-modal .gift-day{min-height:215px}#gift-modal .gift-modal-actions{align-items:stretch;flex-direction:column;gap:9px;padding:12px;text-align:center}#gift-modal .gift-modal-actions .btn-neon{width:100%;min-width:0}}

/* Global motion layer — shared by every public and authenticated view. */
@keyframes tdl-page-arrive {
    from { opacity: 0; transform: translateY(12px); filter: saturate(.72); }
    to { opacity: 1; transform: translateY(0); filter: saturate(1); }
}
@keyframes tdl-section-arrive {
    from { opacity: 0; transform: translateY(20px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tdl-title-breathe {
    0%, 100% { text-shadow: 0 0 0 rgba(220,171,73,0); }
    50% { text-shadow: 0 0 24px rgba(220,171,73,.18); }
}
@keyframes tdl-icon-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes tdl-background-breathe {
    from { transform: scale(1.015); filter: saturate(.88) brightness(.92); }
    to { transform: scale(1.045); filter: saturate(1.04) brightness(1); }
}
@keyframes tdl-texture-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 32px -24px, -28px 30px; }
}

body:not(.reduced-motion) main {
    animation: tdl-page-arrive .68s cubic-bezier(.2,.75,.25,1) both;
}
body:not(.reduced-motion) main > :where(section, article, .glass, .hub-card, .hub-module, .events-panel, .sky-panel) {
    animation: tdl-section-arrive .72s cubic-bezier(.2,.75,.25,1) both;
}
body:not(.reduced-motion) main > :nth-child(2) { animation-delay: .07s; }
body:not(.reduced-motion) main > :nth-child(3) { animation-delay: .13s; }
body:not(.reduced-motion) main > :nth-child(4) { animation-delay: .19s; }
body:not(.reduced-motion) main > :nth-child(n+5) { animation-delay: .24s; }
body:not(.reduced-motion) main h1 {
    animation: tdl-title-breathe 4.8s ease-in-out 1s infinite;
}
body:not(.reduced-motion) .bg-immersive {
    animation: tdl-background-breathe 18s ease-in-out infinite alternate;
}
body:not(.reduced-motion) .reptile-texture {
    animation: tdl-texture-drift 30s linear infinite;
}
body:not(.reduced-motion) main :where(.hub-module-icon, .sky-feature > i, .events-fact > i, .dashboard-stat-icon, .mission-icon) {
    animation: tdl-icon-hover 3.6s ease-in-out infinite;
}
body:not(.reduced-motion) main :where(.hub-module-icon, .sky-feature > i, .events-fact > i, .dashboard-stat-icon, .mission-icon):nth-child(even) {
    animation-delay: -1.8s;
}

main :where(.glass, .hub-card, .hub-module, .events-panel, .sky-panel, .product-card, .profile-card, .mission-card) {
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}
main :where(.btn-neon, .sky-button, .event-register-submit, .event-simple-going, .store-section-link, .profile-tab-btn) {
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.top-nav-link i:first-child,
.mobile-nav-link i:first-child {
    transition: transform .22s ease, color .22s ease, filter .22s ease;
}

@media (hover:hover) {
    main :where(.glass, .hub-card, .hub-module, .events-panel, .sky-panel, .product-card, .profile-card, .mission-card):hover {
        transform: translateY(-4px);
        border-color: rgba(226,177,79,.3);
        box-shadow: 0 20px 46px rgba(0,0,0,.34), 0 0 25px rgba(198,146,58,.07);
        filter: brightness(1.035);
    }
    main :where(.btn-neon, .sky-button, .event-register-submit, .event-simple-going, .store-section-link, .profile-tab-btn):hover {
        transform: translateY(-2px) scale(1.015);
        filter: brightness(1.08);
        box-shadow: 0 10px 28px rgba(198,146,58,.2);
    }
    .top-nav-link:hover i:first-child,
    .mobile-nav-link:hover i:first-child {
        transform: translateY(-2px) rotate(-4deg) scale(1.1);
        filter: drop-shadow(0 0 7px rgba(231,182,77,.46));
    }
}

@media (prefers-reduced-motion:reduce) {
    body main,
    body main > *,
    body main h1,
    .bg-immersive,
    .reptile-texture,
    main :where(.hub-module-icon, .sky-feature > i, .events-fact > i, .dashboard-stat-icon, .mission-icon) {
        animation: none !important;
    }
    main :where(.glass, .hub-card, .hub-module, .events-panel, .sky-panel, .product-card, .profile-card, .mission-card),
    main :where(.btn-neon, .sky-button, .event-register-submit, .event-simple-going, .store-section-link, .profile-tab-btn) {
        transition: none !important;
    }
}


/* Ambient background: keep the texture organic, without diagonal scan lines. */
/* Audit fixes: readable copy and compact cards without changing map assets. */
main :is(.text-gray-500, .text-gray-600) { color: #aaa8a5; }
#gift-modal .gift-day > small {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    color: #bfbdba;
    font-size: 11px;
    line-height: 1.5;
}
#gift-modal .gift-day.locked { opacity: .85; }
.events-featured-prizes > strong, .events-catalog-meta > span { white-space: pre-line; }
.events-featured-prizes > strong { font-size: 23px; line-height: 1.55; }
@media (min-width: 1200px) and (pointer: fine) {
    main :is(.text-\[8px\], .text-\[9px\], .text-\[10px\], .text-\[11px\]) { font-size: 15px; line-height: 1.45; }
    main p.text-sm { font-size: 17.5px; line-height: 1.6; }
    main .text-xs { font-size: 15px; }
}
@media (max-width: 640px) {
    body.page-inventario .inventory-item-grid { align-items: start; gap: 10px !important; }
    body.page-inventario .inventory-item-grid > [data-inventory-item-id] { height: auto !important; }
    body.page-inventario .inventory-item-grid > [data-inventory-item-id] > .flex-grow { flex-grow: 0; }
    body.page-inventario .gift-inventory-detail { font-size: 12px; line-height: 1.5; }
    body.page-inventario .gift-inventory-footer { margin-top: 12px; }
    body.page-inventario main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
    body.mobile-content-scrolling :is(.store-quick-tab, .community-fab, .friends-fab) { visibility: hidden; pointer-events: none; }
}

.reptile-texture {
        background-image:
                radial-gradient(ellipse at 18% 28%, rgba(244, 191, 87, .035), transparent 36%),
                        radial-gradient(ellipse at 82% 72%, rgba(201, 232, 190, .025), transparent 42%);
                            opacity: .8;
                                animation: none !important;
}
    

/* Release the page entrance transforms after the animation so fixed dialogs and iframe overlays use the viewport. */
body:not(.reduced-motion) main,
body:not(.reduced-motion) main > :where(section, article, .glass, .hub-card, .hub-module, .events-panel, .sky-panel) {
    animation-fill-mode: backwards;
}

/* Keep the ambient canvas aligned with the viewport on scaled desktop pages. */
@media (min-width: 1200px) and (pointer: fine) {
    html:not(.native-page-scale) #particles-canvas {
        zoom: 1.25;
    }
}
