@font-face {
  font-family: 'Munro';
  src: url('../fonts/Munro.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'MunroSmall';
  src: url('../fonts/MunroSmall.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Pixel Code';
  src: url('../fonts/PixelCode.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pixel Code';
  src: url('../fonts/PixelCode-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pixel Code';
  src: url('../fonts/PixelCode-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'MunroNarrow';
  src: url('../fonts/MunroNarrow.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'SerenityOS Emoji';
  src: url('../fonts/SerenityOS-Emoji.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg-dark: #0a0a1a;
  --bg-panel: #0e0e2a;
  --bg-panel-solid: #0e0e2a;
  --accent-cyan: #00d4ff;
  --accent-magenta: #ff2d7c;
  --border: #05050f;
  --border-hover: #151535;
  --text: #e0e0f0;
  --text-dim: #7878a8;
  --font-main: 'Munro', 'SerenityOS Emoji', 'Courier New', monospace;
  --font-body: 'Munro', 'SerenityOS Emoji', 'Courier New', monospace;
  --font-narrow: 'MunroNarrow', 'SerenityOS Emoji', 'Courier New', monospace;
  
  --dither-bg: repeating-conic-gradient(
    rgba(10, 10, 26, 0.95) 0% 25%, 
    transparent 0% 50%
  ) 50% / 4px 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  max-width: 100%;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-magenta);
}

.parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  will-change: transform;
}

.parallax-sky {
  z-index: 1;
  animation: drift 180s linear infinite;
}

.parallax-city-far {
  z-index: 2;
  animation: drift 120s linear infinite;
}

.parallax-city-near {
  z-index: 3;
  animation: drift 80s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.scanlines::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.1) 50%
    ),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.05),
      rgba(0, 255, 0, 0.025),
      rgba(0, 0, 255, 0.05)
    );
  background-size: 100% 3px, 3px 100%;
  z-index: 9999;
  pointer-events: none;
}

.scanlines::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 16, 0.08);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0%   { opacity: 0.27861; }
  5%   { opacity: 0.34769; }
  10%  { opacity: 0.23604; }
  15%  { opacity: 0.90626; }
  20%  { opacity: 0.18128; }
  25%  { opacity: 0.83891; }
  30%  { opacity: 0.65583; }
  35%  { opacity: 0.67807; }
  40%  { opacity: 0.26559; }
  45%  { opacity: 0.84693; }
  50%  { opacity: 0.96019; }
  55%  { opacity: 0.08594; }
  60%  { opacity: 0.20313; }
  65%  { opacity: 0.71988; }
  70%  { opacity: 0.53455; }
  75%  { opacity: 0.37288; }
  80%  { opacity: 0.71428; }
  85%  { opacity: 0.70419; }
  90%  { opacity: 0.7003;  }
  95%  { opacity: 0.36108; }
  100% { opacity: 0.24387; }
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 2px solid var(--border);
  background: var(--dither-bg);
  background-color: rgba(14, 14, 42, 0.5); 
}

.site-logo {
  font-family: var(--font-main);
  font-size: 32px;
  color: var(--text);
  letter-spacing: 4px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--text-dim);
  padding: 4px 12px;
  transition: color 0.15s, text-shadow 0.15s;
}

.nav-btn:hover {
  color: var(--text);
}

.nav-btn.active {
  color: var(--text);
  text-decoration: underline;
}

.nav-divider {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--text-dim);
}

.menu-toggle {
  display: none;
}

.menu-toggle img {
  width: 28px;
  height: 28px;
}

.site-layout {
  position: relative;
  z-index: 5;
  display: flex;
  height: calc(100% - 62px);
  overflow: hidden;
}

.main-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.post-card {
  background: var(--dither-bg);
  background-color: rgba(14, 14, 42, 0.7);
  border: 2px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--border-hover);
}

.post-image {
  display: block;
  width: 100%;
  max-width: 60%;
  margin: 0 auto 16px;
  height: auto;
}

.post-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.post-title {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

.read-more {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s;
}

.read-more:hover {
  color: var(--accent-magenta);
}

.post-date {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.post-footer .post-tags {
  margin: 0;
}

.post-footer .read-more {
  margin: 0;
  flex-shrink: 0;
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 12px;
}

.tag-blog {
  color: #b266ff;
  border-color: #7c3aed;
  text-shadow: 0 0 6px rgba(178, 102, 255, 0.4);
}

.game-download-btn.disabled {
  background: var(--border);
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

.related-game {
  margin-top: 24px;
  margin-bottom: 16px;
}

.related-posts {
  margin-bottom: 20px;
  background: var(--dither-bg);
  border: 2px solid var(--border);
  padding: 16px;
}

.comments-section {
  background: var(--dither-bg);
  border: 2px solid var(--border);
  padding: 16px;
  margin-top: 32px;
  min-height: 300px;
}

.comments-section .giscus,
.comments-section .giscus iframe {
  width: 100% !important;
}

.related-post-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(14, 14, 42, 0.5);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-body pre {
  background: #050510;
  border: 2px solid var(--border);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) transparent;
}

.post-body pre code {
  font-family: 'Pixel Code', monospace;
  font-size: 13px;
  line-height: 0.9 !important;
  color: var(--text);
  background: none !important;
  padding: 0 !important;
  border: none !important;
  counter-reset: line;
}

.post-body code {
  font-family: 'Pixel Code', monospace;
  font-size: 13px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
  line-height: 0.9 !important;
  padding: 2px 6px;
  color: var(--accent-cyan);
}

.post-body pre code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: inherit;
}

.post-body .shiki code .line {
  display: block;
  width: 100%;
  padding-left: 3.5em;
  position: relative;
  line-height: 1.2 !important;
  font-size: 14px;
  min-height: 1.2em;
}

.post-body .shiki code .line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 2.5em;
  text-align: right;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.post-body pre code.hljs {
  background: transparent !important;
  padding: 0 !important;
}

.post-body .shiki,
.post-body pre.shiki {
  background-color: #050510 !important;
  border: 2px solid var(--border);
  padding: 16px 16px 16px 0;
  margin: 16px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) transparent;
  counter-reset: line;
  white-space: pre;
}

.post-body .shiki code {
  line-height: 1.2 !important;
  font-size: 0;
  display: block;
  white-space: pre;
}

.post-body .shiki code .line span {
  font-size: 14px;
}

.related-post-link:hover {
  border-color: var(--accent-cyan);
}

.related-post-title {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
}

.related-post-date {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-dim);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.store-card {
  position: relative;
  overflow: hidden;
  background: var(--dither-bg);
  background-color: rgba(14, 14, 42, 0.7);
  border: 2px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.store-card::after {
  content: '→';
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 3;
  font-size: 18px;
  color: var(--accent-cyan);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.store-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.store-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}


.store-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

video.store-card-bg {
  background: #0e0e2a;
}


.store-card-dither {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYPj/n4EBzAIAFAED/0KI0RQAAAAASUVORK5CYII=");
  background-size: 2px 2px;
  background-repeat: repeat;
  background-color: rgba(14, 14, 42, 0.5);
  transition: background-color 0.4s;
}

.store-card:hover .store-card-dither {
  background-color: rgba(14, 14, 42, 0.2);
}


.store-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 120px;
}

.store-card-icon {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.store-card-icon img:first-child {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.store-card-title {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  text-align: left;
}

.store-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tag {
  font-family: var(--font-main);
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid;
}

.tag-platform {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.tag-genre {
  color: var(--accent-magenta);
  border-color: var(--accent-magenta);
}

.sidebar {
  width: 320px;
  min-width: 320px;
  background: var(--dither-bg);
  background-color: rgba(14, 14, 42, 0.8);
  border-left: 2px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar-nav {
  display: none;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.avatar {
  width: 80px;
  height: auto;
}

.profile-name {
  font-family: var(--font-main);
  font-size: 28px;
  color: var(--text);
}

.social-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-row a {
  display: block;
  transition: transform 0.15s;
}

.social-row a:hover {
  transform: scale(1.2);
}

.social-row img {
  width: 24px;
  height: 24px;
}


.search-widget {
  padding: 0 16px;
  margin-bottom: 16px;
  position: relative;
}

.search-form {
  display: flex;
  gap: 0;
}

.search-input {
  flex: 1;
  background: rgba(14, 14, 42, 0.7);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-cyan);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-left: none;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}

.search-btn:hover {
  border-color: var(--accent-cyan);
}

.search-btn img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.search-suggestions {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: #0e0e2a;
  border: 1px solid var(--border);
  border-top: none;
}

.search-suggestions:empty {
  display: none;
}

.search-suggestion {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 12px;
  color: #b266ff;
  text-decoration: none;
  transition: background 0.15s;
}

.search-suggestion:hover {
  background: rgba(178, 102, 255, 0.15);
}


.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-container .search-form {
  max-width: 500px;
}

.search-heading {
  font-family: var(--font-main);
  font-size: 20px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.search-section-title {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--accent-magenta);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.search-empty {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-dim);
}

a.tag-blog {
  text-decoration: none;
}

a.tag-blog:hover {
  background: rgba(178, 102, 255, 0.2);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 12px 0;
}

.pagination-btn {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--accent-cyan);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.pagination-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-magenta);
}

.pagination-info {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-dim);
}

.radio-widget {
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
}

.radio-label {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--accent-magenta);
  padding: 6px 10px;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.radio-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

.radio-player iframe {
  width: 100% !important;
  height: 100% !important;
}

.radio-now-playing {
  overflow: hidden;
  padding: 6px 10px;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-narrow);
  font-size: 13px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.marquee-wrapper {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 14s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.radio-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 2px solid var(--border);
}

.radio-controls button {
  padding: 6px 14px;
  transition: background 0.15s;
}

.radio-controls button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.radio-controls img {
  width: 18px;
  height: 18px;
}

.radio-playlist {
  max-height: 180px;
  overflow-y: auto;
}

.playlist-item {
  padding: 6px 10px;
  font-family: var(--font-narrow);
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s, color 0.1s;
}

.playlist-item:last-child {
  border-bottom: none;
}

.playlist-item:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text);
}

.playlist-item.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border-left: 3px solid var(--accent-cyan);
}



.game-detail {
  max-width: 800px;
  margin: 0 auto;
}

.game-hero {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 20px;
  min-height: 200px;
  background: var(--dither-bg);
  background-color: rgba(14, 14, 42, 0.7);
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.game-hero-dither {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYPj/n4EBzAIAFAED/0KI0RQAAAAASUVORK5CYII=");
  background-size: 2px 2px;
  background-repeat: repeat;
  background-color: rgba(14, 14, 42, 0.35);
}

.game-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 20px;
}

.game-title {
  font-family: var(--font-main);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.game-download-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.game-download-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 24px;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  font-family: var(--font-main);
  font-size: 18px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.game-download-btn:hover {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.game-description {
  background: rgba(14, 14, 42, 0.6);
  border: 2px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.game-section-title {
  font-family: var(--font-main);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.game-screenshots {
  margin-bottom: 20px;
}

.screenshots-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: center;
}

.screenshot-thumb {
  max-height: 160px;
  width: auto;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: max-height 0.3s, transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.screenshot-thumb:hover {
  border-color: var(--accent-cyan);
}

.screenshot-thumb.expanded {
  max-height: 80vh;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  position: relative;
  z-index: 10;
}

.game-demo {
  margin-bottom: 20px;
}

.demo-container {
  border: 2px solid var(--border);
  background: #000;
}

.demo-iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

@media (max-width: 600px) {
  .demo-iframe {
    height: 300px;
  }
  .screenshot-thumb {
    max-height: 120px;
  }
  .screenshot-thumb.expanded {
    max-height: 80vh;
  }
  .game-title {
    font-size: 22px;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #2a2a5a;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a7a;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
  }

  .site-header {
    padding: 12px 16px;
  }

  .site-layout {
    flex-direction: column;
  }

  .main-panel {
    padding: 16px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    background: var(--bg-panel-solid);
    border-left: none;
    padding-top: 70px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: none;
  }

  .post-image {
    max-width: 90%;
  }

  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 24px;
  }

  .store-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .main-panel {
    padding: 12px;
  }
}

.sidebar-rss {
  margin-top: auto;
  align-self: flex-end;
  margin-right: 5px;
  margin-bottom: 5px;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.sidebar-rss:hover {
  opacity: 1;
  transform: scale(1.15);
}

.sidebar-rss img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  display: block;
}

.lazyload {
  image-rendering: pixelated;
  filter: blur(4px);
  opacity: 0.8;
  transition: filter 0.6s steps(4, end), opacity 0.6s steps(4, end), image-rendering 0s;
}

.lazyload.loaded {
  image-rendering: pixelated;
  filter: blur(0);
  opacity: 1;
}

.lazy-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  filter: invert(0.8);
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.lazyload.loaded + .lazy-spinner {
  opacity: 0;
}

.post-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 60%;
  margin: 0 auto 16px;
}

.post-image-wrapper .post-image {
  max-width: 100%;
  margin: 0;
}

.post-inline-img-wrapper,
.screenshot-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.post-body [style*="text-align: center"] .post-inline-img-wrapper,
.post-body [style*="text-align:center"] .post-inline-img-wrapper {
  display: block !important;
  width: fit-content !important;
  margin: 0 auto !important;
}

.post-inline-img-wrapper img.lazyload {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
}

.easter-egg-bingus {
  position: fixed;
  z-index: 4;
  width: 150px;
  height: auto;
  pointer-events: none;
  opacity: 0;
}

