:root {
    --bg-color: #121212;
    --chat-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #00ff41;
    --tor-bg: #1c1b22;
    --tor-bar: #42414d;
    --tor-highlight: #7d3c98;
    --danger-color: #ff3333;
}

body, html {
    margin: 0; padding: 0; height: 100%;
    background-color: #000;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    overflow: hidden;
}

/* CRTモニター風エフェクト */
body::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.1) 50%), linear-gradient(90deg, rgba(255,0,0,0.03), rgba(0,255,0,0.01), rgba(0,0,255,0.03));
    background-size: 100% 4px, 6px 100%; z-index: 9999; pointer-events: none;
    animation: flicker 0.15s infinite;
}
@keyframes flicker { 0%{opacity:0.9;} 5%{opacity:0.85;} 10%{opacity:0.9;} 15%{opacity:0.95;} 100%{opacity:0.9;} }

.game-container { display: flex; height: 100vh; width: 100vw; transition: filter 0.5s; box-shadow: inset 0 0 100px rgba(0,0,0,0.9); filter: contrast(1.1) brightness(1.1) saturate(1.1); }
body.mode-novel .game-container { filter: blur(4px) brightness(0.5); pointer-events: none; }

/* ノベルボックス */
.novel-box { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); width: 800px; max-width: 90%; min-height: 120px; background: rgba(0,0,0,0.95); border: 1px solid #555; padding: 30px; border-radius: 4px; z-index: 200; display: none; flex-direction: column; }
body.mode-novel .novel-box { display: flex; }
.novel-text { font-size: 1.2em; line-height: 1.6; color: #fff; white-space: pre-wrap; }
.novel-cursor { align-self: flex-end; color: var(--accent-color); animation: blink 1s infinite; }

/* ブラウザウィンドウ */
.browser-window { flex: 2; display: flex; flex-direction: column; background-color: #fff; border-right: 2px solid #333; transition: all 1s ease; position: relative; }
.browser-bar { height: 40px; background-color: #f0f0f0; display: flex; align-items: center; padding: 5px 10px; border-bottom: 1px solid #ccc; transition: all 1s ease; gap: 10px; }
.browser-nav { display: flex; gap: 5px; }
.nav-btn { background: none; border: none; font-size: 1.2em; color: #555; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.nav-btn:hover:not(:disabled) { background-color: #ddd; }
.nav-btn:disabled { color: #ccc; cursor: default; }

.url-container { flex-grow: 1; position: relative; display: flex; align-items: center; }
.url-input { width: 100%; padding: 6px 15px; border-radius: 20px; border: 1px solid #ddd; font-family: 'Share Tech Mono', monospace; font-size: 0.9em; background: #fff; color: #333; outline: none; transition: all 0.5s; }
.url-input:not(:read-only) { box-shadow: 0 0 5px var(--accent-color); border-color: var(--accent-color); }

.browser-content { flex-grow: 1; overflow-y: auto; padding: 20px; background-color: #fff; color: #333; position: relative; transition: background-color 1s; }

/* DevTools */
.devtools-panel { height: 200px; background: #242424; border-top: 1px solid #444; display: flex; flex-direction: column; font-family: monospace; font-size: 0.85em; position: absolute; bottom: 0; left: 0; width: 100%; z-index: 100; }
.devtools-header { background: #333; color: #aaa; display: flex; padding: 5px 10px; gap: 15px; border-bottom: 1px solid #111; }
.dt-tab { cursor: pointer; padding: 2px 8px; }
.dt-tab.active { color: #fff; border-bottom: 2px solid #569cd6; }
.dt-close { margin-left: auto; cursor: pointer; }
.devtools-body { flex: 1; padding: 10px; overflow-y: auto; color: #d4d4d4; line-height: 1.4; }
.code-tag { color: #569cd6; } .code-attr { color: #9cdcfe; } .code-str { color: #ce9178; } .code-comment { color: #6a9955; }

/* Torモード */
.browser-window.tor-mode { background-color: #000; border-right-color: #500; }
.browser-window.tor-mode .browser-bar { background-color: var(--tor-bar); border-bottom-color: #000; }
.browser-window.tor-mode .nav-btn { color: #ccc; }
.browser-window.tor-mode .url-input { background-color: var(--tor-bg); color: #fff; border-color: var(--tor-highlight); }
.browser-window.tor-mode .browser-content { background-color: #111; color: #ddd; }
.tor-icon { font-size: 1.2em; margin-right: 8px; animation: fadeIn 1s; }

/* チャット */
.chat-window { flex: 1; min-width: 320px; display: flex; flex-direction: column; background-color: var(--chat-bg); border-left: 1px solid #333; }
.chat-header { padding: 10px 15px; background: #252526; color: #fff; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.live-badge { background: #00ff41; color: #000; padding: 2px 6px; font-weight: bold; font-size: 0.8em; border-radius: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; font-size: 0.9em; animation: slideIn 0.3s; line-height: 1.4; }
.user-icon { width: 32px; height: 32px; border-radius: 50%; background: #555; display: flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; font-weight: bold; color: #fff; }
.msg-content { display: flex; flex-direction: column; }
.user-name { font-size: 0.75em; color: #888; margin-bottom: 2px; font-weight: bold; }

/* ページ内要素 */
.site-center { text-align: center; margin-top: 40px; animation: fadeIn 1s; }
.riddle-box { border: 1px solid #ccc; padding: 20px; display: inline-block; margin: 20px 0; background: rgba(255,255,255,0.05); }
.input-group { margin-top: 20px; }
.input-group input { padding: 8px; font-family: monospace; text-align: center; }
.error-msg { color: #ff3333; margin-top: 10px; font-family: monospace; min-height: 1.2em; }

/* 監視カメラ (動画対応) */
.surveillance-cam {
    width: 90%; height: 300px; background: #000;
    margin: 20px auto; border: 1px solid #333;
    position: relative; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}
.cam-noise {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.1"/%3E%3C/svg%3E');
    pointer-events: none; z-index: 5;
}
.cam-overlay { position: absolute; top: 10px; left: 10px; color: #ff0000; font-family: monospace; z-index: 10; }
.cam-video {
    width: 100%; height: 100%; object-fit: contain;
    opacity: 0.8; filter: contrast(1.2) sepia(0.2);
}

.hidden { display: none !important; }

/* アニメーション・演出 */
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(10px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Glitch & Danger Mode */
.glitch-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 0, 0, 0.2); z-index: 999; pointer-events: none; mix-blend-mode: exclusion; }
.danger-mode .browser-window { border: 2px solid red; animation: redFlash 0.5s infinite; }
@keyframes redFlash { 0%,100%{box-shadow:inset 0 0 0 red;} 50%{box-shadow:inset 0 0 50px red;} }

/* アスキーアート・ホラー演出用 */
.ascii-art {
    font-family: 'Courier New', monospace; white-space: pre;
    font-size: 10px; line-height: 10px; color: #cc0000;
    text-align: center; overflow: hidden; margin: 20px auto;
    font-weight: bold; animation: pulseRed 0.1s infinite;
}
.scare-text {
    font-size: 4em; color: red; text-align: center; margin-top: 50px;
    font-family: 'Share Tech Mono'; text-shadow: 2px 2px 0 #000;
    animation: shake 0.2s infinite;
}
@keyframes pulseRed {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; text-shadow: 0 0 5px red; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- スタート画面 --- */
.title-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-family: 'Noto Sans JP', sans-serif;
}
.title-content { text-align: center; animation: fadeIn 2s; z-index: 2001; }
.game-logo { font-size: 4em; letter-spacing: 5px; color: var(--accent-color); text-shadow: 0 0 20px var(--accent-color); margin-bottom: 10px; }
.game-sub { color: #888; margin-bottom: 60px; letter-spacing: 2px; }
.title-buttons { display: flex; flex-direction: column; gap: 30px; align-items: center; }

.title-btn {
    background: transparent; border: 2px solid #555; color: #fff;
    padding: 20px 50px; font-family: 'Noto Sans JP', sans-serif; 
    font-size: 1.5em; font-weight: bold;
    cursor: pointer; transition: 0.3s; width: 350px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.title-btn:hover { background: #fff; color: #000; border-color: #fff; }
.title-btn.start { border-color: var(--accent-color); color: var(--accent-color); }
.title-btn.start:hover { box-shadow: 0 0 25px var(--accent-color); background: var(--accent-color); color: #000; }
.title-btn.continue { border-color: #569cd6; color: #569cd6; }
.title-btn.continue:hover { background: #569cd6; color: #000; }
.title-btn.exit { color: #888; border-color: #333; }
.title-btn.exit:hover { background: #333; color: #fff; }

/* --- クリア画面 / リセット画面 --- */
.reset-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); z-index: 2000; 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; animation: fadeIn 2s forwards; animation-delay: 1s; 
}
.reset-content { text-align: center; }
.reset-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.reset-btn { 
    background: #fff; color: #000; padding: 15px 30px; 
    border: none; font-size: 1.2em; font-weight: bold;
    cursor: pointer; transition: 0.3s; font-family: 'Noto Sans JP';
}
.reset-btn:hover { background: var(--accent-color); color: #fff; }
.reset-btn.home { background: #333; color: #ccc; }
.reset-btn.home:hover { background: #555; color: #fff; }

/* Day表示 */
.day-indicator {
    position: absolute; top: 50px; right: 20px;
    background: rgba(0,0,0,0.7); color: #00ff41;
    padding: 5px 15px; font-family: 'Share Tech Mono';
    border-radius: 0 0 5px 5px; z-index: 50;
    border: 1px solid #00ff41; border-top: none;
}

/* 日付変更・セーブ画面 */
.day-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 2500; color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-family: 'Share Tech Mono';
    animation: fadeIn 1s;
}
.day-transition h2 { font-size: 3em; color: var(--accent-color); margin-bottom: 20px; }
.day-transition p { animation: blink 1s infinite; color: #aaa; }

/* チュートリアル画面 */
.tutorial-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2100;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-family: 'Noto Sans JP', sans-serif;
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.tutorial-overlay.active { opacity: 1; pointer-events: auto; }
.tutorial-box {
    width: 600px; max-width: 90%;
    border: 1px solid #555; background: #111;
    padding: 40px; text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    max-height: 90vh;  /* 高さを画面の90%までに制限 */
    overflow-y: auto;  /* 中身が溢れたらスクロールバーを出す */
}
.tutorial-title {
    color: var(--accent-color); border-bottom: 1px solid #333;
    padding-bottom: 15px; margin-bottom: 30px; letter-spacing: 2px;
}
.tutorial-item { margin-bottom: 30px; text-align: left; }
.tutorial-item h3 { color: #ddd; font-size: 1.1em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tutorial-item p { color: #aaa; font-size: 0.95em; line-height: 1.6; margin-bottom: 5px; }
.tutorial-item .sub-text { font-size: 0.8em; color: #666; }
.highlight { color: #fff; font-weight: bold; border-bottom: 1px solid var(--accent-color); }
.tutorial-item.warning { border: 1px solid #500; background: rgba(50, 0, 0, 0.3); padding: 15px; border-radius: 4px; }
.tutorial-item.warning h3 { color: #ff5555; }
.tutorial-item.caution {
    border: 1px solid #886600;
    background: rgba(80, 60, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
}
.tutorial-item.caution h3 {
    color: #ffdd55;
}
.icon-sample { display: flex; justify-content: space-around; margin-top: 15px; font-size: 0.9em; font-weight: bold; }
.icon-sample .bad { color: #ff5555; }
.icon-sample .good { color: var(--accent-color); }
.tutorial-btn {
    background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color);
    padding: 15px 40px; font-size: 1.2em; cursor: pointer; transition: 0.3s;
    font-family: 'Noto Sans JP'; margin-top: 10px;
}
.tutorial-btn:hover { background: var(--accent-color); color: #000; box-shadow: 0 0 15px var(--accent-color); }

/* --- Matrix Code Rain Effect --- */
.matrix-container {
    background: #000; width: 100%; height: 250px;
    border: 1px solid #00ff41; position: relative;
    overflow: hidden; margin-top: 20px;
    font-family: 'Courier New', monospace;
    cursor: crosshair;
}
.matrix-column {
    position: absolute; top: -100px;
    color: #003300; font-weight: bold; font-size: 14px;
    text-align: center; line-height: 14px;
    animation: codeRain linear infinite;
    user-select: none;
}
/* 明るい緑（先端） */
.matrix-head { color: #00ff41; text-shadow: 0 0 5px #00ff41; }
/* ターゲット（赤文字） */
.matrix-target {
    color: #ff3333; font-weight: bold; font-size: 18px;
    text-shadow: 0 0 10px red; cursor: pointer;
    border: 1px solid transparent; transition: 0.2s;
}
.matrix-target:hover {
    border: 1px solid #ff3333; background: rgba(255, 0, 0, 0.2);
}

@keyframes codeRain {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(300px); opacity: 0; }
}

/* --- Day 2 CMD Terminal --- */
.cmd-window {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #0a101a 0%, #010101 100%);
    color: var(--accent-color);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    box-sizing: border-box; 
    z-index: 100;
    border: 1px solid #005522;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s;
}

.cmd-header {
    background: linear-gradient(to right, #003c4f, #051923);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #005522;
    text-shadow: 0 0 2px #fff;
    flex-shrink: 0;
}

.cmd-buttons span {
    margin-left: 8px;
    cursor: default;
    color: #aaa;
}

.cmd-log {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    white-space: pre-wrap; 
    line-height: 1.5;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}
.cmd-log p { margin: 0 0 5px 0; }

.cmd-log::-webkit-scrollbar { width: 8px; }
.cmd-log::-webkit-scrollbar-track { background: #010101; }
.cmd-log::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }
.cmd-log::-webkit-scrollbar-thumb:hover { background: #00ff88; }

.cmd-input-line { 
    display: flex; 
    align-items: center; 
    padding: 5px 10px 10px 10px;
    font-size: 1em;
    flex-shrink: 0;
}
.cmd-input-line span {
    margin-right: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}
.cmd-input-line input {
    flex-grow: 1; 
    background: transparent; 
    border: none;
    color: var(--accent-color); 
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 1em; 
    outline: none;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}
.cmd-input-line input:focus + .cmd-cursor {
    display: inline-block;
}

.cmd-cursor {
    display: none; /* フォーカス時に表示 */
    width: 10px;
    height: 1.2em;
    background: var(--accent-color);
    margin-left: 2px;
    animation: blink 1.2s step-end infinite;
}

/* --- Day 2 CMD Terminal --- */
.cmd-window {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #0a101a 0%, #010101 100%);
    color: var(--accent-color);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    box-sizing: border-box; 
    z-index: 100;
    border: 1px solid #005522;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s;
}

.cmd-timer-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 8em; /* さらに大きく */
    color: rgba(255, 0, 0, 0.7);
    font-weight: bold;
    text-shadow: 0 0 25px red;
    z-index: 101; /* CMDウィンドウの他の要素より手前に */
    pointer-events: none; /* マウス操作を妨げないように */
    animation: pulseRed 0.8s infinite;
}

.cmd-header {
    background: linear-gradient(to right, #003c4f, #051923);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #005522;
    text-shadow: 0 0 2px #fff;
    flex-shrink: 0;
}

/* --- Day 2 選択肢画面の背景演出 --- */
.help-bg-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    pointer-events: none; /* 背景なのでクリックを無効化 */
    user-select: none; /* テキスト選択を無効化 */
    z-index: 1;
}

.help-bg-text span {
    color: #ff3333;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px red;
    transition: all 0.5s; /* アニメーション用 */
    animation: fadeIn 3s forwards;
}

/* --- Day 3 脱出シークエンス演出 --- */
.escape-banner {
    position: absolute;
    top: -100px; /* 最初は画面の上に隠す */
    left: 50%;
    transform: translateX(-50%);
    background: #cc0000;
    color: white;
    padding: 10px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid white;
    z-index: 105;
    text-shadow: 1px 1px 0 #000;
    transition: top 0.5s ease-out; /* スライドインのアニメーション */
}
.escape-banner.visible {
    top: 20px; /* 表示された時の位置 */
}

.escape-progress-container {
    position: absolute;
    bottom: 50px;
    width: 500px;
    max-width: 80%;
    background: rgba(0,0,0,0.8);
    border: 1px solid #555;
    padding: 15px;
    text-align: center;
    color: var(--accent-color);
    font-family: 'Share Tech Mono', monospace;
    z-index: 105;
}
.progress-bar-outer {
    width: 100%;
    height: 20px;
    background: #333;
    border: 1px solid #555;
    margin-top: 10px;
    padding: 2px;
}
.progress-bar-inner {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}
@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- Day 3 脱出シークエンス演出 (ボタン) --- */
.escape-button-container {
    position: absolute;
    bottom: 50px;
    z-index: 105;
}
.btn-escape-d3 {
    padding: 15px 40px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    background: #500; /* 暗い赤 */
    border: 2px solid #800;
    cursor: not-allowed; /* 最初はクリック不可カーソル */
    transition: all 0.2s;
    text-shadow: 1px 1px 0 #000;
}

/* 有効化された時のスタイル */
.btn-escape-d3.enabled {
    background: #cc0000; /* 明るい赤 */
    border-color: #ff3333;
    cursor: pointer;
    animation: pulseRed 0.5s infinite; /* 点滅して注意を引く */
}
.btn-escape-d3.enabled:hover {
    background: #ff3333;
    box-shadow: 0 0 20px #ff0000;
}

/* --- Day 4 グリッチ演出用スタイル --- */
.chat-window.glitch-mode {
    animation: chat-glitch-bg 0.7s infinite steps(1);
}

.chat-window.glitch-mode .chat-log {
    animation: chat-glitch-text 1.5s infinite;
}

/* 背景を点滅させるアニメーション */
@keyframes chat-glitch-bg {
    0% { background-color: #1e1e1e; }
    49% { background-color: #1e1e1e; }
    50% { background-color: #3e1e1e; } /* 一瞬赤く */
    100% { background-color: #1e1e1e; }
}

/* テキストを揺らしてノイズをかけるアニメーション */
@keyframes chat-glitch-text {
    0% {
        transform: translate(0, 0);
        text-shadow: 1px 1px 0 red, -1px -1px 0 cyan;
        opacity: 1;
    }
    25% {
        transform: translate(2px, -3px);
        text-shadow: -2px 2px 0 red, 2px -2px 0 cyan;
        opacity: 0.8;
    }
    50% {
        transform: translate(-3px, 2px);
        text-shadow: 2px -1px 0 red, -2px 1px 0 cyan;
        opacity: 1;
    }
    75% {
        transform: translate(1px, 3px) skewX(-5deg);
        text-shadow: none;
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0);
        text-shadow: 1px 1px 0 red, -1px -1px 0 cyan;
        opacity: 1;
    }
}

/* --- Day 4 全画面モード用スタイル --- */
body.mode-fullscreen .chat-window {
    display: none; /* チャットウィンドウを非表示に */
}

body.mode-fullscreen .browser-window {
    flex: 1; /* ブラウザが全幅を使うように */
    border-right: none; /* 右の境界線を消す */
}

/* --- Day 4 ダイアログスパム演出 --- */
.fake-dialog {
    position: absolute;
    width: 250px;
    background: #ccc;
    border: 2px solid #fff;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
    animation: fadeIn 0.2s;
}
.fake-dialog-header {
    background: linear-gradient(to right, #005, #00a);
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fake-dialog-header button {
    background: #c00; color:white; border:1px solid #f33;
    width: 20px; height: 20px; cursor: pointer;
}
.fake-dialog-body {
    padding: 20px;
    color: #000;
}

/* チュートリアルボックスのスクロールバー装飾 */
.tutorial-box::-webkit-scrollbar { width: 8px; }
.tutorial-box::-webkit-scrollbar-track { background: #111; }
.tutorial-box::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
.tutorial-box::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }