/* Home button top left */
.home-btn {
    position: fixed;
    top: 2vh;
    left: 2vh;
    background: rgba(255, 255, 255, 0.95);
    color: #4A90E2;
    border: 0.2vh solid #4A90E2;
    border-radius: 1vh;
    padding: 0.8vh 1.6vh;
    font-size: 1.8vh;
    font-family: inherit;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    height: auto;
}

.home-btn:hover {
    background: #f0f5fd;
    color: #4A90E2;
    transform: translateY(-3px);
    box-shadow: 0 0.6vh 1.6vh rgba(74, 144, 226, 0.2);
}

h1 {
    font-family: 'Luckiest Guy', 'Comic Sans MS', 'Comic Sans', sans-serif;
    letter-spacing: 3px;
    font-size: 5.2vh;
    margin: 0;
    flex-shrink: 0;
    color: #000000;
    text-shadow: 0 0.3vh 0.6vh rgba(74, 144, 226, 0.15);
}

/* Scoreboard Header */
.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8vh;
    padding-bottom: 0.8vh;
    border-bottom: 0.15vh solid #d1d5db;
}

/* Attempt History */
.attempt-history {
    width: 100%;
    max-width: 60vh;
    padding: 1.5vh 2vh;
    padding-bottom: 1.5vh;
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
    min-height: 0;
    background: #f0f5fd;
    border-radius: 1vh;
    border: 0.1vh solid #e5e7eb;
}

.attempt-row {
    display: flex;
    align-items: center;
    gap: 1vh;
    padding: 0.7vh 1vh;
    border-radius: 0.6vh;
    animation: slideInAttempt 0.3s ease-out;
}

@keyframes slideInAttempt {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attempt-number {
    font-size: 1vh;
    font-weight: 700;
    color: #4b5563;
    min-width: 2.2vh;
}

.attempt-tiles {
    display: flex;
    gap: 0.5vh;
}

.attempt-tile {
    width: 3vh;
    height: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1vh;
    font-weight: 700;
    background: #ffffff;
    border: 0.15vh solid #6b7280;
    border-radius: 0.3vh;
    color: #0f172a;
}

.attempt-tile.correct {
    background: #d1fae5;
    border-color: #10b981;
}

.attempt-tile.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
}

.attempt-tile-empty {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.attempt-result {
    margin-left: auto;
    font-size: 1.1vh;
    font-weight: 700;
    padding: 0.3vh 0.7vh;
    border-radius: 0.3vh;
}

.attempt-result.correct {
    background: #d1fae5;
    color: #10b981;
}

.attempt-result.incorrect {
    background: #fee2e2;
    color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Shuffle animations */
@keyframes collapseToCenter {
    0% {
        transform: translate(0, 0) scale(1);
        z-index: var(--stack-index, 0);
    }
    100% {
        transform: translate(var(--collapse-x, 0), var(--collapse-y, 0)) scale(0.9);
        z-index: var(--stack-index, 0);
    }
}

@keyframes expandFromCenter {
    0% {
        transform: translate(var(--collapse-x, 0), var(--collapse-y, 0)) scale(0.9);
        z-index: var(--stack-index, 0);
    }
    100% {
        transform: translate(0, 0) scale(1);
        z-index: var(--stack-index, 0);
    }
}

.tile-collapse {
    animation: collapseToCenter 0.3s ease-in forwards;
}

.tile-expand {
    animation: expandFromCenter 0.3s ease-out forwards;
}

/* Tile jump animations for feedback */
@keyframes jumpCorrect {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2vh);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes jumpIncorrect {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    40% {
        transform: translateY(-1vh) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-1vh) rotate(2deg) scale(1.08);
    }
    52% {
        transform: translateY(-1vh) translateX(-0.3vh) rotate(-2deg) scale(1.05);
    }
    54% {
        transform: translateY(-1vh) translateX(0.3vh) rotate(2deg) scale(1.05);
    }
    56% {
        transform: translateY(-1vh) translateX(-0.3vh) rotate(-2deg) scale(1.05);
    }
    58% {
        transform: translateY(-1vh) translateX(0.3vh) rotate(2deg) scale(1.05);
    }
    60% {
        transform: translateY(-1vh) rotate(0deg) scale(1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.sequence-slot.jump-correct {
    animation: jumpCorrect 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.sequence-slot.jump-incorrect {
    animation: jumpIncorrect 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #eaeae2;
    position: relative;
    color: #333333;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5vh;
    width: 100%;
    height: 100dvh;
    padding: 7vh 0 0 0;
}

.header {
    text-align: center;
    flex-shrink: 0;
}

.subtitle {
    font-size: 1.6vh;
    text-align: center;
    margin: 0.3vh 0 0 0;
    color: #4b5563;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    width: 100%;
    max-width: 60vh;
    padding: 0 2vh 10vh 2vh;
    margin: 0 auto;
    flex-shrink: 1;
    overflow-y: auto;
    max-height: calc(100dvh - 9vh);
}

.info-section {
    display: none;
}

.sequence-rule {
    font-size: 1.6vh;
    font-weight: 600;
    color: #333;
    margin-bottom: 1vh;
    padding: 1.2vh;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.8vh;
    border-left: 0.4vh solid #4A90E2;
    display: none;
}

.tries-remaining {
    font-size: 1.4vh;
    color: #4b5563;
    text-align: center;
    font-weight: 600;
    display: none;
}

/* Attempt Header */
.attempt-header {
    width: 100%;
    padding: 1vh 0;
    border-bottom: 0.2vh solid #d1d5db;
}

.attempt-label {
    font-size: 1.4vh;
    font-weight: 700;
    color: #4A90E2;
    text-align: center;
}

/* Tiles Section */
.tiles-section {
    background: #f0f5fd;
    padding: 1.5vh;
    border-radius: 1vh;
    border: 0.1vh solid #e5e7eb;
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.1);
}

.available-tiles {
    display: flex;
    justify-content: center;
    gap: 1.2vh;
    flex-wrap: wrap;
}

.tile {
    width: 7vh;
    height: 7vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4vh;
    font-weight: 700;
    border-radius: 0.6vh;
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.1);
    min-width: 0;
    min-height: 0;
    border: 0.15vh solid #6b7280;
    position: relative;
}

.available-tile {
    background: #ffffff;
    color: #0f172a;
}

.available-tile:hover {
    background: #f0f4f8;
    border-color: #4A90E2;
    cursor: pointer;
    transform: scale(1.05);
}

.available-tile:active {
    cursor: pointer;
    transform: scale(0.95);
}

/* Sequence Section */
.sequence-section {
    background: #f0f5fd;
    padding: 1.5vh;
    border-radius: 1vh;
    border: 0.1vh solid #e5e7eb;
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.1);
}

.sequence-title {
    font-size: 1.4vh;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5vh;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sequence-slots {
    display: flex;
    justify-content: center;
    gap: 1.2vh;
    flex-wrap: wrap;
    margin-bottom: 1.5vh;
    min-height: 8vh;
}

.sequence-slot {
    width: 7vh;
    height: 7vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4vh;
    font-weight: 800;
    border-radius: 0.6vh;
    transition: all 0.15s ease;
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.1);
    min-width: 0;
    min-height: 0;
}

.sequence-slot.empty-slot {
    background: #ffffff;
    border: 0.15vh solid #6b7280;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sequence-slot.empty-slot:hover {
    background: #f0f4f8;
    border-color: #4A90E2;
}

.sequence-slot.filled-slot {
    background: #ffffff;
    color: #0f172a;
    border: 0.2vh solid #4A90E2;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sequence-slot.correct-position {
    border: 0.2vh solid #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0.4vh rgba(16, 185, 129, 0.3);
}

.sequence-slot.incorrect-position {
    border: 0.2vh solid #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0.4vh rgba(239, 68, 68, 0.3);
}

.sequence-slot.focus-slot {
    border: 0.3vh solid #4A90E2;
    background: #f0f5fd;
    box-shadow: 0 0 0.8vh rgba(74, 144, 226, 0.4);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sequence-slot.focus-slot:hover {
    background: #e8f0fc;
}

/* Controls */
.controls {
    display: flex;
    gap: 1.2vh;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.control-btn {
    padding: 1.2vh 2.5vh;
    border-radius: 1vh;
    border: 0.2vh solid #3B7FD9;
    background: #4A90E2;
    color: #ffffff;
    font-size: 1.8vh;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
    min-height: 4.4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-btn:hover {
    background: #3B7FD9;
    transform: translateY(-3px);
    box-shadow: 0 0.6vh 1.8vh rgba(74, 144, 226, 0.3);
}

.control-btn:active {
    background: #2E5AAD;
    transform: translateY(0);
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary buttons (Reset, Shuffle) */
.secondary-btn {
    background: white;
    color: #4A90E2;
    border: 0.2vh solid #4A90E2;
    padding: 0.9vh 2vh;
    font-size: 1.4vh;
    min-height: 3.6vh;
    flex: 0 0 auto;
    width: 10vh;
    box-shadow: 0 0.2vh 0.6vh rgba(74, 144, 226, 0.15);
}

.secondary-btn:hover {
    background: #f0f5fd;
    color: #4A90E2;
    box-shadow: 0 0.3vh 0.9vh rgba(74, 144, 226, 0.25);
}

.secondary-btn:active {
    background: #e8f0fc;
    transform: translateY(0);
}

/* Primary button (Submit) */
.primary-btn {
    background: #4A90E2;
    color: white;
    border: 0.2vh solid #3B7FD9;
    padding: 1.2vh 2.8vh;
    font-size: 1.8vh;
    min-height: 4.4vh;
    flex: 1 1 auto;
    max-width: 20vh;
    box-shadow: 0 0.4vh 1.6vh rgba(74, 144, 226, 0.3);
}

.primary-btn:hover {
    background: #3B7FD9;
    box-shadow: 0 0.6vh 2vh rgba(74, 144, 226, 0.4);
}

.primary-btn:active {
    background: #2E5AAD;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* Messages */
.message {
    font-size: 1.6vh;
    font-weight: 700;
    padding: 1.2vh;
    border-radius: 1vh;
    text-align: center;
    margin: 1vh 0;
    display: none !important;
    min-height: 0;
    animation: slideInMsg 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInMsg {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message:not(:empty) {
    display: block;
}

.message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 0.2vh solid #10b981;
}

.message.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 0.2vh solid #ef4444;
}

.message.incorrect {
    background: #fef3c7;
    color: #78350f;
    border: 0.2vh solid #f59e0b;
}

.message.warning {
    background: #fef3c7;
    color: #78350f;
    border: 0.2vh solid #fcd34d;
}

/* Share Button */
#shareBtn {
    padding: 1.2vh 2.5vh;
    border-radius: 1vh;
    border: 0.2vh solid #3B7FD9;
    background: #4A90E2;
    color: #ffffff;
    font-size: 1.8vh;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
    min-height: 4.4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 4vh);
    z-index: 100;
}

#shareBtn:not(.hidden) {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

#shareBtn:not(.hidden):hover {
    background: #3B7FD9;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 0.6vh 1.8vh rgba(74, 144, 226, 0.3);
}

#shareBtn:not(.hidden):active {
    background: #2E5AAD;
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
}

#shareBtn.hidden {
    display: none;
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Modal slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mootly-modal-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Result Grid Styling */
.result-grid {
    display: flex;
    gap: 0.6vh;
    justify-content: center;
    margin: 1.2vh 0;
    flex-wrap: wrap;
}

.result-grid-outlier-row {
    justify-content: center;
}

.result-grid-spacer {
    height: 0.4vh;
}

.result-tile {
    width: 5.2vh;
    height: 5.2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8vh;
    font-weight: 800;
    border-radius: 0.6vh;
    border: 0.15vh solid #ccc;
    color: #ffffff;
}

.result-tile-correct {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0.2vh 0.6vh rgba(16, 185, 129, 0.3);
}

.result-tile-wrong-position {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 0.2vh 0.6vh rgba(201, 213, 225, 0.3);
    color: #0f172a;
}

.result-tile-incorrect {
    background: #e5e7eb;
    border-color: #d1d5db;
    box-shadow: 0 0.2vh 0.6vh rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.result-tile-outlier {
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0.2vh 0.6vh rgba(239, 68, 68, 0.3);
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .app {
        gap: 1.2vh;
        padding: 5.5vh 0 0 0;
    }
    
    .game-container {
        gap: 1.2vh;
        padding: 0 1.5vh 10vh 1.5vh;
        max-height: calc(100dvh - 5.5vh);
    }
    
    h1 {
        font-size: 4vh;
        letter-spacing: 2px;
        margin: 0;
    }
    
    .subtitle {
        font-size: 1.3vh;
        margin: 0.2vh 0 0 0;
    }
    
    .sequence-title {
        font-size: 1.2vh;
    }
    
    .tile, .sequence-slot {
        width: 6vh;
        height: 6vh;
        font-size: 2vh;
    }
    
    .available-tiles, .sequence-slots {
        gap: 0.8vh;
    }
    
    .control-btn {
        font-size: 1.5vh;
        padding: 1.1vh 2.2vh;
        min-height: 4vh;
    }
    
    .secondary-btn {
        padding: 0.8vh 1.6vh;
        font-size: 1.2vh;
        min-height: 3.4vh;
    }
    
    .primary-btn {
        padding: 1vh 2.2vh;
        font-size: 1.6vh;
        min-height: 4.2vh;
        max-width: 18vh;
    }
    
    .home-btn {
        font-size: 1.5vh;
        padding: 0.8vh 1.6vh;
        top: 1.2vh;
        left: 1.2vh;
    }
    
    .message {
        font-size: 1.4vh;
        min-height: 2.2vh;
    }
    
    .sequence-rule {
        font-size: 1.4vh;
        padding: 1vh;
        margin-bottom: 0.8vh;
    }
    
    .tries-remaining {
        font-size: 1.2vh;
    }
    
    .attempt-history {
        padding: 1.2vh 1.5vh;
    }
    
    .attempt-row {
        gap: 0.7vh;
        padding: 0.6vh 0.8vh;
    }
    
    .attempt-number {
        font-size: 0.9vh;
        min-width: 2vh;
    }
    
    .attempt-tile {
        width: 2.6vh;
        height: 2.6vh;
        font-size: 0.8vh;
    }
    
    .attempt-result {
        font-size: 1vh;
        padding: 0.2vh 0.5vh;
    }
    
    .result-tile {
        width: 4.6vh;
        height: 4.6vh;
        font-size: 1.6vh;
    }
    
    .result-grid {
        gap: 0.5vh;
        margin: 1vh 0;
    }
    
    .tiles-section, .sequence-section {
        padding: 1.2vh;
    }
}

@media (max-width: 360px) {
    .app {
        gap: 1vh;
        padding: 5vh 0 0 0;
    }
    
    .game-container {
        gap: 1vh;
        padding: 0 1.2vh 10vh 1.2vh;
        max-height: calc(100dvh - 5vh);
    }
    
    h1 {
        font-size: 3.6vh;
        letter-spacing: 1.5px;
    }
    
    .subtitle {
        font-size: 1.2vh;
        margin: 0.15vh 0 0 0;
    }
    
    .sequence-title {
        font-size: 1.1vh;
    }
    
    .tile, .sequence-slot {
        width: 5.5vh;
        height: 5.5vh;
        font-size: 1.6vh;
    }
    
    .available-tiles, .sequence-slots {
        gap: 0.6vh;
    }
    
    .control-btn {
        font-size: 1.4vh;
        padding: 0.9vh 1.8vh;
        min-height: 3.8vh;
    }
    
    .secondary-btn {
        padding: 0.7vh 1.4vh;
        font-size: 1.1vh;
        min-height: 3.2vh;
    }
    
    .primary-btn {
        padding: 0.9vh 2vh;
        font-size: 1.5vh;
        min-height: 4vh;
        max-width: 16vh;
    }
    
    .home-btn {
        font-size: 1.3vh;
        padding: 0.7vh 1.4vh;
        top: 1vh;
        left: 1vh;
    }
    
    .attempt-history {
        padding: 1.1vh 1.3vh;
    }
    
    .attempt-row {
        gap: 0.6vh;
        padding: 0.5vh 0.7vh;
    }
    
    .attempt-number {
        font-size: 0.8vh;
        min-width: 1.8vh;
    }
    
    .attempt-tile {
        width: 2.3vh;
        height: 2.3vh;
        font-size: 0.7vh;
    }
    
    .attempt-result {
        font-size: 0.9vh;
        padding: 0.2vh 0.4vh;
    }
    
    .result-tile {
        width: 4.2vh;
        height: 4.2vh;
        font-size: 1.4vh;
    }
    
    .result-grid {
        gap: 0.4vh;
        margin: 0.8vh 0;
    }
    
    .tiles-section, .sequence-section {
        padding: 1.1vh;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .app {
        gap: 0.8vh;
        padding: 2.5vh 0 0 0;
    }
    
    .game-container {
        gap: 0.8vh;
        max-height: calc(100dvh - 2.5vh);
        padding: 0 1.5vh 10vh 1.5vh;
    }
    
    h1 {
        font-size: 3.5vh;
        letter-spacing: 1px;
        margin: 0;
    }
    
    .subtitle {
        font-size: 1.2vh;
        margin: 0.1vh 0 0 0;
    }
    
    .game-container {
        gap: 0.8vh;
    }
    
    .sequence-title {
        font-size: 1.2vh;
        margin-bottom: 0.8vh;
    }
    
    .tile, .sequence-slot {
        width: 5.5vh;
        height: 5.5vh;
        font-size: 1.8vh;
    }
    
    .info-section, .tiles-section, .sequence-section {
        padding: 0.8vh;
    }
    
    .available-tiles, .sequence-slots {
        gap: 0.6vh;
    }
    
    .control-btn {
        font-size: 1.4vh;
        padding: 0.8vh 1.8vh;
        min-height: 3.6vh;
    }
    
    .secondary-btn {
        padding: 0.7vh 1.4vh;
        font-size: 1.1vh;
        min-height: 3.2vh;
    }
    
    .primary-btn {
        padding: 0.9vh 2.2vh;
        font-size: 1.6vh;
        min-height: 4vh;
        max-width: 17vh;
    }
    
    .message {
        font-size: 1.3vh;
        min-height: 2vh;
    }
    
    .attempt-history {
        padding: 1.1vh 1.3vh;
    }
    
    .attempt-row {
        gap: 0.6vh;
        padding: 0.5vh 0.7vh;
    }
    
    .attempt-number {
        font-size: 0.8vh;
        min-width: 1.8vh;
    }
    
    .attempt-tile {
        width: 2.3vh;
        height: 2.3vh;
        font-size: 0.7vh;
    }
    
    .attempt-result {
        font-size: 0.9vh;
        padding: 0.2vh 0.4vh;
    }
    
    .result-tile {
        width: 4.2vh;
        height: 4.2vh;
        font-size: 1.4vh;
    }
    
    .result-grid {
        gap: 0.4vh;
        margin: 0.8vh 0;
    }
}
