<script>
    import { push } from 'svelte-spa-router';
</script>

<div class="screen">
    <h1 class="title">color restored</h1>
    <p class="line1">every fragment found. every hue returned </p>
    <p class="line2">Go forth and experience the world in full color.</p>
    <button on:click={() => push('/')}>back to home</button>
</div>

<style>
    .screen {
        width: 800px;
        height: 450px;
        margin: 0 auto;
        background: #0a0a0a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .title {
        font-family: 'Courier New', Courier, monospace;
        font-size: 52px;
        font-weight: 400;
        background: linear-gradient(
            90deg,
            #FF4136, #FF851B, #FFDC00, #2ECC40,
            #0074D9, #B10DC9, #FF69B4, #FF4136
        );
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: shimmer 4s linear infinite;
    }

    @keyframes shimmer {
        from { background-position: 0% center; }
        to   { background-position: 200% center; }
    }

    .line1 {
        font-family: 'Courier New', Courier, monospace;
        font-size: 18px;
        color: #ccc;
        text-align: center;
    }

    .line2 {
        font-family: 'Courier New', Courier, monospace;
        font-size: 15px;
        color: #666;
        text-align: center;
        margin-top: -4px;
    }

    button {
        margin-top: 20px;
        padding: 10px 36px;
        border-radius: 24px;
        cursor: pointer;
        font-family: 'Courier New', Courier, monospace;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        transition: background 0.15s;
    }

    button:hover {
        background: rgba(255, 255, 255, 0.14);
    }
</style>
