/* ============================================================
   ANGRIEST — the angriest site on the internet
   retro CRT / pixel-terminal theme, fire edition
   ============================================================ */

:root {
  --bg: #120608;
  --bg-panel: #1a0a0e;
  --bg-panel-2: #200c10;
  --red: #ff3b30;
  --red-hot: #ff1a1a;
  --orange: #ff9500;
  --yellow: #ffe14d;
  --amber: #ffc766;
  --cream: #f5e9d6;
  --green: #39ff6a;
  --border-glow-red: 0 0 8px rgba(255, 59, 48, .55), 0 0 22px rgba(255, 59, 48, .25);
  --border-glow-orange: 0 0 8px rgba(255, 149, 0, .55), 0 0 22px rgba(255, 149, 0, .25);
  --font-pixel: 'Press Start 2P', monospace;
  --font-term: 'VT323', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255, 59, 48, .12), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(255, 149, 0, .07), transparent 50%);
  color: var(--cream);
  font-family: var(--font-term);
  font-size: 21px;
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: 54px; /* room for ticker */
}

/* ============ CRT OVERLAYS ============ */
.crt-scanlines {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,.14) 3px, rgba(0,0,0,.14) 4px
  );
  mix-blend-mode: multiply;
}
.crt-vignette {
  position: fixed; inset: 0; z-index: 9001; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.42) 100%);
}
#rage-flash {
  position: fixed; inset: 0; z-index: 9500; pointer-events: none;
  background: var(--red-hot); opacity: 0;
}
#rage-flash.flash { animation: rageflash .35s ease-out; }
@keyframes rageflash {
  0% { opacity: .55; } 100% { opacity: 0; }
}
#emoji-rain { position: fixed; inset: 0; z-index: 9400; pointer-events: none; overflow: hidden; }
.rain-emoji {
  position: absolute; top: -60px;
  animation: emojifall linear forwards;
  will-change: transform;
}
@keyframes emojifall {
  to { transform: translateY(115vh) rotate(360deg); }
}

/* screen shake */
body.shaking #page { animation: screenshake .4s linear; }
@keyframes screenshake {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-6px, 3px) rotate(-.4deg); }
  25% { transform: translate(5px, -4px) rotate(.4deg); }
  40% { transform: translate(-5px, -3px); }
  55% { transform: translate(6px, 4px) rotate(.3deg); }
  70% { transform: translate(-4px, 2px); }
  85% { transform: translate(3px, -2px) rotate(-.3deg); }
}
body.shaking-hard #page { animation: screenshake .25s linear infinite; }

/* ============ PAGE FRAME ============ */
#page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}

/* ============ HEADER ============ */
.site-header {
  position: relative;
  border: 3px solid var(--red);
  border-radius: 10px;
  box-shadow: var(--border-glow-red), inset 0 0 40px rgba(0,0,0,.35);
  background: linear-gradient(120deg, #b3001b, #ff3b30 30%, #ff9500 65%, #ffe14d 100%);
  background-size: 200% 200%;
  animation: lavaflow 8s ease-in-out infinite alternate;
  overflow: hidden;
  margin-bottom: 20px;
}
@keyframes lavaflow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.header-static {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.05) 0 1px, transparent 1px 5px
  );
}
.header-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; padding: 22px 18px 18px;
}
.header-pfp {
  width: 92px; height: 92px; image-rendering: auto;
  border: 3px solid rgba(0,0,0,.55);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35));
}
.header-pfp.flip { transform: scaleX(-1); }
.header-title { text-align: center; }
.logo-text {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 6vw, 54px);
  letter-spacing: 4px;
  color: #fff;
  text-shadow:
    4px 4px 0 #7a0010,
    -2px -2px 0 rgba(0,0,0,.35),
    0 0 24px rgba(255, 225, 77, .8);
  position: relative;
  animation: logopulse 2.2s ease-in-out infinite;
}
@keyframes logopulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025) rotate(-.4deg); }
}
.tagline {
  margin-top: 12px;
  font-family: var(--font-pixel);
  font-size: clamp(8px, 1.6vw, 11px);
  color: #2a0005;
  background: rgba(255, 255, 255, .82);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}

/* ============ LAYOUT ============ */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
}

/* ============ PANELS (shared) ============ */
.panel {
  background: var(--bg-panel);
  border: 2px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--border-glow-orange), inset 0 0 30px rgba(0,0,0,.4);
  overflow: hidden;
}
.panel + .panel { margin-top: 16px; }
.panel-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 9px 10px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.doors-title { background: linear-gradient(90deg, #b3001b, #ff3b30); }
.rage-title { background: linear-gradient(90deg, #ff5e00, #ff9500); }
.updated-title { background: linear-gradient(90deg, #6a040f, #9d0208); }

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 14px; }

.doors { list-style: none; padding: 8px 6px; }
.doors li a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 22px;
  border-radius: 5px;
  transition: background .12s, color .12s, transform .08s;
}
.doors li a:hover {
  background: rgba(255, 59, 48, .18);
  color: var(--yellow);
  transform: translateX(4px);
}
.doors li a.active {
  background: rgba(255, 59, 48, .28);
  color: #fff;
}
.door-ico { width: 24px; text-align: center; flex-shrink: 0; }

.rage-widget-body { padding: 12px; }
.mood-row { font-size: 20px; line-height: 1.25; }
.mood-label { color: var(--amber); }
.mood-value {
  display: block;
  color: var(--red); font-weight: bold; letter-spacing: 1px;
  text-transform: uppercase;
}
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.minibar-wrap {
  margin-top: 10px; height: 14px;
  border: 2px solid rgba(255, 199, 102, .5);
  border-radius: 4px; overflow: hidden;
  background: rgba(0,0,0,.5);
}
.minibar {
  height: 100%; width: 82%;
  background: repeating-linear-gradient(45deg, var(--red) 0 8px, var(--orange) 8px 16px);
  animation: barcrawl 1.2s linear infinite;
  background-size: 32px 100%;
}
@keyframes barcrawl { to { background-position: 32px 0; } }
.mood-note { margin-top: 9px; font-size: 17px; color: rgba(245, 233, 214, .55); font-style: italic; }

.updated-list { list-style: none; padding: 8px 10px; }
.updated-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 2px; font-size: 19px;
}
.updated-list a { color: var(--amber); }
.updated-list a:hover { color: var(--yellow); }
.upd-date { color: rgba(245,233,214,.4); font-size: 16px; }

.counter-panel { padding: 10px 12px; text-align: center; }
.counter-text { font-size: 18px; color: rgba(245,233,214,.6); }
.counter-digits {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--green);
  background: #000;
  border: 2px solid rgba(57, 255, 106, .4);
  border-radius: 4px;
  display: inline-block;
  padding: 6px 10px;
  margin-top: 6px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(57, 255, 106, .8);
}

/* ============ MAIN CONTENT ============ */
.content-panel { padding: 0 0 18px; }
.content-panel + .content-panel { margin-top: 18px; }

.section-header {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--yellow);
  background: linear-gradient(90deg, rgba(255,59,48,.25), transparent);
  border-bottom: 2px dashed rgba(255, 199, 102, .4);
  padding: 14px 16px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.section-sub {
  padding: 12px 18px 0;
  color: rgba(245, 233, 214, .7);
  font-style: italic;
}

/* note panel (lore) */
.note-panel {
  border-style: dashed;
  border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 225, 77, .3), inset 0 0 30px rgba(0,0,0,.4);
}
.note-header {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--red);
  padding: 14px 18px 6px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.note-body { padding: 8px 20px 4px; }
.note-body p { margin-bottom: 13px; }
.note-sig { text-align: right; color: var(--yellow); font-style: italic; }
.note-footer {
  padding: 8px 20px 0;
  font-size: 17px;
  color: rgba(245,233,214,.45);
}

.intro-panel { padding-bottom: 0; }
.intro-flex { display: flex; gap: 20px; padding: 18px; align-items: center; }
.intro-img {
  width: 170px; border-radius: 10px;
  border: 3px solid var(--red);
  box-shadow: var(--border-glow-red);
  flex-shrink: 0;
}
.intro-text p { margin-bottom: 12px; }

.prompt-line { color: var(--green); }
.cursor { animation: blink 1s steps(2, start) infinite; color: var(--green); }

/* buttons */
.btn-angry {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, var(--red), #b3001b);
  border: 3px solid #7a0010;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 #4d000a, var(--border-glow-red);
  transition: transform .08s, box-shadow .08s;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}
.btn-angry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #4d000a, 0 0 16px rgba(255,59,48,.7);
  animation: jitter .15s linear infinite;
}
.btn-angry:active { transform: translateY(3px); box-shadow: 0 1px 0 #4d000a; }
.btn-big { font-size: 13px; padding: 16px 26px; }
@keyframes jitter {
  0%,100% { transform: translate(0,-2px); }
  25% { transform: translate(-1px,-3px); }
  75% { transform: translate(1px,-1px); }
}

/* transmission */
.tv-frame {
  margin: 16px 18px 0;
  border: 3px solid var(--red);
  border-radius: 10px;
  background: #000;
  box-shadow: var(--border-glow-red), inset 0 0 60px rgba(255,59,48,.08);
  overflow: hidden;
}
.tv-topbar {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--green);
  background: #050505;
  padding: 8px 12px;
  border-bottom: 2px solid rgba(255,59,48,.4);
  letter-spacing: 1px;
}
.rec-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 8px var(--red-hot);
  animation: blink 1.2s steps(2, start) infinite;
  margin-right: 4px;
}
.tv-frame video { display: block; width: 100%; max-height: 68vh; background: #000; }
.tv-caption {
  padding: 10px 18px 0;
  font-size: 17px;
  color: rgba(245,233,214,.45);
  text-align: center;
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  padding: 16px 18px 0;
}
.art-frame {
  background: var(--bg-panel-2);
  border: 2px solid rgba(255, 149, 0, .55);
  border-radius: 8px;
  padding: 10px;
  cursor: zoom-in;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.art-frame:hover {
  transform: translateY(-4px) rotate(-.6deg);
  border-color: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 225, 77, .35);
}
.art-frame img {
  width: 100%; display: block; border-radius: 4px;
  aspect-ratio: 1 / 1; object-fit: cover; background: #000;
}
.art-frame figcaption {
  padding-top: 8px; font-size: 17px;
  color: rgba(245,233,214,.65); text-align: center;
}

/* rage meter */
.rage-panel { text-align: center; }
.rage-meter-wrap { padding: 22px 30px 6px; }
.rage-readout {
  font-family: var(--font-pixel);
  font-size: 44px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #7a0010, 0 0 20px rgba(255,225,77,.5);
  margin-bottom: 14px;
}
.rage-bar-outer {
  height: 34px;
  border: 3px solid var(--amber);
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(0,0,0,.8);
}
.rage-bar-inner {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--red-hot));
  background-size: 200% 100%;
  animation: barcrawl2 1.5s linear infinite;
  transition: width .35s cubic-bezier(.2, 1.4, .4, 1);
  box-shadow: 0 0 18px rgba(255, 59, 48, .8);
}
@keyframes barcrawl2 { to { background-position: 200% 0; } }
.rage-status {
  margin-top: 12px;
  font-size: 24px;
  color: var(--amber);
  letter-spacing: 1px;
  min-height: 30px;
}
#rage-button { margin-top: 16px; }
.rage-hint {
  margin-top: 14px; font-size: 17px;
  color: rgba(245,233,214,.4);
}

/* ============ CHAT (yell at him) ============ */
.chat-shell {
  margin: 16px 18px 0;
  border: 3px solid var(--red);
  border-radius: 10px;
  background: rgba(0, 0, 0, .4);
  box-shadow: var(--border-glow-red);
  overflow: hidden;
}
.chat-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #6a040f, #9d0208);
  border-bottom: 2px solid rgba(255, 59, 48, .5);
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 6px;
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(0,0,0,.4);
}
.chat-who { display: flex; flex-direction: column; line-height: 1.15; }
.chat-who strong {
  font-family: var(--font-pixel);
  font-size: 10px; color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}
.chat-status { font-size: 16px; color: var(--amber); }

.chat-log {
  height: 340px;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.bubble-row { display: flex; }
.bubble-row.you { justify-content: flex-end; }
.bubble-row.him { justify-content: flex-start; }
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.35;
  word-wrap: break-word;
  animation: bubblein .18s ease-out;
}
@keyframes bubblein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.bubble-row.him .bubble {
  background: linear-gradient(180deg, #3a0d12, #2a0a0e);
  border: 2px solid var(--red);
  color: var(--yellow);
  border-bottom-left-radius: 2px;
}
.bubble-row.you .bubble {
  background: rgba(255, 199, 102, .12);
  border: 2px solid rgba(255, 199, 102, .5);
  color: var(--cream);
  border-bottom-right-radius: 2px;
}
.bubble.typing { animation: typingpulse .8s ease-in-out infinite; letter-spacing: 2px; }
@keyframes typingpulse { 50% { opacity: .45; } }

.chat-form {
  display: flex; gap: 8px; padding: 10px;
  border-top: 2px solid rgba(255, 59, 48, .4);
  background: rgba(0,0,0,.3);
}
.chat-input {
  flex: 1;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255, 199, 102, .45);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--cream);
  font-family: var(--font-term);
  font-size: 20px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.chat-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 59, 48, .5);
}
.chat-input::placeholder { color: rgba(245, 233, 214, .35); }
.chat-send { font-size: 10px; padding: 10px 16px; flex-shrink: 0; }
.chat-send:disabled { opacity: .5; cursor: not-allowed; animation: none; }
.chat-note {
  padding: 10px 18px 0; font-size: 17px;
  color: rgba(245, 233, 214, .45); text-align: center;
}

/* ============ PRICE STRIP ============ */
.price-strip {
  margin: 16px 30px 0;
  padding: 10px 14px;
  border: 2px dashed rgba(255, 199, 102, .45);
  border-radius: 8px;
  background: rgba(0, 0, 0, .4);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; justify-content: center;
  font-size: 19px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livepulse 1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.75); }
}
.price-usd {
  font-family: var(--font-pixel); font-size: 13px; color: var(--yellow);
  transition: color .15s;
}
.price-usd.tick-up { animation: tickup .6s ease-out; }
.price-usd.tick-down { animation: tickdown .6s ease-out; }
@keyframes tickup {
  0% { color: var(--green); text-shadow: 0 0 12px var(--green); }
  100% { color: var(--yellow); }
}
@keyframes tickdown {
  0% { color: var(--red); text-shadow: 0 0 12px var(--red); }
  100% { color: var(--yellow); }
}
.price-chg { font-weight: bold; letter-spacing: .5px; }
.price-chg.up { color: var(--green); }
.price-chg.down { color: var(--red); }
.price-link { color: var(--amber); text-decoration: underline; }
.price-link:hover { color: var(--yellow); }
.price-off { color: rgba(245, 233, 214, .45); font-style: italic; }

.rage-source {
  margin-top: 8px; font-size: 17px;
  color: rgba(245, 233, 214, .45);
  min-height: 22px;
}

/* fragments */
.fragment-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 0 18px;
}
.fragment-count { font-size: 17px; color: rgba(245, 233, 214, .45); }
.fragment-box {
  margin: 18px 18px 16px;
  border: 2px dashed var(--yellow);
  border-radius: 8px;
  background: rgba(0,0,0,.35);
  padding: 26px 22px;
  text-align: center;
}
.fragment-quote {
  font-size: 30px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  min-height: 44px;
}
.fragment-meta {
  margin-top: 12px; font-size: 17px;
  color: rgba(245,233,214,.45);
}
#fragment-button:disabled { opacity: .6; cursor: wait; animation: none; }

/* trenches */
.trench-flex, .follow-flex {
  display: flex; gap: 22px; padding: 18px; align-items: flex-start;
}
.trench-img, .follow-img {
  width: 250px; border-radius: 10px; flex-shrink: 0;
  border: 3px solid var(--red);
  box-shadow: var(--border-glow-red);
}
.trench-text p, .follow-text p { margin-bottom: 12px; }

/* @handle chip on the follow door */
.x-handle {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, .5);
  border: 2px solid var(--amber);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 22px;
  text-decoration: none;
  transition: transform .1s, border-color .1s, box-shadow .1s;
}
.x-handle:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 225, 77, .4);
}
.x-glyph {
  font-size: 18px; color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,.4);
}
.trench-list { list-style: none; margin: 4px 0 14px; }
.trench-list li { padding: 4px 0; }
.follow-note { font-size: 17px; color: rgba(245,233,214,.45); margin-top: 12px; }

/* footer stamp */
.footer-stamp {
  text-align: center;
  margin-top: 22px;
  font-size: 17px;
  color: rgba(245,233,214,.35);
}

/* ============ LIGHTBOX ============ */
#lightbox {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(6, 2, 3, .92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: zoom-out; gap: 14px; padding: 24px;
}
#lightbox[hidden] { display: none; }
#lightbox img {
  max-width: 92vw; max-height: 82vh;
  border: 3px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--border-glow-red);
}
.lightbox-hint { color: rgba(245,233,214,.5); font-size: 18px; }

/* ============ TICKER ============ */
.ticker-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  background: linear-gradient(180deg, #9d0208, #6a040f);
  border-top: 3px solid var(--red);
  box-shadow: 0 -4px 18px rgba(255, 59, 48, .35);
  overflow: hidden;
  height: 44px;
  display: flex; align-items: center;
}
.ticker-track { display: flex; width: max-content; animation: tickerscroll 28s linear infinite; }
.ticker-content {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #ffe14d;
  white-space: nowrap;
  padding-right: 40px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
@keyframes tickerscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* hover shake on character imgs */
.shake-on-hover:hover { animation: imgshake .3s linear infinite; }
@keyframes imgshake {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-2.5deg) scale(1.03); }
  75% { transform: rotate(2.5deg) scale(1.03); }
}
.header-pfp.flip.shake-on-hover:hover { animation: imgshakeflip .3s linear infinite; }
@keyframes imgshakeflip {
  0%,100% { transform: scaleX(-1) rotate(0); }
  25% { transform: scaleX(-1) rotate(-2.5deg) scale(1.03); }
  75% { transform: scaleX(-1) rotate(2.5deg) scale(1.03); }
}

/* max-rage body mode */
body.max-rage { animation: bgrage .5s steps(2) infinite; }
@keyframes bgrage {
  0%,100% { background-color: var(--bg); }
  50% { background-color: #2a060b; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-pfp { width: 64px; height: 64px; }
  .header-inner { gap: 14px; }
  .intro-flex, .trench-flex, .follow-flex { flex-direction: column; align-items: center; text-align: left; }
  .intro-img { width: 60%; max-width: 240px; }
  .trench-img, .follow-img { width: 80%; max-width: 300px; }
  body { font-size: 19px; }
  .chat-log { height: 300px; }
  .bubble { max-width: 88%; }
  .price-strip { margin: 16px 14px 0; }
  .fragment-actions { justify-content: center; }
}
