/* =============================================
   黃暘 HUANG YOUNG
   DIY 手工網站 / 初學者風格 / 扁平極簡醜
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Noto+Sans+TC:wght@400;700;900&display=swap');

/* 標楷體 Kaiti for Chinese text */
@font-face {
  font-family: 'Kaiti';
  src: local('標楷體'), local('DFKai-SB'), local('BiauKai'), local('KaiTi'), local('AR PL UKai TW');
}

/* ── 基本 reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Kaiti', '標楷體', 'DFKai-SB', 'Noto Sans TC', Arial, sans-serif;
  background: #FFF8E7;
  color: #111111;
  overflow-x: hidden;
}
a { color: #d70d0d; text-decoration: underline; }
a:hover { color: #bfff00; background: #d1bc00; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 全域色彩變數 ── */
:root {
  --pink:   #FF0099;
  --yellow: #FFE500;
  --green:  #00FF66;
  --blue:   #00CCFF;
  --red:    #FF3300;
  --purple: #9933FF;
  --orange: #FF6600;
  --black:  #111111;
  --cream:  #FFF8E7;
  --white:  #FFFFFF;
  --gray:   #888888;
  --pixel:  'VT323', monospace;
}

/* ── 語言切換 ── */
.lang-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 2px 10px;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
}
.lang-btn:hover, .lang-btn.active {
  background: #111;
  color: #FFE500;
  border-color: #111;
}

/* ── Ticker 跑馬燈 ── */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: #111;
  color: #FFE500;
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 4px 0;
  border-top: 3px solid #FF0099;
  border-bottom: 3px solid #FF0099;
}
.ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 30s linear infinite;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 浮動吉祥物 ── */
.l1-mascot {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.decor-sticker--bob { animation: bob 3s ease-in-out infinite; }

/* ── 捲動顯示 ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.anim-fadeup { animation: fadeUp 0.7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   ██ 第一層 — 首頁入口 LANDING PAGE ██
   ============================================= */
.l1-body {
  background: #48ff00;
  min-height: 100vh;
  overflow-x: hidden;
}
.l1-landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 20px 20px;
  gap: 0;
}

/* 重複磚貼背景 */
.l1-tiled-bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.18;
}
.l1-tiled-overlay { display: none; }

/* 語言按鈕 */
.l1-lang-corner {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;
  display: flex;
  gap: 4px;
}
.l1-lang-corner .lang-btn {
  color: white;
  border-color: white;
  background: rgba(0,0,0,0.5);
  font-size: 16px;
}
.l1-lang-corner .lang-btn:hover,
.l1-lang-corner .lang-btn.active {
  background: #FFE500;
  color: #111;
  border-color: #111;
}

/* 名片卡 */
.l1-content {
  position: relative;
  z-index: 1;
  background: #FFF8E7;
  border: 4px solid #111;
  max-width: 620px;
  width: 100%;
  text-align: center;
}
.l1-content-header {
  background: #111;
  color: #FFE500;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.l1-content-header-title {
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
}
/* 分隔線 */
.checker-divider {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #FF0099 0px, #FF0099 10px,
    #FFE500 10px, #FFE500 20px
  );
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}
.l1-content-body { padding: 24px 20px 16px; }

.l1-name {
  font-family: 'VT323', monospace;
  font-size: clamp(64px, 16vw, 100px);
  line-height: 1;
  color: #111;
  letter-spacing: 2px;
}
.l1-name-cn {
  font-family: 'VT323', monospace;
  font-size: clamp(22px, 5vw, 32px);
  color: #FF0099;
  letter-spacing: 8px;
  margin: 6px 0;
}
.l1-tagline {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #555;
  margin: 8px 0 16px;
  letter-spacing: 1px;
}

/* 導覽格 */
.l1-nav-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  width: 100%;
  border: 4px solid #111;
  margin-top: -4px;
}
.l1-nav-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 14px 8px;
  color: #111;
  background: #FFF8E7;
  border: 2px solid #111;
  text-decoration: none;
  line-height: 1.3;
}
.l1-nav-cell:hover {
  background: #FF0099;
  color: white;
  text-decoration: none;
}
.l1-nav-cell:nth-child(2):hover  { background: #00CCFF; color: #111; }
.l1-nav-cell:nth-child(3):hover  { background: #00FF66; color: #111; }
.l1-nav-cell:nth-child(4):hover  { background: #9933FF; color: white; }
.l1-nav-cell:nth-child(5):hover  { background: #FF6600; color: white; }
.l1-nav-cell:nth-child(6):hover  { background: #FF0099; color: white; }
.l1-nav-cell:nth-child(7):hover  { background: #FFE500; color: #111; }
.l1-nav-cell:nth-child(8):hover  { background: #00FF66; color: #111; }
.l1-nav-cell:nth-child(9):hover  { background: #FF3300; color: white; }
.l1-nav-cell:nth-child(10):hover { background: #00CCFF; color: #111; }

/* =============================================
   ██ 第二層 — HOME ██
   ============================================= */
.l2-body {
  background: #FFF8E7;
  min-height: 100vh;
}

/* 頂部導覽列 */
.l2-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  border-bottom: 3px solid #FF0099;
}
.l2-logo {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #FFE500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.l2-logo img { height: 24px; display: inline-block; }
.l2-logo span { color: #FF0099; }
.l2-nav { display: flex; align-items: center; }
.l2-navlink {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 4px 10px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.l2-navlink:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.l2-navlink.active { color: #FFE500; border-bottom: 3px solid #FF0099; }
.l2-lang-toggle {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

/* Hero 區塊 */
.l2-hero {
  padding: 40px 24px 24px;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 3px solid #111;
}
.l2-eyebrow {
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 2px;
  color: white;
  background: #FF0099;
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.l2-bigname {
  font-family: 'VT323', monospace;
  font-size: clamp(60px, 12vw, 100px);
  line-height: 1;
  color: #111;
  margin-bottom: 16px;
}
.l2-bio-short {
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  padding: 12px;
  border: 3px dashed #111;
  background: white;
  max-width: 600px;
}

/* 關於 / CV */
.l2-about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  border-bottom: 3px solid #111;
}
.l2-about-sidebar { position: sticky; top: 60px; align-self: start; }
.l2-section-label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  background: #FF0099;
  color: white;
  padding: 1px 8px;
  display: inline-block;
  margin-bottom: 4px;
}
.l2-section-title {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: #111;
}
.l2-about-content { display: flex; flex-direction: column; gap: 20px; }
.l2-statement {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  padding: 12px;
  background: white;
  border: 2px solid #111;
}
.l2-cv-section { margin-bottom: 16px; }
.l2-cv-heading {
  font-family: 'VT323', monospace;
  font-size: 20px;
  background: #111;
  color: #FFE500;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 8px;
}
.l2-cv-list { display: flex; flex-direction: column; gap: 4px; }
.l2-cv-list li {
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 4px 4px 10px;
  border-left: 4px solid #FFE500;
  color: #333;
}
.l2-cv-list li strong { color: #111; }

/* 聯絡 */
.l2-contact {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  border-bottom: 3px solid #111;
}
.l2-contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.l2-contact-item {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #111;
  padding: 10px;
  border: 3px solid #111;
  background: #FFF8E7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.l2-contact-item:hover {
  background: #FF0099;
  color: white;
  text-decoration: none;
}
.l2-contact-item:nth-child(2):hover { background: #FF6600; }
.l2-contact-item:nth-child(3):hover { background: #00CCFF; color: #111; }
.l2-contact-item:nth-child(4):hover { background: #00FF66; color: #111; }
.l2-contact-item:nth-child(5):hover { background: #9933FF; }
.l2-contact-item:nth-child(6):hover { background: #FFE500; color: #111; }

/* Footer */
.l2-footer {
  background: #111;
  color: #888;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'VT323', monospace;
  font-size: 16px;
  border-top: 3px solid #FF0099;
}
.l2-footer a { color: #FFE500; }
.l2-footer a:hover { color: #FF0099; background: none; }

/* =============================================
   ██ 第三層 — WORKS / GAME / BOOTH / GB ██
   ============================================= */
.l3-body {
  background: #FFF8E7;
  color: #111;
  min-height: 100vh;
}

/* 頁首 */
.l3-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 3px solid #FF0099;
}
.l3-header-logo {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #FFE500;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 3px solid #FF0099;
  text-decoration: none;
}
.l3-tabs { display: flex; height: 100%; flex: 1; }
.l3-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 0 16px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.l3-tab:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.l3-tab.active { background: #FF0099; color: white; }
.l3-header-right {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 4px;
}

/* ── 作品頁 WORKS ── */
.works-hero {
  padding: 32px 24px 16px;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 3px solid #111;
}
.works-title {
  font-family: 'VT323', monospace;
  font-size: clamp(48px, 10vw, 80px);
  line-height: 1;
  color: #111;
}
.works-subtitle {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #FF0099;
  margin-top: 4px;
}
.works-filter {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 3px dashed #111;
  background: white;
}
.works-filter-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 2px 12px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  color: #888;
}
.works-filter-btn:hover { color: #111; border-color: #111; }
.works-filter-btn.active {
  background: #FF0099;
  color: white;
  border-color: #FF0099;
}

.works-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 3px dashed #111;
  align-items: start;
}
.work-item:last-child { border-bottom: none; }
.work-item.hidden-by-cat { display: none; }
.work-item:nth-child(even) { background: white; padding: 20px; margin: 0 -24px; }

.work-images { display: flex; flex-direction: column; gap: 8px; }
.work-img-placeholder {
  aspect-ratio: 4/3;
  min-height: 200px;
  background: #ddd;
  border: 2px dashed #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #888;
}
.work-img { width: 100%; height: auto; border: 3px solid #111; }

/* Gallery */
.gallery-stack { position: relative; width: 100%; }
.gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 200px;
  overflow: hidden;
  background: #111;
  border: 3px solid #111;
}
.gallery-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;
  background: #111;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #888;
}
.gallery-prev, .gallery-next {
  background: #FFE500;
  border: 2px solid #111;
  color: #111;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-prev:hover, .gallery-next:hover { background: #FF0099; color: white; }
.gallery-counter { min-width: 40px; text-align: center; }

/* 作品 meta */
.work-meta { display: flex; flex-direction: column; gap: 8px; }
.work-meta-title {
  font-family: 'VT323', monospace;
  font-size: 28px;
  line-height: 1.1;
  color: #111;
}
.work-meta-details {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: white;
  background: #111;
  padding: 2px 8px;
  display: inline-block;
}
.work-meta-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.work-meta-link {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #FF0099;
}
.work-cat-tag {
  font-family: 'VT323', monospace;
  font-size: 16px;
  background: #FF0099;
  color: white;
  padding: 1px 6px;
  display: inline-block;
}

/* ── 遊戲 GAME ── */
.play-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 48px); }
.play-left { border-right: 3px dashed #111; display: flex; flex-direction: column; }
.play-right { display: flex; flex-direction: column; }
.play-panel-header {
  padding: 16px 20px 12px;
  border-bottom: 3px dashed #111;
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.play-panel-title {
  font-family: 'VT323', monospace;
  font-size: clamp(24px, 3vw, 32px);
  color: #111;
}
.play-panel-sub {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #FF0099;
}
.play-content { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.play-section-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 8px 20px;
  border-bottom: 3px dashed #111;
  background: #FFF8E7;
  position: sticky;
  top: 48px;
  z-index: 10;
}
.play-section-link {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #888;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 3px solid transparent;
}
.play-section-link:hover, .play-section-link.active {
  color: #FF0099;
  border-bottom-color: #FF0099;
  text-decoration: none;
}

/* 遊戲畫面 */
#game-canvas-wrap {
  position: relative;
  background: #111;
  border: 4px solid #111;
  overflow: hidden;
}
#game-canvas {
  display: block;
  width: 100%;
  height: 320px;
  cursor: crosshair;
}
.game-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  background: rgba(0,0,0,0.92); color: white;
}
.game-overlay.hidden { display: none; }
.game-overlay-title {
  font-family: 'VT323', monospace;
  font-size: 40px;
  color: #FFE500;
}
.game-score-display {
  font-family: 'VT323', monospace;
  font-size: 72px;
  color: #FF0099;
}
#game-name-input {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 4px 10px;
  border: 2px solid #FF0099;
  background: transparent;
  color: white;
  width: 180px;
}
#game-name-input::placeholder { color: rgba(255,255,255,0.4); }

/* 排行榜 */
.leaderboard-wrap {
  background: white;
  border: 3px solid #111;
  padding: 0;
  overflow: hidden;
}
.leaderboard-title {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #FFE500;
  background: #111;
  padding: 4px 10px;
  display: block;
  margin: 0 0 8px;
}
#leaderboard-list,
#flappy-leaderboard-list {
  list-style: none;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #333;
  padding: 0 10px 10px;
}
#leaderboard-list li,
#flappy-leaderboard-list li {
  padding: 3px 0;
  border-bottom: 1px dashed #ddd;
  display: flex;
  justify-content: space-between;
}
#leaderboard-list li:nth-child(1),
#flappy-leaderboard-list li:nth-child(1) { color: #FF0099; }
#leaderboard-list li:nth-child(2),
#flappy-leaderboard-list li:nth-child(2) { color: #FF6600; }
#leaderboard-list li:nth-child(3),
#flappy-leaderboard-list li:nth-child(3) { color: #9933FF; }

/* ── 拍貼 BOOTH ── */
.booth-wrap { display: flex; flex-direction: column; gap: 10px; }
.booth-preview {
  position: relative;
  border: 4px solid #111;
  background: #111;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 260px;
}
#booth-video, #booth-canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
#booth-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.booth-frame-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
}
.booth-frame-overlay.frame-none { display: none; }
.booth-frame-overlay.frame-pink  { border: 10px solid #FF0099; }
.booth-frame-overlay.frame-yellow { border: 10px solid #FFE500; }
.booth-frame-overlay.frame-retro  { border: 14px solid #FFF8E7; }
.booth-frame-overlay.frame-acid   { border: 10px solid #00FF66; }
.booth-frame-overlay.frame-img1 { background: url('images/decor/frame1.png') no-repeat center/100% 100%; }
.booth-frame-overlay.frame-img2 { background: url('images/decor/frame2.png') no-repeat center/100% 100%; }
.booth-controls {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.booth-controls select {
  font-family: 'VT323', monospace;
  font-size: 16px;
  padding: 3px 8px;
  border: 2px solid #111;
  background: white;
}

/* ── 留言 GUESTBOOK ── */
.guestbook-hero {
  padding: 32px 24px 16px;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 3px solid #111;
}
.guestbook-title {
  font-family: 'VT323', monospace;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  color: #111;
  margin-bottom: 8px;
}
.guestbook-desc {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #888;
  line-height: 1.6;
  max-width: 500px;
}
.guestbook-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
  gap: 24px;
}
.guestbook-form-col, .guestbook-entries-col { padding: 16px 0; }
.gb-col-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  background: #FF0099;
  color: white;
  padding: 2px 10px;
  display: block;
  margin-bottom: 12px;
}
.gb-form-field { margin-bottom: 12px; }
.gb-form-field label {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin-bottom: 4px;
  color: #111;
}
.gb-form-field textarea,
.gb-form-field input[type="text"] {
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 16px;
  padding: 6px 8px;
  border: 3px solid #111;
  background: white;
  color: #111;
  resize: vertical;
}
.gb-form-field textarea:focus,
.gb-form-field input:focus {
  border-color: #FF0099;
  outline: none;
}
.gb-radio-group { display: flex; gap: 16px; margin-bottom: 12px; }
.gb-radio-label {
  display: flex; align-items: center; gap: 4px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
}
.gb-radio-label input { accent-color: #FF0099; }

#guestbook-entries { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gb-entry {
  border: 2px solid #111;
  padding: 8px 10px;
  background: white;
}
.gb-entry:nth-child(odd) { background: #fffff0; }
.gb-entry:nth-child(even) { background: #f0ffff; }
.gb-entry:hover { border-color: #FF0099; }
.gb-entry-meta { display: flex; justify-content: space-between; margin-bottom: 4px; }
.gb-entry-author { font-family: 'VT323', monospace; font-size: 18px; color: #FF0099; }
.gb-entry-time   { font-family: 'VT323', monospace; font-size: 14px; color: #888; }
.gb-entry-msg    { font-size: 14px; line-height: 1.6; color: #333; }

/* ── Full-page game/booth ── */
.game-fullpage, .booth-fullpage {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}
.game-fullpage .play-panel-header,
.booth-fullpage .play-panel-header {
  padding: 20px 0 14px;
  border-bottom: 3px dashed #111;
}
.game-fullpage #game-canvas-wrap { margin-top: 12px; }
.game-fullpage #game-canvas { height: 360px; }
.game-fullpage .leaderboard-wrap { margin-top: 12px; }
.booth-fullpage .booth-preview { max-width: 520px; margin: 0 auto; }

/* ── 共用按鈕 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 6px 16px;
  border: 3px solid #111;
  background: #FFE500;
  color: #111;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #FF0099; color: white; border-color: #FF0099; text-decoration: none; }
.btn-accent  { background: #FF0099; color: white; }
.btn-accent:hover { background: #00FF66; color: #111; }
.btn-filled  { background: #111; color: white; }
.btn-filled:hover { background: #FF0099; }

/* ── 圖片跑馬燈 ── */
.photo-strip {
  overflow: hidden;
  white-space: nowrap;
  background: #111;
  border-top: 3px solid #111;
  border-bottom: 3px solid #111;
}
.photo-strip-inner {
  display: inline-flex;
  animation: photoScroll 40s linear infinite;
  gap: 3px;
}
.photo-strip--reverse .photo-strip-inner { animation-direction: reverse; }
.photo-strip--slow .photo-strip-inner { animation-duration: 60s; }
.photo-strip-img {
  height: 150px;
  width: auto;
  object-fit: cover;
  display: block;
  filter: saturate(1.4);
}
.photo-strip-img:hover { filter: saturate(2); }
@keyframes photoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 全寬圖片分隔 ── */
.img-divider {
  width: 100%;
  height: 40vh;
  min-height: 240px;
  max-height: 460px;
  overflow: hidden;
  border-top: 3px solid #111;
  border-bottom: 3px solid #111;
}
.img-divider img { width: 100%; height: 100%; object-fit: cover; }

/* ── 圖片格 ── */
.img-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.img-grid-editorial img { width: 100%; height: 240px; object-fit: cover; }

/* ── 彩色標題條 ── */
.section-banner {
  background: #111;
  color: #FFE500;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-top: 3px solid #FF0099;
  border-bottom: 3px solid #FF0099;
}

/* ── 彩虹橫線 ── */
.rainbow-hr {
  border: none;
  height: 6px;
  background: linear-gradient(90deg,
    #FF0099 0%, #FF0099 20%,
    #FFE500 20%, #FFE500 40%,
    #00FF66 40%, #00FF66 60%,
    #00CCFF 60%, #00CCFF 80%,
    #9933FF 80%, #9933FF 100%
  );
  margin: 0;
}

/* ── 滾動條 ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF8E7; }
::-webkit-scrollbar-thumb { background: #FF0099; }
::-webkit-scrollbar-thumb:hover { background: #FF3300; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .l2-hero { padding: 24px 16px; }
  .l2-about { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .l2-about-sidebar { position: static; }
  .l2-contact { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .l2-contact-links { grid-template-columns: 1fr 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 16px; }
  .play-split { grid-template-columns: 1fr; }
  .play-left { border-right: none; border-bottom: 3px dashed #111; }
  .guestbook-split { grid-template-columns: 1fr; gap: 16px; }
  .l3-tabs { display: none; }
  .l1-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid-editorial { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .l2-header { padding: 0 10px; }
  .l2-navlink { font-size: 14px; padding: 2px 6px; }
  .l1-content-body { padding: 16px; }
  .l1-nav-grid { grid-template-columns: 1fr 1fr; }
  .l1-nav-cell { font-size: 14px; padding: 10px 6px; }
  .works-hero { padding: 20px 16px 12px; }
  .works-list { padding: 0 16px 24px; }
  .guestbook-hero { padding: 20px 16px 12px; }
  .guestbook-split { padding: 0 16px 24px; }
  .l2-contact-links { grid-template-columns: 1fr; }
  .img-grid-editorial { grid-template-columns: 1fr; }
