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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.splash-content {
    text-align: center;
    z-index: 10;
}

.splash-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.splash-title {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.splash-slogan {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.splash-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.start-btn {
    padding: 16px 50px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.splash-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.deco-item {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.deco-item:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.deco-item:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.deco-item:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.deco-item:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.deco-item:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

.deco-item:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.app {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #eee;
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 20%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    padding: 12px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.page {
    display: none;
    padding: 20px;
    min-height: calc(100vh - 60px);
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: #888;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
}

.form-group input::placeholder {
    color: #ccc;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.option-btn {
    padding: 15px 10px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: #667eea;
}

.option-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.option-btn small {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.next-btn, .restart-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.restart-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.suitcase-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    height: 220px;
    position: relative;
}

.suitcase {
    position: relative;
    width: 280px;
}

.suitcase-body {
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-radius: 10px 10px 20px 20px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 3px solid #5D3A1A;
}

.suitcase-lid {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #A0522D 0%, #8B4513 100%);
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: -40px;
    border: 3px solid #5D3A1A;
    border-bottom: none;
    transform-origin: bottom;
    transition: transform 0.5s ease;
}

.suitcase-lid::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background: #FFD700;
    border-radius: 6px;
    border: 2px solid #B8860B;
}

.suitcase-wheels {
    position: absolute;
    bottom: -15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.wheel {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    border: 3px solid #555;
}

.packed-items {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
}

.empty-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    text-align: center;
}

.falling-item {
    font-size: 32px;
    animation: fallIn 0.5s ease forwards;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.falling-item:hover {
    transform: scale(1.2);
}

@keyframes fallIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(20px) rotate(10deg) scale(1.1);
    }
    70% {
        transform: translateY(-10px) rotate(-5deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.items-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.item-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.item-icon:hover {
    background: #f0f4ff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.item-icon.selected {
    background: #f0f4ff;
    border-color: #667eea;
}

.item-icon span:first-child {
    font-size: 28px;
    margin-bottom: 5px;
}

.item-icon span:last-child {
    font-size: 11px;
    color: #666;
}

.weather-preview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}

.weather-preview #weatherIcon {
    font-size: 32px;
    display: block;
    margin-bottom: 5px;
}

.weather-preview #weatherText {
    font-size: 16px;
    font-weight: 500;
}

.clothing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.clothing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.clothing-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clothing-emoji {
    font-size: 28px;
}

.clothing-info {
    display: flex;
    flex-direction: column;
}

.clothing-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.clothing-hint {
    font-size: 12px;
    color: #888;
}

.clothing-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-number {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emergency-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.emergency-item.unchecked {
    animation: pulse-warning 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        background: #f8f9fa;
        border-color: transparent;
    }
    50% {
        background: #fff5f5;
        border-color: #ff6b6b;
    }
}

.emergency-item.checked {
    background: #f0fff4;
    border-color: #52c41a;
}

.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.emergency-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.emergency-checkbox:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.emergency-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.emergency-item .item-emoji {
    font-size: 28px;
    margin-right: 12px;
}

.emergency-item .item-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.emergency-item .item-hint {
    font-size: 12px;
    color: #888;
    margin-right: 10px;
}

.warning-text {
    text-align: center;
    padding: 15px;
    background: #fff5f5;
    color: #ff6b6b;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}

.warning-text.hidden {
    display: none;
}

.receipt-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    overflow-y: auto;
    max-height: 60vh;
}

.receipt {
    width: 100%;
    max-width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: 'Courier New', monospace;
}

.receipt-header {
    text-align: center;
    margin-bottom: 15px;
}

.receipt-header .logo {
    font-size: 32px;
    margin-bottom: 5px;
}

.receipt-header .store-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.receipt-header .store-slogan {
    font-size: 10px;
    color: #888;
    margin-bottom: 10px;
}

.divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 10px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

.receipt-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.item-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.receipt-item.checked {
    text-decoration: line-through;
    color: #999;
}

.receipt-item .item-content {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.receipt-footer {
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.date-row {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 10px;
}

.thank-you {
    text-align: center;
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.summary-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.summary-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

.summary-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.progress-ring-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.progress-ring {
    position: relative;
    width: 150px;
    height: 150px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: #667eea;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-percent {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.ring-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.celebration-message {
    text-align: center;
    padding: 20px;
    background: #f0fff4;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #52c41a;
}

.celebration-message p {
    font-size: 14px;
    color: #333;
    margin: 8px 0;
}

.share-section {
    text-align: center;
    margin-bottom: 20px;
}

.share-hint {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.share-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f093fb;
    border-radius: 50%;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
    z-index: 300;
}

@media (max-width: 420px) {
    .summary-stats {
        gap: 10px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .progress-ring {
        width: 120px;
        height: 120px;
    }
    
    .ring-percent {
        font-size: 22px;
    }
    
    .app {
        width: 100%;
    }
    
    .option-grid {
        gap: 10px;
    }
    
    .option-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .suitcase {
        width: 90%;
    }
    
    .items-bar {
        gap: 10px;
    }
    
    .item-icon {
        padding: 10px 5px;
    }
    
    .item-icon span:first-child {
        font-size: 24px;
    }
    
    .item-icon span:last-child {
        font-size: 10px;
    }
}