* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent double-tap zoom on iOS Safari */
button, a, input, label {
    touch-action: manipulation;
}

body {
    font-family: 'PingFang TC', 'Microsoft JhengHei', 'Heiti TC', '微軟正黑體', 'LiHei Pro', 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FDC830 50%, #F37335 75%, #FF6B35 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated stars background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::before,
.stars::after {
    content: '✨';
    position: absolute;
    font-size: 30px;
    animation: twinkle 3s infinite;
}

.stars::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.stars::after {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
}

header {
    text-align: center;
    margin-bottom: 25px;
    animation: slideDown 0.8s ease-out;
    width: 100%;
    overflow-wrap: break-word;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 3.5em;
    font-weight: 900;
    color: #FFF;
    text-shadow: 
        4px 4px 0px #E63946,
        8px 8px 0px #D62828,
        12px 12px 20px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.5em;
    color: #2D3142;
    font-weight: bold;
    text-shadow: 
        2px 2px 0px #FFE66D,
        3px 3px 4px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 20px;
    border-radius: 15px;
    display: inline-block;
    border: 3px solid #2D3142;
}

.tagline {
    font-size: 1.1em;
    color: #FFF;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.game-section {
    background: #FFF;
    border-radius: 25px;
    padding: 25px 15px;
    margin-bottom: 25px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 0 0 6px #FF6B35,
        0 0 0 10px #FFE66D;
    animation: popIn 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timer-display {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 18px;
    border: 4px solid #2D3142;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timer-label {
    font-size: 1em;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.timer-number {
    font-size: 3em;
    font-weight: 900;
    color: #FFF;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.timer-display.warning {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    animation: timerPulse 1s ease-in-out infinite;
}

.timer-display.danger {
    background: linear-gradient(135deg, #E63946, #D62828);
    animation: timerShake 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.upload-section {
    text-align: center;
    margin: 15px 0 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.upload-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    font-family: inherit;
    color: #FFF;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border: 3px solid #2D3142;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 3px 0 #2D7A6E;
    transition: all 0.1s;
}

.upload-button small {
    display: block;
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 2px;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2D7A6E;
}

.upload-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #2D7A6E;
}

.reset-face-button {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    font-family: inherit;
    color: #FFF;
    background: linear-gradient(135deg, #E63946, #D62828);
    border: 3px solid #2D3142;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 3px 0 #A4161A;
    transition: all 0.1s;
}

.reset-face-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #A4161A;
}

.reset-face-button:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #A4161A;
}

.slap-counter {
    text-align: center;
    margin-bottom: 20px;
}

.counter-label {
    font-size: 1.3em;
    font-weight: bold;
    color: #FF6B35;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.counter-number {
    font-size: 4em;
    font-weight: 900;
    color: #E63946;
    text-shadow: 3px 3px 0px #FFE66D;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.character-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    margin: 20px 0;
}

.character {
    position: relative;
    transition: transform 0.1s;
    cursor: pointer;
    touch-action: manipulation;
}

.character:hover {
    transform: scale(1.05);
}

.character.slapped {
    animation: slapReaction 0.5s ease-out;
}

@keyframes slapReaction {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg) translateX(-20px); }
    75% { transform: rotate(15deg) translateX(20px); }
    100% { transform: rotate(0deg); }
}

.head {
    width: 120px;
    height: 140px;
    background: #FFD8B8;
    border-radius: 50% 50% 45% 45%;
    border: 5px solid #2D3142;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    overflow: hidden;
}

.uploaded-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% 50% 45% 45%;
    z-index: 1;
}

.face {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.head.has-upload .face {
    display: none;
}

.eyes {
    display: flex;
    justify-content: space-around;
    padding: 40px 25px 0;
}

.eye {
    width: 20px;
    height: 20px;
    background: #2D3142;
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFF;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

.character.slapped .eye {
    animation: blink 0.2s;
}

@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.mouth {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
}

.mouth.happy {
    border: 3px solid #2D3142;
    border-top: none;
    border-radius: 0 0 40px 40px;
}

.character.slapped .mouth.happy {
    animation: mouthChange 0.5s;
}

@keyframes mouthChange {
    0%, 100% { 
        border-radius: 0 0 40px 40px;
        border-top: none;
    }
    50% { 
        border-radius: 40px 40px 0 0;
        border-bottom: none;
        border-top: 3px solid #2D3142;
    }
}

.body {
    width: 100px;
    height: 80px;
    background: #4ECDC4;
    border: 5px solid #2D3142;
    border-radius: 20px 20px 30px 30px;
    margin: -5px auto 0;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.arm {
    width: 15px;
    height: 60px;
    background: #FFD8B8;
    border: 3px solid #2D3142;
    border-radius: 10px;
    position: absolute;
    top: 5px;
}

.arm.left {
    left: -10px;
    transform: rotate(-30deg);
}

.arm.right {
    right: -10px;
    transform: rotate(30deg);
}

.tie {
    width: 20px;
    height: 40px;
    background: #E63946;
    clip-path: polygon(50% 0%, 0% 0%, 25% 100%, 75% 100%, 100% 0%);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    border: 2px solid #2D3142;
}

.slap-effect {
    position: absolute;
    font-size: 3em;
    font-weight: 900;
    color: #E63946;
    text-shadow: 3px 3px 0px #FFE66D;
    opacity: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slap-effect.show {
    animation: slapText 0.6s ease-out;
}

@keyframes slapText {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(10deg);
    }
}

.comic-effect {
    position: absolute;
    font-size: 4em;
    opacity: 0;
    pointer-events: none;
}

.comic-effect.show {
    animation: comicPop 0.8s ease-out;
}

@keyframes comicPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(2) rotate(360deg);
    }
}

.slap-button {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 15px auto;
    padding: 20px 40px;
    font-size: 1.8em;
    font-weight: 900;
    font-family: inherit;
    color: #FFF;
    background: linear-gradient(135deg, #E63946, #D62828);
    border: 5px solid #2D3142;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 
        0 6px 0 #A4161A,
        0 10px 18px rgba(0,0,0,0.3);
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
}

.slap-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.slap-button:hover::before {
    left: 100%;
}

.slap-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #A4161A,
        0 12px 20px rgba(0,0,0,0.4);
}

.slap-button:active {
    transform: translateY(6px);
    box-shadow: 
        0 0 0 #A4161A,
        0 4px 10px rgba(0,0,0,0.3);
}

.button-text {
    position: relative;
    z-index: 1;
}

.instructions {
    text-align: center;
    font-size: 1em;
    color: #666;
    margin-top: 10px;
    font-weight: 600;
}

.name-section {
    background: #FFF;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.2),
        0 0 0 5px #4ECDC4;
    text-align: center;
    animation: popIn 0.6s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.name-section h2 {
    font-size: 2em;
    color: #FF6B35;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #FFE66D;
}

#playerName {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.3em;
    font-family: inherit;
    border: 4px solid #2D3142;
    border-radius: 15px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

#playerName:focus {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.3);
}

.submit-button {
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    font-family: inherit;
    color: #FFF;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border: 4px solid #2D3142;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 0 #2D7A6E;
    transition: all 0.1s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #2D7A6E;
}

.submit-button:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #2D7A6E;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.leaderboard-section {
    background: #FFF;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 0 0 6px #FFE66D;
    animation: popIn 0.6s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: backwards;
}

.leaderboard-title {
    font-size: 2.5em;
    text-align: center;
    color: #FF6B35;
    margin-bottom: 25px;
    text-shadow: 3px 3px 0px #FFE66D;
}

.leaderboard {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    margin: -10px;
}

.loading {
    text-align: center;
    font-size: 1.3em;
    color: #666;
    padding: 30px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFE66D, #FFD93D);
    border: 3px solid #2D3142;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    animation: slideIn 0.4s ease-out backwards;
    min-width: 0;
}

.leaderboard-entry:nth-child(1) {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transform: scale(1.02);
    animation-delay: 0.1s;
}

.leaderboard-entry:nth-child(2) {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    animation-delay: 0.2s;
}

.leaderboard-entry:nth-child(3) {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    animation-delay: 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.leaderboard-entry:hover {
    transform: translateX(5px);
}

.leaderboard-entry:nth-child(1):hover {
    transform: scale(1.02) translateX(5px);
}

.entry-rank {
    font-size: 1.2em;
    min-width: 40px;
    flex-shrink: 0;
}

.entry-name {
    flex: 1;
    color: #2D3142;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.95em;
}

.entry-slaps {
    font-size: 1.1em;
    color: #E63946;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
    flex-shrink: 0;
    white-space: nowrap;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #FFF;
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

footer p {
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Scrollbar styling */
.leaderboard::-webkit-scrollbar {
    width: 12px;
}

.leaderboard::-webkit-scrollbar-track {
    background: #FFE66D;
    border-radius: 10px;
}

.leaderboard::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 10px;
    border: 2px solid #FFE66D;
}

.leaderboard::-webkit-scrollbar-thumb:hover {
    background: #E63946;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 1.8em;
        text-shadow: 
            2px 2px 0px #E63946,
            4px 4px 0px #D62828,
            6px 6px 12px rgba(0,0,0,0.3);
        letter-spacing: 0px;
        white-space: normal;
        word-spacing: 0.1em;
    }

    .subtitle {
        font-size: 1em;
        padding: 6px 15px;
    }

    .tagline {
        font-size: 0.9em;
    }

    .game-section {
        padding: 20px 15px;
        box-shadow: 
            0 8px 20px rgba(0,0,0,0.2),
            0 0 0 5px #FF6B35,
            0 0 0 8px #FFE66D;
    }

    .timer-display {
        padding: 12px;
        margin-bottom: 15px;
    }

    .timer-label {
        font-size: 0.9em;
    }

    .timer-number {
        font-size: 2.5em;
    }

    .counter-label {
        font-size: 1em;
    }

    .counter-number {
        font-size: 2.5em;
    }

    .character-container {
        height: 220px;
    }

    .head {
        width: 90px;
        height: 110px;
    }

    .eyes {
        padding: 35px 20px 0;
    }

    .eye {
        width: 16px;
        height: 16px;
    }

    .eye::after {
        width: 6px;
        height: 6px;
    }

    .mouth {
        width: 35px;
        height: 18px;
    }

    .body {
        width: 80px;
        height: 65px;
    }

    .arm {
        width: 12px;
        height: 50px;
    }

    .tie {
        width: 18px;
        height: 35px;
    }

    .slap-effect {
        font-size: 2em;
    }

    .comic-effect {
        font-size: 2.5em;
    }

    .slap-button {
        font-size: 1.3em;
        padding: 18px 35px;
        border: 5px solid #2D3142;
        box-shadow: 
            0 6px 0 #A4161A,
            0 10px 18px rgba(0,0,0,0.3);
    }

    .slap-button:hover {
        box-shadow: 
            0 6px 0 #A4161A,
            0 10px 18px rgba(0,0,0,0.3);
    }

    .instructions {
        font-size: 1em;
    }

    .upload-section {
        margin: 15px 0;
    }

    .upload-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .reset-face-button {
        font-size: 0.8em;
        padding: 8px 16px;
    }

    .name-section,
    .leaderboard-section {
        padding: 20px;
        box-shadow: 
            0 6px 20px rgba(0,0,0,0.2),
            0 0 0 4px #4ECDC4;
    }

    .name-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    #playerName {
        font-size: 1.1em;
        padding: 12px 18px;
    }

    .submit-button {
        font-size: 1.1em;
        padding: 12px 30px;
    }

    .leaderboard-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .leaderboard-entry {
        font-size: 0.9em;
        padding: 8px 10px;
        margin-bottom: 8px;
        gap: 5px;
        border: 3px solid #2D3142;
    }

    .entry-rank {
        font-size: 1.1em;
        min-width: 32px;
    }

    .entry-name {
        font-size: 0.9em;
    }

    .entry-slaps {
        font-size: 0.95em;
    }

    footer {
        font-size: 0.95em;
        padding: 20px 15px;
    }

    .disclaimer {
        font-size: 0.85em;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .title {
        font-size: 1.4em;
        letter-spacing: 0px;
        white-space: normal;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .tagline {
        font-size: 0.8em;
    }

    .timer-number {
        font-size: 2em;
    }

    .counter-number {
        font-size: 2em;
    }

    .character-container {
        height: 180px;
    }

    .head {
        width: 75px;
        height: 90px;
    }

    .body {
        width: 65px;
        height: 55px;
    }

    .slap-button {
        font-size: 1.1em;
        padding: 15px 30px;
    }

    .upload-button {
        font-size: 0.85em;
        padding: 8px 16px;
    }

    .reset-face-button {
        font-size: 0.75em;
        padding: 6px 12px;
    }

    .leaderboard-entry {
        font-size: 0.8em;
        padding: 7px 8px;
        gap: 4px;
        border: 2px solid #2D3142;
    }

    .entry-rank {
        font-size: 1em;
        min-width: 28px;
    }

    .entry-name {
        font-size: 0.85em;
    }

    .entry-slaps {
        font-size: 0.9em;
    }
}

/* Crop Modal */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crop-modal-content {
    background: #FFF;
    border-radius: 20px;
    padding: 25px;
    max-width: 90vw;
    max-height: 90vh;
    border: 6px solid #FF6B35;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.crop-modal-content h3 {
    font-size: 1.8em;
    color: #FF6B35;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #FFE66D;
}

.crop-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: #f0f0f0;
    border: 4px solid #2D3142;
    border-radius: 15px;
    overflow: hidden;
    max-height: 60vh;
}

#cropCanvas {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    cursor: crosshair;
}

.crop-box {
    position: absolute;
    border: 3px dashed #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.crop-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.crop-button {
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    font-family: inherit;
    color: #FFF;
    border: 4px solid #2D3142;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
    transition: all 0.1s;
}

.crop-button.confirm {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.crop-button.cancel {
    background: linear-gradient(135deg, #E63946, #D62828);
}

.crop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.3);
}

.crop-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 rgba(0,0,0,0.3);
}

/* Success message */
.success-message {
    background: #44A08D;
    color: #FFF;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

