body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #fff176, transparent 30%),
        radial-gradient(circle at bottom right, #ffb74d, transparent 35%),
        #ffe082;
    min-height: 100vh;
    color: #3b2600;
}

.wrap {
    max-width: 850px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background: #fffdf2;
    border: 5px solid #3b2600;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 10px 10px 0 #3b2600;
    text-align: center;
}

.logo {
    font-size: 54px;
    margin: 0 0 10px;
    transform: rotate(-2deg);
}

.tagline {
    font-size: 20px;
    margin-bottom: 30px;
}

.joke-line {
    display: inline-block;
    background: white;
    border: 3px solid #3b2600;
    border-radius: 18px;
    padding: 15px 22px;
    margin: 12px;
    font-size: 28px;
    box-shadow: 5px 5px 0 #ff9800;
}

.dots {
    display: inline-block;
    margin-top: 25px;
    font-size: 46px;
    cursor: pointer;
    background: #ff9800;
    border: 4px solid #3b2600;
    border-radius: 50px;
    padding: 0 28px 8px;
    box-shadow: 5px 5px 0 #3b2600;
}

.dots:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #3b2600;
}

.nav a, button {
    display: inline-block;
    background: #29b6f6;
    border: 3px solid #3b2600;
    color: #3b2600;
    padding: 12px 18px;
    margin: 10px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 4px 4px 0 #3b2600;
    cursor: pointer;
}

.nav a:hover, button:hover {
    background: #4dd0e1;
}

input, textarea {
    width: 100%;
    box-sizing: border-box;
    border: 3px solid #3b2600;
    border-radius: 14px;
    padding: 14px;
    font-size: 18px;
    margin-bottom: 18px;
    background: #fffef7;
}

textarea {
    min-height: 260px;
}

.result {
    background: white;
    border: 3px solid #3b2600;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 5px 5px 0 #ffca28;
    font-size: 22px;
}

.msg {
    color: green;
    font-weight: bold;
}

.err {
    color: red;
    font-weight: bold;
}