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

body {
    font-family: 'Courier New', monospace;
    background-color: #fff8e7;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.daily {
    width: min(100%, 500px);
    margin: 0 0 48px 0;
    user-select: none;
}

@media (min-width: 601px) {
    .daily {
        margin-bottom: 72px;
    }
}

.daily-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.daily-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.daily-date {
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.75;
    font-weight: 600;
}

.daily-meaning {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0.9;
    font-weight: 600;
}

.container {
    width: min(100%, 500px);
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-box {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

#ascii-canvas {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.02;
    white-space: pre;
    text-align: center;
    color: #000000;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    letter-spacing: 0;
    user-select: none;
    display: block;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#ascii-canvas.bounce {
    animation: bounceScale 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.85);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .daily-unicode {
        font-size: 36px;
    }

    .daily {
        margin-bottom: 10px;
    }

    #ascii-canvas {
        font-size: 9px;
        line-height: 1.0;
    }
    
    .cube-box {
        padding: 15px;
    }
}
