:root {
    --bg: #000000;
    --panel: #181818;
    --input: #303030;
    --text: #ddeace;
    --accent: #fa423e;
    --accent-hover: #ff5a56;
    --border: rgba(221, 234, 206, 0.2);
    --shadow: rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.input-card {
    width: min(100%, 440px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px var(--shadow);
    padding: 1.25rem;
}

.input-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1;
}

.bounce-form {
    display: grid;
    gap: 0.75rem;
}

.bounce-form label {
    font-weight: 700;
}

.bounce-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input);
    color: var(--text);
    padding: 0.7rem 0.8rem;
    outline: none;
}

.bounce-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(250, 66, 62, 0.25);
}

button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    padding: 0.7rem 1rem;
}

button:hover,
button:focus-visible {
    background: var(--accent-hover);
}

button:focus-visible {
    outline: 3px solid rgba(250, 66, 62, 0.35);
    outline-offset: 2px;
}

.bounce-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

.bounce-text {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    margin: 0;
    color: #5bd32e;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(2rem, 9vw, 8rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    will-change: transform;
    box-shadow: none;
}

.reset-form {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
}

.reset-form button {
    min-height: 38px;
    font-size: 0.95rem;
    background: var(--input);
    border: 1px solid var(--border);
}

.reset-form button:hover,
.reset-form button:focus-visible {
    background: var(--accent);
}

@media (max-width: 520px) {
    .input-card {
        padding: 1rem;
    }

    .reset-form {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .reset-form button {
        min-height: 36px;
        padding: 0.55rem 0.75rem;
    }
}
