:root {
    --bg-main: #121216;
    --bg-sidebar: #1b1b22;
    --bg-card: #252530;
    --accent-orange: #ff7b00;
    --accent-red: #e63946;
    --text-main: #f1f1f1;
    --text-sub: #a0a0b0;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; }

/* 左側：サイドバー（アコーディオンメニュー） */
.sidebar { width: 280px; background-color: var(--bg-sidebar); border-right: 1px solid #333; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; }
.logo-area { padding: 24px; border-bottom: 1px solid #333; text-align: center; }
.logo-area a { text-decoration: none; color: inherit; }
.logo-area img { max-width: 120px; height: auto; border-radius: 8px; margin-bottom: 12px; }
.logo-area h1 { font-size: 1.4rem; color: var(--accent-orange); letter-spacing: 1px; }
.logo-area p { font-size: 0.8rem; color: var(--text-sub); margin-top: 4px; }

.menu-list { padding: 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.menu-btn { width: 100%; padding: 12px 16px; background: none; border: none; color: var(--text-main); text-align: left; font-size: 0.95rem; cursor: pointer; border-radius: 6px; transition: 0.2s; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.menu-btn:hover, .menu-btn.active { background-color: var(--bg-card); color: var(--accent-orange); }
.menu-btn.highlight { background: linear-gradient(45deg, #ff7b0022, #e6394622); border: 1px solid var(--accent-orange); font-weight: bold; }

/* アコーディオン要素 */
details.accordion { margin-bottom: 4px; }
details.accordion summary { padding: 12px 16px; list-style: none; cursor: pointer; border-radius: 6px; font-size: 0.95rem; font-weight: 500; transition: 0.2s; display: flex; align-items: center; justify-content: space-between; }
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary:hover { background-color: var(--bg-card); color: var(--accent-orange); }
details.accordion summary::after { content: '▼'; font-size: 0.7rem; color: var(--text-sub); transition: transform 0.2s; }
details.accordion[open] summary::after { transform: rotate(-180deg); color: var(--accent-orange); }
.submenu { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; border-left: 1px dashed #444; margin-left: 16px; }
.submenu .menu-btn { font-size: 0.85rem; padding: 10px 16px; }

/* 右側：メインコンテンツ */
.main-content { flex: 1; padding: 40px; overflow-y: auto; position: relative; }
.page-content { max-width: 900px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

h2 { border-left: 4px solid var(--accent-orange); padding-left: 12px; margin-bottom: 20px; font-size: 1.8rem; }
.card { background-color: var(--bg-card); padding: 24px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #333; }
.btn-action { padding: 12px 24px; background-color: var(--accent-orange); color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-action:hover { background-color: var(--accent-red); }

/* TOP ヒーロー */
body[data-page="top"] .page-content { max-width: none; min-height: calc(100vh - 80px); position: relative; }
.hero-top { min-height: inherit; }
.hero-bg-wrap { display: none; position: absolute; right: 0; top: 0; z-index: 0; pointer-events: none; line-height: 0; }
body[data-page="top"] .hero-bg-wrap { display: block; }
.hero-bg { height: min(75vh, 720px); width: auto; max-width: min(62vw, 720px); object-fit: contain; object-position: right top; display: block; user-select: none; }
.hero-bg-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to bottom, transparent 0%, rgba(18, 18, 22, 0.85) 55%, var(--bg-main) 100%); }
.hero-left { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(460px, 42vw); }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.95rem; color: var(--accent-red); margin-bottom: 12px; }
.live-badge::before { content: ''; width: 10px; height: 10px; background: currentColor; border-radius: 50%; animation: livePulse 1.5s ease-in-out infinite; }
.live-badge.upcoming { color: var(--accent-orange); }
.live-badge.offline { color: var(--text-sub); animation: none; }
.live-badge.offline::before { animation: none; opacity: 0.6; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.live-video { position: relative; width: 100%; padding-bottom: 56.25%; background-color: var(--bg-card); border: 2px solid #444; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.live-video iframe, .live-video .video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-sub); font-size: 0.95rem; text-align: center; padding: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.video-grid[hidden] { display: none; }
.video-grid-item { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background-color: var(--bg-card); transition: 0.2s; padding: 0; }
.video-grid-item:hover { border-color: #666; }
.video-grid-item.active { border-color: var(--accent-orange); }
.video-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-grid-badge { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.65rem; font-weight: 600; line-height: 1.2; }
.links-section { display: flex; flex-direction: column; gap: 14px; }
.links-heading { font-size: 1rem; color: var(--text-main); font-weight: 600; }
.link-group { display: flex; flex-direction: column; gap: 6px; }
.link-group-label { font-size: 0.8rem; color: var(--text-sub); font-weight: 500; letter-spacing: 0.5px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.link-item { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; background-color: var(--bg-card); border: 1px solid #444; border-radius: 6px; color: var(--text-main); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.2s; }
.link-item:hover { border-color: var(--accent-orange); color: var(--accent-orange); background-color: #2a2a35; }

.page-lead { color: var(--text-sub); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; max-width: 640px; }

/* ゲームの履歴書 */
.resume-page { max-width: 900px; }
.resume-page .page-lead { margin-bottom: 8px; }
.resume-spoiler-note { color: var(--accent-red); font-size: 0.95rem; font-weight: 700; line-height: 1.7; margin-bottom: 28px; }
.resume-list { display: flex; flex-direction: column; gap: 16px; }
.resume-entry { background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; padding: 20px 22px; }
.resume-entry-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.03em; }
.resume-entry-body { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 20px; align-items: start; }
.resume-youtube { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid #444; background: #1a1a22; text-decoration: none; color: var(--text-main); transition: border-color 0.2s; }
.resume-youtube img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-youtube-label { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.72rem; font-weight: 700; }
.resume-youtube:hover { border-color: var(--accent-orange); }
.resume-youtube--link, .resume-youtube--empty { aspect-ratio: auto; min-height: 88px; display: flex; align-items: center; justify-content: center; font-size: 0.92rem; font-weight: 700; }
.resume-youtube--empty { color: var(--text-sub); border-style: dashed; cursor: default; }
.resume-impression-label { font-size: 0.78rem; font-weight: 600; color: var(--text-sub); letter-spacing: 0.06em; margin-bottom: 8px; }
.resume-impression-text { font-size: 0.95rem; line-height: 1.85; white-space: pre-wrap; }
.resume-empty-note { color: var(--text-sub); font-size: 0.88rem; line-height: 1.7; }

/* プレイ済みゲーム */
.games-page { max-width: 900px; }
.games-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.games-tab { padding: 8px 18px; background: var(--bg-card); border: 1px solid #333; border-radius: 999px; color: var(--text-sub); font-size: 0.88rem; cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.games-tab:hover { border-color: var(--accent-orange); color: var(--text-main); }
.games-tab.is-active { border-color: var(--accent-orange); color: var(--accent-orange); background: #ff7b0014; }
.games-sections { display: flex; flex-direction: column; gap: 12px; }
.games-sections[data-active-tab="fushigi"] .games-accordion:not([data-category="fushigi"]) { display: none; }
.games-sections[data-active-tab="shugyo"] .games-accordion:not([data-category="shugyo"]) { display: none; }
.games-sections[data-active-tab="other"] .games-accordion:not([data-category="other"]) { display: none; }
.games-accordion { background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.games-accordion-summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-size: 0.95rem; font-weight: 700; color: var(--text-main); letter-spacing: 0.04em; transition: background-color 0.2s, color 0.2s; }
.games-accordion-summary::-webkit-details-marker { display: none; }
.games-accordion-summary:hover { background-color: #2a2a35; color: var(--accent-orange); }
.games-accordion[open] .games-accordion-summary { border-bottom: 1px solid #333; }
.games-accordion-label { display: flex; align-items: center; gap: 8px; }
.games-accordion-label::after { content: '▼'; font-size: 0.65rem; color: var(--text-sub); transition: transform 0.2s, color 0.2s; }
.games-accordion[open] .games-accordion-label::after { transform: rotate(-180deg); color: var(--accent-orange); }
.games-count { font-size: 0.78rem; font-weight: 500; color: var(--text-sub); }
.games-section-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; }
.games-section-empty { color: var(--text-sub); font-size: 0.88rem; }
.games-status { color: var(--text-sub); font-size: 0.9rem; }
.game-archive-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-archive-list > li { min-width: 0; }
.game-archive-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 12px; background-color: var(--bg-main); border: 1px solid #333; border-radius: 8px; color: var(--text-main); text-decoration: none; transition: border-color 0.2s, color 0.2s; position: relative; }
.game-archive-item:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.game-archive-item--text { cursor: default; }
.game-archive-item--text:hover { border-color: #333; color: var(--text-main); }
.game-icon { width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.game-archive-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; width: 100%; }
.game-archive-title { font-size: 0.82rem; font-weight: 600; line-height: 1.45; word-break: break-word; }
.game-archive-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.72rem; color: var(--text-sub); line-height: 1.4; }
.game-archive-item:hover .game-archive-meta { color: var(--text-sub); }
.game-archive-icon { position: absolute; top: 10px; right: 10px; font-size: 0.75rem; color: var(--text-sub); transition: color 0.2s; }
.game-archive-item:hover .game-archive-icon { color: var(--accent-orange); }
.games-empty { text-align: center; padding: 48px 24px; }
.games-empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.games-empty-text { font-size: 0.9rem; color: var(--text-sub); line-height: 1.7; }
.games-empty-text a { color: var(--accent-orange); text-decoration: none; }
.games-empty-text a:hover { text-decoration: underline; }

/* 配信連動コマンド */
.interact-page { max-width: 720px; }
.interact-status-card { display: flex; flex-direction: column; gap: 12px; }
.interact-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.interact-status-message { color: var(--text-sub); font-size: 0.92rem; line-height: 1.65; }
.interact-bridge-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.88rem; color: var(--text-sub); padding: 4px 10px; border-radius: 999px; background: #2a2a35; border: 1px solid #444; }
.interact-bridge-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.interact-bridge-badge.online { color: #7dd87d; border-color: #3a6b3a; background: #1e2e1e; }
.interact-bridge-badge.offline { color: var(--text-sub); }
.interact-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
.interact-commands-card { padding-top: 20px; }
.interact-command-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.interact-command-btn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; background: var(--bg-main); border: 2px solid #333; border-radius: 10px; color: var(--text-main); text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.15s, opacity 0.2s; }
.interact-command-btn:hover:not(:disabled) { border-color: var(--accent-orange); background: #1a1a22; transform: translateY(-1px); }
.interact-command-btn:active:not(:disabled) { transform: translateY(0); }
.interact-command-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.interact-command-btn.is-ready { border-color: #ff7b0044; }
.interact-command-btn.is-cooldown { border-color: #444; }
.interact-command-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; width: 48px; text-align: center; }
.interact-command-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.interact-command-label { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.interact-command-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.5; }
.interact-footnote { margin-top: 8px; font-size: 0.82rem; color: var(--text-sub); line-height: 1.65; }
.interact-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 900; max-width: min(90vw, 420px); padding: 12px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); border: 1px solid #444; background: var(--bg-card); color: var(--text-main); }
.interact-toast--success { border-color: #3a6b3a; background: #1e2e1e; color: #9fdf9f; }
.interact-toast--warn { border-color: #6b5a2a; background: #2e2818; color: #f0c060; }
.interact-toast--error { border-color: #6b3a3a; background: #2e1e1e; color: #f08080; }
.interact-toast--info { border-color: #444; }

.wait-screen { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); }
.wait-screen img { max-height: min(75vh, 680px); width: auto; max-width: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.wait-message { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); font-size: clamp(2.5rem, 8vw, 5rem); font-weight: bold; color: var(--accent-orange); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 32px rgba(0, 0, 0, 0.6); letter-spacing: 0.12em; white-space: nowrap; z-index: 1; pointer-events: none; }

/* 第1回 リスのピザ杯 */
.pizza-cup-page { display: flex; flex-direction: column; gap: 24px; max-width: 1100px; }
.pizza-header-carousel { position: relative; }
.carousel-viewport { position: relative; width: 100%; height: min(50vh, 420px); background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; user-select: none; }
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 1px solid #555; border-radius: 50%; background: rgba(27, 27, 34, 0.85); color: var(--text-main); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.carousel-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); background: rgba(37, 37, 48, 0.95); }
.carousel-btn:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #444; cursor: pointer; padding: 0; transition: 0.2s; }
.carousel-dot:hover { background: #666; }
.carousel-dot.active { background: var(--accent-orange); transform: scale(1.15); }
.carousel-counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: var(--text-sub); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; pointer-events: none; }
.pizza-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pizza-video-item { display: flex; flex-direction: column; gap: 10px; }
.pizza-video-label { font-size: 0.9rem; color: var(--text-sub); font-weight: 600; }
.pizza-video-embed { position: relative; width: 100%; padding-bottom: 56.25%; background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.pizza-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.pizza-section-heading { border-left: 4px solid var(--accent-orange); padding-left: 12px; margin-bottom: 20px; font-size: 1.4rem; }
.pizza-archive-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; }
.pizza-award-card { background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.pizza-award-card:hover { border-color: #444; }
.award-card-header { padding: 12px 16px; border-bottom: 1px solid #333; background: linear-gradient(90deg, rgba(255, 123, 0, 0.12), transparent 70%); }
.award-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; color: var(--accent-orange); letter-spacing: 0.04em; }
.award-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-orange); box-shadow: 0 0 8px rgba(255, 123, 0, 0.6); flex-shrink: 0; }
.award-card-body { padding: 0; }
.award-image-wrap { position: relative; background: #1a1a22; padding: 14px; display: flex; align-items: center; justify-content: center; }
.award-image { display: block; width: 100%; max-height: 280px; object-fit: contain; border: 1px solid #444; border-radius: 6px; background: var(--bg-main); cursor: zoom-in; transition: border-color 0.2s; }
.award-image:hover { border-color: var(--accent-orange); }
.award-expand-btn { position: absolute; right: 14px; bottom: 14px; width: 28px; height: 28px; border: 1px solid #555; border-radius: 6px; background: rgba(27, 27, 34, 0.92); color: var(--accent-orange); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.award-expand-btn:hover { border-color: var(--accent-orange); background: rgba(255, 123, 0, 0.15); }
.award-recipe { padding: 12px 14px; border-top: 1px solid #333; background: #2a2a35; font-size: 0.85rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.award-recipe-label { color: var(--text-sub); font-weight: 600; flex-shrink: 0; }
.award-recipe-link { color: var(--accent-orange); text-decoration: none; word-break: break-all; transition: 0.2s; }
.award-recipe-link:hover { text-decoration: underline; color: var(--text-main); }
.award-recipe-link[href="#"], .award-recipe-link:not([href]), .award-recipe-link[href=""] { color: var(--text-sub); pointer-events: none; cursor: default; }

.pizza-entry-section { margin-top: 36px; }
.pizza-section-heading--sub { font-size: 1.15rem; color: var(--text-sub); border-left-color: #555; }
.pizza-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.pizza-entry-card { background-color: var(--bg-card); border: 1px solid #333; border-radius: 6px; overflow: hidden; transition: border-color 0.2s; }
.pizza-entry-card:hover { border-color: #444; }
.pizza-entry-image-wrap { position: relative; background: #1a1a22; padding: 10px; display: flex; align-items: center; justify-content: center; }
.pizza-entry-image { display: block; width: 100%; max-height: 180px; object-fit: contain; border: 1px solid #444; border-radius: 4px; background: var(--bg-main); cursor: zoom-in; transition: border-color 0.2s; }
.pizza-entry-image:hover { border-color: #666; }
.pizza-entry-expand-btn { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border: 1px solid #555; border-radius: 4px; background: rgba(27, 27, 34, 0.92); color: var(--text-sub); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 0 0 1px; }
.pizza-entry-expand-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.pizza-entry-recipe { padding: 10px 12px; border-top: 1px solid #333; background: #22222b; font-size: 0.78rem; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pizza-entry-recipe .award-recipe-label { font-size: 0.78rem; }
.pizza-entry-recipe .award-recipe-link { font-size: 0.78rem; }

.pizza-local-recipes { margin-top: 40px; }
.local-recipe-block { background-color: var(--bg-card); border: 1px solid #333; border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; scroll-margin-top: 24px; }
.local-recipe-title { font-size: 0.95rem; font-weight: 700; color: var(--accent-orange); margin-bottom: 10px; line-height: 1.5; }
.local-recipe-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.local-recipe-list li { font-size: 0.88rem; color: var(--text-main); line-height: 1.65; padding-left: 1.4em; position: relative; }
.local-recipe-list li::before { position: absolute; left: 0; color: var(--text-sub); }
.local-recipe-list li:not(:last-child)::before { content: '├'; }
.local-recipe-list li:last-child::before { content: '└'; }
.local-recipe-list--plain li { padding-left: 0; }
.local-recipe-list--plain li::before { content: none; }
.local-recipe-list--plain li + li { margin-top: 2px; }
.local-recipe-note { font-size: 0.8rem; color: var(--text-sub); margin-top: 10px; }

.pizza-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 48px 64px; background: rgba(0, 0, 0, 0.92); pointer-events: none; visibility: hidden; }
.pizza-lightbox.open { display: flex; pointer-events: auto; visibility: visible; }
.pizza-lightbox.lightbox-mode-single .lightbox-btn,
.pizza-lightbox.lightbox-mode-single .lightbox-counter { display: none; }
.pizza-lightbox-backdrop { position: absolute; inset: 0; border: none; background: transparent; cursor: zoom-out; padding: 0; }
.lightbox-content { position: relative; z-index: 1; max-width: min(95vw, 1200px); max-height: 90vh; pointer-events: none; }
.lightbox-image { display: block; max-width: min(95vw, 1200px); max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 1px solid #555; border-radius: 50%; background: rgba(27, 27, 34, 0.9); color: var(--text-main); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: 0.2s; }
.lightbox-close:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border: 1px solid #555; border-radius: 50%; background: rgba(27, 27, 34, 0.9); color: var(--text-main); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.lightbox-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: var(--text-sub); font-size: 0.85rem; font-weight: 600; pointer-events: none; }

@media (max-width: 820px) {
    body[data-page="top"] .page-content { min-height: auto; }
    .interact-command-btn { padding: 16px; gap: 12px; }
    .interact-command-icon { font-size: 1.6rem; width: 40px; }
    .hero-bg-wrap { right: 50%; transform: translateX(50%); }
    .hero-bg { height: 220px; max-width: 280px; object-position: center top; }
    .hero-bg-wrap::after { height: 45%; }
    .hero-top { padding-top: 220px; }
    .hero-left { width: 100%; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-viewport { height: min(40vh, 280px); }
    .carousel-btn { width: 36px; height: 36px; font-size: 1.3rem; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .pizza-video-grid { grid-template-columns: 1fr; }
    .pizza-lightbox { padding: 56px 16px; }
    .lightbox-btn { width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .pizza-archive-list { grid-template-columns: 1fr; }
    .award-image { max-height: 320px; }
    .pizza-entry-grid { grid-template-columns: repeat(2, 1fr); }
    .game-archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resume-entry-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .pizza-entry-grid { grid-template-columns: 1fr; }
    .game-archive-list { grid-template-columns: 1fr; }
}
