/* MountainGoatMath - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #3d6741;
    --primary-dark: #2d4f31;
    --secondary-color: #4a7c2a;
    --accent-color: #b8912e;
    --danger-color: #c9534f;

    --addition-color: #4a7c2a;
    --subtraction-color: #3d6741;
    --multiplication-color: #6b5535;
    --division-color: #b8912e;

    --bg-color: #f5f0e6;
    --bg-light: #ebe5d8;
    --bg-card: #ffffff;
    --text-color: #2d2d2d;
    --text-muted: #555555;

    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #4cae4c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c9302c;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Header */
.app-header {
    background: rgba(61, 103, 65, 0.97);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-icon {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Main Content */
.app-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Home Page */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    padding: 1rem 1rem 1.5rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text {
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.hero h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-goat {
    flex-shrink: 0;
}

.hero-goat img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: gentleBounce 3s ease-in-out infinite;
}

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

.student-welcome {
    text-align: center;
    margin-bottom: 0.5rem;
}

.student-welcome h2 {
    color: var(--accent-color);
}

/* Dashboard Grid (Streaks + Daily Climb side-by-side) */
.home-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Activity Selection */
.activity-selection {
    margin: 1.5rem 0;
}

.activity-selection h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.activity-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
    display: block;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.activity-card.addition {
    border-color: var(--addition-color);
}

.activity-card.addition:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(74, 124, 42, 0.12));
}

.activity-card.subtraction {
    border-color: var(--subtraction-color);
}

.activity-card.subtraction:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(61, 103, 65, 0.12));
}

.activity-card.multiplication {
    border-color: var(--multiplication-color);
}

.activity-card.multiplication:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(107, 85, 53, 0.12));
}

.activity-card.division {
    border-color: var(--division-color);
}

.activity-card.division:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(184, 145, 46, 0.12));
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.activity-card h3 {
    font-size: 1.2rem;
}

.activity-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.activity-progress {
    margin-top: 1rem;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.activity-progress-bar {
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.5s ease;
}

/* Instructions */
.how-to-play {
    margin: 1.5rem 0;
}

.how-to-play h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.instruction-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.instruction-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    color: #ffffff;
}

/* Modal */
.profile-prompt-modal,
.game-menu-modal,
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fafafa;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

.modal-actions,
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Game Page */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
}

.game-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.game-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.activity-label {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.score-display {
    font-size: 1.2rem;
    font-weight: 600;
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.game-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* First Person View */
.first-person-view {
    flex: 1;
    position: relative;
    background: #000;
}

.first-person-view canvas {
    width: 100%;
    height: 100%;
}

/* Math Problem Overlay */
.math-problem-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 50px;
    border-radius: var(--border-radius);
    border: 3px solid var(--primary-color);
}

.problem-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 3rem;
    font-weight: bold;
}

.operand {
    color: white;
}

.operator {
    color: var(--accent-color);
}

.equals {
    color: var(--text-muted);
}

.answer-display {
    min-width: 80px;
    text-align: center;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
}

.answer-display.blink-correct {
    animation: blinkCorrect 0.6s ease-in-out 4;
    color: #4ade80;
    font-size: 3.5rem;
}

.answer-display.correct-celebrate {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.8), 0 0 20px rgba(74, 222, 128, 0.5);
    animation: celebratePulse 0.5s ease-in-out infinite;
}

@keyframes celebratePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes blinkCorrect {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

/* Wrong Answer Flash */
.wrong-answer-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(217, 83, 79, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}

.wrong-answer-flash.active {
    opacity: 1;
}

/* Turn Hint Alert */
.turn-hint {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    z-index: 50;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.turn-hint.visible {
    opacity: 1;
    visibility: visible;
}

.hint-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: hint-pulse 1s ease-in-out infinite;
}

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

/* Entrance Overlay */
.entrance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #1a1a2e 0%, #0a0a15 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    padding-bottom: 5%;
}

.building-entrance {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.building-roof {
    width: 500px;
    height: 60px;
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
    position: relative;
    z-index: 2;
}

.building-roof::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: #718096;
}

.building-facade {
    width: 460px;
    background: linear-gradient(to bottom, #4a5568 0%, #2d3748 100%);
    padding: 20px 30px 0;
    position: relative;
    border-left: 8px solid #718096;
    border-right: 8px solid #718096;
}

.building-sign {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(240, 173, 78, 0.5);
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.doorway {
    position: relative;
    background: linear-gradient(to bottom, #0a0a15, #1a1a2e);
    border: 8px solid #8B4513;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    min-height: 350px;
}

.door-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
}

.door {
    flex: 1;
    background: linear-gradient(to bottom, #654321, #4a3728);
    border: 4px solid #8B4513;
    position: relative;
}

.door-left {
    transform-origin: left;
    transform: perspective(500px) rotateY(45deg);
    border-radius: 8px 0 0 0;
}

.door-right {
    transform-origin: right;
    transform: perspective(500px) rotateY(-45deg);
    border-radius: 0 8px 0 0;
}

.door::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.door-left::before {
    right: 15px;
}

.door-right::before {
    left: 15px;
}

.building-columns {
    display: flex;
    justify-content: space-between;
    width: 500px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.column {
    width: 40px;
    height: 420px;
    background: linear-gradient(to right, #718096, #a0aec0, #718096);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    height: 20px;
    background: #a0aec0;
    border-radius: 4px;
}

.column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    right: -8px;
    height: 30px;
    background: #718096;
}

.entrance-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.entrance-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.entrance-message {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.entrance-hint {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.3rem;
}

/* Animal Caught Overlay */
.animal-caught-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.animal-container {
    text-align: center;
}

.animal-container canvas {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.petting-message {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--accent-color);
}

.petting-progress {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.petting-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s linear;
}

/* Victory Overlay */
.victory-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.victory-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.victory-content h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.final-stats {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.final-stats p {
    margin: 0.5rem 0;
    color: #ffffff;
}

.victory-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Side Panel */
.game-side-panel {
    width: 300px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

/* Mini Map */
.mini-map-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 10px;
}

.mini-map-container h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.mini-map-container canvas {
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 8px;
}

/* Number Pad - Custom tall buttons */
.number-pad {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px;
}

.number-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.number-row:last-child {
    margin-bottom: 0;
}

.num-btn {
    flex: 1;
    aspect-ratio: 1 / 2;
    background: linear-gradient(180deg, #3a5a8a 0%, #2a4a7a 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 0 #1a3a5a;
    position: relative;
}

.num-btn:hover {
    background: linear-gradient(180deg, #4a6a9a 0%, #3a5a8a 100%);
}

.num-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1a3a5a;
}

.num-label {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.control-row {
    margin-top: 8px;
}

.clear-btn {
    background: linear-gradient(180deg, #8a5a3a 0%, #7a4a2a 100%);
    box-shadow: 0 4px 0 #5a3a1a;
}

.clear-btn:hover {
    background: linear-gradient(180deg, #9a6a4a 0%, #8a5a3a 100%);
}

.enter-btn {
    background: linear-gradient(180deg, #3a8a5a 0%, #2a7a4a 100%);
    box-shadow: 0 4px 0 #1a5a3a;
    flex: 3;
}

.enter-btn:hover {
    background: linear-gradient(180deg, #4a9a6a 0%, #3a8a5a 100%);
}

/* Rotation Controls */
.rotation-controls {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rotate-btn {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-btn:hover {
    background: var(--primary-dark);
}

.rotate-btn:active {
    transform: scale(0.95);
}

/* Menu Stats */
.menu-stats {
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Leaderboard Page */
.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.leaderboard-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.activity-tabs,
.time-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn,
.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover,
.filter-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.tab-btn.active,
.filter-btn.active {
    border-color: var(--primary-color);
    background: rgba(61, 103, 65, 0.12);
}

.leaderboard-table-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: left;
}

.leaderboard-table th {
    background: rgba(61, 103, 65, 0.1);
    font-weight: 600;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
    background: rgba(61, 103, 65, 0.06);
}

.leaderboard-table tbody tr.local-score {
    background: rgba(61, 103, 65, 0.15);
}

.leaderboard-table tbody tr.local-score td:first-child::after {
    content: ' (You)';
    color: var(--accent-color);
}

.loading-indicator {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-scores {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.your-scores-section {
    margin-top: 3rem;
}

.your-scores-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.profile-name-section h2 {
    margin-bottom: 0.5rem;
}

.mastery-section,
.stats-section,
.data-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mastery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mastery-tab {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.mastery-tab:hover {
    background: #e8e8e8;
}

.mastery-tab.active {
    background: var(--primary-color);
    color: #ffffff;
}

.mastery-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mastery-stat {
    text-align: center;
}

.mastery-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mastery-progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mastery-bar {
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.5s ease;
}

.mastery-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.mastery-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.mastery-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
}

.mastery-header {
    background: transparent;
    color: var(--text-muted);
}

.mastery-new {
    background: rgba(0, 0, 0, 0.08);
}

.mastery-learning {
    background: rgba(184, 145, 46, 0.5);
}

.mastery-practicing {
    background: rgba(61, 103, 65, 0.45);
}

.mastery-mastered {
    background: rgba(74, 124, 42, 0.6);
}

.mastery-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.stat-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.data-info {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.data-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-main {
        flex-direction: column;
    }

    .game-side-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .mini-map-container {
        flex: 1;
        min-width: 120px;
    }

    .number-pad {
        flex: 2;
        min-width: 200px;
    }

    .movement-controls {
        flex: 1;
        min-width: 100px;
    }

    .nav-links {
        gap: 1rem;
    }

    .home-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-goat img {
        width: 120px;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .problem-display {
        font-size: 2rem;
    }

    .num-label {
        font-size: 1.4rem;
    }

    .activity-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .home-dashboard {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero {
        padding: 0.75rem 1rem 1rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .hero-goat img {
        width: 100px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .game-side-panel {
        flex-direction: column;
    }

    .mini-map-container,
    .number-pad,
    .movement-controls {
        width: 100%;
    }
}

/* ===========================================
   MOUNTAIN CLIMBING GAME STYLES
   =========================================== */

/* Mountain Game Layout */
.game-main.mountain-game {
    flex-direction: column;
}

.mountain-view {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F4FF 100%);
    min-height: 200px;
    overflow: hidden;
    /* Centering for square canvas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mountain-view canvas {
    display: block;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
}

/* Math Problem Section - Below Mountain View */
.math-problem-section {
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.math-problem-section .problem-display {
    font-size: 2.5rem;
    gap: 12px;
}

/* Number Pad Section - Full Width at Bottom */
.number-pad-section {
    background: var(--bg-light);
    padding: 12px;
}

.number-pad-section .number-pad {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

.number-pad-section .num-btn {
    aspect-ratio: 1.2 / 1;
    padding-top: 0;
    justify-content: center;
}

.number-pad-section .num-label {
    font-size: 1.6rem;
}

/* Mountain Entrance Overlay */
.entrance-overlay.mountain-entrance {
    background: linear-gradient(to bottom, #87CEEB 0%, #B0E0E6 30%, #98D8C8 60%, #4a7c2a 100%);
    align-items: center;
    padding-bottom: 0;
}

.mountain-start-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.mountain-backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('/static/images/goat-climbing-mountain-background.png') center bottom/cover no-repeat;
}

.mountain-start-scene .start-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.75);
    padding: 2rem 3rem;
    border-radius: 20px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mountain-start-scene h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.mountain-start-scene .entrance-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.mountain-start-scene .entrance-hint {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Mountain Victory Overlay */
.victory-content.mountain-victory {
    background: rgba(0, 0, 0, 0.85);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--secondary-color);
}

.victory-content.mountain-victory h2 {
    color: var(--accent-color);
}

.victory-trophy {
    margin: 0 auto 1rem;
    animation: victoryBounce 0.5s ease-in-out infinite alternate;
}

.victory-trophy img {
    width: 100px;
    height: auto;
}

@keyframes victoryBounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

/* Climbing stat in header */
.climbing-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Responsive Styles for Mountain Game */
@media (max-width: 768px) {
    .math-problem-section .problem-display {
        font-size: 2rem;
        gap: 10px;
    }

    .number-pad-section .num-label {
        font-size: 1.4rem;
    }

    .mountain-start-scene .start-content {
        padding: 1.5rem 2rem;
        margin: 1rem;
    }

    .mountain-start-scene h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .game-info {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .activity-label {
        padding: 2px 8px;
        font-size: 0.85rem;
    }

    .score-display,
    .timer-display {
        font-size: 1rem;
    }

    .math-problem-section {
        padding: 12px 15px;
    }

    .math-problem-section .problem-display {
        font-size: 1.8rem;
        gap: 8px;
    }

    .math-problem-section .answer-display {
        min-width: 60px;
        padding: 3px 10px;
    }

    .number-pad-section {
        padding: 8px;
    }

    .number-pad-section .number-pad {
        padding: 8px;
    }

    .number-pad-section .number-row {
        gap: 5px;
        margin-bottom: 5px;
    }

    .number-pad-section .num-btn {
        aspect-ratio: 1.3 / 1;
        border-radius: 6px;
    }

    .number-pad-section .num-label {
        font-size: 1.3rem;
    }

    .mountain-start-scene .start-content {
        padding: 1.2rem 1.5rem;
    }

    .mountain-start-scene h2 {
        font-size: 1.5rem;
    }

    .mountain-start-scene .entrance-message {
        font-size: 1rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

/* Landscape mode optimizations for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .game-header {
        padding: 5px 15px;
    }

    .math-problem-section {
        padding: 8px 15px;
    }

    .math-problem-section .problem-display {
        font-size: 1.6rem;
    }

    .number-pad-section {
        padding: 5px 10px;
    }

    .number-pad-section .number-pad {
        max-width: 400px;
        padding: 5px;
    }

    .number-pad-section .number-row {
        gap: 4px;
        margin-bottom: 4px;
    }

    .number-pad-section .num-btn {
        aspect-ratio: 1.5 / 1;
    }

    .number-pad-section .num-label {
        font-size: 1.1rem;
    }
}

/* ===========================================
   STREAKS SECTION STYLES
   =========================================== */

/* Streak Summary Section (Home Page) */
.streak-summary {
    margin: 0;
    text-align: center;
}

.streak-summary h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.streak-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.streak-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: var(--transition);
}

.streak-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.streak-card.day-streak {
    border-color: #f97316;
}

.streak-card.week-streak {
    border-color: #eab308;
}

.streak-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.streak-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.1;
}

.streak-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.streak-percentile {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    min-height: 1.2rem;
}

.streak-progress {
    margin-top: 1rem;
    text-align: left;
}

.streak-progress .progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.streak-progress .progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.streak-progress .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.streak-card.day-streak .progress-fill {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.streak-card.week-streak .progress-fill {
    background: linear-gradient(90deg, #eab308, #facc15);
}

.streak-info {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Leaderboard Type Tabs */
.leaderboard-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.type-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.type-tab:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

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

/* No Streaks Message */
.no-streaks {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Responsive Streak Styles */
@media (max-width: 768px) {
    .streak-cards {
        gap: 1rem;
    }

    .streak-card {
        min-width: 160px;
        padding: 1.2rem 1.5rem;
    }

    .streak-icon {
        font-size: 2rem;
    }

    .streak-value {
        font-size: 2.5rem;
    }

    .leaderboard-type-tabs {
        justify-content: center;
    }

    .type-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .streak-cards {
        flex-direction: column;
        align-items: center;
    }

    .streak-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ===========================================
   DOUBLE-DIGIT ADDITION/SUBTRACTION STYLES
   =========================================== */

/* Activity Card Colors for Double-Digit */
:root {
    --double-addition-color: #2d5a27;
    --double-subtraction-color: #1f4f3d;
    --double-multiplication-color: #7c3aed;
}

.activity-card.double-addition {
    border-color: var(--double-addition-color);
}

.activity-card.double-addition:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(45, 90, 39, 0.15));
}

.activity-card.double-subtraction {
    border-color: var(--double-subtraction-color);
}

.activity-card.double-subtraction:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(31, 79, 61, 0.15));
}

.activity-card.double-multiplication {
    border-color: var(--double-multiplication-color);
}

.activity-card.double-multiplication:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(124, 58, 237, 0.15));
}

/* Stacked icon style for double-digit cards */
.stacked-icon {
    position: relative;
    display: inline-block;
}

.activity-card.double-addition .activity-icon,
.activity-card.double-subtraction .activity-icon {
    font-size: 3rem;
    position: relative;
}

/* Columnar Problem Section */
.columnar-problem-section {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.columnar-problem {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.columnar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.columnar-spacer {
    width: 60px;
}

.operator-cell {
    width: 60px;
    text-align: center;
    color: var(--accent-color);
}

.columnar-problem .digit {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Carry/Borrow Row */
.carry-borrow-row {
    font-size: 1.5rem;
    opacity: 0.7;
}

.carry-borrow-row .cell {
    width: 60px;
    height: 40px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Input Cells */
.columnar-problem .cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.columnar-problem .cell:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.columnar-problem .cell.selected {
    background: rgba(74, 124, 42, 0.4);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(74, 124, 42, 0.5);
}

.columnar-problem .cell.filled {
    color: var(--secondary-color);
}

.columnar-problem .cell.correct {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    color: #4ade80;
}

.columnar-problem .cell.incorrect {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

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

/* Blink animation for showing correct answer in cells */
.columnar-problem .cell.blink-correct {
    animation: cellBlinkCorrect 0.6s ease-in-out 4;
    color: #4ade80;
    border-color: #4ade80;
}

@keyframes cellBlinkCorrect {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Divider Line */
.columnar-divider {
    width: 100%;
    height: 4px;
    background: white;
    margin: 8px 0;
    border-radius: 2px;
}

/* Partial Products Section (for double-multiplication) */
.partial-products-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.partial-product-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partial-product-row .pp-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.partial-product-row .pp-cell:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
}

.partial-product-row .pp-cell.selected {
    background: rgba(139, 92, 246, 0.4);
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.partial-product-row .pp-cell.filled {
    color: #a78bfa;
}

.partial-product-row .pp-cell.correct {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    color: #4ade80;
}

/* Fixed zero in PP2 row */
.pp-fixed-zero {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: rgba(139, 92, 246, 0.7);
    font-style: italic;
}

/* Answer Row */
.answer-row .cell {
    font-size: 2.5rem;
}

/* Answer row hundreds cell - hidden when not needed */
.answer-row .cell[data-cell="answer-hundreds"].hidden {
    visibility: hidden;
}

/* Double-digit number pad - larger buttons */
.double-digit-mode .number-pad-section .num-btn {
    aspect-ratio: 1 / 1;
}

.double-digit-mode .number-pad-section .num-label {
    font-size: 2rem;
}

/* Clear button for columnar input */
.columnar-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 10px;
}

.columnar-controls .btn {
    padding: 8px 20px;
    font-size: 1rem;
}

/* Answer row thousands cell - hidden when not needed */
.answer-row .cell[data-cell="answer-thousands"].hidden {
    visibility: hidden;
}

/* PP cells hidden state */
.pp-cell.hidden {
    visibility: hidden;
}

/* Responsive Columnar Styles */
@media (max-width: 768px) {
    .columnar-problem {
        font-size: 2rem;
    }

    .columnar-problem .digit,
    .columnar-problem .cell {
        width: 50px;
        height: 50px;
    }

    .columnar-spacer,
    .operator-cell {
        width: 50px;
    }

    .carry-borrow-row .cell {
        width: 50px;
        height: 35px;
        font-size: 1.1rem;
    }

    .answer-row .cell {
        font-size: 2rem;
    }

    .partial-product-row .pp-cell,
    .pp-fixed-zero {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .columnar-problem-section {
        padding: 15px 10px;
    }

    .columnar-problem {
        font-size: 1.6rem;
        gap: 3px;
    }

    .columnar-row {
        gap: 5px;
    }

    .columnar-problem .digit,
    .columnar-problem .cell {
        width: 42px;
        height: 42px;
        border-radius: 6px;
    }

    .columnar-spacer,
    .operator-cell {
        width: 42px;
    }

    .carry-borrow-row {
        font-size: 1.1rem;
    }

    .carry-borrow-row .cell {
        width: 42px;
        height: 30px;
        font-size: 1rem;
    }

    .answer-row .cell {
        font-size: 1.6rem;
    }

    .columnar-divider {
        height: 3px;
        margin: 6px 0;
    }

    .partial-product-row .pp-cell,
    .pp-fixed-zero {
        width: 42px;
        height: 42px;
        border-radius: 6px;
    }

    .partial-product-row {
        gap: 5px;
    }
}

/* ===========================================
   LANDSCAPE TABLET RESPONSIVE (iPad etc.)
   =========================================== */

/* Landscape tablets and larger landscape devices */
@media (orientation: landscape) and (min-width: 768px) and (max-height: 900px) {
    .game-header {
        padding: 6px 15px;
    }

    .game-header .activity-label {
        padding: 3px 10px;
        font-size: 0.95rem;
    }

    /* Use CSS Grid for landscape layout */
    .game-main.mountain-game {
        display: grid;
        grid-template-columns: 40% 60%;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "mountain problem"
            "mountain numpad";
    }

    .mountain-view {
        grid-area: mountain;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .math-problem-section,
    .columnar-problem-section {
        grid-area: problem;
        border-top: none;
        border-left: 3px solid var(--primary-color);
    }

    .number-pad-section {
        grid-area: numpad;
        border-left: 3px solid var(--primary-color);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 10px;
    }

    /* Columnar problem adjustments */
    .columnar-problem-section {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .columnar-problem {
        font-size: 1.8rem;
    }

    .columnar-problem .digit,
    .columnar-problem .cell {
        width: 48px;
        height: 48px;
    }

    .columnar-spacer,
    .operator-cell {
        width: 48px;
    }

    .carry-borrow-row .cell {
        width: 48px;
        height: 34px;
        font-size: 1.1rem;
    }

    .columnar-divider {
        height: 3px;
        margin: 6px 0;
    }

    .answer-row .cell {
        font-size: 1.8rem;
    }

    /* Number pad adjustments for landscape */
    .number-pad-section .number-pad {
        max-width: 350px;
        padding: 8px;
    }

    .number-pad-section .number-row {
        gap: 6px;
        margin-bottom: 6px;
    }

    .number-pad-section .num-btn {
        aspect-ratio: 1.3 / 1;
        padding: 6px;
    }

    .number-pad-section .num-label {
        font-size: 1.3rem;
    }
}

/* Smaller landscape (phones in landscape, smaller tablets) */
@media (orientation: landscape) and (max-height: 500px) {
    .game-header {
        padding: 4px 10px;
    }

    .game-header .activity-label {
        padding: 2px 8px;
        font-size: 0.85rem;
    }

    .game-header .score-display,
    .game-header .timer-display {
        font-size: 0.95rem;
    }

    /* Use CSS Grid for landscape layout */
    .game-main.mountain-game {
        display: grid;
        grid-template-columns: 35% 65%;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "mountain problem"
            "mountain numpad";
    }

    .mountain-view {
        grid-area: mountain;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .math-problem-section,
    .columnar-problem-section {
        grid-area: problem;
        border-top: none;
        border-left: 2px solid var(--primary-color);
        padding: 8px;
    }

    .number-pad-section {
        grid-area: numpad;
        border-left: 2px solid var(--primary-color);
        padding: 6px;
    }

    .columnar-problem {
        font-size: 1.3rem;
        gap: 2px;
    }

    .columnar-problem .digit,
    .columnar-problem .cell {
        width: 32px;
        height: 32px;
        border-radius: 5px;
    }

    .columnar-spacer,
    .operator-cell {
        width: 32px;
    }

    .carry-borrow-row .cell {
        width: 32px;
        height: 24px;
        font-size: 0.85rem;
    }

    .columnar-divider {
        height: 2px;
        margin: 3px 0;
    }

    .answer-row .cell {
        font-size: 1.3rem;
    }

    .number-pad-section .number-pad {
        max-width: 280px;
        padding: 4px;
    }

    .number-pad-section .number-row {
        gap: 4px;
        margin-bottom: 4px;
    }

    .number-pad-section .num-btn {
        aspect-ratio: 1.5 / 1;
        padding: 4px;
    }

    .number-pad-section .num-label {
        font-size: 1rem;
    }

    /* Standard problem display */
    .math-problem-section .problem-display {
        font-size: 1.5rem;
        gap: 8px;
    }
}

/* Double-digit profile view */
.double-digit-info {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.double-digit-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.double-digit-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.double-digit-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.dd-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.dd-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .double-digit-stats {
        gap: 1rem;
    }

    .dd-stat {
        min-width: 80px;
    }

    .dd-stat-value {
        font-size: 1.5rem;
    }
}

/* ===========================================
   LONG DIVISION STYLES
   =========================================== */

/* Long Division Activity Card */
:root {
    --double-division-color: #0891b2;  /* Cyan/teal */
}

.activity-card.double-division {
    border-color: var(--double-division-color);
}

.activity-card.double-division:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(8, 145, 178, 0.15));
}

/* Long Division Layout */
.long-division-section {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 3px solid var(--double-division-color);
    border-bottom: 3px solid var(--double-division-color);
}

.long-division-problem {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Each row is a flex container with fixed-width columns */
.ld-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 50px;
}

/* Column spacing elements */
.ld-divisor-space {
    width: 60px;
    flex-shrink: 0;
}

.ld-bracket-space {
    width: 30px;
    flex-shrink: 0;
}

.ld-empty {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Divisor display */
.ld-divisor {
    width: 60px;
    flex-shrink: 0;
    font-size: 2rem;
    text-align: center;
    color: white;
}

/* Division bracket - using long division symbol */
.ld-bracket {
    width: 30px;
    flex-shrink: 0;
    font-size: 2.5rem;
    color: var(--double-division-color);
    text-align: center;
}

/* Dividend row - add top border for the "roof" */
.ld-dividend-row .ld-dividend-digit {
    border-top: 4px solid var(--double-division-color);
}

/* Dividend digits */
.ld-dividend-digit {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

/* Subtraction lines */
.ld-line {
    width: 50px;
    height: 3px;
    flex-shrink: 0;
    background: white;
}

/* Brought-down digit display */
.ld-bringdown {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    background: rgba(184, 145, 46, 0.15);
    border-radius: 8px;
}

/* Long Division Input Cells */
.ld-cell {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.8rem;
}

.ld-cell:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.ld-cell.selected {
    background: rgba(8, 145, 178, 0.4);
    border-color: var(--double-division-color);
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.5);
}

.ld-cell.filled {
    color: var(--double-division-color);
}

.ld-cell.correct {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    color: #4ade80;
}

.ld-cell.incorrect {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

.ld-cell.blink-correct {
    animation: cellBlinkCorrect 0.6s ease-in-out 4;
    color: #4ade80;
    border-color: #4ade80;
}

/* Quotient cells - special styling */
.ld-quotient {
    background: rgba(8, 145, 178, 0.2);
    border-color: rgba(8, 145, 178, 0.5);
}

.ld-quotient.selected {
    background: rgba(8, 145, 178, 0.4);
    border-color: var(--double-division-color);
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.5);
}

/* Work cells - slightly different styling */
.ld-work {
    background: rgba(255, 255, 255, 0.12);
}

/* Responsive Long Division Styles */
@media (max-width: 768px) {
    .long-division-problem {
        font-size: 1.6rem;
    }

    .ld-row {
        min-height: 45px;
    }

    .ld-divisor-space,
    .ld-divisor {
        width: 50px;
    }

    .ld-bracket-space,
    .ld-bracket {
        width: 25px;
    }

    .ld-bracket {
        font-size: 2rem;
    }

    .ld-divisor {
        font-size: 1.6rem;
    }

    .ld-dividend-digit,
    .ld-cell,
    .ld-bringdown,
    .ld-empty {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .ld-line {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .long-division-section {
        padding: 15px 10px;
    }

    .long-division-problem {
        font-size: 1.3rem;
        gap: 1px;
    }

    .ld-row {
        gap: 3px;
        min-height: 38px;
    }

    .ld-divisor-space,
    .ld-divisor {
        width: 40px;
    }

    .ld-bracket-space,
    .ld-bracket {
        width: 20px;
    }

    .ld-bracket {
        font-size: 1.6rem;
    }

    .ld-divisor {
        font-size: 1.3rem;
    }

    .ld-dividend-digit,
    .ld-cell,
    .ld-bringdown,
    .ld-empty {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        border-radius: 6px;
    }

    .ld-line {
        width: 38px;
        height: 2px;
    }

    .ld-dividend-row .ld-dividend-digit {
        border-top-width: 3px;
    }
}

/* Landscape adjustments for long division */
@media (orientation: landscape) and (min-width: 768px) and (max-height: 900px) {
    .long-division-section {
        grid-area: problem;
        border-top: none;
        border-left: 3px solid var(--double-division-color);
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .long-division-problem {
        font-size: 1.4rem;
    }

    .ld-row {
        min-height: 42px;
    }

    .ld-divisor-space,
    .ld-divisor {
        width: 48px;
    }

    .ld-bracket-space,
    .ld-bracket {
        width: 24px;
    }

    .ld-bracket {
        font-size: 1.8rem;
    }

    .ld-divisor {
        font-size: 1.4rem;
    }

    .ld-dividend-digit,
    .ld-cell,
    .ld-bringdown,
    .ld-empty {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .ld-line {
        width: 42px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .long-division-section {
        padding: 8px;
    }

    .long-division-problem {
        font-size: 1.1rem;
        gap: 1px;
    }

    .ld-row {
        gap: 2px;
        min-height: 30px;
    }

    .ld-divisor-space,
    .ld-divisor {
        width: 35px;
    }

    .ld-bracket-space,
    .ld-bracket {
        width: 18px;
    }

    .ld-bracket {
        font-size: 1.4rem;
    }

    .ld-divisor {
        font-size: 1.1rem;
    }

    .ld-dividend-digit,
    .ld-cell,
    .ld-bringdown,
    .ld-empty {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        border-radius: 5px;
    }

    .ld-line {
        width: 30px;
        height: 2px;
    }
}

/* ===========================================
   MULTI-ACCOUNT STYLES
   =========================================== */

/* Account Indicator (Home Page) */
.account-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.current-account-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Account Picker Modal */
.account-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.account-picker-modal .modal-content {
    max-width: 450px;
    width: 90%;
}

.account-picker-modal h2 {
    margin-bottom: 1.5rem;
}

/* Account List */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.account-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.account-option:hover {
    background: rgba(61, 103, 65, 0.1);
    border-color: var(--primary-color);
}

.account-option.active {
    background: rgba(61, 103, 65, 0.15);
    border-color: var(--primary-color);
}

.account-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.current-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add Account Button in Picker */
.add-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.add-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Account Management Section (Profile Page) */
.account-management {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.account-management h2 {
    margin-bottom: 0.5rem;
}

.account-management .account-info {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.account-item.active {
    background: rgba(61, 103, 65, 0.1);
    border-color: var(--primary-color);
}

.account-item .account-avatar {
    width: 48px;
    height: 48px;
}

.account-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-info-content .account-name {
    font-weight: 600;
}

.account-info-content .current-badge {
    align-self: flex-start;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Add Account Button in Profile */
#add-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#add-account-btn .add-icon {
    font-size: 1.2rem;
}

/* Responsive Multi-Account Styles */
@media (max-width: 768px) {
    .account-indicator {
        padding: 0.6rem 1rem;
        gap: 0.75rem;
    }

    .current-account-name {
        font-size: 1rem;
    }

    .account-option,
    .account-item {
        padding: 0.75rem;
    }

    .account-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .account-item .account-avatar {
        width: 40px;
        height: 40px;
    }

    .account-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .account-item {
        flex-wrap: wrap;
    }

    .account-info-content {
        flex: 1 1 calc(100% - 60px);
    }

    .account-actions {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-end;
    }
}

/* ===========================================
   DAILY CLIMB STYLES
   =========================================== */

/* --- Home Page: Daily Climb Section --- */

.daily-climb-section {
    margin: 0;
}

.daily-climb-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    border: 3px solid #6366f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.daily-climb-card:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.daily-climb-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.daily-climb-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.daily-climb-title {
    flex: 1;
}

.daily-climb-title h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #6366f1;
}

.daily-climb-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.daily-climb-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.daily-climb-summary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dc-summary-item {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dc-empty-msg,
.dc-resume-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.dc-resume-msg {
    color: #f97316;
}

.daily-climb-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Home Page: Daily Climb Configuration Modal --- */

.daily-climb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dc-modal-content {
    max-width: 500px;
}

.dc-modal-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.dc-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.dc-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.dc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

.dc-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.dc-time-select {
    padding: 6px 10px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.dc-time-select:focus {
    outline: none;
    border-color: #6366f1;
}

/* --- Game Page: Daily Climb Progress Bar --- */

.daily-climb-progress {
    display: flex;
    gap: 3px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
}

.dc-progress-segment {
    flex: 1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.dc-seg-completed {
    background: #22c55e;
}

.dc-seg-current {
    background: #6366f1;
    animation: dcSegPulse 1.5s ease-in-out infinite;
}

.dc-seg-upcoming {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes dcSegPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Game Page: Timer Warning --- */

.timer-warning {
    color: #ef4444 !important;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Game Page: Time Goal Reached Notification --- */

.dc-time-goal-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: bold;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dcGoalFadeIn 0.3s ease-out;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

@keyframes dcGoalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- Game Page: Mountain Complete Overlay --- */

.dc-mountain-complete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.dc-mountain-complete-content {
    max-width: 500px;
}

.dc-mountain-stats {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.dc-mountain-stats p {
    margin: 0.4rem 0;
    color: #ffffff;
}

/* --- Game Page: Next Activity Button --- */

.dc-next-activity-btn {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 80;
    background: #6366f1;
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: dcBtnPulse 2s ease-in-out infinite;
}

.dc-next-activity-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

@keyframes dcBtnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(99, 102, 241, 0.7); }
}

/* --- Game Page: Transition and Completion Overlays --- */

.daily-climb-transition,
.daily-climb-complete {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.dc-transition-content,
.dc-complete-content {
    max-width: 500px;
}

.dc-transition-stats,
.dc-total-stats {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.dc-transition-stats p,
.dc-total-stats p {
    margin: 0.4rem 0;
    color: #ffffff;
}

.dc-next-label {
    font-size: 1.2rem;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

/* Results Table */
.dc-results-table-container {
    margin-bottom: 1rem;
    overflow-x: auto;
}

.dc-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dc-results-table th,
.dc-results-table td {
    padding: 8px 12px;
    text-align: left;
    color: #ffffff;
}

.dc-results-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.dc-results-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dc-share-btn {
    margin-bottom: 0.75rem;
}

/* --- Responsive Daily Climb --- */

@media (max-width: 768px) {
    .daily-climb-card {
        padding: 1.2rem 1.5rem;
    }

    .daily-climb-header {
        gap: 0.75rem;
    }

    .dc-next-activity-btn {
        bottom: 8px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .daily-climb-card {
        padding: 1rem;
    }

    .daily-climb-icon {
        font-size: 1.5rem;
    }

    .daily-climb-title h3 {
        font-size: 1.1rem;
    }

    .dc-activity-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dc-time-select {
        width: 100%;
    }

    .dc-next-activity-btn {
        bottom: 5px;
        right: 5px;
        left: 5px;
        text-align: center;
    }
}
