/* =============================================================
   MILITARY STORE KG — Coming Soon
   ============================================================= */

/* ── 1. RESET & TOKENS ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:        #070b05;
    --bg2:       #0c1308;
    --text:      #c0bb9c;
    --dim:       #526045;
    --accent:    #7a9640;
    --accent-hi: #9ab850;
    --gold:      #c9a227;
    --gold-hi:   #e8c040;
    --border:    #1e2a12;
    --border-hi: #384e1e;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse 90% 55% at 50% 0%,
        rgba(38, 62, 14, 0.4) 0%, transparent 100%);
    color: var(--text);
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%, var(--accent) 20%,
        var(--gold) 50%,
        var(--accent) 80%, transparent 100%);
    z-index: 200;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hi), transparent);
    z-index: 200;
}

/* ── 2. CANVAS ──────────────────────────────────────────────── */
#canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── 3. SCANLINES ───────────────────────────────────────────── */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 2px,
        rgba(0,0,0,0.055) 2px, rgba(0,0,0,0.055) 4px
    );
}

/* ── 4. CORNER MARKERS ──────────────────────────────────────── */
.corner {
    position: fixed;
    width: 26px;
    height: 26px;
    z-index: 10;
    animation: cornerPulse 3.5s ease-in-out infinite;
}

.c-tl { top: 14px; left: 14px;     border-top:    2px solid var(--accent); border-left:  2px solid var(--accent); }
.c-tr { top: 14px; right: 14px;    border-top:    2px solid var(--accent); border-right: 2px solid var(--accent); animation-delay: .9s; }
.c-bl { bottom: 14px; left: 14px;  border-bottom: 2px solid var(--accent); border-left:  2px solid var(--accent); animation-delay: 1.7s; }
.c-br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); animation-delay: 2.6s; }

@keyframes cornerPulse {
    0%, 100% { opacity: .38; }
    50%       { opacity: 1; filter: drop-shadow(0 0 6px var(--accent)); }
}

/* ── 5. PAGE LAYOUT ─────────────────────────────────────────── */
.page {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: min(36px, 4vh) 20px;
    overflow: hidden;
}

.content {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(20px, 1.8vh);
    text-align: center;
    animation: pageIn .9s ease both;
}

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

/* ── 6. LOGO ────────────────────────────────────────────────── */
.logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Desktop passthrough — content-body children join .content's flex layout directly */
.content-body {
    display: contents;
}

.logo-aura {
    position: absolute;
    width: min(260px, 26vh);
    height: min(260px, 26vh);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122,150,64,.14) 0%, transparent 68%);
    animation: auraPulse 4s ease-in-out infinite;
}

.logo {
    width: min(210px, 20vh);
    height: min(210px, 20vh);
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter:
        invert(1)
        sepia(.55)
        saturate(1.15)
        brightness(.97)
        drop-shadow(0 0 18px rgba(201,162,39,.48));
    animation: logoBreath 4s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1);    opacity: .55; }
    50%       { transform: scale(1.1); opacity: 1;   }
}

@keyframes logoBreath {
    0%, 100% {
        filter: invert(1) sepia(.55) saturate(1.15) brightness(.94)
                drop-shadow(0 0 14px rgba(201,162,39,.38));
    }
    50% {
        filter: invert(1) sepia(.55) saturate(1.3)  brightness(1.02)
                drop-shadow(0 0 32px rgba(201,162,39,.65));
    }
}

/* ── 7. LOCATION BAR ────────────────────────────────────────── */
.loc-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .28em;
    color: var(--dim);
}

.star { color: var(--gold); font-size: .7rem; }

/* ── 8. TITLE + GLITCH ──────────────────────────────────────── */
.title {
    font-family: 'Black Ops One', Impact, 'Arial Narrow', serif;
    font-size: clamp(1.5rem, min(11vw, 7.5vh), 5.8rem);
    font-weight: 400;
    letter-spacing: .06em;
    line-height: 1;
    color: var(--text);
    position: relative;
    text-shadow: 0 0 50px rgba(122,150,64,.12), 0 0 100px rgba(122,150,64,.06);
}

.title::before,
.title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    overflow: hidden;
}

.title::before {
    color: var(--gold);
    opacity: 0;
    animation: glitchA 6s infinite;
}

.title::after {
    color: var(--accent-hi);
    opacity: 0;
    animation: glitchB 6s infinite;
}

@keyframes glitchA {
    0%, 75%, 100% { opacity: 0; transform: none;             clip-path: none; }
    77%            { opacity: 1; transform: translateX(-4px); clip-path: polygon(0 18%, 100% 18%, 100% 44%, 0 44%); }
    79%            { opacity: 1; transform: translateX(4px);  clip-path: polygon(0 56%, 100% 56%, 100% 78%, 0 78%); }
    81%            { opacity: 0; }
}

@keyframes glitchB {
    0%, 77%, 100% { opacity: 0; transform: none;            clip-path: none; }
    79%            { opacity: 1; transform: translateX(3px); clip-path: polygon(0 62%, 100% 62%, 100% 82%, 0 82%); }
    83%            { opacity: 0; }
}

/* ── 9. DEV STATUS ──────────────────────────────────────────── */
.dev-status {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 420px;
}

.dev-line {
    flex: 1;
    height: 1px;
    background: var(--border-hi);
    opacity: .55;
}

.dev-text {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.2rem;
    letter-spacing: .18em;
    color: #9aae78;
    font-weight: 700;
    white-space: nowrap;
}

.dev-blink {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-hi);
    animation: blinkDot 1.4s step-end infinite;
    flex-shrink: 0;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── 10. CATEGORIES ─────────────────────────────────────────── */
.categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.cat-item {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.7rem, 3.2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: clamp(0.04em, 0.4vw, 0.14em);
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}

.cat-sep {
    display: inline-block;
    width: 1px;
    height: 1.15em;
    background: var(--gold);
    opacity: .35;
    margin: 0 clamp(8px, 2vw, 20px);
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── 11. RULE ───────────────────────────────────────────────── */
.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
}

.rule-line {
    flex: 1;
    height: 1px;
    background: var(--border-hi);
    opacity: .5;
}

.rule-icon {
    color: var(--gold);
    font-size: .5rem;
    opacity: .7;
}

/* ── 12. RETICLE ────────────────────────────────────────────── */
.reticle-wrap {
    position: relative;
    width: min(180px, 17vh);
    height: min(180px, 17vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reticle-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122,150,64,.07) 0%, transparent 70%);
    animation: retGlow 4s ease-in-out infinite;
}

@keyframes retGlow {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%       { opacity: 1;  transform: scale(1.08); }
}

/* Radar sweep — rotating conic-gradient disc, auto-scales with parent */
.radar-sweep {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(122, 150, 64, 0)    280deg,
        rgba(122, 150, 64, 0.36) 360deg
    );
    animation: radarSpin 3.5s linear infinite;
    pointer-events: none;
    /* Hide very center so it doesn't cover the crosshair hub */
    mask: radial-gradient(circle at center, transparent 0%, transparent 11%, black 12%);
    -webkit-mask: radial-gradient(circle at center, transparent 0%, transparent 11%, black 12%);
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.reticle {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 1;
    overflow: visible;
}

/* Outer rotating ring */
.r-ring1 {
    transform-box: fill-box;
    transform-origin: center;
    opacity: .38;
    animation: spinCW 32s linear infinite;
}

/* Middle counter-rotating ring */
.r-ring2 {
    transform-box: fill-box;
    transform-origin: center;
    opacity: .22;
    animation: spinCCW 22s linear infinite;
}

/* Static crosshair */
.r-static {
    opacity: .42;
    stroke-width: .9;
}

/* Corner brackets in gold */
.r-brackets {
    stroke: var(--gold);
    stroke-width: 1.6;
    fill: none;
    animation: bracketPulse 3.5s ease-in-out infinite;
}

/* Pulsing center dot */
.r-dot {
    fill: var(--accent-hi);
    stroke: none;
    transform-box: fill-box;
    transform-origin: center;
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes spinCW  { to { transform: rotate(360deg);  } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

@keyframes bracketPulse {
    0%, 100% { opacity: .28; }
    50%       { opacity: .65; filter: drop-shadow(0 0 3px var(--gold)); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1);   opacity: .7; }
    50%       { transform: scale(2);  opacity: 1;  }
}

/* Radar ping blips */
.r-blip-dot {
    fill: var(--gold);
    stroke: none;
    opacity: 0;
    animation: blipDot 3.5s linear infinite;
}

.r-blip-ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: .8;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: blipRing 3.5s linear infinite;
}

/* Each blip group delayed to match the sweep's angular position */
.r-blip-a .r-blip-dot,
.r-blip-a .r-blip-ring { animation-delay: -2.856s; }

.r-blip-b .r-blip-dot,
.r-blip-b .r-blip-ring { animation-delay: -1.839s; }

.r-blip-c .r-blip-dot,
.r-blip-c .r-blip-ring { animation-delay: -0.328s; }

@keyframes blipDot {
    0%   { opacity: 1; }
    8%   { opacity: .6; }
    20%  { opacity: 0; }
    21%, 100% { opacity: 0; }
}

@keyframes blipRing {
    0%   { opacity: .85; transform: scale(1); }
    22%  { opacity: 0;   transform: scale(5); }
    23%, 100% { opacity: 0; transform: scale(1); }
}

/* ── 13. CONTACT ────────────────────────────────────────────── */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .07em;
    transition: color .2s;
}

.contact-item:hover { color: var(--gold); }

.contact-icon {
    color: var(--gold);
    font-size: 1rem;
    opacity: .8;
}

.contact-sep {
    display: inline-block;
    width: 1px;
    height: 1.1em;
    background: var(--border-hi);
    opacity: .6;
    margin: 0 22px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── 14. SOCIAL ─────────────────────────────────────────────── */
.social-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sec-lbl {
    font-size: .88rem;
    letter-spacing: .22em;
    font-weight: 700;
    color: #7a9060;
}

.social-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dim);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .14em;
    border: 1px solid var(--border-hi);
    padding: 10px 22px;
    transition: color .2s, border-color .2s, box-shadow .2s;
}

.social-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(201,162,39,.18);
}

/* ── 15. FOOTER ─────────────────────────────────────────────── */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .78rem;
    letter-spacing: .18em;
    color: var(--dim);
    font-weight: 600;
    opacity: .7;
}

.foot-sep { opacity: .4; }

.credits {
    font-size: .8rem;
    letter-spacing: .13em;
    color: var(--text);
    font-weight: 600;
    opacity: .55;
}

.credits a {
    color: inherit;
    text-decoration: none;
    transition: color .2s, opacity .2s;
}

.credits a:hover {
    color: var(--gold);
    opacity: 1;
}

/* ── 16. RESPONSIVE ─────────────────────────────────────────── */

/* ---- Mobile portrait (narrow screens) ---- */
@media (max-width: 600px) {
    .page  { padding: 0; align-items: stretch; }
    .corner { width: 16px; height: 16px; }

    .content {
        gap: 0;
        height: 100%;
        padding: 10px 16px 0;
    }

    /* content-body: flex column, centered, gap handled here */
    .content-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: min(9px, 1.3vh);
        flex: 1;
        justify-content: center;
        width: 100%;
        overflow: hidden;
    }

    .footer        { padding: 0 16px 12px; }

    /* Width-specific adjustments — sizes handled by vh formula above */
    .loc-bar      { font-size: .82rem; letter-spacing: .18em; }
    .dev-status   { max-width: 100%; }
    .dev-text     { font-size: .9rem; letter-spacing: .12em; }
    .contact      { flex-direction: column; gap: 6px; }
    .contact-sep  { display: none; }
    .contact-item { font-size: .92rem; }
    .social-btn   { padding: 8px 16px; font-size: .84rem; }
    .sec-lbl      { font-size: .78rem; }
    .footer-copy  { font-size: .68rem; letter-spacing: .13em; }
    .credits      { font-size: .56rem; }
}

@media (max-width: 420px) {
    .footer-copy  { flex-direction: column; gap: 3px; }
    .foot-sep     { display: none; }
    .dev-text     { white-space: normal; text-align: center; }
}

/* ---- Landscape / short screens (phones rotated, small laptops) ---- */
@media (max-height: 500px) {
    /* Hide the decorative reticle — reclaims ~130–180px */
    .reticle-wrap { display: none; }
    .rule         { display: none; }
    .content      { gap: min(12px, 1.5vh); }
    .content-body { gap: min(7px, 1vh); }
    .logo         { width: min(120px, 16vh); height: min(120px, 16vh); }
    .logo-aura    { width: min(165px, 22vh); height: min(165px, 22vh); }
}
