/* Merged CSS with enhancements for HD/4K look and responsive design */

/* Reset default margins and ensure smooth rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url("images/cr7_poster15.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    color: #f2f2f2;
    text-align: center;
    animation: bgPulse 60s infinite alternate;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0, transparent 20px),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1) 0, transparent 20px);
    opacity: 0.5;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    animation: starsFall 10s linear infinite;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(2px 2px at 50px 160px, #fff, transparent),
        radial-gradient(2px 2px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 140px, #fff, transparent),
        radial-gradient(2px 2px at 130px 20px, #fff, transparent),
        radial-gradient(2px 2px at 180px 50px, #fff, transparent);
    background-size: 1000px 1000px;
    background-repeat: no-repeat;
}

@keyframes starsFall {
    0% {
        transform: translateY(-1000px);
        opacity: 1;
    }
    100% {
        transform: translateY(1000px);
        opacity: 0;
    }
}

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

header {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.85);
    font-size: 20px;
    padding: 20px;
    border-bottom: 2px solid #FF00FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
    gap: 10px;
}

@keyframes headerGlow {
    0% { border-color: #FF00FF; }
    100% { border-color: #9932CC; }
}

#cr7siu-note {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0 0 0 20px;
    text-align: left;
    max-width: 60%;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

footer {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    border-top: none;
    width: 100%;
    text-align: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    margin-top: auto;
}

footer button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
    min-width: 120px;
}

footer button:hover {
    background: linear-gradient(45deg, #666, #888);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

#cr7-logo {
    width: 80px;
    height: 80px;
    background: url("images/cr7_poster2.jpg") center center no-repeat;
    background-size: cover;
    background-color: #333;
    margin: 0 15px 0 0;
    border: 4px solid #FFD700;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

nav {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: none;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 15px;
}

nav button, .task button, .attribute-card button, #spin-button, #claim-rewards-btn {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav button:hover, .task button:hover:not(:disabled), .attribute-card button:hover, #spin-button:hover:not(:disabled), #claim-rewards-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #666, #888);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

nav button:active, .task button:active, .attribute-card button:active, #spin-button:active, #claim-rewards-btn:active {
    transform: scale(0.95);
}

main {
    display: block;
    text-align: center;
    padding: 30px 20px;
    flex: 1;
}

#tap-to-earn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: url("images/cr7_poster6.jpg") center center no-repeat;
    background-size: cover;
    background-color: #444;
    margin: 30px auto;
    display: block;
    border: 5px solid #FF1493;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    animation: bounce 1s infinite;
}

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

#tap-to-earn-container {
    padding-bottom: 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#tap-to-earn-text, h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px #000;
}

input {
    width: 90%;
    padding: 12px;
    margin: 10px auto;
    border-radius: 8px;
    border: 2px solid #4169E1;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #00FF00;
    outline: none;
}

.task, #social-share {
    max-width: 90%;
    margin: 30px auto;
    text-align: center;
    border: 3px solid #0073e6;
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(60, 60, 60, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.task {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.task:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px;
}

#wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

#wheelCanvas {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 6px solid #FFD700;
    background-color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

#wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid #FF00FF;
    z-index: 2;
}

#spin-the-wheel {
    position: relative;
    margin: 30px auto;
    text-align: center;
}

#spin-button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#spin-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #666, #888);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

#spin-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

#spin-claim-time {
    color: #FFD700;
    font-size: 14px;
    margin-top: 10px;
    text-shadow: 1px 1px 2px #000;
}

#social-share {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.hidden {
    display: none !important;
}

#attributes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.attribute-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s;
}

.attribute-card:hover {
    transform: scale(1.05);
}

.attribute-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FFD700;
}

.attribute-card p {
    font-size: 16px;
    margin: 5px 0;
}

.attribute-card button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.attribute-card button:hover {
    background: #FFD700;
    color: #000;
}

.score-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 15px;
    border-bottom: 2px dotted #7B68EE;
    background: rgba(0, 0, 0, 0.3);
}

.score-left, .score-right {
    width: calc(50% - 15px);
    margin: 5px 0;
    font-size: 14px;
    text-shadow: 1px 1px 2px #000;
}

.score-left p, .score-right p {
    margin: 5px 0;
}

.airdrop-section, .rewards-section, .games-section {
    border: 3px solid #fff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.airdrop-section:hover, .rewards-section:hover, .games-section:hover {
    box-shadow: 0 0 30px #00FF00;
    transform: translateY(-5px);
}

#reward-status {
    font-size: 16px;
    margin-top: 20px;
    color: #FFD700;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    max-width: 80%;
    margin: 20px auto;
    text-shadow: 1px 1px 2px #000;
}

/* Updated styles for the reward toast notification */
#reward-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: linear-gradient(45deg, #333, #444);
    border: 3px solid #FFD700;
    border-radius: 10px;
    padding: 15px 30px;
    z-index: 1000;
    transition: opacity 0.5s;
    display: block;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

#reward-toast.hidden {
    opacity: 0;
}

#reward-toast h3 {
    color: #FFD700;
    margin: 0 0 5px;
    font-size: 18px;
    text-shadow: 1px 1px 2px #000;
}

#reward-toast p {
    color: #fff;
    margin: 0;
    font-size: 16px;
    text-shadow: 1px 1px 2px #000;
}

/* Styles for the Games Page */
.games-section {
    text-align: center;
}

#games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

#games-list button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#games-list button:hover {
    background: linear-gradient(45deg, #FF6347, #FF7F50);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

#game-area {
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

#penaltyCanvas {
    width: 400px;
    height: 300px;
    border: 3px solid #FFD700;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: block;
    margin: 0 auto;
}

#game-instructions {
    font-size: 16px;
    color: #FFD700;
    margin: 15px 0;
    text-shadow: 1px 1px 2px #000;
}

#power-selection {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#power-selection p {
    font-size: 14px;
    color: #FFD700;
    text-shadow: 1px 1px 2px #000;
    margin: 0 10px 0 0;
}

.power-btn {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.power-btn:hover {
    background: linear-gradient(45deg, #666, #888);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

#game-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#game-score {
    font-size: 18px;
    color: #FFD700;
    text-shadow: 1px 1px 2px #000;
}

#game-controls button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#game-controls button:hover {
    background: linear-gradient(45deg, #FF6347, #FF7F50);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

/* Styles for SIUUU Reaction Tap Game */
#siuuu-game-area {
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: center;
}

#siuuu-word-display {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    background: rgba(60, 60, 60, 0.85);
    padding: 20px;
    border: 3px solid #FF00FF;
    border-radius: 10px;
    margin: 15px auto;
    width: 80%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 2px 2px 4px #000;
}

#siuuu-word-display:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFD700;
}

#siuuu-word-display.correct-tap {
    background: rgba(0, 255, 0, 0.5);
    border-color: #00FF00;
    animation: correctFlash 0.3s ease;
}

#siuuu-word-display.incorrect-tap {
    background: rgba(255, 0, 0, 0.5);
    border-color: #FF0000;
    animation: incorrectShake 0.3s ease;
}

@keyframes correctFlash {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes incorrectShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#timer-progress-bar {
    width: 100%;
    height: 10px;
    background: #444;
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
}

#timer-progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #FF4500, #FFD700);
    transition: width 0.1s linear;
}

#siuuu-timer {
    font-size: 18px;
    color: #FF4500;
    margin: 10px 0;
    text-shadow: 1px 1px 2px #000;
}

#siuuu-score, #siuuu-streak, #siuuu-high-score {
    font-size: 18px;
    color: #FFD700;
    margin: 10px 0;
    text-shadow: 1px 1px 2px #000;
}

#siuuu-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#siuuu-controls button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#siuuu-controls button:hover {
    background: linear-gradient(45deg, #FF6347, #FF7F50);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

/* Styles for Tap-to-Juggle Challenge */
#juggle-game-area {
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: center;
}

#juggle-counter {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    background: rgba(60, 60, 60, 0.85);
    padding: 20px;
    border: 3px solid #FF00FF;
    border-radius: 10px;
    margin: 15px auto;
    width: 80%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 2px 2px 4px #000;
}

#juggle-counter:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFD700;
}

#juggle-counter.juggle-anim {
    animation: juggleBounce 0.3s ease;
}

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

#juggle-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#juggle-controls button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#juggle-controls button:hover {
    background: linear-gradient(45deg, #FF6347, #FF7F50);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

/* Styles for CR7 Trivia Quiz */
#trivia-game-area {
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: center;
}

#trivia-question {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    background: rgba(60, 60, 60, 0.85);
    padding: 15px;
    border: 3px solid #FF00FF;
    border-radius: 10px;
    margin: 15px auto;
    width: 90%;
    transition: all 0.2s ease;
    text-shadow: 2px 2px 4px #000;
}

#trivia-question.correct-answer {
    background: rgba(0, 255, 0, 0.5);
    border-color: #00FF00;
    animation: correctFlash 0.3s ease;
}

#trivia-question.incorrect-answer {
    background: rgba(255, 0, 0, 0.5);
    border-color: #FF0000;
    animation: incorrectShake 0.3s ease;
}

#trivia-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.trivia-option {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.trivia-option:hover:not(:disabled) {
    background: linear-gradient(45deg, #666, #888);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

.trivia-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#trivia-score {
    font-size: 18px;
    color: #FFD700;
    margin: 10px 0;
    text-shadow: 1px 1px 2px #000;
}

#trivia-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#trivia-controls button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#trivia-controls button:hover:not(:disabled) {
    background: linear-gradient(45deg, #FF6347, #FF7F50);
    border-color: #FF00FF;
    box-shadow: 0 0 15px #FFD700;
    transform: scale(1.05);
}

#trivia-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Game Over Animation */
#game-area.game-over,
#siuuu-game-area.game-over,
#juggle-game-area.game-over,
#trivia-game-area.game-over {
    animation: gameOverFade 1s ease forwards;
}

@keyframes gameOverFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.95); }
}

/* Responsive Design for Desktop and Mobile */
@media (max-width: 1024px) {
    header {
        padding: 15px;
    }

    #cr7siu-note {
        font-size: 14px;
        max-width: 50%;
        padding: 0 0 0 10px;
    }

    .score-container {
        flex-direction: column;
        gap: 10px;
    }

    .score-left, .score-right {
        width: 100%;
        text-align: center;
    }

    nav ul {
        gap: 10px;
    }

    nav button {
        padding: 10px 20px;
        font-size: 14px;
    }

    #tap-to-earn {
        width: 140px;
        height: 140px;
    }

    #tap-to-earn-text, h2 {
        font-size: 18px;
    }

    footer button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }

    .task {
        padding: 15px;
    }

    #tasks-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    #wheel-container, #wheelCanvas {
        width: 280px;
        height: 280px;
    }

    #wheel-pointer {
        border-bottom: 20px solid #FF00FF;
        top: -18px;
    }

    #spin-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    #attributes-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .attribute-card {
        padding: 15px;
        max-width: 180px;
    }

    .attribute-card h3 {
        font-size: 18px;
    }

    .attribute-card p {
        font-size: 14px;
    }

    .attribute-card button {
        padding: 10px;
        font-size: 14px;
    }

    #reward-status {
        font-size: 14px;
        max-width: 90%;
    }

    #reward-toast h3 {
        font-size: 16px;
    }

    #reward-toast p {
        font-size: 14px;
    }

    #penaltyCanvas {
        width: 350px;
        height: 260px;
    }

    #game-instructions {
        font-size: 14px;
    }

    #game-score {
        font-size: 16px;
    }

    #games-list button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .power-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    #siuuu-word-display {
        font-size: 30px;
        padding: 15px;
    }

    #siuuu-timer, #siuuu-score, #siuuu-streak, #siuuu-high-score {
        font-size: 16px;
    }

    #siuuu-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #juggle-counter {
        font-size: 30px;
        padding: 15px;
    }

    #juggle-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #trivia-question {
        font-size: 20px;
        padding: 12px;
    }

    .trivia-option {
        padding: 8px 16px;
        font-size: 14px;
    }

    #trivia-score {
        font-size: 16px;
    }

    #trivia-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    #cr7siu-note {
        text-align: center;
        padding: 0;
        max-width: 90%;
        font-size: 12px;
    }

    #cr7-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 10px;
    }

    nav ul {
        gap: 8px;
    }

    nav button {
        padding: 8px 16px;
        font-size: 12px;
    }

    #tap-to-earn {
        width: 120px;
        height: 120px;
    }

    #tap-to-earn-text, h2 {
        font-size: 16px;
    }

    footer button {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 90px;
    }

    .task {
        padding: 10px;
    }

    #tasks-container {
        padding: 15px;
    }

    #wheel-container, #wheelCanvas {
        width: 250px;
        height: 250px;
    }

    #wheel-pointer {
        border-bottom: 15px solid #FF00FF;
        top: -15px;
    }

    #spin-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    #attributes-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
        padding: 0 5px;
    }

    .attribute-card {
        padding: 10px;
        max-width: 160px;
    }

    .attribute-card h3 {
        font-size: 16px;
    }

    .attribute-card p {
        font-size: 12px;
    }

    .attribute-card button {
        padding: 8px;
        font-size: 12px;
    }

    #reward-status {
        font-size: 14px;
        max-width: 90%;
    }

    #reward-toast h3 {
        font-size: 14px;
    }

    #reward-toast p {
        font-size: 12px;
    }

    #penaltyCanvas {
        width: 300px;
        height: 220px;
    }

    #game-instructions {
        font-size: 12px;
    }

    #game-score {
        font-size: 14px;
    }

    #games-list button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .power-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    #siuuu-word-display {
        font-size: 28px;
        padding: 15px;
    }

    #siuuu-timer, #siuuu-score, #siuuu-streak, #siuuu-high-score {
        font-size: 16px;
    }

    #siuuu-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #juggle-counter {
        font-size: 28px;
        padding: 15px;
    }

    #juggle-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #trivia-question {
        font-size: 18px;
        padding: 10px;
    }

    .trivia-option {
        padding: 6px 12px;
        font-size: 12px;
    }

    #trivia-score {
        font-size: 14px;
    }

    #trivia-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px;
    }

    #cr7siu-note {
        font-size: 10px;
        max-width: 100%;
    }

    #cr7-logo {
        width: 60px;
        height: 60px;
    }

    nav button {
        padding: 6px 12px;
        font-size: 10px;
    }

    #tap-to-earn {
        width: 100px;
        height: 100px;
    }

    #tap-to-earn-text, h2 {
        font-size: 14px;
    }

    footer button {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
    }

    .task {
        padding: 8px;
    }

    #tasks-container {
        padding: 10px;
    }

    #wheel-container, #wheelCanvas {
        width: 220px;
        height: 220px;
    }

    #wheel-pointer {
        border-bottom: 12px solid #FF00FF;
        top: -12px;
    }

    #spin-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    #attributes-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .attribute-card {
        max-width: none;
    }

    #reward-toast {
        padding: 10px 20px;
    }

    #reward-toast h3 {
        font-size: 12px;
    }

    #reward-toast p {
        font-size: 10px;
    }

    #penaltyCanvas {
        width: 100%;
        max-width: 280px;
        height: 200px;
    }

    #game-instructions {
        font-size: 10px;
    }

    #game-score {
        font-size: 12px;
    }

    #games-list button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .power-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    #siuuu-word-display {
        font-size: 24px;
        padding: 10px;
    }

    #siuuu-timer, #siuuu-score, #siuuu-streak, #siuuu-high-score {
        font-size: 14px;
    }

    #siuuu-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }

    #juggle-counter {
        font-size: 24px;
        padding: 10px;
    }

    #juggle-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }

    #trivia-question {
        font-size: 16px;
        padding: 8px;
    }

    .trivia-option {
        padding: 5px 10px;
        font-size: 10px;
    }

    #trivia-score {
        font-size: 12px;
    }

    #trivia-controls button {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Game Container Styling */
.game-container {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    text-align: center;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

.game-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FFD700;
}

.game-container p {
    font-size: 16px;
    margin-bottom: 15px;
}

.game-container canvas {
    border: 1px solid #fff;
    margin: 10px 0;
    background: #1B5E20;
}

.game-container #penalty-controls,
.game-container #siuuu-timer,
.game-container #timer-progress-bar,
.game-container #siuuu-score,
.game-container #siuuu-streak,
.game-container #siuuu-high-score,
.game-container #juggle-counter,
.game-container #trivia-question,
.game-container #trivia-options,
.game-container #trivia-score {
    margin: 10px 0;
}

#timer-progress-bar {
    height: 10px;
    background: #4CAF50;
    border-radius: 5px;
    transition: width 0.1s linear;
}

.game-container button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.game-container button:disabled {
    background: #666;
    cursor: not-allowed;
}

.game-container button:hover:not(:disabled) {
    background: #FFD700;
    color: #000;
}

/* Animation for Juggle Counter */
.juggle-anim {
    animation: bounce 0.3s ease-out;
}

@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Correct and Incorrect Answer Styles for Trivia */
#trivia-question.correct-answer {
    color: #00FF00;
    animation: blink 0.3s 2;
}

#trivia-question.incorrect-answer {
    color: #FF0000;
    animation: blink 0.3s 2;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Layout for Games Page */
#games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Styles for Airdrop Page */
main#airdrop {
    padding: 30px;
    text-align: center;
}

main#airdrop h2 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 15px;
}

main#airdrop p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.task-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s;
}

.task-card:hover {
    transform: scale(1.05);
}

.task-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #FFD700;
}

.task-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.task-card button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.task-card button:disabled {
    background: #666;
    cursor: not-allowed;
}

.task-card button:hover:not(:disabled) {
    background: #FFD700;
    color: #000;
}

.referral-section {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    color: #fff;
}

.referral-section input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #FFD700;
    background: #333;
    color: #fff;
}

.referral-section button {
    background: linear-gradient(45deg, #444, #666);
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.referral-section button:hover {
    background: #FFD700;
    color: #000;
}

.referral-section p {
    font-size: 18px;
    margin: 10px 0;
}

#referrals-list div {
    font-size: 16px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 5px 0;
}

/* High-DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        background-size: cover;
        background-attachment: fixed;
    }

    #cr7-logo, #tap-to-earn {
        background-size: cover;
    }

    nav button, .task button, .attribute-card button, #spin-button, #claim-rewards-btn, footer button, #games-list button, .power-btn, #siuuu-controls button, #juggle-controls button, #trivia-controls button, .trivia-option, .task-card button, .referral-section button {
        border-width: 3px;
    }
}