/* =========================================================
   GunnHaus v2: warm off-white, oxblood + gold, a little 8-bit
   Colors live here. Change them and everything follows.
   ========================================================= */

/* ---------- fonts (self-hosted in assets/fonts, Latin only, SIL Open Font License) ---------- */
/* Newsreader upright is fixed at its 18pt optical size (body text); the italic keeps the full
   optical-size range because it's used for the big headlines. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/oswald-latin.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/silkscreen-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f4eee3;          /* page: warm off-white, easy on the eyes */
  --card: #fbf8f2;        /* cards sit slightly lighter */
  --ink: #2a1d1a;
  --muted: #7b6a62;
  --line: #e2d6c4;
  --line-2: #d6c7b1;
  --ox: #340000;          /* brand oxblood (GH mark) */
  --ox-2: #5a0d10;
  --cream: #f3ece2;
  --gold: #c08a2e;        /* baroque amber */
  --gold-2: #a8741d;
  --heart: #b3262c;
  --hp: #6b9a45;
  --sans: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --pixel: "Silkscreen", ui-monospace, "Courier New", monospace;
  --wide: 1120px;
  --read: 680px;
  --r: 14px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main { max-width: var(--wide); margin: 0 auto; padding: 0 16px 80px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ox); color: var(--cream); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.blink { display: inline-block; animation: blink 1s steps(1) infinite; color: var(--gold); font-size: 0.7em; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header ---------- */
.top { background: var(--ox); color: var(--cream); position: sticky; top: 0; z-index: 60; }
.top-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.brand-mark { justify-self: start; display: block; position: relative; line-height: 0; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; transition: transform 0.3s; }
.brand-word {
  justify-self: center; text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: 0.22em; line-height: 1;
  padding-left: 0.22em; /* balances the trailing letter-spacing so it sits truly centered */
}
.brand-word:hover { color: #fff; }
.menu-btn { justify-self: end; }
@media (max-width: 420px) { .brand-word { font-size: 17px; letter-spacing: 0.16em; } .menu-label { display: none; } .menu-btn { padding: 9px 12px; } }

.menu-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 1px solid rgba(243, 236, 226, 0.35); border-radius: 999px;
  padding: 8px 14px 8px 16px; cursor: pointer; color: var(--cream);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.menu-btn:hover { border-color: var(--gold); }
.burger { position: relative; width: 20px; height: 12px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.2s, top 0.3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }
.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px max(24px, calc((100vw - var(--wide)) / 2 + 16px)) 32px;
  overflow-y: auto;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
/* The oxblood circle: a real disc centered on the Menu button (JS sets --mx/--my/--mr) that grows
   and shrinks with transform: scale(). Scale is the most reliably GPU-composited animation, so it
   lands fully covering the screen with no half-painted corner. */
.menu::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  left: var(--mx, calc(100% - 60px)); top: var(--my, 32px);
  width: calc(var(--mr, 150vmax) * 2); height: calc(var(--mr, 150vmax) * 2);
  margin: calc(var(--mr, 150vmax) * -1) 0 0 calc(var(--mr, 150vmax) * -1);
  border-radius: 50%; background: var(--ox);
  transform: scale(0); will-change: transform;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.menu-open .menu { visibility: visible; transition: visibility 0s; }
.menu-open .menu::before { transform: scale(1); transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1); }
.menu-open body { overflow: hidden; }
.menu-nav { display: flex; flex-direction: column; gap: 2px; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px;
  text-decoration: none; padding: 4px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.2s, transform 0.3s;
}
.menu-open .menu-nav a { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.15s + var(--i) * 0.05s); }
.menu-nav .num { font-family: var(--pixel); font-size: 13px; color: var(--gold); width: 2.2em; }
.menu-nav .txt {
  position: relative;
  font-size: clamp(34px, min(8vw, 9vh), 84px); font-style: italic; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  transition: transform 0.25s, color 0.2s;
}
.menu-nav .txt::before {
  content: "▸"; position: absolute; left: -0.55em; top: 0.02em;
  font-style: normal; font-size: 0.55em; color: var(--gold);
  opacity: 0; transform: translateX(-8px); transition: opacity 0.2s, transform 0.25s;
}
.menu-nav a:hover .txt, .menu-nav a:focus-visible .txt { transform: translateX(0.55em); color: #fff; }
.menu-nav a:hover .txt::before, .menu-nav a:focus-visible .txt::before { opacity: 1; transform: none; animation: nudge 0.6s steps(2) infinite; }
.menu-nav a[aria-current="page"] .txt { color: var(--gold); }
@keyframes nudge { 50% { translate: 3px 0; } }
.menu-foot {
  opacity: 0; transition: opacity 0.15s;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(243, 236, 226, 0.2); padding-top: 18px; margin-top: 36px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.menu-open .menu-foot { opacity: 1; transition: opacity 0.4s 0.35s; }
.menu-links { display: flex; gap: 18px; flex-wrap: wrap; }
.menu-links a { text-decoration: none; opacity: 0.8; }
.menu-links a.is-busy { opacity: 0.5; }
.menu-links a:hover { opacity: 1; color: var(--gold); }
.menu-hint { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.05em; opacity: 0.5; }

/* ---------- shared bits ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-label, .no, .lv, .player dt, .stats span, .now-k, .p-note, .dialog-label, .saved, .count {
  font-family: var(--pixel); font-weight: 400; letter-spacing: 0.02em;
}
.card-label { margin: 0 0 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ox); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ox); border-color: var(--ox); color: var(--cream); }
.count { font-size: 10px; opacity: 0.7; }
.tag {
  display: inline-block;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 1px 8px 2px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.5;
}
.tag-prompts { color: var(--gold-2); }
.empty { color: var(--muted); padding: 24px 0; list-style: none; }

/* pixel hearts */
.hearts { display: inline-flex; gap: 3px; vertical-align: middle; }
.heart { position: relative; width: 17px; height: 15px; display: inline-block; }
.heart svg { width: 17px; height: 15px; display: block; fill: var(--line-2); }
.heart-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.heart-fill svg { fill: var(--heart); }
.rating-num { margin-left: 8px; font-family: var(--pixel); font-size: 11px; color: var(--muted); vertical-align: middle; }

/* RPG dialog box */
.dialog {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 5px var(--line-2), 4px 4px 0 var(--ox);
  border-radius: 6px;
  padding: 18px 22px 20px;
}
.dialog-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--gold-2); text-transform: uppercase; }
.dialog .blink { position: absolute; right: 14px; bottom: 8px; }

/* covers */
.cover { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 18px -12px rgba(52, 0, 0, 0.45); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-blank { display: flex; align-items: flex-end; padding: 12px; color: var(--cream); background: linear-gradient(160deg, #5a0d10, #340000); }
.cover-blank span { font-style: italic; font-size: 17px; line-height: 1.15; }
.cover-game { background: linear-gradient(160deg, #3f5a2a, #1f2e17); }
.cover-book { background: linear-gradient(160deg, #6a4a2a, #3a2715); }
.cover-movie, .cover-show { background: linear-gradient(160deg, #2e3a4a, #161d27); }
.cover-music { background: linear-gradient(160deg, #a8741d, #5a3a0a); }
.cover-sm { width: 84px; flex: none; }
.cover-sm.cover-blank span { font-size: 12px; }
.no { font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* =========================================================
   HOME: profile + feed
   ========================================================= */
.home {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}
.side {
  position: sticky; top: 80px;
  display: grid; gap: 16px;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;                    /* no visible scrollbar */
  padding: 2px 2px 12px; margin: -2px;
  --fade: 44px;
}
.side::-webkit-scrollbar { display: none; }
.side.fade-bottom { -webkit-mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent); }
.side.fade-top { -webkit-mask-image: linear-gradient(transparent, #000 var(--fade)); mask-image: linear-gradient(transparent, #000 var(--fade)); }
.side.fade-top.fade-bottom { -webkit-mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.side-cards { display: grid; gap: 16px; }
.swipe-dots { display: none; }
@media (max-width: 860px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .side { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; min-width: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  /* Now + Party become a swipeable row so the feed shows up sooner.
     position: relative keeps anything absolutely positioned inside (like the hidden
     type-badge labels) clipped by the row, instead of stretching the whole page sideways. */
  .side-cards {
    position: relative; min-width: 0;
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .side-cards::-webkit-scrollbar { display: none; }
  .side-cards > .card { flex: 0 0 86%; scroll-snap-align: start; }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 1px; background: var(--line-2); transition: background 0.2s, width 0.2s; }
  .swipe-dots i.on { background: var(--ox); width: 14px; }
}

/* profile card */
.profile { padding: 22px; }
.profile-top { position: relative; display: inline-block; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-btn.bounce { animation: bounce 0.35s; }
@keyframes bounce { 40% { transform: translateY(-8px) scale(1.04); } 70% { transform: translateY(2px); } }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--gold);
}
.avatar-mono { background: var(--ox); }
.avatar-mono img { width: 58%; height: 58%; object-fit: contain; }
.lv {
  position: absolute; left: 62px; bottom: -4px; white-space: nowrap;
  font-size: 12px; color: var(--ox); background: #f0e2c4; border: 2px solid var(--ox);
  padding: 3px 8px; border-radius: 4px; box-shadow: 2px 2px 0 var(--ox);
}
.lv b { font-weight: 400; }
.lv.pop { animation: pop 0.5s; }
@keyframes pop { 30% { transform: scale(1.35) rotate(-6deg); } }

.name-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; }
.display-name { margin: 0; font-size: 34px; font-weight: 500; font-style: italic; line-height: 1.05; letter-spacing: -0.02em; }
.splash {
  margin-top: 14px; max-width: 180px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--pixel); font-size: 13px; line-height: 1.25; color: #ffd23a;
  /* dark outline all the way around + a chunky drop shadow, so it reads on the light card */
  text-shadow:
    -1px -1px 0 #3d2400, 1px -1px 0 #3d2400, -1px 1px 0 #3d2400, 1px 1px 0 #3d2400,
    0 -1px 0 #3d2400, 0 1px 0 #3d2400, -1px 0 0 #3d2400, 1px 0 0 #3d2400,
    2px 2px 0 #3d2400, 3px 3px 0 rgba(61, 36, 0, 0.35);
  transform: rotate(-8deg); transform-origin: left center;
  animation: splash 0.55s ease-in-out infinite alternate;
}
@keyframes splash { to { transform: rotate(-8deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .splash { animation: none; } }
.handle { margin: 4px 0 0; font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em; color: var(--muted); }
.bio { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.player { margin: 14px 0 0; display: grid; gap: 6px; }
.player div { display: flex; gap: 10px; align-items: baseline; }
.player dt { width: 52px; flex: none; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.player dd { margin: 0; font-size: 15px; }
.stats { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li + li { border-left: 1px solid var(--line); }
.stats a { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; text-decoration: none; }
.stats a:hover b { color: var(--gold-2); }
.stats b { font-family: var(--sans); font-weight: 500; font-size: 24px; line-height: 1.1; }
.stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.profile-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile-links .chip { font-size: 12px; padding: 5px 12px; }

/* now card */
.now { padding: 18px 22px; }
.now ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.now li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.now-k { font-size: 10px; color: var(--gold-2); text-transform: uppercase; }
.now-v { font-size: 16px; line-height: 1.35; }

/* party card */
.party { padding: 18px 22px; }
.party ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.party li { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 9px; min-width: 0; }
.p-body { flex: 1; min-width: 0; }
.p-icon { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--card)); }
.p-icon .px { width: 16px; height: 16px; fill: var(--c); }
.p-sprite { flex: none; width: 46px; height: 46px; margin: -6px -2px -6px -4px; object-fit: contain; image-rendering: pixelated; transform-origin: 50% 90%; }
.party li:hover .p-sprite { animation: spriteHop 0.5s steps(3); }
@keyframes spriteHop { 40% { transform: translateY(-5px); } }
.p-name { display: block; font-size: 15px; line-height: 1.25; }
.p-note { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.p-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; }
.types { display: flex; gap: 3px; }
.type { position: relative; width: 17px; height: 17px; border-radius: 4px; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.type .px { width: 11px; height: 11px; fill: #fff; }
.p-lv { font-family: var(--pixel); font-size: 10px; color: var(--muted); white-space: nowrap; }
.hp { display: block; height: 6px; margin-top: 6px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card); padding: 1px; }
.hp i { display: block; height: 100%; width: 100%; background: var(--hp); border-radius: 1px; }

/* feed */
.feed-col { max-width: 660px; }
.feed-col .chips { margin-top: 0; }
.rating { display: inline-flex; align-items: center; }
.feed { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.fcard-in {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.fcard-in:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 10px 24px -18px rgba(52, 0, 0, 0.55); }
.who { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 4px; }
.mini-av { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; }
.mini-av.avatar-mono img { width: 60%; height: 60%; }
.who-text { flex: 1; min-width: 0; line-height: 1.3; }
.who-text b { font-weight: 600; }
.when { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.fcard .tag { align-self: flex-start; }
.fc-title { font-size: 25px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.fcard-in:hover .fc-title { color: var(--ox-2); }
.fc-prompt { font-style: italic; color: var(--gold-2); font-size: 17px; line-height: 1.4; }
.fc-text { color: #4a3b36; line-height: 1.5; }
.fc-sub { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.fc-foot { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fc-foot .arrow { color: var(--gold); }
.fcard-in:hover .arrow { animation: nudge 0.6s steps(2) infinite; display: inline-block; }
.fc-review { display: flex; gap: 16px; }
.fc-review-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fc-review .fc-title { font-size: 22px; }
.fc-review .fc-text { font-size: 15px; margin-top: 2px; }
.mosaic { display: grid; gap: 4px; border-radius: 10px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.mosaic-1 img { aspect-ratio: 16 / 10; }
.mosaic-2 { grid-template-columns: 1fr 1fr; }
.mosaic-2 img { aspect-ratio: 4 / 3; }
.mosaic-3 { grid-template-columns: repeat(3, 1fr); }
.mosaic-4 { grid-template-columns: repeat(4, 1fr); }
.mosaic-4 img:nth-child(4), .more-n { grid-area: 1 / 4; }
.more-n { display: grid; place-items: center; background: rgba(52, 0, 0, 0.6); color: var(--cream); font-family: var(--pixel); font-size: 18px; }
@media (max-width: 520px) { .mosaic-4 { grid-template-columns: 1fr 1fr; } .mosaic-4 img:nth-child(4), .more-n { grid-area: 2 / 2; } }
.feed-end { text-align: center; margin: 28px 0 0; font-family: var(--pixel); font-size: 12px; color: var(--muted); }

/* =========================================================
   LISTS, POSTS, REVIEWS
   ========================================================= */
.page-head { padding: 44px 0 20px; border-bottom: 1px solid var(--ink); }
.page-head h1 {
  margin: 0; font-family: var(--sans); font-size: clamp(38px, 7vw, 64px); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1;
}
.page-head p { margin: 12px 0 0; max-width: 580px; color: var(--muted); font-size: 18px; }
.page-head .crumb { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.page-head .crumb a { text-decoration: none; color: var(--muted); }
.page-head .crumb a:hover { color: var(--ox); }

.rows { list-style: none; margin: 0; padding: 0; }
.row a {
  display: grid; grid-template-columns: 116px 92px 1fr; align-items: baseline; gap: 12px;
  padding: 18px 10px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: 8px;
  transition: background 0.12s;
}
.row a:hover { background: var(--card); }
.row a:hover .row-title { color: var(--ox-2); }
.row time { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.row .tag { justify-self: start; }
.row-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
@media (max-width: 600px) {
  .row a { grid-template-columns: auto 1fr; row-gap: 6px; padding: 16px 6px; }
  .row .row-title { grid-column: 1 / -1; font-size: 21px; }
}

.post { max-width: var(--read); margin: 0 auto; padding-top: 48px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post-head h1, .review h1 { margin: 0; font-size: clamp(34px, 5.5vw, 52px); font-weight: 500; font-style: italic; line-height: 1.06; letter-spacing: -0.02em; }
.prompt { margin: 28px 0 0; font-style: italic; font-size: 21px; line-height: 1.45; }
.prose { margin-top: 32px; font-size: 20px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.2; margin-top: 1.9em; margin-bottom: 0; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose a { color: var(--ox-2); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::after { content: "◆ ◆ ◆"; color: var(--gold); font-size: 12px; letter-spacing: 0.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.prose code { font-size: 0.8em; background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--card); border: 1px solid var(--line); padding: 16px; font-size: 15px; border-radius: 8px; }
.prose pre code { background: none; border: 0; padding: 0; }

.pager { max-width: var(--read); margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; }
.pager a { text-decoration: none; font-size: 18px; font-style: italic; }
.pager a:hover { color: var(--ox-2); }
.pager small { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.pager .next { text-align: right; }

/* media shelf */
.shelf { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
@media (max-width: 600px) { .shelf { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }
.shelf-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shelf-card .cover { margin-bottom: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.shelf-card:hover .cover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 26px -16px rgba(52, 0, 0, 0.6); }
.shelf-title { font-size: 19px; font-weight: 500; line-height: 1.2; }
.shelf-card:hover .shelf-title { color: var(--ox-2); }
.shelf-card .hearts { margin-top: 4px; }

.review { display: grid; grid-template-columns: 260px minmax(0, var(--read)); gap: 44px; justify-content: center; padding-top: 48px; }
.review-cover { position: sticky; top: 96px; align-self: start; }
.review-cover .cover-blank span { font-size: 24px; }
.review-sub { margin: 10px 0 0; font-family: var(--sans); font-size: 15px; letter-spacing: 0.06em; color: var(--muted); }
.review-rating { margin-top: 16px; }
.review-rating .heart, .review-rating .heart svg { width: 24px; height: 21px; }
.review + .pager { max-width: calc(260px + 44px + var(--read)); }
@media (max-width: 760px) { .review + .pager { max-width: var(--read); } }
.verdict { margin: 22px 0 0; font-size: 19px; font-style: italic; }
@media (max-width: 760px) {
  .review { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .review-cover { position: static; width: 170px; }
}

/* =========================================================
   PHOTOS
   ========================================================= */
.grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } }
.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.2s; }
.ph:hover img { transform: scale(1.04); opacity: 0.94; }

.albums { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.album-card { display: block; text-decoration: none; }
.album-cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); border-radius: 10px; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-title { display: block; margin-top: 12px; font-size: 22px; font-style: italic; line-height: 1.2; }
.album-card:hover .album-title { color: var(--ox-2); }
.album-meta { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(24, 6, 4, 0.96); color: var(--cream); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(24, 6, 4, 0.96); }
.lightbox figure { margin: 0; padding: 56px 0 24px; text-align: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 16px; font-style: italic; color: #e3d8ca; }
.lb-album, .lb-count { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.lb-album { color: #e6b877; text-decoration: none; }
.lb-album:hover { text-decoration: underline; }
.lb-count { color: #9d8c82; }
.lb-close { position: fixed; top: 16px; right: 16px; background: none; color: var(--cream); border: 1px solid #6b4a44; border-radius: 999px; font: 500 12px var(--sans); text-transform: uppercase; letter-spacing: 0.12em; padding: 8px 14px; cursor: pointer; }
.lb-close:hover { border-color: var(--cream); }
.lb-nav { height: 100%; width: 64px; background: none; border: 0; color: var(--cream); font-size: 44px; line-height: 1; cursor: pointer; opacity: 0.6; }
.lb-nav:hover { opacity: 1; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 36px 1fr 36px; } .lb-nav { width: 36px; font-size: 34px; } }

/* =========================================================
   LINKS: standalone link-in-bio page
   ========================================================= */
body.is-links {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(192, 138, 46, 0.22), transparent 70%),
    var(--bg);
}
.lt { position: relative; max-width: 520px; margin: 0 auto; padding: 44px 0 10px; text-align: center; }
.lt-share {
  position: absolute; right: 0; top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.lt-share .px { width: 13px; height: 12px; fill: currentColor; }
.lt-share:hover { border-color: var(--ox); }
.lt-head .profile-top { margin: 0 auto; }
.lt-head .lv { left: 78px; bottom: -2px; }
.lt-name { position: relative; justify-content: center; margin-top: 18px; }
.lt-name .display-name { font-size: 38px; }
.lt-name .splash { position: absolute; left: calc(50% + 40px); top: 0; margin: 0; }
.lt-head .bio { max-width: 400px; margin: 10px auto 0; color: #4a3b36; }
.lt-now { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lt-now li { display: inline-flex; gap: 8px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.lt-now .now-k { font-size: 9px; }
.lt-links { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lt-btn {
  display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px;
  padding: 12px 14px; text-align: left; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 3px 0 var(--line-2);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}
.lt-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ox); border-color: var(--ox); }
.lt-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ox); }
.lt-btn.is-busy { opacity: 0.6; pointer-events: none; }
.lt-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ox); }
.lt-ico .px { width: 20px; height: 20px; fill: var(--cream); }
.lt-txt { display: flex; flex-direction: column; min-width: 0; }
.lt-txt b { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.lt-txt small { font-size: 14px; color: var(--muted); }
.lt-arrow { color: var(--gold); font-size: 14px; }
.lt-btn:hover .lt-arrow { animation: nudge 0.6s steps(2) infinite; }
.lt-latest {
  display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding: 16px 18px; text-align: left; text-decoration: none;
  border: 1px dashed var(--line-2); border-radius: 16px;
}
.lt-latest .card-label { margin: 0; }
.lt-latest-title { font-size: 21px; font-style: italic; }
.lt-latest:hover .lt-latest-title { color: var(--ox-2); }
.lt-site { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.lt-site a { text-decoration: none; color: var(--muted); }
.lt-site a:hover { color: var(--ox); }

/* =========================================================
   GUEST BOOK
   ========================================================= */
.gb { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .gb { grid-template-columns: 1fr; } }
.gb-form { padding: 20px 22px; position: sticky; top: 80px; display: grid; gap: 14px; }
@media (max-width: 860px) { .gb-form { position: static; } }
.gb-form .card-label { margin: 0; font-size: 14px; }
.field { display: grid; gap: 6px; position: relative; }
.field > span { font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ox); box-shadow: 0 0 0 3px rgba(52, 0, 0, 0.1); }
.gb-count { position: absolute; right: 10px; bottom: 8px; font-family: var(--pixel); font-size: 11px; color: var(--muted); }
/* label on its own line, swatches underneath with room for the selection ring */
.swatches { border: 0; padding: 0; margin: 0; min-width: 0; }
.swatches legend { display: block; float: none; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.sw-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 4px; }
.sw { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; position: relative; background: var(--sw); }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw:has(input:checked) { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ox); }
.sw:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  background: var(--ox); color: var(--cream); border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 3px 0 #1a0000; transition: transform 0.1s, box-shadow 0.1s, opacity 0.2s;
}
.btn:hover { background: var(--ox-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a0000; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn .cursor { color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--bg); }
.gb-status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--ox-2); }
.gb-fine { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.gb-total { margin: 0 0 12px; font-family: var(--pixel); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.notes { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 16px; }
.note {
  --bgc: #fbf6e9;
  break-inside: avoid; position: relative; margin: 0 0 16px; padding: 30px 18px 14px; /* top band keeps the #001 clear of the message */
  background: var(--bgc); border-radius: 4px 4px 10px 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 20px -16px rgba(52, 0, 0, 0.55);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s;
}
.note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 46px; height: 14px; transform: translateX(-50%) rotate(-2deg); background: rgba(192, 138, 46, 0.35); border-radius: 2px; }
.note:hover { transform: rotate(0deg) translateY(-2px); }
.note.fresh { animation: noteIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes noteIn { from { transform: scale(0.6) rotate(-8deg); opacity: 0; } }
.note-gold { --bgc: #f6e3b8; }
.note-sage { --bgc: #dfe8cf; }
.note-rose { --bgc: #f3d9d4; }
.note-sky { --bgc: #d9e4ef; }
.sw-cream { --sw: #fbf6e9; } .sw-gold { --sw: #f6e3b8; } .sw-sage { --sw: #dfe8cf; } .sw-rose { --sw: #f3d9d4; } .sw-sky { --sw: #d9e4ef; }
.note-msg { margin: 0; font-size: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-by { margin: 12px 0 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.note-by b { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.note-by time { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.note-no { position: absolute; right: 12px; top: 10px; font-family: var(--pixel); font-size: 11px; color: rgba(42, 29, 26, 0.35); }
.gb-empty { color: var(--muted); font-style: italic; }
.gb-more { margin: 4px auto 0; display: flex; }

/* human-check box: only appears if Turnstile actually needs you to click */
.ts-box {
  position: fixed; left: 50%; bottom: 20px; z-index: 95; transform: translate(-50%, 150%);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 20px 40px -20px rgba(52, 0, 0, 0.5); transition: transform 0.3s;
}
.ts-box.show { transform: translate(-50%, 0); }
.ts-label { margin: 0 0 8px; font-family: var(--pixel); font-size: 13px; text-transform: uppercase; color: var(--muted); }

/* email dialog */
.email-dlg { max-width: min(440px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
.email-dlg::backdrop { background: rgba(26, 8, 6, 0.45); }
.email-addr { margin: 4px 0 16px; font-size: 22px; font-style: italic; overflow-wrap: anywhere; }
.email-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-px { width: 12px; height: 11px; fill: currentColor; }
.chip.is-busy { opacity: 0.55; }

/* =========================================================
   404, TOASTS, SECRETS, FOOTER
   ========================================================= */
.lost { max-width: 560px; margin: 0 auto; padding: 80px 0 20px; }
.dialog.big p { margin: 0; font-size: 26px; }
.dialog.big .small { margin-top: 6px; font-size: 17px; color: var(--muted); }
.choices { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.choices a { text-decoration: none; font-family: var(--pixel); font-size: 14px; padding-left: 22px; position: relative; }
.choices a::before { content: "▸"; position: absolute; left: 0; color: var(--gold); opacity: 0; }
.choices a:hover::before, .choices a:focus-visible::before, .choices li:first-child a::before { opacity: 1; }
.choices:hover li:first-child a:not(:hover)::before { opacity: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; pointer-events: none;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 280px; max-width: min(440px, calc(100vw - 32px));
  padding: 16px 22px 17px; border-radius: 6px;
  background: #1b1310; color: #fbf3e6; border: 3px solid var(--gold); box-shadow: 5px 5px 0 var(--ox), 0 18px 40px -14px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 160%); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.show { transform: translate(-50%, calc(-1 * var(--lift, 0px))); }
.toast b { font-family: var(--pixel); font-weight: 400; font-size: 17px; line-height: 1.2; color: #ffc93d; letter-spacing: 0.02em; }
.toast span { font-family: var(--pixel); font-size: 14px; line-height: 1.45; letter-spacing: 0.02em; }
.block { position: fixed; top: -30px; z-index: 80; pointer-events: none; animation: fall linear forwards; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 3px 3px 0 rgba(255, 255, 255, 0.18); }
@keyframes fall { to { transform: translateY(110vh) rotate(90deg); } }

.foot {
  max-width: var(--wide); margin: 0 auto; padding: 22px 16px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot-hp { display: flex; gap: 3px; }
.foot-hp svg { width: 14px; height: 12px; fill: var(--heart); }
.foot-right { display: flex; gap: 16px; align-items: center; }
.saved { font-size: 10px; letter-spacing: 0; }
.saved::before { content: "✓ "; color: var(--hp); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ox); }
@media (max-width: 520px) { .saved { display: none; } }

/* =========================================================
   GH LOGO EASTER EGGS
   ========================================================= */
/* common: the logo itself */
.fx-roll { animation: fxRoll 0.85s cubic-bezier(0.5, 0, 0.3, 1); }
@keyframes fxRoll { 60% { transform: rotate(380deg) scale(1.1); } to { transform: rotate(360deg); } }
.fx-spin { animation: fxSpin 0.8s ease-in-out; }
@keyframes fxSpin { 50% { transform: rotateY(180deg) scale(1.1); } to { transform: rotateY(360deg); } }
.fx-hop { animation: fxHop 0.65s cubic-bezier(0.3, 0, 0.3, 1); }
@keyframes fxHop { 15% { transform: scale(1.2, 0.8); } 45% { transform: translateY(-16px) scale(0.9, 1.1); } 75% { transform: scale(1.15, 0.85); } }
.fx-hit { animation: fxHit 0.55s steps(2); }
@keyframes fxHit { 0%, 40%, 80% { transform: translateX(-3px); filter: drop-shadow(0 0 0 #f00) brightness(1.6) sepia(1) hue-rotate(-40deg) saturate(6); } 20%, 60% { transform: translateX(3px); opacity: 0.4; } }
.fx-glitch { animation: fxGlitch 0.65s steps(1); }
@keyframes fxGlitch { 0% { transform: translate(2px, -1px) skewX(10deg); filter: drop-shadow(-3px 0 #3cf) drop-shadow(3px 0 #f36); } 25% { transform: translate(-3px, 1px); clip-path: inset(20% 0 40% 0); } 50% { transform: translate(1px, 2px) skewX(-8deg); filter: drop-shadow(3px 0 #3cf) drop-shadow(-3px 0 #f36); clip-path: none; } 75% { transform: translate(-1px, -2px); clip-path: inset(50% 0 10% 0); } }
.fx-grow { animation: fxGrow 0.9s steps(1); }
@keyframes fxGrow { 0% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.3); } 60% { transform: scale(1); } 75%, 99% { transform: scale(1.45); } }

/* floating pop-ups above the logo */
.pop-fx {
  position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, 0);
  font-family: var(--pixel); font-size: 17px; color: #ffc93d; text-shadow: 2px 2px 0 #3d2400, -1px -1px 0 #3d2400, 1px -1px 0 #3d2400, -1px 1px 0 #3d2400;
  animation: popUp 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes popUp { from { opacity: 0; transform: translate(-50%, 6px) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -18px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -46px); } }
.pop-fx.dmg { color: #ff6b6b; text-shadow: 2px 2px 0 #5a0d10; }
.pop-fx.heart-pop { color: var(--heart); font-size: 22px; text-shadow: 2px 2px 0 #3a0508; }
.pop-fx.alert { font-size: 26px; color: #ffcf33; animation-duration: 0.9s; }
.pop-fx.exp { color: #9fd36a; text-shadow: 2px 2px 0 #2c4a14; }
.pop-fx.spark { color: #ffe9a8; font-size: 20px; text-shadow: 0 0 8px #ffd34d; }
.pop-fx.spark.big { font-size: 28px; animation-name: sparkBurst; }
@keyframes sparkBurst { from { opacity: 1; transform: translate(-50%, 0) scale(0.4); } to { opacity: 0; transform: translate(calc(-50% + (var(--sx, 1) * 60px)), 60px) scale(1.4) rotate(90deg); } }
.pop-fx.dust { width: 40px; height: 6px; margin-top: 40px; background: radial-gradient(closest-side, rgba(243, 236, 226, 0.7), transparent); animation: dust 0.6s ease-out forwards; }
@keyframes dust { from { opacity: 1; transform: translate(-50%, 0) scaleX(0.4); } to { opacity: 0; transform: translate(-50%, 0) scaleX(1.8); } }

/* rare: whole-screen moments */
.fx-quake main, .fx-quake .top { animation: quake 0.6s steps(6); }
@keyframes quake { 0% { transform: translate(6px, -4px); } 20% { transform: translate(-8px, 3px); } 40% { transform: translate(5px, 5px); } 60% { transform: translate(-4px, -6px); } 80% { transform: translate(3px, 2px); } 100% { transform: none; } }
.big-text {
  position: fixed; left: 50%; top: 42%; z-index: 90; pointer-events: none; transform: translate(-50%, -50%);
  font-family: var(--pixel); font-size: clamp(28px, 7vw, 64px); color: #ffd34d; white-space: nowrap;
  text-shadow: 4px 4px 0 #5a0d10, -2px -2px 0 #340000;
  animation: bigText 1.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
@keyframes bigText { from { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { opacity: 1; } to { transform: translate(-50%, -60%); opacity: 0; } }
.big-text.combo { top: calc(30% + var(--n) * 9%); font-size: clamp(22px, 5vw, 44px); color: #9fe0ff; text-shadow: 3px 3px 0 #1d3a5c; animation-duration: 0.9s; }
html.fx-handheld { filter: grayscale(1) sepia(1) hue-rotate(40deg) saturate(1.6) contrast(1.15) brightness(0.92); transition: filter 0.3s steps(3); }
.fx-crt body::after {
  content: ""; position: fixed; inset: 0; z-index: 88; pointer-events: none;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35));
  animation: crtFlick 0.12s steps(2) infinite;
}
.fx-crt main { filter: drop-shadow(1.5px 0 rgba(255, 0, 60, 0.35)) drop-shadow(-1.5px 0 rgba(0, 160, 255, 0.35)); }
@keyframes crtFlick { 50% { opacity: 0.85; } }
.continue {
  position: fixed; inset: 0; z-index: 92; display: grid; place-content: center; text-align: center; cursor: pointer;
  background: rgba(10, 2, 2, 0.88); color: var(--cream); font-family: var(--pixel); animation: fadeIn 0.25s;
}
.continue p { margin: 0; font-size: clamp(26px, 6vw, 52px); }
.continue .cd { font-size: clamp(60px, 16vw, 140px); color: #ffd34d; }
.continue .small { font-size: 14px; opacity: 0.75; margin-top: 10px; }
.continue.out { opacity: 0; transition: opacity 0.35s; }
@keyframes fadeIn { from { opacity: 0; } }
.toast.rare { border-color: #9fe0ff; }
.toast.rare b { color: #9fe0ff; }
.toast.holo { border-image: linear-gradient(90deg, #ff6b6b, #ffd34d, #6bff9f, #6bc8ff, #c86bff) 1; }
.toast.shiny { border-color: #ffe9a8; box-shadow: 0 0 24px rgba(255, 211, 77, 0.6), 4px 4px 0 var(--ox); }
.toast.shiny b { color: #ffe9a8; }

/* ultra: the full-art trading card */
.card-stage {
  position: fixed; inset: 0; z-index: 94; display: grid; place-items: center; align-content: center; gap: 16px;
  background: rgba(14, 3, 2, 0.82); backdrop-filter: blur(3px); cursor: pointer;
  opacity: 0; transition: opacity 0.3s; perspective: 1000px;
}
.card-stage.in { opacity: 1; }
.card-stage.out { opacity: 0; }
.card-hint { margin: 0; font-family: var(--pixel); font-size: 13px; color: #e8dccf; text-transform: uppercase; }
.tcg {
  --px: 0.5; --py: 0.5; --rx: 0deg; --ry: 0deg;
  --foil-a: #ff8a8a; --foil-b: #ffe38a; --foil-c: #8affc1; --foil-d: #8ad3ff; --foil-e: #d68aff;
  position: relative; width: min(330px, 82vw); aspect-ratio: 63 / 88; border-radius: 16px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.08s linear;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: cardIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  background: linear-gradient(145deg, #e9c46a, #b8862b 40%, #f2d98b 60%, #a4741d);
  padding: 10px;
}
@keyframes cardIn { from { transform: translateY(40vh) rotateY(180deg) scale(0.6); } }
.tcg-inner {
  position: relative; height: 100%; border-radius: 9px; overflow: hidden;
  display: flex; flex-direction: column; background: #f8eed8; color: #2a1d1a; padding: 8px 10px 8px;
}
.tcg-top { display: flex; align-items: baseline; gap: 8px; }
.tcg-stage { font-family: var(--pixel); font-size: 8px; background: #2a1d1a; color: #f8eed8; padding: 2px 5px; border-radius: 3px; }
.tcg-name { flex: 1; font-size: 22px; font-style: italic; font-weight: 600; text-align: left; }
.tcg-hp { font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: #b3262c; }
.tcg-hp b { font-size: 20px; font-weight: 600; }
.tcg-art { margin-top: 6px; flex: 1 1 48%; min-height: 0; border: 3px solid #c9a24e; border-radius: 4px; overflow: hidden; background: var(--ox); }
.tcg-art img { width: 100%; height: 100%; object-fit: cover; }
.tcg-art img.mono { object-fit: contain; padding: 20%; }
.tcg-strip { margin: 5px 0 0; font-family: var(--sans); font-size: 10px; letter-spacing: 0.06em; text-align: center; background: linear-gradient(90deg, #d9b35c, #f2dc9a, #d9b35c); border-radius: 3px; padding: 2px; }
.tcg-moves { margin-top: 6px; }
.tcg-moves p { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.tcg-moves p b { flex: 1; text-align: left; }
.tcg-moves .cost { font-size: 11px; color: #b3262c; letter-spacing: -1px; }
.tcg-moves .dmg-n { font-family: var(--sans); font-size: 18px; font-weight: 600; }
.tcg-moves .move-note { display: block; font-size: 11px; font-style: italic; color: #6a5a52; margin: 0 0 5px 22px; text-align: left; }
.tcg-flavor { margin: auto 0 0; padding-top: 5px; border-top: 1px solid #d9c9a4; font-size: 10px; font-style: italic; color: #6a5a52; text-align: left; }
.tcg-foot { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--pixel); font-size: 7px; color: #6a5a52; }
/* holographic foil + glare follow the pointer */
.tcg-foil, .tcg-glare { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; }
.tcg-foil {
  background:
    repeating-linear-gradient(115deg, var(--foil-a) 0%, var(--foil-b) 7%, var(--foil-c) 14%, var(--foil-d) 21%, var(--foil-e) 28%, var(--foil-a) 35%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 6px);
  background-size: 300% 300%, 100% 100%;
  background-position: calc(var(--px) * 100%) calc(var(--py) * 100%), 0 0;
  mix-blend-mode: color-dodge; opacity: 0.38;
  filter: brightness(0.8) contrast(1.4);
}
.tcg-glare { background: radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), rgba(255, 255, 255, 0.55), transparent 45%); mix-blend-mode: overlay; }
/* shiny variant */
.card-stage.is-shiny .tcg { background: linear-gradient(145deg, #dfe8f5, #8fa6c8 40%, #f5f8ff 60%, #6f86b0); --foil-a: #fff4b8; --foil-b: #ffd34d; --foil-c: #fff; --foil-d: #ffe38a; --foil-e: #ffb84d; }
.card-stage.is-shiny .tcg-foil { opacity: 0.55; }
.card-stage.is-shiny .tcg-inner { background: #f4f1e6; }
.card-stage.is-shiny .tcg-art img { filter: hue-rotate(-20deg) saturate(1.25) contrast(1.05); }

/* the 1-in-8,192 shiny palette */
html.shiny {
  --ox: #10284a; --ox-2: #1d3f6e; --gold: #e8c35a; --gold-2: #b8912a; --heart: #d9a11b; --bg: #f1eee6;
}
html.shiny .brand-mark img { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.2) drop-shadow(0 0 6px rgba(255, 211, 77, 0.8)); }
html.shiny-found .foot-hp::after { content: "✦"; margin-left: 6px; color: var(--gold); font-size: 12px; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .fx-roll, .fx-spin, .fx-hop, .fx-hit, .fx-glitch, .fx-grow, .fx-quake main, .tcg { animation: none !important; }
}
.avatar-lg { width: 112px; height: 112px; }

/* custom full-card image (site.json "holoCard") */
.tcg.tcg-image {
  padding: 0; background: none; overflow: hidden;
  width: min(360px, 84vw, calc(78vh * 2 / 3)); aspect-ratio: 2 / 3; border-radius: 18px;
}
.tcg-full { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.tcg-image .tcg-foil, .tcg-image .tcg-glare { border-radius: inherit; }
.tcg-image .tcg-foil { opacity: 0.22; }
.card-stage.is-shiny .tcg-image .tcg-full { filter: hue-rotate(160deg) saturate(1.2) brightness(1.05); }
/* GPU foil (Shaders library). Fades in over the card once the first frame is drawn;
   until then, or if it never loads, the CSS foil above is what you see. */
.tcg-gl {
  position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important;
  border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s ease-out;
}
.tcg.gl-on .tcg-gl { opacity: 1; }
.tcg-image .tcg-glare { z-index: 1; }
/* 404 wild-encounter transition (GPU canvas over the whole screen) */
.encounter-gl {
  position: fixed; inset: 0; z-index: 99; width: 100vw !important; height: 100vh !important;
  cursor: pointer; transition: opacity 0.3s;
}
.encounter-gl.out { opacity: 0; pointer-events: none; }
.lost.appeared .dialog { animation: wildIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes wildIn { from { transform: translateX(-28px); opacity: 0.2; } }
.tcg.gl-on .tcg-foil { opacity: 0; transition: opacity 0.35s; }
.card-stage.is-shiny .tcg-gl { filter: hue-rotate(160deg) saturate(1.2) brightness(1.05); }
.card-stage.is-shiny .tcg-image .tcg-foil { opacity: 0.4; }
.shiny-sig {
  position: absolute; left: 47%; top: 43%; width: 38%; height: auto; z-index: 2;
  transform: rotate(-10deg); transform-origin: center; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 1px #2a1600) drop-shadow(0 0 1px #2a1600) drop-shadow(0 1px 3px rgba(20, 10, 0, 0.6)) drop-shadow(0 0 7px rgba(255, 211, 77, 0.55));
  animation: sig-in 0.9s 0.35s ease-out forwards;
}
@keyframes sig-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .shiny-sig { animation: none; opacity: 1; } }
@media (max-width: 860px) {
  .party li { gap: 5px; padding: 8px 8px 9px 6px; }
  .p-sprite { width: 38px; height: 38px; margin: -4px -2px -4px -2px; }
  .p-name { font-size: 14px; }
  .type { width: 15px; height: 15px; }
  .type .px { width: 10px; height: 10px; }
  .p-lv { font-size: 9px; }
}

/* ---------- Toothless, asleep on the profile card ---------- */
.profile.has-cat { position: relative; }
.toothless {
  position: absolute; top: 8px; right: 14px; z-index: 2;
  width: 72px; height: 72px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.toothless:focus-visible { outline-offset: 0; }
.cat-svg { display: block; width: 100%; height: 100%; overflow: visible; image-rendering: pixelated; transform-origin: 50% 100%; }
.cat-svg .f { display: none; }
.toothless[data-pose="sleep"] .f-sleep, .toothless[data-pose="sit"] .f-sit, .toothless[data-pose="blink"] .f-blink,
.toothless[data-pose="happy"] .f-happy, .toothless[data-pose="wave"] .f-wave, .toothless[data-pose="mad"] .f-mad { display: inline; }
.cat-hat { display: none; }
.toothless.hatted .cat-hat { display: inline; }
/* he breathes while he sleeps */
.toothless[data-pose="sleep"] .cat-svg { animation: cat-breathe 2.6s ease-in-out infinite; }
@keyframes cat-breathe { 50% { transform: scale(1.025, 0.965); } }
.toothless.twitch .cat-svg { animation: cat-twitch 0.35s steps(2); }
@keyframes cat-twitch { 50% { transform: translateX(1px) rotate(-2deg); } }
.toothless.jingle .cat-svg { animation: cat-jingle 0.45s steps(3); }
@keyframes cat-jingle { 33% { transform: rotate(-3deg); } 66% { transform: rotate(3deg); } }
.toothless.hop .cat-svg { animation: cat-hop 0.4s ease-out; }
@keyframes cat-hop { 40% { transform: translateY(-6px); } }
.toothless.shake .cat-svg { animation: cat-shake 0.5s steps(6); }
@keyframes cat-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* speech bubble, pops out to the cat's left */
.cat-bubble {
  position: absolute; right: calc(100% - 6px); top: 4px;
  white-space: nowrap; pointer-events: none;
  font-family: var(--pixel); font-size: 11px; line-height: 1; color: var(--ox);
  background: #f0e2c4; border: 2px solid var(--ox); border-radius: 4px; box-shadow: 2px 2px 0 var(--ox);
  padding: 5px 7px;
  opacity: 0; transform: translateY(4px) scale(0.9); transform-origin: right bottom;
  transition: opacity 0.15s, transform 0.15s steps(2);
}
.cat-bubble::after { content: ""; position: absolute; right: -6px; bottom: 5px; width: 6px; height: 6px; background: var(--ox); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.toothless.talking .cat-bubble { opacity: 1; transform: none; }
.toothless[data-pose="mad"] .cat-bubble { background: var(--heart); color: #fff4d6; }

/* z's, hearts, and bell notes drift up out of him */
.cat-float {
  position: absolute; top: 30%; pointer-events: none;
  font-family: var(--pixel); font-size: 12px; line-height: 1;
  animation: cat-float 1.5s ease-out forwards;
}
.cat-float.cat-z { color: var(--ox-2); font-size: 14px; left: 20% !important; top: 34%; }
.cat-float.cat-heart { color: var(--heart); font-size: 14px; }
.cat-float.cat-note { color: var(--gold-2); left: 32% !important; top: 58%; }
@keyframes cat-float { from { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-10px, -26px); } }

/* the mug he knocks off the table */
.cat-mug { position: fixed; z-index: 85; width: 28px; height: 24px; pointer-events: none; animation: cat-mug 1.4s cubic-bezier(0.5, 0, 0.9, 0.6) forwards; }
.cat-mug svg { width: 100%; height: 100%; display: block; }
@keyframes cat-mug { 12% { transform: translate(-8px, -10px) rotate(-20deg); } to { transform: translate(-40px, 110vh) rotate(-300deg); } }

@media (prefers-reduced-motion: reduce) {
  .toothless .cat-svg { animation: none !important; }
  .cat-bubble { transition: none; }
}

/* ---------- EXP bar, beside the avatar ---------- */
.profile-head { display: flex; align-items: flex-end; gap: 42px; }
.profile-head .profile-top { flex: none; }
.xp { flex: 1; min-width: 0; margin-bottom: 2px; }
.xp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.xp-label { font-family: var(--pixel); font-size: 10px; letter-spacing: 0.08em; color: var(--gold-2); }
.xp-note { font-family: var(--pixel); font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-bar {
  height: 10px; background: #f0e2c4; border: 2px solid var(--ox); border-radius: 3px; box-shadow: 2px 2px 0 var(--ox); overflow: hidden;
}
.xp-bar i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, #d9a441 6px 8px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.35s steps(6);
}
.xp.xp-up .xp-bar { animation: xp-up 0.8s steps(4); }
@keyframes xp-up { 25%, 75% { box-shadow: 2px 2px 0 var(--ox), 0 0 0 3px #ffe9a8; } 50% { box-shadow: 2px 2px 0 var(--ox), 0 0 0 5px #ffc93d; } }
@media (max-width: 380px) { .profile-head { gap: 38px; } .xp-note { font-size: 8px; } }

/* =========================================================
   Seasonal + holiday themes (settings in themes.js)
   ========================================================= */
.season-strip { max-width: var(--wide); margin: 8px auto 0; padding: 0 16px; }
.season-strip + .foot { border-top: 0; } /* the banner already separates the page from the footer */

/* bunting flags, or blinking lights in winter */
.bunting { display: flex; justify-content: space-between; height: 18px; border-top: 2px solid var(--ox-2); overflow: hidden; }
.bunting i { flex: none; width: 16px; height: 16px; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: flag 1.6s ease-in-out infinite alternate; transform-origin: 50% 0; }
.bunting i:nth-child(odd) { animation-delay: -0.8s; }
@keyframes flag { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.lights { display: flex; justify-content: space-between; height: 20px; padding: 0 6px; background: linear-gradient(#2d4a22, #2d4a22) 0 3px / 100% 2px no-repeat; }
.lights i { flex: none; width: 8px; height: 12px; margin-top: 4px; border-radius: 2px 2px 5px 5px; background: var(--c); box-shadow: 0 0 8px var(--c); animation: bulb 1.8s steps(1) infinite; }
.lights i:nth-child(even) { margin-top: 5px; }
@keyframes bulb { 50% { opacity: 0.35; box-shadow: none; } }

/* the little scene standing on the ground above the banner */
.scene {
  position: relative; height: 104px; margin-top: 6px;
  background: linear-gradient(transparent calc(100% - 12px), var(--ground) 0);
  border-radius: 0 0 6px 6px;
}
.scene::after { /* grass tufts / texture on the ground line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ground) 0 4px, transparent 4px 9px); opacity: 0.8;
}
.season-strip.snowy .scene { background: linear-gradient(transparent calc(100% - 12px), var(--ground) 0); }
.season-strip.snowy .scene::after { height: 5px; bottom: 10px; background: radial-gradient(circle at 6px 6px, var(--ground) 5px, transparent 5.5px) 0 0 / 12px 6px repeat-x; opacity: 1; }
.season-strip.waves .scene::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 10px; z-index: 0;
  background:
    radial-gradient(circle at 8px 10px, #3fa9d6 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x,
    linear-gradient(transparent 60%, #3fa9d6 0);
  opacity: 0.55; animation: waves 3s linear infinite;
}
@keyframes waves { to { background-position: 16px 0, 0 0; } }
.season-strip.dark .scene {
  background:
    radial-gradient(circle at 88% 26%, #f3e7c4 11px, transparent 12px),
    linear-gradient(#2a1d2e, #3d2a44 calc(100% - 12px), var(--ground) 0);
  border-radius: 8px 8px 6px 6px;
}
.scene-item {
  position: absolute; bottom: 10px; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%; transform: scale(var(--g, 1)); transition: transform 0.25s steps(3);
  -webkit-tap-highlight-color: transparent;
}
.scene-item .spr { display: block; line-height: 0; transform-origin: 50% 100%; }
.scene-item svg { display: block; image-rendering: pixelated; }
.scene-item:focus-visible { outline-offset: 2px; }
.scene-item.hop .spr { animation: sc-hop 0.42s ease-out; }
@keyframes sc-hop { 40% { transform: translateY(-10px); } }
.idle-sway .spr { animation: sc-sway 2.4s ease-in-out infinite alternate; }
@keyframes sc-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.idle-float .spr { animation: sc-float 2.2s ease-in-out infinite alternate; }
@keyframes sc-float { to { transform: translateY(-7px); } }
.idle-bob .spr { animation: sc-float 1.6s steps(2) infinite alternate; }
.idle-spin .spr { animation: sc-spin 12s linear infinite; transform-origin: 50% 50%; }
@keyframes sc-spin { to { transform: rotate(1turn); } }
.idle-flicker .spr { animation: sc-flicker 1.4s steps(2) infinite; }
@keyframes sc-flicker { 50% { filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 201, 61, 0.8)); } }
.scene-item.sledding { animation: sled 3.2s cubic-bezier(0.4, 0, 0.7, 1); }
@keyframes sled { 45% { transform: translateX(40vw); opacity: 1; } 46% { opacity: 0; } 47% { transform: translateX(-60vw); opacity: 0; } 48% { opacity: 1; } to { transform: translateX(0); } }
.scene-item.launching .spr { animation: rocket 2.4s ease-in forwards; }
@keyframes rocket { 5% { transform: translateY(2px); } 40% { transform: translateY(-60vh); opacity: 1; } 41% { opacity: 0; transform: translateY(-60vh); } 80% { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
.scene-item .say {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); z-index: 3;
  white-space: nowrap; pointer-events: none; opacity: 0;
  font-family: var(--pixel); font-size: 11px; line-height: 1; color: var(--ox);
  background: #f0e2c4; border: 2px solid var(--ox); border-radius: 4px; box-shadow: 2px 2px 0 var(--ox); padding: 5px 7px;
  transition: opacity 0.15s, transform 0.15s steps(2);
}
.scene-item.talking .say { opacity: 1; transform: translate(-50%, 0); }
.scene-item:first-child .say { left: 0; transform: translate(0, 4px); }
.scene-item:first-child.talking .say { transform: none; }
.scene-item:last-child .say { left: auto; right: 0; transform: translate(0, 4px); }
.scene-item:last-child.talking .say { transform: none; }

.season-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 14px 18px; background: var(--ox); color: var(--cream); border-radius: var(--r);
}
.season-text { margin: 0; font-family: var(--pixel); font-size: 14px; line-height: 1.4; color: #ffc93d; }
.season-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.season-inner .chip { background: transparent; color: var(--cream); border-color: rgba(243, 236, 226, 0.5); cursor: pointer; text-decoration: none; font: inherit; font-family: var(--sans); }
.season-inner .chip:hover { border-color: #ffc93d; color: #ffc93d; }
.season-inner .fx-toggle { opacity: 0.75; }
@media (max-width: 640px) {
  .scene-item.wide { display: none; }
  .scene { height: 74px; display: flex; justify-content: space-evenly; align-items: flex-end; padding: 0 4px 10px; }
  .scene-item { position: relative; left: auto !important; bottom: 0; }
  .scene-item[style*="bottom"] { bottom: 26px; }
  .scene-item svg { width: auto; height: auto; max-height: 46px; max-width: 58px; }
}

/* falling / flying / glowing bits */
.fx-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.fx-back { z-index: -1; } /* behind every card and all the text; shows only on the bare page background */
.fx { position: absolute; line-height: 0; pointer-events: none; }
/* reading pages: ambient effects live in this band just above the theme banner */
.fx-zone { position: relative; height: 130px; overflow: hidden; pointer-events: none; transition: height 0.4s ease; }
.fx-zone.off { height: 0; }
@media (max-width: 600px) { .fx-zone { height: 100px; } .fx-zone.off { height: 0; } }
.fx svg { display: block; image-rendering: pixelated; }
.fx-fall { top: -30px; animation: fx-fall linear forwards; }
@keyframes fx-fall {
  from { opacity: 0; }
  8% { opacity: 1; }
  25% { transform: translate(calc(var(--sway) * 0.5), calc(var(--dist, 108vh) * 0.25)) rotate(calc(var(--spin) * 0.25)); }
  50% { transform: translate(calc(var(--sway) * -0.3), calc(var(--dist, 108vh) * 0.5)) rotate(calc(var(--spin) * 0.5)); }
  70% { opacity: 1; }
  75% { transform: translate(calc(var(--sway) * 0.4), calc(var(--dist, 108vh) * 0.75)) rotate(calc(var(--spin) * 0.75)); }
  to { transform: translate(var(--sway), var(--dist, 108vh)) rotate(var(--spin)); opacity: 0; }
}
.fx-fly { left: 0; animation: fx-fly linear forwards; }
.fx-fly svg { transform: scaleX(var(--flip, 1)); animation: fx-bob 0.5s steps(2) infinite alternate; }
@keyframes fx-fly { from { transform: translateX(var(--from)); opacity: 1; } 75% { opacity: 1; } to { transform: translateX(var(--to)); opacity: 0; } }
@keyframes fx-bob { to { translate: 0 -5px; } }
.fx-glow { animation: fx-glow ease-in-out forwards; filter: drop-shadow(0 0 5px #ffe066) drop-shadow(0 0 10px #ffc93d); }
@keyframes fx-glow { from { opacity: 0; transform: translate(0, 0); } 30%, 70% { opacity: 1; } to { opacity: 0; transform: translate(30px, -40px); } }
.fx-burst { position: fixed; }
.fx-spark { position: fixed; width: 5px; height: 5px; box-shadow: 0 0 6px currentColor; }

/* confetti (birthday) */
.confetti { position: fixed; top: -16px; z-index: 80; pointer-events: none; animation: confetti linear forwards; }
@keyframes confetti {
  25% { transform: translate(calc(var(--sway) * 0.4), 25vh) rotate(calc(var(--spin) * 0.25)); }
  50% { transform: translate(calc(var(--sway) * -0.3), 52vh) rotate(calc(var(--spin) * 0.5)); }
  to { transform: translate(var(--sway), 108vh) rotate(var(--spin)); }
}

/* Easter egg hunt */
.hunt-egg { position: absolute; z-index: 40; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; animation: egg-wobble 2.6s ease-in-out infinite; }
.hunt-egg svg { image-rendering: pixelated; }
@keyframes egg-wobble { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-5deg); } }

/* Halloween "trick" */
html.spooked body { animation: spooked 1.3s steps(2); }
@keyframes spooked { 0%, 30%, 60% { filter: brightness(0.35) hue-rotate(250deg); } 15%, 45%, 100% { filter: none; } }

/* recolors from the theme (ring around the avatar, LV badge, EXP bar) */
.th-ring .profile .profile-top { isolation: isolate; }
.th-ring .profile .profile-top::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 102px; height: 102px; border-radius: 50%; z-index: -1;
  background: var(--th-ring);
}
.th-spin .profile .profile-top::before { animation: th-spin 6s linear infinite; }
@keyframes th-spin { to { transform: rotate(1turn); } }
.th-ring .profile .avatar { box-shadow: 0 0 0 3px var(--card); }
.th-lv .lv { background: var(--th-lv); }
.theme-birthday .lv { box-shadow: 2px 2px 0 var(--ox), 0 0 10px rgba(255, 201, 61, 0.8); }
.th-xp .xp-bar i { background: var(--th-xp); }

@media (prefers-reduced-motion: reduce) {
  .bunting i, .lights i, .th-spin .profile .profile-top::before, .season-strip.waves .scene::before,
  .scene-item .spr, .hunt-egg, .scene-item { animation: none !important; }
  .xp-bar i, .scene-item { transition: none; }
}

/* ---------- search palette ---------- */
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  background: none; color: var(--cream); border: 1px solid rgba(243, 236, 226, 0.35); border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.search-btn:hover, .search-btn:focus-visible { border-color: var(--gold); color: #fff; }
@media (max-width: 420px) { .search-btn { width: 36px; height: 36px; } }

.palette {
  width: min(620px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 120px));
  margin: 12vh auto auto; padding: 0; border: 0; background: none; overflow: visible; color: var(--ink);
}
.palette::backdrop { background: rgba(26, 6, 4, 0.55); backdrop-filter: blur(2px); }
.palette[open] .pal-box { animation: palIn 0.18s steps(3); }
@keyframes palIn { from { transform: translateY(-10px); opacity: 0; } }
.pal-box {
  display: flex; flex-direction: column; max-height: inherit;
  background: var(--card); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 5px var(--line-2), 6px 6px 0 var(--ox);
}
.pal-field { display: block; padding: 14px 16px 10px; border-bottom: 2px dashed var(--line-2); }
.pal-input {
  width: 100%; border: 0; outline: 0; background: none; color: var(--ink);
  font-family: var(--serif); font-size: 20px; padding: 4px 2px;
}
.pal-input::placeholder { color: var(--muted); font-style: italic; }
.pal-input::-webkit-search-cancel-button { display: none; }
.pal-results { list-style: none; margin: 0; padding: 6px 8px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.pal-head { font-family: var(--pixel); font-size: 9px; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px 30px; }
.pal-note { padding: 18px 12px 18px 30px; color: var(--muted); font-style: italic; }
.pal-note span { display: block; font-family: var(--pixel); font-style: normal; font-size: 10px; margin-top: 6px; }
.pal-results [role=option] a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px;
  padding: 8px 10px 8px 30px; border-radius: 4px; text-decoration: none; color: inherit;
}
.pal-results [aria-selected=true] a { background: color-mix(in srgb, var(--gold) 16%, transparent); }
/* the RPG menu cursor */
.pal-results [aria-selected=true] a::before {
  content: ""; position: absolute; left: 10px; top: 13px; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--ox);
  animation: palCursor 0.7s steps(2) infinite;
}
@keyframes palCursor { 50% { transform: translateX(3px); } }
.pal-kind {
  font-family: var(--pixel); font-size: 8px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  background: var(--ox); color: var(--cream); padding: 3px 5px 2px; border-radius: 3px; align-self: center;
}
.pal-kind.k-review { background: var(--gold-2); }
.pal-kind.k-album { background: #4f6f8f; }
.pal-kind.k-prompt { background: #6b4a7a; }
.pal-kind.k-page { background: none; color: var(--muted); border: 1px solid var(--line-2); }
.pal-main { min-width: 0; }
.pal-main b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.pal-main small {
  display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pal-results time { font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.pal-results mark { background: color-mix(in srgb, var(--gold) 38%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.pal-foot {
  display: flex; gap: 16px; justify-content: flex-end; margin: 0; padding: 8px 14px 10px;
  border-top: 2px dashed var(--line-2); font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}
.pal-foot kbd {
  font-family: var(--pixel); font-size: 8px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 3px; padding: 2px 4px; margin-right: 3px; background: var(--bg);
}
@media (max-width: 560px) {
  .palette { margin-top: 70px; }
  .pal-results time { display: none; }
  .pal-foot { display: none; }
}
@media (hover: none) { .pal-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .palette[open] .pal-box, .pal-results [aria-selected=true] a::before { animation: none; } }

/* ---------- photo viewer polish ---------- */
.lb-tools { position: fixed; top: 16px; right: 16px; z-index: 2; display: flex; gap: 8px; }
.lb-tools .lb-close { position: static; }
.lb-share {
  background: none; color: var(--cream); border: 1px solid #6b4a44; border-radius: 999px; cursor: pointer;
  font: 500 12px var(--sans); text-transform: uppercase; letter-spacing: 0.12em; padding: 8px 14px;
}
.lb-share:hover { border-color: var(--cream); }
.lightbox img { transition: opacity 0.22s ease-out; }
.lightbox.lb-loading img { opacity: 0.25; transition-duration: 0.08s; }

/* ---------- guest book loading ---------- */
.note-skel { min-height: 120px; pointer-events: none; }
.note-skel::before { opacity: 0.5; }
.note-skel i {
  display: block; height: 11px; margin: 0 0 10px; border-radius: 3px; width: 92%;
  background: linear-gradient(90deg, #eadfcb 25%, #f6efe2 50%, #eadfcb 75%); background-size: 200% 100%;
  animation: skel 1.3s linear infinite;
}
.note-skel i:nth-child(2) { width: 70%; }
.note-skel i:nth-child(3) { width: 38%; margin-top: 22px; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .note-skel i { animation: none; } }
.gb-retry { margin: 0 0 16px; }

/* Bigger targets: each side is a full-height strip, and the arrow sits in a visible circle */
.lightbox[open] { grid-template-columns: clamp(64px, 14vw, 180px) 1fr clamp(64px, 14vw, 180px); }
.lb-nav { width: 100%; height: 100%; opacity: 1; display: grid; place-items: center; font-size: 0; }
.lb-nav span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-size: 40px; line-height: 1; padding-bottom: 4px;
  background: rgba(243, 236, 226, 0.12); border: 1px solid rgba(243, 236, 226, 0.3);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.lb-nav:hover span, .lb-nav:focus-visible span { background: rgba(243, 236, 226, 0.26); border-color: var(--cream); transform: scale(1.08); }
.lb-nav:active span { transform: scale(0.96); }
.lightbox figure { align-self: stretch; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
.lightbox figure[data-side="prev"] { cursor: w-resize; }
.lightbox figure[data-side="next"] { cursor: e-resize; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lb-nav span { width: 38px; height: 38px; font-size: 30px; }
}

/* ---------- gallery (PhotoSwipe) themed for GunnHaus ---------- */
.pswp {
  --pswp-bg: #000; --pswp-placeholder-bg: #160b09;
  --pswp-icon-color: #f3ece2; --pswp-icon-color-secondary: #1a0d0b;
  --pswp-icon-stroke-color: #1a0d0b; --pswp-icon-stroke-width: 2px;
  --pswp-preloader-color: rgba(192, 138, 46, 0.25); --pswp-preloader-color-secondary: #c08a2e;
}
.pswp__top-bar { padding-top: env(safe-area-inset-top); background: linear-gradient(rgba(0, 0, 0, 0.5), transparent); }
.pswp__counter { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; opacity: 0.9; margin-left: 18px; text-shadow: none; }
.pswp__button--share { position: relative; }
.pswp__button--share.copied .pswp__icn { fill: #c08a2e; }
.gh-copied {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; z-index: 20; pointer-events: none;
  transform: translate(-50%, -12px); opacity: 0; transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-width: calc(100vw - 32px); padding: 8px 16px 9px; border-radius: 999px;
  background: #f3ece2; color: #1a0d0b; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font: 500 13px var(--sans); letter-spacing: 0.06em; white-space: nowrap;
}
.gh-copied span { color: #2f7a35; font-weight: 700; margin-right: 4px; }
.pswp .gh-copied:not(.show) { opacity: 0; visibility: hidden; }  /* PhotoSwipe's "controls visible" rule must not reveal it */
.pswp .gh-copied.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gh-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; pointer-events: none;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); color: #f3ece2; text-align: center;
}
.gh-info > * { pointer-events: auto; }
.gh-cap { max-width: 680px; margin: 0 auto 10px; }
.gh-info.no-cap .gh-cap { display: none; }
.gh-cap-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.4; }
.gh-cap-text:empty { display: none; }
.gh-cap-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; font: 500 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #b9aa9d; }
.gh-cap-album { color: #e6b877; text-decoration: none; }
.gh-cap-album:hover { text-decoration: underline; }
.gh-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; margin: 0 auto; max-width: min(100%, 900px);
  justify-content: safe center; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gh-strip::-webkit-scrollbar { display: none; }
.gh-strip button {
  flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: #222; opacity: 0.5; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gh-strip button:hover { opacity: 0.85; }
.gh-strip button[aria-selected="true"] { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 2px #c08a2e; }
.gh-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* phones: controls float over an edge-to-edge photo, on a soft fade so they stay readable */
@media (max-width: 700px), (hover: none) {
  .gh-info { background: linear-gradient(transparent, rgba(0, 0, 0, 0.72) 40%); padding-top: 40px; }
  .gh-strip button { width: 44px; height: 44px; }
  .gh-strip button[aria-selected="true"] { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .gh-strip button { transition: none; } }
/* desktop arrows: the same big circles as the simple viewer
   (.pswp prefix: PhotoSwipe's own stylesheet loads after ours) */
.pswp .pswp__button--arrow .pswp__icn {
  width: 56px; height: 56px; padding: 12px; margin-top: -28px; border-radius: 50%;
  background: rgba(243, 236, 226, 0.12); box-shadow: inset 0 0 0 1px rgba(243, 236, 226, 0.3);
  transition: background 0.15s, transform 0.15s;
}
.pswp .pswp__button--arrow--prev .pswp__icn { left: 18px; }
.pswp .pswp__button--arrow--next .pswp__icn { right: 18px; }
.pswp .pswp__button--arrow:hover .pswp__icn { background: rgba(243, 236, 226, 0.26); }
.pswp .pswp__button--arrow--prev:hover .pswp__icn { transform: scale(1.08); }
.pswp .pswp__button--arrow--next:hover .pswp__icn { transform: scale(-1.08, 1.08); }

/* ---------- reactions ---------- */
.reacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; min-height: 40px; }
.reacts.is-loading { opacity: 0.55; }
.rx {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px 0 9px;
  background: var(--card); color: var(--ink); border: 2px solid var(--line-2); border-radius: 999px; cursor: pointer;
  font: 600 14px var(--sans); letter-spacing: 0.04em; line-height: 1;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rx:has(.rx-n:empty) { padding: 0 9px; }
.rx-n:empty { display: none; }
.rx svg { display: block; width: 22px; height: 22px; }
.rx:hover { border-color: var(--gold); transform: translateY(-1px); }
.rx:active { transform: translateY(1px); }
.rx[aria-pressed="true"] {
  border-color: var(--gold); background: color-mix(in srgb, var(--gold) 20%, var(--card));
  box-shadow: 2px 2px 0 var(--ox);
}
.rx.pop svg { animation: rxHop 0.5s steps(5); }
@keyframes rxHop { 30% { transform: translateY(-7px) scale(1.25); } 65% { transform: translateY(1px) scale(0.92); } }
.album-reacts { margin: 36px 0 0; text-align: center; }
.album-reacts-label { margin: 0; font-family: var(--pixel); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.album-reacts .reacts { justify-content: center; margin-top: 10px; }
/* inside the photo gallery */
.gh-reacts { justify-content: center; gap: 6px; margin: 0 0 10px; min-height: 36px; }
.gh-reacts .rx { height: 36px; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #f3ece2; box-shadow: none; }
.gh-reacts .rx:hover { border-color: #c08a2e; }
.gh-reacts .rx[aria-pressed="true"] { background: rgba(192, 138, 46, 0.32); border-color: #c08a2e; box-shadow: none; }
.gh-reacts .rx svg { width: 20px; height: 20px; }
/* in the gallery, toasts drop in from the top so they never cover the reactions */
html:has(.pswp) .toast { z-index: 100001; bottom: auto; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -400%); }
html:has(.pswp) .toast.show { transform: translate(-50%, var(--lift, 0px)); }
@media (max-width: 420px) {
  .rx { height: 38px; padding: 0 11px 0 8px; gap: 5px; }
  .gh-reacts .rx { height: 34px; padding: 0 9px 0 7px; }
  .gh-reacts .rx:has(.rx-n:empty) { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { .rx, .rx.pop svg { transition: none; animation: none; } }

/* ---------- comments ---------- */
.comments { margin: 44px 0 0; padding-top: 28px; border-top: 2px dashed var(--line-2); scroll-margin-top: 90px; }
.cm-title { margin: 0 0 16px; font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.cm-count { color: var(--muted); font-weight: 400; }
.comments.is-loading .cm-list { opacity: 0.5; }
.cm-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.cm {
  --bgc: #fbf6e9;
  background: var(--bgc); border: 1px solid var(--line); border-left: 5px solid color-mix(in srgb, var(--bgc) 55%, var(--gold));
  border-radius: 4px 8px 8px 4px; padding: 12px 16px 13px;
}
.cm-gold { --bgc: #f6e3b8; } .cm-sage { --bgc: #dfe8cf; } .cm-rose { --bgc: #f3d9d4; } .cm-sky { --bgc: #d9e4ef; }
.cm-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
.cm-by b { font-family: var(--sans); font-weight: 500; letter-spacing: 0.04em; }
.cm-by time { font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.cm-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.cm.is-pending { opacity: 0.68; border-style: dashed; border-left-style: solid; }
.cm-wait { margin: 8px 0 0; font-family: var(--pixel); font-size: 9px; text-transform: uppercase; color: var(--muted); }
.cm-empty { margin: 0 0 18px; color: var(--muted); font-style: italic; }
.cm-form { padding: 18px 20px; display: grid; gap: 14px; }
.cm-form .card-label { margin: 0; font-size: 13px; }
.cm-chars { position: absolute; right: 10px; bottom: 8px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cm-status { margin: 0; font-size: 14px; color: var(--muted); }
.cm-status:empty { display: none; }
.cm-fine { margin: 0; font-size: 13px; color: var(--muted); }
.album-reacts + .comments { max-width: 680px; margin-left: auto; margin-right: auto; }
