:root {
    --bg-0: #040910;
    --bg-1: #081226;
    --land: #0e1c33;
    --coast: rgba(96, 235, 215, 0.35);
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.16);

    --ink-dim: #7d93a7;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#stage {
    position: relative;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(
            120% 90% at 68% 38%,
            rgba(45, 212, 191, 0.07),
            transparent 55%
        ),
        radial-gradient(140% 120% at 50% 110%, #0a1830 0%, transparent 60%),
        linear-gradient(180deg, #050d1c 0%, var(--bg-0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}
/* faint dot-grid texture */
#stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(125, 147, 167, 0.1) 1px,
        transparent 1px
    );
    background-size: 26px 26px;
    mask-image: radial-gradient(80% 80% at 60% 45%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(
        80% 80% at 60% 45%,
        #000 30%,
        transparent 100%
    );
    pointer-events: none;
}
#stage::after {
    /* vignette */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 180px 60px rgba(2, 6, 12, 0.85);
}
svg#map {
    height: 100%;
    max-width: 100%;
    display: block;
}

.land {
    fill: var(--land);
    stroke: var(--coast);
    stroke-width: 1;
    filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.1));
    opacity: 0;
    animation: landIn 1.4s ease 0.15s forwards;
}
.ireland {
    fill: #0a1424;
    stroke: rgba(125, 147, 167, 0.14);
    stroke-width: 1;
    opacity: 0;
    animation: landIn 1.4s ease 0.05s forwards;
}
@keyframes landIn {
    to {
        opacity: 1;
    }
}

.halo {
    fill: var(--accent);
    opacity: 0.35;
}
.core {
    fill: url(#coreGrad);
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 0.6;
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    animation: pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
    transition: transform 0.18s ease;
}
.core:hover {
    transform: scale(1.85) !important;
}
@keyframes pop {
    to {
        transform: scale(1);
    }
}

.ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: ripple 3.4s ease-out infinite;
}
@keyframes ripple {
    0% {
        transform: scale(0.4);
        opacity: 0.7;
    }
    70% {
        transform: scale(3.4);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ---------- overlay copy ---------- */
.head {
    position: absolute;
    top: clamp(20px, 4vh, 48px);
    left: clamp(20px, 4vw, 56px);
    max-width: 340px;
    z-index: 3;
    pointer-events: none;
    animation: rise 0.9s ease 0.3s both;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: blink 2s ease infinite;
}
@keyframes blink {
    50% {
        opacity: 0.35;
    }
}
#stage h1 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
}
#stage h1 span {
    color: var(--accent);
}
.sub {
    margin-top: 14px;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-dim);
}
.foot {
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    bottom: clamp(16px, 3vh, 32px);
    z-index: 3;
    font-size: 12px;
    color: var(--ink-dim);
    display: flex;
    gap: 18px;
    align-items: center;
    animation: rise 0.9s ease 0.6s both;
}
.foot .key {
    display: flex;
    align-items: center;
    gap: 8px;
}
.foot .key i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.credit {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 3;
    font-size: 9px;
    color: rgba(125, 147, 167, 0.45);
}

/* ---------- tooltip ---------- */
#tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 0.15s ease;
    background: rgba(10, 20, 38, 0.92);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 10px;
    padding: 8px 14px;
    backdrop-filter: blur(6px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(45, 212, 191, 0.12);
    white-space: nowrap;
}
#tip .t {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
#tip .s {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2px;
}
#tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(45, 212, 191, 0.35);
}

@media (max-width: 640px) {
    .head {
        max-width: 230px;
    }
    .foot {
        display: none;
    }
}
