/* Infinite Craft Game Styles */
:root {
    /* Game-specific colors */
    --craft-primary: #4a6fa5;
    --craft-secondary: #6b8cae;
    --craft-accent: #ff9800;
    --craft-success: #4caf50;
    --craft-warning: #ff9800;
    --craft-danger: #f44336;
    
    /* Element colors */
    --element-earth: #8d6e63;
    --element-water: #2196f3;
    --element-fire: #ff5722;
    --element-air: #9e9e9e;
    --element-default: #e0e0e0;
    
    /* Game dimensions */
    --element-size: 80px;
    --element-gap: 12px;
    --workspace-height: 200px;
    --border-radius: 12px;
}

/* Game header */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--craft-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--craft-primary), var(--craft-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--craft-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Main game area */
.game-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.game-description {
    text-align: center;
    margin-bottom: 2rem;
}

.game-description p {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Welcome screen */
.welcome-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-screen.visible {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    text-align: center;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--craft-primary), var(--craft-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Game controls */
.game-controls {
    margin-bottom: 2rem;
}

.game-controls button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--craft-success);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Welcome tabs */
.welcome-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
}

.tab-btn.active {
    border-color: var(--craft-accent);
    background: rgba(255, 152, 0, 0.1);
    color: var(--craft-accent);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tab content */
.tab-content {
    display: none;
    text-align: left;
}

.tab-content.active {
    display: block;
}

/* Game rules */
.game-rules h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.game-rules ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.game-rules li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
}

.game-rules li:before {
    content: '⚗️';
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.game-rules li:last-child {
    border-bottom: none;
}

/* Discovery preview */
.discovery-preview h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.progress-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.progress-item:hover {
    transform: translateY(-2px);
}

.progress-label {
    font-weight: 600;
    color: #333;
}

.progress-value {
    font-weight: 700;
    color: var(--craft-primary);
    font-size: 1.1rem;
}

/* Achievements */
.achievements-container {
    text-align: center;
}

.achievements-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--craft-primary), var(--craft-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #666;
    font-weight: 600;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: transform 0.3s ease;
    text-align: left;
}

.achievement-item:hover {
    transform: translateY(-2px);
}

.achievement-item.unlocked {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid var(--craft-success);
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.1);
}

.achievement-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.achievement-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-label {
    font-weight: 600;
    color: #333;
}

.stat-value {
    font-weight: 700;
    color: var(--craft-accent);
    font-size: 1.1rem;
}

/* Game board */
.game-board {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-board.visible {
    display: block;
}

/* Game stats */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--craft-primary);
    line-height: 1;
}

/* Game area */
.game-area {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Workspace */
.workspace {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.workspace-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.workspace-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--craft-accent);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.crafting-area {
    margin-bottom: 1.5rem;
}

.drop-zone {
    min-height: var(--workspace-height);
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    padding: 1rem;
}

.drop-zone.dragover {
    border-color: var(--craft-primary);
    background: rgba(74, 111, 165, 0.1);
}

.drop-zone.has-elements {
    justify-content: space-around;
    border-style: solid;
    border-color: var(--craft-primary);
    background: rgba(74, 111, 165, 0.05);
}

.empty-message {
    text-align: center;
    color: #999;
}

.empty-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.empty-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-message small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.workspace-actions {
    text-align: center;
}

.combine-button {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--craft-success);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.combine-button.active {
    display: flex;
}

.combine-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Elements panel */
.elements-panel {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.elements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.elements-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.elements-tools {
    display: flex;
    gap: 0.5rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--craft-primary);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--element-size), 1fr));
    gap: var(--element-gap);
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.element {
    width: var(--element-size);
    height: var(--element-size);
    background: var(--element-default);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    padding: 0.5rem;
    text-align: center;
}

.element:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.element.selected {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
    border: 2px solid var(--craft-primary);
}

.element.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.element-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.element-name {
    font-size: 0.7rem;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.2;
}

/* Element type colors */
.element[data-type="earth"] {
    background: var(--element-earth);
    color: white;
}

.element[data-type="water"] {
    background: var(--element-water);
    color: white;
}

.element[data-type="fire"] {
    background: var(--element-fire);
    color: white;
}

.element[data-type="air"] {
    background: var(--element-air);
    color: white;
}

.element[data-type="nature"] {
    background: #4caf50;
    color: white;
}

.element[data-type="metal"] {
    background: #607d8b;
    color: white;
}

.element[data-type="energy"] {
    background: #ff9800;
    color: white;
}

.element[data-type="life"] {
    background: #e91e63;
    color: white;
}

/* Discovery notification */
.discovery-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--craft-success);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 300px;
}

.discovery-notification.visible {
    transform: translateX(0);
}

.discovery-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.discovery-text {
    flex: 1;
}

.discovery-title {
    font-weight: 700;
    color: var(--craft-success);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.discovery-name {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

/* Game instructions */
.game-instructions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-instructions h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--craft-primary);
}

.feature-item h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Help modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-modal.visible {
    opacity: 1;
    visibility: visible;
}

.help-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.help-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.help-close:hover {
    color: var(--craft-primary);
}

.help-title {
    color: var(--craft-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.help-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-section ul {
    color: #666;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.help-section li {
    margin-bottom: 0.5rem;
}

.help-section strong {
    color: var(--craft-primary);
}

/* Share modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.visible {
    opacity: 1;
    visibility: visible;
}

.share-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    position: relative;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.share-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.share-close:hover {
    color: var(--craft-primary);
}

.share-title {
    color: var(--craft-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.share-result {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Achievement notification */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--craft-success);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 300px;
}

.achievement-notification.visible {
    transform: translateX(0);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-weight: 700;
    color: var(--craft-success);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.achievement-name {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

/* Animations */
@keyframes elementDiscovery {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.element.new-discovery {
    animation: elementDiscovery 0.6s ease-out;
}

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

.combine-effect {
    animation: combineEffect 0.4s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .back-home-btn span,
    .help-btn span {
        display: none;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-main {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-area {
        flex-direction: column;
        gap: 1rem;
    }
    
    .workspace,
    .elements-panel {
        min-width: auto;
    }
    
    .elements-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .element {
        width: 60px;
        height: 60px;
    }
    
    .element-name {
        font-size: 0.6rem;
    }
    
    .tool-btn span {
        display: none;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-display {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .help-content,
    .share-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .discovery-notification,
    .achievement-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .discovery-notification.visible,
    .achievement-notification.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .game-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .welcome-screen,
    .game-board,
    .game-instructions {
        padding: 1rem;
    }
    
    .welcome-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .elements-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .element {
        width: 50px;
        height: 50px;
    }
    
    .element-name {
        font-size: 0.55rem;
    }
}

/* Performance optimizations */
.game-board,
.help-modal,
.share-modal,
.discovery-notification,
.achievement-notification {
    will-change: transform, opacity;
}

.element {
    will-change: transform;
} 