body, .container, #loader { width: 100vw; height: 100svh; overflow: hidden; background-color: rgb(7,7,7); }
* { margin:0; padding:0; box-sizing:border-box; }
@font-face { font-family:"Source Code Pro"; src:url("./assets/fonts/sourcecodepro-regular.ttf") format("truetype"); }
body { font-family: "Source Code Pro", monospace; color:#fff; }
img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.container { position: relative; }

#loader { position: fixed; top: 0; left: 0; display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 1.2s ease, visibility 1.2s; pointer-events: all; }
.loader-text { font-family: "Source Code Pro", monospace; color: rgba(255,255,255,0.8); }

.desktop-loader-content { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(-50px); animation: fadeInOut 3s infinite ease-in-out; }
.cursor-svg { width: 22px; height: 22px; stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawCursor 3.5s infinite alternate ease-in-out; }
.loader-message { font-size: 13px; letter-spacing: 0.04em; font-weight: 400; }
@keyframes drawCursor { 0% { stroke-dashoffset: 100; opacity: 0.1; } 50%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fadeInOut { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.mobile-loader { display: none; }
.mobile-loader-content { display: flex; flex-direction: column; align-items: center; gap: 15px; transform: translateY(-8svh); }
.scroll-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.25em; color: #fff; opacity: 0.15; margin-bottom: 10px; padding-left: 2px; }
.ascii-grid { display: grid; grid-template-columns: repeat(7, 1.2em); grid-template-rows: repeat(5, 1.2em); gap: 4px; font-size: 18px; text-align: center; }
.ascii-grid span { opacity: 0.1; color: #fff; line-height: 1; animation-duration: 2.1s; animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: linear; }
.ascii-grid .v4 { font-size: 16px; }

@keyframes s-h1 { 0%, 5% {opacity:1} 10% {opacity:0.1} 62%, 67% {opacity:1} 71% {opacity:0.1} }
@keyframes s-h2 { 5%, 10% {opacity:1} 15% {opacity:0.1} 57%, 62% {opacity:1} 67% {opacity:0.1} }
@keyframes s-h3 { 10%, 15% {opacity:1} 20% {opacity:0.1} 52%, 57% {opacity:1} 62% {opacity:0.1} }
@keyframes s-c  { 15%, 20% {opacity:1} 25% {opacity:0.1} 47%, 52% {opacity:1} 57% {opacity:0.1} 81%, 86% {opacity:1} 91% {opacity:0.1} }
@keyframes s-h4 { 20%, 25% {opacity:1} 30% {opacity:0.1} 42%, 47% {opacity:1} 52% {opacity:0.1} }
@keyframes s-h5 { 25%, 30% {opacity:1} 35% {opacity:0.1} 37%, 42% {opacity:1} 47% {opacity:0.1} }
@keyframes s-h6 { 30%, 35% {opacity:1} 35%, 40% {opacity:1} 45% {opacity:0.1} }
@keyframes s-v1 { 66%, 71% {opacity:1} 76% {opacity:0.1} }
@keyframes s-v2 { 71%, 76% {opacity:1} 81% {opacity:0.1} }
@keyframes s-v3 { 86%, 91% {opacity:1} 96% {opacity:0.1} }
@keyframes s-v4 { 93%, 97% {opacity:1} 100% {opacity:0.1} }
.ascii-grid .h1 { animation-name: s-h1; } .ascii-grid .h2 { animation-name: s-h2; }
.ascii-grid .h3 { animation-name: s-h3; } .ascii-grid .c  { animation-name: s-c;  }
.ascii-grid .h4 { animation-name: s-h4; } .ascii-grid .h5 { animation-name: s-h5; }
.ascii-grid .h6 { animation-name: s-h6; } .ascii-grid .v1 { animation-name: s-v1; }
.ascii-grid .v2 { animation-name: s-v2; } .ascii-grid .v3 { animation-name: s-v3; }
.ascii-grid .v4 { animation-name: s-v4; }

.branding { position: absolute; top: 1.5em; left: 1.5em; z-index: 100; pointer-events: none; }
.branding h1 { font-size:14px; font-weight:500; letter-spacing:0.05em; }

.cluster-title-display { position: absolute; bottom: 2.5em; left: 50%; transform: translateX(-50%); z-index: 100; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.8); pointer-events: none; opacity: 0; transition: opacity 0.4s ease; text-transform: uppercase; white-space: nowrap; }
.cluster-title-display.visible { opacity: 1; }

.img-preview, #carousel, #about-panel { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); width: 70%; height: 90%; z-index: 20; display: flex; justify-content: center; align-items: center; }
.img-preview img { max-width: 100%; max-height: 100%; object-fit: contain; transition: filter 0.6s ease; }
.carousel-card { position: absolute; width: 100%; height: 100%; transform-origin: center; cursor: pointer; }
.carousel-card img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.3); transition: filter 0.4s ease; }
.carousel-card.active img { filter: brightness(1); }

#about-panel { display: none; z-index: 25; pointer-events: none; align-items: center; justify-content: flex-start; }
.about-inner { pointer-events: auto; display: flex; flex-direction: row; gap: 4em; max-width: 800px; text-align: left; padding: 2em; align-items: flex-start; }
.about-name { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.2em; flex-shrink: 0; padding-top: 5px; writing-mode: vertical-lr; transform: rotate(180deg); }
.about-content { display: flex; flex-direction: column; gap: 1.5em; }
.about-body { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.55); }
.about-links { display: flex; gap: 20px; margin-top: 10px; }
.about-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4px; transition: color 0.3s; }
.about-links a:hover { color: #fff; border-color: #fff; }

.minimap { position: absolute; top: 50%; right: 4em; transform: translateY(-50%); width: 80px; height: 55px; z-index: 999; pointer-events: auto; }
.indicator { position: absolute; left: 3px; width: 95%; height: 55px; z-index: 62; backdrop-filter: blur(5px); border-radius: 6px; pointer-events: none; border: 1px solid rgba(255,255,255,0.2); }
.items { position: relative; display: flex; flex-direction: column; pointer-events: auto; }
.item { width: 100%; height: 60px; padding: 5px; cursor: pointer; flex-shrink: 0; position: relative; }
.item--about { display: flex; align-items: center; justify-content: center; }
.item-about-label { font-size: 9px; color: rgba(255,255,255,0.35); text-transform: uppercase; }

/* BLURRED CLUSTER MINIMAP STYLE */
/* BLURRED CLUSTER MINIMAP STYLE - STATIC BLUR */
.cluster-thumb-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cluster-thumb-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Static strong blur - No hover effect */
    filter: blur(4px) brightness(0.5);
    transform: scale(1.15); /* Slightly larger scale to hide blur edges */
}

.cluster-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cluster-thumb-label {
    font-size: 7.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* Remove old grid styles if they exist */
.minimap-grid-container, .minimap-grid, .minimap-grid-overlay { display: none; }



.m-grid-title {
    color: rgba(255,255,255,0.95); font-size: 7.5px; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 0.05em; text-align: center; 
    line-height: 1.2; padding: 0 4px; word-wrap: break-word;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.info-display-area { position: absolute; top: 180px; left: 2.5em; z-index: 80; }

.info-indicator-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.5s;
}
.info-indicator-icon.visible { opacity: 1; }

.image-info-overlay {
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4);
    padding: 12px 18px;
    border-radius: 5px;
    max-width: 450px;
    max-height: 50vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.image-info-overlay.visible { opacity: 1; pointer-events: auto; }

/* Minimalist Scrollbar */
.image-info-overlay::-webkit-scrollbar { width: 3px; }
.image-info-overlay::-webkit-scrollbar-track { background: transparent; }
.image-info-overlay::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.image-info-overlay::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.info-title { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.65); margin-bottom: 6px; }
.info-text { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }

.metadata-display { position: absolute; bottom: 2.5em; left: 2.5em; z-index: 80; color: rgba(255, 255, 255, 0.95); font-size: 11px; opacity: 0; display: flex; flex-direction: column; gap: 4px; transition: opacity 0.5s; pointer-events:none;}
.metadata-display.visible { opacity: 1; }

#side-index { position: absolute; top: 240px; left: 2.5em; display: none; flex-direction: column; justify-content: center; gap: 4px; z-index: 70; pointer-events: none; }
#side-index.visible { display: flex; }
.side-index-item { font-size: 9px; color: rgba(255, 255, 255, 0.2); letter-spacing: 0.1em; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.side-index-item.active { font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.side-index-dot { font-size: 9px; color: rgba(255, 255, 255, 0.15); letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .desktop-loader { display: none; }
  .mobile-loader { display: block; }
  
  .cluster-title-display { bottom: 19svh; font-size: 10px; max-width: 80%; white-space: normal; line-height: 1.4; left: 1.5em; transform: none; white-space: nowrap; max-width: 90%;}
  
  .img-preview, #carousel, #about-panel { width: 95vw; height: 70svh; top: 40svh; }
  .minimap { top: auto; right: auto; bottom: 7svh; left: 50%; transform: translateX(-50%); width: 65px; height: 85px; }
  .indicator { left: 0; top: 0; width: 65px; height: 100%; }
  .items { flex-direction: row; width: max-content; height: 100%; }
  .item { width: 65px; height: 100%; padding: 4px; }
  .metadata-display { bottom: 22svh; left: 1.5em; } 
  .info-display-area { top: 8svh; left: 1.5em; }
  #side-index { top: 14svh; left: 1.5em; }
  .about-inner { flex-direction: column; padding: 1.5em; max-width: 100%; max-height: 60svh; overflow-y: auto; justify-content: flex-start; gap: 1.5em; }
  .about-name { font-size: 11px; writing-mode: horizontal-tb; transform: none; padding-top: 0; margin-bottom: -0.5em; }
}