/**
 * Wordernario — Arcane HTML Template skin (BS4 bridge)
 * Guía visual: Arcane-HTML-Template (99-ToolsIA), no se carga el style.css completo (BS3).
 */

:root {
    --arcane-teal: #31a2a6;
    --arcane-orange: #ff8800;
    --arcane-orange-bright: #ffc400;
    --arcane-bg: #1d1d1d;
    --arcane-panel: #2a2a34;
    --arcane-ink: #1a1b1f;
    --arcane-text: #eee;
    --arcane-muted: #a0a0a0;
    --arcane-gradient-bar: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -150%, #333240 45%, #333240 85%);
    --arcane-gradient-btn: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-orange-bright) -150%, var(--arcane-orange-bright) 45%, var(--arcane-orange) 85%);
    --arcane-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    /* Around the Net — panel con vida (Arcane index) */
    --arcane-atn-gradient: linear-gradient(to bottom left, #3b3c50 -20%, #2a2a34 5%, #1b1b21 40%);
    --arcane-atn-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    /* Catedral arcana — fondos vivos */
    --arcane-body-gradient: linear-gradient(
        145deg,
        #0f2838 0%,
        #1e2f52 32%,
        #241a42 58%,
        #0e0f14 100%
    );
    --arcane-body-glow: radial-gradient(ellipse 120% 70% at 50% -12%, rgba(49, 162, 166, 0.32), transparent 58%);
    --arcane-body-ember: radial-gradient(ellipse 80% 50% at 100% 100%, rgba(255, 136, 0, 0.16), transparent 52%);
    --arcane-modal-shell: linear-gradient(155deg, #162a45 0%, #1a1638 48%, #10121a 100%);
    --arcane-modal-inner: linear-gradient(
        to bottom left,
        rgba(49, 162, 166, 0.16) -25%,
        #243550 22%,
        #1c2642 70%,
        #12101c 100%
    );
    --arcane-living-border-width: 2px;
    --arcane-living-sweep: 5.5s;
  /* Scroll perla (desktop) */
    --arcane-scroll-track: rgba(8, 12, 22, 0.72);
    --arcane-scroll-track-edge: rgba(49, 162, 166, 0.12);
    --arcane-scroll-thumb: #c4b4e4;
    --arcane-scroll-thumb-hover: #eadcff;
    --arcane-scroll-glow: rgba(200, 180, 255, 0.45);
    --arcane-cursor-img: url("../img/icons/game/cursor-pointer.png");
    --arcane-cursor-hot: 8 6;
    --arcane-cursor-hand: var(--arcane-cursor-img) var(--arcane-cursor-hot), default;
}

/* —— Brillos en bordes (modales / marcos) —— */
@keyframes arcane-edge-sweep {
    0% {
        background-position: 120% 50%;
        opacity: 0.45;
    }
    45% {
        opacity: 0.95;
    }
    100% {
        background-position: -40% 50%;
        opacity: 0.45;
    }
}

@keyframes arcane-frame-glint {
    0%,
    100% {
        opacity: 0.35;
        filter: blur(0);
    }
    50% {
        opacity: 0.85;
        filter: blur(0.5px);
    }
}

@keyframes arcane-body-glow-shift {
    0% {
        background-position: 0% 40%, 100% 80%, 0% 0%;
    }
    100% {
        background-position: 100% 60%, 0% 20%, 0% 0%;
    }
}

@keyframes arcane-vignette-breathe {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.72;
    }
}

/* —— Scroll estilo perla (solo escritorio con ratón) —— */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .arcane-skin .welcome-tab-panels,
    .arcane-skin .welcome-home-scroll,
    .arcane-skin .arcane-books-scroll,
    .arcane-skin .arcane-modes-scroll,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll,
    .arcane-skin #mdAlmacen .warehouse-tab-slider,
    .arcane-skin .arcane-mini-slider,
    .arcane-skin .avatar-picker__scroll,
    .arcane-skin .content-disorder:not(.phaser-on) {
        scrollbar-width: thin;
        scrollbar-color: var(--arcane-scroll-thumb) var(--arcane-scroll-track);
        scrollbar-gutter: stable;
    }

    .arcane-skin .welcome-home-scroll,
    .arcane-skin .arcane-books-scroll,
    .arcane-skin #mdWelcome .welcome-tab-panels {
        scroll-behavior: smooth;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .arcane-skin .welcome-tab-panels::-webkit-scrollbar,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar {
        width: 11px;
        height: 11px;
    }

    .arcane-skin .welcome-tab-panels::-webkit-scrollbar-corner,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar-corner,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar-corner,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar-corner,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar-corner,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar-corner,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar-corner,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar-corner,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar-corner,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar-corner {
        background: transparent;
    }

    .arcane-skin .welcome-tab-panels::-webkit-scrollbar-track,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar-track,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar-track,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar-track,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar-track,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar-track,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar-track,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar-track,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar-track,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar-track {
        background: var(--arcane-scroll-track);
        border-radius: 999px;
        margin: 4px 0;
        border: 1px solid var(--arcane-scroll-track-edge);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
    }

    .arcane-skin .welcome-tab-panels::-webkit-scrollbar-thumb,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar-thumb,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar-thumb,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar-thumb,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar-thumb,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar-thumb,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar-thumb,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar-thumb,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar-thumb,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
        background-image: linear-gradient(
            145deg,
            #fff9f2 0%,
            #e8dcff 24%,
            #aee4ef 48%,
            #ffd8f4 72%,
            #f2ebff 100%
        );
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.75),
            inset 0 -1px 2px rgba(70, 55, 110, 0.2),
            0 0 8px var(--arcane-scroll-glow);
    }

    .arcane-skin .welcome-tab-panels::-webkit-scrollbar-thumb:hover,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar-thumb:hover,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar-thumb:hover,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar-thumb:hover,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar-thumb:hover,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar-thumb:hover,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar-thumb:hover,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar-thumb:hover,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar-thumb:hover,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar-thumb:hover {
        background-image: linear-gradient(
            145deg,
            #fffcf8 0%,
            #f0e6ff 20%,
            #c5eef5 42%,
            #ffe0f8 68%,
            #faf5ff 100%
        );
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 12px rgba(220, 200, 255, 0.55);
    }

    .arcane-skin .welcome-tab-panels::-webkit-scrollbar-thumb:active,
    .arcane-skin .welcome-home-scroll::-webkit-scrollbar-thumb:active,
    .arcane-skin .arcane-books-scroll::-webkit-scrollbar-thumb:active,
    .arcane-skin .arcane-modes-scroll::-webkit-scrollbar-thumb:active,
    .arcane-skin #mdAlmacen .warehouse-inventory-grid::-webkit-scrollbar-thumb:active,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar-thumb:active,
    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar-thumb:active,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar-thumb:active,
    .arcane-skin .avatar-picker__scroll::-webkit-scrollbar-thumb:active,
    .arcane-skin .content-disorder:not(.phaser-on)::-webkit-scrollbar-thumb:active {
        background-image: linear-gradient(
            145deg,
            #e8dce8 0%,
            #b8a8d8 50%,
            #d8c8f0 100%
        );
    }

    .arcane-skin #mdAlmacen .warehouse-tab-slider::-webkit-scrollbar,
    .arcane-skin #mdAlmacen .warehouse-shop-scroll::-webkit-scrollbar,
    .arcane-skin .arcane-mini-slider::-webkit-scrollbar {
        height: 9px;
    }
}

.arcane-skin .arcane-living-shell,
.arcane-skin #mdWelcome .modal-content.welcome-sheet,
.arcane-skin #mdAlmacen .modal-content.warehouse-sheet,
.arcane-skin #mdNextRound .modal-content.round-sheet,
.arcane-skin #mdShopNotice .shop-notice-sheet,
.arcane-skin #mdSeasonReward .modal-content,
.arcane-skin #mdResult .modal-content,
.arcane-skin #mdOnline .modal-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.arcane-skin .arcane-living-shell::before,
.arcane-skin #mdWelcome .modal-content.welcome-sheet::before,
.arcane-skin #mdAlmacen .modal-content.warehouse-sheet::before,
.arcane-skin #mdNextRound .modal-content.round-sheet::before,
.arcane-skin #mdShopNotice .shop-notice-sheet::before,
.arcane-skin #mdSeasonReward .modal-content::before,
.arcane-skin #mdResult .modal-content::before,
.arcane-skin #mdOnline .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    padding: var(--arcane-living-border-width);
    background: linear-gradient(
        115deg,
        rgba(49, 162, 166, 0.55) 0%,
        rgba(255, 196, 0, 0.35) 35%,
        rgba(49, 162, 166, 0.25) 70%,
        rgba(255, 224, 138, 0.4) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.72;
}

.arcane-skin .game-modal-shell > .game-modal-close {
    z-index: 25;
}

.arcane-skin .arcane-living-shell > *:not(.game-modal-close),
.arcane-skin #mdWelcome .modal-content.welcome-sheet > *:not(.game-modal-close),
.arcane-skin #mdAlmacen .modal-content.warehouse-sheet > *:not(.game-modal-close),
.arcane-skin #mdNextRound .modal-content.round-sheet > *:not(.round-corner):not(.round-crest),
.arcane-skin #mdShopNotice .shop-notice-sheet > *,
.arcane-skin #mdSeasonReward .modal-content > *,
.arcane-skin #mdResult .modal-content > *,
.arcane-skin #mdOnline .modal-content > * {
    position: relative;
    z-index: 1;
}

.arcane-skin .welcome-immersive-frame,
.arcane-skin #mdAlmacen .welcome-immersive-frame,
.arcane-skin #mdNextRound .round-immersive-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.arcane-skin .welcome-immersive-frame::before,
.arcane-skin #mdAlmacen .welcome-immersive-frame::before,
.arcane-skin #mdNextRound .round-immersive-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 38%,
        rgba(49, 162, 166, 0.7) 48%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 196, 0, 0.65) 52%,
        rgba(49, 162, 166, 0.45) 58%,
        transparent 68%,
        transparent 100%
    );
    background-size: 280% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: arcane-edge-sweep var(--arcane-living-sweep) ease-in-out infinite;
    opacity: 0.65;
}

.arcane-skin .welcome-immersive-frame::after,
.arcane-skin #mdAlmacen .welcome-immersive-frame::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    top: 8px;
    right: 12px;
    z-index: 3;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 196, 0, 0.6) 35%, transparent 70%);
    box-shadow:
        0 0 10px rgba(255, 196, 0, 0.8),
        0 0 18px rgba(49, 162, 166, 0.45);
    animation: arcane-frame-glint 2.4s ease-in-out infinite;
}

.arcane-skin.body-bg-default::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 0% 0%, rgba(49, 162, 166, 0.14), transparent 70%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(255, 136, 0, 0.1), transparent 65%);
    animation: arcane-vignette-breathe 12s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .arcane-skin .arcane-living-shell::before,
    .arcane-skin #mdWelcome .modal-content.welcome-sheet::before,
    .arcane-skin #mdAlmacen .modal-content.warehouse-sheet::before,
    .arcane-skin #mdNextRound .modal-content.round-sheet::before,
    .arcane-skin #mdShopNotice .shop-notice-sheet::before,
    .arcane-skin .welcome-immersive-frame::before,
    .arcane-skin .welcome-immersive-frame::after,
    .arcane-skin #mdAlmacen .welcome-immersive-frame::before,
    .arcane-skin #mdAlmacen .welcome-immersive-frame::after,
    .arcane-skin #mdNextRound .round-immersive-frame::before,
    .arcane-skin .arcane-game-band.arcane-board-surface::before,
    .arcane-skin.body-bg-default::before,
    .arcane-skin.body-bg-default::after {
        animation: none;
    }

    .arcane-skin .welcome-immersive-frame::after,
    .arcane-skin #mdAlmacen .welcome-immersive-frame::after {
        opacity: 0.5;
    }
}

/* Modo UI ligera (Más → UI ligera; también auto en móvil hasta que elijas) */
.arcane-skin.arcane-lite-ui .arcane-living-shell::before,
.arcane-skin.arcane-lite-ui #mdWelcome .modal-content.welcome-sheet::before,
.arcane-skin.arcane-lite-ui #mdAlmacen .modal-content.warehouse-sheet::before,
.arcane-skin.arcane-lite-ui #mdNextRound .modal-content.round-sheet::before,
.arcane-skin.arcane-lite-ui #mdShopNotice .shop-notice-sheet::before,
.arcane-skin.arcane-lite-ui .welcome-immersive-frame::before,
.arcane-skin.arcane-lite-ui .welcome-immersive-frame::after,
.arcane-skin.arcane-lite-ui #mdAlmacen .welcome-immersive-frame::before,
.arcane-skin.arcane-lite-ui #mdAlmacen .welcome-immersive-frame::after,
.arcane-skin.arcane-lite-ui #mdNextRound .round-immersive-frame::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.arcane-board-surface::before {
    animation: none;
}

.arcane-skin.arcane-lite-ui .welcome-immersive-frame::after,
.arcane-skin.arcane-lite-ui #mdAlmacen .welcome-immersive-frame::after {
    opacity: 0.45;
}

.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special.board-theme-pauline::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special.board-theme-zaqueo::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special.board-theme-jesus::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special.board-theme-mapa::before,
.arcane-skin.arcane-lite-ui .arcane-game-band.board-theme-special.board-theme-sociedad::before,
.arcane-skin.arcane-lite-ui #mdNextRound.round-outcome-correct .round-immersive-bg::before,
.arcane-skin.arcane-lite-ui #mdNextRound.round-outcome-incorrect .round-immersive-bg::before {
    filter: none;
}

.arcane-skin.arcane-lite-ui.body-bg-default::before,
.arcane-skin.arcane-lite-ui.body-bg-default::after {
    animation: none;
}

.arcane-skin.arcane-lite-ui .plx-layer {
    will-change: auto;
}

.arcane-skin .arcane-atn-panel {
    position: relative;
    background: var(--arcane-atn-gradient) no-repeat;
    background-color: #1b1b21;
    box-shadow: var(--arcane-atn-shadow);
    border: 1px solid #000;
}

/* —— Tipografía Arcane (sustituye Supercell en UI) —— */
.arcane-skin,
.arcane-skin .font-supercell {
    font-family: Roboto, "Open Sans", Arial, sans-serif;
}

.arcane-skin .font-supercell,
.arcane-skin h1,
.arcane-skin h2,
.arcane-skin h3,
.arcane-skin h4,
.arcane-skin h5,
.arcane-skin h6,
.arcane-skin .titulo,
.arcane-skin [class*="btn-clash"],
.arcane-skin .welcome-tab-slider .nav-link {
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.arcane-skin body {
    color: var(--arcane-text);
    font-size: 14px;
}

/* Cursor de mano (solo escritorio con ratón) — mismo dibujo en UI y enlaces */
@media (hover: hover) and (pointer: fine) {
    .arcane-skin,
    .arcane-skin body {
        cursor: var(--arcane-cursor-hand);
    }

    .arcane-skin a,
    .arcane-skin a:hover,
    .arcane-skin a:focus,
    .arcane-skin a:visited,
    .arcane-skin button,
    .arcane-skin [role="button"],
    .arcane-skin label[for],
    .arcane-skin select,
    .arcane-skin summary,
    .arcane-skin .btn,
    .arcane-skin .nav-link,
    .arcane-skin .arcane-slider-chip,
    .arcane-skin .game-modal-close,
    .arcane-skin .draggable,
    .arcane-skin .hvr-pop,
    .arcane-skin .cursor-pointer,
    .arcane-skin .legend-chip,
    .arcane-skin .single-book,
    .arcane-skin .book-badge,
    .arcane-skin .words-disorder,
    .arcane-skin .phrase-chip,
    .arcane-skin .word-order,
    .arcane-skin .warehouse-tab,
    .arcane-skin .condimento-chip,
    .arcane-skin .level-chip,
    .arcane-skin .welcome-tab-chip,
    .arcane-skin [class*="btn-clash"],
    .arcane-skin .shop-item-card,
    .arcane-skin .avatar-picker__cell {
        cursor: var(--arcane-cursor-hand);
    }

    .arcane-skin input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
    .arcane-skin textarea,
    .arcane-skin [contenteditable="true"] {
        cursor: text;
    }

    .arcane-skin .disable-any-action,
    .arcane-skin [disabled],
    .arcane-skin .book-locked,
    .arcane-skin .cursor-not-allowed {
        cursor: not-allowed;
    }

    .arcane-skin .phrase-board-lane:not(.phrase-board-locked) .phrase-chip {
        cursor: grab;
    }

    .arcane-skin .phrase-board-lane:not(.phrase-board-locked) .phrase-chip:active {
        cursor: grabbing;
    }
}

/* Cerrar modal — anclado a la esquina del panel (modal-content), sobresale un poco */
.arcane-skin .modal-dialog {
    overflow: visible;
}

.arcane-skin .modal-dialog:has(.game-modal-shell) {
    padding-top: 14px;
    margin-top: 1rem;
}

.arcane-skin .modal-content.game-modal-shell {
    position: relative;
    overflow: visible !important;
    width: 100%;
}

.arcane-skin #mdAlmacen .modal-content.warehouse-sheet.game-modal-shell,
.arcane-skin #mdShopNotice .shop-notice-sheet.game-modal-shell,
.arcane-skin #mdSeasonReward .shop-notice-sheet.game-modal-shell {
    overflow: visible !important;
}

.arcane-skin .modal-content.game-modal-shell > .welcome-immersive-frame,
.arcane-skin .modal-content.game-modal-shell > .modal-body {
    position: relative;
    z-index: 1;
}

.arcane-skin .game-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: block;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    transform: translate(42%, -42%);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.65));
    transition: transform 0.15s ease, filter 0.15s ease;
}

.arcane-skin .game-modal-close img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.arcane-skin .game-modal-close:hover,
.arcane-skin .game-modal-close:focus {
    transform: translate(42%, -42%) scale(1.07);
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.75));
    outline: none;
}

.arcane-skin .game-modal-close:focus-visible {
    outline: 2px solid rgba(255, 196, 0, 0.75);
    outline-offset: 3px;
    border-radius: 10px;
}

.arcane-skin .warehouse-modal-header {
    padding-right: 12px;
}

@media (max-width: 480px) {
    .arcane-skin .game-modal-close {
        width: 44px;
        height: 44px;
        transform: translate(36%, -36%);
    }

    .arcane-skin .game-modal-close:hover,
    .arcane-skin .game-modal-close:focus {
        transform: translate(36%, -36%) scale(1.07);
    }
}

.arcane-skin .text-shadow {
    text-shadow: var(--arcane-text-shadow);
}

.arcane-skin .text-yellow {
    color: var(--arcane-orange) !important;
}

.arcane-skin a:hover {
    color: var(--arcane-orange);
}

.arcane-skin .hvr-pop {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.arcane-skin .hvr-pop:hover {
    transform: translateY(-2px);
}

/* —— Cabecera Arcane —— */
.arcane-skin .navbar-wrapper.arcane-top {
    z-index: 900;
    min-height: 72px;
    background-color: var(--arcane-bg);
    border: 1px solid #000;
    background-image: var(--arcane-gradient-bar);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    position: relative;
}

.arcane-skin .navbar-wrapper .logo {
    text-align: center;
    padding: 4px 8px;
}

.arcane-skin .navbar-wrapper .logo img {
    max-height: 52px;
    width: auto;
    max-width: min(280px, 70vw);
}

.arcane-skin .arcane-tagline {
    display: inline-block;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--arcane-muted);
    letter-spacing: 0.12em;
}

.arcane-skin .navbar-wrapper .login-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 8px;
    line-height: 1.2;
    min-height: 44px;
}

.arcane-skin .arcane-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 12px;
    color: #eee;
    border: 1px solid #000;
    text-transform: uppercase;
    font-weight: 800;
    background: #1a1b1f;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.35s ease-in-out;
    cursor: pointer;
}

.arcane-skin .arcane-menu-btn:hover {
    color: #fff;
    border-color: rgba(255, 136, 0, 0.6);
    text-decoration: none;
}

.arcane-skin .arcane-menu-btn .fa {
    color: var(--arcane-orange);
    font-size: 14px;
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

.arcane-skin .arcane-subnav {
    z-index: 850;
    background: linear-gradient(to bottom left, #252632 -30%, #1a1b1f 55%, #141418 100%);
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0 8px;
}

.arcane-skin .arcane-subnav .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2px;
}

.arcane-skin .arcane-subnav .nav-link {
    color: #ccc !important;
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 0;
    transition: color 0.25s ease, background 0.25s ease;
}

.arcane-skin .arcane-subnav .nav-link:hover,
.arcane-skin .arcane-subnav .nav-link:focus {
    color: var(--arcane-orange) !important;
    background: rgba(255, 136, 0, 0.08);
}

.arcane-skin .arcane-subnav .nav-link .fa {
    margin-right: 6px;
    color: var(--arcane-teal);
    font-size: 13px;
    width: 1.1em;
    text-align: center;
    vertical-align: middle;
}

/* —— Tablero de juego (superficie Arcane, sin caja negra) —— */
.arcane-skin .arcane-game-band.arcane-board-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 4px;
    margin: 10px auto 6px;
    max-width: 960px;
    padding: 12px 14px 14px;
    background: var(--arcane-modal-inner);
    background-color: #161c2e;
    border: 1px solid rgba(0, 0, 0, 0.85);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.55),
        0 0 14px rgba(49, 162, 166, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin .arcane-game-band.arcane-board-surface > * {
    position: relative;
    z-index: 1;
}

.arcane-skin .arcane-game-band.arcane-board-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(49, 162, 166, 0.55),
        rgba(255, 196, 0, 0.65),
        rgba(49, 162, 166, 0.45),
        transparent
    );
    background-size: 220% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: arcane-edge-sweep 5s ease-in-out infinite;
    opacity: 0.75;
}

.arcane-skin .arcane-game-band.board-theme-special > * {
    position: relative;
    z-index: 1;
}

/* Partidas especiales: fondos del slider Arcane, difuminados (sin figuras legibles) */
.arcane-skin .arcane-game-band.board-theme-special {
    background: transparent;
    background-color: #141418;
    box-shadow:
        0 0 0 1px rgba(255, 136, 0, 0.28),
        0 8px 32px rgba(255, 136, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin .arcane-game-band.board-theme-special::before {
    content: "";
    position: absolute;
    inset: -28px;
    z-index: 0;
    background: url(../img/arcane/slider-hero.jpg) center/cover no-repeat;
    filter: blur(18px) saturate(0.68) brightness(0.36) contrast(1.05);
    transform: scale(1.14);
    pointer-events: none;
}

.arcane-skin .arcane-game-band.board-theme-special::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(26, 27, 35, 0.78) 0%,
        rgba(22, 23, 30, 0.9) 50%,
        rgba(12, 13, 18, 0.94) 100%
    );
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-pauline::before {
    background-image: url(../img/arcane/slider-wide.jpg);
    filter: blur(20px) saturate(0.72) brightness(0.4) sepia(0.22);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-pauline::after {
    background: linear-gradient(
        135deg,
        rgba(90, 48, 12, 0.5) 0%,
        rgba(34, 28, 32, 0.88) 48%,
        rgba(16, 14, 20, 0.95) 100%
    );
    box-shadow: inset 0 0 48px rgba(255, 136, 0, 0.08);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-zaqueo::before {
    background-image: url(../img/arcane/slider-cs.jpg);
    filter: blur(19px) saturate(0.62) brightness(0.38) hue-rotate(-12deg);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-zaqueo::after {
    background: linear-gradient(
        135deg,
        rgba(24, 72, 36, 0.45) 0%,
        rgba(24, 30, 28, 0.9) 52%,
        rgba(10, 14, 12, 0.96) 100%
    );
    box-shadow: inset 0 0 40px rgba(96, 214, 0, 0.06);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-zaqueo {
    box-shadow:
        0 0 0 1px rgba(72, 184, 56, 0.35),
        0 8px 32px rgba(96, 214, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-jesus::before {
    background-image: url(../img/arcane/slider-card.jpg);
    filter: blur(22px) saturate(0.58) brightness(0.34);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-jesus::after {
    background: linear-gradient(
        135deg,
        rgba(88, 28, 24, 0.48) 0%,
        rgba(40, 26, 28, 0.9) 50%,
        rgba(18, 12, 14, 0.96) 100%
    );
    box-shadow: inset 0 0 44px rgba(200, 60, 40, 0.08);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-jesus {
    box-shadow:
        0 0 0 1px rgba(255, 100, 80, 0.28),
        0 8px 32px rgba(200, 60, 40, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-mapa::before {
    background-image: url(../img/arcane/slider-cs.jpg);
    filter: blur(21px) saturate(0.55) brightness(0.35) hue-rotate(18deg);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-mapa::after {
    background: linear-gradient(
        135deg,
        rgba(49, 162, 166, 0.22) 0%,
        rgba(24, 28, 34, 0.9) 52%,
        rgba(10, 12, 16, 0.96) 100%
    );
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-sociedad::before {
    background-image: url(../img/arcane/slider-wide.jpg);
    filter: blur(20px) saturate(0.66) brightness(0.37);
}

.arcane-skin .arcane-game-band.board-theme-special.board-theme-sociedad::after {
    background: linear-gradient(
        135deg,
        rgba(60, 40, 100, 0.35) 0%,
        rgba(28, 26, 36, 0.9) 52%,
        rgba(14, 12, 18, 0.96) 100%
    );
}

.arcane-skin .arcane-game-band .content-disorder {
    margin-bottom: 6px;
}

.arcane-skin .arcane-game-band .header .titulo {
    color: #eee;
    text-shadow: var(--arcane-text-shadow);
}

.arcane-skin .arcane-hud-icon {
    color: var(--arcane-orange);
    font-size: 1.15rem;
    width: 1.35em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    vertical-align: middle;
}

.arcane-skin img.game-icon {
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    vertical-align: middle;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

.arcane-skin img.game-icon.arcane-hud-icon {
    width: 28px;
    height: 28px;
    margin-right: 4px;
}

.arcane-skin .hud-score-wrap img.game-icon.arcane-hud-trophy {
    width: 26px;
    height: 26px;
    margin-left: 4px;
    margin-right: 0;
}

.arcane-skin .hud-score-wrap img.hud-points-icon {
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.arcane-skin .result-icons .game-icon.result-star,
.arcane-skin .result-icons .game-icon.result-trophy {
    filter: drop-shadow(0 4px 14px rgba(255, 136, 0, 0.35));
}

.arcane-skin .result-icons .game-icon.result-trophy {
    margin-left: 8px;
}

.arcane-skin .hud-timer-wrap .arcane-hud-icon {
    color: var(--arcane-teal);
}

.arcane-skin .hud-timer-wrap {
    position: relative;
    z-index: 3;
    gap: 8px;
}

.arcane-skin #lbTimer.hud-timer-value {
    display: inline-block;
    min-width: 2.75rem;
    font-size: clamp(1.05rem, 4vw, 1.45rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    line-height: 1.1;
    vertical-align: middle;
}

.arcane-skin .arcane-game-band .header .titulo-row {
    position: relative;
    z-index: 1;
}

.arcane-skin .arcane-game-band .header .hud-top-row {
    position: relative;
    z-index: 2;
}

.arcane-skin .hud-timer-bar-col {
    margin-top: 6px;
    padding: 0 4px;
}

.arcane-skin .hud-timer-bar-wrap {
    max-width: 320px;
    margin: 0 auto;
}

.arcane-skin .hud-timer-bar-track {
    height: 7px;
    border: 1px solid #000;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.arcane-skin .hud-timer-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -80%, #2a5a58 45%, #1f3a38 95%);
    box-shadow: 0 0 8px rgba(49, 162, 166, 0.35);
    transition: width 0.85s linear, background 0.4s ease, box-shadow 0.4s ease;
}

.arcane-skin .hud-timer-bar-fill.hud-timer-bar--warn {
    background: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-orange-bright) -120%, var(--arcane-orange) 50%, #8a4a10 95%);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
}

.arcane-skin .hud-timer-bar-fill.hud-timer-bar--critical {
    background: radial-gradient(ellipse farthest-corner at center 0, #ff6b4a -100%, #c0392b 50%, #6e1e18 95%);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.55);
}

.arcane-skin .arcane-hud-trophy {
    color: var(--arcane-orange-bright);
    margin-left: 4px;
}

.arcane-skin .hud-wallet-row {
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1.3;
}

.arcane-skin .hud-wallet-row .wallet-amount {
    color: #ffe08a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.arcane-skin .hud-wallet-row .wallet-user-sep,
.arcane-skin .hud-wallet-row .wallet-user {
    font-size: 0.68rem;
    opacity: 0.85;
}

.arcane-skin .hud-wallet-coin {
    width: 22px;
    height: 22px;
    margin-right: 4px;
    vertical-align: -5px;
}

.arcane-skin .welcome-home-scroll .wallet-register .form-control {
    max-width: 100%;
    background: rgba(12, 18, 28, 0.75);
    border-color: rgba(255, 224, 138, 0.35);
    color: #f5e6c8;
}

.arcane-skin .welcome-home-scroll .wallet-register .form-control::placeholder {
    color: rgba(245, 230, 200, 0.45);
}

.arcane-skin .hud-pearl-icon {
    width: 18px;
    height: 18px;
    margin: 0 2px 0 6px;
    vertical-align: -4px;
}

.arcane-skin .wallet-pearls {
    color: #ffd6f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.arcane-skin #mdAlmacen .modal-content.warehouse-sheet {
    background: var(--arcane-modal-shell);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    padding: 6px;
    color: #f2ebe0;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.85),
        0 0 24px rgba(49, 162, 166, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.arcane-skin #mdAlmacen .welcome-immersive-frame {
    border: 1px solid rgba(0, 0, 0, 0.85);
    background: var(--arcane-modal-inner);
    padding: 10px 14px 14px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 0 20px rgba(49, 162, 166, 0.08);
}

.arcane-skin #mdAlmacen .warehouse-modal-header,
.arcane-skin #mdAlmacen .warehouse-modal-body,
.arcane-skin #mdAlmacen .warehouse-modal-footer {
    color: #f2ebe0;
    background: transparent;
    border: none;
}


.arcane-skin .warehouse-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(72vh, 540px);
    overflow: hidden;
    padding-top: 4px;
}

.arcane-skin #mdAlmacen .warehouse-balance-row {
    flex-shrink: 0;
}

.arcane-skin #mdAlmacen .warehouse-tab-slider {
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.arcane-skin #mdAlmacen .warehouse-tab {
    flex: 1 0 auto;
    min-width: 0;
    border: 1px solid rgba(255, 224, 138, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #c8c2b6;
    font-size: 0.72rem;
    padding: 6px 12px;
    cursor: pointer;
}

.arcane-skin #mdAlmacen .warehouse-tab--on {
    border-color: rgba(49, 162, 166, 0.65);
    color: #ffe08a;
    background: rgba(49, 162, 166, 0.18);
    box-shadow: 0 0 0 1px rgba(49, 162, 166, 0.25);
}

.arcane-skin #mdAlmacen .warehouse-panels {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.arcane-skin #mdAlmacen .warehouse-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: none;
    flex-direction: column;
}

.arcane-skin #mdAlmacen .warehouse-panel--active {
    display: flex;
}

.arcane-skin #mdAlmacen .warehouse-panel-lead {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.arcane-skin #mdAlmacen .warehouse-shop-scroll-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.arcane-skin #mdAlmacen .warehouse-shop-scroll {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.arcane-skin #mdAlmacen .warehouse-shop-scroll .shop-item-card {
    flex: 0 0 min(88vw, 280px);
    scroll-snap-align: start;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(12, 18, 28, 0.82);
    border: 1px solid rgba(255, 224, 138, 0.18);
}

.arcane-skin #mdAlmacen .warehouse-shop-scroll .shop-item-card .shop-item-desc {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.arcane-skin #mdAlmacen .warehouse-shop-scroll .shop-item-card .btn-clash-green {
    align-self: stretch;
}

.arcane-skin .warehouse-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    overflow-y: auto;
    max-height: min(38vh, 320px);
    padding-right: 4px;
}

.arcane-skin .warehouse-inventory-grid .warehouse-inv-row {
    flex-direction: column;
    text-align: center;
    padding: 10px 8px;
    gap: 6px;
}

.arcane-skin .warehouse-inventory-grid .warehouse-inv-name {
    font-size: 0.72rem;
    line-height: 1.2;
}

.arcane-skin .warehouse-pearl-trade-card {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.arcane-skin .warehouse-trade-inner {
    text-align: center;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 224, 138, 0.22);
    max-width: 320px;
}

.arcane-skin .warehouse-trade-rate {
    color: #ffe08a;
}

.arcane-skin .warehouse-balance-card .warehouse-bal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
}

.arcane-skin .warehouse-bal-pearl-track {
    margin-left: auto;
    color: #b8b0a4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.arcane-skin .warehouse-bal-pearl-mini {
    vertical-align: middle;
}

.arcane-skin .warehouse-bal-user {
    flex: 1 1 100%;
    margin-top: 4px;
}

.arcane-skin #mdAlmacen .welcome-hint,
.arcane-skin #mdAlmacen p.font-size-08em {
    color: #c8c2b6 !important;
}

.arcane-skin #mdAlmacen h6.text-yellow {
    color: #ffe08a !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.arcane-skin #mdAlmacen .shop-item-card {
    color: #f2ebe0;
}

.arcane-skin #mdAlmacen .shop-item-titles strong {
    color: #fff8ec;
}

.arcane-skin #mdAlmacen .shop-item-desc,
.arcane-skin #mdAlmacen .shop-item-owned {
    color: #d8d2c8;
}

.arcane-skin #mdAlmacen .text-muted {
    color: #a8a298 !important;
}

.arcane-skin .warehouse-balance-row .warehouse-balance-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(8, 12, 22, 0.75);
    border: 1px solid rgba(255, 224, 138, 0.25);
}

.arcane-skin .warehouse-bal-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffe08a;
    font-size: 0.85rem;
}

.arcane-skin .warehouse-bal-hint {
    flex: 1 1 100%;
    color: #b8b0a4;
    margin-bottom: 0;
}

.arcane-skin .warehouse-inventory:not(.warehouse-inventory-grid) {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arcane-skin .warehouse-inv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(12, 18, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.arcane-skin .warehouse-inv-name {
    flex: 1;
    color: #f2ebe0;
}

.arcane-skin .warehouse-inv-qty {
    color: #ffe08a;
    font-weight: 700;
}

.arcane-skin .warehouse-shop-grid,
.arcane-skin .welcome-shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 520px) {
    .arcane-skin .warehouse-shop-grid,
    .arcane-skin .welcome-shop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.arcane-skin .power-bar .power-store-chip {
    border-color: rgba(255, 224, 138, 0.35);
}

.arcane-skin #mdShopNotice.shop-notice-modal {
    z-index: 1140;
}

.arcane-skin #mdShopNotice .shop-notice-sheet {
    background: var(--arcane-modal-shell);
    border: 1px solid rgba(0, 0, 0, 0.85);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.75),
        0 0 18px rgba(255, 136, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #f2ebe0;
    border-radius: 6px;
}

.arcane-skin #mdShopNotice .shop-notice-body {
    padding: 18px 16px 16px;
}

.arcane-skin #mdShopNotice .shop-notice-icon {
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
    animation: shop-notice-pop 0.55s ease-out;
}

@keyframes shop-notice-pop {
    0% {
        transform: scale(0.5) rotate(-8deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.08) rotate(4deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.arcane-skin #mdShopNotice .shop-notice-title {
    font-size: 0.95rem;
}

.arcane-skin #mdShopNotice .shop-notice-msg {
    color: #d8d2c8;
    line-height: 1.35;
}

.arcane-skin .shop-item-card {
    padding: 10px;
    border-radius: 10px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 224, 138, 0.22);
}

.arcane-skin .shop-item-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.arcane-skin .shop-item-price {
    display: block;
    font-size: 0.72rem;
    color: #ffe08a;
}

.arcane-skin .shop-epic-tag {
    font-size: 0.65rem;
    margin-left: 6px;
    color: #ffb8e8;
    text-transform: uppercase;
}

.arcane-skin .shop-blocked-tag {
    font-size: 0.62rem;
    color: rgba(255, 180, 180, 0.85);
}

.arcane-skin .pn-power-bar-row {
    margin-top: 0;
    margin-bottom: 2px;
}

.arcane-skin .power-bar.arcane-mini-slider {
    justify-content: flex-start;
    gap: 6px;
    padding: 2px 8px 6px;
    margin-bottom: 0;
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.arcane-skin .power-bar .power-use-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.6rem;
    line-height: 1.15;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 6px rgba(49, 162, 166, 0.25);
}

.arcane-skin .power-bar .power-use-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.arcane-skin .power-bar .power-use-chip .chip-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.arcane-skin .power-bar .power-btn-label {
    max-width: 4.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcane-skin .power-bar .power-btn-qty {
    opacity: 0.9;
    font-size: 0.58rem;
    flex-shrink: 0;
}

.arcane-skin .hud-pts-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-left: 6px;
}

.arcane-skin button.arcane-menu-btn {
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

/* Fichas del tablero */
.arcane-skin .words-disorder.badge,
.arcane-skin .words-disorder.phrase-chip {
    background: linear-gradient(to bottom left, rgba(49, 162, 166, 0.18) 0%, #252530 55%, #1f1e24 100%) !important;
    color: #e8e8ec !important;
    border: 1px solid #000 !important;
    font-weight: 700;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

.arcane-skin .words-disorder.word-used {
    opacity: 0.38;
}

.arcane-skin .words-disorder.confirm-correct {
    background: radial-gradient(ellipse farthest-corner at center 0, #58d68d -80%, #1e3d2c 55%, #1a2a22 100%) !important;
    color: #fff !important;
}

.arcane-skin .words-disorder.confirm-incorrect {
    background: radial-gradient(ellipse farthest-corner at center 0, #ff6b4a -80%, #3d2220 55%, #2a1a1a 100%) !important;
    color: #fff !important;
}

.arcane-skin .word-order.badge,
.arcane-skin span.word-order {
    background: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -80%, #2a3a38 45%, #1f1e24 95%) !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    box-shadow:
        0 0 8px rgba(49, 162, 166, 0.35),
        inset 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.arcane-skin .arcane-game-band #pnOrderText {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
    color: #eee;
}

.arcane-skin .game-toolbar-inner [class*="btn-clash"] .btn-icon-fa {
    color: #fff;
    font-size: 1rem;
    opacity: 0.95;
}

.arcane-skin .game-toolbar-inner [class*="btn-clash"] img.game-icon.btn-icon,
.arcane-skin [class*="btn-clash"] img.game-icon.btn-icon {
    width: 26px;
    height: 26px;
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.arcane-skin .content-main {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.arcane-skin .section-divider {
    margin: 18px 0 14px;
    height: 1px;
    background: #000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
}

/* —— Botones (patrón button-medium) —— */
.arcane-skin .button-medium,
.arcane-skin [class*="btn-clash"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff !important;
    overflow: hidden;
    padding: 11px 20px;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: 3px;
    transition: all 0.35s ease-in-out;
    cursor: pointer;
    background-color: var(--arcane-orange);
    background-image: var(--arcane-gradient-btn);
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: var(--arcane-text-shadow);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.35), inset 0 0 1px 1px var(--arcane-orange);
    position: relative;
    top: 0;
}

.arcane-skin [class*="btn-clash"]:hover:not(:disabled) {
    border-color: rgba(255, 136, 0, 0.55);
    filter: brightness(1.05);
    top: 0;
    box-shadow: 0 0 14px rgba(255, 136, 0, 0.55), inset 0 0 1px 1px var(--arcane-orange-bright);
}

.arcane-skin [class*="btn-clash"]:active:not(:disabled) {
    transform: translateY(1px);
    filter: brightness(0.95);
}

.arcane-skin .btn-clash-violet,
.arcane-skin .btn-clash-teal {
    background-color: #333543;
    background-image: var(--arcane-gradient-bar);
    box-shadow: 0 0 8px rgba(49, 162, 166, 0.35), inset 0 0 1px 1px var(--arcane-teal);
}

.arcane-skin .btn-clash-red {
    background-color: #c0392b;
    background-image: radial-gradient(ellipse farthest-corner at center 0, #ff6b4a -150%, #e74c3c 45%, #c0392b 85%);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4), inset 0 0 1px 1px #e74c3c;
}

.arcane-skin .btn-clash-green {
    background-color: #27ae60;
    background-image: radial-gradient(ellipse farthest-corner at center 0, #58d68d -150%, #2ecc71 45%, #27ae60 85%);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.35), inset 0 0 1px 1px #2ecc71;
}

.arcane-skin .btn-clash-yellow-light {
    background-color: #f1c40f;
    background-image: radial-gradient(ellipse farthest-corner at center 0, #fff59d -150%, #f1c40f 45%, var(--arcane-orange) 85%);
}

/* —— Modales / lobby —— */
.arcane-skin #mdResult .modal-content,
.arcane-skin #mdOnline .modal-content {
    background: var(--arcane-modal-shell);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(49, 162, 166, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    color: var(--arcane-text);
}

.arcane-skin #mdWelcome .modal-content.welcome-sheet {
    background: var(--arcane-modal-shell);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    padding: 6px;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(49, 162, 166, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--arcane-text);
}

/* Marco interno — post-small-bg-wrapper */
.arcane-skin #mdWelcome .welcome-immersive-frame {
    border: 1px solid rgba(0, 0, 0, 0.85);
    background: var(--arcane-modal-inner);
    box-shadow:
        0 0 18px rgba(49, 162, 166, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin #mdWelcome .welcome-immersive-bg.post-small-bg-wrapper {
    background: linear-gradient(180deg, rgba(16, 22, 36, 0.55) 0%, rgba(12, 16, 26, 0.35) 100%);
    padding: 14px 16px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.arcane-skin #mdWelcome .modal-body,
.arcane-skin #mdResult .modal-body,
.arcane-skin #mdOnline .modal-body {
    color: var(--arcane-text);
    border: none;
    background: transparent;
}

/* Modal de acierto / fallo — fondo inmersivo (mejor que partidas especiales) */
.arcane-skin #mdNextRound .round-dialog {
    max-width: min(94vw, 560px);
    margin: 1rem auto;
    overflow: visible;
    padding-top: 28px;
}

.arcane-skin #mdNextRound .modal-content.round-sheet {
    position: relative;
    overflow: visible !important;
    background: linear-gradient(
        160deg,
        #3d2a0a 0%,
        #c9a03a 14%,
        #f5d78a 28%,
        #a67c1a 44%,
        #f0cf83 52%,
        #7a5a14 66%,
        #c9a03a 78%,
        #2a1c08 100%
    );
    border: 2px solid #1a1006;
    border-radius: 10px;
    padding: 7px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.88),
        0 0 36px rgba(212, 168, 75, 0.28),
        inset 0 1px 0 rgba(255, 248, 220, 0.35);
    color: var(--arcane-text);
}

.arcane-skin #mdNextRound.round-outcome-incorrect .modal-content.round-sheet {
    background: linear-gradient(
        160deg,
        #2a1414 0%,
        #6b3830 18%,
        #9a5a48 32%,
        #5c3028 48%,
        #8a5040 54%,
        #4a2820 70%,
        #6b3830 82%,
        #1a0c0c 100%
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.88),
        0 0 28px rgba(180, 60, 40, 0.2),
        inset 0 1px 0 rgba(255, 220, 200, 0.2);
}

.arcane-skin #mdNextRound .round-crest {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 24;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    transform: translate(-50%, -52%);
    pointer-events: none;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

.arcane-skin #mdNextRound.round-outcome-correct .round-crest--lose,
.arcane-skin #mdNextRound.round-outcome-incorrect .round-crest--win {
    display: none;
}

.arcane-skin #mdNextRound .round-crest-star {
    display: block;
    width: 30px;
    height: auto;
    align-self: center;
    filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.5));
}

.arcane-skin #mdNextRound .round-crest-star--main {
    width: 42px;
    filter: drop-shadow(0 0 14px rgba(255, 196, 0, 0.65));
}

.arcane-skin #mdNextRound .round-crest-heart {
    display: block;
    width: 30px;
    height: auto;
    align-self: center;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.45));
}

.arcane-skin #mdNextRound .round-crest-heart--main {
    width: 42px;
    filter: drop-shadow(0 0 14px rgba(231, 76, 60, 0.55));
}

.arcane-skin #mdNextRound.show .round-crest {
    animation: round-crest-drop 0.5s cubic-bezier(0.34, 1.35, 0.64, 1) backwards;
}

@keyframes round-crest-drop {
    0% {
        opacity: 0;
        transform: translate(-50%, -90%) scale(0.4);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -52%) scale(1);
    }
}

.arcane-skin #mdNextRound .round-corner {
    position: absolute;
    z-index: 22;
    display: block;
    width: 52px;
    height: 52px;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.65));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.arcane-skin #mdNextRound .round-corner img {
    display: block;
    width: 100%;
    height: auto;
}

.arcane-skin #mdNextRound .round-corner--tl {
    top: 0;
    left: 0;
    transform: translate(-40%, -40%);
}

.arcane-skin #mdNextRound .round-corner--tr {
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
}

.arcane-skin #mdNextRound .round-corner--bl {
    bottom: 0;
    left: 0;
    transform: translate(-40%, 40%);
}

.arcane-skin #mdNextRound .round-corner--br {
    bottom: 0;
    right: 0;
    transform: translate(40%, 40%);
}

.arcane-skin #mdNextRound.round-outcome-correct .round-corner--lose,
.arcane-skin #mdNextRound.round-outcome-incorrect .round-corner--win {
    display: none;
}

.arcane-skin #mdNextRound.round-outcome-correct .round-corner img {
    filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.45));
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-corner img {
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.35));
}

.arcane-skin #mdNextRound.show .round-corner {
    animation: round-corner-pop 0.45s ease-out backwards;
}

.arcane-skin #mdNextRound.show .round-corner--tr {
    animation-delay: 0.05s;
}

.arcane-skin #mdNextRound.show .round-corner--bl {
    animation-delay: 0.1s;
}

.arcane-skin #mdNextRound.show .round-corner--br {
    animation-delay: 0.15s;
}

@keyframes round-corner-pop {
    0% {
        opacity: 0;
        transform: translate(var(--rc-tx, -40%), var(--rc-ty, -40%)) scale(0.35);
    }
    70% {
        opacity: 1;
        transform: translate(var(--rc-tx, -40%), var(--rc-ty, -40%)) scale(1.12);
    }
    100% {
        opacity: 1;
        transform: translate(var(--rc-tx, -40%), var(--rc-ty, -40%)) scale(1);
    }
}

.arcane-skin #mdNextRound.show .round-corner--tl {
    --rc-tx: -40%;
    --rc-ty: -40%;
}

.arcane-skin #mdNextRound.show .round-corner--tr {
    --rc-tx: 40%;
    --rc-ty: -40%;
}

.arcane-skin #mdNextRound.show .round-corner--bl {
    --rc-tx: -40%;
    --rc-ty: 40%;
}

.arcane-skin #mdNextRound.show .round-corner--br {
    --rc-tx: 40%;
    --rc-ty: 40%;
}

@media (max-width: 480px) {
    .arcane-skin #mdNextRound .round-corner {
        width: 38px;
        height: 38px;
    }

    .arcane-skin #mdNextRound .round-msg-frame {
        padding: 12px 14px 14px;
    }

    .arcane-skin #mdNextRound .round-msg--hero.round-title-display {
        font-size: 1.05rem;
        letter-spacing: 0.02em;
        -webkit-text-stroke: 1px rgba(70, 35, 5, 0.65);
    }

    .arcane-skin #mdNextRound .round-crest-star--main,
    .arcane-skin #mdNextRound .round-crest-heart--main {
        width: 36px;
    }
}

.arcane-skin #mdNextRound .round-immersive-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid rgba(20, 12, 8, 0.95);
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 138, 0.22),
        inset 0 4px 20px rgba(0, 0, 0, 0.55);
}

.arcane-skin #mdNextRound .round-immersive-bg {
    position: relative;
    padding: 10px 16px 16px;
    background-color: #2e1420;
}

.arcane-skin #mdNextRound .round-immersive-bg::before {
    content: "";
    position: absolute;
    inset: -32px;
    z-index: 0;
    background: url(../img/arcane/slider-hero.jpg) center/cover no-repeat;
    filter: blur(22px) saturate(0.75) brightness(0.42) contrast(1.08);
    transform: scale(1.12);
    pointer-events: none;
}

.arcane-skin #mdNextRound .round-immersive-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        rgba(30, 32, 40, 0.55) 0%,
        rgba(20, 22, 30, 0.88) 45%,
        rgba(10, 11, 16, 0.94) 100%
    );
}

.arcane-skin #mdNextRound.round-outcome-correct .round-immersive-frame {
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 138, 0.28),
        inset 0 0 32px rgba(212, 168, 75, 0.12),
        0 0 24px rgba(212, 168, 75, 0.2);
}

.arcane-skin #mdNextRound.round-outcome-correct .round-immersive-bg {
    background-color: #3a1828;
}

.arcane-skin #mdNextRound.round-outcome-correct .round-immersive-bg::before {
    inset: 0;
    transform: none;
    background: url(../img/modal-acierto_1.png) center center / cover no-repeat;
    filter: none;
}

.arcane-skin #mdNextRound.round-outcome-correct .round-immersive-bg::after {
    background: linear-gradient(
        180deg,
        rgba(8, 12, 28, 0.15) 0%,
        rgba(8, 12, 28, 0.08) 35%,
        rgba(20, 8, 24, 0.45) 72%,
        rgba(12, 6, 18, 0.72) 100%
    );
    box-shadow: none;
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-immersive-frame {
    box-shadow:
        inset 0 0 0 1px rgba(200, 120, 90, 0.25),
        inset 0 0 28px rgba(80, 30, 25, 0.35),
        0 0 20px rgba(120, 40, 30, 0.18);
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-immersive-bg {
    background-color: #2a1418;
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-immersive-bg::before {
    inset: 0;
    transform: none;
    background: url(../img/modal-fallo_1.png) center center / cover no-repeat;
    filter: none;
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-immersive-bg::after {
    background: linear-gradient(
        180deg,
        rgba(28, 8, 8, 0.2) 0%,
        rgba(20, 6, 6, 0.12) 38%,
        rgba(24, 10, 12, 0.5) 75%,
        rgba(10, 4, 6, 0.78) 100%
    );
    box-shadow: none;
}

.arcane-skin #mdNextRound .round-arcane-body {
    position: relative;
    z-index: 1;
    padding: 4px 2px 2px;
    border: none;
    background: transparent;
    text-align: center;
}

.arcane-skin #mdNextRound .round-celebrate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 8px 10px;
    text-align: center;
}

.arcane-skin #mdNextRound .round-title-kicker,
.arcane-skin #mdNextRound .round-title-display {
    font-family: "Titan One", "Roboto Condensed", Roboto, sans-serif;
    font-weight: 400;
}

.arcane-skin #mdNextRound .round-msg-kicker,
.arcane-skin #mdNextRound .round-title-kicker {
    margin: 0;
    font-size: clamp(0.72rem, 2.2vw, 0.88rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffe9a8;
    -webkit-text-stroke: 1px rgba(80, 40, 10, 0.55);
    text-shadow:
        0 0 14px rgba(255, 196, 0, 0.55),
        0 2px 0 #4a2808,
        0 3px 0 #2a1806,
        0 4px 10px rgba(0, 0, 0, 0.85);
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-msg-kicker,
.arcane-skin #mdNextRound.round-outcome-incorrect .round-title-kicker {
    color: #ffd4c8;
    -webkit-text-stroke: 1px rgba(60, 20, 15, 0.5);
    text-shadow:
        0 0 12px rgba(231, 76, 60, 0.4),
        0 2px 0 #3d1810,
        0 4px 10px rgba(0, 0, 0, 0.85);
}

.arcane-skin #mdNextRound .round-msg-frame {
    display: inline-block;
    max-width: 100%;
    padding: 10px 22px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.arcane-skin #mdNextRound .round-msg {
    font-size: 0.92rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.arcane-skin #mdNextRound .round-msg--hero.round-title-display {
    margin: 0;
    font-size: clamp(1.15rem, 4.2vw, 1.75rem);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fff4b8 22%,
        #ffd54a 48%,
        #ff9c00 78%,
        #e87800 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(70, 35, 5, 0.75);
    paint-order: stroke fill;
    filter:
        drop-shadow(0 2px 0 rgba(45, 25, 5, 0.95))
        drop-shadow(0 4px 0 rgba(25, 12, 2, 0.9))
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75))
        drop-shadow(0 0 22px rgba(255, 200, 60, 0.55));
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-msg--hero.round-title-display {
    text-transform: none;
    line-height: 1.22;
    letter-spacing: 0.02em;
    font-size: clamp(1rem, 3.8vw, 1.55rem);
}

.arcane-skin #mdNextRound.show .round-msg-frame {
    animation: round-hero-pop 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) 0.06s backwards;
}

@keyframes round-hero-pop {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .arcane-skin #mdNextRound.show .round-corner,
    .arcane-skin #mdNextRound.show .round-msg-frame,
    .arcane-skin #mdNextRound.show .round-crest {
        animation: none;
    }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .arcane-skin #mdNextRound .round-msg--hero.round-title-display {
        color: #ffd54a;
        background: none;
        -webkit-text-stroke: 0;
        filter: none;
        text-shadow:
            0 0 20px rgba(255, 200, 60, 0.55),
            0 2px 0 #4a2808,
            0 3px 0 #2a1806,
            0 5px 12px rgba(0, 0, 0, 0.85);
    }

}

.arcane-skin #mdNextRound .round-reveal-wrap {
    margin: 14px 0 16px;
    text-align: left;
    padding: 12px 12px 10px;
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    background: linear-gradient(
        to bottom left,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(0, 0, 0, 0.22) 100%
    );
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.arcane-skin #mdNextRound .round-reveal-kicker {
    margin: 0 0 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--arcane-muted);
}

.arcane-skin #mdNextRound.round-outcome-correct .round-reveal-kicker {
    color: rgba(157, 255, 0, 0.85);
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-reveal-kicker {
    color: rgba(255, 180, 140, 0.9);
}

.arcane-skin #mdNextRound .round-reveal {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #e8f4ea;
    word-break: break-word;
}

.arcane-skin #mdNextRound.round-outcome-incorrect .round-reveal {
    color: #f5ddd6;
}

.arcane-skin #mdNextRound .round-actions {
    padding-top: 2px;
}

.arcane-skin #mdNextRound .round-actions [class*="btn-clash"] .fa {
    margin-right: 6px;
}

.arcane-skin .welcome-dialog.modal-lg {
    max-width: min(94vw, 880px);
}

.arcane-skin #mdWelcome .welcome-arcane-body {
    padding: 0;
    text-align: left;
}

.arcane-skin #mdWelcome .welcome-arcane-brand {
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.arcane-skin .welcome-arcane-brand img {
    max-width: min(220px, 70vw);
    height: auto;
}

/* Tab shell — continúa la superficie del fondo inmersivo (sin caja aparte) */
.arcane-skin .welcome-tab-shell.tab-content-wrapper {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.arcane-skin #mdWelcome .welcome-tab-shell.tab-content-wrapper {
    margin-top: 2px;
}

.arcane-skin #mdWelcome .modal-body,
.arcane-skin #mdWelcome .modal-content {
    overflow-x: hidden;
}

/* Pestañas del welcome — chips sobre el mismo fondo (fuera del modal se mantiene slider clásico) */
.arcane-skin .welcome-tab-slider {
    flex-wrap: nowrap;
    padding: 10px 10px 8px;
    margin: 0;
    background: #1a1b1f;
    border: 1px solid #000;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.arcane-skin #mdWelcome .welcome-tab-slider {
    flex-wrap: nowrap;
    padding: 6px 0 12px;
    margin: 0 0 6px;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
    gap: 6px;
}

.arcane-skin #mdWelcome .welcome-tab-slider .arcane-slider-chip {
    background: linear-gradient(
        to bottom left,
        rgba(49, 162, 166, 0.12) 0%,
        rgba(31, 30, 36, 0.72) 55%,
        rgba(42, 42, 52, 0.65) 100%
    );
    border-color: rgba(0, 0, 0, 0.65);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

.arcane-skin .welcome-tab-slider .welcome-tab-chip.nav-link {
    display: inline-block;
    text-decoration: none !important;
    margin: 0;
    border-radius: 0 !important;
}

.arcane-skin .welcome-tab-chip--icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    vertical-align: middle;
}

.arcane-skin .welcome-tab-chip--icon .tab-chip-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.arcane-skin .condimento-chip--icon,
.arcane-skin .legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.arcane-skin .arcane-slider-chip .chip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.arcane-skin .books-section-label .chip-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    vertical-align: -3px;
}

.arcane-skin .book-meta .book-lock-icon {
    width: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: -4px;
}

.arcane-skin .welcome-tab-slider .welcome-tab-chip.nav-link:focus,
.arcane-skin .welcome-tab-slider .welcome-tab-chip.nav-link:hover {
    color: #ddd;
    text-decoration: none !important;
}

.arcane-skin .welcome-tab-slider .welcome-tab-chip.nav-link.active {
    color: #fff;
    background: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -80%, #2a3a38 45%, #1f1e24 95%);
    box-shadow: 0 0 10px rgba(49, 162, 166, 0.35), inset 0 0 1px rgba(255, 255, 255, 0.15);
}

.arcane-skin #mdWelcome .welcome-tab-panels {
    padding: 12px 0 4px;
    min-height: 280px;
    max-height: min(62vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.arcane-skin #mdWelcome .welcome-tab-panels:has(#nav-home.active) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.arcane-skin #nav-home {
    flex: 1 1 auto;
    min-height: 0;
}

.arcane-skin #nav-home.active {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.arcane-skin #nav-home .welcome-home-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.arcane-skin #nav-home .welcome-install-row {
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 4px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.arcane-skin #nav-tabContent > .tab-pane:not(.active) {
    display: none !important;
}

.arcane-skin #nav-tabContent > .tab-pane.active:not(#nav-home) {
    display: block !important;
}


.arcane-skin .main-content-title.welcome-panel-title {
    margin: 0 0 8px;
    padding: 0;
    border: none;
}

.arcane-skin .main-content-title.welcome-panel-title h3 {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #eee;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.arcane-skin .welcome-panel-lead,
.arcane-skin .welcome-hint {
    color: var(--arcane-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.arcane-skin .welcome-player-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
}

.arcane-skin .welcome-player-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    padding: 6px 10px;
    background: rgba(12, 18, 28, 0.75);
    border-color: rgba(255, 224, 138, 0.35);
    color: #f5e6c8;
}

.arcane-skin .welcome-player-save,
.arcane-skin .welcome-player-extra {
    flex: 0 0 auto;
    padding: 6px 10px;
    min-width: 44px;
}

.arcane-skin .welcome-panel-title--tight {
    margin-top: 4px;
    margin-bottom: 6px;
}

.arcane-skin .welcome-details {
    margin-top: 12px;
    border: 1px solid rgba(255, 224, 138, 0.18);
    border-radius: 8px;
    background: rgba(8, 12, 22, 0.45);
}

.arcane-skin .welcome-details-summary {
    padding: 10px 12px;
    cursor: pointer;
    color: #ffe08a;
    font-size: 0.78rem;
    list-style: none;
    user-select: none;
}

.arcane-skin .welcome-details-summary::-webkit-details-marker {
    display: none;
}

.arcane-skin .welcome-details-summary::after {
    content: "▸";
    float: right;
    opacity: 0.65;
    transition: transform 0.15s ease;
}

.arcane-skin .welcome-details[open] .welcome-details-summary::after {
    transform: rotate(90deg);
}

.arcane-skin .welcome-details-body {
    padding: 0 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.arcane-skin .welcome-more-pane .welcome-details + .welcome-details {
    margin-top: 10px;
}

.arcane-skin #mdWelcomeProgress .welcome-progress-body {
    padding: 16px 14px 18px;
}

.arcane-skin #mdWelcome .welcome-tab-slider {
    margin-bottom: 8px;
}

/* Mini sliders (condimentos, filtros, modos) */
.arcane-skin .arcane-mini-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior: contain;
    padding: 6px 2px 10px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.arcane-skin .arcane-slider-chip,
.arcane-skin #mdWelcome .arcane-slider-chip.condimento-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 16px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ccc;
    background: linear-gradient(to bottom left, rgba(49, 162, 166, 0.15) 0%, #1f1e24 55%, #2a2a34 100%);
    border: 1px solid #000;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.arcane-skin .arcane-slider-chip.condimento-on,
.arcane-skin .arcane-slider-chip.legend-on,
.arcane-skin .arcane-slider-chip.level-chip-on {
    color: #fff;
    background: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -80%, #2a3a38 45%, #1f1e24 95%);
    box-shadow: 0 0 10px rgba(49, 162, 166, 0.35), inset 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Lista de libros (Arcane index — TEAMS) */
.arcane-skin .arcane-books-scroll {
    margin-top: 4px;
    max-height: min(42vh, 340px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.arcane-skin #nav-home .arcane-books-scroll {
    max-height: min(42vh, 360px);
    min-height: 100px;
}

.arcane-skin .teams-list.arcane-books-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arcane-skin .arcane-books-list .books-section-label {
    padding: 10px 4px 4px;
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--arcane-orange);
    background: transparent;
    border: none;
}

.arcane-skin .arcane-books-list .single-book {
    display: block;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #212528;
    color: #888;
    font-size: 11px;
    border: 1px solid #000;
    background-image: radial-gradient(ellipse farthest-corner at center 0, var(--arcane-teal) -300%, #2a2a34 45%, #272731 85%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.arcane-skin .arcane-books-list .single-book .team-text {
    display: block;
}

.arcane-skin .arcane-books-list .book-title {
    display: block;
    color: var(--arcane-orange);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    word-wrap: break-word;
}

.arcane-skin .arcane-books-list .book-meta {
    display: block;
    margin-top: 2px;
    font-size: 80%;
    color: #888;
}

.arcane-skin .arcane-books-list .book-row-play {
    cursor: pointer;
}

.arcane-skin .arcane-books-list .book-row-play:hover {
    border-color: rgba(255, 136, 0, 0.45);
}

.arcane-skin .arcane-books-list .book-row-play:hover .book-title {
    color: #eee;
}

.arcane-skin .arcane-books-list .book-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.arcane-skin .arcane-books-list .book-locked .book-title {
    color: #999;
}

/* Partidas especiales — tabla (sin slider) */
.arcane-skin .arcane-modes-scroll {
    max-height: min(50vh, 360px);
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 6px;
}

.arcane-skin .arcane-modes-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 4px;
    font-size: 0.8rem;
}

.arcane-skin .arcane-modes-table thead th {
    padding: 6px 10px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--arcane-orange);
    font-weight: 700;
    border: none;
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row td {
    padding: 10px 12px;
    border: 1px solid #000;
    background: linear-gradient(to bottom left, rgba(0, 0, 0, 0.08) -50%, #2a2a34 70%, #1f1e24 100%);
    background-color: #252530;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.arcane-skin .arcane-modes-table .mode-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #eee;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.arcane-skin .arcane-modes-table .mode-row-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row td:first-child {
    border-right: none;
    border-radius: 3px 0 0 3px;
    width: 38%;
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row td:last-child {
    border-left: 1px solid rgba(0, 0, 0, 0.65);
    border-radius: 0 3px 3px 0;
    color: var(--arcane-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row:hover td {
    border-color: rgba(96, 214, 0, 0.45);
    box-shadow: inset 0 0 0 1px rgba(96, 214, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row:hover .mode-name {
    color: var(--arcane-orange-bright);
}

.arcane-skin .arcane-modes-table tbody tr.arcane-mode-row:focus-visible {
    outline: 2px solid var(--arcane-orange);
    outline-offset: 2px;
}

.arcane-skin .welcome-info-pane {
    font-size: 0.85rem;
    color: #ccc;
}

.arcane-skin .welcome-info-pane h6 {
    color: var(--arcane-orange);
    margin-top: 12px;
}

.arcane-skin .form-control {
    background: #1a1b1f;
    border: 1px solid #000;
    color: #eee;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.arcane-skin .form-control:focus {
    border-color: var(--arcane-orange);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 136, 0, 0.25);
    color: #fff;
}

.arcane-skin .condimento-chip,
.arcane-skin .legend-chip {
    background: #1a1b1f !important;
    border: 1px solid #000 !important;
    border-radius: 3px !important;
    color: #eee !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    text-shadow: none !important;
}

.arcane-skin .condimento-chip.condimento-on {
    background: var(--arcane-gradient-btn) !important;
    background-color: var(--arcane-orange) !important;
    color: #fff !important;
}

.arcane-skin .mode-special-card {
    background: #1a1b1f;
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.arcane-skin .mode-special-card strong {
    color: var(--arcane-orange);
    text-shadow: var(--arcane-text-shadow);
}

.arcane-skin .online-room-panel {
    border: 1px solid #000 !important;
    border-radius: 3px !important;
    background: rgba(26, 27, 31, 0.9) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

.arcane-skin .facilitator-bar {
    background: var(--arcane-gradient-bar);
    border-bottom: 1px solid #000;
    color: #eee;
}

.arcane-skin .facilitator-code {
    color: var(--arcane-orange);
}

.arcane-skin .modal-backdrop.show {
    background-color: #0d0d10;
}

.arcane-skin :focus-visible {
    outline: 2px solid var(--arcane-orange);
    outline-offset: 2px;
}

.arcane-skin .arcane-user-actions {
    gap: 8px;
}

.arcane-skin .arcane-avatar-btn {
    padding: 0;
    border: 1px solid #000;
    border-radius: 3px;
    background: #1a1b1f;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    line-height: 0;
}

.arcane-skin .arcane-user-avatar {
    display: block;
    width: 40px;
    height: 40px;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: cover;
    border-radius: 2px;
}

.arcane-skin .navbar-wrapper .login-info.arcane-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
}

/* —— Selector de avatares (como Ninja Bible) —— */
.avatar-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.82);
}

.avatar-picker-modal {
    width: min(96vw, 520px);
    max-height: min(92vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--arcane-gradient-bar);
    background-color: var(--arcane-panel);
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
}

.avatar-picker__header {
    padding: 14px 16px 8px;
    border-bottom: 1px solid #000;
}

.avatar-picker__title {
    margin: 0;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #eee;
}

.avatar-picker__lead {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--arcane-muted);
}

.avatar-picker__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.avatar-picker__category {
    margin-bottom: 16px;
}

.avatar-picker__category-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--arcane-orange);
    letter-spacing: 0.08em;
}

.avatar-picker__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (min-width: 420px) {
    .avatar-picker__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.avatar-picker__cell {
    position: relative;
    padding: 0;
    border: 1px solid #000;
    border-radius: 3px;
    background: #1a1b1f;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.avatar-picker__cell:hover {
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.45);
    transform: translateY(-1px);
}

.avatar-picker__cell--selected {
    box-shadow: 0 0 0 2px var(--arcane-orange);
}

.avatar-picker__cell--locked {
    opacity: 0.88;
}

.avatar-picker__cell--locked .avatar-picker__lock {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    font-size: 0.55rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.72);
    color: #ffe08a;
    padding: 2px;
}

.avatar-picker__price {
    color: #ffe08a;
    font-size: 0.82rem;
}

.arcane-skin .season-bar-card {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 224, 138, 0.22);
    color: #f2ebe0;
}

.arcane-skin .season-bar-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #ffe08a;
}

.arcane-skin .season-bar-tier {
    float: right;
    font-size: 0.72rem;
    color: #c8c2b6;
}

.arcane-skin .season-bar-track {
    clear: both;
    height: 8px;
    margin: 6px 0 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.arcane-skin .season-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #31a2a6, #ffe08a);
    transition: width 0.35s ease;
}

.arcane-skin .season-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.arcane-skin .leaderboard-card {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 224, 138, 0.18);
}

.arcane-skin .leaderboard-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.arcane-skin .leaderboard-tab {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    font-size: 0.62rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 224, 138, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #c8c2b6;
    cursor: pointer;
}

.arcane-skin .leaderboard-tab--on {
    border-color: rgba(49, 162, 166, 0.65);
    color: #ffe08a;
    background: rgba(49, 162, 166, 0.15);
}

.arcane-skin .leaderboard-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.arcane-skin .leaderboard-row:last-child {
    border-bottom: none;
}

.arcane-skin .leaderboard-rank {
    width: 2em;
    color: #ffe08a;
    font-weight: 700;
}

.arcane-skin .leaderboard-name {
    flex: 1;
    color: #f2ebe0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcane-skin .leaderboard-score {
    color: #7ec8c8;
    font-size: 0.62rem;
}

.arcane-skin .season-milestone {
    flex: 1 1 28%;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 224, 138, 0.25);
    font-size: 0.62rem;
    color: #a8a29a;
}

.arcane-skin .season-milestone--done {
    border-style: solid;
    border-color: rgba(49, 162, 166, 0.55);
    color: #d8f0f0;
    background: rgba(49, 162, 166, 0.12);
}

.arcane-skin .season-milestone-lv {
    display: inline-block;
    min-width: 1.4em;
    font-weight: 700;
    color: #ffe08a;
    margin-right: 4px;
}

.arcane-skin .season-milestone-lbl {
    line-height: 1.25;
}

.arcane-skin .wallet-player-title {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.62rem;
    color: #7ec8c8;
    vertical-align: middle;
}

.arcane-skin .arcane-avatar-btn.avatar-frame-gold {
    box-shadow: 0 0 0 2px #c9a227, 0 0 10px rgba(255, 224, 138, 0.45);
    border-radius: 50%;
}

.arcane-skin .arcane-avatar-btn.avatar-frame-arcane {
    box-shadow: 0 0 0 2px #8b5cf6, 0 0 14px rgba(139, 92, 246, 0.55);
    border-radius: 50%;
}

.arcane-skin .online-roster-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.arcane-skin .online-roster-title {
    font-size: 0.58rem;
    color: #7ec8c8;
}

.arcane-skin .online-roster-avatar--gold {
    box-shadow: 0 0 0 2px #c9a227;
}

.arcane-skin .online-roster-avatar--arcane {
    box-shadow: 0 0 0 2px #8b5cf6, 0 0 8px rgba(139, 92, 246, 0.45);
}

.arcane-skin .online-roster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.arcane-skin .online-roster-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(8, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
}

.arcane-skin .online-roster-avatar {
    border-radius: 50%;
    border: 1px solid rgba(255, 224, 138, 0.35);
    object-fit: cover;
}

.arcane-skin .online-roster-score {
    color: #ffe08a;
    font-size: 0.62rem;
}

.avatar-picker__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-picker__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #000;
}

.avatar-picker__preview-img {
    width: min(220px, 70vw);
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    border: 1px solid #000;
    border-radius: 3px;
    background: #1a1b1f;
}

.avatar-picker__preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.avatar-picker__footer {
    flex-shrink: 0;
    padding: 10px 16px 14px;
    text-align: right;
    border-top: 1px solid #000;
}

@media (max-width: 767px) {
    .arcane-skin .arcane-tagline {
        display: none;
    }

    .arcane-skin .navbar-wrapper .login-info {
        justify-content: flex-end;
        width: auto;
    }

    .arcane-skin .arcane-subnav .nav-link {
        padding: 10px 8px;
        font-size: 10px;
    }
}
