* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #ffffff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 500px;
            width: 100%;
            text-align: center;
        }

        .header {
            margin-bottom: 30px;
        }

        .title {
            font-size: 24px;
            font-weight: 700;
            color: #191F28;
            margin-bottom: 8px;
        }

        .subtitle {
            font-size: 14px;
            color: #6B7684;
        }

        .character-container {
            position: relative;
            margin: 40px auto;
            width: 280px;
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .warning-alert {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
            color: white;
            padding: 12px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            white-space: nowrap;
            z-index: 15;
            animation: pulse 2s ease-in-out infinite;
            display: none;
        }

        .warning-alert.active {
            display: block;
        }

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

        .weather-icon {
            position: absolute;
            top: -10px;
            left: -15px;
            font-size: 40px;
            z-index: 12;
            animation: bounce 1.5s ease-in-out infinite;
            display: none;
        }

        .weather-icon.active {
            display: block;
        }

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

        .speech-bubble {
            position: absolute;
            top: 10px;
            right: -160px;
            background-color: white;
            border: 2px solid #191F28;
            border-radius: 16px;
            padding: 12px 16px;
            max-width: 200px;
            min-width: 180px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .speech-bubble::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 30px;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10px 12px 10px 0;
            border-color: transparent #191F28 transparent transparent;
        }

        .speech-bubble::after {
            content: '';
            position: absolute;
            left: -8px;
            top: 32px;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 8px 10px 8px 0;
            border-color: transparent white transparent transparent;
        }

        .speech-bubble-text {
            font-size: 13px;
            color: #191F28;
            line-height: 1.5;
            font-weight: 500;
            word-break: keep-all;
            min-height: 40px;
        }

        .speech-bubble-text.warning {
            font-weight: 700;
            color: #FF6B6B;
        }

        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }

        .typing-effect {
            overflow: hidden;
            white-space: nowrap;
            display: inline-block;
            animation: typing 1s steps(40, end);
        }

        /* 모바일 대응 */
        @media (max-width: 600px) {
            .speech-bubble {
                right: -140px;
                max-width: 160px;
                min-width: 150px;
                padding: 10px 12px;
            }

            .speech-bubble-text {
                font-size: 12px;
            }
        }

        .character {
            width: 250px;
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.5s ease;
        }

        .character img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 10px 30px rgba(49, 130, 246, 0.2));
            transition: opacity 0.3s ease;
        }

        .character img.fade-out {
            opacity: 0;
        }

        .slider-container {
            margin-top: 30px;
            padding: 20px;
            background-color: #F2F4F6;
            border-radius: 16px;
        }

        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .slider-title {
            font-size: 14px;
            font-weight: 600;
            color: #191F28;
        }

        .slider-time {
            font-size: 18px;
            font-weight: 700;
            color: #3182F6;
        }

        .slider-wrapper {
            position: relative;
            padding: 20px 0;
        }

        .custom-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, #E5E8EB 0%, #3182F6 50%, #E5E8EB 100%);
            outline: none;
            cursor: pointer;
        }

        .custom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white url('기본감자.png') center/cover no-repeat;
            cursor: grab;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            border: 3px solid #3182F6;
        }

        .custom-slider::-webkit-slider-thumb:active {
            cursor: grabbing;
        }

        .custom-slider::-moz-range-thumb {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white url('기본감자.png') center/cover no-repeat;
            cursor: grab;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            border: 3px solid #3182F6;
        }

        .custom-slider::-moz-range-thumb:active {
            cursor: grabbing;
        }

        /* 슬라이더 핸들에 이모지 표시를 위한 추가 스타일 */
        .slider-thumb-label {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 28px;
            pointer-events: none;
            user-select: none;
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 12px;
            font-size: 12px;
            color: #6B7684;
        }

        .temperature-display {
            margin-top: 20px;
            padding: 20px;
            background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
            border-radius: 16px;
            color: white;
            box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
        }

        .date-display {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .temp-value {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .temp-label {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 12px;
        }

        .temp-range {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 12px;
            font-size: 14px;
            opacity: 0.9;
        }

        .temp-range-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .temp-icon {
            font-size: 16px;
        }

        .outfit-recommendation {
            font-size: 18px;
            font-weight: 600;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
        }

        .location-info {
            margin-top: 16px;
            font-size: 14px;
            color: #6B7684;
        }

        .loading {
            display: none;
            margin: 20px auto;
        }

        .loading.active {
            display: block;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #F2F4F6;
            border-top-color: #3182F6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .error {
            display: none;
            padding: 16px;
            background-color: #FFF0F0;
            border-radius: 12px;
            color: #E8344E;
            margin-top: 20px;
        }

        .error.active {
            display: block;
        }

        .retry-button {
            margin-top: 16px;
            padding: 12px 24px;
            background-color: #3182F6;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .retry-button:active {
            background-color: #1B64DA;
        }

        .status-text {
            font-size: 14px;
            color: #6B7684;
            margin-top: 12px;
        }

        .info-section {
            margin-top: 40px;
            padding: 20px;
            background-color: #F8F9FA;
            border-radius: 16px;
            text-align: left;
        }

        .info-section h2 {
            font-size: 18px;
            margin-bottom: 12px;
            color: #191F28;
        }

        .info-section p {
            font-size: 14px;
            line-height: 1.6;
            color: #4E5968;
        }
        
        .ad-placeholder {
            margin-top: 30px;
            width: 100%;
            height: 100px;
            background-color: #F0F0F0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6B7684;
            font-size: 14px;
            border-radius: 12px;
        }

        footer {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #E5E8EB;
            width: 100%;
            text-align: center;
            font-size: 12px;
            color: #8B95A1;
        }

        footer p {
            margin-bottom: 8px;
        }