:root {
    --ice-blue: #E3FDFD;
    --deep-blue: #2B32B2;
    --royal-purple: #6A0572;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif SC', 'Cinzel', serif;
    background: radial-gradient(circle at top left, #A1C4FD, #1488CC, #2B32B2);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Snow Background */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
    opacity: 0.8;
}

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 0.8; }
    100% { transform: translateY(110vh) translateX(20px); opacity: 0.3; }
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.crystal-title h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(161, 196, 253, 0.8);
    letter-spacing: 2px;
}

.crystal-title p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 10px;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 100px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

h2, h3 {
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2 { font-size: 2rem; border-bottom: 2px solid rgba(255,255,255,0.3); display: inline-block; padding-bottom: 10px; }
h3 { font-size: 1.8rem; }

/* Profile */
.twins-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.name-tag {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 5px rgba(43, 50, 178, 0.8);
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.avatar-circle.circle-blue {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.avatar-wrapper:hover .avatar-circle {
    transform: scale(1.1) rotate(5deg);
}

.ice-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: transparent;
    border-bottom: 4px solid gold;
    border-radius: 50%;
    box-shadow: 0 0 10px gold;
    z-index: 2;
}

.ice-crown.crown-silver {
    border-bottom-color: silver;
    box-shadow: 0 0 10px silver;
}

.ice-crown::before, .ice-crown::after {
    content: '❄️';
    position: absolute;
    font-size: 20px;
    top: -15px;
}
.ice-crown::before { left: -10px; }
.ice-crown::after { right: -10px; }

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Magic Button */
.magic-btn {
    background: linear-gradient(45deg, #1fa2ff, #12d8fa, #a6ffcb);
    background-size: 200% 200%;
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(18, 216, 250, 0.6);
    transition: all 0.3s;
    animation: gradientMove 3s ease infinite;
}

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

.magic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(18, 216, 250, 0.9);
}

/* Magic Grid */
.magic-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.magic-item {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    transition: background 0.3s;
}

.magic-item:hover {
    background: rgba(255,255,255,0.2);
}

.magic-item .icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* Food Game */
.food-game-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.food-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.food-slot {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 4px solid #1488CC;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    color: #333;
}

.result-text {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.food-slot.spinning {
    animation: slotBounce 0.2s infinite alternate;
}

@keyframes slotBounce {
    from { transform: scale(0.95); }
    to { transform: scale(1.05); }
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.polaroid {
    background: white;
    padding: 10px 10px 30px 10px;
    color: #333;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    width: 200px;
}

.polaroid:nth-child(even) {
    transform: rotate(3deg);
}

.polaroid:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
}

.polaroid .photo {
    height: 180px;
    width: 100%;
    background-color: #eee;
    margin-bottom: 10px;
}

.polaroid .caption {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #2B32B2;
}

/* Footer */
footer {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 20px;
}

/* Magic Particle */
.magic-particle {
    position: absolute;
    pointer-events: none;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #12d8fa;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: scale(0); }
}
