#how-to-use {
    padding: 12px 16px;
}

#how-to-use li {
    list-style-position: inside;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-family: sans-serif;
    padding: 16px 0;
}

canvas {
    image-rendering: pixelated;
    display: block;
    margin: 20px auto;
}

.buttons {
    display: none;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #888;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

button.active {
    background: #ffd966;
    border-color: #cc8800;
    font-weight: bold;
}

/* アラーム UI */
.alarm-box {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#clock {
    font-size: 56px;
    font-family: 'Courier New', monospace;
    color: #00ff99;
    letter-spacing: 4px;
    text-shadow: 0 0 12px #00ff99;
}

.alarm-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alarm-row label {
    color: #aaa;
    font-size: 14px;
}

#alarm-time {
    font-size: 22px;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    background: #2a2a4e;
    color: #fff;
}

#alarm-time::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

#alarm-time::-moz-focus-inner {
    border: 0;
}

#btn-alarm {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid #00ff99;
    background: transparent;
    color: #00ff99;
    cursor: pointer;
}

#btn-alarm.set {
    background: #00ff99;
    color: #1a1a2e;
    font-weight: bold;
}

#alarm-status {
    font-size: 13px;
    color: #ff9944;
    min-height: 18px;
}

/* ===== Header ===== */
header {
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
}

header h1 {
    font-size: 1.2rem;
    color: #fff;
    flex: 1;
}

#top-link {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1rem;
}

#top-link:hover {
    color: #ccc;
}

/* ===== Main wrapper ===== */
#main-wrapper {
    display: flex;
    flex-direction: column;
}

#game-area {
    flex: 1;
    min-width: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Right column (関連アプリ) ===== */
aside.right-column {
    flex-basis: auto !important;
    width: 100%;
}

@media (min-width: 1025px) {
    #main-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    aside.right-column {
        width: 300px;
        flex-basis: 300px !important;
        flex-shrink: 0;
        flex-grow: 0;
    }
}