

h1, h2, h3, h4 {
    letter-spacing: 1px;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

h1 {
    font-family:    var(--f-display);
    font-size:      clamp(1.0rem, 2.5vw, 1.3rem);
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color:          #a8cfe0;
    text-shadow:
        0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

h1 label {
    display: block;
    margin-top: 10px;
}

h2 {
    font-family:      var(--f-display);
    font-size:        clamp(1.1rem, 3vw, 1.6rem);
    font-weight:      700;
    text-transform:   uppercase;
    letter-spacing:   4px;
    color:            var(--c-text-hi, #e0f4ff);
    display:          flex;
    align-items:      center;
    gap:              18px;
    width:            100%;
    margin:           var(--gap-lg) 0;
    padding:          0;
    text-shadow:
        0 0 18px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.55),
        0 0  6px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.25);
}

h2::before,
h2::after {
    content:    '';
    flex:       1;
    height:     1px;
}
h2::before { background: var(--line-cyan); }
h2::after  { background: var(--line-cyan-rev); }

h3 {
    font-family:    var(--f-display);
    font-size:      clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color:          var(--c-cyan);
    text-align:     center;
    margin-bottom:  1em;
    text-shadow:
        0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.40),
        0 0  4px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.15);
    padding-bottom: 6px;
    border-bottom:  1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.25);
    width:          fit-content;
    margin-left:    auto;
    margin-right:   auto;
}

h4 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 5vw, 3rem);
    color: #b0e0ff;
    text-shadow: 0 0 12px rgba(160, 208, 239, 0.6);
    margin-bottom: var(--gap-lg);
    letter-spacing: 3px;
}

p {
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 1em;
    text-shadow: 1px 0 5px #000;
    text-align: left;   
    color: var(--c-text);
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.classic-link {
    display: inline;
    color: burlywood;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--trans-fast);
}
.classic-link:hover { color: #e8c98a; }

.maincontainer {
    flex-grow: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    padding: 0 20px;
    width: 100%;
}

.texcontainer {
    display: block;
    padding: 0 20px;
    background-color: rgba(6, 16, 26, 0.82);
    width: 100%;
    max-width: 1200px;
    margin: 25px auto 40px;
    border-radius: var(--r-lg);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.7),
        inset 0 0 60px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--c-border-cyan);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.texcontainer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6) 30%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.9) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6) 70%,
        transparent
    );
    pointer-events: none;
}

.Title {
    background-color: rgba(6, 16, 26, 0.90);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px 10px 25px 25px;
    text-align: center;
    box-shadow:
        0 0 24px rgba(0, 0, 0, 0.7),
        0 0 0 1px var(--c-border-cyan);
    border: 1px solid var(--c-border-cyan);
    position: relative;
    overflow: hidden;
}

.Title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.4) 40%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.7) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.4) 60%,
        transparent
    );
    pointer-events: none;
}

.cardText, .transpcardText {
    font-family: var(--f-body);
    font-size: 17px;
    color: var(--c-text);
    border-radius: var(--r-md);
    padding: 15px;
    overflow: hidden;
    transition: var(--trans-slow);
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.cardText {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(4, 12, 22, 0.72);
    border: 1px solid var(--c-border-cyan);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.02);
}

.cardText::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.45) 40%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.7)  50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.45) 60%,
        transparent
    );
    pointer-events: none;
    transition: var(--trans);
}

.cardText:hover {
    background-color: rgba(0, 22, 38, 0.85);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.50);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.10);
}

.cardText:hover::before {
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.65) 40%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.95)  50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.65) 60%,
        transparent
    );
}

.transpcardText {
    background-color: rgba(0, 0, 0, 0.15);
    padding-left: 40px;
    padding-right: 40px;
    box-shadow: 0 0 18px rgba(0, 0, 10, 0.65);
}

.cardPic {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--r-md);
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    height: 400px;
    margin-top: var(--gap-lg);
    border: 1px solid var(--c-border-cyan);
    box-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 8px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.08);
}

.collcard {
    border-radius: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1800px;
    background-color: rgba(4, 12, 22, 0.72);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--c-border-cyan);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden; 
}

.collcard::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.4) 30%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.75) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.4) 70%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
    transition: var(--trans);
}

.collcard:hover {
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--c-border-cyan), 0 0 16px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.08);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.45);
}

.collcard:hover::before {
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6) 30%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 1.0) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6) 70%,
        transparent
    );
}

.collcard-header {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 20px;
    background-color: rgba(0, 12, 22, 0.55);
    cursor: pointer;
    transition: background-color 0.25s ease;
    border-bottom: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.12);
}
.collcard-header:hover { background-color: rgba(0, 18, 32, 0.75); }

.collcard-img {
    width: 80px;
    height: 80px;
    border-radius: var(--r-sm);
    margin-right: 20px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.25), 0 0 0 1px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
    flex-shrink: 0;
}

.collcard-title {
    font-size: 22px;
    color: #ddf0fa;
    font-family: var(--f-serif);
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    text-shadow: 0 0 10px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
}

.collcard-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: rgba(6, 16, 28, 0.80);
    color: var(--c-text);
    font-family: var(--f-body);
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.collcard-content p { margin-top: 20px; }
.collcard-content.active,
.collcard-content:target,
.collcard-content.open {
    max-height: 1000px;
    padding: 0 20px;
}

#welcomeCard {
    background-image: url(/img/menu.webp);
    width: 100%;
    max-width: 1000px;
    min-height: 400px;
    height: auto;
    margin: 70px auto 50px;
    background-blend-mode: color;
    background-color: rgba(0, 0, 0, 0.30);
    border: 1px solid var(--c-border-cyan);
    text-shadow: 1px 0 5px #000;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6), 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.08);
}

.link-bubble,
.link-bubble2 {
    width: 100%;
    max-width: 900px;
    height: 300px;
    margin: 50px auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--r-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid var(--c-border-cyan);
}
.link-bubble:hover,
.link-bubble2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.12);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.45);
}

.link-bubble::before,
.link-bubble2::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.50) 40%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.80) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.50) 60%,
        transparent
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.link-bubble:hover::before,
.link-bubble2:hover::before { opacity: 1; }

.bubble-title,
.bubble-title2 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(0, 8, 18, 0.72);
    color: #e8f6ff;
    font-family: var(--f-display);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom-left-radius: var(--r-md);
    border-bottom-right-radius: var(--r-md);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.18);
    text-shadow: 0 0 10px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.30);
}

#error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 4, 4, 0.92);
    color: #ff6b6b;
    padding: 20px 30px;
    border: 1px solid rgba(var(--c-error-rgb, 231, 76, 60), 0.6);
    border-radius: var(--r-sm);
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(var(--c-error-rgb, 231, 76, 60), 0.25);
    font-family: var(--f-display);
    font-size: 0.9em;
    letter-spacing: 1px;
}

.admin-controls {
    margin-top: 10px;
    padding: 5px;
    border: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
    background-color: rgba(0,12,22,0.7);
    color: var(--c-text);
    width: 100%;
    flex-shrink: 0;
    border-radius: var(--r-sm);
}

#ship-info {
    min-height: 400px;
    padding: 20px;
    margin-top: 30px;
    background: rgba(4, 14, 26, 0.90);
    border-radius: var(--r-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.02);
    color: var(--c-text);
    font-size: 1rem;
    border: 1px solid var(--c-border-cyan);
    position: relative;
    overflow: hidden;
}

#ship-info::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5) 40%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.8) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5) 60%,
        transparent
    );
    pointer-events: none;
}

#ship-info.show {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}
#ship-info h2 {
    font-size: 24px;
    color: var(--c-cyan);
    margin-bottom: 15px;
}
#ship-info p { font-size: 16px; margin-bottom: 10px; }
#ship-info img {
    max-width: 200px;
    margin-bottom: 10px;
    border-radius: var(--r-sm);
    box-shadow: 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.25), 0 0 0 1px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.15);
}
#ship-info .highlight { color: var(--c-cyan); font-weight: 700; text-shadow: 0 0 8px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.4); }

.ship-select {
    max-width: 300px;
    margin: 30px auto 20px;
    text-align: center;
}
.ship-select select {
    width: 100%;
    height: 45px;
    border-radius: var(--r-sm);
    background-color: rgba(4, 14, 26, 0.90);
    color: var(--c-text);
    font-family: var(--f-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 1px solid var(--c-border-cyan);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    appearance: none;
    transition: var(--trans-fast);
}
.ship-select select:hover {
    background-color: rgba(0, 22, 38, 0.95);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5);
    box-shadow: 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.12);
}
.ship-select select:focus {
    box-shadow: 0 0 0 2px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.35), 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.15);
    outline: none;
    border-color: var(--c-cyan);
}

.responsive-stack {
    display: flex;
    flex-direction: row;
    gap: var(--gap-md);
    align-items: center;
    flex-wrap: nowrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px var(--c-glow), 0 0 0 1px var(--c-border-cyan); }
    50%       { box-shadow: 0 0 22px var(--c-glow-strong), 0 0 0 1px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.45); }
}

.lf-zoomable {
    cursor: zoom-in;
    position: relative;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--c-border-cyan);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.lf-zoomable::after {
    content: '🔍';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

.lf-zoomable:hover {
    opacity: 0.88;
    box-shadow: 0 0 0 1px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5), 0 0 16px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.12);
}

.lf-zoomable:hover::after {
    opacity: 1;
}

#lf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 8, 14, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#lf-lightbox.open {
    display: flex;
    animation: fadeIn 0.22s ease;
}

#lf-lightbox::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5) 30%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.9) 50%,
        rgba(var(--c-cyan-rgb, 0, 173, 238), 0.5) 70%,
        transparent
    );
    pointer-events: none;
}

#lf-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border-cyan);
    box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 20px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.10);
    pointer-events: none;
    user-select: none;
}

#lf-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(4,14,26,0.85);
    border: 1px solid var(--c-border-cyan);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-cyan);
    font-size: 18px;
    line-height: 1;
    transition: var(--trans-fast);
    z-index: 1;
}

#lf-lightbox-close:hover {
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.15);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.55);
    box-shadow: 0 0 10px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
}