@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --pink:   #ff2d78;
    --yellow: #ffe600;
    --cyan:   #00ffe7;
    --bg:     #0d0007;
    --mid:    #1a000f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

/* Noise grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
}

/* Scanlines */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.12) 3px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 99;
}

/* Stage fills the remaining viewport height and centers its content */
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

/* Big ASCII title */
#ascii-title {
    white-space: pre;
    font-size: 9.5px;
    line-height: 1.15;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
    transition: color 0.1s;
}

/* ─── Background floating donuts ─────────────────────────────────────────── */
.bg-donuts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-donut {
    position: absolute;
    font-size: 16px;          /* was 11px — bigger characters */
    white-space: pre;
    line-height: 1.15;
    opacity: 0.90;            /* was 0.07 — much more visible */
    color: var(--pink);
    text-shadow: 0 0 8px var(--pink)88; /* subtle glow per donut */
    animation: float-up linear infinite;
}

@keyframes float-up {
    0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
    8%   { opacity: 0.90; }
    90%  { opacity: 0.90; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* Glitch effect on main title */
.glitch {
    position: relative;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    white-space: pre;
    font-size: 9.5px;
    line-height: 1.15;
    pointer-events: none;
}

.glitch-layer.r {
    color: var(--pink);
    animation: glitch-r 4s infinite;
    mix-blend-mode: screen;
}

.glitch-layer.c {
    color: var(--cyan);
    animation: glitch-c 4s infinite;
    mix-blend-mode: screen;
}

@keyframes glitch-r {
    0%, 90%, 100% { transform: translate(0); clip-path: none; opacity: 0; }
    91% { transform: translate(-3px,  1px); clip-path: inset(20% 0 60% 0); opacity: 1; }
    93% { transform: translate( 3px, -1px); clip-path: inset(50% 0 10% 0); opacity: 1; }
    95% { transform: translate(-2px,  0);   clip-path: inset(70% 0  5% 0); opacity: 1; }
    97% { opacity: 0; }
}

@keyframes glitch-c {
    0%, 90%, 100% { transform: translate(0); clip-path: none; opacity: 0; }
    92% { transform: translate( 3px, -2px); clip-path: inset(10% 0 70% 0); opacity: 1; }
    94% { transform: translate(-3px,  1px); clip-path: inset(40% 0 30% 0); opacity: 1; }
    96% { transform: translate( 2px,  0);   clip-path: inset(80% 0  0% 0); opacity: 1; }
    97% { opacity: 0; }
}

.tagline {
    font-size: 11px;
    letter-spacing: 0.5em;
    color: var(--yellow);
    text-shadow: 0 0 10px var(--yellow), 0 0 30px #ffe60066;
    margin-top: 14px;
    text-transform: uppercase;
    animation: pulse-yellow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.footer-line {
    margin-top: 22px;
    font-size: 9px;
    color: #ff2d7844;
    letter-spacing: 0.3em;
}