* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    padding-bottom: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 1;
}

.title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,64L60,69.3C120,75,240,85,360,80C480,75,600,53,720,48C840,43,960,53,1080,58.7C1200,64,1320,64,1380,64L1440,64L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
}

.main-content {
    padding: 0 20px;
}

.turntable-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.turntable-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.pointer-wrapper {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.pointer {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pointer-arrow {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #ff6b6b;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(255, 107, 107, 0.5));
    transition: transform 0.3s ease;
}

.pointer-arrow::after {
    content: '';
    position: absolute;
    top: -28px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid #fff;
}

.pointer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.pointer.winning .pointer-arrow {
    animation: bounceArrow 0.5s ease-out;
}

.pointer.winning .pointer-glow {
    animation: glowPulse 0.5s ease-in-out infinite, winGlow 0.5s ease-out;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}

@keyframes winGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

.turntable {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 0 6px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0s linear;
}

.turntable-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.turntable-prize {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: bottom left;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.turntable-prize:nth-child(1) {
    transform: rotate(0deg);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.turntable-prize:nth-child(2) {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #4ecdc4, #3db5ac);
}

.turntable-prize:nth-child(3) {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #ffe66d, #ffd93d);
}

.turntable-prize:nth-child(4) {
    transform: rotate(135deg);
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.turntable-prize:nth-child(5) {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.turntable-prize:nth-child(6) {
    transform: rotate(225deg);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.turntable-prize:nth-child(7) {
    transform: rotate(270deg);
    background: linear-gradient(135deg, #34d399, #10b981);
}

.turntable-prize:nth-child(8) {
    transform: rotate(315deg);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.prize-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 10px;
    line-height: 1.4;
    transform: rotate(-45deg);
    max-width: 80px;
}

.turntable-prize:nth-child(3) .prize-text,
.turntable-prize:nth-child(8) .prize-text {
    color: #333;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.turntable-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(145deg, #667eea, #764ba2);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.4);
}

.center-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.center-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.turntable-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 25px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}

.spin-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border: none;
    border-radius: 50px;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.45);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(238, 90, 90, 0.55);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.spin-btn:hover:not(:disabled)::before {
    left: 100%;
}

.hint-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
    color: #ffd700;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.stats-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.discover-section {
    padding: 30px 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.attraction-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.attraction-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.attraction-image {
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.attraction-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.attraction-info {
    padding: 12px;
}

.attraction-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.attraction-desc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.attraction-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: #ffb347;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 360px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px 24px;
    text-align: center;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.result-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.modal-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.share {
    background: linear-gradient(135deg, #4ecdc4, #3db5ac);
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.detail-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.detail-body {
    padding: 0;
    text-align: left;
}

.detail-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.detail-info {
    padding: 24px;
}

.detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.detail-features h4,
.detail-reviews h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.detail-features ul {
    list-style: none;
    padding: 0;
}

.detail-features li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: 600;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.meta-icon {
    font-size: 16px;
}

.detail-reviews {
    margin-top: 20px;
}

.review-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.review-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #fff;
    margin-top: 16px;
    font-size: 14px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: spin 0.5s linear infinite;
}

@media (max-width: 375px) {
    .turntable-container {
        width: 250px;
        height: 250px;
    }
    
    .prize-text {
        font-size: 11px;
        max-width: 70px;
    }
    
    .turntable-center {
        width: 85px;
        height: 85px;
    }
    
    .center-inner {
        width: 68px;
        height: 68px;
    }
    
    .center-text {
        font-size: 12px;
    }
    
    .title {
        font-size: 30px;
    }
    
    .pointer-arrow {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 20px;
    }
    
    .pointer-arrow::after {
        left: -8px;
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 14px;
    }
}

@media (min-width: 768px) {
    .turntable-container {
        width: 350px;
        height: 350px;
    }
    
    .prize-text {
        font-size: 16px;
        max-width: 100px;
        padding: 15px;
    }
    
    .turntable-center {
        width: 120px;
        height: 120px;
    }
    
    .center-inner {
        width: 95px;
        height: 95px;
    }
    
    .center-text {
        font-size: 16px;
    }
    
    .pointer-arrow {
        border-left-width: 18px;
        border-right-width: 18px;
        border-top-width: 30px;
    }
    
    .pointer-arrow::after {
        left: -12px;
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 22px;
    }
    
    .attraction-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        max-width: 500px;
    }
    
    .detail-image {
        height: 280px;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .attraction-list {
        grid-template-columns: repeat(4, 1fr);
    }
}