:root {
    --bg-color: #050510;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff9d;
    --neon-yellow: #ffee00;
    --ui-bg: rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: white;
    font-family: 'Orbitron', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas {
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    position: absolute;
    z-index: 10;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 100;
}

.hud-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 110;
}

.hud-item {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
}

#message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff00ff;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 30px #ff00ff;
    z-index: 300;
    pointer-events: auto;
    min-width: 400px;
}

#message-overlay h1 {
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
    margin-bottom: 20px;
    font-size: 3rem;
}

#message-overlay p {
    color: #fff;
    font-size: 1.2rem;
    margin: 15px 0;
}

/* Menu Screen */
#menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: auto;
}

.game-title {
    font-size: 48px;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.menu-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    width: 300px;
    pointer-events: auto;
    background: rgba(5, 5, 16, 0.95);
    padding: 20px;
    border-radius: 10px;
}

.menu-button {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    pointer-events: auto;
    width: 100%;
    white-space: nowrap;
}

.menu-button:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 15px #00ffff;
}

.menu-button.primary {
    border-color: #00ff9d;
    color: #00ff9d;
    font-weight: bold;
    font-size: 18px;
}

.menu-button.primary:hover {
    background: #00ff9d;
    color: #000;
    box-shadow: 0 0 20px #00ff9d;
}

.menu-button.danger {
    border-color: #ff4444;
    color: #ff4444;
}

.menu-button.danger:hover {
    background: #ff4444;
    color: #000;
    box-shadow: 0 0 20px #ff4444;
}

.menu-button.special {
    border-color: #ff00ff;
    color: #ff00ff;
}

.menu-button.special:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 20px #ff00ff;
}

.menu-button.special.selected {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 10px rgba(255, 0, 255, 0.3);
}

.menu-hint {
    color: #888;
    margin-top: 10px;
    font-size: 13px;
}

/* Load Level Modal */

/* Gamepad selection style */
.menu-button.selected {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff, inset 0 0 10px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-button.primary.selected {
    background: rgba(0, 255, 157, 0.2);
    border-color: #00ff9d;
    box-shadow: 0 0 20px #00ff9d, inset 0 0 10px rgba(0, 255, 157, 0.3);
}

.menu-button.danger.selected {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    box-shadow: 0 0 20px #ff4444, inset 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Load Level Modal */
#load-level-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ffff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px #00ffff;
    z-index: 250;
    pointer-events: auto;
    min-width: 400px;
}

#load-level-modal h2 {
    color: #00ffff;
    margin-bottom: 15px;
}

#load-level-modal p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#level-url-input {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #00ffff;
    color: #fff;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    outline: none;
}

#level-url-input:focus {
    box-shadow: 0 0 10px #00ffff;
}

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

.modal-buttons .menu-button {
    width: auto;
    min-width: 100px;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    color: #888;
}

.file-label {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.2s;
}

.file-label:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px #00ffff;
}

#file-name-display {
    color: #00ff00;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Level Selector Modal */
#level-selector-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff00ff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px #ff00ff;
    z-index: 260;
    pointer-events: auto;
    max-width: 90vw;
    max-height: 80vh;
}

.level-selector-content h2 {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 10px;
}

#level-pack-info {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.level-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff #222;
}

.level-list::-webkit-scrollbar {
    width: 8px;
}

.level-list::-webkit-scrollbar-track {
    background: #222;
}

.level-list::-webkit-scrollbar-thumb {
    background: #ff00ff;
    border-radius: 4px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 0, 255, 0.05);
    border: 2px solid #444;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.level-item:hover {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.level-item.selected {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), inset 0 0 10px rgba(255, 0, 255, 0.2);
}

.level-preview {
    width: 80px;
    height: 40px;
    background: #000;
    border: 1px solid #666;
    image-rendering: pixelated;
}

.level-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.level-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.level-meta {
    color: #888;
    font-size: 11px;
    display: flex;
    gap: 15px;
}

.level-number {
    color: #ff00ff;
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
}

/* Pack Description & Info Button */
.pack-description {
    color: #aaa;
    font-size: 0.75rem;
    font-style: italic;
    margin: 5px 0 10px 0;
    line-height: 1.4;
    max-width: 400px;
}

.pack-info-btn {
    background: transparent;
    border: 1px solid #ff00ff;
    color: #ff00ff;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.pack-info-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

#level-pack-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Pause Overlay */
#pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ffff;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 30px #00ffff;
    z-index: 150;
    pointer-events: auto;
}

#pause-overlay h1 {
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    margin-bottom: 20px;
    font-size: 3rem;
}

.pause-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pause-hint {
    color: #888;
    font-size: 0.9rem !important;
    margin-top: 20px !important;
}

#fps-counter {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 5px 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    z-index: 500;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

#editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

#editor-toolbar {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

#editor-toolbar button {
    background: #333;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 15px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
}

#editor-toolbar button:hover {
    background: #00ffff;
    color: #000;
}

#editor-palette {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.palette-item {
    width: 60px;
    height: 40px;
    border: 2px solid #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

.palette-item.selected {
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    background: rgba(0, 255, 255, 0.2);
}

#editor-info {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    text-align: left;
    min-width: 180px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px #ff00ff;
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 30px #ff00ff, 0 0 50px #ff00ff;
    }
}

/* Editor Export Buttons */
#editor-right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    pointer-events: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

#editor-export {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.export-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    pointer-events: all;
}

.export-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px #00ffff;
    transform: scale(1.05);
}



/* Perk Selection Overlay (Rogue Miner) */
#perk-select-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(5, 5, 16, 0.98);
    border: 3px solid #ff00ff;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 0 40px #ff00ff, 0 0 80px rgba(255, 0, 255, 0.3);
    z-index: 300;
    pointer-events: auto;
    min-width: 600px;
}

#perk-select-overlay h1 {
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
    margin-bottom: 10px;
    font-size: 2rem;
}

#perk-depth-info {
    color: #00ffff;
    font-size: 1rem;
    margin-bottom: 30px;
}

.perk-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.perk-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #444;
    padding: 25px 20px;
    width: 160px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.perk-card:hover {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    transform: translateY(-5px);
}

.perk-card.selected {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), inset 0 0 15px rgba(255, 0, 255, 0.2);
    transform: translateY(-8px) scale(1.05);
}

.perk-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.perk-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.perk-desc {
    color: #aaa;
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Help Modal */
#help-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.98);
    border: 3px solid #00ffff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px #00ffff;
    z-index: 270;
    pointer-events: auto;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
}

.help-modal-content h2 {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.help-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 20px;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #00ffff #222;
}

.help-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.help-scroll-area::-webkit-scrollbar-track {
    background: #222;
}

.help-scroll-area::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

.help-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-section h3 {
    color: #ff00ff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ff00ff;
}

.help-subsection {
    margin: 15px 0;
    padding-left: 10px;
    border-left: 2px solid #444;
}

.help-subsection h4 {
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
}

.help-item strong {
    color: #fff;
    min-width: fit-content;
}

.help-icon {
    font-size: 1.2rem;
    min-width: 28px;
    text-align: center;
}

#help-modal .modal-buttons {
    margin-top: 20px;
}

#help-modal .menu-button {
    width: auto;
    min-width: 120px;
}

/* Settings Floating Button */
.settings-float-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    pointer-events: auto;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-float-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px #00ffff;
    transform: rotate(45deg);
}

/* Settings Modal */
#settings-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.98);
    border: 3px solid #00ffff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 30px #00ffff;
    z-index: 1100;
    pointer-events: auto;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
}

.settings-modal-content h2 {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.settings-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #00ffff;
    text-align: left;
}

.settings-section h3 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #00ffff;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    gap: 10px;
}

.setting-row label {
    flex: 0 0 80px;
    font-size: 0.8rem;
    color: #ccc;
}

.setting-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffff;
}

.setting-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px #00ffff;
}

.setting-row select {
    flex: 1;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    color: white;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
}

.setting-row select:focus {
    outline: none;
    box-shadow: 0 0 10px #00ffff;
}

.setting-row span {
    flex: 0 0 40px;
    text-align: right;
    font-size: 0.75rem;
    color: #00ffff;
}

.settings-toggle-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.settings-toggle-btn:hover {
    background: #00ffff;
    color: black;
}

#settings-modal .modal-buttons {
    margin-top: 20px;
}

#settings-modal .menu-button {
    width: auto;
    min-width: 120px;
}

/* Achievement Popup Notification */
#achievement-popup {
    position: fixed;
    top: 80px;
    right: -400px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffd700;
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 400px;
}

#achievement-popup.show {
    right: 20px;
}

.achievement-popup-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.achievement-popup-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-popup-title {
    color: #ffd700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-popup-name {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.achievement-popup-desc {
    color: #aaa;
    font-size: 0.75rem;
}

/* Achievements Modal */
#achievements-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.98);
    border: 3px solid #ffd700;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    z-index: 1100;
    pointer-events: auto;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.achievements-modal-content h2 {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.achievements-stats {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.achievements-stats span {
    color: #ffd700;
    font-weight: bold;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #222;
}

.achievements-list::-webkit-scrollbar {
    width: 8px;
}

.achievements-list::-webkit-scrollbar-track {
    background: #222;
}

.achievements-list::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid #333;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s;
}

.achievement-item.unlocked {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.achievement-item.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.achievement-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
    line-height: 1;
}

.achievement-item.locked .achievement-icon {
    filter: grayscale(1);
    opacity: 0.5;
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

.achievement-item.locked .achievement-name {
    color: #888;
}

.achievement-desc {
    color: #aaa;
    font-size: 0.75rem;
    line-height: 1.3;
}

.achievement-item.locked .achievement-desc {
    color: #666;
}

.achievement-status {
    font-size: 1.2rem;
}

.achievement-item.unlocked .achievement-status::after {
    content: '✓';
    color: #00ff00;
}

#achievements-modal .modal-buttons {
    margin-top: 15px;
}

#achievements-modal .menu-button {
    width: auto;
    min-width: 120px;
}