/* Scratch ticket CSS */
/* Import de la police Bebas Neue */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.stl-scratch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    font-family: 'Bebas Neue', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stl-card {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 16px;
    padding: 24px 26px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
}

.stl-title {
    font-size: 1.8rem;
    margin-bottom: 4px;
    text-align: center;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.stl-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #bbbbbb;
    margin-bottom: 18px;
}

.stl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.stl-label {
    font-size: 0.9rem;
    color: #dddddd;
}

.stl-input {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f5f5f5;
    font-size: 0.95rem;
    outline: none;
    letter-spacing: 0.05em;
}

.stl-input:focus {
    border-color: #ffcc33;
    box-shadow: 0 0 0 1px rgba(255, 204, 51, 0.4);
}

.stl-input.stl-error {
    border-color: #ff5555;
}

.stl-button {
    margin-top: 4px;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #ffcc33, #ff9900);
    color: #000000 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease, color 0.1s ease;
}

.stl-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 1);
    color: #ffffff !important;
}

.stl-button:active {
    transform: translateY(0);
    box-shadow: none;
    color: #ffffff !important;
}

.stl-error-text {
    margin-top: 4px;
    margin-bottom: 8px;
    color: #ff5555;
    font-size: 0.9rem;
    text-align: center;
}

.stl-ticket-section {
    margin-top: 10px;
}

.stl-hidden {
    display: none;
}

.stl-ticket-owner {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #cccccc;
    text-align: center;
    letter-spacing: 0.08em;
}

.stl-ticket-owner span {
    font-weight: 600;
    color: #ffcc33;
}

.stl-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.stl-scratch-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.stl-scratch-card {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 180px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
    background: radial-gradient(circle at top left, #333 0, #111 40%, #000 80%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stl-prize {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    z-index: 1;
    color: #fff;
}

.stl-prize-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 6px;
}

.stl-prize-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.12em;
}

.stl-prize-note {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
}

#stl-scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.stl-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #bbbbbb;
    letter-spacing: 0.08em;
}

.stl-hint span {
    color: #ffcc33;
    font-weight: 600;
}

@media (max-width: 480px) {
    .stl-card {
        padding: 20px 18px 22px;
    }
}
