/* CSS Variables - Light Theme (Default) */
:root {
    /* Winter Light Theme */
    --bg-primary: #f0f8ff; /* Alice Blue */
    --bg-secondary: #e6f2ff; /* Light Blue */
    --bg-card: #ffffff;
    --text-primary: #2c3e50; /* Dark Blue */
    --text-secondary: #5d6d7e; /* Blue Gray */
    --accent-primary: #3498db; /* Bright Blue */
    --accent-secondary: #2980b9; /* Darker Blue */
    --accent-success: #27ae60; /* Green */
    --accent-warning: #f39c12; /* Orange */
    --accent-danger: #e74c3c; /* Red */
    --accent-ice: #a8d0e6; /* Ice Blue */
    --accent-snow: #ffffff;
    --border-color: #d1d8e0;
    --shadow-sm: 0 1px 3px rgba(52, 152, 219, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(52, 152, 219, 0.1), 0 2px 4px -1px rgba(52, 152, 219, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(52, 152, 219, 0.1), 0 4px 6px -2px rgba(52, 152, 219, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(52, 152, 219, 0.1), 0 10px 10px -5px rgba(52, 152, 219, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
}

.dark-mode {
    /* Winter Night Theme */
    --bg-primary: #1a1a2e; /* Dark Blue */
    --bg-secondary: #16213e; /* Navy Blue */
    --bg-card: #0f3460; /* Darker Blue */
    --text-primary: #e6e6e6;
    --text-secondary: #b8b8b8;
    --accent-primary: #64b5f6; /* Light Blue */
    --accent-secondary: #42a5f5; /* Blue */
    --accent-success: #66bb6a; /* Green */
    --accent-warning: #ffb74d; /* Orange */
    --accent-danger: #ef5350; /* Red */
    --accent-ice: #4fc3f7; /* Ice Blue */
    --accent-snow: #bbdefb; /* Light Blue */
    --border-color: #37474f;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(15, 52, 96, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Snowflakes */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Sound and Theme Toggles */
.sound-toggle, .theme-toggle {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.sound-toggle:hover, .theme-toggle:hover {
    transform: scale(1.1);
}

.sound-toggle {
    top: 20px;
    left: 20px;
    background: var(--accent-primary);
}

.theme-toggle {
    top: 20px;
    right: 20px;
    background: var(--accent-primary);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-mode .theme-toggle .fa-moon {
    display: none;
}

.dark-mode .theme-toggle .fa-sun {
    display: block;
}

.sound-toggle .fa-volume-mute {
    display: none;
}

.muted .sound-toggle .fa-volume-up {
    display: none;
}

.muted .sound-toggle .fa-volume-mute {
    display: block;
}

/* Ice Card Style */
.ice-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.ice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-ice), var(--accent-primary));
}

/* Ice Header */
.ice-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-5px) rotate(2deg); }
}

.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-info {
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.play-now-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 30px;
}

/* Game Stats */
.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.stat-card {
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Game Display */
.game-display {
    flex: 1;
    background: linear-gradient(180deg, var(--accent-ice), var(--bg-secondary));
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.ice-scene {
    background: linear-gradient(180deg, #a8d0e6, #74b9ff);
}

.dark-mode .ice-scene {
    background: linear-gradient(180deg, #1a237e, #0d47a1);
}

/* Peak Target */
.peak-target {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 150px;
    flex-shrink: 0;
    position: relative;
}

.peak {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8)); }
}

.target-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: white;
    margin-top: 10px;
    font-weight: 600;
}

.legendary-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Base Camp */
.base-camp {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 200px;
    text-align: center;
    z-index: 2;
}

.camp-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.camp-label {
    font-size: 0.9rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 5px;
}

/* Penguin Container */
.penguin-container {
    text-align: center;
    margin: 30px 0;
    position: relative;
    height: 200px;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.penguin-image {
    width: 80px;
    height: auto;
    position: absolute;
    bottom: 0;
    transition: bottom 0.1s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    z-index: 3;
}

.snow-dust {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid white;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.snow-dust.climbing {
    opacity: 0.8;
    animation: snow-dust 0.3s ease-in-out infinite alternate;
}

@keyframes snow-dust {
    0% { border-top: 20px solid white; }
    100% { border-top: 40px solid #f0f8ff; }
}

/* Mountain Elements */
.mountain-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cloud {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 20s linear infinite;
}

.cloud-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-2 {
    top: 30%;
    right: 15%;
    animation-delay: 10s;
}

@keyframes float {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

.snow-patch {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
}

.snow-1 {
    width: 100px;
    height: 30px;
    bottom: 150px;
    left: 20%;
}

.snow-2 {
    width: 80px;
    height: 25px;
    bottom: 180px;
    right: 25%;
}

.ice-crystal {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.5;
    animation: sparkle 3s infinite alternate;
}

.crystal-1 {
    top: 40%;
    left: 30%;
}

.crystal-2 {
    top: 60%;
    right: 40%;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Altitude Meter */
.altitude-meter {
    margin-top: auto;
    padding-top: 20px;
    flex-shrink: 0;
    position: relative;
}

.meter-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: white;
    box-shadow: 0 0 10px white;
}

.milestone {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 5px;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Game Instructions */
.game-instructions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-shrink: 0;
}

.instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
}

.instruction i {
    color: var(--accent-primary);
}

.instruction kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
    color: white;
}

/* Mobile Controls */
.mobile-controls-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.mobile-controls-container.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.mobile-action-btn {
    width: 100%;
    padding: 25px;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-action-btn:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.mobile-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ice-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.mobile-action-btn.restart-mode {
    background: linear-gradient(135deg, var(--accent-success), #27ae60);
    margin-top: 10px;
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-shrink: 0;
}

.control-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.ice-play-btn {
    background: linear-gradient(135deg, var(--accent-success), #27ae60);
    color: white;
}

.ice-reset-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.ice-climb-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Achievement Section */
.achievement-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.achievement-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.achievement-content {
    flex: 1;
}

.achievement-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.achievement-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.achievement-progress span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Share Section */
.share-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

.share-body {
    padding: 30px;
}

.share-result {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.result-icon {
    font-size: 3.5rem;
    min-width: 60px;
    text-align: center;
}

.result-text h4 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.result-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.achievement-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.share-stat {
    text-align: center;
}

.share-stat span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.share-stat .stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.share-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    gap: 30px;
}

.qr-code {
    text-align: center;
    flex-shrink: 0;
}

.qr-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    padding: 10px;
    background: white;
}

.qr-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.share-info {
    text-align: right;
    flex: 1;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    justify-content: flex-end;
}

.game-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-primary);
}

.game-tag {
    background: var(--accent-secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.share-url {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.share-hashtag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ice-twitter-btn {
    background: #1da1f2;
    color: white;
}

.ice-copy-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.share-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    border-radius: 20px;
    padding: 40px;
    margin-top: auto;
}

.ice-footer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-stat i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.ice-modal {
    background: linear-gradient(135deg, #e6f2ff, #f0f8ff);
    border: 2px solid var(--accent-ice);
}

.dark-mode .ice-modal {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border: 2px solid var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-stats,
    .achievement-cards,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-info {
        flex-direction: column;
        width: 100%;
    }
    
    .game-stats,
    .achievement-cards,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .share-stats {
        grid-template-columns: 1fr;
    }
    
    .share-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .share-info {
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .game-display {
        padding: 20px;
        min-height: 400px;
    }
    
    .penguin-container {
        height: 150px;
    }
    
    .penguin-image {
        width: 60px;
    }
    
    .peak {
        font-size: 3rem;
    }
    
    .game-instructions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Mobile adjustments for toggles */
    .sound-toggle {
        top: 80px;
        left: 20px;
    }
    
    .theme-toggle {
        top: 80px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .share-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Sound toggle animation */
@keyframes pulse-sound {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sound-toggle.pulsing {
    animation: pulse-sound 1s ease-in-out infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--accent-danger);
}

.modal-body {
    padding: 30px;
}

.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.instruction-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.share-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.share-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-icon {
    font-size: 1.8rem;
}

.share-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.share-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.share-url {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 180px;
}
.share-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.mobile-action-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
    background: linear-gradient(135deg, #666, #444);
}

.mobile-action-btn.disabled i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.trade-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contract-info {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contract-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}
