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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Start overlay ── */

#overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    z-index: 100;
    padding: 2rem;
    text-align: center;
    gap: 1.5rem;
}

#overlay.hidden {
    display: none;
}

#overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 320px;
}

#start-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: #00e676;
    color: #0a0a0a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

#start-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

/* ── Status label at top ── */

#status-label {
    position: absolute;
    top: max(1.5rem, env(safe-area-inset-top));
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #00e676;
    text-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
    padding: 0 1rem;
    z-index: 10;
}

/* ── Arrow / checkmark container ── */

#indicator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70vmin;
    height: 70vmin;
    max-width: 400px;
    max-height: 400px;
}

#arrow-wrapper {
    width: 100%;
    height: 100%;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

#arrow-wrapper svg {
    width: 100%;
    height: 100%;
}

#arrow-svg {
    filter: drop-shadow(0 0 30px rgba(0, 230, 118, 0.6))
        drop-shadow(0 0 60px rgba(0, 230, 118, 0.3))
        drop-shadow(0 0 100px rgba(0, 230, 118, 0.15));
}

#checkmark-svg {
    filter: drop-shadow(0 0 40px rgba(0, 230, 118, 0.7))
        drop-shadow(0 0 80px rgba(0, 230, 118, 0.4))
        drop-shadow(0 0 120px rgba(0, 230, 118, 0.2));
}

/* ── Info bar at bottom ── */

#info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.2rem 1rem;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    font-size: 0.85rem;
    color: #aaaaaa;
    z-index: 10;
}

#info-bar span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#info-bar .value {
    color: #00e676;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Debug panel ── */

#debug {
    position: absolute;
    bottom: 4rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #999999;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    z-index: 200;
}

/* ── Arrived state ── */

#app.arrived #indicator-container {
    animation: pulse-glow 1.6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(0, 230, 118, 0.8));
    }
}

/* ── Hidden utility ── */

.hidden {
    display: none !important;
}
