:root {
    --background: #f5f1e8;
    --surface: #fffdf8;
    --text: #142f2b;
    --muted: #65726e;
    --primary: #176b5b;
    --primary-hover: #0e5649;
    --lost: #8a5a18;
    --lost-hover: #71480f;
    --border: #d9d6cb;
    --focus: #b67b17;
    --shadow: 0 24px 70px rgb(20 47 43 / 12%);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgb(255 255 255 / 75%), transparent 40%),
        var(--background);
    color: var(--text);
    font-family: Arial, "Noto Sans Hebrew", "Noto Sans", sans-serif;
}

button,
select {
    font: inherit;
}

.start-page {
    width: min(100%, 680px);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-block-end: 18px;
}

.brand {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.language-form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.language-form label {
    color: var(--muted);
    font-size: 0.88rem;
}

.language-form select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

[dir="rtl"] .language-form select {
    padding: 8px 12px 8px 34px;
}

.choice-card {
    padding: clamp(30px, 7vw, 64px);
    border: 1px solid rgb(23 107 91 / 14%);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.choice-card h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.08;
}

.instruction {
    margin: 14px 0 32px;
    color: var(--muted);
    font-size: 1.05rem;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-form {
    margin: 0;
}

.choice-button {
    width: 100%;
    min-height: 92px;
    padding: 18px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 1.08rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-button--lost {
    background: var(--lost);
    color: #fff;
}

.choice-button--lost:hover {
    background: var(--lost-hover);
}

.choice-button--found {
    background: var(--primary);
    color: #fff;
}

.choice-button--found:hover {
    background: var(--primary-hover);
}

.choice-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgb(20 47 43 / 14%);
}

.choice-button:focus-visible,
.language-form select:focus-visible,
.back-link:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.back-link {
    color: var(--primary);
    font-weight: 700;
    text-underline-offset: 4px;
}

@media (max-width: 560px) {
    body {
        padding: 18px;
        place-items: start center;
    }

    .start-page {
        margin-block-start: 16px;
    }

    .top-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .language-form {
        width: 100%;
        justify-content: space-between;
    }

    .language-form select {
        flex: 1;
        max-width: 230px;
    }

    .choice-card {
        border-radius: 20px;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    .choice-button {
        min-height: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .choice-button {
        transition: none;
    }
}
