/* General styles */
@font-face {
    font-family: 'Coluna Rounded';
    src: url('fonts/Coluna_Rounded.otf');
}

@font-face {
    font-family: 'Discord';
    src: url('fonts/gg sans bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Discord', sans-serif;
    color: #ffffff;
    min-height: 100%;
    background: #050505;
}

body {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 5rem;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

body.overlay-active .site-shell,
body.overlay-active .control-panel-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

body.overlay-active .site-shell {
    transition-delay: 0s;
}

body.overlay-active {
    overflow-y: hidden;
}

/* Landing overlay */
.landing-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.08), transparent 45%),
                #060606;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 9999;
}

.landing-overlay.is-exiting {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.landing-overlay__background,
.landing-overlay__scrim {
    position: absolute;
    inset: 0;
}

.landing-overlay__background {
    background: url('images/bg2.png') center / cover no-repeat;
    filter: saturate(1.15) brightness(0.55);
    transform: scale(1.05);
    animation: slowPan 28s ease-in-out infinite alternate;
}

.landing-overlay__scrim {
    background: linear-gradient(145deg, rgba(6, 6, 6, 0.85), rgba(6, 6, 6, 0.6));
    backdrop-filter: blur(4px);
}

.landing-overlay__content {
    position: relative;
    z-index: 1;
    max-width: min(620px, 90%);
    padding: 3.5rem clamp(2rem, 4vw, 3rem);
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(12, 12, 12, 0.8);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.landing-overlay__crest {
    width: clamp(110px, 20vw, 140px);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 16px rgba(255, 204, 0, 0.4));
    animation: fadeIn 1.2s ease-out;
}

.landing-overlay__kicker {
    font-family: 'Discord', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.75rem;
}

.landing-overlay__title {
    font-family: 'Coluna Rounded', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0 0 1rem;
    line-height: 1.1;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.landing-overlay__subtitle {
    font-size: clamp(1.05rem, 2.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1.75rem;
    max-width: 32ch;
    line-height: 1.6;
}

.landing-overlay__intel {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.landing-overlay__intel li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.landing-overlay__intel li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffcc00;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.75);
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.landing-overlay__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 204, 0, 0.2);
    min-width: clamp(240px, 60%, 320px);
}

.landing-overlay__status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.9);
    animation: pulseGlow 1.4s ease-in-out infinite;
}

.landing-overlay__status-text {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-overlay__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.95rem 2.85rem;
    font-family: 'Discord', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffcc00, #f1b800);
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-overlay__button::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.6), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.landing-overlay__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 204, 0, 0.5);
}

.landing-overlay__button:hover::before {
    opacity: 1;
}

.landing-overlay__button:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.65);
    outline-offset: 4px;
}

.landing-overlay__button-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.landing-overlay__button:hover .landing-overlay__button-icon {
    transform: translateX(4px);
}

.landing-overlay__button.is-loading {
    cursor: wait;
    pointer-events: none;
}

.landing-overlay__button.is-loading::after {
    content: '';
    position: absolute;
    right: 1.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(26, 26, 26, 0.4);
    border-top-color: #1a1a1a;
    animation: spin 0.75s linear infinite;
}

.landing-overlay__button.is-loading .landing-overlay__button-icon {
    opacity: 0;
}

.landing-overlay__button:disabled {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.6), rgba(241, 184, 0, 0.6));
    box-shadow: none;
}

.landing-overlay__hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slowPan {
    from {
        transform: scale(1.05) translate3d(-8px, -8px, 0);
    }
    to {
        transform: scale(1.08) translate3d(8px, 8px, 0);
    }
}

/* Landing overlay */
.landing-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.08), transparent 45%),
                #060606;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 9999;
}

.landing-overlay.is-exiting {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.landing-overlay__background,
.landing-overlay__scrim {
    position: absolute;
    inset: 0;
}

.landing-overlay__background {
    background: url('images/bg2.png') center / cover no-repeat;
    filter: saturate(1.15) brightness(0.55);
    transform: scale(1.05);
    animation: slowPan 28s ease-in-out infinite alternate;
}

.landing-overlay__scrim {
    background: linear-gradient(145deg, rgba(6, 6, 6, 0.85), rgba(6, 6, 6, 0.6));
    backdrop-filter: blur(4px);
}

.landing-overlay__content {
    position: relative;
    z-index: 1;
    max-width: min(620px, 90%);
    padding: 3.5rem clamp(2rem, 4vw, 3rem);
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(12, 12, 12, 0.8);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.landing-overlay__crest {
    width: clamp(110px, 20vw, 140px);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 16px rgba(255, 204, 0, 0.4));
    animation: fadeIn 1.2s ease-out;
}

.landing-overlay__kicker {
    font-family: 'Discord', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.75rem;
}

.landing-overlay__title {
    font-family: 'Coluna Rounded', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0 0 1rem;
    line-height: 1.1;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.landing-overlay__subtitle {
    font-size: clamp(1.05rem, 2.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1.75rem;
    max-width: 32ch;
    line-height: 1.6;
}

.landing-overlay__intel {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.landing-overlay__intel li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.landing-overlay__intel li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffcc00;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.75);
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.landing-overlay__status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.landing-overlay__status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.9);
    animation: pulseGlow 1.4s ease-in-out infinite;
}

.landing-overlay__status-text {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-overlay__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.95rem 2.85rem;
    font-family: 'Discord', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffcc00, #f1b800);
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-overlay__button::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.6), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.landing-overlay__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 204, 0, 0.5);
}

.landing-overlay__button:hover::before {
    opacity: 1;
}

.landing-overlay__button:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.65);
    outline-offset: 4px;
}

.landing-overlay__button-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.landing-overlay__button:hover .landing-overlay__button-icon {
    transform: translateX(4px);
}

.landing-overlay__button.is-loading {
    cursor: wait;
    pointer-events: none;
}

.landing-overlay__button.is-loading::after {
    content: '';
    position: absolute;
    right: 1.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(26, 26, 26, 0.4);
    border-top-color: #1a1a1a;
    animation: spin 0.75s linear infinite;
}

.landing-overlay__button.is-loading .landing-overlay__button-icon {
    opacity: 0;
}

.landing-overlay__button:disabled {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.6), rgba(241, 184, 0, 0.6));
    box-shadow: none;
}

.landing-overlay__hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slowPan {
    from {
        transform: scale(1.05) translate3d(-8px, -8px, 0);
    }
    to {
        transform: scale(1.08) translate3d(8px, 8px, 0);
    }
}
.soldiers-layer {
    position: fixed;
    top: 80px; /* Aligns the top of the image with the main content */
    left: 0;
    width: 100%;
    height: calc(100% - 80px); /* Adjust height to fit below the header */
    background: url('images/soldiers.png') no-repeat center top;
    background-size: cover;
    opacity: 0.85; /* Slight transparency for the soldiers */
    z-index: 2; /* Positioned above hex layer and below content */
    pointer-events: none; /* Prevent interaction issues with the pattern */
}
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    z-index: 0;
}

.video-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: hidden;
}

.video-foreground::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 204, 0, 0.2), transparent 40%),
                linear-gradient(160deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.video-foreground #player {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-foreground #player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    position: relative;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.video-foreground.is-paused::after {
    opacity: 1;
}

.video-foreground.is-paused #player iframe {
    opacity: 0;
}

.hex-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hex.png?v=2024-06-09') repeat;
    background-size: 2%;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.site-header {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem);
    gap: 1rem;
    border-radius: 18px;
    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(255, 204, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.battle-ticker {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.75rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    margin-top: clamp(1.25rem, 3vw, 2rem);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(24, 87, 62, 0.9), rgba(16, 62, 45, 0.88));
    border: 2px solid rgba(79, 214, 169, 0.55);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.04em;
    color: #b8fce2;
}

.battle-ticker__pulse {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #82fcd9;
    box-shadow: 0 0 18px rgba(130, 252, 217, 0.9);
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.battle-ticker__mask {
    position: relative;
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.battle-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    width: max-content;
    animation: tickerScroll 96s linear infinite;
    will-change: transform;
}

.battle-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    white-space: nowrap;
    letter-spacing: 0.08em;
    color: rgba(184, 252, 226, 0.88);
    text-transform: uppercase;
}

.battle-ticker__label {
    font-weight: 700;
    color: rgba(130, 252, 217, 0.86);
    letter-spacing: 0.24em;
    text-shadow: 0 0 10px rgba(130, 252, 217, 0.35);
}

.battle-ticker__text {
    font-weight: 500;
    color: rgba(184, 252, 226, 0.88);
}

.battle-ticker:hover .battle-ticker__track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .battle-ticker__track {
        animation: none;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.logo {
    height: clamp(48px, 8vw, 72px);
    width: auto;
    filter: drop-shadow(0 0 14px rgba(255, 204, 0, 0.4));
}

.header-title {
    font-family: 'Coluna Rounded', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.hamburger-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 15, 0.75);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.35);
}

.mobile-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 16px;
    min-width: 180px;
    padding: 0.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    z-index: 12;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current="page"] {
    background: rgba(88, 101, 242, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.content {
    text-align: center;
    padding: 20px;
    flex: 1;
    overflow-y: scroll;
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    font-size: 1.5rem; /* Increased font size for better readability */
    line-height: 1.8;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
}

.hero__primary {
    background: rgba(8, 8, 8, 0.8);
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(255, 204, 0, 0.2);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.45em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
}

.hero__title {
    font-family: 'Coluna Rounded', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin: 0 0 1rem;
}

.hero__lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.6rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, #ffcc00, #f0b100);
    color: #1a1a1a;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 14px 35px rgba(255, 204, 0, 0.35);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(255, 204, 0, 0.45);
}

.cta-button--ghost {
    background: rgba(255, 204, 0, 0.12);
    color: #ffcc00;
    box-shadow: none;
    border: 1px solid rgba(255, 204, 0, 0.35);
}

.cta-button--ghost:hover {
    background: rgba(255, 204, 0, 0.18);
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.25);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(88, 101, 242, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.discord-button:visited {
    color: #ffffff;
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(88, 101, 242, 0.6);
    filter: brightness(1.05);
}

.discord-button:focus-visible {
    outline: 3px solid rgba(88, 101, 242, 0.75);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .discord-button {
        transition: none;
        box-shadow: 0 12px 28px rgba(88, 101, 242, 0.4);
    }
}

.hero__intel {
    display: grid;
    gap: 1.1rem;
}

.intel-card {
    background: rgba(10, 10, 10, 0.78);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 204, 0, 0.16);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.intel-card h3 {
	text-transform: uppercase;
    margin-top: 0;    
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.intel-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.content-stack {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.content-panel {
    background: rgba(8, 8, 8, 0.78);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 204, 0, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.content-panel h2,
.content-panel h3 {
    font-family: 'Coluna Rounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.content-panel h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.content-panel h3 {
	text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
}

.content-panel p,
.content-panel li {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 1rem;
}

.content-panel a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
}

.content-panel a:hover {
    color: #ffe480;
}

.content-panel .discord-button,
.content-panel .discord-button:visited {
    color: #ffffff;
}

.content-panel .discord-button:hover,
.content-panel .discord-button:focus-visible {
    color: #ffffff;
}

.content-panel ul {
    margin: 0;
    padding-left: 1.2rem;
}

.content-panel ul li + li {
    margin-top: 0.65rem;
}

.badge-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.badge-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.12);
}

.badge-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.7);
}

.subpage .hero__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.status-card {
    background: rgba(6, 6, 6, 0.78);
    border-radius: 22px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(255, 204, 0, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.status-card h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin: 0 0 0.85rem;
    color: rgba(255, 204, 0, 0.9);
}

.status-card p,
.status-card li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.status-card ul {
    padding-left: 1.1rem;
    margin: 0;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
.content {
    scrollbar-width: none;
}

/* Hide scrollbar for Internet Explorer and Edge */
.content {
    -ms-overflow-style: none;
}

.button-container {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    padding: 0 20px;
    box-sizing: border-box;
}

.enlist-button {
    font-size: 1.5rem;
    background-color: #ffcc00;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.4s ease, transform 0.2s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.enlist-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.6s ease;
}

.enlist-button:hover::before {
    left: 100%;
}

.enlist-button:hover {
    background: linear-gradient(45deg, #ffd700, #e6b800);
    transform: translateY(-5px);
    box-shadow: 0px 0px 30px rgba(255, 204, 0, 1);
}

/* Music Control and Video Control Parent Container */
.control-panel-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.control-panel-container.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Music Control Container */
.music-control-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.music-control-stack {
    display: flex;
    align-items: center;
    gap: 10px;
}

.codec-tour-button {
    position: fixed;
    bottom: clamp(1.25rem, 3vw, 2rem);
    left: clamp(1.25rem, 3vw, 2rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: linear-gradient(135deg, rgba(15, 66, 48, 0.95), rgba(9, 43, 31, 0.95));
    color: #82fcd9;
    border: 2px solid rgba(130, 252, 217, 0.65);
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(130, 252, 217, 0.3);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    z-index: 15000;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 12px, 0);
    box-sizing: border-box;
    touch-action: manipulation;
}

.codec-tour-button.codec-tour-button--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
}

.codec-tour-button.is-revealed {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.codec-tour-button:hover,
.codec-tour-button:focus-visible {
    transform: translate3d(0, 0, 0) scale(1.08);
    border-color: rgba(130, 252, 217, 0.85);
    box-shadow: 0 0 24px rgba(130, 252, 217, 0.45);
    outline: none;
}

.codec-tour-button:active {
    transform: translate3d(0, 2px, 0) scale(0.98);
}

.codec-tour-button.is-active {
    box-shadow: 0 0 0 2px rgba(130, 252, 217, 0.35), 0 0 28px rgba(130, 252, 217, 0.55);
}

.codec-tour-button__icon {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(130, 252, 217, 0.45));
}

body.overlay-active .codec-tour-button {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
}

body.codec-tour-active .codec-tour-button {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
}

.control-label {
    font-size: 0.9rem;
    text-align: center;
    color: white;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Control Container */
.video-control-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Music Button */
.music-button {
    background-color: #ffcc00;
    border: none;
    border-radius: 15px; /* Rounded square shape */
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.codec-tour-highlight {
    z-index: 11;
    box-shadow: 0 0 0 3px rgba(130, 252, 217, 0.75), 0 0 26px rgba(130, 252, 217, 0.4);
    outline: 3px solid rgba(130, 252, 217, 0.85);
    outline-offset: 6px;
    transition: box-shadow 0.25s ease, outline-color 0.25s ease;
    isolation: isolate;
}

.codec-tour-highlight--relative {
    position: relative;
}

body.codec-tour-active .codec-tour-highlight {
    box-shadow: 0 0 0 4px rgba(130, 252, 217, 0.85), 0 0 36px rgba(130, 252, 217, 0.6);
    outline-color: rgba(130, 252, 217, 0.95);
}

.codec-tour-scrim {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.codec-tour-scrim.is-visible {
    opacity: 1;
}

.codec-tour-scrim__segment {
    position: absolute;
    background: rgba(3, 15, 11, 0.72);
}

.codec-tour-tooltip {
    position: fixed;
    z-index: 14000;
    background: rgba(12, 54, 39, 0.96);
    color: #82fcd9;
    padding: 8px 16px;
    border-radius: 14px;
    border: 1px solid rgba(130, 252, 217, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: min(280px, 80vw);
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
    text-shadow: 0 0 8px rgba(130, 252, 217, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.codec-tour-tooltip[data-position="below"] {
    transform: translate3d(0, -6px, 0);
}

.codec-tour-tooltip.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.overlay-active .codec-tour-tooltip {
    display: none;
}

.music-button img {
    width: 24px;
    height: 24px;
}

.music-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 15px rgba(255, 204, 0, 0.8);
}

/* Video Button */
.video-button {
    background-color: #000; /* Black background for video buttons */
    border: 2px solid #ffffff;
    border-radius: 15px; /* Rounded square shape */
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.video-button img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Make the icons white for better visibility against the black background */
}

.video-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 1);
}

.footer {
    margin-top: auto;
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Secret keypad */
.secret-keypad {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: clamp(220px, 30vw, 260px);
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(155deg, rgba(132, 137, 145, 0.94), rgba(82, 86, 95, 0.96));
    box-shadow: 0 26px 60px rgba(3, 6, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 6;
    color: #11131a;
}

.secret-keypad.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.keypad-visible .control-panel-container {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.secret-keypad__display {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(217, 220, 226, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    font-family: 'Coluna Rounded', sans-serif;
    min-height: 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    box-shadow: inset 0 0 22px rgba(27, 30, 36, 0.35);
    font-variant-numeric: tabular-nums;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.secret-keypad__display.is-success {
    border-color: rgba(56, 189, 106, 0.85);
    box-shadow: inset 0 0 26px rgba(22, 155, 64, 0.35), 0 0 18px rgba(22, 155, 64, 0.35);
}

.secret-keypad__display.is-error {
    border-color: rgba(217, 76, 76, 0.85);
    box-shadow: inset 0 0 26px rgba(182, 34, 34, 0.35), 0 0 18px rgba(182, 34, 34, 0.35);
}

.secret-keypad__display-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-keypad__display-line--status {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(30, 35, 45, 0.7);
    min-height: 0.75rem;
}

.secret-keypad__display-line--status.is-success {
    color: rgba(22, 155, 64, 0.95);
}

.secret-keypad__display-line--status.is-error {
    color: rgba(217, 45, 45, 0.95);
}

.secret-keypad__display-line--buffer {
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    color: #11131a;
}

.secret-keypad__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 0.95rem;
}

.secret-keypad__key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.7rem 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(146, 150, 160, 0.9);
    background: linear-gradient(165deg, rgba(246, 247, 249, 0.95), rgba(183, 188, 198, 0.95));
    color: #151820;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 10px 22px rgba(13, 16, 24, 0.28);
}

.secret-keypad__key:hover,
.secret-keypad__key:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 28px rgba(35, 45, 66, 0.35);
}

.secret-keypad__number {
    font-size: 1.4rem;
    line-height: 1;
}

.secret-keypad__letters {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(30, 35, 45, 0.65);
}

.secret-keypad__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-top: 0.95rem;
}

.secret-keypad__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.7rem 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(146, 150, 160, 0.9);
    background: linear-gradient(165deg, rgba(246, 247, 249, 0.95), rgba(183, 188, 198, 0.95));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(13, 16, 24, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.secret-keypad__action .secret-keypad__number {
    color: inherit;
}

.secret-keypad__action .secret-keypad__letters {
    color: rgba(245, 248, 250, 0.8);
}

.secret-keypad__action:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.secret-keypad__action:hover,
.secret-keypad__action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 28px rgba(35, 45, 66, 0.35);
}

.secret-keypad__action--accept {
    background: linear-gradient(165deg, rgba(53, 156, 92, 0.97), rgba(16, 87, 45, 0.97));
    border-color: rgba(86, 197, 132, 0.85);
    color: #f6fff9;
}

.secret-keypad__action--accept .secret-keypad__letters {
    color: rgba(222, 248, 233, 0.9);
}

.secret-keypad__action--decline {
    background: linear-gradient(165deg, rgba(197, 60, 60, 0.97), rgba(119, 16, 16, 0.97));
    border-color: rgba(226, 110, 110, 0.85);
    color: #fff5f5;
}

.secret-keypad__action--decline .secret-keypad__letters {
    color: rgba(255, 225, 225, 0.85);
}

.secret-keypad__key:active,
.secret-keypad__action:active {
    transform: translateY(1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}



.codec-overlay {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: min(520px, calc(100vw - 3rem));
    color: #b8fce2;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.04em;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 40;
}

.codec-overlay.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.codec-overlay__panel {
    position: relative;
    display: block;
    padding: 1.5rem;
    background: rgba(7, 40, 28, 0.92);
    border: 2px solid rgba(79, 214, 169, 0.6);
    border-radius: 18px 18px 18px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    isolation: isolate;
    pointer-events: auto;
}

.codec-overlay__panel::before,
.codec-overlay__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 320ms ease;
}

.codec-overlay__panel::before {
    background: radial-gradient(circle at 0% 0%, rgba(130, 252, 217, 0.22), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(12, 90, 64, 0.55), transparent 55%);
}

.codec-overlay__panel::after {
    background: linear-gradient(135deg, rgba(128, 255, 226, 0.12) 0%, rgba(23, 85, 60, 0.08) 100%);
}

.codec-overlay.is-ringing .codec-overlay__panel::before,
.codec-overlay.is-talking .codec-overlay__panel::after {
    opacity: 1;
}

.codec-overlay__scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.16) 3px
    );
    opacity: 0;
    transition: opacity 320ms ease;
    z-index: 41;
    pointer-events: none;
}

.codec-overlay.is-active .codec-overlay__scanlines {
    opacity: 1;
    animation: codec-scanlines 120ms linear infinite;
}



.codec-overlay__ringing {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    text-align: center;
}

.codec-overlay.is-ringing .codec-overlay__ringing {
    display: flex;
}

.codec-overlay__ringing-label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(130, 252, 217, 0.86);
    text-shadow: 0 0 10px rgba(130, 252, 217, 0.35);
    position: relative;
}

.codec-overlay__ringing-label::after {
    content: '...';
    margin-left: 0.35em;
    letter-spacing: 0.18em;
    opacity: 0.45;
    display: inline-block;
    width: 3.5ch;
    text-align: left;
    white-space: nowrap;
}

.codec-overlay.is-ringing .codec-overlay__ringing-label::after {
    animation: codec-signal-dots 1.4s steps(4) infinite;
}

.codec-overlay__ringing-indicator {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid rgba(130, 252, 217, 0.45);
    position: relative;
    box-shadow: 0 0 22px rgba(130, 252, 217, 0.25);
}

.codec-overlay__ringing-indicator::before,
.codec-overlay__ringing-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(130, 252, 217, 0.32);
    animation: codec-radar-pulse 1.8s ease-out infinite;
}

.codec-overlay__ringing-indicator::after {
    animation-delay: 0.6s;
}

.codec-overlay__conversation {
    display: none;
    align-items: flex-end;
    gap: 1.25rem;
}

.codec-overlay.is-talking .codec-overlay__conversation {
    display: flex;
}


.codec-overlay__avatar {
    position: relative;
    width: 108px;
    height: 108px;
    border: 2px solid rgba(79, 214, 169, 0.7);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(23, 87, 61, 0.8);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.codec-overlay__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.codec-overlay__nameplate {
    position: absolute;
    inset: auto 0 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    background: linear-gradient(180deg, rgba(9, 50, 35, 0.1) 0%, rgba(9, 50, 35, 0.88) 85%);    
    color: #82fcd9;
    text-align: center;
    pointer-events: none;
}

.codec-overlay__dialogue {
    flex: 1;
    min-width: 0;
    max-width: 360px;
}

.codec-overlay__text-bubble {
    background: linear-gradient(135deg, rgba(24, 87, 62, 0.92), rgba(16, 62, 45, 0.92));
    border: 1px solid rgba(130, 252, 217, 0.4);
    border-radius: 14px 14px 14px 0;
    padding: 1rem 1.25rem;
    min-height: 92px;
    display: flex;
    align-items: center;
    width: 100%;
}

.codec-overlay.is-talking .codec-overlay__text-bubble {
    border-color: rgba(130, 252, 217, 0.65);
    box-shadow: 0 0 24px rgba(130, 252, 217, 0.25);
}

.codec-overlay__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #d6ffee;
    text-shadow: 0 0 6px rgba(130, 252, 217, 0.35);
}

.codec-overlay__continue {
    margin: 0.75rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(130, 252, 217, 0.75);
    animation: codec-prompt-fade 1.4s ease-in-out infinite;
}

.codec-overlay__answer {
    padding: 0.55rem 1.35rem;
    font-family: inherit;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(130, 252, 217, 0.65);
    border-radius: 999px;
    background: rgba(29, 111, 79, 0.55);
    color: #82fcd9;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
    box-shadow: 0 0 0 rgba(130, 252, 217, 0.2);
}

.codec-overlay__answer:hover,
.codec-overlay__answer:focus-visible {
    background: rgba(42, 152, 107, 0.65);
    box-shadow: 0 0 12px rgba(130, 252, 217, 0.35);
    outline: none;
}

.codec-overlay__answer:active {
    transform: translateY(1px);
    box-shadow: 0 0 8px rgba(130, 252, 217, 0.25);
}

.codec-overlay.is-ringing .codec-overlay__answer {
    animation: codec-answer-pulse 1.6s ease-in-out infinite;
}

@keyframes codec-scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(3px);
    }
}

@keyframes codec-prompt-fade {
    0%,
    100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.95;
    }
}

@keyframes codec-radar-pulse {
    0% {
        transform: scale(0.65);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes codec-answer-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(130, 252, 217, 0.2);
    }
    50% {
        box-shadow: 0 0 18px rgba(130, 252, 217, 0.45);
    }
}

@keyframes codec-signal-dots {
    0% {
        content: '';
    }
    33% {
        content: '.';
    }
    66% {
        content: '..';
    }
    100% {
        content: '...';
    }
}

@media (max-width: 720px) {
    .codec-overlay {
        bottom: 1.25rem;
        left: 1.25rem;
        width: min(420px, calc(100vw - 2.5rem));
    }

    .codec-overlay__panel {
        padding: 1.2rem 1.25rem;
    }

    .codec-overlay__avatar {
        width: 92px;
        height: 92px;
    }

    .codec-overlay__text {
        font-size: 0.85rem;
    }

    .codec-overlay__answer {
        font-size: 0.7rem;
        padding: 0.45rem 1.1rem;
        letter-spacing: 0.16em;
    }

    .codec-overlay__nameplate {
        font-size: 0.66rem;
        letter-spacing: 0.22em;
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .secret-keypad {
        bottom: 16px;
        right: 16px;
        width: min(260px, 85vw);
        padding: 1.15rem;
    }

    .secret-keypad__actions {
        gap: 0.55rem;
    }

    .secret-keypad__action {
        padding: 0.65rem 0.4rem;
    }
}

@media (max-width: 600px) {
    .secret-keypad {
        inset: 0;
        width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: clamp(1.75rem, 8vw, 2.75rem) clamp(1.5rem, 7vw, 2.5rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.1rem;
        background: linear-gradient(160deg, rgba(158, 163, 172, 0.98), rgba(92, 97, 107, 0.98));
    }

    .secret-keypad__display,
    .secret-keypad__grid,
    .secret-keypad__actions {
        width: min(320px, 88vw);
        margin-inline: auto;
    }

    .secret-keypad__grid {
        gap: 0.75rem;
    }

    .secret-keypad__key {
        padding: 0.85rem 0.5rem;
        font-size: 1.35rem;
    }

    .secret-keypad__letters {
        font-size: 0.7rem;
    }

    .secret-keypad__actions {
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .secret-keypad__action {
        padding: 0.85rem 0.5rem;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .control-panel-container {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }

    .music-button,
    .video-button {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .music-button img,
    .video-button img {
        width: 20px;
        height: 20px;
    }

    .join-button {
        font-size: 1.25rem;
        padding: 8px 16px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
    }

    .header-title {
        font-size: 1.8rem;
        white-space: normal;
        text-align: center;
    }

    .control-panel-container {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .music-button,
    .video-button {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }

    .music-button img,
    .video-button img {
        width: 18px;
        height: 18px;
    }

    .join-button {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .site-main {
        gap: 1.5rem;
    }
}
