/* ═══════════════════════════════════════════════════════════════════════════
   VESNOVYA // LUNERIIM FORGES - AUTHENTIC Y2K AESTHETIC
   Ghost in the Shell × Fantasy Alaska
   TRUE EARLY 2000s WEB DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   COLOR PALETTE - DARK THEME WITH GOLD ACCENTS
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Background Colors - Based on #121212 */
  --bg-body: #0a0a0a;
  --bg-main: #121212;
  --bg-panel: #1a1a1a;
  --bg-panel-dark: #0e0e0e;
  --bg-sidebar: #141414;
  --bg-content: #101010;
  --bg-input: #080808;
  
  /* Gold/Amber Accents */
  --gold: #c9a227;
  --gold-light: #ddb84a;
  --gold-dark: #a08020;
  --gold-dim: #8a7020;
  
  /* Text Colors */
  --text-light: #cccccc;
  --text-normal: #aaaaaa;
  --text-dim: #777777;
  --text-dark: #555555;
  
  /* Border/Bevel Colors for 3D Effect */
  --bevel-light: #2a2a2a;
  --bevel-dark: #080808;
  --border-panel: #1e1e1e;
  --border-gold: #8a7020;
  
  /* Accent Colors */
  --link-color: #c9a227;
  --link-hover: #ddb84a;
  /* Used by Roblox / shop / project pages */
  --bg-darker: #0e0e0e;
  --text-secondary: #aaaaaa;
  --text-gold: #c9a227;
  --accent-primary: #c9a227;
  --accent-secondary: #ddb84a;
}

/* Site-wide beveled scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #3540a2 #0b0b0d;
}

*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  background: #0b0b0d;
  border: 1px solid #111638;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.04), inset -1px -1px 0 rgba(0, 0, 0, 0.9);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3440a4 0%, #252d78 48%, #151a46 100%);
  border: 2px solid #080809;
  border-top-color: #5964c8;
  border-left-color: #4753b6;
  border-right-color: #0b0e2a;
  border-bottom-color: #080a20;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(188, 197, 255, 0.16), inset -1px -1px 0 rgba(0, 0, 0, 0.85);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3d49b7 0%, #2d368e 48%, #1a2056 100%);
  border-top-color: #6f7ae0;
  border-left-color: #5864cc;
}

*::-webkit-scrollbar-corner {
  background: #0b0b0d;
  border-radius: 0;
}

/* Source section: faint amber edge to lift the beveled black panels */
body.source-page .source-nav,
body.source-page .map-card,
body.source-page .map-details,
body.source-page .map-detail-item,
body.source-page .map-preview img,
body.source-page .map-screenshot,
body.source-page .game-map-modal-panel {
  box-shadow:
    0 0 0 1px rgba(201, 126, 35, 0.22),
    0 0 10px rgba(201, 96, 24, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    inset -1px -1px 0 rgba(0, 0, 0, 0.82);
}

body.source-page .detail-layout {
  --detail-bg: #070707;
  --detail-panel: #0b0b0b;
}

body.source-page .detail-banner,
body.source-page .detail-block,
body.source-page .detail-block-header,
body.source-page .detail-block-body,
body.source-page .detail-download-grid {
  background: linear-gradient(180deg, #121212 0%, #090909 48%, #050505 100%);
}

body.source-page .map-preview img,
body.source-page .map-screenshot img,
body.source-page .detail-screenshots img,
.game-screenshot img {
  cursor: zoom-in;
}

/* Light theme — bright gothic cathedral in a luminous forest clearing
   (stone, parchment, gold leaf, soft rose glass — no green wash) */
[data-theme="light"] {
  --bg-body: #e6dfd2;
  --bg-main: #ddd4c4;
  --bg-panel: #e8e0d0;
  --bg-panel-dark: #d2c8b4;
  --bg-sidebar: #e0d6c4;
  --bg-content: #ebe3d4;
  --bg-input: #f4eee3;
  --gold: #8b6914;
  --gold-light: #a67c1a;
  --gold-dark: #6b5010;
  --gold-dim: #5a4210;
  --text-light: #2c2418;
  --text-normal: #3a3024;
  --text-dim: #5c5040;
  --text-dark: #4a4034;
  --bevel-light: #f0e8d8;
  --bevel-dark: #b8a890;
  --border-panel: #c4b49a;
  --border-gold: #6b5010;
  --link-color: #6e4e12;
  --link-hover: #4a340c;
  --bg-darker: #c8bca8;
  --text-secondary: #5c5040;
  --text-gold: #8b6914;
  --accent-primary: #8b6914;
  --accent-secondary: #a67c1a;
  --gothic-rose: #9a6b6b;
  --gothic-stone: #8a8278;
  --gothic-sky: #6a7a8e;
}

[data-theme="light"] #stars-canvas {
  opacity: 0.08;
}

/* Light theme: full-page background image, slightly pixelated */
[data-theme="light"] body {
  position: relative;
}
[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url(assets/backgrounds/background-light.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  opacity: 0.85;
}
[data-theme="light"] .page-wrapper {
  position: relative;
  z-index: 0;
}

/* Light theme: override hardcoded dark backgrounds so everything respects the theme */
[data-theme="light"] .site-header {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-main) 100%);
}

[data-theme="light"] .header-banner-wrapper::after {
  background: linear-gradient(
    180deg,
    rgba(232, 224, 208, 0.45) 0%,
    rgba(210, 200, 180, 0.55) 50%,
    rgba(232, 224, 208, 0.72) 100%
  );
}

[data-theme="light"] .nav-btn {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 50%, var(--bg-panel-dark) 100%);
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

[data-theme="light"] .nav-btn:hover {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

[data-theme="light"] .nav-btn:active {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  background: linear-gradient(180deg, var(--bg-content) 0%, var(--bg-panel-dark) 100%);
}

[data-theme="light"] .nav-btn.active {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border-color: var(--gold-light) var(--gold-dark) var(--gold-dark) var(--gold-light);
  color: #1a1610;
}

[data-theme="light"] .site-title {
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

[data-theme="light"] .sidebar-title {
  background: linear-gradient(90deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .content-box code {
  background: var(--bg-input);
  border-color: var(--bevel-dark);
}

[data-theme="light"] .filter-btn {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

[data-theme="light"] .filter-btn:hover {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(180deg, var(--gold-dim) 0%, var(--gold-dark) 100%);
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  color: var(--gold-light);
}

[data-theme="light"] .artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

[data-theme="light"] .artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .download-btn {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

[data-theme="light"] .download-btn:hover {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-main) 100%);
}

[data-theme="light"] .main-container {
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.4),
    inset -1px -1px 0 rgba(0,0,0,0.08),
    2px 2px 6px rgba(0,0,0,0.12);
}

[data-theme="light"] .section-header {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .section-title {
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

[data-theme="light"] .skill-tag {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

[data-theme="light"] .status-table th,
[data-theme="light"] .status-table thead td {
  background: linear-gradient(180deg, var(--bg-panel-dark) 0%, var(--bg-content) 100%);
}

[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  background: linear-gradient(180deg, rgba(210,205,194,0.95) 0%, rgba(190,185,174,0.95) 100%);
}

[data-theme="light"] .lang-dropdown {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

[data-theme="light"] .content-box,
[data-theme="light"] .sidebar,
[data-theme="light"] .sidebar-section,
[data-theme="light"] .portal-card,
[data-theme="light"] .link-hub-card,
[data-theme="light"] .gallery-item,
[data-theme="light"] .artwork-card,
[data-theme="light"] .credit-entry,
[data-theme="light"] .guestbook-entry,
[data-theme="light"] .side-widget,
[data-theme="light"] .status-table,
[data-theme="light"] .form-input,
[data-theme="light"] textarea {
  background-color: var(--bg-content);
  color: var(--text-normal);
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

[data-theme="light"] .side-widget-title,
[data-theme="light"] .hidden-console-shell,
[data-theme="light"] .index-fun-console-shell,
[data-theme="light"] .guestbook-form,
[data-theme="light"] .admin-passkey-panel {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
  color: var(--text-normal);
}

[data-theme="light"] .hidden-console-input,
[data-theme="light"] .index-fun-console-input,
[data-theme="light"] .linkback-widget textarea {
  background: var(--bg-input);
  color: var(--text-normal);
  border-color: var(--bevel-dark);
}

/* Detail layout (game pages, source maps) */
[data-theme="light"] .detail-layout {
  --detail-bg: #beb9ae;
  --detail-panel: #c4bfb4;
  --detail-white: #2a2822;
}

[data-theme="light"] .detail-layout.roblox-detail {
  --detail-bg: #b8b4a8;
  --detail-panel: #beb9ae;
  --detail-white: #252320;
  --detail-silver: #4a4540;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE - OLD SCHOOL APPROACH
   ───────────────────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-normal);
  background-color: var(--bg-body);
  min-height: 100vh;
  overflow-wrap: break-word;
}

.site-title,
.site-subtitle,
.section-title,
.portal-title,
.portal-desc,
.nav-btn,
.sidebar-links a,
.content-box,
.credit-note {
  overflow-wrap: anywhere;
}

html.legacy-background body {
  background: url(https://i.imgur.com/wXHvSEJ.gif) no-repeat center center fixed;
  background-size: cover;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TWINKLING STARS BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

html.legacy-background #stars-canvas {
  opacity: 0.25;
}

.left-side-widgets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  pointer-events: auto;
}

.side-widget {
  background: rgba(10, 10, 12, 0.9);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.04), 2px 2px 8px rgba(0, 0, 0, 0.45);
  padding: 6px;
  font-size: 9px;
}

.side-widget-title {
  margin: -6px -6px 6px;
  padding: 3px 5px;
  color: var(--gold);
  background: linear-gradient(180deg, #17172a 0%, #0d0d16 100%);
  border-bottom: 1px solid var(--bevel-dark);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: bold;
}

.tiny-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0;
  color: var(--text-dim);
  cursor: pointer;
}

.tiny-switch input {
  width: 11px;
  height: 11px;
  accent-color: var(--gold);
}

.tiny-switch.anonymous {
  opacity: 0.45;
  cursor: default;
}

/* Doom overlay — visible projection over the site (opaque canvas on a dim plate).
   Screen-blend was nearly invisible on this dark theme and looked like a failed load. */
.doom-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 40;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.doom-overlay.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

.doom-overlay__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: none;
}

.doom-overlay__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  outline: none;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  mix-blend-mode: normal;
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0);
  cursor: crosshair;
}

.doom-overlay__exit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(8, 10, 14, 0.82);
  color: #eee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  mix-blend-mode: normal;
}

.doom-overlay__exit:hover {
  border-color: var(--gold, #c9a227);
  color: var(--gold, #c9a227);
}

.doom-overlay__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  margin: 0;
  padding: 10px 14px;
  color: var(--gold, #c9a227);
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 12px;
  pointer-events: none;
  mix-blend-mode: normal;
}

.doom-overlay.is-ready .doom-overlay__loading {
  display: none;
}

.linkback-badge {
  display: block;
  line-height: 0;
  text-align: center;
  margin-bottom: 5px;
}

.linkback-badge img {
  width: 88px;
  height: 31px;
  image-rendering: auto;
}

.linkback-widget textarea {
  display: block;
  width: 100%;
  height: 72px;
  resize: none;
  padding: 4px;
  color: var(--text-normal);
  background: #050507;
  border: 1px solid var(--bevel-dark);
  font-family: 'Courier New', monospace;
  font-size: 8px;
  line-height: 1.3;
}

.index-fun-console {
  position: relative;
  padding: 0;
  transition: min-height 0.18s ease;
}

.index-fun-console.expanded {
  position: fixed;
  top: 8vh;
  left: 50%;
  z-index: 11000;
  width: min(860px, 92vw);
  height: min(78vh, 700px);
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  color: #b7d8bd;
  background: rgba(5, 7, 9, 0.68);
  border: 1px solid rgba(126, 145, 135, 0.55);
  border-radius: 8px;
  box-shadow:
    0 28px 85px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 38px rgba(21, 72, 45, 0.09);
  backdrop-filter: blur(6px) saturate(0.82);
  transform: translateX(-50%);
  animation: terminal-window-arrive 0.2s ease-out both;
}

.index-fun-console.expanded .index-fun-console-output {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0 12px 12px;
  padding: 10px;
  color: #9ac9a3;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(78, 112, 87, 0.28);
  font-size: 13px;
  line-height: 1.5;
}

.index-fun-console.expanded .index-fun-console-trigger {
  display: none;
}

.index-fun-console-trigger {
  display: block;
  padding: 2px 6px;
  color: #303038;
  background: #070709;
  border: 1px solid #15151d;
  cursor: pointer;
  list-style: none;
  font-size: 9px;
  line-height: 1;
}

.index-fun-console-trigger::-webkit-details-marker {
  display: none;
}

.index-fun-console[open] .index-fun-console-trigger {
  color: var(--gold);
  border-color: var(--gold-dim);
}

.index-fun-console-shell {
  padding: 6px;
  background: #030405;
  border-top: 1px solid #182018;
  box-shadow: inset 0 0 12px rgba(45, 120, 56, 0.12);
  font-family: 'Courier New', monospace;
}

.index-fun-console.expanded .index-fun-console-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 11, 0.74), rgba(2, 5, 5, 0.58)),
    rgba(3, 5, 6, 0.58);
  border: 0;
  box-shadow: inset 0 0 30px rgba(36, 108, 65, 0.08);
}

.index-fun-console-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.index-fun-console-window-lights {
  display: none;
  gap: 6px;
}

.index-fun-console-window-lights i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.index-fun-console-window-lights i:nth-child(1),
.index-fun-console-traffic--close { background: #d66158; }
.index-fun-console-window-lights i:nth-child(2) { background: #d3a94c; }
.index-fun-console-window-lights i:nth-child(3) { background: #63aa65; }

.index-fun-console-traffic {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.index-fun-console.expanded .index-fun-console-traffic--close {
  cursor: pointer;
}

.index-fun-console.expanded .index-fun-console-traffic--close:hover,
.index-fun-console.expanded .index-fun-console-traffic--close:focus-visible {
  filter: brightness(1.15);
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 210, 210, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.index-fun-console-window-close {
  display: none;
  margin-left: auto;
  padding: 0;
  color: #9ba49e;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 19px/1 sans-serif;
}

.index-fun-console-window-close:hover,
.index-fun-console-window-close:focus-visible {
  color: #f0f2ef;
  outline: none;
}

.index-fun-console.expanded .index-fun-console-window-bar {
  flex: 0 0 36px;
  margin: 0;
  padding: 0 12px;
  background: rgba(33, 35, 38, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.index-fun-console.expanded .index-fun-console-window-lights,
.index-fun-console.expanded .index-fun-console-window-close {
  display: flex;
}

.index-fun-console-title {
  margin-bottom: 0;
  color: #4c8f53;
  font-size: 9px;
  letter-spacing: 1px;
}

.index-fun-console.expanded .index-fun-console-title {
  flex: 1;
  color: #a8b0aa;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.3px;
}

.index-fun-console-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.index-fun-console.expanded .index-fun-console-form {
  flex: 0 0 auto;
  gap: 8px;
  margin: 12px;
}

.index-fun-console-prompt {
  color: #6a6;
  font-size: 11px;
}

.index-fun-console.expanded .index-fun-console-prompt {
  color: #78c486;
  font-size: 16px;
}

.index-fun-console-input {
  flex: 1;
  min-width: 0;
  padding: 2px 3px;
  color: #87c987;
  background: #050706;
  border: 1px solid #132013;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

.index-fun-console.expanded .index-fun-console-input {
  padding: 8px 10px;
  color: #b7deb9;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(77, 126, 87, 0.48);
  font-size: 14px;
}

.index-fun-console-input:focus {
  outline: none;
  border-color: #314f31;
}

.index-fun-console-output {
  min-height: 32px;
  max-height: 108px;
  margin-top: 5px;
  overflow-y: auto;
  color: #5f905f;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  line-height: 1.35;
  scrollbar-width: thin;
  scrollbar-color: #253d29 #030503;
}

.index-fun-console-line {
  padding: 1px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.index-fun-console-line.is-command {
  color: #79ad7b;
}

.index-fun-console-line.is-error {
  color: #b27b6d;
}

.index-fun-console-line.is-success {
  color: #b6aa62;
}

@keyframes terminal-window-arrive {
  from { opacity: 0; transform: translate(-50%, 12px) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 620px) {
  .index-fun-console.expanded {
    top: 4vh;
    width: 94vw;
    height: 88vh;
    min-height: 360px;
  }

  .index-fun-console.expanded .index-fun-console-output {
    margin: 0 8px 8px;
    font-size: 11px;
  }

  .index-fun-console.expanded .index-fun-console-form {
    margin: 8px;
  }
}

.index-charis-link {
  display: block;
  width: fit-content;
  margin: 7px auto 2px;
  line-height: 0;
}

.index-charis-link img {
  display: block;
  width: 64px;
  height: auto;
  max-width: 64px;
}

html.index-aurora #stars-canvas {
  opacity: 1;
}

body.index-div-fall .content-box,
body.index-div-fall .section-header,
body.index-div-fall .portal-card,
body.index-div-fall .sidebar-section {
  animation: console-fall-down 2.4s cubic-bezier(.16, .78, .26, 1) both;
}

body.index-div-fall .section-header { animation-delay: 0.04s; }
body.index-div-fall .content-box { animation-delay: 0.08s; }
body.index-div-fall .portal-card { animation-delay: 0.12s; }
body.index-div-fall .sidebar-section { animation-delay: 0.16s; }

@keyframes console-fall-down {
  0% { transform: translateY(-115px) rotate(-2deg); opacity: 0.12; }
  42% { transform: translateY(58px) rotate(1.2deg); opacity: 1; }
  64% { transform: translateY(-22px) rotate(-0.6deg); }
  82% { transform: translateY(10px) rotate(0.25deg); }
  100% { transform: translateY(0) rotate(0); }
}

body.goblin-wiggle .portal-card,
body.goblin-wiggle .sidebar-section,
body.goblin-wiggle .content-box {
  animation: goblin-wiggle 0.42s steps(2, end) 3;
}

@keyframes goblin-wiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-0.25deg); }
  50% { transform: translateX(2px) rotate(0.25deg); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.console-sparkle {
  position: fixed;
  z-index: 10030;
  color: var(--gold-light);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(221, 184, 74, 0.9);
  animation: console-sparkle-float 1.4s ease-out forwards;
}

.console-spore {
  position: fixed;
  z-index: 10030;
  color: #83d27f;
  pointer-events: none;
  text-shadow: 0 0 7px rgba(67, 164, 88, 0.75);
  animation: console-spore-drift 4.2s ease-in-out forwards;
}

.console-particle {
  position: fixed;
  z-index: 10030;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  will-change: transform, opacity;
}

.console-firefly {
  color: #c6df74;
  text-shadow: 0 0 5px #dcf47b, 0 0 12px rgba(141, 201, 73, 0.85);
  animation: console-firefly-wander 5s ease-in-out forwards;
}

.console-snow {
  color: #d9e5f2;
  text-shadow: 0 0 5px rgba(165, 196, 225, 0.7);
  animation: console-snow-fall 7.4s linear forwards;
}

.console-rain {
  color: #718aaa;
  opacity: 0.72;
  text-shadow: 0 0 4px rgba(95, 132, 172, 0.55);
  animation: console-rain-fall 3.4s linear forwards;
}

.console-matrix {
  color: #66b86b;
  text-shadow: 0 0 6px rgba(66, 190, 83, 0.75);
  animation: console-matrix-fall 4.1s linear forwards;
}

@keyframes console-sparkle-float {
  0% { opacity: 0; transform: translateY(8px) scale(0.8); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-42px) scale(1.4); }
}

@keyframes console-spore-drift {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.6); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(22px, -68px) scale(1.3); }
}

@keyframes console-firefly-wander {
  0% { opacity: 0; transform: translate(0, 12px) scale(0.45); }
  20% { opacity: 0.95; }
  42% { transform: translate(18px, -14px) scale(1); }
  68% { transform: translate(-11px, -33px) scale(0.7); }
  100% { opacity: 0; transform: translate(26px, -58px) scale(0.35); }
}

@keyframes console-snow-fall {
  0% { opacity: 0; transform: translate(0, -4vh) rotate(0deg); }
  12% { opacity: 0.82; }
  100% { opacity: 0; transform: translate(55px, 108vh) rotate(440deg); }
}

@keyframes console-rain-fall {
  0% { opacity: 0; transform: translate(0, -4vh); }
  8% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-34px, 108vh); }
}

@keyframes console-matrix-fall {
  0% { opacity: 0; transform: translateY(-4vh); }
  10% { opacity: 0.85; }
  72% { opacity: 0.65; }
  100% { opacity: 0; transform: translateY(108vh); }
}

body.terminal-void #stars-canvas {
  opacity: 0 !important;
}

body.loaded.terminal-ghost .page-wrapper {
  opacity: 0.38;
  filter: blur(0.35px);
}

body.terminal-invert .page-wrapper {
  filter: invert(1) hue-rotate(165deg);
}

body.terminal-glitch .page-wrapper {
  animation: terminal-glitch-shift 1.8s steps(2, end) infinite;
}

body.terminal-party .page-wrapper {
  animation: terminal-party-colors 4.5s linear infinite;
}

body.terminal-blackout::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10025;
  background: #000;
  pointer-events: none;
  animation: terminal-blackout-pulse 2.1s ease both;
}

body.terminal-quake .page-wrapper {
  animation: terminal-quake 0.12s steps(2, end) 7;
}

body.terminal-spin .page-wrapper {
  animation: terminal-spin 1.2s cubic-bezier(.2, .72, .28, 1) both;
}

@keyframes terminal-glitch-shift {
  0%, 91%, 100% { transform: translate(0); filter: none; }
  92% { transform: translate(-2px, 1px); filter: hue-rotate(24deg); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 0); filter: contrast(1.18); }
}

@keyframes terminal-party-colors {
  from { filter: hue-rotate(0deg) saturate(1.1); }
  to { filter: hue-rotate(360deg) saturate(1.1); }
}

@keyframes terminal-blackout-pulse {
  0% { opacity: 0; }
  16%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes terminal-quake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}

@keyframes terminal-spin {
  0% { transform: rotate(0deg) scale(1); }
  52% { transform: rotate(185deg) scale(0.82); }
  100% { transform: rotate(360deg) scale(1); }
}

.credits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-entry {
  padding: 8px;
  background: rgba(4, 4, 8, 0.42);
  border: 1px solid var(--bevel-dark);
}

.credit-name {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: bold;
}

.credit-note {
  display: block;
  margin-top: 3px;
  color: var(--text-normal);
  font-size: 12px;
  line-height: 1.45;
}

.patreon-supporters {
  align-self: start;
  position: sticky;
  top: 12px;
}

.patreon-supporters .content-box {
  font-size: 11px;
}

@media (max-width: 800px) {
  .credits-layout {
    grid-template-columns: 1fr;
  }

  .patreon-supporters {
    position: static;
  }
}

@media (max-width: 1220px) {
  /* Keep switches reachable; only tuck the heavier side widgets */
  .left-side-widgets .linkback-widget,
  .left-side-widgets .updates-widget {
    display: none;
  }

  .left-side-widgets {
    display: flex;
    position: fixed;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-width: min(280px, calc(100vw - 16px));
    z-index: 45;
    margin: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGE WRAPPER - CENTERED CONTAINER
   ───────────────────────────────────────────────────────────────────────────── */
.page-wrapper {
  max-width: 1000px;
  margin: 10px auto;
  padding: 0 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN CONTAINER - BEVELED OUTER FRAME
   ───────────────────────────────────────────────────────────────────────────── */
.main-container {
  position: relative;
  background-color: var(--bg-main);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: 
    inset 1px 1px 0 rgba(255,255,255,0.05),
    inset -1px -1px 0 rgba(0,0,0,0.3),
    3px 3px 8px rgba(0,0,0,0.5);
}

/* Mushroom on the side between banner and content (index only) */
.mushroom-edge {
  position: absolute;
  left: -40px;
  top: 132px;
  z-index: 2;
  pointer-events: none;
}
.mushroom-edge-img {
  width: 52px;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER - WITH BANNER BACKGROUND IMAGE
   ───────────────────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  border-bottom: 2px solid;
  border-color: var(--bevel-dark);
  text-align: center;
  position: relative;
}

/* Banner as background */
.header-banner-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 12px 20px 10px 20px;
  min-height: 140px;
  overflow: hidden;
}

/* When banner image is present */
.header-banner-wrapper.has-banner {
  background-image: var(--banner-url);
}

/* Inline banner image (sits behind content) */
.header-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Fade in when loaded */
.header-banner.loaded {
  opacity: 1;
}

/* Dark overlay for text readability */
.header-banner-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(18, 18, 18, 0.75) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Content sits above banner and overlay */
.header-content {
  position: relative;
  z-index: 2;
}

.site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 1px 1px 2px #000;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.site-subtitle {
  font-family: Verdana, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION - CLASSIC BEVELED BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding: 0 10px;
}

.nav-btn {
  display: inline-block;
  padding: 5px 14px;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
  background: linear-gradient(180deg, #252538 0%, #1a1a28 50%, #151522 100%);
  border: 2px solid;
  border-color: #3a3a50 #101018 #101018 #3a3a50;
  cursor: pointer;
}

.nav-btn:hover {
  background: linear-gradient(180deg, #2a2a40 0%, #202030 50%, #1a1a28 100%);
  color: var(--gold-light);
  text-decoration: none;
}

.nav-btn:active {
  border-color: #101018 #3a3a50 #3a3a50 #101018;
  background: linear-gradient(180deg, #151522 0%, #1a1a28 100%);
}

.nav-btn.active {
  background: linear-gradient(180deg, #3a3520 0%, #2a2818 50%, #1a1a12 100%);
  border-color: #5a5030 #101008 #101008 #5a5030;
  color: var(--gold-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THREE-COLUMN LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.content-wrapper {
  display: flex;
  min-height: 500px;
}

.content-wrapper.no-right-sidebar .sidebar.right {
  display: none;
}

.content-wrapper.no-right-sidebar .main-content {
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBARS - BEVELED INSET PANELS
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar {
  width: 170px;
  min-width: 170px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--bevel-dark);
  padding: 10px;
  font-size: 11px;
}

.sidebar.right {
  border-right: none;
  border-left: 1px solid var(--bevel-dark);
}

/* Sidebar Section Box */
.sidebar-section {
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  margin-bottom: 10px;
}

.sidebar-title {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--gold-light);
  background: linear-gradient(90deg, #1a1828 0%, #12121a 100%);
  padding: 5px 8px;
  border-bottom: 1px solid var(--bevel-dark);
  margin: 0;
}

.sidebar-content {
  padding: 8px;
}

/* Sidebar Links */
.sidebar-links {
  list-style: none;
  padding: 8px;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 4px;
}

.sidebar-links a {
  color: var(--text-normal);
  font-size: 11px;
  display: block;
  padding: 1px 0;
}

.sidebar-links a:hover {
  color: var(--gold-light);
}

.sidebar-links a::before {
  content: '/';
  color: var(--text-dark);
  margin-right: 3px;
}

/* Contact Info */
.contact-info {
  padding: 8px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-info strong {
  color: var(--text-normal);
}

.contact-info a {
  color: var(--gold);
}

.contact-info p {
  margin-bottom: 4px;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid;
}

.status-badge.open {
  background: #0a1a0a;
  color: #4a4;
  border-color: #2a4a2a;
}

.status-badge.closed {
  background: #1a0a0a;
  color: #a44;
  border-color: #4a2a2a;
}

/* Hit Counter - Classic Y2K! */
.hit-counter {
  background: #000;
  border: 2px inset #333;
  padding: 3px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #0f0;
  display: inline-block;
  letter-spacing: 2px;
  margin: 8px;
}

/* Now Playing Marquee */
.now-playing {
  padding: 8px;
  font-size: 10px;
  color: var(--text-dim);
  overflow: hidden;
  white-space: nowrap;
}

.now-playing-marquee {
  display: inline-block;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN CONTENT AREA
   ───────────────────────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  background: var(--bg-content);
  padding: 10px;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION HEADERS - BEVELED BAR
   ───────────────────────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #1a1a2a 0%, #12121e 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  padding: 6px 10px;
  margin-bottom: 10px;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 1px 1px 1px #000;
  margin: 0;
}

.section-subtitle {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
}

.section-links {
  display: flex;
  gap: 10px;
  font-size: 10px;
}

.section-links a {
  color: var(--text-dim);
}

.section-links a:hover {
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTENT BOX - INSET PANEL
   ───────────────────────────────────────────────────────────────────────────── */
.content-box {
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  padding: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.content-box p {
  margin-bottom: 8px;
}

.content-box p:last-child {
  margin-bottom: 0;
}

.content-box code {
  background: #080810;
  padding: 1px 4px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--gold);
  border: 1px solid var(--bevel-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILTER BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  padding: 8px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  border-radius: 2px;
}

.filter-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: bold;
  margin-right: 5px;
}

.filter-btn {
  padding: 3px 10px;
  font-family: Verdana, sans-serif;
  font-size: 10px;
  color: var(--text-normal);
  background: linear-gradient(180deg, #202030 0%, #151520 100%);
  border: 2px solid;
  border-color: #2a2a3a #0a0a10 #0a0a10 #2a2a3a;
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--gold);
  background: linear-gradient(180deg, #252538 0%, #1a1a28 100%);
}

.filter-btn.active {
  background: linear-gradient(180deg, #3a3520 0%, #252015 100%);
  border-color: #4a4530 #0a0a08 #0a0a08 #4a4530;
  color: var(--gold-light);
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.pagination-controls .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-info {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARTWORK GRID
   ───────────────────────────────────────────────────────────────────────────── */
.artwork-grid-container {
  margin-bottom: 15px;
}

/* Scrollbox mode - when there are many images */
.artwork-grid-container.scrollbox-mode {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 5px;
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  background: var(--bg-panel-dark);
}

/* Custom scrollbar for scrollbox */
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar {
  width: 12px;
}

.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-track {
  background: var(--bg-panel-dark);
  border-left: 1px solid var(--bevel-dark);
}

.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a28 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a38 100%);
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 10px;
}

.artwork-grid-container:not(.scrollbox-mode) .artwork-grid {
  padding: 0;
}

/* Artwork Card - Beveled Frame */
.artwork-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  cursor: pointer;
  transition: none;
}

.artwork-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.artwork-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-panel-dark);
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.artwork-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder text for missing images */
.artwork-thumbnail::before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--text-dark);
  font-size: 10px;
  text-align: center;
  padding: 10px;
  pointer-events: none;
}

.artwork-thumbnail img + ::before {
  display: none;
}

.artwork-info {
  padding: 6px 8px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

.artwork-title {
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 2px;
  line-height: 1.3;
}

.artwork-meta {
  font-size: 9px;
  color: var(--text-dim);
}

.artwork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.artwork-tag {
  font-size: 9px;
  padding: 1px 5px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED ARTWORK - LARGER DISPLAY
   ───────────────────────────────────────────────────────────────────────────── */
.featured-artwork {
  display: flex;
  gap: 15px;
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  padding: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

.featured-artwork .artwork-thumbnail {
  width: 200px;
  min-width: 200px;
  height: 150px;
  aspect-ratio: auto;
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
}

.featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info .artwork-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.featured-info .artwork-meta {
  font-size: 11px;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIEW TOGGLE
   ───────────────────────────────────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 8px;
  font-size: 10px;
}

.view-toggle a {
  color: var(--text-dim);
}

.view-toggle a:hover,
.view-toggle a.active {
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIGHTBOX (Frutiger / Link Back style)
   ───────────────────────────────────────────────────────────────────────────── */
.lightbox-frutiger {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: transparent;
}

.lightbox-frutiger.active {
  display: flex;
}

.lightbox-frutiger__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
}

.lightbox-frutiger__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  font-size: 28px;
  line-height: 1;
  color: var(--gold, #c9a227);
  cursor: pointer;
  user-select: none;
}

.lightbox-frutiger__close:hover {
  color: var(--gold-light, #ddb84a);
}

.lightbox-frutiger__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 32px;
  color: var(--gold, #c9a227);
  cursor: pointer;
  padding: 12px;
  user-select: none;
}

.lightbox-frutiger__nav:hover {
  color: var(--gold-light, #ddb84a);
}

.lightbox-frutiger__nav--prev { left: 8px; }
.lightbox-frutiger__nav--next { right: 8px; }

.lightbox-frutiger__nav.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.lightbox-frutiger__content {
  position: relative;
  z-index: 2;
  max-width: min(920px, 96vw);
  max-height: calc(100vh - 48px);
}

.lightbox-frutiger__glass {
  position: relative;
  padding: 3px;
  border-radius: 3px;
  background: linear-gradient(
    145deg,
    rgba(52, 64, 164, 0.28) 0%,
    rgba(23, 23, 42, 0.22) 35%,
    rgba(8, 8, 14, 0.18) 70%,
    rgba(0, 0, 0, 0.12) 100%
  );
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow:
    0 0 24px rgba(42, 52, 136, 0.15),
    inset 0 1px 0 rgba(188, 197, 255, 0.1);
}

.lightbox-frutiger__glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 40%
  );
}

.lightbox-frutiger__box {
  position: relative;
  z-index: 1;
  background: #0a0a0c;
  border: 2px solid;
  border-color: var(--bevel-dark, #080808) var(--bevel-light, #2a2a2a) var(--bevel-light, #2a2a2a) var(--bevel-dark, #080808);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    2px 2px 8px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.lightbox-frutiger__media {
  background: #000000;
  line-height: 0;
  text-align: center;
}

.lightbox-frutiger__media img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 560px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  object-fit: contain;
}

.lightbox-frutiger__title-bar {
  margin: 6px -6px 0;
  padding: 4px 8px;
  color: var(--gold, #c9a227);
  background: linear-gradient(180deg, #17172a 0%, #0d0d16 100%);
  border-top: 1px solid var(--bevel-dark, #080808);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-weight: bold;
  text-align: left;
}

.lightbox-frutiger__title-bar.is-hidden {
  display: none;
}

.lightbox-frutiger__title {
  margin: 0;
  font: inherit;
  color: inherit;
}

.lightbox-frutiger__meta {
  padding: 6px 2px 2px;
  background: #0a0a0c;
  color: var(--text-normal, #aaa);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.lightbox-frutiger__meta.is-hidden {
  display: none;
}

.lightbox-frutiger__date {
  margin: 0 0 6px;
  font-size: 10px;
  font-style: italic;
  color: var(--gold-dim, #8a7020);
}

.lightbox-frutiger__description {
  margin: 0 0 6px;
  color: var(--text-dim, #777);
}

.lightbox-frutiger__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}

.lightbox-frutiger__tags:empty {
  display: none;
}

.lightbox-frutiger__tag {
  font-size: 9px;
  color: var(--text-dim, #777);
  padding: 2px 6px;
  background: #050507;
  border: 1px solid var(--bevel-dark, #080808);
}

.lightbox-frutiger__artist {
  margin: 0;
  font-size: 10px;
  color: var(--text-dim, #777);
}

.lightbox-frutiger__artist a {
  color: var(--gold-dim, #8a7020);
}

.lightbox-frutiger__artist a:hover {
  color: var(--gold, #c9a227);
}

.lightbox-frutiger__counter {
  margin-top: 8px;
  font-size: 9px;
  font-family: var(--font-mono, 'Courier New', monospace);
  color: var(--text-dark, #555);
}

[data-theme="light"] .lightbox-frutiger__backdrop {
  background: rgba(236, 230, 214, 0.72);
  backdrop-filter: blur(10px) saturate(0.95);
  -webkit-backdrop-filter: blur(10px) saturate(0.95);
}

[data-theme="light"] .lightbox-frutiger__close,
[data-theme="light"] .lightbox-frutiger__nav {
  color: #7a6020;
}

[data-theme="light"] .lightbox-frutiger__close:hover,
[data-theme="light"] .lightbox-frutiger__nav:hover {
  color: #5a4514;
}

[data-theme="light"] .lightbox-frutiger__glass {
  background: linear-gradient(
    145deg,
    rgba(255, 252, 245, 0.72) 0%,
    rgba(236, 228, 208, 0.55) 40%,
    rgba(214, 204, 178, 0.4) 100%
  );
  box-shadow:
    0 18px 48px rgba(90, 70, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .lightbox-frutiger__box {
  background: rgba(248, 244, 232, 0.94);
  border-color: #cfc4a8 #8f8468 #8f8468 #cfc4a8;
  color: #3d3a36;
}

[data-theme="light"] .lightbox-frutiger__title {
  color: #5a4514;
}

[data-theme="light"] .lightbox-frutiger__meta,
[data-theme="light"] .lightbox-frutiger__description,
[data-theme="light"] .lightbox-frutiger__date,
[data-theme="light"] .lightbox-frutiger__counter,
[data-theme="light"] .lightbox-frutiger__artist {
  color: #4a463f;
}

[data-theme="light"] .lightbox-frutiger__tag {
  color: #5a4514;
  border-color: #b9a878;
  background: rgba(201, 162, 39, 0.12);
}

[data-theme="light"] .lightbox-frutiger__artist a {
  color: #7a6020;
}

/* Game / Map detail modal (overlay in front of user, lightbox-style) */
.game-map-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.game-map-modal.active {
  opacity: 1;
  visibility: visible;
}
.game-map-modal-panel {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.game-map-modal.active .game-map-modal-panel {
  transform: scale(1);
}
.game-map-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  color: var(--gold);
  cursor: pointer;
  z-index: 2;
}
.game-map-modal-close:hover {
  color: var(--gold-light);
}
.game-map-modal-body {
  padding: 15px 20px 20px;
}
.game-map-modal-body .game-thumbnail,
.game-map-modal-body .map-thumbnail {
  margin: -15px -20px 15px -20px;
  max-height: 220px;
  overflow: hidden;
}
.game-map-modal-body .game-thumbnail img,
.game-map-modal-body .map-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.game-map-modal-body .game-details,
.game-map-modal-body .map-details {
  display: block;
}
.game-map-modal-body .expand-hint {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEXT CONTENT
   ───────────────────────────────────────────────────────────────────────────── */
.text-content p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.text-content a {
  color: var(--gold);
}

.text-content a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.text-content h2 {
  font-family: Georgia, serif;
  font-size: 16px;
  color: var(--gold);
  margin: 20px 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--bevel-dark);
}

.text-content h3 {
  font-size: 13px;
  color: var(--gold);
  margin: 15px 0 8px 0;
}

.text-content h4 {
  font-size: 12px;
  color: var(--gold-light);
  margin: 10px 0 5px 0;
}

.text-content ul, .text-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

.text-content li {
  margin-bottom: 5px;
}

.text-content ul li::marker {
  color: var(--gold-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORMS - BEVELED INPUTS
   ───────────────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: bold;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 6px 8px;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-input);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-dim) var(--bevel-light) var(--bevel-light) var(--gold-dim);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  padding: 8px 20px;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: var(--bg-body);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: 2px solid;
  border-color: var(--gold-light) var(--gold-dark) var(--gold-dark) var(--gold-light);
  cursor: pointer;
}

.form-submit:hover {
  background: linear-gradient(180deg, #e8c860 0%, #d4b040 50%, #b09030 100%);
}

.form-submit:active {
  border-color: var(--gold-dark) var(--gold-light) var(--gold-light) var(--gold-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GUESTBOOK
   ───────────────────────────────────────────────────────────────────────────── */
.guestbook-form {
  margin-bottom: 10px;
}

.guestbook-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.guestbook-status {
  min-height: 18px;
  margin: 8px 0 10px;
  font-size: 11px;
  color: var(--text-dim);
}

.guestbook-status.success {
  color: #6a6;
}

.guestbook-status.error {
  color: #c77;
}

.guestbook-refresh {
  padding: 3px 10px;
  font-size: 10px;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guestbook-entry {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  padding: 10px;
}

.guestbook-entry.admin-entry {
  background: linear-gradient(180deg, #1c1a10 0%, #11100a 100%);
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.guestbook-author {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
}

.guestbook-date {
  font-size: 9px;
  color: var(--text-dark);
}

.guestbook-message {
  white-space: pre-wrap;
  color: var(--text-normal);
  margin-bottom: 6px;
}

.guestbook-website {
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
}

.guestbook-private-email {
  display: inline-block;
  font-size: 10px;
  color: #6a6;
}

.admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-family: Verdana, sans-serif;
  font-size: 8px;
  color: #111;
  background: var(--gold);
  border: 1px solid var(--gold-light);
  vertical-align: middle;
}

.guestbook-replies {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dim);
}

.guestbook-replies .guestbook-entry {
  margin-top: 8px;
}

.guestbook-reply-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bevel-dark);
}

.guestbook-reply-form .form-textarea {
  min-height: 70px;
  margin-bottom: 8px;
}

.hidden-console-panel {
  position: fixed;
  left: -224px;
  bottom: 4px;
  z-index: 10010;
  width: 218px;
  max-width: calc(100vw - 20px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  transition: left 0.18s ease;
  box-shadow: none;
}

.hidden-console-panel[open] {
  left: 5px;
  padding: 8px;
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.55);
}

.hidden-console-trigger {
  position: absolute;
  bottom: 4px;
  right: -6px;
  width: 6px;
  height: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090c;
  border: 1px solid #171720;
  border-left: 0;
  color: #24242e;
  font-size: 7px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.hidden-console-trigger::-webkit-details-marker {
  display: none;
}

.hidden-console-panel[open] .hidden-console-trigger {
  right: 4px;
  color: var(--gold);
  border-left: 1px solid var(--bevel-light);
}

.hidden-console-panel:not([open]) .hidden-console-shell,
.hidden-console-panel:not([open]) .hidden-console-private {
  display: none;
}

.hidden-console-shell {
  padding: 6px;
  background: #030405;
  border: 1px solid #182018;
  box-shadow: inset 0 0 12px rgba(45, 120, 56, 0.12);
  font-family: 'Courier New', monospace;
}

.hidden-console-title {
  margin-bottom: 5px;
  color: #4c8f53;
  font-size: 9px;
  letter-spacing: 1px;
}

.hidden-console-command-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hidden-console-prompt {
  color: #6a6;
  font-size: 11px;
}

.hidden-console-input {
  flex: 1;
  min-width: 0;
  padding: 2px 3px;
  color: #87c987;
  background: #050706;
  border: 1px solid #132013;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

.hidden-console-input:focus {
  outline: none;
  border-color: #314f31;
}

.hidden-console-output {
  margin-top: 5px;
  color: #3c643c;
  font-family: 'Courier New', monospace;
  font-size: 9px;
}

.hidden-console-private {
  display: none;
  margin-top: 8px;
}

.hidden-console-private.unlocked {
  display: block;
}

.admin-session-state {
  margin: 8px 0 10px;
  color: var(--text-dim);
}

.admin-session-state.active {
  color: #6a6;
}

.guestbook-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESUME STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.resume-item {
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  border-left: 3px solid var(--gold-dim);
  padding: 10px;
  margin-bottom: 10px;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.resume-item-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
}

.resume-item-date {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
}

.resume-item-subtitle {
  font-size: 11px;
  color: var(--text-normal);
  margin-bottom: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.skill-tag {
  padding: 2px 8px;
  font-size: 10px;
  background: linear-gradient(180deg, #1a1a28 0%, #101018 100%);
  border: 1px solid var(--bevel-dark);
  color: var(--text-normal);
}

.skill-tag.highlight {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECT GRID
   ───────────────────────────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.project-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.project-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.project-preview {
  width: 100%;
  height: 150px;
  background: var(--bg-panel-dark);
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview-placeholder {
  color: var(--text-dark);
  font-size: 11px;
  text-align: center;
}

.project-details {
  padding: 10px;
}

.project-title {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 5px;
}

.project-description {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tech-tag {
  font-size: 9px;
  padding: 1px 5px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARTICLE LIST
   ───────────────────────────────────────────────────────────────────────────── */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bevel-dark);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  color: var(--gold);
  font-weight: bold;
}

.article-list .article-desc {
  color: var(--text-dim);
  font-size: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DOWNLOAD BUTTON
   ───────────────────────────────────────────────────────────────────────────── */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--gold);
  background: linear-gradient(180deg, #1a1a28 0%, #101018 100%);
  border: 2px solid;
  border-color: #2a2a3a #0a0a10 #0a0a10 #2a2a3a;
  text-decoration: none;
}

.download-btn:hover {
  background: linear-gradient(180deg, #202030 0%, #151520 100%);
  color: var(--gold-light);
  text-decoration: none;
}

.download-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #12121e 0%, #0a0a14 100%);
  border-top: 2px solid var(--bevel-light);
  padding: 15px;
  text-align: center;
}

.footer-decor {
  color: var(--text-dark);
  font-size: 10px;
  letter-spacing: 3px;
  margin: 8px 0;
}

.footer-content {
  font-size: 10px;
  color: var(--text-dim);
}

.footer-content p {
  margin-bottom: 4px;
}

.footer-content a {
  color: var(--gold-dim);
}

.footer-content a:hover {
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DIVIDERS
   ───────────────────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--bevel-dark);
  margin: 15px 0;
}

.divider.gold {
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CRT SCANLINES EFFECT (OPTIONAL)
   ───────────────────────────────────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0px,
    rgba(0, 0, 0, 0.6) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* ─────────────────────────────────────────────────────────────────────────────
   CORNER DECORATIONS (Y2K STYLE)
   ───────────────────────────────────────────────────────────────────────────── */
.corner-decor {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold-dim);
  opacity: 0.4;
}

.corner-decor.top-left { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.corner-decor.top-right { top: 5px; right: 5px; border-left: none; border-bottom: none; }
.corner-decor.bottom-left { bottom: 5px; left: 5px; border-right: none; border-top: none; }
.corner-decor.bottom-right { bottom: 5px; right: 5px; border-left: none; border-top: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-dim); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 15px; }
.mt-3 { margin-top: 25px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 15px; }
.mb-3 { margin-bottom: 25px; }
.hidden { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--bevel-dark);
  }
  
  .sidebar.right {
    border-left: none;
    border-top: 1px solid var(--bevel-dark);
  }
  
  .featured-artwork {
    flex-direction: column;
  }
  
  .featured-artwork .artwork-thumbnail {
    width: 100%;
    min-width: auto;
  }
  
  .artwork-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-btn {
    width: 80%;
    text-align: center;
  }
  
  .section-header {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .artwork-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHIMMER EFFECT FOR BUTTONS (SUBTLE)
   ───────────────────────────────────────────────────────────────────────────── */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CODE BLOCKS (for graphics-programming page)
   ───────────────────────────────────────────────────────────────────────────── */
pre {
  background: var(--bg-input);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  padding: 10px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0;
  color: var(--text-normal);
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

.code-keyword { color: #c586c0; }
.code-function { color: #dcdcaa; }
.code-type { color: #4ec9b0; }
.code-number { color: #b5cea8; }
.code-comment { color: #6a9955; }

/* ─────────────────────────────────────────────────────────────────────────────
   PORTAL NAVIGATION GRID - Icon-based page navigation
   ───────────────────────────────────────────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

/* Index specific: scrollbox for archive cards */
.index-archives-scrollbox {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px;
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  background: var(--bg-panel-dark);
}

.index-archives-scrollbox::-webkit-scrollbar {
  width: 11px;
}

.index-archives-scrollbox::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a28 100%);
  border: 1px solid var(--bevel-dark);
}

.portal-grid.art-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-grid.art-index-grid .portal-card.large {
  padding: 14px 10px;
}

.portal-grid.art-index-grid .portal-card.large .portal-icon {
  width: 100%;
  max-width: 130px;
  height: 72px;
  margin-bottom: 8px;
}

.portal-grid.art-index-grid .portal-card.large .portal-icon-fallback {
  font-size: 36px;
}

.portal-grid.art-index-grid .portal-card.large .portal-title {
  font-size: 13px;
  margin-bottom: 4px;
}

.portal-grid.art-index-grid .portal-card.large .portal-desc {
  font-size: 10px;
  max-width: none;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .portal-grid.art-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .portal-grid.art-index-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  background: linear-gradient(180deg, #1a1a2a 0%, #12121e 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  text-decoration: none;
  transition: border-color 0.2s;
  text-align: center;
}

.portal-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  text-decoration: none;
}

[data-theme="light"] .portal-card {
  background: linear-gradient(180deg, #b0b8c8 0%, #a0a8b8 100%);
}

.portal-card.large {
  padding: 25px 20px;
}

.portal-icon {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  overflow: hidden;
}

.portal-card.large .portal-icon {
  width: 220px;
  height: 120px;
}

.portal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-icon img.portal-icon-cover {
  object-fit: cover;
}

.portal-icon-fallback {
  font-size: 48px;
  color: var(--gold);
}

.portal-card.large .portal-icon-fallback {
  font-size: 56px;
}

.portal-title {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 5px;
}

.portal-card.large .portal-title {
  font-size: 16px;
}

.portal-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.portal-card.large .portal-desc {
  font-size: 11px;
  max-width: 250px;
}

/* Link hub: icon + title + description on page background (no panel box) */
.link-hub-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

@media (max-width: 900px) {
  .link-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .link-hub-list {
    grid-template-columns: 1fr;
  }
}

.link-hub-card {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 6px 8px;
  text-align: center;
  transition: color 0.15s ease;
}

.link-hub-card > div:last-child {
  width: 100%;
}

.link-hub-card:hover {
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
}

.link-hub-card:hover .link-hub-title {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.link-hub-card:hover .link-hub-desc {
  color: var(--text-normal);
}

.link-hub-card:hover .icon-slot img {
  opacity: 0.92;
  filter: brightness(1.06);
}

.icon-slot {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 180px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
  overflow: visible;
}

.icon-slot img {
  max-width: 220px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.link-hub-title {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
}

.link-hub-desc {
  font-size: 10px;
  color: var(--text-dim);
}

.spice-hero {
  text-align: center;
}

.spice-hero-image {
  width: min(900px, 100%);
  max-height: 900px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.14);
}

.spice-map-image {
  cursor: pointer;
}

.spice-image-hotspots {
  position: relative;
  display: inline-block;
  width: min(900px, 100%);
}

.spice-image-hotspots .spice-hero-image {
  width: 100%;
  margin-bottom: 0;
}

.spice-jar-hotspot {
  position: absolute;
  top: 18%;
  height: 70%;
  border-radius: 10px;
  outline: none;
}

.spice-jar-hotspot:focus-visible,
.spice-jar-hotspot:hover {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55), 0 0 12px rgba(212, 175, 55, 0.26);
}

.spice-jar-hotspot-left {
  left: 15%;
  width: 24.5%;
  clip-path: polygon(36% 0%, 66% 0%, 82% 9%, 86% 26%, 87% 58%, 79% 85%, 64% 100%, 37% 100%, 21% 85%, 13% 58%, 14% 26%, 18% 9%);
}

.spice-jar-hotspot-center {
  left: 38%;
  width: 26%;
  clip-path: polygon(34% 0%, 66% 0%, 83% 10%, 88% 30%, 87% 60%, 79% 86%, 64% 100%, 37% 100%, 22% 86%, 13% 60%, 12% 30%, 17% 10%);
}

.spice-jar-hotspot-right {
  left: 66.5%;
  width: 22.5%;
  clip-path: polygon(35% 0%, 65% 0%, 82% 9%, 87% 28%, 87% 58%, 79% 85%, 64% 100%, 37% 100%, 21% 85%, 13% 58%, 13% 28%, 18% 9%);
}

/* Spice rack: row of clickable jar images */
.spice-jar-rack {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.spice-jar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  background: none;
}

.spice-jar img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  transition: filter 0.15s ease;
}

.spice-jar-label {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.spice-jar:hover {
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.spice-jar:hover img {
  filter: brightness(1.1);
}

.spice-jar.active {
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.75), 0 0 22px rgba(212, 175, 55, 0.18);
}

.spice-jar.active .spice-jar-label {
  color: #f1d991;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.spice-jar--locked {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.kanin-pdf-viewer {
  margin-top: 12px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(14, 10, 22, 0.65);
}

.kanin-pdf-viewer object {
  display: block;
}

/* Page open animation on all pages */
.page-wrapper {
  opacity: 0;
  transform: translateY(2px) scale(0.999);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.loaded .page-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.page-anim-a .page-wrapper { transform: translateY(2px) scale(0.999); }
body.page-anim-b .page-wrapper { transform: translateX(-2px) scale(0.999); }
body.page-anim-c .page-wrapper { transform: translateX(2px) scale(0.999); }

.section-header,
.content-box,
.portal-card,
.sidebar-section {
  animation: subtle-rise 0.2s ease both;
}

@keyframes subtle-rise {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORGE STATUS SIDEBAR - Creative right sidebar element
   ───────────────────────────────────────────────────────────────────────────── */
.forge-status-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-panel-dark);
}

.forge-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.forge-indicator.active {
  background: #f80;
  box-shadow: 0 0 8px #f80, 0 0 15px rgba(255,136,0,0.5);
  animation: forge-pulse 2s ease-in-out infinite;
}

.forge-indicator.inactive {
  background: #555;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  opacity: 0.8;
}

@keyframes forge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #f80, 0 0 15px rgba(255,136,0,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 4px #f80, 0 0 8px rgba(255,136,0,0.3); }
}

.forge-status-text {
  font-size: 10px;
  font-weight: bold;
  color: #f80;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.forge-project {
  padding: 6px 8px;
  font-size: 10px;
  border-top: 1px solid var(--bevel-dark);
}

.forge-label {
  color: var(--text-dim);
}

.forge-value {
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARCANE LINKS - Mystical styled sidebar links
   ───────────────────────────────────────────────────────────────────────────── */
.arcane-links a::before {
  content: none;
}

.arcane-links .rune {
  display: inline-block;
  width: 16px;
  color: var(--gold-dim);
  margin-right: 5px;
  font-family: serif;
}

.arcane-links a:hover .rune {
  color: var(--gold);
  text-shadow: 0 0 5px var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGES BOX - Y2K Style button collection
   ───────────────────────────────────────────────────────────────────────────── */
.badges-box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  justify-content: center;
  align-items: center;
}

.badges-box img {
  max-height: 31px;
  width: auto;
  image-rendering: pixelated;
  border: 1px solid var(--bevel-dark);
}

.badges-box a {
  display: inline-block;
  line-height: 0;
}

.badges-box a:hover img {
  border-color: var(--gold-dim);
}

/* ASCII cat under badges — no panel, no border, no fill */
.sidebar.right .index-ascii-cat,
pre.index-ascii-cat {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Courier New', Courier, monospace;
  font-size: 5px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  opacity: 0.92;
  white-space: pre;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  text-shadow: none;
  transform: none;
}
[data-theme="light"] .sidebar.right .index-ascii-cat,
[data-theme="light"] pre.index-ascii-cat {
  color: #2a2418;
  opacity: 0.8;
  background: transparent !important;
  border: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHOP STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.shop-storefronts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.storefront-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(90deg, #1a1a2a 0%, #12121e 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  text-decoration: none;
  transition: border-color 0.2s;
}

.storefront-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  text-decoration: none;
}

.storefront-card.etsy:hover {
  border-color: #f56400 var(--bevel-dark) var(--bevel-dark) #f56400;
}

.storefront-card.redbubble:hover {
  border-color: #e41321 var(--bevel-dark) var(--bevel-dark) #e41321;
}

.storefront-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
}

.storefront-icon {
  font-size: 24px;
}

.storefront-info {
  flex: 1;
}

.storefront-name {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 3px;
}

.storefront-desc {
  font-size: 10px;
  color: var(--text-dim);
}

.storefront-arrow {
  font-size: 18px;
  color: var(--gold);
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.shop-item {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.shop-item:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.shop-item-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-panel-dark);
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-placeholder {
  font-size: 40px;
  opacity: 0.5;
}

.shop-item-info {
  padding: 10px;
}

.shop-item-title {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 3px;
}

.shop-item-price {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: bold;
  margin-bottom: 5px;
}

.shop-item-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PIXEL ART GRID
   ───────────────────────────────────────────────────────────────────────────── */
.pixel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pixel-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pixel-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.pixel-card.small {
  max-width: 120px;
}

.pixel-card.wide {
  max-width: none;
}

.pixel-display {
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
}

.pixel-display.wide {
  aspect-ratio: 2/1;
}

.pixel-display.small {
  aspect-ratio: 1;
}

.pixel-placeholder {
  font-size: 32px;
  opacity: 0.6;
}

.pixel-placeholder.anim {
  font-size: 14px;
  color: var(--gold);
  animation: pixel-blink 1s step-end infinite;
}

@keyframes pixel-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pixel-info {
  padding: 8px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-dark) 100%);
}

.pixel-title {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 2px;
}

.pixel-meta {
  font-size: 9px;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONCEPT ART GRID
   ───────────────────────────────────────────────────────────────────────────── */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.concept-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.concept-card.wide {
  grid-column: 1 / -1;
}

.concept-image {
  width: 100%;
  height: 150px;
  background: var(--bg-panel-dark);
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.concept-image.wide {
  height: 200px;
}

.concept-placeholder {
  font-size: 12px;
  color: var(--text-dark);
  text-align: center;
  padding: 10px;
}

.concept-info {
  padding: 12px;
}

.concept-title {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 6px;
}

.concept-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.concept-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MUSIC PLAYER STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.music-player-featured {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2a 0%, #0e0e18 100%);
  border: 2px solid;
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  margin-bottom: 20px;
}

.player-artwork {
  width: 120px;
  height: 120px;
  background: var(--bg-panel-dark);
  border: 2px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-placeholder {
  font-size: 48px;
  opacity: 0.5;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 4px;
}

.player-album {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.player-duration {
  font-size: 10px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.player-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.player-btn {
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}

.player-btn:hover {
  color: var(--gold);
}

.player-btn.play {
  font-size: 18px;
  color: var(--gold);
}

.player-bar {
  height: 4px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  max-width: 300px;
}

.player-progress {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

/* Track List */
.track-list {
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  margin-bottom: 20px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bevel-dark);
}

.track-item:last-child {
  border-bottom: none;
}

.track-item:hover {
  background: rgba(201, 162, 39, 0.05);
}

.track-number {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--text-dark);
  width: 20px;
}

.track-info {
  flex: 1;
}

.track-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 2px;
}

.track-meta {
  font-size: 10px;
  color: var(--text-dim);
}

.track-actions {
  display: flex;
  gap: 10px;
}

.track-play {
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.7;
}

.track-play:hover {
  opacity: 1;
}

/* Album Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.album-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  cursor: pointer;
}

.album-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.album-art {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a2a 0%, #0a0a14 100%);
  border-bottom: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-placeholder {
  font-size: 48px;
  opacity: 0.4;
}

.album-info {
  padding: 10px;
}

.album-title {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 3px;
}

.album-meta {
  font-size: 10px;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SKETCH CARD VARIANT
   ───────────────────────────────────────────────────────────────────────────── */
.sketch-card .artwork-thumbnail {
  background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d0 100%);
}

.sketch-placeholder {
  font-size: 11px;
  color: #666;
  text-align: center;
  padding: 10px;
}

.sketchbook-quote {
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(26, 26, 42, 0.92) 0%, rgba(12, 12, 18, 0.96) 100%);
  border: 2px solid;
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    0 0 14px rgba(201, 162, 39, 0.08);
}

.sketchbook-quote-text {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-light);
}

.sketchbook-quote-author {
  margin: 8px 0 0;
  text-align: right;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRICING TABLES
   ───────────────────────────────────────────────────────────────────────────── */
.pricing-table {
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  margin-bottom: 20px;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 100px 1.5fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bevel-dark);
  font-size: 11px;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row.header {
  background: linear-gradient(180deg, #1a1a2a 0%, #12121e 100%);
  font-weight: bold;
  color: var(--gold);
}

.pricing-row:not(.header):hover {
  background: rgba(201, 162, 39, 0.05);
}

.pricing-type {
  color: var(--text-light);
}

.pricing-cost {
  color: var(--gold);
  font-weight: bold;
  text-align: center;
}

.pricing-notes {
  color: var(--text-dim);
  font-size: 10px;
}

/* Pricing Tiers (for shop/servers) */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.pricing-tier {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  padding: 15px;
  text-align: center;
}

.pricing-tier:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.tier-name {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SERVER/GAME CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.server-showcase {
  text-align: center;
  margin: 20px 0;
}

.server-icon-large {
  max-width: 300px;
  height: auto;
  border: 3px solid var(--gold-dim);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.server-card {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.server-card:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a1a2a 0%, #12121e 100%);
  border-bottom: 1px solid var(--bevel-dark);
}

.server-game {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold);
}

.server-status {
  font-size: 10px;
}

.server-status.online {
  color: #4a4;
  text-shadow: 0 0 5px #4a4;
}

.server-status.offline {
  color: #a44;
}

.server-card-body {
  padding: 12px;
  font-size: 11px;
}

.server-card-body ul {
  margin: 5px 0 0 0;
  padding-left: 18px;
}

.server-card-body li {
  margin-bottom: 4px;
  color: var(--text-dim);
}

.server-card-body p {
  margin-bottom: 5px;
  color: var(--text-normal);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SERVER DIRECTORY & INDIVIDUAL SERVER PAGES
   ───────────────────────────────────────────────────────────────────────────── */
.server-directory {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.server-listing {
  display: block;
  padding: 15px;
  background: linear-gradient(180deg, #18182a 0%, #10101a 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.server-listing:hover {
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
  background: linear-gradient(180deg, #1e1e32 0%, #14142a 100%);
}

.server-listing.offline {
  opacity: 0.7;
}

.server-listing.upcoming {
  border-style: dashed;
}

.server-listing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.server-listing-icon {
  font-size: 24px;
}

.server-listing-info {
  flex: 1;
}

.server-listing-name {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 16px;
  color: var(--gold);
}

.server-listing-game {
  font-size: 11px;
  color: var(--text-dim);
}

.server-listing-desc {
  font-size: 12px;
  color: var(--text-normal);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.server-listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--bevel-dark);
}

.server-ip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.server-arrow {
  color: var(--gold);
  font-weight: bold;
}

/* Server Status List in Sidebar */
.server-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-normal);
}

.status-badge.pending {
  background: linear-gradient(180deg, #4a4a20 0%, #2a2a10 100%);
  border-color: #5a5a30;
  color: #ca8;
}

/* Server Connect Box */
.server-connect-box .connect-info {
  text-align: center;
}

.connect-ip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: var(--bg-panel-dark);
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--bevel-dark);
  word-break: break-all;
}

.connect-btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* Rules Box */
.rules-box {
  padding: 0;
}

.rule-section {
  padding: 15px;
  border-bottom: 1px solid var(--bevel-dark);
}

.rule-section:last-child {
  border-bottom: none;
}

.rule-header {
  margin: 0 0 15px 0;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-dim);
}

.rule-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold-dim) 0%, #1a1510 100%);
  border: 1px solid var(--gold-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  color: var(--gold);
}

.rule-content strong {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.rule-content p {
  margin: 0;
  font-size: 11px;
  color: var(--text-normal);
  line-height: 1.5;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
}

.setting-icon {
  font-size: 14px;
}

.setting-label {
  flex: 1;
  font-size: 11px;
  color: var(--text-normal);
}

.setting-value {
  font-size: 10px;
  font-weight: bold;
}

.setting-value.enabled {
  color: #6a6;
}

.setting-value.disabled {
  color: #a66;
}

/* Connect Section */
.connect-section .connect-ip-large {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  background: var(--bg-panel-dark);
  padding: 15px;
  border: 2px solid var(--gold-dim);
  margin-bottom: 15px;
}

.connect-btn-large {
  font-size: 14px;
  padding: 12px 25px;
}

/* Notice Boxes */
.offline-notice,
.coming-soon-notice,
.upcoming-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid;
}

.offline-notice {
  background: linear-gradient(180deg, #2a1a1a 0%, #1a1010 100%);
  border-color: #4a2a2a;
}

.coming-soon-notice {
  background: linear-gradient(180deg, #2a2a1a 0%, #1a1a10 100%);
  border-color: #4a4a2a;
}

.upcoming-notice {
  background: linear-gradient(180deg, #1a2a2a 0%, #101a1a 100%);
  border-color: #2a4a4a;
}

.offline-icon,
.coming-soon-icon,
.upcoming-icon {
  font-size: 24px;
}

.offline-notice strong,
.coming-soon-notice strong,
.upcoming-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
}

.offline-notice p,
.coming-soon-notice p,
.upcoming-notice p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* Feature List */
.feature-list {
  margin: 10px 0;
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 8px;
  color: var(--text-normal);
}

/* Server Logo Display */
.server-logo-display {
  text-align: center;
  padding: 20px;
  margin-bottom: 15px;
}

.server-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Commission Icon Display - Smaller variant */
.commission-icon-display {
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}

.commission-icon-display img {
  max-width: 80px;
  max-height: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  border-radius: 4px;
}

/* Profile Picture Section - Side Layout */
.intro-with-photo {
  overflow: hidden;
}

.profile-picture-side {
  float: right;
  width: 150px;
  height: 150px;
  margin: 0 0 15px 20px;
  border: 3px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.profile-picture-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-picture-side .profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-panel-dark) 0%, var(--bg-panel) 100%);
  color: var(--text-dim);
  border: 2px dashed var(--bevel-light);
  box-sizing: border-box;
}

.profile-picture-side .profile-placeholder span:first-child {
  font-size: 2.5rem;
  margin-bottom: 5px;
  opacity: 0.5;
}

.profile-picture-side .profile-placeholder .placeholder-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 500px) {
  .profile-picture-side {
    float: none;
    display: block;
    margin: 0 auto 15px auto;
  }
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.screenshot-item {
  background: var(--bg-panel);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.screenshot-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-panel-dark) 0%, var(--bg-panel) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 2px dashed var(--bevel-light);
  box-sizing: border-box;
}

.screenshot-placeholder .placeholder-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.screenshot-placeholder .placeholder-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
  
  .screenshot-item img,
  .screenshot-placeholder {
    height: 150px;
  }
}

/* WafflePie specific logo styling */
.server-logo.wafflepie-logo {
  max-width: 300px;
  filter: drop-shadow(0 0 15px rgba(180, 120, 60, 0.4));
}

/* Important Notice Box */
.important-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  margin-top: 15px;
  background: linear-gradient(180deg, #2a2010 0%, #1a1508 100%);
  border: 2px solid var(--gold-dim);
}

.important-notice .notice-icon {
  font-size: 24px;
}

.important-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
}

.important-notice p {
  margin: 0;
  font-size: 12px;
  color: var(--text-normal);
}

/* Update Log */
.update-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-entry {
  display: flex;
  gap: 15px;
  padding: 10px;
  background: var(--bg-panel-dark);
  border-left: 3px solid var(--gold-dim);
}

.update-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  min-width: 90px;
}

.update-text {
  font-size: 12px;
  color: var(--text-normal);
}

/* Terms Intro */
.terms-intro {
  padding: 15px;
  background: linear-gradient(180deg, #1a2a1a 0%, #101a10 100%);
  border: 1px solid #2a4a2a;
  text-align: center;
}

.terms-intro p {
  margin: 0;
}

/* Rule Warning Style */
.rule-item.warning .rule-number {
  background: linear-gradient(180deg, #4a2020 0%, #2a1010 100%);
  border-color: #6a3030;
  color: #fa8;
}

.rule-item.warning .rule-content strong {
  color: #fa8;
}

/* Credits Grid */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.credit-card {
  padding: 15px;
  background: linear-gradient(180deg, #18182a 0%, #10101a 100%);
  border: 1px solid var(--bevel-dark);
}

.credit-name {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bevel-dark);
}

.credit-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.credit-role {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
}

.credit-role.admin {
  background: linear-gradient(180deg, #3a2020 0%, #2a1515 100%);
  border-color: #5a3030;
  color: #f88;
}

/* Curseforge Box */
.curseforge-box {
  padding: 20px;
  text-align: center;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  margin-top: 15px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LANGUAGE SELECTOR
   ───────────────────────────────────────────────────────────────────────────── */
.language-selector {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  /* Dropdown may be portaled to body; this box anchors the toggle only */
}

.theme-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
}

.lang-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: var(--text-normal);
  background: linear-gradient(180deg, rgba(30,30,45,0.9) 0%, rgba(15,15,25,0.9) 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  cursor: pointer;
  backdrop-filter: blur(5px);
  min-height: 30px;
  max-width: min(42vw, 180px);
  line-height: 1.2;
  white-space: normal;
  touch-action: manipulation;
}

.theme-toggle::before {
  content: '☀';
  font-size: 13px;
  line-height: 1;
}

[data-theme="light"] .theme-toggle::before {
  content: '☾';
}

.lang-toggle:hover,
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim) var(--bevel-dark) var(--bevel-dark) var(--gold-dim);
}

.lang-toggle:focus-visible,
.theme-toggle:focus-visible,
.lang-option:focus-visible,
.nav-btn:focus-visible,
.filter-btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.lang-icon {
  font-size: 14px;
  flex: 0 0 auto;
}

.lang-current {
  min-width: 60px;
  overflow-wrap: anywhere;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  padding: 5px 0;
  background: linear-gradient(180deg, #1a1a2a 0%, #10101a 100%);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  display: none;
  min-width: 140px;
  max-width: calc(100vw - 16px);
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.48);
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: var(--text-normal);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 34px;
  white-space: normal;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg-panel-dark);
  color: var(--gold);
}

.lang-option.active {
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold-dim) 0%, transparent 100%);
}

.lang-flag {
  font-size: 14px;
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  .language-selector,
  .theme-toggle {
    position: static;
    display: inline-flex;
    margin: 6px 4px 0;
    vertical-align: top;
  }

  .header-content {
    padding-top: 8px;
  }

  .lang-toggle,
  .theme-toggle {
    max-width: min(44vw, 180px);
    min-height: 36px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .lang-toggle,
  .theme-toggle {
    max-width: 100%;
    width: calc(50vw - 18px);
    padding: 6px 7px;
    font-size: 10px;
  }

  .lang-current {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Japanese & Russian font adjustments */
html[lang="ja"] {
  font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", "Meiryo", sans-serif;
}

html[lang="ru"] {
  font-family: Georgia, "Times New Roman", serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DETAIL PAGE LAYOUT (Roblox Game / Source Map) — Source engine orange/slate
   ───────────────────────────────────────────────────────────────────────────── */
.detail-layout {
  --detail-accent: #e8752e;
  --detail-accent-glow: rgba(232, 117, 46, 0.4);
  --detail-white: #e8e8e8;
  --detail-bg: #0f1419;
  --detail-panel: #151c24;
  padding: 0 10px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Roblox game detail variant: red, darker black, silver */
.detail-layout.roblox-detail {
  --detail-accent: #c41e1e;
  --detail-accent-glow: rgba(196, 30, 30, 0.45);
  --detail-white: #c8c8c8;
  --detail-bg: #080808;
  --detail-panel: #0c0c0c;
  --detail-silver: #a0a0a0;
}

.detail-layout.roblox-detail .detail-block,
.detail-layout.roblox-detail .detail-banner {
  border-color: var(--detail-accent);
  box-shadow: 0 0 10px var(--detail-accent-glow), inset 0 0 0 1px var(--detail-silver);
}

.detail-layout.roblox-detail .detail-block-header {
  border-bottom-color: var(--detail-silver);
}

.detail-layout.roblox-detail .detail-download-btn,
.detail-layout.roblox-detail .detail-back-link {
  border-color: var(--detail-accent);
}

/* Optional: banner image inside the quote div (add .detail-banner-img-wrap with img) */
.detail-banner {
  background: var(--detail-bg);
  border: 2px solid var(--detail-accent);
  box-shadow: 0 0 12px var(--detail-accent-glow), inset 0 0 0 1px var(--detail-white);
  padding: 14px 20px;
  margin-bottom: 18px;
  text-align: center;
  animation: detail-glow-pulse 4s ease-in-out infinite;
  overflow: hidden;
}

.detail-banner .detail-banner-img-wrap {
  margin: -14px -20px 14px -20px;
  max-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--detail-white);
}

.detail-banner .detail-banner-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.detail-banner .detail-banner-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--detail-white);
  letter-spacing: 2px;
  margin: 0;
}

@keyframes detail-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--detail-accent-glow), inset 0 0 0 1px var(--detail-white); }
  50% { box-shadow: 0 0 18px var(--detail-accent-glow), 0 0 4px var(--detail-accent), inset 0 0 0 1px var(--detail-white); }
}

.detail-banner h2 {
  font-size: 18px;
  font-weight: bold;
  color: var(--detail-white);
  letter-spacing: 2px;
  margin: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

@media (max-width: 700px) {
  .detail-columns { grid-template-columns: 1fr; }
}

.detail-block {
  background: var(--detail-bg);
  border: 2px solid var(--detail-accent);
  box-shadow: 0 0 10px var(--detail-accent-glow), inset 0 0 0 1px var(--detail-white);
  border-radius: 2px;
  overflow: hidden;
}

.detail-block-header {
  background: var(--detail-panel);
  border-bottom: 1px solid var(--detail-white);
  padding: 10px 14px;
  text-align: center;
}

.detail-block-header h3 {
  font-size: 13px;
  font-weight: bold;
  color: var(--detail-white);
  margin: 0;
  letter-spacing: 1px;
}

.detail-block-body {
  padding: 14px 16px;
  color: var(--detail-white);
  font-size: 12px;
  line-height: 1.55;
}

.detail-block-body p { margin: 0 0 10px; }
.detail-block-body p:last-child { margin-bottom: 0; }

.detail-meta-row {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-meta-label {
  color: rgba(232, 232, 232, 0.85);
  min-width: 72px;
}

.detail-screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.detail-screenshots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(180deg, #151515 0%, #080808 48%, #030303 100%);
  border: 1px solid rgba(220, 220, 220, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85);
  display: block;
}

@media (max-width: 760px) {
  .detail-screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .detail-screenshots {
    grid-template-columns: 1fr;
  }
}

.detail-download-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: start;
}

.detail-download-grid .detail-meta-label { min-width: 0; }

.detail-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #1f2a1a 0%, #141c12 100%);
  border: 2px solid var(--detail-accent);
  box-shadow: 0 0 8px var(--detail-accent-glow);
  color: var(--detail-white);
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.detail-download-btn:hover {
  box-shadow: 0 0 14px var(--detail-accent-glow), 0 0 4px var(--detail-accent);
  transform: scale(1.02);
}

.detail-download-btn:active { transform: scale(0.98); }

.detail-back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid var(--detail-accent);
  color: var(--detail-white);
  font-size: 11px;
  text-decoration: none;
  transition: box-shadow 0.2s, color 0.2s;
}

.detail-back-link:hover {
  color: var(--detail-accent);
  box-shadow: 0 0 8px var(--detail-accent-glow);
}

.detail-last-updated {
  font-size: 10px;
  color: rgba(232, 232, 232, 0.5);
  margin-top: 16px;
}

/* Messy layout: vary block heights / order */
.detail-col-left .detail-block:nth-child(1) { min-height: 120px; }
.detail-col-left .detail-block:nth-child(2) { min-height: 220px; }
.detail-col-right .detail-block:nth-child(1) { min-height: 160px; }
.detail-col-right .detail-block:nth-child(2) { min-height: 240px; margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS FOR NEW COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .pricing-row.header {
    display: none;
  }
  
  .pricing-cost {
    text-align: left;
  }
  
  .pricing-cost::before {
    content: "Price: ";
    color: var(--text-dim);
    font-weight: normal;
  }
  
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
}

/* Final scrollbar normalization for Chromium/Brave */
*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-corner,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-track,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb,
.index-archives-scrollbox::-webkit-scrollbar,
.index-archives-scrollbox::-webkit-scrollbar-thumb {
  border-radius: 0 !important;
}

*::-webkit-scrollbar-thumb,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb,
.index-archives-scrollbox::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3440a4 0%, #252d78 48%, #151a46 100%) !important;
  border: 2px solid #080809 !important;
  border-top-color: #5964c8 !important;
  border-left-color: #4753b6 !important;
  border-right-color: #0b0e2a !important;
  border-bottom-color: #080a20 !important;
}

*::-webkit-scrollbar-track,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-track {
  background: #0b0b0d !important;
  border: 1px solid #111638 !important;
}

*::-webkit-scrollbar-button {
  width: 0 !important;
  height: 0 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.game-map-modal-panel::-webkit-scrollbar,
.lightbox-frutiger::-webkit-scrollbar,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar,
.index-archives-scrollbox::-webkit-scrollbar {
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  background: #0b0b0d !important;
  border-radius: 0 !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.game-map-modal-panel::-webkit-scrollbar-track,
.lightbox-frutiger::-webkit-scrollbar-track,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-track,
.index-archives-scrollbox::-webkit-scrollbar-track {
  -webkit-appearance: none !important;
  background: #0b0b0d !important;
  border: 1px solid #111638 !important;
  border-radius: 0 !important;
  box-shadow: inset 1px 1px 0 rgba(95, 107, 198, 0.22), inset -1px -1px 0 rgba(0, 0, 0, 0.9) !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.game-map-modal-panel::-webkit-scrollbar-thumb,
.lightbox-frutiger::-webkit-scrollbar-thumb,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-thumb,
.index-archives-scrollbox::-webkit-scrollbar-thumb {
  -webkit-appearance: none !important;
  background: linear-gradient(180deg, #3440a4 0%, #252d78 48%, #151a46 100%) !important;
  background-clip: border-box !important;
  border: 2px solid #080809 !important;
  border-top-color: #5964c8 !important;
  border-left-color: #4753b6 !important;
  border-right-color: #0b0e2a !important;
  border-bottom-color: #080a20 !important;
  border-radius: 0 !important;
  box-shadow: inset 1px 1px 0 rgba(188, 197, 255, 0.16), inset -1px -1px 0 rgba(0, 0, 0, 0.85) !important;
  min-height: 32px !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.game-map-modal-panel::-webkit-scrollbar-corner,
.lightbox-frutiger::-webkit-scrollbar-corner,
.artwork-grid-container.scrollbox-mode::-webkit-scrollbar-corner,
.index-archives-scrollbox::-webkit-scrollbar-corner {
  -webkit-appearance: none !important;
  background: #0b0b0d !important;
  border-radius: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMICS & MANGA — REUSABLE CONTINUOUS READER
   ───────────────────────────────────────────────────────────────────────────── */
.comic-hub-shell {
  padding: 12px;
}

.comic-hub-menu {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  width: 100%;
  padding: 3px 2px 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #3540a2 #0b0b0d;
}

.comic-hub-card {
  display: grid;
  grid-template-columns: 150px 150px;
  flex: 0 0 312px;
  min-height: 112px;
  padding: 5px;
  color: var(--text-normal);
  background: var(--bg-panel-dark);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.42);
}

.comic-hub-card:hover,
.comic-hub-card:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  text-decoration: none;
  outline: none;
}

.comic-hub-card img {
  display: block;
  width: 150px;
  height: 102px;
  object-fit: cover;
  background: #050505;
  border: 1px solid #050505;
}

.comic-hub-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px 8px;
}

.comic-hub-card-copy strong {
  color: inherit;
  font: 15px/1.2 Georgia, 'Times New Roman', serif;
}

.comic-hub-card-copy span {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 8px;
  line-height: 1.4;
}

.comic-hub-card-copy small {
  margin-top: auto;
  color: var(--gold-dim);
  font: 8px/1.3 'Courier New', monospace;
}

.comic-library {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comic-series-rail,
.comic-reader-panel {
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  background: var(--bg-panel);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.035), 2px 2px 8px rgba(0, 0, 0, 0.45);
}

.comic-series-rail {
  padding: 8px;
}

.comic-reader-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-dim);
  font: 8px/1.2 Verdana, sans-serif;
  letter-spacing: 1.4px;
}

.comic-series-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.comic-series-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  padding: 5px;
  color: var(--text-normal);
  text-align: left;
  background: var(--bg-panel-dark);
  border: 1px solid var(--bevel-dark);
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  cursor: pointer;
  font: inherit;
}

.comic-series-card:hover,
.comic-series-card:focus-visible {
  color: var(--text-light);
  border-color: var(--gold-dim);
  outline: none;
}

.comic-series-card.is-active {
  color: var(--gold-light);
  border-color: var(--gold-dark);
  box-shadow: inset 0 0 12px rgba(201, 162, 39, 0.09);
}

.comic-series-cover {
  display: block;
  width: 62px;
  height: 50px;
  object-fit: cover;
  background: #050505;
  border: 1px solid #050505;
}

.comic-series-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comic-series-copy strong {
  color: inherit;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
}

.comic-series-copy span,
.comic-series-copy small {
  display: block;
  color: var(--text-dim);
  font-size: 8px;
  line-height: 1.35;
}

.comic-reader-panel {
  min-width: 0;
  padding: 8px;
}

.comic-reader-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 7px 9px;
  background: linear-gradient(180deg, var(--bg-panel-dark), var(--bg-main));
  border: 1px solid var(--bevel-dark);
}

.comic-reader-toolbar h2 {
  margin: 0;
  color: var(--gold);
  font: 17px/1.15 Georgia, 'Times New Roman', serif;
}

.comic-reader-toolbar p {
  margin: 3px 0 0;
  color: var(--text-dim);
  font-size: 9px;
}

.comic-reader-page-status {
  flex: 0 0 auto;
  max-width: 46%;
  padding: 4px 6px;
  color: #8fafbb;
  background: #070a0d;
  border: 1px solid #202a31;
  font: 8px/1.3 'Courier New', monospace;
  text-align: right;
}

.comic-reader-scrollbox {
  height: min(72vh, 760px);
  min-height: 480px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 82, 104, 0.13), transparent 44%),
    #050608;
  border: 2px solid;
  border-color: #030303 #24282d #24282d #030303;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.78);
  scrollbar-color: #3540a2 #0b0b0d;
}

.comic-reader-scrollbox:focus-visible {
  outline: 1px solid var(--gold-dim);
  outline-offset: 2px;
}

.comic-season + .comic-season {
  margin-top: 24px;
}

.comic-season-header {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto 10px;
  padding: 7px 9px;
  max-width: 920px;
  color: var(--text-normal);
  background: rgba(10, 12, 16, 0.94);
  border: 1px solid #252b35;
  border-left: 3px solid var(--gold-dark);
  backdrop-filter: blur(5px);
}

.comic-season-header h3 {
  margin: 0;
  color: var(--gold-light);
  font: 13px/1.2 Georgia, 'Times New Roman', serif;
}

.comic-season-header span {
  color: var(--text-dim);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.comic-page {
  width: fit-content;
  max-width: min(920px, 100%);
  margin: 0 auto 16px;
  padding: 7px;
  scroll-snap-align: start;
  background: #0d1014;
  border: 1px solid #292e36;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.5);
}

.comic-page.is-bonus {
  border-style: dashed;
  border-color: var(--gold-dim);
}

.comic-page img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  background: #000;
  cursor: zoom-in;
}

.comic-page figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
  color: var(--text-normal);
  font: 9px/1.25 'Courier New', monospace;
}

.comic-page figcaption small {
  color: var(--text-dim);
  font-size: 8px;
}

.comic-reader-hint,
.comic-reader-empty {
  margin: 7px 2px 0;
  color: var(--text-dim);
  font-size: 8px;
  text-align: center;
}

.comic-reader-scrollbox::-webkit-scrollbar {
  width: 16px !important;
  background: #0b0b0d !important;
}

.comic-reader-scrollbox::-webkit-scrollbar-track {
  background: #0b0b0d !important;
  border: 1px solid #111638 !important;
  box-shadow: inset 1px 1px 0 rgba(95, 107, 198, 0.22), inset -1px -1px 0 rgba(0, 0, 0, 0.9) !important;
}

.comic-reader-scrollbox::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3440a4, #252d78 48%, #151a46) !important;
  border: 2px solid #080809 !important;
  border-top-color: #5964c8 !important;
  border-left-color: #4753b6 !important;
  min-height: 32px !important;
}

@media (max-width: 760px) {
  .comic-library {
    grid-template-columns: 1fr;
  }

  .comic-series-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .comic-series-card {
    flex: 0 0 190px;
  }

  .comic-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .comic-reader-page-status {
    max-width: 100%;
    text-align: left;
  }

  .comic-reader-scrollbox {
    height: 68vh;
    min-height: 390px;
    padding: 8px;
  }

  .comic-season-header {
    top: -8px;
  }
}