* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #115e59;
    color: white;
    min-height: 100vh;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Start Screen */
.start-screen {
    min-height: 100vh;
    background-color: #115e59;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.start-icon {
    width: 6rem;
    height: 6rem;
    background-color: #0f766e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
    color: #ccfbf1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.start-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.start-subtitle {
    color: #99f6e4;
    margin-bottom: 2rem;
    max-width: 28rem;
    line-height: 1.5;
}

.start-button {
    background-color: #f43f5e;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.start-button:hover {
    background-color: #e11d48;
    transform: scale(1.05);
}

.start-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #5eead4;
    opacity: 0.6;
}

/* Main App */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background-color: rgba(4, 47, 46, 0.5);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #134e4a;
}

.header-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

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

.app-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    flex: 1;
}

.drum-machine-nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.drum-machine-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.level-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
}

.level-button {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.level-button.active {
    color: white;
}

.level-button.accessible {
    color: white;
}

.level-button.accessible:hover {
    color: #99f6e4;
}

.level-button.locked {
    color: #134e4a;
    cursor: not-allowed;
}

.level-button.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: white;
    box-shadow: 0 0 8px white;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem 6rem;
}

.content-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

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

.description-text {
    color: #99f6e4;
    font-size: 1.125rem;
}

.target-text {
    color: rgba(94, 234, 212, 0.6);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.target-instrument {
    color: #fb7185;
    font-weight: bold;
}

/* Puzzles */
.puzzles-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.puzzle-card {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
    transition: all 0.5s;
    border: 1px solid #0f766e;
}

.puzzle-card.locked {
    background-color: rgba(17, 94, 89, 0.3);
    border-color: #0f766e;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.puzzle-card.active {
    background-color: rgba(17, 94, 89, 0.4);
}

.puzzle-card.completed {
    background-color: rgba(17, 94, 89, 0.8);
    border-color: rgba(94, 234, 212, 0.5);
}

.puzzle-locked-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(153, 246, 228, 0.5);
}

.puzzle-locked-content svg {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

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

.puzzle-id {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ccfbf1;
}

.puzzle-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.play-button, .check-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
}

.play-button:hover, .check-button:hover {
    border-color: white;
    color: white;
}

.play-button.playing {
    border-color: #5eead4;
    color: #5eead4;
    box-shadow: 0 0 15px rgba(94, 234, 212, 0.4);
}

.check-button {
    width: 2rem;
    height: 2rem;
}

.check-button.success {
    background-color: #22c55e;
    border-color: #22c55e;
    color: white;
}

.check-button.fail {
    border-color: #ef4444;
    color: #ef4444;
}

.check-button:disabled {
    cursor: not-allowed;
}

.check-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.check-indicator.fail {
    background-color: #ef4444;
}

/* Sequencer Grid */
.sequencer-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sequencer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dm-volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-knob {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.volume-knob:active {
    cursor: grabbing;
}

.volume-knob:hover circle:first-child {
    fill: rgba(255,255,255,0.15);
}

.row-label {
    width: 1.5rem;
    text-align: right;
    font-weight: bold;
    color: rgba(153, 246, 228, 0.7);
    font-size: 0.875rem;
}

.row-steps {
    flex: 1;
    display: flex;
    align-items: center;
}

.beat-group {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.125rem;
}

.beat-divider {
    width: 1px;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem 0 0.25rem;
    border-radius: 9999px;
}

/* Sequencer Steps */
.step {
    width: 1rem;
    height: 1.5rem;
    border-radius: 0.125rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.1s;
    position: relative;
    background-color: rgba(17, 94, 89, 0.4);
    touch-action: manipulation;
}

.step.locked {
    opacity: 0.4;
}

.step.locked.active {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.step.editable {
    cursor: pointer;
}

.step.editable:hover {
    background-color: rgba(20, 184, 166, 0.5);
    border-color: white;
}

.step.editable.active {
    background-color: #fb7185;
    border-color: white;
    box-shadow: 0 0 8px rgba(251, 113, 133, 0.4);
}

.step.current {
    filter: brightness(1.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-color: white;
    z-index: 10;
}

.step.validation-correct {
    background-color: #10b981;
    border-color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.step.validation-wrong {
    background-color: #dc2626;
    border-color: white;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

.step.validation-missing {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #f87171;
    border-style: dashed;
    animation: pulse 1s infinite;
}

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

.step-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, transparent, rgba(255, 255, 255, 0.3));
}

.puzzle-error {
    margin-top: 0.5rem;
    text-align: center;
    color: #fda4af;
    font-size: 0.875rem;
    animation: pulse 1s infinite;
}

/* Level Complete */
.level-complete {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(17, 94, 89, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(94, 234, 212, 0.3);
}

.complete-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.complete-text {
    color: #99f6e4;
    margin-bottom: 1.5rem;
}

.next-level-button {
    background-color: white;
    color: #115e59;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.next-level-button:hover {
    background-color: #ccfbf1;
}

/* Drum Machine */
.drum-machine-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.drum-machine-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 2rem;
    margin-bottom: 1rem;
}

.tempo-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tempo-knob {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.tempo-knob:active {
    cursor: grabbing;
}

.tempo-knob:hover circle:first-child {
    fill: rgba(255,255,255,0.15);
}

.tempo-display {
    color: #fb7185;
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.dm-play-button {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
}

.dm-play-button:hover {
    border-color: white;
    color: white;
    transform: scale(1.05);
}

.dm-play-button.playing {
    border-color: #5eead4;
    color: #5eead4;
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.4);
}

.dm-right-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
}

.advanced-toggle input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #fb7185;
}

.advanced-toggle:hover {
    color: white;
}

.dm-clear-button {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dm-clear-button:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: white;
}

/* Advanced Features */
.dm-advanced-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dm-memory-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.dm-set-sequence-button {
    background: rgba(251, 113, 133, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(251, 113, 133, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dm-set-sequence-button:hover {
    background: rgba(251, 113, 133, 0.3);
    border-color: rgba(251, 113, 133, 0.6);
}

.dm-set-sequence-button.active {
    background: #fb7185;
    color: white;
    border-color: #fb7185;
    box-shadow: 0 0 10px rgba(251, 113, 133, 0.4);
}

.dm-memory-banks {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.dm-memory-bank {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.125rem;
    background-color: rgba(17, 94, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.dm-memory-bank:hover {
    background-color: rgba(20, 184, 166, 0.5);
    border-color: white;
    color: white;
}

.dm-memory-bank.filled {
    background-color: white;
    color: #115e59;
}

.dm-memory-bank.filled:hover {
    background-color: #ccfbf1;
}

.dm-memory-bank.active {
    background-color: #fb7185;
    color: white;
    border-color: #fb7185;
    box-shadow: 0 0 8px rgba(251, 113, 133, 0.6);
}

.dm-memory-bank.active:hover {
    background-color: #f87171;
}

.dm-sequence-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.dm-sequence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dm-sequence-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.dm-sequence-clear {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dm-sequence-clear:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: white;
}

.dm-sequence {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    min-height: 2rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: rgba(17, 94, 89, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-sequence-item {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.25rem;
    background-color: rgba(251, 113, 133, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
}

.dm-sequence-item:hover {
    background-color: rgba(251, 113, 133, 0.5);
    border-color: white;
}

.dm-sequence-item.playing {
    background-color: #5eead4;
    color: #115e59;
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
}

/* Audio Indicator */
.audio-indicator {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    color: rgba(13, 148, 136, 0.3);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive */
/* Mobile-first adjustments for very small screens */
@media (max-width: 374px) {
    .step {
        width: 0.75rem;
        height: 1.25rem;
    }

    .beat-divider {
        margin: 0 0.25rem 0 0.125rem;
        height: 1.5rem;
    }

    .beat-group {
        gap: 0.0625rem;
    }

    .sequencer-row {
        gap: 0.5rem;
    }

    .row-label {
        width: 1.25rem;
        font-size: 0.75rem;
    }

    .app-title {
        font-size: 1.125rem;
    }

    .drum-machine-nav-button {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .header-content {
        padding: 1rem 0.5rem;
    }

    .main-content {
        padding: 1rem 0.5rem 6rem;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .level-selector {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .volume-knob {
        width: 24px;
        height: 24px;
    }

    .tempo-knob {
        width: 48px;
        height: 48px;
    }

    .tempo-display {
        font-size: 0.75rem;
    }

    .drum-machine-controls {
        gap: 1rem;
    }

    .dm-play-button {
        width: 3rem;
        height: 3rem;
    }

    .dm-memory-bank {
        font-size: 0.625rem;
    }

    .dm-sequence-item {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* iPhone and small phones */
@media (min-width: 375px) and (max-width: 639px) {
    .step {
        width: 0.875rem;
        height: 1.375rem;
    }

    .beat-divider {
        margin: 0 0.375rem 0 0.1875rem;
        height: 1.75rem;
    }

    .beat-group {
        gap: 0.09375rem;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .drum-machine-nav-button {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }

    .level-selector {
        gap: 1.25rem;
    }

    .volume-knob {
        width: 28px;
        height: 28px;
    }

    .tempo-knob {
        width: 56px;
        height: 56px;
    }

    .drum-machine-controls {
        gap: 1.5rem;
    }

    .dm-play-button {
        width: 3.5rem;
        height: 3.5rem;
    }

    .dm-memory-bank {
        font-size: 0.625rem;
    }

    .dm-sequence-item {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8125rem;
    }
}

/* Tablets and larger phones */
@media (min-width: 640px) {
    .app-title {
        font-size: 1.875rem;
    }

    .level-selector {
        font-size: 1rem;
    }

    .row-label {
        font-size: 1rem;
    }

    .beat-divider {
        height: 2.5rem;
        margin: 0 1rem 0 0.25rem;
    }

    .step {
        width: 1.25rem;
        height: 2rem;
    }

    .beat-group {
        gap: 0.25rem;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .step {
        width: 1.5rem;
        height: 2.5rem;
    }

    .beat-divider {
        height: 2.5rem;
    }
}

/* Beatdle Styles */
.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.beatdle-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1rem;
}

.beatdle-info {
    text-align: center;
    margin-bottom: 2rem;
}

.beatdle-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 0.5rem;
}

.beatdle-description {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.beatdle-description span {
    color: #5eead4;
    font-weight: 600;
}

.beatdle-beat-counter {
    color: #94a3b8;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.beatdle-beat-counter span {
    color: #5eead4;
    font-size: 1.25rem;
}

.beatdle-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.beatdle-play-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.beatdle-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.beatdle-play-button:active {
    transform: translateY(0);
}

.beatdle-sequencer {
    margin-bottom: 2rem;
}

.beatdle-submit-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.beatdle-submit-button {
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #14b8a6, #5eead4);
    color: #0f172a;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.beatdle-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(94, 234, 212, 0.4);
}

.beatdle-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.beatdle-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.beatdle-guess-history {
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.guess-history-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 1rem;
    text-align: center;
}

.beatdle-guess-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.guess-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 0.5rem;
}

.guess-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guess-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guess-row-label {
    width: 2rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: right;
}

.guess-row-steps {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
}

.guess-step {
    width: 1.25rem;
    height: 1.75rem;
}

.guess-step.correct {
    background: rgba(34, 197, 94, 0.4);
    border-color: #22c55e;
}

.beatdle-complete {
    max-width: 50rem;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 2px solid #5eead4;
    border-radius: 1rem;
    text-align: center;
}

.beatdle-result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #5eead4;
    margin-bottom: 0.5rem;
}

.beatdle-result-message {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.beatdle-solution {
    margin-top: 2rem;
}

.beatdle-solution h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 1rem;
}

.beatdle-next-challenge {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.beatdle-next-challenge span {
    color: #5eead4;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

@media (max-width: 640px) {
    .beatdle-subtitle {
        font-size: 1.25rem;
    }

    .beatdle-play-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .beatdle-submit-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .guess-step {
        width: 1rem;
        height: 1.5rem;
    }

    .beatdle-result-title {
        font-size: 1.5rem;
    }
}
