body {
    background-color: #000000;
    color: #ff0000;
    /* 見出しはOrbitronを維持 */
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh; /* モバイルブラウザのUI（アドレスバー等）を除いた実際の表示領域に合わせる */
    margin: 0;
    text-align: center;
    overflow: hidden;
}

/* --- ↓↓↓ このURLが、ご提示いただいたリンク先にある正しいファイルパスです ↓↓↓ --- */
@font-face {
  font-family: 'DSEG7';
  /* 太字で見やすいBoldバージョンを指定 */
  src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG14-Classic/DSEG14Classic-Bold.woff') format('woff2');
}


.container {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 3.75rem);
    white-space: normal;
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    font-variant-numeric: tabular-nums;
}

#timer {
    font-family: 'DSEG7', monospace;
    /* 画面幅に応じたフォントサイズを調整してはみ出しを防止 */
    /* 最大4桁時間+分秒1/100秒(例:1824:59:59:99)が全デバイスで収まるよう9vwに設定 */
    font-size: clamp(1rem, 9vw, 11rem);
    white-space: nowrap; /* タイマーの数字は改行させない */
    letter-spacing: 0.05em;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.9), 0 0 12px rgba(255, 0, 0, 0.5);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.8;
    }
}

#centiseconds {
    font-size: 0.8em;
    color: #dd0000;
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
}


#message {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.hidden {
    display: none;
}

.zen-study-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #ff0000;
    color: #000000;
    border: 2px solid #ff0000;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans JP', 'Orbitron', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.zen-study-button:hover {
    background-color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.9);
    transform: scale(1.05);
}

.zen-study-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 0, 0, 1);
}