<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #1f2937;
    --background-color: #fafafa;
    --background-secondary: #f8fafc;
    --white: #ffffff;
    --light-gray: #e5e7eb;
    --medium-gray: #9ca3af;
    --dark-gray: #6b7280;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

body {
    font-family: var(--font-body);
    background: var(--gradient-background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Texture */
.background-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

/* 3D Dice */
.dice-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    position: relative;
}

.dice {
    position: relative;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    animation: rotate 12s infinite linear;
}

.dice.floating {
    animation: float 6s ease-in-out infinite, rotate 12s infinite linear;
}

.dice.rolling {
    animation: roll 1.2s ease-out;
}

.dice-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--white);
    border: 3px solid var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.face.front { transform: rotateY(0deg) translateZ(60px); }
.face.back { transform: rotateY(180deg) translateZ(60px); }
.face.right { transform: rotateY(90deg) translateZ(60px); }
.face.left { transform: rotateY(-90deg) translateZ(60px); }
.face.top { transform: rotateX(90deg) translateZ(60px); }
.face.bottom { transform: rotateX(-90deg) translateZ(60px); }

.dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 2px;
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

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

@keyframes roll {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(180deg); }
    50% { transform: rotateX(180deg) rotateY(360deg); }
    75% { transform: rotateX(270deg) rotateY(540deg); }
    100% { transform: rotateX(360deg) rotateY(720deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.about p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--background-secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Preview Section */
.contact-preview {
    padding: 120px 0;
    background: var(--white);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.contact-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-form-preview {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.email-signup {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--background-secondary);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Game Container */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    flex: 1;
}

.game-header {
    text-align: center;
    margin-bottom: 60px;
}

.game-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 140px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Game Area */
.game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 60px;
}

.dice-section {
    text-align: center;
}

.result-message {
    margin-top: 32px;
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 40px;
    padding: 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.result-message.success {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.result-message.error {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.controls {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.prediction-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.number-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.number-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.number-btn.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.roll-btn {
    width: 100%;
    margin-bottom: 16px;
    padding: 20px;
    font-size: 1.125rem;
}

.reset-btn {
    width: 100%;
    padding: 16px;
}

/* Game History */
.game-history {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.game-history h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--background-secondary);
    margin: 0 -16px;
    padding: 16px;
    border-radius: var(--border-radius);
}

.history-prediction {
    font-weight: 600;
    color: var(--text-primary);
}

.history-result {
    font-weight: 600;
}

.history-result.correct {
    color: var(--success-color);
}

.history-result.incorrect {
    color: var(--error-color);
}

.no-history {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px;
}

/* Content Pages */
.content-page {
    flex: 1;
    padding: 80px 0;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-grid {
    display: grid;
    gap: 48px;
}

.content-section {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.content-section:hover {
    box-shadow: var(--shadow-md);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-section ul,
.content-section ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.stats-explanation {
    display: grid;
    gap: 20px;
}

.stat-item {
    padding: 24px;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

.philosophy {
    text-align: center;
}

.philosophy blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 32px 0;
    padding: 32px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    font-family: var(--font-heading);
}

.mastery-levels {
    display: grid;
    gap: 16px;
}

.level {
    padding: 24px;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.level:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    color: var(--white);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta-section .btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Challenge Mode */
.challenge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    flex: 1;
}

.challenge-header {
    text-align: center;
    margin-bottom: 80px;
}

.challenge-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.challenge-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.mode-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid var(--light-gray);
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 32px;
    display: block;
}

.mode-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    font-size: 1.125rem;
}

.mode-stats {
    margin-bottom: 32px;
}

.mode-stats .stat {
    background: var(--background-secondary);
    margin: 0;
    box-shadow: none;
    border: 1px solid var(--light-gray);
}

/* Challenge Game */
.challenge-game {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    margin-bottom: 60px;
    border: 1px solid var(--light-gray);
}

.challenge-game-header {
    text-align: center;
    margin-bottom: 48px;
}

.challenge-game-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.challenge-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.challenge-stat {
    text-align: center;
    background: var(--background-secondary);
    padding: 24px 32px;
    border-radius: var(--border-radius);
    min-width: 120px;
    border: 1px solid var(--light-gray);
}

.challenge-game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.challenge-controls {
    background: var(--background-secondary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light-gray);
}

/* Leaderboard */
.leaderboard {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 48px;
    border: 1px solid var(--light-gray);
}

.leaderboard h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.leaderboard-content {
    min-height: 300px;
}

.no-scores {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 60px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--background-secondary);
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.score-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.score-rank {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.score-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

/* Contact Page */
.contact-page {
    flex: 1;
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-form-section,
.contact-info-section {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.contact-form-container h2,
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 48px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--success-color);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 24px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-methods {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.method-content p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.method-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.newsletter-signup {
    padding: 32px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light-gray);
}

.newsletter-signup h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.newsletter-signup p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.faq-section {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.faq-item {
    padding: 32px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legal Pages */
.legal-page {
    flex: 1;
    padding: 80px 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
}

.legal-content {
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
}

.legal-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-section ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-left p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid var(--light-gray);
    margin-top: 48px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .game-area {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .challenge-game-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .stats {
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-modes {
        grid-template-columns: 1fr;
    }
    
    .number-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .email-signup {
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dice {
        width: 100px;
        height: 100px;
    }
    
    .face {
        width: 100px;
        height: 100px;
    }
    
    .face.front { transform: rotateY(0deg) translateZ(50px); }
    .face.back { transform: rotateY(180deg) translateZ(50px); }
    .face.right { transform: rotateY(90deg) translateZ(50px); }
    .face.left { transform: rotateY(-90deg) translateZ(50px); }
    .face.top { transform: rotateX(90deg) translateZ(50px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(50px); }
    
    .number-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .feature-card,
    .mode-card,
    .content-section,
    .contact-form-section,
    .contact-info-section {
        padding: 32px;
    }
    
    .legal-content {
        padding: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .dice {
        animation: none;
    }
    
    .dice-glow {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus,
.btn:focus,
.number-btn:focus,
.tab-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #009900;
        --text-primary: #000000;
        --background-color: #ffffff;
        --light-gray: #cccccc;
        --text-secondary: #333333;
    }
}</pre></body></html>