        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            margin: 0;
            background: #050608;
        }
        .app-shell {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            background: radial-gradient(circle at 50% -20%, #2c1610 0%, #08090c 60%);
        }
        .app-inner {
            width: 100%;
            max-width: 72rem;
            margin-left: auto;
            margin-right: auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        @media (min-width: 1024px) {
            .app-inner {
                padding-left: 2rem;
                padding-right: 2rem;
            }
        }
        .app-main {
            padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        }
        @media (min-width: 1024px) {
            .app-main {
                padding-bottom: 3rem;
            }
        }
        .auth-field-help {
            margin-top: -0.35rem;
            color: rgba(253, 186, 116, 0.9);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.35;
            text-align: left;
        }
        .auth-status {
            border-radius: 0.85rem;
            border: 1px solid rgba(251, 146, 60, 0.28);
            background: rgba(5, 7, 11, 0.78);
            padding: 0.7rem 0.85rem;
            color: #fed7aa;
            font-size: 0.78rem;
            font-weight: 800;
            line-height: 1.4;
            text-align: left;
        }
        .auth-status--success {
            border-color: rgba(34, 197, 94, 0.42);
            background: rgba(20, 83, 45, 0.22);
            color: #bbf7d0;
        }
        .auth-status--error {
            border-color: rgba(248, 113, 113, 0.46);
            background: rgba(127, 29, 29, 0.24);
            color: #fecaca;
        }
        #auth-submit-btn {
            transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }
        #auth-submit-btn:disabled {
            cursor: wait;
            opacity: 0.72;
        }
        #auth-submit-btn.auth-submit-highlight {
            box-shadow: 0 0 0 2px rgba(254, 215, 170, 0.24), 0 0 24px rgba(251, 146, 60, 0.42);
            transform: translateY(-1px);
        }
        #auth-submit-btn.auth-submit-loading {
            filter: saturate(0.92) brightness(0.95);
        }
        #auth-toggle-mode:disabled {
            cursor: wait;
            opacity: 0.6;
        }
        .mobile-nav {
            border-top: 1px solid rgba(234, 88, 12, 0.18);
            background: rgba(11, 12, 16, 0.96);
            backdrop-filter: blur(14px);
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
        @media (max-width: 767px) {
            .app-main {
                justify-content: flex-start;
                padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
            }
            #view-temple,
            #view-inventory,
            #view-quests,
            #view-profile {
                padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
            }
            #view-temple {
                margin-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
            }
        }
        .nav-tab--mobile {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.15rem;
            padding: 0.55rem 0.25rem;
            font-size: 0.62rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #9ca3af;
            transition: color 0.2s ease;
        }
        .nav-tab--mobile .nav-tab-icon {
            font-size: 1.25rem;
            line-height: 1;
        }
        .nav-tab--mobile.tab-active {
            color: #fb923c;
        }
        .nav-tab--desktop.tab-active {
            background: linear-gradient(to right, #ea580c, #f59e0b);
            color: #000;
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
        }
        .foxbox-select {
            min-height: 3rem;
            width: 100%;
            border-radius: 1rem;
            border: 1px solid rgba(51, 65, 85, 0.72);
            background-color: rgba(5, 7, 11, 0.92);
            color: #e5e7eb;
            color-scheme: dark;
            appearance: none;
            -webkit-appearance: none;
            background-image:
                linear-gradient(45deg, transparent 50%, #fb923c 50%),
                linear-gradient(135deg, #fb923c 50%, transparent 50%);
            background-position:
                calc(100% - 1.1rem) 50%,
                calc(100% - .8rem) 50%;
            background-size: .33rem .33rem, .33rem .33rem;
            background-repeat: no-repeat;
            padding: .85rem 2.2rem .85rem .95rem;
            font-size: .78rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .foxbox-select:focus {
            border-color: rgba(251, 146, 60, 0.9);
            outline: none;
            box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
        }
        .foxbox-select option {
            background: #05070b;
            color: #e5e7eb;
        }
        .font-mystic { font-family: 'Cinzel', serif; }
        #spinner-track { transition: transform 5s cubic-bezier(0.05, 0.8, 0.1, 1); }
        .spinner-shadow { box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); }
        .view-transition { transition: all 0.4s ease-out; }
        
        @keyframes soft-glow {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        .glow-pulse { animation: soft-glow 3s infinite ease-in-out; }

        /* === ANIMATIONS RARETÉ RENFORCÉES === */
        @keyframes shimmer-rare {
            0%, 100% { background-position: -1000px 0; }
            50% { background-position: 1000px 0; }
        }

        @keyframes glow-commun {
            0%, 100% { box-shadow: 0 0 15px rgba(251, 146, 60, 0.3), inset 0 0 20px rgba(251, 146, 60, 0.1); }
            50% { box-shadow: 0 0 25px rgba(251, 146, 60, 0.6), inset 0 0 30px rgba(251, 146, 60, 0.2); }
        }

        @keyframes glow-rare {
            0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 25px rgba(59, 130, 246, 0.15); }
            50% { box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), inset 0 0 40px rgba(59, 130, 246, 0.3); }
        }

        @keyframes glow-epic {
            0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 0 25px rgba(16, 185, 129, 0.15); }
            50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.7), inset 0 0 40px rgba(16, 185, 129, 0.3); }
        }

        @keyframes glow-legendary {
            0%, 100% { 
                box-shadow: 
                    0 0 25px rgba(168, 85, 247, 0.5),
                    0 0 35px rgba(236, 72, 153, 0.3),
                    inset 0 0 30px rgba(168, 85, 247, 0.2);
            }
            50% { 
                box-shadow: 
                    0 0 40px rgba(168, 85, 247, 0.8),
                    0 0 50px rgba(236, 72, 153, 0.6),
                    inset 0 0 50px rgba(168, 85, 247, 0.4);
            }
        }

        @keyframes rotate-aura {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes sparkle {
            0%, 100% { opacity: 0; transform: scale(0); }
            50% { opacity: 1; transform: scale(1); }
        }

        @keyframes border-shimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .pin-card {
            display: flex;
            flex-direction: column;
            background: #11131a;
            border-radius: 1rem;
            min-height: 11.5rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .pin-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 1rem;
            padding: 1px;
            background: linear-gradient(45deg, transparent, transparent 30%, rgba(255,255,255,0.1), transparent 70%, transparent);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            pointer-events: none;
        }

        .pin-card:not(.pin-card--locked):hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
        }

        /* COMMUN */
        .pin-card.rarity-commun {
            border: 1px solid rgba(251, 146, 60, 0.4);
            animation: glow-commun 3s ease-in-out infinite;
        }

        /* RARE */
        .pin-card.rarity-rare {
            border: 1px solid rgba(59, 130, 246, 0.5);
            animation: glow-rare 3s ease-in-out infinite;
        }

        .pin-card.rarity-rare::before {
            animation: shimmer-rare 8s ease-in-out infinite;
            opacity: 0.6;
        }

        /* ÉPIQUE */
        .pin-card.rarity-epic {
            border: 1px solid rgba(16, 185, 129, 0.5);
            animation: glow-epic 3s ease-in-out infinite;
        }

        .pin-card.rarity-epic::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 1rem;
            border: 2px solid rgba(16, 185, 129, 0.3);
            animation: rotate-aura 6s linear infinite;
            pointer-events: none;
        }

        /* LÉGENDAIRE */
        .pin-card.rarity-legendary {
            border: 2px solid rgba(168, 85, 247, 0.6);
            animation: glow-legendary 2s ease-in-out infinite;
        }

        .pin-card.rarity-legendary::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 1rem;
            background: conic-gradient(
                from 0deg,
                rgba(168, 85, 247, 0.5) 0deg,
                rgba(236, 72, 153, 0.5) 90deg,
                rgba(168, 85, 247, 0.5) 180deg,
                rgba(236, 72, 153, 0.5) 270deg,
                rgba(168, 85, 247, 0.5) 360deg
            );
            animation: rotate-aura 4s linear infinite;
            pointer-events: none;
            z-index: -1;
            filter: blur(8px);
        }

        .pin-card--locked {
            opacity: 0.72;
            animation: none !important;
            border: 1px solid rgba(107, 114, 128, 0.2) !important;
        }
        .pin-card-art-wrap {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 0.65rem 0.35rem;
            min-height: 8.5rem;
        }
        .pin-card-art {
            max-height: 7.25rem;
            width: auto;
            max-width: 100%;
            object-fit: contain;
            filter:
                drop-shadow(0 0 1px #fff)
                drop-shadow(0 0 2px #fff)
                drop-shadow(0 0 4px rgba(255, 255, 255, 0.85))
                drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
            transition: transform 0.25s ease;
        }
        .pin-card:not(.pin-card--locked):hover .pin-card-art {
            transform: scale(1.05);
        }
        .pin-card--locked .pin-card-art,
        .pin-card--locked .pin-card-art-emoji {
            opacity: 0.2;
            filter: grayscale(1);
        }
        .pin-card-art-emoji {
            font-size: 3.25rem;
            line-height: 1;
            filter:
                drop-shadow(0 0 1px #fff)
                drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
        }
        /* Light sweep for inventory -> 3D opening effect */
        .pin-card.light-sweep {
            position: relative;
            overflow: hidden;
        }
        .pin-card.light-sweep::after {
            content: '';
            position: absolute;
            left: -60%;
            top: -40%;
            width: 30%;
            height: 180%;
            transform: rotate(18deg);
            background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.18) 55%, transparent 100%);
            pointer-events: none;
            mix-blend-mode: screen;
            animation: light-sweep 650ms cubic-bezier(.2,.9,.2,1);
            filter: blur(6px);
            opacity: 0.95;
        }

        @keyframes light-sweep {
            0% { left: -60%; opacity: 0; }
            10% { opacity: 0.6; }
            50% { left: 120%; opacity: 1; }
            100% { left: 140%; opacity: 0; }
        }
        .pin-card-meta {
            padding: 0 0.65rem 0.7rem;
            text-align: center;
        }
        #pin-preview-frame {
            perspective: 1200px;
            overflow: hidden;
            border-radius: 2rem;
            transition: box-shadow 0.25s ease;
            touch-action: none;
            cursor: grab;
            user-select: none;
        }
        #pin-preview-frame:active {
            cursor: grabbing;
        }
        #pin-preview-shadow {
            position: absolute;
            left: 50%;
            bottom: 2.25rem;
            width: 52%;
            height: 2.25rem;
            background: rgba(0, 0, 0, 0.25);
            transform: translateX(-50%);
            border-radius: 999px;
            filter: blur(18px);
            pointer-events: none;
            transition: transform 0.2s ease, opacity 0.2s ease;
            opacity: 0.35;
        }
        #pin-preview-ring {
            border-radius: 2rem;
            transition: box-shadow 0.25s ease, opacity 0.25s ease;
        }
        #pin-preview-glow {
            transition: opacity 0.25s ease;
        }
        #pin-preview-reflection {
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            background: radial-gradient(circle at var(--sweep-x, 55%) var(--sweep-y, 30%), rgba(255,255,255,0.45), rgba(255,255,255,0.12) 10%, transparent 20%);
            mix-blend-mode: screen;
            filter: blur(0px);
            transition: opacity 0.18s ease, background-position 0.15s ease;
        }
        #pin-preview-inner {
            transform-style: preserve-3d;
            transition: transform 0.2s ease;
            transform-origin: center center;
            position: relative;
        }
        .pin-preview-layer {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        .pin-preview-layer img,
        .pin-preview-layer span {
            max-height: 100%;
            max-width: 100%;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            image-rendering: auto;
            transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
            will-change: transform, filter, opacity;
        }
        .pin-preview-layer--metal img,
        .pin-preview-layer--metal span {
            filter: saturate(1.4) contrast(1.35) brightness(1.12);
            opacity: 0.85;
        }
        .pin-preview-layer--enamel img,
        .pin-preview-layer--enamel span {
            filter: saturate(1.15) contrast(1.12) brightness(1.02);
            opacity: 1;
        }
        .pin-preview-layer--glow img,
        .pin-preview-layer--glow span {
            filter: brightness(1.2) contrast(1.05) saturate(1.15);
            opacity: 0.24;
            mix-blend-mode: screen;
            transform: scale(1.02);
        }
        #pin-preview-highlight {
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0 !important;
            display: none;
        }
        #pin-preview-metallic {
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            background: linear-gradient(var(--metallic-angle, 45deg), transparent 0%, rgba(255,240,200,0.25) 25%, rgba(255,240,200,0.08) 50%, transparent 100%);
            mix-blend-mode: overlay;
            filter: none;
            transition: opacity 0.2s ease;
        }
        #pin-preview-vignette {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.18) 100%);
            border-radius: 2rem;
        }
        @keyframes preview-pulsate {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.08); }
        }
        .pin-preview-layer--enamel.pulsing img,
        .pin-preview-layer--enamel.pulsing span {
            animation: preview-pulsate 2.8s ease-in-out infinite;
        }
        .pin-preview-label {
            animation: preview-label-pulse 2.4s ease-in-out infinite;
        }
        @keyframes preview-label-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.92; transform: scale(1.02); }
        }
        .pin-card-name {
            font-size: 0.68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: #f9fafb;
            line-height: 1.25;
            margin-bottom: 0.4rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .pin-card--locked .pin-card-name {
            color: #6b7280;
        }
        .pin-card-rarity {
            display: inline-block;
            font-size: 0.52rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.22rem 0.55rem;
            border-radius: 9999px;
            border: 1px solid;
        }
        .pin-img {
            filter: drop-shadow(0 8px 14px rgba(0,0,0,0.55));
            transition: transform 0.3s ease;
        }

        .daily-wheel-panel {
            isolation: isolate;
        }
        .daily-box-visual {
            transform: translateZ(0);
        }
        .daily-box-visual::before {
            content: "";
            position: absolute;
            inset: 1.8rem 0.7rem;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(251, 146, 60, 0.18), transparent 64%);
            opacity: 0;
            transform: scale(0.86);
            transition: opacity 0.35s ease, transform 0.45s ease;
            pointer-events: none;
        }
        .daily-box-visual.is-opening::before,
        .daily-box-visual.is-revealed::before {
            opacity: 1;
            transform: scale(1.05);
        }
        .daily-box-visual.is-opening #daily-box-pack {
            animation: daily-box-opening 0.82s ease-in-out infinite;
        }
        .daily-box-visual.is-revealed #daily-box-pack {
            transform: scale(0.72) rotate(3deg);
        }
        .daily-box-visual.is-revealed #daily-box-pin {
            animation: daily-pin-reveal 0.72s cubic-bezier(0.18, 0.84, 0.22, 1.08) both;
        }
        .daily-box-visual.is-revealed .daily-box-pin-img {
            filter: drop-shadow(0 16px 30px rgba(0,0,0,0.68)) drop-shadow(0 0 24px rgba(251,146,60,0.24));
        }
        .daily-box-visual.rarity-rare::before {
            background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 64%);
        }
        .daily-box-visual.rarity-epic::before {
            background: radial-gradient(circle, rgba(74, 222, 128, 0.22), transparent 64%);
        }
        .daily-box-visual.rarity-legendary::before {
            background: radial-gradient(circle, rgba(192, 132, 252, 0.25), transparent 64%);
        }
        .daily-box-visual.rarity-mythique::before {
            background: radial-gradient(circle, rgba(250, 204, 21, 0.28), transparent 64%);
        }
        .daily-box-pin-rarity {
            margin-top: 0.3rem;
            min-height: 1rem;
            font-size: 0.62rem;
            font-weight: 900;
            letter-spacing: 0.26em;
            text-transform: uppercase;
        }
        .daily-opening-status {
            min-height: 1rem;
            margin-top: -0.85rem;
            margin-bottom: 1rem;
            color: rgba(253, 186, 116, 0.74);
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-align: center;
            text-transform: uppercase;
        }
        .daily-result {
            transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
        }
        .daily-wheel-aura {
            position: absolute;
            width: 13rem;
            height: 13rem;
            border-radius: 999px;
            filter: blur(70px);
            opacity: 0.2;
            pointer-events: none;
        }
        .daily-wheel-aura--amber {
            top: -5rem;
            right: -4rem;
            background: #f59e0b;
        }
        .daily-wheel-aura--violet {
            bottom: 6rem;
            left: -5rem;
            background: #7c3aed;
            opacity: 0.14;
        }
        .daily-wheel-stage {
            filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.45));
        }
        .daily-wheel-ring {
            background: conic-gradient(from 0deg, rgba(251,146,60,0.8), rgba(252,211,77,0.5), rgba(124,58,237,0.45), rgba(251,146,60,0.8));
            box-shadow: 0 0 30px rgba(249, 115, 22, 0.18), inset 0 0 28px rgba(0, 0, 0, 0.55);
        }
        .daily-wheel-pointer {
            width: 0;
            height: 0;
            border-left: 1rem solid transparent;
            border-right: 1rem solid transparent;
            border-top: 1.75rem solid #f59e0b;
            filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.75));
        }
        .daily-wheel-disc {
            background:
                radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 12%, transparent 13%),
                conic-gradient(from -18deg, #7c2d12 0deg 36deg, #111827 36deg 72deg, #92400e 72deg 108deg, #064e3b 108deg 144deg, #78350f 144deg 180deg, #14532d 180deg 216deg, #1e3a8a 216deg 252deg, #4c1d95 252deg 288deg, #7f1d1d 288deg 324deg, #713f12 324deg 360deg);
            border: 1px solid rgba(251, 146, 60, 0.35);
            box-shadow: inset 0 0 36px rgba(0,0,0,0.72), inset 0 0 0 10px rgba(0,0,0,0.25);
            overflow: hidden;
            transition: transform 5s cubic-bezier(0.08, 0.78, 0.08, 1);
            will-change: transform;
        }
        .daily-wheel-disc::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.16), transparent 26%), linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%);
            mix-blend-mode: screen;
            pointer-events: none;
        }
        .daily-wheel-segment-label {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 4.25rem;
            margin-left: -2.125rem;
            margin-top: -0.9rem;
            transform: rotate(var(--segment-rotation)) translateY(-6.3rem) rotate(calc(-1 * var(--segment-rotation)));
            text-align: center;
            color: rgba(255,255,255,0.9);
            text-shadow: 0 2px 8px rgba(0,0,0,0.75);
            pointer-events: none;
        }
        .daily-wheel-segment-label span {
            display: block;
            line-height: 1;
        }
        .daily-wheel-segment-icon {
            font-size: 1.2rem;
        }
        .daily-wheel-segment-text {
            margin-top: 0.25rem;
            font-size: 0.5rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .daily-result.is-reward {
            border-color: rgba(251, 146, 60, 0.34);
            background: linear-gradient(135deg, rgba(249,115,22,0.14), rgba(0,0,0,0.18));
            box-shadow: inset 0 0 24px rgba(251, 146, 60, 0.08);
        }
        .daily-result.is-jackpot {
            border-color: rgba(252, 211, 77, 0.45);
            background: linear-gradient(135deg, rgba(252,211,77,0.16), rgba(124,58,237,0.12));
            box-shadow: 0 0 24px rgba(252, 211, 77, 0.12), inset 0 0 24px rgba(252, 211, 77, 0.08);
        }
        .daily-result.is-error {
            border-color: rgba(248, 113, 113, 0.42);
            background: linear-gradient(135deg, rgba(127, 29, 29, 0.22), rgba(0,0,0,0.18));
        }
        .daily-result-lines {
            margin-top: 0.8rem;
            display: grid;
            gap: 0.45rem;
        }
        .daily-result-lines.hidden {
            display: none;
        }
        .daily-result-lines p {
            border-radius: 0.8rem;
            border: 1px solid rgba(251, 146, 60, 0.18);
            background: rgba(0, 0, 0, 0.18);
            padding: 0.55rem 0.7rem;
            color: #fed7aa;
            font-size: 0.72rem;
            font-weight: 900;
            line-height: 1.25;
        }

        @keyframes daily-box-opening {
            0%, 100% { transform: scale(1) rotate(0deg); }
            28% { transform: scale(1.06) rotate(-3deg); }
            56% { transform: scale(1.08) rotate(3deg); }
            78% { transform: scale(1.04) rotate(-1deg); }
        }

        @keyframes daily-pin-reveal {
            0% { opacity: 0; transform: translateY(0.9rem) scale(0.86); filter: brightness(1.35) blur(3px); }
            58% { opacity: 1; transform: translateY(-0.15rem) scale(1.06); filter: brightness(1.18) blur(0); }
            100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1) blur(0); }
        }

        @media (prefers-reduced-motion: reduce) {
            .daily-box-visual.is-opening #daily-box-pack,
            .daily-box-visual.is-revealed #daily-box-pin {
                animation: none;
            }
            .daily-box-visual::before,
            .daily-result,
            #daily-box-pack,
            #daily-box-pin {
                transition-duration: 0.01ms !important;
            }
        }

        .daily-history-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(251, 146, 60, 0.18);
            background: rgba(251, 146, 60, 0.08);
            color: #fed7aa;
            font-size: 1rem;
            flex-shrink: 0;
        }
        .daily-history-chip.is-jackpot {
            border-color: rgba(252, 211, 77, 0.4);
            background: rgba(252, 211, 77, 0.12);
            box-shadow: 0 0 16px rgba(252, 211, 77, 0.14);
        }

        @media (max-width: 420px) {
            .daily-wheel-segment-label {
                transform: rotate(var(--segment-rotation)) translateY(-5.45rem) rotate(calc(-1 * var(--segment-rotation)));
            }
            .daily-result-lines p {
                font-size: 0.68rem;
            }
        }

        .pin-reveal img {
            filter: drop-shadow(0 14px 28px rgba(0,0,0,0.7)) drop-shadow(0 2px 0 rgba(255,255,255,0.08));
        }

        /* === ANIMATIONS RÉVÉLATION BOOSTER === */
        @keyframes flash-white {
            0% { opacity: 0; }
            15% { opacity: 1; }
            30% { opacity: 0.5; }
            45% { opacity: 1; }
            100% { opacity: 0; }
        }

        @keyframes booster-pop {
            0% { transform: scale(1) translateY(0); opacity: 1; }
            100% { transform: scale(0.1) translateY(-150px); opacity: 0; }
        }

        @keyframes booster-zoom-in {
            0% {
                transform: scale(1) rotateX(0deg) rotateY(0deg);
                filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
            }
            50% {
                transform: scale(1.3) rotateX(-5deg);
                filter: drop-shadow(0 20px 50px rgba(0,0,0,0.7));
            }
            100% {
                transform: scale(1.2) rotateX(0deg);
                filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6));
            }
        }

        @keyframes booster-top-tear {
            0% {
                transform: translateY(0) rotateX(0deg) rotateZ(0deg);
                opacity: 1;
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
            30% {
                opacity: 1;
            }
            100% {
                transform: translateY(-250px) rotateX(-60deg) rotateZ(-15deg);
                opacity: 0;
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
        }

        @keyframes booster-bottom-slide {
            0% {
                transform: translateY(0) rotateX(0deg) rotateZ(0deg);
                opacity: 1;
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
            30% {
                opacity: 1;
            }
            100% {
                transform: translateY(280px) rotateX(60deg) rotateZ(15deg);
                opacity: 0;
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
        }

        @keyframes result-emerge {
            0% {
                opacity: 0;
                transform: scale(0.3) translateY(80px) rotateX(-90deg);
            }
            50% {
                transform: scale(1.2) translateY(0px) rotateX(0deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0px) rotateX(0deg);
            }
        }

        /* Conteneur avec perspective 3D */
        #booster-container {
            perspective: 1000px;
            transform-style: preserve-3d;
        }

        #booster-container.is-opening {
            animation: booster-zoom-in 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #booster-top.tear-open {
            animation: booster-top-tear 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            transform-style: preserve-3d;
        }

        #booster-bottom.slide-down {
            animation: booster-bottom-slide 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            transform-style: preserve-3d;
        }

        #booster-result.emerge-effect {
            animation: result-emerge 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            transform-style: preserve-3d;
        }

        @keyframes glow-flash-commun {
            0% { filter: drop-shadow(0 0 0 transparent); }
            20% { filter: drop-shadow(0 0 30px rgba(251, 146, 60, 0.8)) drop-shadow(0 0 60px rgba(251, 146, 60, 0.6)); }
            100% { filter: drop-shadow(0 0 0 transparent); }
        }

        @keyframes glow-flash-rare {
            0% { filter: drop-shadow(0 0 0 transparent); }
            20% { filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 80px rgba(59, 130, 246, 0.6)); }
            100% { filter: drop-shadow(0 0 0 transparent); }
        }

        @keyframes glow-flash-epic {
            0% { filter: drop-shadow(0 0 0 transparent); }
            20% { filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.8)) drop-shadow(0 0 80px rgba(16, 185, 129, 0.6)); }
            100% { filter: drop-shadow(0 0 0 transparent); }
        }

        @keyframes glow-flash-legendary {
            0% { filter: drop-shadow(0 0 0 transparent); }
            20% { 
                filter: 
                    drop-shadow(0 0 50px rgba(168, 85, 247, 0.9))
                    drop-shadow(0 0 80px rgba(236, 72, 153, 0.8))
                    drop-shadow(0 0 100px rgba(168, 85, 247, 0.7));
            }
            100% { filter: drop-shadow(0 0 0 transparent); }
        }

        /* Glow pour Mythique (gold) */
        @keyframes glow-flash-mythique {
            0% { filter: drop-shadow(0 0 0 transparent); }
            20% { 
                filter: 
                    drop-shadow(0 0 50px rgba(255, 215, 0, 0.95))
                    drop-shadow(0 0 80px rgba(255, 223, 92, 0.8))
                    drop-shadow(0 0 100px rgba(255, 215, 0, 0.7));
            }
            100% { filter: drop-shadow(0 0 0 transparent); }
        }

        @keyframes particle-float {
            0% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) scale(0);
                opacity: 0;
            }
        }

        @keyframes shine-across {
            0% { transform: translateX(-100%); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateX(100%); opacity: 0; }
        }

        /* Styles pour la révélation */
        #booster-opening.reveal-commun {
            background: radial-gradient(circle at 50% 42%, rgba(251, 146, 60, 0.28) 0%, rgba(0, 0, 0, 0.98) 58%), #020306;
        }

        #booster-opening.reveal-rare {
            background: radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.34) 0%, rgba(0, 0, 0, 0.98) 58%), #020306;
        }

        #booster-opening.reveal-epic {
            background: radial-gradient(circle at 50% 42%, rgba(16, 185, 129, 0.34) 0%, rgba(0, 0, 0, 0.98) 58%), #020306;
        }

        #booster-opening.reveal-legendaire {
            background: radial-gradient(circle at 50% 42%, rgba(168, 85, 247, 0.42) 0%, rgba(236, 72, 153, 0.16) 30%, rgba(0, 0, 0, 0.98) 62%), #020306;
        }

        #booster-opening.is-opening::before {
            content: '';
            position: fixed;
            inset: 0;
            background: white;
            opacity: 0;
            animation: flash-white 0.8s ease-out;
            pointer-events: none;
            z-index: 10;
        }

        #booster-container.is-opening {
            animation: booster-pop 0.6s cubic-bezier(0.36, 0, 0.66, -0.56);
        }

        #booster-result {
            z-index: 20;
            position: relative;
        }

        #pack-pin {
            position: relative;
            z-index: 30;
        }

        #booster-result.reveal-animation {
            animation: result-explode-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #pack-pin.glow-animation-commun {
            animation: glow-flash-commun 1s ease-out;
            pointer-events: none;
        }

        #pack-pin.glow-animation-rare {
            animation: glow-flash-rare 1s ease-out;
            pointer-events: none;
        }

        #pack-pin.glow-animation-epic {
            animation: glow-flash-epic 1s ease-out;
            pointer-events: none;
        }

        #pack-pin.glow-animation-legendary {
            animation: glow-flash-legendary 1.2s ease-out;
            pointer-events: none;
        }

        #pack-pin.glow-animation-mythique {
            animation: glow-flash-mythique 1.4s ease-out;
            pointer-events: none;
        }

        #pack-rarity,
        #pack-name {
            position: relative;
            z-index: 30;
        }

        .pack-name-label {
            animation: rarity-text-pulse 2s ease-in-out infinite;
        }

        .rarity-text-animate {
            animation: rarity-text-glow 2.2s ease-in-out infinite;
        }

        @keyframes rarity-text-pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.02); opacity: 0.95; }
        }

        @keyframes rarity-text-glow {
            0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
            50% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.35); }
        }

        .pack-rarity-label.rarity-commun,
        .pack-name-label.rarity-commun {
            color: #cbd5e1 !important;
            text-shadow: 0 0 18px rgba(148, 163, 184, 0.6);
        }

        .pack-rarity-label.rarity-peu-commun,
        .pack-name-label.rarity-peu-commun {
            color: #fb923c !important;
            text-shadow: 0 0 22px rgba(251, 146, 60, 0.7);
        }

        .pack-rarity-label.rarity-rare,
        .pack-name-label.rarity-rare {
            color: #60a5fa !important;
            text-shadow: 0 0 20px rgba(59, 130, 246, 0.65);
        }

        .pack-rarity-label.rarity-epic,
        .pack-name-label.rarity-epic {
            color: #4ade80 !important;
            text-shadow: 0 0 20px rgba(16, 185, 129, 0.65);
        }

        .pack-rarity-label.rarity-legendary,
        .pack-name-label.rarity-legendary {
            color: #c084fc !important;
            text-shadow: 0 0 22px rgba(168, 85, 247, 0.75);
        }

        .pack-rarity-label.rarity-mythique,
        .pack-name-label.rarity-mythique {
            color: #facc15 !important;
            text-shadow: 0 0 24px rgba(255, 215, 0, 0.8);
        }

        /* Révélation Mythique (gold) */
        #booster-opening.reveal-mythique {
            background: radial-gradient(circle at 50% 42%, rgba(255, 215, 0, 0.32) 0%, rgba(0, 0, 0, 0.98) 62%), #020306;
        }

        .particle {
            position: fixed;
            pointer-events: none;
            font-size: 2rem;
            z-index: 101;
        }

        .particle.animate {
            animation: particle-float 1.2s ease-out forwards;
            pointer-events: none;
        }

        #booster-result.shine-effect::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shine-across 0.8s ease-out;
            pointer-events: none;
        }

        #booster-result button {
            position: relative;
            z-index: 50;
            pointer-events: auto;
        }

        #booster-opening {
            background:
                radial-gradient(circle at 50% 38%, rgba(251,146,60,0.18), transparent 34%),
                radial-gradient(circle at 50% 55%, rgba(124,58,237,0.12), transparent 42%),
                #020306 !important;
            backdrop-filter: none;
            padding: clamp(0.75rem, 2vw, 1.25rem);
        }
        #booster-opening::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
            background-size: 48px 48px;
            mask-image: radial-gradient(circle at center, black, transparent 78%);
        }
        #booster-container {
            width: min(92vw, 34rem) !important;
            height: min(88dvh, 39rem) !important;
            max-height: calc(100dvh - 1.5rem);
            border-radius: 2rem;
            border: 1px solid rgba(251,146,60,0.22);
            background: linear-gradient(180deg, rgba(10,12,18,0.98), rgba(3,4,7,0.98));
            box-shadow: 0 0 70px rgba(0,0,0,0.78), inset 0 0 40px rgba(251,146,60,0.06);
            padding: clamp(0.85rem, 2.5vw, 1.5rem);
            overflow: hidden;
        }
        #booster-result {
            position: absolute !important;
            inset: clamp(0.85rem, 2.4vw, 1.5rem) !important;
            z-index: 20;
            display: grid !important;
            grid-template-rows: auto minmax(0, 1fr) auto auto;
            align-items: center;
            justify-items: center;
            justify-content: stretch;
            gap: clamp(0.45rem, 1.5vw, 0.9rem);
            min-height: 0;
        }
        #pack-rarity {
            position: relative;
            z-index: 5;
            margin-bottom: 0.75rem;
            text-shadow: 0 2px 14px rgba(0,0,0,0.9);
        }
        #pack-name {
            max-width: 92%;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0 !important;
            font-size: clamp(1.25rem, 4.2vw, 2.45rem) !important;
            line-height: 1.05;
            text-shadow: 0 3px 18px rgba(0,0,0,0.95), 0 0 18px rgba(251,146,60,0.3);
            word-break: normal;
            overflow-wrap: anywhere;
        }
        #pack-pin {
            min-height: 0 !important;
            width: 100%;
            height: 100%;
            margin-bottom: 0 !important;
        }
        #pack-pin img {
            max-height: min(38dvh, 17rem) !important;
            max-width: min(72vw, 22rem) !important;
            width: auto;
            height: auto;
            object-fit: contain;
        }
        #booster-result button {
            width: min(100%, 17.5rem);
            margin-top: 0 !important;
            padding: 0.95rem 1.25rem !important;
            flex-shrink: 0;
            z-index: 80;
        }
        .tag-signature {
            border-color: rgba(252, 211, 77, 0.48) !important;
            background: rgba(252, 211, 77, 0.1) !important;
            color: #fde68a !important;
        }
        .tag-variant {
            border-color: rgba(251, 146, 60, 0.36) !important;
            background: rgba(251, 146, 60, 0.08) !important;
            color: #fdba74 !important;
        }
        .tag-event {
            border-color: rgba(96, 165, 250, 0.38) !important;
            background: rgba(59, 130, 246, 0.1) !important;
            color: #93c5fd !important;
        }
        .tag-limited,
        .tag-chase {
            border-color: rgba(216, 180, 254, 0.42) !important;
            background: rgba(168, 85, 247, 0.1) !important;
            color: #d8b4fe !important;
        }


        .brand-icon {
            width: 1.2rem;
            height: 1.2rem;
            display: inline-block;
        }
        .daily-entry-button {
            position: relative;
            overflow: hidden;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(252,211,77,0.08));
            box-shadow: inset 0 0 24px rgba(251,146,60,0.08), 0 14px 30px rgba(0,0,0,0.22);
        }
        .daily-entry-button::before {
            content: "";
            position: absolute;
            inset: -40% auto -40% -25%;
            width: 38%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
            transform: rotate(18deg);
            transition: left 0.55s ease;
        }
        .daily-entry-button:hover::before {
            left: 100%;
        }
        .daily-entry-orb {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 999px;
            background: radial-gradient(circle at 35% 25%, #fde68a, #f97316 50%, #7c2d12 100%);
            box-shadow: 0 0 18px rgba(249,115,22,0.55);
            color: #0b0c10;
            font-size: 1.15rem;
        }
        .collection-filter.tab-active {
            border-color: rgba(251,146,60,0.75);
            color: #fb923c;
            background: rgba(251,146,60,0.1);
        }
        .inventory-view-tabs {
            position: sticky;
            top: 0.75rem;
            z-index: 35;
            backdrop-filter: blur(12px);
        }
        .inventory-view-tab.tab-active {
            border-color: rgba(251,146,60,0.75);
            color: #fed7aa;
            background: rgba(251,146,60,0.14);
            box-shadow: inset 0 0 0 1px rgba(251,146,60,0.2);
        }
        @media (min-width: 768px) {
            .inventory-view-tabs {
                position: static;
            }
        }
        .collection-meter {
            height: 0.45rem;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(0,0,0,0.35);
        }
        .collection-meter > span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #ea580c, #fbbf24);
            transition: width 0.35s ease;
        }
        .profile-daily-timeline {
            display: grid;
            gap: 0.5rem;
        }
        .profile-daily-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
            padding: 0.75rem;
            border: 1px solid rgba(31,41,55,0.75);
            border-radius: 0.9rem;
            background: rgba(11,12,16,0.58);
        }
        .profile-daily-date {
            max-width: 4.5rem;
            text-align: right;
            white-space: nowrap;
        }

        .daily-pass-track {
            position: relative;
            display: grid;
            grid-template-columns: repeat(7, minmax(8.5rem, 1fr));
            gap: 0.85rem;
            overflow-x: auto;
            padding: 0.3rem 0 0.5rem;
            scrollbar-width: thin;
        }
        .daily-pass-node {
            position: relative;
            min-height: 8.75rem;
            border-radius: 1rem;
            border: 1px solid rgba(55, 65, 81, 0.72);
            background: linear-gradient(180deg, rgba(17,19,26,0.9), rgba(8,9,12,0.92));
            padding: 0.9rem;
            overflow: hidden;
        }
        .daily-pass-node::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
            opacity: 0;
            pointer-events: none;
        }
        .daily-pass-node.is-unlocked {
            border-color: rgba(251, 146, 60, 0.48);
            box-shadow: inset 0 0 24px rgba(251, 146, 60, 0.08), 0 10px 24px rgba(0,0,0,0.22);
        }
        .daily-pass-node.is-unlocked::before {
            opacity: 1;
        }
        .daily-pass-node.is-current {
            border-color: rgba(252, 211, 77, 0.72);
            box-shadow: 0 0 24px rgba(252, 211, 77, 0.14), inset 0 0 30px rgba(252, 211, 77, 0.08);
        }
        .daily-pass-node.is-locked {
            opacity: 0.48;
            filter: grayscale(0.75);
        }
        .daily-pass-day {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.1rem;
            height: 2.1rem;
            border-radius: 999px;
            background: rgba(0,0,0,0.35);
            border: 1px solid rgba(251,146,60,0.18);
            color: #fed7aa;
            font-family: 'Cinzel', serif;
            font-weight: 900;
        }
        .daily-pass-reward {
            margin-top: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .daily-pass-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.6rem;
            height: 2.6rem;
            border-radius: 0.85rem;
            background: rgba(251,146,60,0.1);
            border: 1px solid rgba(251,146,60,0.18);
            font-size: 1.35rem;
        }
        .daily-pass-progress {
            height: 0.55rem;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(0,0,0,0.35);
        }
        .daily-pass-progress > span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #ea580c, #facc15);
            transition: width 0.35s ease;
        }



.pwa-install-card {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 1rem;
    background: rgba(8, 9, 12, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
    padding: 0.78rem;
    backdrop-filter: blur(16px);
}
.pwa-install-card.hidden {
    display: none;
}
.pwa-install-card__icon {
    display: flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    border: 1px solid rgba(251, 146, 60, 0.26);
    background: rgba(251, 146, 60, 0.1);
    font-size: 1.45rem;
}
.pwa-install-card__copy {
    min-width: 0;
}
.pwa-install-card__title {
    margin: 0;
    color: #f8fafc;
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.pwa-install-card__text {
    margin: 0.18rem 0 0;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}
.pwa-install-card__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
}
.pwa-install-card__primary,
.pwa-install-card__ghost {
    min-height: 2.35rem;
    border-radius: 0.75rem;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}
.pwa-install-card__primary {
    background: linear-gradient(to right, #ea580c, #f59e0b);
    color: #050608;
}
.pwa-install-card__ghost {
    padding: 0 0.8rem;
    border: 1px solid rgba(156, 163, 175, 0.18);
    color: #9ca3af;
}
.pwa-update-overlay {
    position: fixed;
    z-index: 320;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.25rem max(1.25rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(circle at 50% 24%, rgba(249, 115, 22, 0.18), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(251, 191, 36, 0.1), transparent 42%),
        rgba(3, 5, 10, 0.94);
    backdrop-filter: blur(18px);
}
.pwa-update-overlay.hidden {
    display: none;
}
.pwa-update-panel {
    width: min(100%, 26rem);
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(17, 19, 26, 0.98), rgba(5, 7, 12, 0.98));
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.72), 0 0 3rem rgba(249, 115, 22, 0.14);
}
.pwa-update-logo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    margin: 0 auto 0.9rem;
    filter: drop-shadow(0 0 1.2rem rgba(249, 115, 22, 0.35));
}
.pwa-update-kicker {
    color: rgba(251, 191, 36, 0.66);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
.pwa-update-title {
    margin-top: 0.45rem;
    color: #fff7ed;
    font-family: "Cinzel", serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pwa-update-message {
    margin-top: 0.65rem;
    color: #9ca3af;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
}
.pwa-update-meter {
    height: 0.62rem;
    overflow: hidden;
    margin-top: 1.25rem;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
}
.pwa-update-meter span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c2410c, #fbbf24, #fb923c);
    box-shadow: 0 0 1.2rem rgba(251, 191, 36, 0.5);
    animation: pwa-update-meter 1.15s ease-in-out infinite;
}
.pwa-update-footnote {
    margin-top: 0.9rem;
    color: rgba(156, 163, 175, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@keyframes pwa-update-meter {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(230%); }
}
.update-notes-modal {
    position: fixed;
    z-index: 310;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.2), transparent 30%),
        rgba(3, 5, 10, 0.92);
    backdrop-filter: blur(18px);
}
.update-notes-modal.hidden {
    display: none;
}
.update-notes-panel {
    width: min(100%, 30rem);
    max-height: calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(17, 19, 26, 0.98), rgba(5, 7, 12, 0.98));
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.72), 0 0 3rem rgba(249, 115, 22, 0.13);
    outline: none;
}
.update-notes-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    margin: 0 auto 0.85rem;
    filter: drop-shadow(0 0 1.2rem rgba(249, 115, 22, 0.35));
}
.update-notes-kicker {
    color: rgba(251, 191, 36, 0.66);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
.update-notes-title {
    margin-top: 0.45rem;
    color: #fff7ed;
    font-family: "Cinzel", serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.update-notes-subtitle {
    margin-top: 0.55rem;
    color: #9ca3af;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
}
.update-notes-version {
    width: fit-content;
    margin: 0.95rem auto 0;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    padding: 0.42rem 0.75rem;
    color: #fed7aa;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.update-notes-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.15rem 0 1.25rem;
    padding: 0;
    text-align: left;
    list-style: none;
}
.update-notes-list li {
    position: relative;
    min-height: 2.65rem;
    border: 1px solid rgba(55, 65, 81, 0.62);
    border-radius: 0.95rem;
    background: rgba(0, 0, 0, 0.24);
    padding: 0.75rem 0.85rem 0.75rem 2.35rem;
    color: #e5e7eb;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
}
.update-notes-list li::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1rem;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    box-shadow: 0 0 0.7rem rgba(251, 146, 60, 0.42);
}
.update-notes-primary {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(90deg, #ea580c, #f59e0b);
    padding: 0.95rem 1.25rem;
    color: #050608;
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 1rem 2.4rem rgba(234, 88, 12, 0.22);
    transition: filter 0.18s ease, transform 0.18s ease;
}
.update-notes-primary:hover {
    filter: brightness(1.08);
}
.update-notes-primary:active {
    transform: translateY(1px);
}
@media (min-width: 768px) {
    .pwa-install-card {
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
        width: min(24rem, calc(100vw - 2.5rem));
    }
}

.profile-badge-card {
    display: flex;
    min-height: 9.7rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(55, 65, 81, 0.72);
    background: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.14), rgba(8, 9, 12, 0.82) 56%);
    padding: 0.85rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.profile-badge-card[role="button"] {
    cursor: pointer;
}
.profile-badge-card[role="button"]:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.72);
    outline-offset: 3px;
}
.profile-badge-card.is-unlocked {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: inset 0 0 26px rgba(251, 146, 60, 0.08), 0 12px 22px rgba(0, 0, 0, 0.24);
}
.profile-badge-card.is-locked {
    opacity: 0.42;
    filter: grayscale(0.85);
}
.profile-badge-card.is-unlocked:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.75);
}
.profile-badge-art {
    display: flex;
    width: 5rem;
    height: 5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(251, 146, 60, 0.16);
    background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.14), rgba(0, 0, 0, 0.18) 62%);
    overflow: hidden;
}
.profile-badge-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(251, 146, 60, 0.32));
}
.profile-badge-art.is-mega img {
    max-width: 94%;
    max-height: 94%;
    filter: drop-shadow(0 0 17px rgba(251, 191, 36, 0.38));
}
.profile-badge-art.is-system {
    border-color: rgba(167, 139, 250, 0.18);
    background: radial-gradient(circle at 50% 35%, rgba(167, 139, 250, 0.14), rgba(0, 0, 0, 0.18) 62%);
}
.profile-badge-art.is-emoji {
    font-size: 2.1rem;
}
.profile-badge-name {
    color: #fed7aa;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}
.profile-badge-subtitle {
    margin-top: 0.25rem;
    color: rgba(156, 163, 175, 0.72);
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.achievement-card-art-column {
    display: flex;
    min-width: 5.2rem;
    flex-direction: column;
    align-items: center;
}

.achievement-art-frame {
    display: flex;
    width: 4.75rem;
    height: 4.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.16);
    background: radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.12), rgba(0, 0, 0, 0.22) 62%);
    overflow: hidden;
    color: #e5e7eb;
    font-size: 2rem;
    line-height: 1;
}
.achievement-art-frame.is-amber {
    border-color: rgba(251, 191, 36, 0.18);
    background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.15), rgba(0, 0, 0, 0.24) 62%);
}
.achievement-art-frame.is-violet {
    border-color: rgba(167, 139, 250, 0.18);
    background: radial-gradient(circle at 50% 35%, rgba(167, 139, 250, 0.14), rgba(0, 0, 0, 0.24) 62%);
}
.achievement-art-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}
.achievement-art-frame.is-mega img {
    max-width: 94%;
    max-height: 94%;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.34));
}
.badge-detail-modal {
    z-index: 10020;
}
.badge-detail-panel {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}
.badge-detail-art {
    display: flex;
    width: min(14rem, 62vw);
    height: min(14rem, 62vw);
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    border: 1px solid rgba(251, 146, 60, 0.18);
    background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.18), rgba(0, 0, 0, 0.28) 66%);
    overflow: hidden;
    color: #fed7aa;
    font-size: 4rem;
}
.badge-detail-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(251, 146, 60, 0.34));
}
.badge-detail-art.is-mega img {
    max-width: 95%;
    max-height: 95%;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.45));
}
.badge-detail-art.is-system {
    border-color: rgba(167, 139, 250, 0.22);
    background: radial-gradient(circle at 50% 35%, rgba(167, 139, 250, 0.18), rgba(0, 0, 0, 0.28) 66%);
}

#profile-bio {
    border: 1px solid rgba(251, 146, 60, 0.26);
    background: rgba(8, 10, 16, 0.92);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    caret-color: #fbbf24;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#profile-bio::placeholder {
    color: rgba(253, 186, 116, 0.48);
}

#profile-bio:focus {
    border-color: rgba(251, 191, 36, 0.78);
    background: rgba(5, 7, 11, 0.96);
    outline: none;
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.12),
        0 0 24px rgba(249, 115, 22, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


/* Quest Displays */
.quest-display-panel {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 70px rgba(0,0,0,.28);
}
.quest-display-panel::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(circle, rgba(249,115,22,.16), transparent 65%);
    pointer-events: none;
}
.fox-display {
    position: relative;
    width: min(100%, 19rem);
    height: 15rem;
    margin: 1rem auto 0;
    display: grid;
    place-items: center;
    transition: filter .45s ease, transform .45s ease;
}
.fox-display.is-locked { filter: saturate(.45) brightness(.72); }
.fox-display.is-ready { filter: saturate(1.15); animation: display-ready 2.2s ease-in-out infinite; }
.fox-display.is-claimed { filter: grayscale(.65) brightness(.65); }
.fox-display-aura {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,211,238,.3), rgba(249,115,22,.12) 45%, transparent 70%);
    filter: blur(18px);
    opacity: .45;
}
.is-ready .fox-display-aura { opacity: 1; animation: display-aura 1.8s ease-in-out infinite; }
.fox-display-shadow {
    position: absolute;
    bottom: 1.25rem;
    width: 12rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    filter: blur(7px);
}
.fox-display-case {
    position: relative;
    width: 12.5rem;
    height: 10rem;
    transform: translateY(.25rem);
}
.fox-display-glass {
    position: absolute;
    inset: .65rem 1.3rem 1rem;
    border: 3px solid rgba(103,232,249,.38);
    border-radius: 1.3rem 1.3rem .8rem .8rem;
    background: linear-gradient(145deg, rgba(14,116,144,.34), rgba(8,14,22,.92) 55%);
    box-shadow: inset 0 0 28px rgba(34,211,238,.12);
}
.fox-display-glass::after {
    content: "";
    position: absolute;
    inset: .45rem auto auto .55rem;
    width: 38%;
    height: 65%;
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 55%);
    transform: skewX(-10deg);
}
.fox-display-lid {
    position: absolute;
    left: .65rem;
    right: .65rem;
    top: 0;
    height: 2.1rem;
    border: 3px solid #fb923c;
    border-radius: 1.1rem .9rem .45rem .45rem;
    background: linear-gradient(180deg, #fbbf24, #ea580c);
    box-shadow: 0 .4rem 0 #7c2d12;
}
.fox-display-frame {
    position: absolute;
    inset: 1.4rem .35rem .35rem;
    border: .72rem solid #c2410c;
    border-top-width: .46rem;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 3px #fbbf24, 0 .65rem 0 rgba(17,24,39,.9);
    pointer-events: none;
}
.fox-display-lock {
    position: absolute;
    left: 50%;
    bottom: -.1rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 3.35rem;
    height: 3.35rem;
    transform: translateX(-50%);
    border: 4px solid #fcd34d;
    border-radius: 1rem;
    background: #c2410c;
    font-size: 1.45rem;
    box-shadow: 0 .35rem 0 #451a03;
}
.fox-display-card {
    position: absolute;
    left: 50%;
    top: 3.15rem;
    z-index: 2;
    transform: translateX(-50%) rotate(-3deg);
    color: rgba(254,215,170,.72);
    font-family: Cinzel, serif;
    font-size: .78rem;
    font-weight: 900;
    line-height: .9;
    letter-spacing: .12em;
    text-align: center;
    text-shadow: 0 0 12px rgba(249,115,22,.8);
}
.quest-seal {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    object-fit: contain;
    opacity: .68;
    filter: grayscale(.2) brightness(.72) drop-shadow(0 3px 5px rgba(0,0,0,.42));
    transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.quest-seal.is-lit {
    opacity: 1;
    filter: saturate(1.08) drop-shadow(0 0 9px rgba(249,115,22,.5)) drop-shadow(0 4px 6px rgba(0,0,0,.4));
    transform: translateY(-1px);
}
#daily-display-seals.is-complete .quest-seal.is-lit {
    animation: quest-seal-premium 2.4s ease-in-out infinite;
}
#daily-display-seals.is-complete .quest-seal:nth-child(2) { animation-delay: .14s; }
#daily-display-seals.is-complete .quest-seal:nth-child(3) { animation-delay: .28s; }
@keyframes quest-seal-premium {
    0%, 100% { filter: saturate(1.08) drop-shadow(0 0 8px rgba(249,115,22,.46)) drop-shadow(0 4px 6px rgba(0,0,0,.4)); transform: translateY(-1px) scale(1); }
    50% { filter: saturate(1.16) drop-shadow(0 0 15px rgba(251,191,36,.72)) drop-shadow(0 4px 7px rgba(0,0,0,.42)); transform: translateY(-2px) scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
    #daily-display-seals.is-complete .quest-seal.is-lit { animation: none; }
}
#daily-display-art[data-display-tier="common"].is-ready { filter: sepia(.2) saturate(.9); }
#daily-display-art[data-display-tier="standard"].is-ready { filter: sepia(.25) saturate(1.15) brightness(1.05); }
#daily-display-art[data-display-tier="rare"].is-ready { filter: saturate(1.2) drop-shadow(0 0 18px rgba(34,211,238,.2)); }
.quest-card { transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.quest-card.is-complete {
    border-color: rgba(52,211,153,.35);
    background: rgba(16,185,129,.08);
}
.quest-card.is-complete .quest-card-icon { filter: none; box-shadow: 0 0 18px rgba(52,211,153,.18); }
.weekly-display-meter {
    height: .6rem;
    overflow: hidden;
    border: 1px solid rgba(34,211,238,.18);
    border-radius: 999px;
    background: rgba(3,7,18,.8);
}
.weekly-display-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0e7490, #22d3ee, #f59e0b);
    box-shadow: 0 0 16px rgba(34,211,238,.42);
    transition: width .55s cubic-bezier(.22,1,.36,1);
}
.weekly-tier-card { position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.weekly-tier-card.is-unlocked:not(.is-claimed):hover { transform: translateY(-2px); }
.quest-reward-card {
    position: relative;
    overflow: hidden;
    animation: quest-reward-in .5s cubic-bezier(.2,.9,.2,1.15) both;
    background:
        radial-gradient(circle at 50% 0%, rgba(251,191,36,.13), transparent 42%),
        linear-gradient(180deg, #0d111a, #080a10) !important;
    box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.04);
}
.quest-reward-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(130deg, transparent 0 38%, rgba(255,255,255,.045) 48%, transparent 58% 100%);
    pointer-events: none;
}
.quest-reward-card > * {
    position: relative;
    z-index: 1;
}
.quest-reward-card.is-commun { box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), 0 0 70px rgba(249,115,22,.18); }
.quest-reward-card.is-standard { box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), 0 0 75px rgba(251,191,36,.22); }
.quest-reward-card.is-rare { box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), 0 0 80px rgba(34,211,238,.2); }
.quest-reward-card.is-epic { box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), 0 0 90px rgba(168,85,247,.24); }
.quest-reward-card.is-legendary { box-shadow: 0 1.5rem 5rem rgba(0,0,0,.62), 0 0 100px rgba(251,191,36,.3); }
.quest-reward-bonus {
    box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 24px rgba(251,191,36,.13);
}

@keyframes display-ready {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-.35rem); }
}
@keyframes display-aura {
    0%,100% { transform: scale(.9); opacity: .65; }
    50% { transform: scale(1.08); opacity: 1; }
}
@keyframes quest-reward-in {
    from { opacity: 0; transform: translateY(1.5rem) scale(.88); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* Interactive Display opening scene */
.quest-opening-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(34,211,238,.14), transparent 28%),
        radial-gradient(circle at 50% 55%, rgba(249,115,22,.12), transparent 42%);
    pointer-events: none;
}
.quest-opening-stage,
#quest-reward-stage {
    position: relative;
    z-index: 2;
}
.quest-opening-target {
    width: min(92vw, 28rem);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.quest-opening-target:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: .5rem;
    border-radius: 2rem;
}
.quest-opening-fox {
    width: 100%;
    height: 21rem;
    margin: 0;
    transform-origin: center 70%;
}
.quest-opening-fox .fox-display-case {
    transform: translateY(1.25rem) scale(1.38);
}
.quest-opening-fox .fox-display-aura {
    width: 19rem;
    height: 19rem;
    opacity: .9;
}
.quest-opening-fox .fox-display-shadow {
    bottom: 2rem;
    width: 18rem;
}
.quest-tap-indicator {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(251,146,60,.5);
    border-radius: 999px;
    color: #fdba74;
    background: rgba(249,115,22,.14);
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(249,115,22,.2);
    animation: quest-tap 1.2s ease-in-out infinite;
}
.fox-display-burst {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 8;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 999px;
    background: white;
    opacity: 0;
    box-shadow:
        0 0 2rem 1rem rgba(255,255,255,.9),
        0 0 5rem 3rem rgba(34,211,238,.65),
        0 0 8rem 5rem rgba(249,115,22,.4);
}
.quest-opening-stage.is-opening .quest-opening-target {
    pointer-events: none;
}
.quest-opening-stage.is-opening .quest-opening-fox {
    animation: quest-case-shake .72s cubic-bezier(.36,.07,.19,.97) both;
}
.quest-opening-stage.is-opening .fox-display-lid {
    animation: quest-lid-open 1.15s cubic-bezier(.2,.9,.2,1) .45s forwards;
    transform-origin: 50% 100%;
}
.quest-opening-stage.is-opening .fox-display-lock {
    animation: quest-lock-pop .55s ease-in forwards;
}
.quest-opening-stage.is-opening .fox-display-glass {
    animation: quest-glass-flash 1.25s ease-in .35s forwards;
}
.quest-opening-stage.is-opening .fox-display-burst {
    animation: quest-burst 1s ease-out .85s forwards;
}
.quest-opening-stage.is-opening .quest-tap-indicator {
    opacity: 0;
    animation: none;
}
.quest-opening-stage.is-opening #quest-opening-hint {
    color: #67e8f9;
}
.quest-opening-stage.is-vanishing {
    animation: quest-stage-out .42s ease-in forwards;
}
.quest-reward-orbit {
    position: relative;
    animation: quest-reward-float 2s ease-in-out infinite;
    box-shadow: 0 0 45px rgba(249,115,22,.16);
}

@keyframes quest-tap {
    0%,100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(-.45rem); opacity: 1; }
}
@keyframes quest-case-shake {
    10%,90% { transform: translateX(-2px) rotate(-1deg); }
    20%,80% { transform: translateX(4px) rotate(1deg); }
    30%,50%,70% { transform: translateX(-6px) rotate(-1.5deg); }
    40%,60% { transform: translateX(6px) rotate(1.5deg); }
}
@keyframes quest-lid-open {
    0% { transform: translateY(0) rotateX(0); }
    45% { transform: translateY(-1.2rem) rotateX(-18deg); }
    100% { transform: translateY(-5.2rem) rotate(-12deg) scale(.92); opacity: .2; }
}
@keyframes quest-lock-pop {
    0% { transform: translateX(-50%) scale(1); }
    55% { transform: translateX(-50%) scale(1.18) rotate(8deg); }
    100% { transform: translate(-50%, 3rem) scale(.2) rotate(28deg); opacity: 0; }
}
@keyframes quest-glass-flash {
    0%,35% { filter: brightness(1); }
    70% { filter: brightness(3) saturate(1.8); }
    100% { filter: brightness(6); opacity: .15; }
}
@keyframes quest-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}
@keyframes quest-stage-out {
    to { opacity: 0; transform: scale(1.08); filter: blur(8px); }
}
@keyframes quest-reward-float {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-.45rem) scale(1.04); }
}

@media (max-width: 520px) {
    .quest-opening-fox { height: 18rem; }
    .quest-opening-fox .fox-display-case { transform: translateY(.8rem) scale(1.16); }
    .quest-opening-fox .fox-display-aura { width: 15rem; height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .quest-reward-card,
    .quest-reward-orbit,
    .quest-opening-image {
        animation: none !important;
    }
}


/* PNG artwork support for the interactive Display */
.quest-opening-image-scene {
    position: relative;
    display: grid;
    place-items: center;
}
.quest-opening-image {
    position: relative;
    z-index: 3;
    width: min(86%, 22rem);
    height: min(86%, 22rem);
    object-fit: contain;
    filter: drop-shadow(0 1.4rem .8rem rgba(0,0,0,.45));
    animation: quest-png-idle 2.2s ease-in-out infinite;
    transform-origin: center 65%;
    will-change: transform, filter, opacity;
}
.quest-opening-image-scene .fox-display-aura {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.quest-opening-image-scene .fox-display-shadow {
    left: 50%;
    transform: translateX(-50%);
}
.quest-opening-stage.is-opening .quest-opening-image {
    animation: quest-png-open 1.55s cubic-bezier(.2,.8,.2,1) forwards;
}
.quest-opening-stage.is-opening .quest-opening-image-scene {
    animation: quest-case-shake .72s cubic-bezier(.36,.07,.19,.97) both;
}

@media (max-width: 767px) {
    html.foxbox-mobile #mobile-nav > div {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .15rem;
    }
    html.foxbox-mobile #mobile-nav .nav-tab--mobile {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        padding: .5rem .05rem;
        font-size: clamp(.44rem, 2vw, .54rem);
        letter-spacing: 0;
    }
    html.foxbox-mobile #mobile-nav .nav-tab--mobile > span:last-child {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-align: center;
    }
}
.quest-opening-image-scene .fox-display-burst {
    left: 50%;
    top: 48%;
}
@keyframes quest-png-idle {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-.45rem) scale(1.018); }
}
@keyframes quest-png-open {
    0%,30% { transform: translateY(0) scale(1) rotate(0); filter: drop-shadow(0 1.4rem .8rem rgba(0,0,0,.45)) brightness(1); opacity: 1; }
    48% { transform: translateY(-.35rem) scale(1.06) rotate(-2deg); filter: drop-shadow(0 1.6rem 1rem rgba(0,0,0,.45)) brightness(1.25); }
    72% { transform: translateY(-1rem) scale(1.15) rotate(1deg); filter: drop-shadow(0 0 2rem rgba(34,211,238,.6)) brightness(2.5); opacity: 1; }
    100% { transform: translateY(-1.5rem) scale(1.32); filter: drop-shadow(0 0 4rem rgba(255,255,255,.9)) brightness(5); opacity: 0; }
}

/* Navigation moderne et indicateurs de progression */
.nav-icon-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
}
.nav-indicator {
    position: absolute;
    top: -.35rem;
    right: -.45rem;
    width: .48rem;
    height: .48rem;
    border: 2px solid #0b0c10;
    border-radius: 999px;
    background: #fb923c;
    box-shadow: 0 0 10px rgba(251,146,60,.9);
    animation: nav-indicator-pulse 2s ease-in-out infinite;
}
@keyframes nav-indicator-pulse {
    0%, 100% { transform: scale(.9); opacity: .75; }
    50% { transform: scale(1.18); opacity: 1; }
}
.profile-favorite-slot {
    min-height: 5.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .65rem;
    border: 1px solid rgba(75,85,99,.55);
    border-radius: .9rem;
    background: rgba(0,0,0,.2);
}

.achievement-detail-toggle {
    display: none;
}

html.foxbox-mobile .achievement-detail-toggle {
    display: inline-flex;
    width: 100%;
    min-height: 2.15rem;
    margin-top: 0.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.7rem;
    background: rgba(0, 0, 0, 0.34);
    padding: 0.48rem 0.7rem;
    color: #fdba74;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

html.foxbox-mobile .achievement-detail-toggle:active {
    border-color: rgba(251, 191, 36, 0.62);
    background: rgba(249, 115, 22, 0.14);
    color: #fef3c7;
}

html.foxbox-mobile [data-achievement-card] {
    padding: 0.85rem !important;
}

html.foxbox-mobile [data-achievement-card] h4 {
    font-size: 0.86rem !important;
    line-height: 1.2 !important;
}

html.foxbox-mobile .achievement-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html.foxbox-mobile .achievement-pins-detail:not(.is-open) {
    display: none !important;
}

html.foxbox-mobile .achievement-pins-detail.is-open {
    animation: achievement-detail-in 180ms ease-out both;
}

@keyframes achievement-detail-in {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-update-meter span {
        width: 100%;
        animation: none;
    }
    html.foxbox-mobile .achievement-pins-detail.is-open { animation: none; }
}

/* Generic FoxBox unlock notifications */
.unlock-notification-host {
    position: fixed;
    z-index: 260;
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: 50%;
    width: min(92vw, 27rem);
    transform: translateX(-50%);
    pointer-events: none;
}
.unlock-notification {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 1.8rem;
    align-items: center;
    gap: .8rem;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, .42);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(8, 12, 22, .98), rgba(15, 16, 22, .98));
    padding: .7rem .65rem .7rem .75rem;
    color: #fff;
    box-shadow: 0 1.1rem 3rem rgba(0,0,0,.55), 0 0 1.8rem rgba(249,115,22,.13), inset 0 1px rgba(255,255,255,.04);
    opacity: 0;
    transform: translateY(calc(-100% - 2rem)) scale(.97);
    transition: opacity .42s ease, transform .52s cubic-bezier(.2,.85,.25,1);
    pointer-events: auto;
}
.unlock-notification::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(#fbbf24, #f97316);
    box-shadow: 0 0 1rem rgba(251,146,60,.8);
}
.unlock-notification--achievement {
    border-color: rgba(250, 204, 21, .5);
    grid-template-columns: 4.15rem minmax(0, 1fr) 1.8rem;
    gap: .95rem;
    padding: .78rem .68rem .78rem .85rem;
    background:
        radial-gradient(circle at 4.1rem 50%, rgba(250,204,21,.18), transparent 34%),
        linear-gradient(135deg, rgba(9, 11, 18, .99), rgba(25, 16, 8, .98));
    box-shadow: 0 1.1rem 3rem rgba(0,0,0,.58), 0 0 2rem rgba(250,204,21,.19), inset 0 1px rgba(255,255,255,.06);
}
.unlock-notification--achievement .unlock-notification__visual {
    width: 4.15rem;
    height: 4.15rem;
    border-color: rgba(250,204,21,.38);
    background: radial-gradient(circle at 50% 40%, rgba(250,204,21,.28), rgba(0,0,0,.42) 70%);
    box-shadow: 0 0 1.1rem rgba(250,204,21,.22), inset 0 1px rgba(255,255,255,.08);
}
.unlock-notification--achievement .unlock-notification__visual img {
    padding: .12rem;
    filter: drop-shadow(0 0 .8rem rgba(251,191,36,.44));
}
.unlock-notification--achievement .unlock-notification__label {
    color: #fde68a;
}
.unlock-notification--achievement .unlock-notification__name {
    color: #fff8dc;
    font-size: .98rem;
    text-shadow: 0 0 .8rem rgba(251,191,36,.18);
}
.unlock-notification--mega_achievement {
    border-color: rgba(245, 158, 11, .62);
    grid-template-columns: 4.55rem minmax(0, 1fr) 1.85rem;
    gap: 1rem;
    padding: .84rem .7rem .84rem .9rem;
    background:
        radial-gradient(circle at 4.6rem 48%, rgba(253,230,138,.22), transparent 36%),
        linear-gradient(135deg, rgba(12, 8, 19, .99), rgba(30, 18, 7, .99));
    box-shadow: 0 1.25rem 3.2rem rgba(0,0,0,.64), 0 0 2.8rem rgba(245,158,11,.28), inset 0 1px rgba(255,255,255,.08);
}
.unlock-notification--mega_achievement::before {
    width: 4px;
    background: linear-gradient(#fde68a, #f59e0b, #fb923c);
}
.unlock-notification--mega_achievement .unlock-notification__visual {
    width: 4.55rem;
    height: 4.55rem;
    border-color: rgba(253,230,138,.48);
    border-radius: 1rem;
    background: radial-gradient(circle at 50% 38%, rgba(245,158,11,.38), rgba(0,0,0,.36) 72%);
    box-shadow: 0 0 1.35rem rgba(245,158,11,.34), inset 0 1px rgba(255,255,255,.1);
}
.unlock-notification--mega_achievement .unlock-notification__visual img {
    padding: .06rem;
    filter: drop-shadow(0 0 1rem rgba(253,230,138,.56));
}
.unlock-notification--mega_achievement .unlock-notification__label {
    color: #fde68a;
    letter-spacing: .19em;
}
.unlock-notification--mega_achievement .unlock-notification__name {
    color: #fff7d6;
    font-size: 1.02rem;
    text-shadow: 0 0 1rem rgba(253,230,138,.24);
}
.unlock-notification--achievement::after,
.unlock-notification--mega_achievement::after {
    content: "";
    position: absolute;
    inset: -45% auto -45% -35%;
    width: 34%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.2), transparent);
    opacity: 0;
    pointer-events: none;
    transform: skewX(-18deg) translateX(0);
}
.unlock-notification--achievement.is-visible {
    animation: unlock-achievement-pop .68s cubic-bezier(.17,.84,.31,1.12) both;
}
.unlock-notification--mega_achievement.is-visible {
    animation: unlock-mega-pop .78s cubic-bezier(.16,.88,.24,1.16) both;
}
.unlock-notification--achievement.is-visible::after,
.unlock-notification--mega_achievement.is-visible::after {
    animation: unlock-shine .92s ease .16s both;
}
.unlock-notification--achievement.is-visible .unlock-notification__visual,
.unlock-notification--mega_achievement.is-visible .unlock-notification__visual {
    animation: unlock-visual-pulse 1.15s ease .12s 1 both;
}
.unlock-notification.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.unlock-notification.is-leaving { opacity: 0; transform: translateY(-1rem) scale(.98); transition-duration: .4s; }
.unlock-notification__visual {
    position: relative;
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(251,191,36,.3);
    border-radius: .85rem;
    background: radial-gradient(circle at 50% 40%, rgba(249,115,22,.2), rgba(0,0,0,.35) 68%);
    color: #fbbf24;
    font-size: 1.5rem;
}
.unlock-notification--achievement .unlock-notification__visual::before,
.unlock-notification--mega_achievement .unlock-notification__visual::before {
    content: "";
    position: absolute;
    inset: .25rem;
    z-index: 0;
    border-radius: inherit;
    border: 1px solid rgba(253,230,138,.26);
    opacity: 0;
    transform: scale(.72);
    pointer-events: none;
}
.unlock-notification--achievement.is-visible .unlock-notification__visual::before {
    animation: unlock-badge-aura .9s ease .08s 1 both;
}
.unlock-notification--mega_achievement.is-visible .unlock-notification__visual::before {
    animation: unlock-mega-aura 1.05s ease .08s 1 both;
}
.unlock-notification__visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: .25rem; filter: drop-shadow(0 0 .55rem rgba(251,146,60,.3)); }
.unlock-notification__copy { min-width: 0; }
.unlock-notification__label { color: #fdba74; font-size: .58rem; font-weight: 900; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.unlock-notification__name { overflow: hidden; margin-top: .22rem; color: #fff7ed; font-family: "Cinzel", serif; font-size: .92rem; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.unlock-notification__description { display: -webkit-box; overflow: hidden; margin-top: .18rem; color: #7f8490; font-size: .64rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.unlock-notification__close { align-self: start; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.04); color: #777d89; font-size: 1rem; transition: color .2s ease, background .2s ease; }
.unlock-notification__close:hover { background: rgba(249,115,22,.12); color: #fed7aa; }
@keyframes unlock-achievement-pop {
    0% { opacity: 0; transform: translateY(calc(-100% - 2rem)) scale(.96); }
    64% { opacity: 1; transform: translateY(.16rem) scale(1.015); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes unlock-mega-pop {
    0% { opacity: 0; transform: translateY(calc(-100% - 2.4rem)) scale(.94); }
    58% { opacity: 1; transform: translateY(.22rem) scale(1.025); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes unlock-shine {
    0% { opacity: 0; transform: skewX(-18deg) translateX(0); }
    28% { opacity: .78; }
    100% { opacity: 0; transform: skewX(-18deg) translateX(420%); }
}
@keyframes unlock-visual-pulse {
    0% { transform: scale(.9); }
    45% { transform: scale(1.055); }
    100% { transform: scale(1); }
}
@keyframes unlock-badge-aura {
    0% { opacity: 0; transform: scale(.72); }
    32% { opacity: .72; }
    100% { opacity: 0; transform: scale(1.2); }
}
@keyframes unlock-mega-aura {
    0% { opacity: 0; transform: scale(.64); box-shadow: 0 0 0 rgba(253,230,138,0); }
    28% { opacity: .9; box-shadow: 0 0 1.1rem rgba(253,230,138,.34); }
    100% { opacity: 0; transform: scale(1.34); box-shadow: 0 0 1.8rem rgba(253,230,138,0); }
}

@media (max-width: 420px) {
    .unlock-notification-host {
        width: min(94vw, 25rem);
    }
    .unlock-notification--achievement {
        grid-template-columns: 3.65rem minmax(0, 1fr) 1.75rem;
        gap: .72rem;
        padding: .7rem .58rem .7rem .72rem;
    }
    .unlock-notification--achievement .unlock-notification__visual {
        width: 3.65rem;
        height: 3.65rem;
    }
    .unlock-notification--mega_achievement {
        grid-template-columns: 3.9rem minmax(0, 1fr) 1.75rem;
        gap: .76rem;
        padding: .74rem .58rem .74rem .74rem;
    }
    .unlock-notification--mega_achievement .unlock-notification__visual {
        width: 3.9rem;
        height: 3.9rem;
    }
    .unlock-notification--achievement .unlock-notification__name,
    .unlock-notification--mega_achievement .unlock-notification__name {
        font-size: .9rem;
    }
}

/* Premium craft scene */
body.craft-scene-active { overflow: hidden; }
.craft-scene-modal {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1rem;
}
.craft-scene-modal.hidden { display: none; }
.craft-scene-backdrop { position: absolute; inset: 0; background: rgba(2,4,9,.94); backdrop-filter: blur(16px); }
.craft-scene-panel {
    position: relative;
    width: min(94vw, 30rem);
    overflow: hidden;
    border: 1px solid rgba(251,146,60,.25);
    border-radius: 1.75rem;
    background: linear-gradient(155deg, #10131c 0%, #080a10 48%, #0d0907 100%);
    box-shadow: 0 2rem 6rem rgba(0,0,0,.78), 0 0 3rem rgba(249,115,22,.1), inset 0 1px rgba(255,255,255,.04);
}
.craft-scene-ambient { position: absolute; inset: -35% -20% auto; height: 70%; background: radial-gradient(ellipse, rgba(249,115,22,.14), transparent 65%); pointer-events: none; }
.craft-scene-close { position: absolute; z-index: 8; top: .8rem; right: .8rem; display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(0,0,0,.28); color: #777d89; font-size: 1.25rem; }
.craft-scene-content { position: relative; z-index: 2; padding: 1.4rem 1.5rem 1.3rem; text-align: center; }
.craft-scene-kicker { color: #fb923c; font-size: .58rem; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; }
.craft-scene-title { margin-top: .35rem; color: #fff7ed; font-family: "Cinzel", serif; font-size: 1.5rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.craft-stage { --impact-alpha: .62; --impact-scale: 1.75; --spark-distance: -3.2rem; --spark-alpha: .68; position: relative; display: grid; width: min(62vw, 15rem); height: min(62vw, 15rem); margin: 1rem auto .45rem; place-items: center; isolation: isolate; }
.craft-stage[data-step="2"] { --impact-alpha: .78; --impact-scale: 2.05; --spark-distance: -4rem; --spark-alpha: .82; }
.craft-stage[data-step="3"] { --impact-alpha: .94; --impact-scale: 2.5; --spark-distance: -5rem; --spark-alpha: 1; }
.craft-stage-ring { position: absolute; inset: 7%; border: 1px solid rgba(251,146,60,.16); border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.08), rgba(0,0,0,.16) 57%, transparent 58%); box-shadow: inset 0 0 2rem rgba(0,0,0,.62); transition: border-color .35s ease, box-shadow .35s ease; }
.craft-stage-ring::after { content: ""; position: absolute; inset: -10%; border: 1px solid transparent; border-radius: inherit; opacity: 0; }
.craft-pin-image { position: relative; z-index: 3; width: 82%; height: 82%; object-fit: contain; filter: grayscale(1) saturate(0) brightness(.38) drop-shadow(0 .8rem .55rem rgba(0,0,0,.55)); transform: scale(.92); transition: filter .52s ease, transform .52s cubic-bezier(.2,.75,.2,1); }
.craft-stage[data-step="1"] .craft-pin-image { filter: grayscale(.72) saturate(.42) brightness(.62) drop-shadow(0 .8rem .55rem rgba(0,0,0,.55)); transform: scale(.95); }
.craft-stage[data-step="2"] .craft-pin-image { filter: grayscale(.34) saturate(.76) brightness(.82) drop-shadow(0 0 .75rem rgba(249,115,22,.18)); transform: scale(.98); }
.craft-stage[data-step="3"] .craft-pin-image, .craft-stage.is-final .craft-pin-image { filter: grayscale(0) saturate(1.08) brightness(1.08) drop-shadow(0 0 1.15rem rgba(251,146,60,.38)); transform: scale(1.04); }
.craft-stage[data-step="3"] .craft-stage-ring { border-color: rgba(251,191,36,.42); box-shadow: 0 0 2.5rem rgba(249,115,22,.2), inset 0 0 2rem rgba(249,115,22,.08); }
.craft-hammer { position: absolute; z-index: 6; top: 17%; right: 4%; width: 5rem; height: 5.2rem; opacity: 0; filter: drop-shadow(0 .45rem .35rem rgba(0,0,0,.72)); transform: rotate(-24deg) translate(.55rem,-.35rem); transform-origin: 42% 92%; }
.craft-hammer i { position: absolute; inset: 0; display: block; color: transparent; font-size: 0; }
.craft-hammer i::before { content: ""; position: absolute; z-index: 2; top: .18rem; left: .15rem; width: 3.55rem; height: 1.34rem; border: 1px solid rgba(255,225,151,.8); border-radius: .28rem .48rem .38rem .22rem; background: linear-gradient(165deg, #fff1b8 0 10%, #d99a2b 25%, #74410f 50%, #f5c557 72%, #8d5518 100%); box-shadow: inset 0 .16rem .12rem rgba(255,255,255,.44), inset 0 -.22rem .22rem rgba(61,30,4,.45), 0 0 .65rem rgba(245,158,11,.25); clip-path: polygon(6% 8%, 89% 0, 100% 22%, 96% 82%, 86% 100%, 5% 91%, 0 73%, 1% 23%); }
.craft-hammer i::after { content: ""; position: absolute; z-index: 1; top: 1.08rem; left: 1.75rem; width: .7rem; height: 3.85rem; border: 1px solid rgba(226,151,49,.42); border-radius: .24rem .24rem .42rem .42rem; background: linear-gradient(90deg, #130d0a 0%, #3a2418 24%, #0c0908 58%, #5b3118 78%, #16100c 100%); box-shadow: inset .12rem 0 .12rem rgba(255,174,75,.18), inset -.12rem 0 .15rem rgba(0,0,0,.7), 0 .2rem .25rem rgba(0,0,0,.5); transform: rotate(-7deg); transform-origin: 50% 0; }
.craft-hammer::after { content: ""; position: absolute; z-index: 3; top: .34rem; left: .55rem; width: 1.8rem; height: .12rem; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255,248,207,.95), transparent); opacity: .72; transform: rotate(-2deg); }
.craft-stage.is-impact .craft-hammer { animation: craft-hammer-hit .5s cubic-bezier(.28,.78,.28,1) both; }
.craft-impact { position: absolute; z-index: 7; width: 3.7rem; height: 3.7rem; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fff 0 4%, #fbbf24 12%, rgba(249,115,22,.32) 35%, transparent 68%); }
.craft-stage.is-impact .craft-impact { animation: craft-impact-flash .48s ease-out both; }
.craft-stage.is-impact[data-step="2"] .craft-impact { filter: saturate(1.15) brightness(1.08); }
.craft-stage.is-impact[data-step="3"] .craft-impact { animation-duration: .62s; filter: saturate(1.25) brightness(1.2); }
.craft-stage.is-impact[data-step="3"] .craft-stage-ring::after { border-color: rgba(251,191,36,.52); animation: craft-final-ring .72s ease-out both; box-shadow: 0 0 1.4rem rgba(249,115,22,.25); }
.craft-sparks { position: absolute; z-index: 7; inset: 50%; pointer-events: none; }
.craft-sparks i { position: absolute; width: .24rem; height: 1.45rem; border-radius: 999px; background: linear-gradient(#fff, #fbbf24, transparent); opacity: 0; transform-origin: 50% 0; }
.craft-sparks i:nth-child(1) { --spark-angle: 15deg; }.craft-sparks i:nth-child(2) { --spark-angle: 70deg; }.craft-sparks i:nth-child(3) { --spark-angle: 125deg; }.craft-sparks i:nth-child(4) { --spark-angle: 205deg; }.craft-sparks i:nth-child(5) { --spark-angle: 255deg; }.craft-sparks i:nth-child(6) { --spark-angle: 315deg; }
.craft-stage.is-impact .craft-sparks i { animation: craft-spark .5s ease-out both; transform: rotate(var(--spark-angle)) translateY(-1rem); }
.craft-stage.is-impact[data-step="1"] .craft-sparks i:nth-child(n+5) { display: none; }
.craft-stage.is-impact[data-step="2"] .craft-sparks i { animation-duration: .58s; }
.craft-stage.is-impact[data-step="3"] .craft-sparks i { width: .27rem; animation-duration: .68s; }
.craft-strike-progress { display: flex; justify-content: center; gap: .42rem; margin-bottom: .75rem; }
.craft-strike-progress i { width: 1.6rem; height: .18rem; overflow: hidden; border-radius: 99px; background: #252832; }
.craft-scene-modal:has(.craft-stage[data-step="1"]) .craft-strike-progress i:nth-child(1), .craft-scene-modal:has(.craft-stage[data-step="2"]) .craft-strike-progress i:nth-child(-n+2), .craft-scene-modal:has(.craft-stage[data-step="3"]) .craft-strike-progress i { background: linear-gradient(90deg,#f97316,#fbbf24); box-shadow: 0 0 .55rem rgba(249,115,22,.5); }
.craft-scene-status { color: #9ca3af; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.craft-scene-name { margin-top: .22rem; color: #e5e7eb; font-family: "Cinzel", serif; font-size: 1rem; font-weight: 900; text-transform: uppercase; }
.craft-result { position: relative; margin-top: .8rem; overflow: hidden; border: 1px solid rgba(251,191,36,.3); border-radius: 1rem; background: linear-gradient(145deg, rgba(249,115,22,.1), rgba(0,0,0,.18)); padding: .85rem; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 0 1.6rem rgba(249,115,22,.07); }
.craft-result::before { content: ""; position: absolute; inset: -80% 18% auto; height: 8rem; border-radius: 50%; background: rgba(251,191,36,.12); filter: blur(1.5rem); pointer-events: none; }
.craft-result > * { position: relative; z-index: 1; }
.craft-result[hidden] { display: none; }
.craft-result-eyebrow { color: #fbbf24; font-size: .6rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.craft-result-name { margin-top: .22rem; color: #fff; font-family: "Cinzel", serif; font-size: 1.05rem; font-weight: 900; text-transform: uppercase; }
.craft-result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; }
.craft-result-stats span { border: 1px solid rgba(255,255,255,.06); border-radius: .65rem; background: rgba(0,0,0,.2); padding: .52rem; color: #777d89; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.craft-result-stats strong { display: block; margin-top: .12rem; color: #fdba74; font-size: .85rem; }
.craft-skip-button, .craft-continue-button { width: 100%; margin-top: .85rem; border-radius: .85rem; padding: .72rem 1rem; font-size: .62rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.craft-skip-button { border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22); color: #777d89; }
.craft-continue-button { border: 1px solid rgba(255,214,112,.48); background: linear-gradient(105deg,#c94b0a,#f59e0b 52%,#f7c95a); color: #100b06; box-shadow: 0 .7rem 1.5rem rgba(234,88,12,.2), inset 0 1px rgba(255,255,255,.34); transition: filter .2s ease, transform .2s ease, box-shadow .2s ease; }
.craft-continue-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 .85rem 1.8rem rgba(234,88,12,.26), inset 0 1px rgba(255,255,255,.4); }
.craft-scene-modal.is-result .craft-pin-image { transform: scale(1.08); filter: grayscale(0) saturate(1.12) brightness(1.1) drop-shadow(0 0 1.45rem rgba(251,146,60,.46)); }
.craft-scene-modal.is-error .craft-stage { opacity: .42; }
.craft-scene-modal.is-error .craft-scene-status { color: #fca5a5; }
@keyframes craft-hammer-hit {
    0% { opacity: 0; transform: rotate(-24deg) translate(.55rem,-.35rem); }
    18% { opacity: 1; transform: rotate(-28deg) translate(.35rem,-.2rem); }
    66%, 74% { opacity: 1; transform: rotate(-88deg) translate(-.05rem,.1rem); }
    100% { opacity: 0; transform: rotate(-70deg) translate(.1rem,-.1rem); }
}
@keyframes craft-impact-flash { 0% { opacity: 0; transform: scale(.15); } 35% { opacity: var(--impact-alpha); } 100% { opacity: 0; transform: scale(var(--impact-scale)); } }
@keyframes craft-spark { 0% { opacity: var(--spark-alpha); transform: rotate(var(--spark-angle)) translateY(-.5rem) scaleY(.3); } 100% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(var(--spark-distance)) scaleY(1); } }
@keyframes craft-final-ring { 0% { opacity: .9; transform: scale(.72); } 100% { opacity: 0; transform: scale(1.28); } }

@media (prefers-reduced-motion: reduce) {
    .unlock-notification { transition-duration: .01ms; }
    .unlock-notification--achievement,
    .unlock-notification--mega_achievement,
    .unlock-notification--achievement::after,
    .unlock-notification--mega_achievement::after,
    .unlock-notification--achievement .unlock-notification__visual,
    .unlock-notification--mega_achievement .unlock-notification__visual,
    .unlock-notification--achievement .unlock-notification__visual::before,
    .unlock-notification--mega_achievement .unlock-notification__visual::before {
        animation: none !important;
    }
    .craft-pin-image, .craft-stage-ring { transition: none; }
    .craft-stage.is-impact .craft-hammer, .craft-stage.is-impact .craft-impact, .craft-stage.is-impact .craft-sparks i { animation: none; }
}


/* Active objective full module */
.home-objective-page {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.8rem;
}

.home-objective-page.hidden {
    display: none !important;
}

.home-objective-modal-subtitle {
    margin-top: 0.18rem;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(229, 231, 235, 0.82);
    font-size: 0.76rem;
    font-weight: 900;
}

.home-objective-hero,
.home-objective-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.1), transparent 34%),
        linear-gradient(145deg, rgba(4, 15, 22, 0.9), rgba(3, 7, 12, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 14px 34px rgba(0,0,0,0.2);
}

.home-objective-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
}

.home-objective-ring {
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.34);
    background:
        radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 58%),
        rgba(0,0,0,0.32);
    color: #fde68a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.1), inset 0 0 22px rgba(0,0,0,0.42);
}

.home-objective-eyebrow,
.home-objective-panel-head span {
    color: rgba(165, 243, 252, 0.62);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-objective-progress {
    margin-top: 0.25rem;
    color: #f8fafc;
    font-family: Cinzel, serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.home-objective-meter {
    height: 0.52rem;
    margin-top: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(2, 6, 12, 0.72);
}

.home-objective-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #06b6d4, #fbbf24);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.32);
    transition: width 0.28s ease;
}

.home-objective-grid {
    display: grid;
    flex: 1;
    min-height: 0;
    gap: 0.72rem;
}

.home-objective-panel {
    padding: 0.82rem;
}

.home-objective-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.home-objective-panel-head strong {
    min-width: max-content;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(0,0,0,0.24);
    padding: 0.25rem 0.5rem;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-objective-panel-head strong.is-available {
    border-color: rgba(251, 191, 36, 0.42);
    color: #fde68a;
}

.home-objective-panel-head strong.is-claimed {
    border-color: rgba(16, 185, 129, 0.42);
    color: #a7f3d0;
}

.home-objective-reward {
    color: rgba(229, 231, 235, 0.88);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-objective-missing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-objective-missing-pin {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.8rem;
    background: rgba(0,0,0,0.22);
    padding: 0.45rem;
}

.home-objective-missing-pin-art {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 0.7rem;
    border: 1px solid rgba(251, 191, 36, 0.16);
    background: rgba(0,0,0,0.28);
}

.home-objective-missing-pin-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.16));
}

.home-objective-missing-pin-art span {
    color: #fbbf24;
    font-size: 1.05rem;
}

.home-objective-missing-pin-name {
    overflow: hidden;
    color: #f9fafb;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-objective-missing-pin-rarity,
.home-objective-note,
.home-objective-status {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-objective-missing-pin-rarity {
    margin-top: 0.16rem;
    color: rgba(253, 186, 116, 0.72);
}

.home-objective-note {
    margin-top: 0.5rem;
}

.home-objective-select {
    min-height: 2.7rem;
    width: 100%;
    border-radius: 0.82rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background-color: rgba(2, 6, 12, 0.72);
    color: rgba(243, 244, 246, 0.94);
    color-scheme: dark;
    padding: 0 2.2rem 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    outline: none;
}

.home-objective-select:focus {
    border-color: rgba(165, 243, 252, 0.72);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12);
}

.home-objective-status {
    min-height: 0.85rem;
    margin-top: 0.45rem;
    color: rgba(148, 163, 184, 0.58);
}

.home-objective-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.home-objective-clear,
.home-objective-open {
    min-height: 2.75rem;
    border-radius: 0.85rem;
    padding: 0 0.85rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.home-objective-open {
    border: 1px solid rgba(165, 243, 252, 0.58);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(251, 191, 36, 0.16));
    color: #e0faff;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.home-objective-clear {
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: rgba(2, 6, 12, 0.28);
    color: rgba(148, 163, 184, 0.78);
}

.home-objective-page.is-empty .home-objective-panel--missing,
.home-objective-page.is-empty .home-objective-panel--reward {
    opacity: 0.78;
}

html.foxbox-mobile #view-temple > .text-center {
    margin-bottom: 0.85rem !important;
}

html.foxbox-mobile #view-temple > .text-center span {
    font-size: 0.58rem !important;
    letter-spacing: 0.28em !important;
}

html.foxbox-mobile #view-temple > .text-center h1 {
    margin-top: 0.25rem !important;
    font-size: clamp(2.15rem, 9.6vw, 3.15rem) !important;
    line-height: 0.9 !important;
}

html.foxbox-mobile #home-login-bonus-card {
    margin-bottom: 0.65rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

html.foxbox-mobile #home-login-bonus-card p:last-child {
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
}

html.foxbox-mobile #daily-entry-container {
    display: none !important;
}

.home-quick-actions {
    display: grid;
    width: min(100%, 24rem);
    max-width: 24rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.9rem auto 0;
}

.home-quick-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    height: 5.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: hidden;
    padding: 0.68rem 0.68rem 0.58rem;
    border-radius: 1.08rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
    border: 1px solid rgba(251, 191, 36, 0.34);
    background:
        linear-gradient(120deg, rgba(255,255,255,0.06), transparent 26%),
        radial-gradient(circle at 28% 12%, rgba(253, 230, 138, 0.24), transparent 38%),
        linear-gradient(150deg, rgba(74, 28, 9, 0.92), rgba(8, 9, 12, 0.95) 62%);
    color: #fde68a;
    box-shadow: 0 18px 34px rgba(0,0,0,0.24), 0 0 28px rgba(249, 115, 22, 0.12), inset 0 1px rgba(255,255,255,0.07);
}

.home-quick-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent 42%);
    opacity: 0.72;
    pointer-events: none;
}

.home-quick-card--objective {
    border-color: rgba(251, 191, 36, 0.34);
}

.home-quick-card--guide {
    border-color: rgba(34, 211, 238, 0.28);
    background:
        linear-gradient(120deg, rgba(255,255,255,0.06), transparent 26%),
        radial-gradient(circle at 28% 12%, rgba(34, 211, 238, 0.2), transparent 38%),
        linear-gradient(150deg, rgba(7, 42, 50, 0.9), rgba(8, 9, 12, 0.95) 62%);
    color: #a5f3fc;
    box-shadow: 0 18px 34px rgba(0,0,0,0.24), 0 0 24px rgba(34, 211, 238, 0.1), inset 0 1px rgba(255,255,255,0.07);
}

.home-quick-card.hidden {
    display: none !important;
}

.home-quick-card * {
    pointer-events: none;
}

.home-quick-card-visual {
    display: grid;
    width: 3.9rem;
    height: 3.9rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 1rem;
    background: radial-gradient(circle, rgba(0,0,0,0.18), rgba(0,0,0,0.46));
}

.home-quick-card-icon {
    display: block;
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.28));
}

.home-guide-icon {
    display: grid;
    place-items: center;
    color: #a5f3fc;
    font-size: 2.45rem;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.22));
}

.home-objective-icon-img {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.22));
    pointer-events: none;
}

.home-quick-card-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.home-quick-card-kicker {
    color: rgba(253, 230, 138, 0.62);
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.home-quick-card--guide .home-quick-card-kicker {
    color: rgba(165, 243, 252, 0.6);
}

.home-quick-card-label {
    font-family: Cinzel, serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.home-quick-card-badge {
    position: absolute;
    right: 0.45rem;
    top: 0.45rem;
    min-width: 1.75rem;
    min-height: 1.12rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(165, 243, 252, 0.42);
    background: rgba(3, 16, 22, 0.92);
    color: #a5f3fc;
    padding: 0 0.35rem;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.home-quick-card-badge:empty {
    display: none;
}

.guide-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1rem;
}

.guide-modal.hidden {
    display: none !important;
}

.guide-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.86);
    backdrop-filter: blur(16px);
}

.guide-modal-panel {
    position: relative;
    z-index: 1;
}

.home-objective-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.home-objective-modal.hidden {
    display: none !important;
}

.home-objective-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 9, 0.78);
    backdrop-filter: blur(14px);
}

.home-objective-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 44rem);
    max-height: min(88vh, 48rem);
    overflow: hidden;
    flex-direction: column;
    border-radius: 1.35rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background:
        radial-gradient(circle at 14% -10%, rgba(251, 191, 36, 0.12), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(7, 16, 22, 0.99), rgba(5, 7, 11, 0.99));
    box-shadow: 0 28px 80px rgba(0,0,0,0.62), inset 0 0 0 1px rgba(255,255,255,0.03);
    padding: 1rem;
}

.home-objective-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.home-objective-modal-kicker {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(165, 243, 252, 0.62);
}

.home-objective-modal-header h3 {
    margin-top: 0.1rem;
    font-family: Cinzel, serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.home-objective-modal-close {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(0,0,0,0.28);
    color: rgba(229, 231, 235, 0.82);
    font-size: 1.4rem;
    line-height: 1;
}

.home-objective-modal-panel #home-active-objective-card {
    max-width: none !important;
}

html.foxbox-mobile .home-quick-actions {
    width: min(100%, 22.5rem);
    gap: 0.58rem;
    margin-top: 0.75rem;
}

html.foxbox-mobile .home-quick-card {
    height: 5.25rem;
    border-radius: 0.95rem;
    padding: 0.58rem 0.56rem 0.52rem;
}

html.foxbox-mobile .home-quick-card-visual {
    width: 3.35rem;
    height: 3.35rem;
}

html.foxbox-mobile .home-quick-card-icon {
    width: 3.1rem;
    height: 3.1rem;
}

html.foxbox-mobile .home-guide-icon {
    font-size: 2.1rem;
}

html.foxbox-mobile .home-quick-card-kicker {
    font-size: 0.42rem;
}

html.foxbox-mobile .home-quick-card-label {
    font-size: 0.66rem;
}

html.foxbox-mobile .home-quick-card-badge {
    right: 0.35rem;
    top: 0.35rem;
    font-size: 0.48rem;
}

html.foxbox-mobile .home-objective-modal-panel {
    width: 100%;
    height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: none;
    padding: 0.78rem;
    border-radius: 1.15rem;
}

html.foxbox-mobile .home-objective-modal-header h3 {
    font-size: 1rem;
}

html.foxbox-mobile .home-objective-modal {
    align-items: stretch;
    padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.55rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

html.foxbox-mobile .home-objective-modal-subtitle {
    max-width: 15rem;
    font-size: 0.7rem;
}

html.foxbox-mobile .home-objective-page {
    overflow-y: auto;
    padding-bottom: 0.1rem;
}

html.foxbox-mobile .home-objective-hero {
    gap: 0.72rem;
    padding: 0.78rem;
}

html.foxbox-mobile .home-objective-ring {
    width: 3.85rem;
    height: 3.85rem;
    font-size: 1.05rem;
}

html.foxbox-mobile .home-objective-panel {
    padding: 0.72rem;
}

html.foxbox-mobile .home-objective-missing-grid {
    grid-template-columns: 1fr;
    gap: 0.46rem;
}

html.foxbox-mobile .home-objective-missing-pin {
    grid-template-columns: 2.15rem minmax(0, 1fr);
    padding: 0.4rem;
}

html.foxbox-mobile .home-objective-missing-pin-art {
    width: 2.15rem;
    height: 2.15rem;
}

html.foxbox-mobile .home-objective-open,
html.foxbox-mobile .home-objective-clear {
    min-height: 2.45rem;
}

@media (min-width: 768px) {
    .home-objective-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-objective-panel--missing {
        grid-row: span 3;
    }

    .home-objective-actions {
        grid-template-columns: 1.1fr 0.75fr;
    }
}

html.foxbox-mobile #daily-entry-container {
    display: none !important;
}
