/* vvasa33's corner! - loud Frutiger Aero + Neocities pixel chrome */

@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("../assets/fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #7fd7ff;
  --sky-hot: #2eb7ff;
  --lime: #6dff7a;
  --lime-deep: #2fbf45;
  --mango: #ff9f3c;
  --mango-deep: #e67812;
  --magenta: #ff5ec8;
  --magenta-deep: #d12a9a;
  --yellow: #ffe566;
  --aqua: #5ef0e0;
  --gel-white: #f4fcff;
  --ink: #0b2a3c;
  --muted: #2f5670;
  --glass: rgba(210, 245, 255, 0.55);
  --panel: rgba(255, 255, 255, 0.86);
  --border: #0f4d78;
  --shadow: rgba(12, 60, 100, 0.28);
  --radius: 12px;
  --shell-width: 1040px;
  --col-side: 210px;
  --font-body: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --font-micro: "Silkscreen", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #9fdfff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #0b6ea8;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #d12a9a;
  text-decoration: underline;
}

a:focus-visible,
.gel-btn:focus-visible {
  outline: 3px solid #ffe566;
  outline-offset: 2px;
}

h1,
h2 {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

h1 {
  font-family: var(--font-pixel);
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  line-height: 1.55;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-micro);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0f5f9a;
  text-transform: none;
}

p {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Background */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #8ed8ff;
  background-image:
    linear-gradient(180deg, rgba(120, 220, 255, 0.2), rgba(180, 255, 210, 0.12)),
    url("../assets/asadal_background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.sparkle {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 72%, #ffe566 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 30%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 74% 62%, #ff5ec8 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 22%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 80%, #6dff7a 0 1px, transparent 1.5px);
  mix-blend-mode: soft-light;
}

/* Shell */

.shell {
  width: min(100% - 1.25rem, var(--shell-width));
  margin: 1rem auto 2rem;
  padding: 0.7rem;
  border: 4px solid #1f7fd0;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(140, 230, 255, 0.28)),
    var(--glass);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 10px rgba(20, 90, 140, 0.18),
    0 16px 40px var(--shadow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Windows */

.window {
  margin-bottom: 0.7rem;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 0 rgba(15, 70, 110, 0.18),
    0 8px 18px rgba(15, 70, 110, 0.12);
  overflow: hidden;
}

.window-title {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.5rem;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(0, 40, 80, 0.35);
  background: linear-gradient(
    180deg,
    #9fdfff 0%,
    #4db7ff 48%,
    #1f7fd0 49%,
    #4db7ff 100%
  );
}

.window-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-menu .window-title {
  background: linear-gradient(180deg, #9fe8ff 0%, #3fc0ff 48%, #1488d0 49%, #3fc0ff 100%);
}

.win-links .window-title {
  background: linear-gradient(180deg, #c8ffb8 0%, #6dff7a 48%, #2fbf45 49%, #6dff7a 100%);
}

.win-button .window-title {
  background: linear-gradient(180deg, #ffe9a8 0%, #ffc04d 48%, #e08a10 49%, #ffc04d 100%);
}

.win-welcome .window-title {
  background: linear-gradient(180deg, #b8d9ff 0%, #5a9fff 48%, #266ad0 49%, #5a9fff 100%);
}

.win-profile .window-title {
  background: linear-gradient(180deg, #ffb8ea 0%, #ff5ec8 48%, #d12a9a 49%, #ff5ec8 100%);
}

.win-letterboxd .window-title {
  background: linear-gradient(180deg, #9ff0ea 0%, #3fd0c4 48%, #1a9a90 49%, #3fd0c4 100%);
}

.win-goodreads .window-title {
  background: linear-gradient(180deg, #b8f5c0 0%, #55d46a 48%, #2a9e3d 49%, #55d46a 100%);
}

.win-footer .window-title {
  display: none;
}

.window-body {
  padding: 0.65rem 0.7rem 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(235, 250, 255, 0.9));
}

/* Banner */

.site-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 100px;
  margin-bottom: 0.55rem;
  padding: 0.9rem 1rem;
  overflow: hidden;
  border: 3px solid #0f5f9a;
  border-radius: 16px;
  color: var(--ink);
  background-color: #1e8fff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%),
    url("../assets/banner-pixel-bg.png");
  background-size: auto, 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 10px rgba(90, 20, 80, 0.18),
    0 8px 20px rgba(20, 90, 140, 0.22);
}

.site-banner-copy {
  position: relative;
  z-index: 3;
  max-width: min(100%, 28rem);
  padding: 0.45rem 0.7rem 0.5rem;
  border: 3px solid #0a4a7a;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(210, 244, 255, 0.78) 45%, rgba(170, 220, 255, 0.7) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(15, 90, 140, 0.18),
    4px 4px 0 rgba(10, 60, 100, 0.28);
}

.site-banner-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(0.88rem, 2.4vw, 1.2rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #063252;
  image-rendering: pixelated;
  text-shadow:
    2px 0 0 #ffffff,
    -2px 0 0 #ffffff,
    0 2px 0 #ffffff,
    0 -2px 0 #ffffff,
    3px 3px 0 rgba(8, 70, 120, 0.35),
    0 0 12px rgba(255, 255, 255, 0.55);
}

.site-banner-url {
  margin: 0.45rem 0 0;
  font-family: var(--font-micro);
  font-size: 0.95rem;
  color: #0b5f8a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.banner-clock {
  position: relative;
  z-index: 3;
  margin-left: auto;
}

.cloud-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0.55rem 0.85rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff, #eaf8ff 55%, #c9ecff);
  box-shadow:
    14px 4px 0 -2px rgba(255, 255, 255, 0.85),
    -12px 6px 0 -4px rgba(255, 255, 255, 0.75),
    0 4px 10px rgba(20, 90, 140, 0.2);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: #0f5f9a;
}

.site-banner-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 28%, transparent 48%);
}

.site-banner-rainbow {
  position: absolute;
  right: 8%;
  bottom: -4%;
  z-index: 1;
  width: min(34%, 180px);
  aspect-ratio: 2 / 1;
  pointer-events: none;
  opacity: 0.95;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: url("../assets/rainbow-pixel.png") center / 100% 100% no-repeat;
  transform: none;
}

/* Friend button ticker (88x31) */

.button-rail {
  margin: 0 0 0.7rem;
  padding: 0.35rem 0;
  overflow: hidden;
  border: 3px solid #1f7fd0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 40%),
    linear-gradient(180deg, #e8f9ff, #c8ecff);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 6px rgba(15, 90, 140, 0.12);
}

.button-rail-track {
  display: flex;
  gap: 0.45rem;
  width: max-content;
  align-items: center;
  padding: 0 0.45rem;
  animation: button-ticker 28s linear infinite;
}

.button-rail:hover .button-rail-track {
  animation-play-state: paused;
}

.btn-88 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  border: 1px solid #0a3a5c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 40, 80, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  font-family: var(--font-micro);
  font-size: 0.62rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 40, 80, 0.35);
  white-space: nowrap;
  overflow: hidden;
  image-rendering: pixelated;
}

.btn-88 span {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-88 img {
  width: 88px;
  height: 31px;
  display: block;
  image-rendering: pixelated;
}

.btn-88--img {
  padding: 0;
  border: 0;
  box-shadow: 0 0 0 1px rgba(0, 40, 80, 0.35);
  background: transparent;
}

.btn-88:hover,
.btn-88:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
  outline: 2px solid #ffe566;
  outline-offset: 2px;
}

.btn-88--cyan {
  background: linear-gradient(180deg, #b8f0ff 0%, #2eb7ff 46%, #0f7fbf 47%, #2eb7ff 100%);
}
.btn-88--pink {
  background: linear-gradient(180deg, #ffc0ea 0%, #ff5ec8 46%, #c02090 47%, #ff5ec8 100%);
}
.btn-88--teal {
  background: linear-gradient(180deg, #b8fff6 0%, #3fd0c4 46%, #1a9088 47%, #3fd0c4 100%);
}
.btn-88--lime {
  background: linear-gradient(180deg, #d4ffb0 0%, #6dff7a 46%, #2fbf45 47%, #6dff7a 100%);
  color: #083018;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-88--orange {
  background: linear-gradient(180deg, #ffe0b0 0%, #ff9f3c 46%, #e67812 47%, #ff9f3c 100%);
  color: #3a1800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-88--yellow {
  background: linear-gradient(180deg, #fff7c0 0%, #ffe566 46%, #e0b820 47%, #ffe566 100%);
  color: #3a2a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-88--magenta {
  background: linear-gradient(180deg, #ffc0f5 0%, #e040c0 46%, #a01888 47%, #e040c0 100%);
}
.btn-88--slot {
  border-style: dashed;
  border-color: #5a9fc8;
  background: repeating-linear-gradient(
    -45deg,
    #e8f6ff,
    #e8f6ff 4px,
    #d0ebf8 4px,
    #d0ebf8 8px
  );
  color: #0f5f9a;
  text-shadow: none;
  box-shadow: none;
}

@keyframes button-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Legacy blinkie styles (tags / older pages) */

.blinkie-rail {
  margin: 0 0 0.7rem;
  padding: 0.35rem 0;
  overflow: hidden;
  border: 3px solid #1f7fd0;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8f9ff, #c8ecff);
  box-shadow: inset 0 1px 0 #fff;
}

.blinkie-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  align-items: center;
  padding: 0 0.45rem;
  animation: button-ticker 28s linear infinite;
}

.blinkie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 0.65rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 40, 80, 0.35);
  font-family: var(--font-micro);
  font-size: 0.78rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  image-rendering: pixelated;
}

.b-cyan { background: linear-gradient(180deg, #7fe8ff, #1ea8e0); }
.b-pink { background: linear-gradient(180deg, #ff9ad8, #e0209a); color: #fff; }
.b-teal { background: linear-gradient(180deg, #7ff0e4, #18a898); }
.b-lime { background: linear-gradient(180deg, #b8ff90, #2fbf45); color: #083018; }
.b-orange { background: linear-gradient(180deg, #ffd08a, #e67812); color: #3a1800; }
.b-yellow { background: linear-gradient(180deg, #fff1a0, #f0c020); color: #3a2a00; }
.b-magenta { background: linear-gradient(180deg, #ffb0f0, #c020b0); }
.b-blue { background: linear-gradient(180deg, #9cbcff, #2f62d0); }

/* Columns */

.columns {
  display: grid;
  grid-template-columns: var(--col-side) minmax(0, 1fr) var(--col-side);
  gap: 0.7rem;
  align-items: start;
}

.col-left { order: 1; }
.col-center { order: 2; }
.col-right { order: 3; }

/* Gel nav buttons */

.gel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blinkie-rail:hover .blinkie-track {
  animation-play-state: paused;
}

.gel-btn {
  display: block;
  padding: 0.45rem 0.55rem;
  border: 2px solid #0d5f9a;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #dff6ff 0%,
    #62c4ff 45%,
    #1577c2 48%,
    #3fa6e8 100%
  );
  color: #fff !important;
  font-family: var(--font-micro);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 40, 80, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 0 rgba(10, 60, 100, 0.25);
  cursor: pointer;
}

.gel-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.gel-btn:active {
  transform: translateY(1px) scale(0.98);
}

.gel-btn.is-active {
  border-color: #0a4d80;
  background: linear-gradient(
    180deg,
    #fff6b0 0%,
    #ffd24a 46%,
    #e0a010 47%,
    #ffd24a 100%
  );
  color: #3a2a00 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gel-btn.is-placeholder {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.25);
}

.gel-btn.is-placeholder:hover,
.gel-btn.is-placeholder:active {
  transform: none;
  filter: grayscale(0.25);
}

.gel-teal {
  border-color: #0f7a72;
  background: linear-gradient(180deg, #d8fff8 0%, #5ee0d2 46%, #1aa898 47%, #5ee0d2 100%);
}

.gel-lime {
  border-color: #2a8a35;
  background: linear-gradient(180deg, #e8ffd8 0%, #7dff80 46%, #2fbf45 47%, #7dff80 100%);
  color: #083018 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.site-button-box {
  text-align: center;
}

.site-btn-88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  line-height: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  text-decoration: none !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.site-btn-88 img {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tiny-note {
  margin: 0.4rem 0 0;
  font-family: var(--font-micro);
  font-size: 0.72rem;
  color: var(--muted);
}

.btn-embed-wrap {
  margin-top: 0.55rem;
  text-align: left;
}

.btn-embed {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border: 2px solid #0f5f9a;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.35;
  resize: none;
  overflow-x: auto;
  white-space: pre;
  cursor: text;
}

.btn-embed:focus-visible {
  outline: 2px solid #ffe566;
  outline-offset: 1px;
}

.btn-embed-copy {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.28rem 0.4rem;
  border: 2px solid #0d5f9a;
  border-radius: 6px;
  background: linear-gradient(180deg, #b8f0ff 0%, #5ec8ff 48%, #2a9fd4 49%, #7ad8ff 100%);
  color: #083018;
  font-family: var(--font-micro);
  font-size: 0.68rem;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-embed-copy:hover {
  filter: brightness(1.05);
}

.btn-embed-copy:active {
  transform: translateY(1px);
}

.btn-embed-copy.is-copied {
  background: linear-gradient(180deg, #c8ffd0 0%, #6dff7a 48%, #2fbf45 49%, #8dff96 100%);
}

/* Welcome */

.welcome-collage {
  position: relative;
  margin-bottom: 0.85rem;
  height: 150px;
  overflow: hidden;
  border: 3px solid #0f5f9a;
  box-shadow: 4px 4px 0 rgba(15, 95, 154, 0.25);
  background: #7fd7ff;
}

.collage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  image-rendering: auto;
}

.hobby-line {
  margin-bottom: 0;
  font-family: var(--font-micro);
  font-size: 0.82rem;
  color: #0f5f9a;
}

.changelog {
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 3px dashed #3fc0ff;
  border-radius: 10px;
  background: rgba(255, 255, 220, 0.55);
}

.changelog ul {
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.changelog li + li {
  margin-top: 0.35rem;
}

.changelog time {
  font-family: var(--font-micro);
  font-size: 0.78rem;
  color: #d12a9a;
}

/* Profile */

.profile {
  text-align: center;
}

.avatar {
  width: 68px;
  height: 68px;
  margin: 0.1rem auto 0.5rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.profile-handle {
  margin-bottom: 0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: #d12a9a;
}

.interest-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-micro);
  font-size: 0.78rem;
  color: var(--muted);
}

.interest-list li + li {
  margin-top: 0.15rem;
}

/* Feeds */

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 4.5rem;
}

.feed-item {
  padding: 0.4rem 0.45rem 0.45rem 0.55rem;
  border: 2px solid #9fdfff;
  border-left: 4px solid #2eb7ff;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
}

.win-letterboxd .feed-item {
  border-left-color: #1aa898;
}

.win-goodreads .feed-item {
  border-left-color: #2fbf45;
}

.feed-item a {
  display: block;
  font-family: var(--font-micro);
  font-size: 0.78rem;
  font-weight: 400;
  color: #0b3f66;
  line-height: 1.3;
}

.feed-meta {
  margin: 0.2rem 0 0;
  font-family: var(--font-micro);
  font-size: 0.68rem;
  color: #d12a9a;
}

.feed-excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-status {
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  color: var(--muted);
}

.feed-status.is-error {
  color: #7a2e2e;
  background: rgba(255, 230, 230, 0.8);
  border: 2px solid #e0b0b0;
  border-radius: 6px;
  padding: 0.45rem;
}

.feed-more {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  font-weight: 400;
}

.feed-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.skel-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #d7eef7, #fff7c8, #d7eef7);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skel-line.short {
  width: 55%;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Inner pages */

.page-panel.compact p {
  margin-bottom: 0.55rem;
}

.page-panel.compact p:last-child {
  margin-bottom: 0;
}

.lede {
  font-family: var(--font-micro);
  font-size: 0.85rem;
  color: #0f5f9a;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.info-tile {
  padding: 0.65rem 0.7rem;
  border: 3px solid #1f7fd0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 3px 3px 0 rgba(15, 95, 154, 0.18);
}

.info-tile h2 {
  margin-bottom: 0.4rem;
}

.info-tile ul {
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.info-tile li + li {
  margin-top: 0.25rem;
}

.t-cyan {
  border-color: #1ea8e0;
  background: linear-gradient(180deg, rgba(210, 245, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.t-pink {
  border-color: #e0209a;
  background: linear-gradient(180deg, rgba(255, 220, 245, 0.95), rgba(255, 255, 255, 0.85));
}

.status-box,
.faq-item {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 3px dashed #3fc0ff;
  border-radius: 10px;
  background: rgba(255, 255, 220, 0.55);
}

.faq-item + .faq-item {
  margin-top: 0.55rem;
}

.faq-item h2 {
  margin-bottom: 0.3rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.12rem 0.4rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 77, 120, 0.35);
  font-family: var(--font-micro);
  font-size: 0.68rem;
  color: #fff;
  vertical-align: middle;
}

.tag-cyan { background: linear-gradient(180deg, #7fe8ff, #1ea8e0); }
.tag-teal { background: linear-gradient(180deg, #7ff0e4, #18a898); }
.tag-lime { background: linear-gradient(180deg, #b8ff90, #2fbf45); color: #083018; }
.tag-pink { background: linear-gradient(180deg, #ff9ad8, #e0209a); }
.tag-orange { background: linear-gradient(180deg, #ffd08a, #e67812); color: #3a1800; }
.tag-yellow { background: linear-gradient(180deg, #fff1a0, #f0c020); color: #3a2a00; }

.win-about .window-title {
  background: linear-gradient(180deg, #ffc8f0 0%, #ff6ad5 48%, #c0209a 49%, #ff6ad5 100%);
}

.win-faq .window-title,
.win-archive .window-title {
  background: linear-gradient(180deg, #d8c8ff 0%, #9b7dff 48%, #6a45d0 49%, #9b7dff 100%);
}

.win-now .window-title {
  background: linear-gradient(180deg, #c8ffe8 0%, #55e0b0 48%, #1aa878 49%, #55e0b0 100%);
}

.win-blog .window-title,
.win-post.post-cyan .window-title {
  background: linear-gradient(180deg, #9fe8ff 0%, #3fc0ff 48%, #1488d0 49%, #3fc0ff 100%);
}

.win-post.post-pink .window-title {
  background: linear-gradient(180deg, #ffb8ea 0%, #ff5ec8 48%, #d12a9a 49%, #ff5ec8 100%);
}

.win-post.post-lime .window-title {
  background: linear-gradient(180deg, #c8ffb8 0%, #6dff7a 48%, #2fbf45 49%, #6dff7a 100%);
}

.win-post.post-orange .window-title {
  background: linear-gradient(180deg, #ffd0a8 0%, #ff9f3c 48%, #e67812 49%, #ff9f3c 100%);
}

.win-linkboard .window-title,
.win-media .window-title {
  background: linear-gradient(180deg, #9ff0ea 0%, #3fd0c4 48%, #1a9a90 49%, #3fd0c4 100%);
}

.win-inspire .window-title {
  background: linear-gradient(180deg, #b8d9ff 0%, #5a9fff 48%, #266ad0 49%, #5a9fff 100%);
}

.win-friends .window-title {
  background: linear-gradient(180deg, #ffd0a8 0%, #ff9f3c 48%, #e67812 49%, #ff9f3c 100%);
}

.win-nowplay .window-title {
  background: linear-gradient(180deg, #9ff0ea 0%, #3fd0c4 48%, #1a9a90 49%, #3fd0c4 100%);
}

.win-guestbook .window-title {
  background: linear-gradient(180deg, #ffb8ea 0%, #ff5ec8 48%, #d12a9a 49%, #ff5ec8 100%);
}

.win-radio .window-title {
  background: linear-gradient(180deg, #ffe9a8 0%, #ffc04d 48%, #e08a10 49%, #ffc04d 100%);
}

.win-top4 .window-title {
  background: linear-gradient(180deg, #9ff0ea 0%, #3fd0c4 48%, #1a9a90 49%, #3fd0c4 100%);
}

.win-trinkets .window-title {
  background: linear-gradient(180deg, #c8ffb8 0%, #6dff7a 48%, #2fbf45 49%, #6dff7a 100%);
}

.win-hitcounter .window-title {
  background: linear-gradient(180deg, #ffe0ff 0%, #ff6ad5 45%, #c02090 46%, #ff6ad5 100%);
  color: #fff;
  text-shadow: 0 1px 0 #8a1060, 1px 1px 0 rgba(255, 255, 255, 0.35);
}

.win-hitcounter .window-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 35%),
    linear-gradient(145deg, #f0f4ff 0%, #d8e8ff 40%, #c8d0e8 100%);
}

.post-teaser {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-teaser:hover,
.post-teaser:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.post-teaser h2 {
  font-family: var(--font-micro);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.post-excerpt {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.post-read {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  color: #0b6ea8;
}

.post-back {
  margin: 0 0 0.65rem;
  font-family: var(--font-micro);
  font-size: 0.78rem;
}

.post-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(20, 90, 140, 0.18);
}

.post-meta {
  margin: 0 0 0.75rem;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  color: var(--muted);
}

.post-header .post-meta {
  margin: 0.35rem 0 0;
}

.post-full h1 {
  margin: 0 0 0.35rem;
}

.post-content > p:first-child {
  margin-top: 0;
}

.post-content p {
  line-height: 1.55;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-micro);
  margin: 1rem 0 0.45rem;
}

.post-content blockquote {
  margin: 0.75rem 0;
  padding: 0.45rem 0.7rem;
  border-left: 4px solid rgba(20, 140, 190, 0.55);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.now-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.now-card {
  display: block;
  padding: 0.55rem;
  border: 3px solid #1aa898;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(220, 250, 255, 0.88));
  color: inherit;
  text-decoration: none;
}

.now-card.now-books {
  border-color: #2fbf45;
}

.now-card:hover,
.now-card:focus-visible {
  color: inherit;
  text-decoration: none;
  filter: brightness(1.03);
}

.now-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-micro);
  font-size: 0.7rem;
  color: var(--magenta-deep);
}

.now-title {
  display: block;
  font-family: var(--font-micro);
  font-size: 0.82rem;
  line-height: 1.3;
  color: #0b3f66;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guestbook-form label {
  font-family: var(--font-micro);
  font-size: 0.72rem;
  color: var(--muted);
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 2px solid #0f5f9a;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
}

.guestbook-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.guestbook-form button {
  align-self: flex-start;
  cursor: not-allowed;
  opacity: 0.85;
}

.radio-deck {
  display: grid;
  gap: 0.55rem;
}

.radio-face {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border: 3px solid #c07810;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 32%),
    linear-gradient(160deg, #fff6d8 0%, #ffe08a 45%, #ffc04d 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(160, 90, 10, 0.18),
    0 3px 0 #8a5010;
}

.radio-face.is-live {
  border-color: #1a9a90;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 32%),
    linear-gradient(160deg, #e8fff8 0%, #9ff0ea 45%, #3fd0c4 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(20, 120, 110, 0.18),
    0 3px 0 #0f6a62;
}

.radio-face.is-loading {
  opacity: 0.92;
}

.radio-art {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 3px solid #0f4d78;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 30%),
    linear-gradient(145deg, #9fe8ff, #5a9fff 55%, #2a6fb8);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    0 3px 0 #0a3a5c;
}

.radio-face.is-live .radio-art {
  border-color: #1a7a72;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    0 3px 0 #0f5a52;
}

.radio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.radio-art-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    transparent 42%
  );
}

.radio-art--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.radio-dial {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #8a5010;
  background:
    repeating-conic-gradient(from 0deg, #ffe9a8 0deg 8deg, #ffc04d 8deg 16deg);
  box-shadow:
    inset 0 0 0 10px #fff3d0,
    inset 0 2px 0 #fff,
    0 3px 0 #8a5010;
}

.radio-dial-glow {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffb020 55%, #c07010);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

.radio-dial-knob {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 6px;
  height: 18px;
  margin-left: -3px;
  border-radius: 2px;
  background: #5a3008;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform-origin: bottom center;
  transform: rotate(-25deg);
}

.radio-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.radio-status {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a5010;
}

.radio-face.is-live .radio-status {
  color: #0f6a62;
}

.radio-track-title {
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.82rem;
  line-height: 1.25;
  color: #3a1800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-face.is-live .radio-track-title {
  color: #083a36;
}

.radio-track-artist {
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.68rem;
  color: #8a5010;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-face.is-live .radio-track-artist {
  color: #1a7a72;
}

.radio-meter {
  margin-top: 0.2rem;
  height: 8px;
  border: 2px solid #8a5010;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.radio-face.is-live .radio-meter {
  border-color: #1a7a72;
}

.radio-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9f3c, #ffe566);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.radio-face.is-live .radio-meter-fill {
  background: linear-gradient(90deg, #3fd0c4, #9ff0ea);
}

.radio-time {
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.62rem;
  color: #8a5010;
}

.radio-face.is-live .radio-time {
  color: #1a7a72;
}

.radio-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-top: 0.15rem;
}

.radio-eq-bar {
  width: 4px;
  height: 40%;
  border-radius: 2px;
  background: #c07810;
  transform-origin: bottom;
}

.radio-face.is-live .radio-eq-bar {
  background: #1a9a90;
  animation: radio-eq 0.85s ease-in-out infinite alternate;
}

.radio-face.is-live .radio-eq-bar:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.radio-face.is-live .radio-eq-bar:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.radio-face.is-live .radio-eq-bar:nth-child(4) { animation-delay: 0.05s; height: 55%; }
.radio-face.is-live .radio-eq-bar:nth-child(5) { animation-delay: 0.25s; height: 80%; }

@keyframes radio-eq {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.radio-open {
  margin-top: 0.2rem;
  font-family: var(--font-micro);
  font-size: 0.68rem;
  color: #0b6ea8;
}

.radio-face.is-live .radio-open {
  color: #0f6a62;
}

@media (max-width: 720px) {
  .radio-face {
    grid-template-columns: 72px 1fr;
  }

  .radio-art,
  .radio-dial {
    width: 72px;
    height: 72px;
  }
}

.top4-deck {
  display: grid;
  gap: 0.55rem;
}

.top4-lede {
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.72rem;
  line-height: 1.4;
  color: #0b5f8a;
}

.top4-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.top4-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.top4-tile:hover,
.top4-tile:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
}

.top4-rank {
  position: absolute;
  z-index: 2;
  top: -0.35rem;
  left: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #0a3a5c;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 42%),
    linear-gradient(180deg, #ffe566, #ff9f3c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 0 #0a3a5c;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: #3a1800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.top4-poster {
  width: 100%;
}

.top4-caption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.top4-title {
  font-family: var(--font-micro);
  font-size: 0.68rem;
  line-height: 1.25;
  color: #083a62;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top4-year {
  font-family: var(--font-micro);
  font-size: 0.62rem;
  color: var(--muted);
}

.trinket-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
}

.trinket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 2px solid #9fdfff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.trinket img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.trinket span {
  font-family: var(--font-micro);
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
}

.hit-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.hit-chrome {
  position: relative;
  padding: 0.45rem 0.5rem 0.5rem;
  border: 3px solid #4a5568;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #c8d0dc 18%, #8a94a8 52%, #b8c0d0 78%, #e8ecf4 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(40, 50, 70, 0.35),
    0 3px 0 #2a3344,
    0 5px 10px rgba(20, 30, 50, 0.2);
}

.hit-chrome::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  right: 8px;
  height: 38%;
  border-radius: 6px 6px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.hit-label {
  position: relative;
  z-index: 1;
  margin: 0 0 0.3rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: #0b4a78;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hit-digits {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 0.35rem 0.4rem;
  border: 2px solid #06324c;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #0a3a58 0%, #041828 55%, #062438 100%);
  box-shadow:
    inset 0 3px 8px rgba(0, 20, 40, 0.65),
    inset 0 0 0 1px #1a88c8,
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hit-digits span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.45rem;
  border: 1px solid #0a4a78;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #1578b8 0%, #0a4a80 40%, #062848 41%, #0c5a98 100%);
  color: #b8f4ff;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  text-shadow:
    0 0 6px rgba(80, 210, 255, 0.9),
    0 0 1px #7fd7ff;
  box-shadow:
    inset 0 1px 0 rgba(180, 240, 255, 0.35),
    inset 0 -1px 0 rgba(0, 20, 40, 0.45);
}

.hit-row .tiny-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-micro);
  font-size: 0.62rem;
  color: var(--muted);
}

.construction-tape {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  padding: 0.4rem 0.55rem;
  border: 3px solid #c07010;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #ffe566,
    #ffe566 10px,
    #ff9f3c 10px,
    #ff9f3c 20px
  );
  font-family: var(--font-micro);
  font-size: 0.78rem;
  color: #3a1800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-stack > .window + .window,
.home-stack > .window + .post-teaser {
  margin-top: 0.7rem;
}

.post-body h2 {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #083a62;
}

.post-tags {
  margin: 0.65rem 0 0;
}

.archive-list {
  list-style: none;
  padding: 0;
}

.archive-list li + li {
  margin-top: 0.4rem;
}

.archive-list a {
  font-family: var(--font-micro);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #0b5f8a;
}

.link-board {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.link-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 3px solid #1f7fd0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(220, 245, 255, 0.9));
  box-shadow: 3px 3px 0 rgba(15, 95, 154, 0.16);
  text-decoration: none !important;
  transition: transform 0.15s ease;
}

.link-row:hover {
  transform: translateY(-2px);
  border-color: #e0209a;
}

.link-name {
  font-family: var(--font-micro);
  font-size: 0.9rem;
  color: #083a62;
}

.link-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  margin-top: 0.1rem;
  margin-bottom: 0;
}

.footer-body {
  text-align: center;
  color: var(--muted);
}

.footer-body p {
  margin: 0;
}

.footer-pixel {
  font-family: var(--font-micro);
  font-size: 0.82rem;
  color: #0f5f9a;
}

.footer-meta {
  margin-top: 0.3rem !important;
  font-size: 0.72rem;
}

/* Media libraries (Letterboxd / Goodreads) */

.media-library-intro {
  margin-bottom: 0.85rem;
}

.media-library-intro p {
  margin: 0 0 0.35rem;
}

.media-count {
  font-family: var(--font-micro);
  font-size: 0.72rem;
  color: var(--magenta-deep);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.75rem 0.65rem;
}

.media-tile {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-tile:hover,
.media-tile:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
}

.media-poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 3px solid #0f4d78;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    linear-gradient(145deg, #9fe8ff, #5a9fff 55%, #2a6fb8);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(15, 70, 110, 0.25),
    0 4px 0 #0a3a5c,
    0 8px 16px rgba(12, 60, 100, 0.22);
}

.win-goodreads .media-poster-frame,
.media-grid--goodreads .media-poster-frame {
  border-color: #1f7a32;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    linear-gradient(145deg, #c8ffb8, #55d46a 55%, #2a9e3d);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(30, 100, 40, 0.22),
    0 4px 0 #145522,
    0 8px 16px rgba(20, 80, 30, 0.2);
}

.media-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-poster-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    transparent 42%
  );
}

.media-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.media-poster-frame--lg {
  width: min(100%, 220px);
  margin: 0 auto;
}

.media-tile-title {
  font-family: var(--font-micro);
  font-size: 0.72rem;
  line-height: 1.25;
  color: #0b3f66;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-tile-author {
  font-size: 0.7rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-tile-date {
  font-family: var(--font-micro);
  font-size: 0.62rem;
  color: var(--muted);
}

.star-meter {
  display: inline-block;
  font-family: var(--font-micro);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #e08a10;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 8px rgba(255, 200, 80, 0.45);
}

.win-letterboxd .star-meter,
.media-grid--letterboxd .star-meter {
  color: #0f8f84;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 8px rgba(94, 240, 224, 0.5);
}

.win-goodreads .star-meter,
.media-grid--goodreads .star-meter {
  color: #2a9e3d;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 8px rgba(109, 255, 122, 0.45);
}

.media-detail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.media-detail-hero {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1rem;
  align-items: start;
}

.media-detail-meta h1 {
  margin-bottom: 0.4rem;
}

.media-detail-author {
  margin: 0 0 0.35rem;
  font-family: var(--font-micro);
  font-size: 0.85rem;
  color: #0f5f9a;
}

.media-detail-rating-num,
.media-detail-date {
  margin: 0.25rem 0 0;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  color: var(--muted);
}

.media-detail-meta .star-meter {
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.media-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.media-review-window {
  margin: 0;
}

.media-review-window .window-title {
  background: linear-gradient(180deg, #ffe9a8 0%, #ffc04d 48%, #e08a10 49%, #ffc04d 100%);
}

.media-review-body {
  max-width: 65ch;
  font-size: 0.92rem;
  line-height: 1.55;
}

.media-review-body p {
  margin: 0 0 0.7rem;
}

.media-review-body p:last-child {
  margin-bottom: 0;
}

.media-missing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.media-entry-shell > .window-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(230, 248, 255, 0.92));
}

/* Motion */

/* Responsive — layout/sizing only; keep visual chrome identical */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Tablet bridge: stack before 210px sidebars crush the center */
@media (max-width: 960px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .col-center { order: 1; }
  .col-left { order: 2; }
  .col-right { order: 3; }

  .site-banner {
    flex-wrap: wrap;
    min-height: 0;
    gap: 0.55rem;
  }

  .banner-clock {
    margin-left: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .media-detail-hero {
    grid-template-columns: 1fr;
  }

  .now-shelf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(100% - 0.85rem, var(--shell-width));
    max-width: 100%;
    margin-top: max(0.65rem, env(safe-area-inset-top, 0px));
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .site-banner {
    padding: 0.7rem 0.75rem;
  }

  .site-banner-copy {
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-banner-title {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(0.72rem, 4.2vw, 1rem);
    line-height: 1.45;
  }

  .site-banner-url {
    font-size: 0.82rem;
    word-break: break-word;
  }

  .site-banner-rainbow {
    opacity: 0.7;
    width: min(48%, 140px);
  }

  .cloud-face {
    min-width: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.58rem;
  }

  .button-rail,
  .blinkie-rail {
    max-width: 100%;
  }

  .btn-embed {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: auto;
  }

  .gel-btn {
    padding: 0.55rem 0.65rem;
    min-height: 2.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .link-row {
    padding: 0.55rem 0.65rem;
  }

  .link-row:hover {
    transform: none;
  }

  .gel-btn:hover {
    transform: none;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .top4-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .media-poster-frame--lg {
    width: min(100%, 180px);
  }

  .media-tile:hover,
  .media-tile:focus-visible {
    transform: none;
  }

  .trinket-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-teaser:hover,
  .post-teaser:focus-visible {
    transform: none;
  }

  .welcome-collage {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 160px;
  }

  .window-body {
    min-width: 0;
  }

  .columns,
  .col,
  .shell {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .shell {
    width: min(100% - 0.5rem, var(--shell-width));
    padding: 0.4rem;
  }

  .site-banner-title {
    font-size: clamp(0.64rem, 4.8vw, 0.88rem);
  }

  .site-banner-url {
    font-size: 0.72rem;
  }

  .media-grid,
  .top4-row {
    gap: 0.4rem;
  }

  .media-tile-title {
    font-size: 0.64rem;
  }

  .top4-title {
    font-size: 0.6rem;
  }

  .welcome h1,
  .page-panel h1 {
    font-size: clamp(0.85rem, 5vw, 1.05rem);
  }

  .gel-btn {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .shell,
  .window-body {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shell {
    background: #dff6ff;
  }

  .window-body {
    background: #f7fcff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blinkie-track,
  .button-rail-track,
  .skel-line,
  .radio-eq-bar {
    animation: none !important;
  }

  .skel-line {
    background: #d7eef7;
  }

  .media-tile {
    transition: none;
  }
}
