* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
    background: #050505;
}

body {
    height: 100%;
    background: linear-gradient(
        135deg,
        #050505 0%,
        #0a0a0a 50%,
        #050505 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.smoke-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: fixed;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60%;
    background: radial-gradient(
        ellipse at center bottom,
        rgba(220, 20, 20, 0.3) 0%,
        rgba(180, 20, 20, 0.18) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 4s ease-in-out infinite;
}

.ambient-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center bottom,
        rgba(220, 20, 20, 0.45) 0%,
        rgba(180, 20, 20, 0.28) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.logo-hover .ambient-glow::after {
    opacity: 1;
}

@keyframes ambientPulse {
    0%,
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.1);
    }
}

.ambient-steam {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.steam-particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 180, 180, 0.7) 20%,
        rgba(220, 20, 20, 0.5) 50%,
        transparent 80%
    );
    filter: blur(1px);
    animation: steamFloat linear infinite;
}

.steam-particle.p1 {
    left: 10%;
    width: 8px;
    height: 8px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.steam-particle.p2 {
    left: 25%;
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.steam-particle.p3 {
    left: 40%;
    width: 6px;
    height: 6px;
    animation-duration: 7s;
    animation-delay: 2s;
}

.steam-particle.p4 {
    left: 55%;
    width: 10px;
    height: 10px;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.steam-particle.p5 {
    left: 70%;
    width: 7px;
    height: 7px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.steam-particle.p6 {
    left: 85%;
    width: 9px;
    height: 9px;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.steam-particle.p7 {
    left: 33%;
    width: 5px;
    height: 5px;
    animation-duration: 6s;
    animation-delay: 4s;
}

.steam-particle.p8 {
    left: 78%;
    width: 11px;
    height: 11px;
    animation-duration: 12s;
    animation-delay: 2.5s;
}

@keyframes steamFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
        transform: translateY(-10vh) translateX(15px) scale(1.1);
    }
    30% {
        transform: translateY(-30vh) translateX(-10px) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50vh) translateX(25px) scale(1.2);
    }
    70% {
        transform: translateY(-70vh) translateX(-15px) scale(1.1);
    }
    90% {
        opacity: 0.4;
        transform: translateY(-90vh) translateX(10px) scale(0.9);
    }
    100% {
        transform: translateY(-110vh) translateX(-5px) scale(0.8);
        opacity: 0;
    }
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 2;
}

.logo-link {
    position: relative;
    z-index: 2;
    display: block;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.logo {
    width: 80vw;
    max-width: 500px;
    min-width: 280px;
    height: auto;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 20, 20, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 25px rgba(220, 20, 20, 0.7))
            drop-shadow(0 0 50px rgba(255, 60, 60, 0.4));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 20, 20, 0.4));
    }
}

.logo-link:hover .logo {
    animation: pulse 1s ease-in-out infinite;
}

.interactive-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.steam-particle.interactive {
    pointer-events: auto;
    padding: 9px;
    margin: -10px;
    cursor: pointer;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 195, 165, 0.7) 20%,
        rgba(235, 45, 15, 0.5) 50%,
        transparent 70%
    );
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.steam-particle.supernova {
    position: fixed;
    bottom: auto;
    pointer-events: none;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    animation: supernova 0.8s ease-out forwards;
}

@keyframes supernova {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(1px) brightness(1);
        box-shadow: 0 0 8px 3px rgba(255, 200, 170, 0.7);
    }
    30% {
        transform: scale(5);
        opacity: 1;
        filter: blur(0px) brightness(2.5);
        box-shadow: 0 0 30px 12px rgba(255, 225, 200, 0.9),
            0 0 60px 24px rgba(255, 100, 50, 0.5);
    }
    100% {
        transform: scale(12);
        opacity: 0;
        filter: blur(6px) brightness(3);
        box-shadow: 0 0 60px 30px rgba(255, 255, 255, 0);
    }
}

.secret-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.27);
    z-index: 100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.secret-menu.visible {
    opacity: 1;
    pointer-events: auto;
}

.secret-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(220, 20, 20, 0.15);
    flex-shrink: 0;
}

.secret-menu-title {
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.secret-menu-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.secret-menu-close:hover {
    border-color: rgba(220, 20, 20, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.secret-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

.secret-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.secret-menu-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 20, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.secret-menu-item:hover {
    background: rgba(220, 20, 20, 0.06);
    border-color: rgba(220, 20, 20, 0.3);
}

.secret-menu-item-label {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secret-menu-body::-webkit-scrollbar {
    display: none;
}

.secret-menu-body {
    scrollbar-width: none;
}

.steam-particle.orbiting {
    position: fixed;
    bottom: auto;
    width: 6px;
    height: 6px;
    animation: none;
    filter: blur(1px);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.star-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.27);
    z-index: 100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.star-menu.visible {
    opacity: 1;
    pointer-events: auto;
}

.star-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(220, 20, 20, 0.15);
    flex-shrink: 0;
}

.star-menu-title {
    font-family: sans-serif;
    font-size: 22px;
    color: rgba(220, 20, 20, 0.6);
}

.star-menu-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.star-menu-close:hover {
    border-color: rgba(220, 20, 20, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.star-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid rgba(220, 20, 20, 0.1);
    flex-shrink: 0;
}

.star-menu-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.3);
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-menu-tab:hover {
    color: rgba(255, 255, 255, 0.6);
}

.star-menu-tab.active {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(220, 20, 20, 0.5);
}

.star-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

.star-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.star-menu-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 20, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.star-menu-item:hover {
    background: rgba(220, 20, 20, 0.06);
    border-color: rgba(220, 20, 20, 0.3);
}

.star-menu-item-label {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.star-menu-body::-webkit-scrollbar {
    display: none;
}

.star-menu-body {
    scrollbar-width: none;
}

.menu-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.menu-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(220, 20, 20, 0.25);
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.menu-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.12);
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.viewer.visible {
    opacity: 1;
    pointer-events: auto;
}

.viewer-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    transform-origin: center center;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.viewer-image.zoomed {
    cursor: grab;
}

.viewer-image.dragging {
    cursor: grabbing;
    transition: none;
}

.viewer-image.no-transition {
    transition: none;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 201;
}

.viewer-close:hover {
    border-color: rgba(220, 20, 20, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
}

.viewer-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4px 8px;
    z-index: 202;
}

.viewer-tool-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.viewer-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.viewer-tool-reset {
    font-size: 20px;
}

.viewer-zoom-label {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    min-width: 48px;
    text-align: center;
    letter-spacing: 1px;
    user-select: none;
}

.ripple-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.click-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    border: none;
    background: radial-gradient(
        circle,
        transparent 50%,
        rgba(220, 20, 20, 0.25) 62%,
        rgba(255, 180, 180, 0.12) 70%,
        rgba(220, 20, 20, 0.08) 80%,
        transparent 90%
    );
    filter: blur(2px);
    animation: clickRipple 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.login-zone {
    position: fixed;
    left: 0;
    width: 100%;
    bottom: 0;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.login-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    width: 12px;
    height: 12px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 195, 165, 0.7) 20%,
        rgba(235, 45, 15, 0.5) 50%,
        transparent 80%
    );
    filter: blur(1px);
    z-index: 50;
}

.pattern-canvas {
    position: fixed;
    inset: 0;
    z-index: 52;
    pointer-events: auto;
}

.token-item {
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.token-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.token-item-code {
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.token-item-name {
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-item-badge {
    font-family: sans-serif;
    font-size: 8px;
    font-weight: 300;
    color: rgba(220, 20, 20, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.token-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.token-detail-back {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 300;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.token-detail-back:hover {
    border-color: rgba(220, 20, 20, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.token-detail-image-wrap {
    display: flex;
    justify-content: center;
}

.token-detail-image {
    max-width: 240px;
    max-height: 240px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.token-detail-image:hover {
    transform: scale(1.03);
}

.token-detail-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.token-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.token-detail-label {
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: rgba(220, 20, 20, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.token-detail-value {
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    word-break: break-word;
}

.token-detail-issuer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.token-category-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 14px;
}

.token-category-banner {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 20, 0.1);
    transition: border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.token-category-banner:hover {
    border-color: rgba(220, 20, 20, 0.35);
}

.token-category-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.token-category-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.token-category-banner-label {
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.token-category-banner-count {
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

.token-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(220, 20, 20, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 4px;
}

.token-nav-title {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.token-nav-back {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.token-nav-back:hover {
    border-color: rgba(220, 20, 20, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.token-collection-item {
    position: relative;
}

.token-collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.token-collection-name {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.token-collection-count {
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.smoke-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    filter: blur(6px);
}

.comic-page-item {
    position: relative;
}

.comic-page-number {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 202;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.3s ease,
        color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.viewer-nav-visible {
    opacity: 1;
    pointer-events: auto;
}

.viewer-nav:hover {
    border-color: rgba(220, 20, 20, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
}

.viewer-nav-prev {
    left: 16px;
}

.viewer-nav-next {
    right: 16px;
}

.viewer-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    z-index: 202;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    user-select: none;
}

.viewer-counter-visible {
    opacity: 1;
}

@media (max-width: 600px) {
    .viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .viewer-nav-prev {
        left: 8px;
    }

    .viewer-nav-next {
        right: 8px;
    }

    .viewer-counter {
        font-size: 11px;
        top: 20px;
    }
}