}


/* =============================================
   ██ WINDOWS XP / 早期網頁 PORTAL STYLE ██
   rice.place aesthetic — XP window chrome
   ============================================= */

/* ── Desktop background ── */
body.xp-desktop {
  margin: 0;
  padding: 24px 16px 60px;
  min-height: 100vh;
  background-color: #1F5CA6;   /* XP blue fallback */
  background-repeat: repeat;
  background-size: 120px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, 'MS Sans Serif', sans-serif;
  font-size: 13px;
  box-sizing: border-box;
}

/* Desktop mascots */
.xp-desktop-mascot {
  position: fixed;
  bottom: 30px;
  width: 76px;
  pointer-events: none;
  z-index: 0;
  image-rendering: pixelated;
}
.xp-desktop-mascot.left  { left: 12px; }
.xp-desktop-mascot.right { right: 12px; transform: scaleX(-1); }

/* ── Main XP Window ── */
.xp-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  background: #ECE9D8;
  /* XP window border: white highlight top/left, dark shadow bottom/right */
  border: 3px solid #0A246A;
  border-radius: 6px 6px 0 0;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.6), inset 1px 1px 0 rgba(255,255,255,0.5);
  overflow: hidden;
}

/* ── GIF Side Window ── */
.xp-gif-window {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 200px;
  max-width: 200px;
  z-index: 20;
}
.xp-gif-window .xp-titlebar {
  padding: 2px 4px 2px 6px;
  font-size: 11px;
}
.xp-gif-window .xp-titlebar-left {
  font-size: 11px;
}
.xp-gif-window .xp-titlebar-btns button {
  width: 16px;
  height: 14px;
  font-size: 8px;
}
@media (max-width: 1200px) {
  .xp-gif-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 900px;
    margin-top: 8px;
  }
}
.xp-gb-window {
  position: fixed;
  top: 290px;
  right: 16px;
  width: 220px;
  max-width: 220px;
  z-index: 20;
}
.xp-gb-window .xp-titlebar {
  padding: 2px 4px 2px 6px;
  font-size: 11px;
}
.xp-gb-window .xp-titlebar-left {
  font-size: 11px;
}
.xp-gb-window .xp-titlebar-btns button {
  width: 16px;
  height: 14px;
  font-size: 8px;
}
@media (max-width: 1200px) {
  .xp-gb-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 900px;
    margin-top: 8px;
  }
}

/* ── Title Bar ── */
.xp-titlebar {
  background: linear-gradient(180deg, #2A74D5 0%, #1659C7 30%, #0F4BBB 60%, #0A3EAF 100%);
  padding: 4px 4px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  user-select: none;
}
.xp-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
}
.xp-titlebar-left img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.xp-titlebar-btns {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}
.xp-titlebar-btns button {
  width: 22px;
  height: 22px;
  background: linear-gradient(180deg, #6CAAE8 0%, #4D8FDD 40%, #2F74D0 100%);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  color: white;
  font-size: 9px;
  font-weight: bold;
  font-family: 'Marlett', Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.xp-btn-close {
  background: linear-gradient(180deg, #F08070 0%, #D94030 40%, #C02818 100%) !important;
  margin-left: 2px;
}
.xp-titlebar-btns button:hover { filter: brightness(1.25); }
.xp-titlebar-btns button:active { filter: brightness(0.85); }

/* ── Menu Bar ── */
.xp-menubar {
  background: #ECE9D8;
  border-bottom: 1px solid #ACA899;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}
.xp-menu-items {
  display: flex;
  align-items: center;
}
.xp-menu-item {
  padding: 2px 8px;
  font-size: 11px;
  color: #000;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  cursor: default;
  white-space: nowrap;
}
.xp-menu-item:hover {
  background: #316AC5;
  color: white;
}
/* Lang buttons inside menubar */
.xp-menubar .lang-btn {
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  padding: 1px 6px;
  min-width: 26px;
  text-align: center;
  background: #ECE9D8;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  cursor: pointer;
  color: #000;
  border-radius: 0;
  line-height: 1.4;
}
.xp-menubar .lang-btn.active,
.xp-menubar .lang-btn:hover {
  background: #316AC5;
  color: white;
  border-color: #316AC5;
}

/* ── Address / Toolbar Bar ── */
.xp-toolbar {
  background: #ECE9D8;
  border-bottom: 1px solid #ACA899;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
}
.xp-toolbar-label { color: #000; white-space: nowrap; }
.xp-address {
  flex: 1;
  background: white;
  border-top: 1px solid #7A7A7A;
  border-left: 1px solid #7A7A7A;
  border-right: 1px solid #DFDFDF;
  border-bottom: 1px solid #DFDFDF;
  padding: 1px 4px;
  font-size: 11px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  color: #000080;
  outline: none;
  cursor: default;
}
.xp-go-btn {
  background: #ECE9D8;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 2px 8px;
  font-size: 11px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  color: #000;
}
.xp-go-btn:hover { background: #D0CCBA; }
.xp-go-btn:active { border-color: #808080 #FFFFFF #FFFFFF #808080; }

/* ── Window Body: sidebar + content ── */
.xp-body {
  display: flex;
  min-height: 380px;
}

/* ── Left Sidebar (Task Panel) ── */
.xp-sidebar {
  width: 175px;
  min-width: 175px;
  background: linear-gradient(180deg, #D6E4F7 0%, #C0D8F5 100%);
  border-right: 1px solid #7F9DB9;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.xp-sidebar-section { margin: 0; }
.xp-sidebar-hd {
  background: linear-gradient(90deg, #1A55C5 0%, #5E8FE0 65%, transparent 100%);
  color: white;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 10px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(0,0,80,0.2);
}
.xp-sidebar-artist {
  padding: 10px 8px 8px;
  text-align: center;
  border-bottom: 1px solid #A8C4E8;
  background: rgba(255,255,255,0.35);
}

/* ── Nav list ── */
.xp-nav-list { list-style: none; padding: 2px 0; margin: 0; }
.xp-nav-list li { border-bottom: 1px dotted rgba(100,140,200,0.3); }
.xp-nav-link {
  display: block;
  padding: 5px 12px;
  font-size: 12px;
  color: #0033AA;
  text-decoration: underline;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  cursor: pointer;
}
.xp-nav-link:hover {
  background: #316AC5;
  color: white;
  text-decoration: none;
}
.xp-nav-link:active { background: #1A4EA8; color: white; }

/* ── Right Content Panel ── */
.xp-content {
  flex: 1;
  background: white;
  padding: 10px 12px;
  overflow-y: auto;
  min-width: 0;
}

/* Inner panel (mini window inside content) */
.xp-inner-panel {
  border: 2px solid #111;
  margin-bottom: 10px;
  background: #FFF8E7;
}
.xp-inner-panel-title {
  background: linear-gradient(90deg, #FF0099 0%, #FF55BB 60%, #FF0099 100%);
  color: white;
  font-family: 'VT323', monospace;
  font-size: 15px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
  white-space: nowrap;
  overflow: hidden;
}
.xp-inner-panel-title img {
  width: 14px; height: 14px;
  object-fit: contain;
  margin-right: 5px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.xp-inner-panel-body {
  padding: 14px 16px 10px;
  text-align: center;
}
.xp-artist-name {
  font-family: 'VT323', monospace;
  font-size: clamp(28px, 6vw, 42px);
  color: #111;
  line-height: 1;
  margin: 0 0 2px;
}
.xp-artist-cn {
  font-family: 'Kaiti', '標楷體', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  color: #FF0099;
  letter-spacing: 8px;
  margin-bottom: 6px;
}
.xp-tagline {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #555;
  margin: 0 0 6px;
  line-height: 1.4;
}
.xp-stars {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #FF0099;
}

/* File/folder icon grid */
.xp-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0 2px;
}
.xp-file-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  padding: 10px 6px;
  text-decoration: none;
  color: #000;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 12px;
  text-align: center;
  gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
}
.xp-file-icon:hover {
  background: #D8E8FF;
  border: 1px dotted #316AC5;
  color: #000;
  text-decoration: none;
}
.xp-file-icon:active { background: #B8D0FF; }
.xp-file-img { font-size: 36px; line-height: 1; display:flex; align-items:center; justify-content:center; }
.xp-file-img img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.xp-file-icon span {
  display: block;
  max-width: 68px;
  word-break: break-word;
  line-height: 1.2;
  color: #000;
}

/* ── Status Bar ── */
.xp-statusbar {
  background: #ECE9D8;
  border-top: 1px solid #ACA899;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  color: #444;
  min-height: 22px;
  gap: 0;
}
.xp-status-left {
  border-right: 1px solid #ACA899;
  padding-right: 8px;
  margin-right: 8px;
  white-space: nowrap;
  color: #222;
}
.xp-status-ticker {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #FF0099;
  flex: 1;
}

/* ── XP sidebar artist info text ── */
.xp-sidebar-artist-name {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #000;
  line-height: 1.2;
  text-align: center;
}
.xp-sidebar-artist-cn {
  font-family: 'Kaiti', '標楷體', 'Noto Sans TC', sans-serif;
  font-size: 10px;
  color: #333;
  text-align: center;
  margin-top: 3px;
  letter-spacing: 3px;
}

/* ── Mobile: stack sidebar above content ── */
@media (max-width: 560px) {
  body.xp-desktop { padding: 10px 8px 50px; }
  .xp-desktop-mascot { display: none; }
  .xp-body { flex-direction: column; }
  .xp-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid #7F9DB9; }
  .xp-nav-list { display: flex; flex-wrap: wrap; gap: 0; padding: 4px; }
  .xp-nav-list li { border: none; width: 50%; }
  .xp-nav-link { font-size: 11px; padding: 4px 8px; }
  .xp-artist-name { font-size: 38px; }
  .xp-icon-grid { gap: 2px; }
  .xp-file-icon { width: 58px; }
  .xp-titlebar-left { font-size: 11px; }
  .xp-menu-item { font-size: 10px; padding: 2px 5px; }
  .xp-work-body { flex-direction: column; }
  .xp-work-img { width: 100%; min-width: unset; height: 200px; }
  .xp-tabbar { gap: 1px; }
  .xp-tab { font-size: 10px; padding: 2px 7px; }
}


/* =============================================
   ██ XP INNER PAGES (home / works / gb / game / booth)
   ============================================= */

.xp-window--inner { max-width: 900px; }

/* Tab bar navigation */
.xp-tabbar {
  background: #ECE9D8;
  border-bottom: 2px solid #7F9DB9;
  display: flex;
  align-items: flex-end;
  padding: 4px 6px 0;
  gap: 2px;
  flex-wrap: wrap;
}
.xp-tab {
  padding: 3px 11px 3px;
  background: #C8C4BC;
  border: 1px solid #808080;
  border-bottom: none;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  text-decoration: none;
  color: #000;
  margin-bottom: -2px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
}
.xp-tab.active {
  background: white;
  font-weight: bold;
  padding-bottom: 5px;
  color: #000;
}
.xp-tab:hover:not(.active) { background: #B8B4AC; text-decoration: none; color: #000; }
.xp-tab-right {
  margin-left: auto;
  display: flex;
  gap: 3px;
  align-items: center;
  padding-bottom: 3px;
}
.xp-tab-right .lang-btn {
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  padding: 1px 6px;
  min-width: 26px;
  text-align: center;
  background: #ECE9D8;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  cursor: pointer;
  color: #000;
  border-radius: 0;
  line-height: 1.4;
}
.xp-tab-right .lang-btn.active,
.xp-tab-right .lang-btn:hover {
  background: #316AC5;
  color: white;
  border-color: #316AC5;
}

/* Full-width page content */
.xp-page-content { background: white; padding: 14px 16px; }

/* Section header */
.xp-section-hd {
  background: linear-gradient(90deg, #1A55C5 0%, #5E8FE0 55%, transparent 100%);
  color: white;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 3px 10px;
  margin: 14px 0 5px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}
.xp-section-hd:first-child { margin-top: 0; }

/* CV */
.xp-cv-block { margin-bottom: 10px; }
.xp-cv-label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #0033AA;
  border-bottom: 1px solid #C0D0E8;
  margin-bottom: 3px;
  padding-bottom: 1px;
}
.xp-cv-list { list-style: none; padding-left: 12px; margin: 0; }
.xp-cv-list li {
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.07);
  color: #222;
  line-height: 1.4;
}

/* Bio */
.xp-bio {
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  line-height: 1.6;
  color: #333;
  background: #F8F6F0;
  border: 1px solid #D4D0C8;
  padding: 8px 10px;
  margin-bottom: 10px;
}

/* Page hero */
.xp-page-hero {
  font-family: 'VT323', monospace;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1;
  color: #111;
  margin: 0 0 3px;
}
.xp-page-sub {
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  color: #555;
  margin-bottom: 10px;
}

/* Photo strip inside XP */
.xp-photo-strip {
  display: flex;
  overflow: hidden;
  gap: 3px;
  padding: 4px 0;
  border-top: 1px solid #D4D0C8;
  border-bottom: 1px solid #D4D0C8;
  margin: 10px 0;
}
.xp-photo-strip img { height: 48px; width: auto; flex-shrink: 0; object-fit: cover; }

/* Works filter */
.xp-works-filter {
  display: flex;
  gap: 2px;
  padding: 0 0 7px;
  border-bottom: 1px solid #D4D0C8;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.xp-filter-btn {
  padding: 2px 10px;
  background: #ECE9D8;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
}
.xp-filter-btn.active, .xp-filter-btn:hover {
  background: #316AC5;
  color: white;
  border-color: #316AC5;
}

/* Work item */
.xp-work-item {
  border: 1px solid #D4D0C8;
  margin-bottom: 6px;
  background: #FAFAFA;
}
.xp-work-item.hidden { display: none; }
.xp-work-hd {
  background: #EEE9E0;
  border-bottom: 1px solid #D4D0C8;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 10px;
  color: #555;
}
.xp-work-hd-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #000;
}
.xp-work-body { padding: 8px; display: flex; gap: 10px; }
.xp-work-img {
  width: 200px;
  min-width: 200px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 10px;
  text-align: center;
  border: 1px solid #D4D0C8;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.xp-work-img img { width: 100%; height: 100%; object-fit: cover; }
.xp-work-img::after {
  content: 'lil_david_ooo';
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-family: 'VT323', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 4;
  letter-spacing: 0.5px;
}
.xp-work-text { flex: 1; font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif; font-size: 11px; line-height: 1.4; min-width: 0; }
.xp-work-cat { font-size: 10px; color: #0033AA; text-decoration: underline; margin-bottom: 2px; }
.xp-work-desc { color: #444; margin-top: 3px; }

/* Guestbook atabook embed */
.xp-atabook-wrap {
  border: 2px inset #D4D0C8;
  background: #ECE9D8;
  overflow: hidden;
}
.xp-atabook-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  min-height: 520px;
}
.xp-atabook-link {
  display: block;
  text-align: center;
  padding: 6px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 11px;
  background: #ECE9D8;
  border-top: 1px solid #D4D0C8;
}

/* Contact list */
.xp-contact-list { list-style: none; padding: 2px 0; margin: 0; }
.xp-contact-list li { border-bottom: 1px dotted #D4D0C8; }
.xp-contact-list a {
  display: block;
  padding: 4px 10px;
  font-family: 'Kaiti SC', 'Kaiti', '標楷體', Tahoma, sans-serif;
  font-size: 12px;
  color: #0033AA;
  text-decoration: underline;
}
.xp-contact-list a:hover { background: #316AC5; color: white; text-decoration: none; }

/* Game/Booth content */
.xp-game-wrap { padding: 10px 14px; background: white; }

/* ── Scrolling Marquee ── */
.xp-marquee {
  background: #FF0099;
  color: #FFE500;
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  padding: 3px 0;
}
.xp-marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: xpMarqueeScroll 20s linear infinite;
}
@keyframes xpMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Blog styles ── */
.xp-blog-list { display: flex; flex-direction: column; gap: 8px; }
.xp-blog-entry {
  border: 1px solid #D4D0C8;
  background: #FAFAFA;
  padding: 8px 10px;
}
.xp-blog-entry:nth-child(odd) { background: #FFFFF0; }
.xp-blog-entry:hover { border-color: #FF0099; }
.xp-blog-date {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #888;
}
.xp-blog-title {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #0033AA;
  margin: 2px 0 4px;
}
.xp-blog-body {
  font-family: 'Kaiti', '標楷體', 'DFKai-SB', Tahoma, 'Kaiti', '標楷體', 'Noto Sans TC', sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #333;
}

/* ── Explosion effect ── */
.explosion-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF3300;
  animation: explosionFlash 2s ease-out forwards;
  pointer-events: none;
}
.explosion-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  image-rendering: pixelated;
}
@keyframes explosionFlash {
  0%   { opacity: 1; transform: scale(0.5); }
  10%  { transform: scale(1.5); background: #FFFF00; }
  20%  { transform: scale(1); background: #FF3300; }
  30%  { transform: scale(1.2); background: #FF0099; }
  50%  { transform: scale(1); background: #FF6600; }
  100% { opacity: 0; transform: scale(2); }
}

/* ── Low-res / pixelated image rendering ── */
.xp-work-img img,
.xp-photo-strip img,
.xp-inner-panel img {
  image-rendering: pixelated;
}

/* ── Rougher aesthetic: dashed borders, chaotic hover colors ── */
.xp-work-item:hover { border-color: #FF3300; }
.xp-work-item:nth-child(3n) .xp-work-hd { background: #FFCCEE; }
.xp-work-item:nth-child(3n+1) .xp-work-hd { background: #CCFFCC; }
.xp-work-item:nth-child(3n+2) .xp-work-hd { background: #CCCCFF; }

.xp-tab:nth-child(odd):hover:not(.active) { background: #FF6600; color: white; }
.xp-tab:nth-child(even):hover:not(.active) { background: #00FF66; color: #111; }

/* ── Work image gallery slider ── */
.xp-gallery {
  position: relative;
}
.xp-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.xp-gallery-slide.active {
  display: block;
}
.xp-gallery-prev,
.xp-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 2px solid #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.xp-gallery-prev { left: 4px; }
.xp-gallery-next { right: 4px; }
.xp-gallery-prev:hover,
.xp-gallery-next:hover {
  background: #FF0099;
}
.xp-gallery-counter {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #FFE500;
  font-family: 'VT323', monospace;
  font-size: 12px;
  padding: 1px 6px;
  z-index: 5;
}

/* ── XP Dropdown menus ── */
.xp-menu-item {
  position: relative;
  cursor: pointer;
}
.xp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ECE9D8;
  border: 2px solid #808080;
  border-top: 1px solid #D4D0C8;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  min-width: 160px;
  z-index: 100;
  padding: 2px 0;
}
.xp-menu-item:hover > .xp-dropdown,
.xp-menu-item.open > .xp-dropdown {
  display: block;
}
.xp-dropdown a {
  display: block;
  padding: 3px 20px 3px 8px;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.xp-dropdown a:hover {
  background: #0A246A;
  color: #fff;
}
.xp-dropdown-sep {
  border-top: 1px solid #808080;
  margin: 2px 0;
}
.xp-menu-items {
  position: relative;
}

/* Screen shake for explosion */
@keyframes shakeScreen {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-10px, -5px); }
  20% { transform: translate(10px, 5px); }
  30% { transform: translate(-8px, 4px); }
  40% { transform: translate(8px, -4px); }
  50% { transform: translate(-5px, 8px); }
  60% { transform: translate(5px, -8px); }
  70% { transform: translate(-3px, 3px); }
  80% { transform: translate(3px, -3px); }
  90% { transform: translate(-1px, 1px); }
}
