:root {
    --primary-pink: #ff58ae;
    --secondary-pink: #ff9ac9;
    --correct: #4CAF50;
    --partial: #FFC107;
    --wrong: #F44336;
    --higher: #FF9800;
    --lower: #2196F3;
    --bg-pastel: #fff0f7;
    --card-bg: #fffafd;
    --text-dark: #333344;
    --text-light: #888899;
    --card-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #ff58ae 0%, #c9a0ff 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #fff5f9 100%);
    --gradient-button: linear-gradient(135deg, #ff58ae 0%, #ff3f92 100%);
    --gradient-bg: linear-gradient(135deg, #ffe6f0 0%, #f0e6ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.star {
    position: fixed;
    background: rgba(255, 154, 201, 0.5);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 5s infinite;
    z-index: 0;
    opacity: 0;
    animation: twinkle 5s infinite, fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.2) rotate(10deg); }
}

#app {
    max-width: 1169px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 90vh;
}

/* Home Page Styling */
.home-page {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}

.logo-container {
    position: relative;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-weight: 700;
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0px rgba(255, 88, 174, 0.2);
    display: inline-block;
    position: relative;
    z-index: 3;
}

.korean-text {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nunito', sans-serif;
    font-size: 4rem;
    color: rgba(255, 88, 174, 0.15);
    font-weight: 900;
    z-index: 1;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(255, 88, 174, 0.3);
    animation: koreanGlow 3s infinite alternate;
}

@keyframes koreanGlow {
    0% { opacity: 0.7; }
    100% { opacity: 0.9; text-shadow: 0 0 20px rgba(255, 88, 174, 0.5); }
}

.hand-drawn-star {
    position: absolute;
    top: 3px;
    right: -27px;
    font-size: 2rem;
    color: var(--primary-pink);
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
    transform: rotate(15deg);
    z-index: 4;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    margin-top: 60px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.help-button {
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.help-button:hover {
    transform: scale(1.1);
    background: var(--secondary-pink);
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.menu-button {
    position: relative;
    padding: 25px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-button);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(255, 88, 174, 0.3);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.menu-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 88, 174, 0.4);
}

.menu-button:hover::before {
    animation: shine 1.5s infinite;
    opacity: 1;
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.button-icon {
    font-size: 2.5rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.button-text {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.game-container {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    display: none;
    border: 2px solid #ffe6f2;
    position: relative;
    z-index: 2;
    min-height: 80vh;
}

.game-active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(255, 88, 174, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #ff3f92 0%, #ff2b81 100%);
    transform: translateX(-3px);
    box-shadow: 0 6px 12px rgba(255, 88, 174, 0.4);
}

.search-container {
    position: relative;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ffcfe8;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition);
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 88, 174, 0.2);
}

.autocomplete-items {
    position: absolute;
    border: 2px solid #ffcfe8;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 14px 14px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f9f9f9;
}

.autocomplete-text {
    display: flex;
    flex-direction: column;
}

.autocomplete-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.autocomplete-group {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background: #fff0f7;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.item-icon {
    color: var(--primary-pink);
    font-size: 1.2rem;
}

.attempts-container {
    margin-top: 25px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    position: relative;
}

.attempts-container::-webkit-scrollbar {
    width: 8px;
}

.attempts-container::-webkit-scrollbar-track {
    background: #ffe6f2;
    border-radius: 10px;
}

.attempts-container::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 10px;
}

.attempt-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 2px solid #ffe6f2;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.5s ease-out forwards;
}

@keyframes cardAppear {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-with-image {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffe6f2;
    min-height: 60px; /* Altura mínima para manter consistência */
}

.header-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ffe6f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-fallback-icon {
    font-size: 24px;
    color: var(--primary-pink);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-title {
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 18px;
    color: var(--primary-pink);
    text-align: center;
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .card-header-with-image {
        gap: 12px;
    }
    
    .header-image-container {
        width: 50px;
        height: 50px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .header-fallback-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .card-header-with-image {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-image-container {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }

    .detail-item {
        max-width: 100%;
    }
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    min-height: 100px;
    min-width: 160px;
    justify-content: center;
    background: #f8f9fa;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: rotateY(90deg);
    flex: 1;
    max-width: calc(20% - 15px);
}

.detail-item.revealed {
    opacity: 1;
    transform: rotateY(0deg);
    transition: transform 0.6s ease, opacity 0.6s ease, background-color 0.3s ease;
}

.detail-item.already-revealed {
    opacity: 1;
    transform: rotateY(0deg);
    transition: none;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.detail-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.hint-icon {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 0.9rem;
}

.timer-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-top: 25px;
    border: 2px solid #ffe6f2;
    display: none;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.timer-visible {
    display: block;
    animation: fadeIn 0.6s ease;
}

.previous-answer {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.previous-answer span {
    font-weight: 700;
    color: var(--primary-pink);
}

.timer-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.timer-value {
    color: var(--primary-pink);
    font-weight: 800;
    font-size: 1.3rem;
}

.win-message {
    text-align: center;
    padding: 30px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
}

.win-title {
    font-family: 'Fredoka One', cursive;
    color: var(--correct);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.win-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
}

.win-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--correct);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 1rem;
}

.heart {
    color: var(--primary-pink);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-title {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-pink);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    line-height: 1.6;
}

.modal-content p {
    margin-bottom: 15px;
}

.modal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 8px;
}

.hint-example {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
}

.hint-example.correct {
    background: rgba(76, 175, 80, 0.1);
}

.hint-example.partial {
    background: rgba(255, 193, 7, 0.1);
}

.hint-example.wrong {
    background: rgba(244, 67, 54, 0.1);
}

.hint-example.higher {
    background: rgba(255, 152, 0, 0.1);
}

.hint-example.lower {
    background: rgba(33, 150, 243, 0.1);
}

.win-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.next-mode-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(255, 88, 174, 0.3);
}

.next-mode-button:hover {
    background: linear-gradient(135deg, #ff3f92 0%, #ff2b81 100%);
    transform: translateX(2px);
    box-shadow: 0 6px 12px rgba(255, 88, 174, 0.4);
}

.mode-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0px rgba(255, 88, 174, 0.2);
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(255, 88, 174, 0.3);
}

.share-button:hover {
    background: linear-gradient(135deg, #ff3f92 0%, #ff2b81 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 88, 174, 0.4);
}

.share-emoji-grid {
    font-family: monospace;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-button);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.2rem;
}

.autocomplete-item img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #ffe6f2;
}

.detail-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    margin: 0 2px;
    vertical-align: middle;
    border: 1px solid #ffe6f2;
}

.card-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid #ffe6f2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.attempt-card .card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.detail-item .flag-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-item .flag-container img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffe6f2;
}

.card-header .image-container {
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-header .card-image {
    width: 60px;
    height: 60px;
    margin: 0;
}

.card-header .card-title {
    margin-bottom: 0;
    text-align: left;
    flex-grow: 1;
}

.autocomplete-item .image-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.autocomplete-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #ffe6f2;
}

.fallback-icon {
    font-size: 16px;
    color: var(--primary-pink);
}

/* Para os cards */
.attempt-card .image-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attempt-card .card-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ffe6f2;
}

.attempt-card .fallback-icon {
    font-size: 24px;
    color: var(--primary-pink);
}

.mv-frame-container {
  text-align: center;
  margin: 20px 0;
}

.mv-frame {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid #ffe6f2;
}

.song-select-container {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin: 20px 0;
  border: 2px solid #ffe6f2;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.song-button {
    padding: 15px 20px;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(255, 88, 174, 0.3);
    position: relative;
    overflow: hidden;
}

.song-button:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 88, 174, 0.4);
    background: linear-gradient(135deg, #ff3f92 0%, #ff2b81 100%);
}

.song-button:active:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 88, 174, 0.3);
}

.song-button.disabled {
    background: linear-gradient(135deg, #ff9ac9 0%, #ff58ae 70%);
    color: var(--text-dark);
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(255, 88, 174, 0.1);
    transform: none;
    opacity: 0.6;
}

.song-button.disabled span {
    position: relative;
}

.song-button.disabled span::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #888899 20%, #888899 80%, transparent 100%);
    transform: translateY(-50%);
}

.song-button.disabled::before {
    color: var(--text-light);
    content: '❌';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.mv-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 15px 0;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 2px solid #ffe6f2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-pink);
}

.mv-frame-container {
    margin: 20px 0;
}

.mv-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    justify-content: center;
}

.mv-image-container {
    flex: 1;
    max-width: 600px;
}

.mv-frame {
    max-width: 100%;
    max-height: 450px; /* Aumentado para 450px */
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffe6f2;
    object-fit: contain;
}

.mv-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
    padding: 25px;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mv-image-container:hover .zoom-hint {
    opacity: 1;
}

.mv-image-container {
    position: relative;
    cursor: zoom-in;
}

.fullscreen-image-modal {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    padding: 0;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-info {
    padding: 15px;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
}

.modal-image-close {
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    z-index: 1001;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 3px solid #ffe6f2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 88, 174, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 2px 2px 0px rgba(255, 88, 174, 0.2);
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .mv-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mv-stats-container {
        flex-direction: row;
        width: 100%;
        max-width: 400px;
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .mv-frame {
        max-height: 350px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .mv-stats-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .mv-frame {
        max-height: 280px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
}

/* Animações suaves */
.mv-content-wrapper {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: scaleIn 0.4s ease-out;
}

.stat-item:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .toast-notification.hide {
        transform: translateY(-100%);
    }
}

@media (max-width: 1200px) {
    .detail-item {
        max-width: calc(25% - 62px);
    }
}

@media (max-width: 992px) {
    .detail-item {
        max-width: calc(33.333% - 78px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 0;
    }

    .mode-cards {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 3rem;
    }

    .korean-text {
        font-size: 3.2rem;
        top: 34%;
    }

    .hand-drawn-star {
        font-size: 1.5rem;
        top: -10px;
        right: -25px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-top: 50px;
    }

    .menu-button {
        padding: 20px 15px;
        height: 120px;
    }

    .button-icon {
        font-size: 2rem;
    }

    .button-text {
        font-size: 1.1rem;
    }

    .detail-item {
        max-width: calc(50% - 15px);
        min-width: 140px;
    }

    .game-container {
        padding: 20px;
        min-height: 85vh;
    }

    .mode-title {
        font-size: 2rem;
    }
    
    .win-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .next-mode-button, .back-button {
        width: 150px;
        justify-content: center;
    }

    .help-button {
        width: 60px;
    }
}

.help-section {
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

.help-counter {
    background: linear-gradient(135deg, rgba(255, 88, 174, 0.1) 0%, rgba(255, 154, 201, 0.2) 100%);
    border: 2px solid var(--secondary-pink);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--primary-pink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(255, 88, 174, 0.15);
}

.help-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-hint-button, .give-up-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.help-hint-button {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #333;
}

.give-up-button {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
}

.help-hint-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

.give-up-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Special styling for help/giveup cards */
.attempt-card.help-card {
    background: linear-gradient(135deg, var(--bg-pastel) 0%, #fff4fa 100%);
    border: 2px dashed #fcd4e7;
}

.attempt-card.giveup-card {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
    border: 2px dashed rgba(244, 67, 54, 0.5);
}

.help-card .card-title, .giveup-card .card-title {
    font-style: italic;
}

@media (max-width: 768px) {
    .help-buttons {
        flex-direction: column;
        align-items: center;
    }

    .help-hint-button, .give-up-button {
        width: 200px;
        justify-content: center;
    }
}

.hint-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.hint-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ffe6f2;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.hint-option:hover {
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 88, 174, 0.15);
}

.hint-option.selected {
    border-color: var(--primary-pink);
    background: rgba(255, 88, 174, 0.05);
}

.hint-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ffcfe8;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.hint-option.selected .hint-checkbox {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
}

.hint-info {
    flex-grow: 1;
}

.hint-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.hint-value {
  font-size: 0.9rem;
  color: var(--primary-pink);
  font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.modal-button.primary {
    background: var(--gradient-button);
    color: white;
}

.modal-button.primary:hover {
    background: linear-gradient(135deg, #ff3f92 0%, #ff2b81 100%);
    transform: translateY(-2px);
}

.modal-button.secondary {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 2px solid #ffe6f2;
}

.modal-button.secondary:hover {
    background: #fff0f7;
    border-color: var(--primary-pink);
}

@media (max-width: 768px) {
    .hint-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-button {
        width: 100%;
        text-align: center;
    }
}
