/* ~*~ ASCII Drag ~*~  a place for racers */

:root {
  --bg: #0a0026;
  --ink: #f2ecff;
  --ink-soft: #c9bfe6;
  --panel: #150a3a;
  --panel-2: #1f1150;
  --edge: #6a4fd8;
  --hot: #ff3ea5;
  --lime: #b6ff3b;
  --cyan: #3ef2ff;
  --gold: #ffd23e;
  --orange: #ff9a2e;
  --link: #8fd8ff;
  --link-hover: #ff8ed0;
  --head-a: #ff3ea5;
  --head-b: #7a3cff;

  /* terminal palette: normal / bright (bold) */
  --t-fg: #c7c7c7;
  --t-bold: #ffffff;
  --t-dim: #7b7b7b;
  --t-white: #d0d0d0;
  --t-white-b: #ffffff;
  --t-red: #d83b3b;
  --t-red-b: #ff6464;
  --t-green: #2bbd3a;
  --t-green-b: #6bff6b;
  --t-yellow: #d6ae16;
  --t-yellow-b: #ffef5a;
  --t-blue: #4a6cff;
  --t-blue-b: #8aa2ff;
  --t-magenta: #c04cc8;
  --t-magenta-b: #ff72ff;
  --t-cyan: #1fb4bd;
  --t-cyan-b: #66fbff;
  --t-bg: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  /* tiled starfield + glitter, no images needed */
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff 99%, transparent),
    radial-gradient(1px 1px at 54px 70px, #ffd6f5 99%, transparent),
    radial-gradient(1.5px 1.5px at 90px 30px, #b9f6ff 99%, transparent),
    radial-gradient(1px 1px at 130px 110px, #fff 99%, transparent),
    radial-gradient(2px 2px at 30px 120px, rgba(255, 62, 165, 0.8) 99%, transparent),
    radial-gradient(1px 1px at 150px 60px, #fff5b8 99%, transparent),
    linear-gradient(180deg, #13003d 0%, #0a0026 45%, #1a0035 100%);
  background-size: 160px 150px, 160px 150px, 160px 150px, 160px 150px, 160px 150px, 160px 150px, 100% 100%;
  background-attachment: fixed;
  font-family: Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px dashed var(--lime);
  outline-offset: 2px;
}

code,
kbd {
  font-family: "Lucida Console", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.95em;
}

kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #9b86ff;
  border-bottom-width: 3px;
  border-radius: 4px;
  background: #241062;
  color: #fff;
  line-height: 1.4;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.small {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 -16px;
  padding: 10px 16px 8px;
  background: linear-gradient(180deg, #3b1fb0, #1c0b6b);
  border-bottom: 2px solid #9e86ff;
}

.brand {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.brand b {
  color: var(--cyan);
  font-weight: normal;
}

.brand span {
  color: var(--hot);
}

.tagline {
  color: #d7ccff;
  font-style: italic;
}

.nav {
  flex-basis: 100%;
  color: #8f7fe0;
  font-size: 12px;
}

.nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--lime);
  text-decoration: underline;
}

/* ---------- ticker (a well-behaved <marquee>) ---------- */
.ticker {
  overflow: hidden;
  margin: 0 -16px;
  padding: 4px 0;
  background: #000;
  border-bottom: 1px solid #3a2380;
  color: var(--lime);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 10px;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 38s linear infinite;
}

.ticker-track span {
  padding-right: 48px;
}

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

/* ---------- blingee title ---------- */
.hero {
  position: relative;
  padding: 26px 0 14px;
  text-align: center;
}

.glitter {
  margin: 0;
  font-family: "Bungee", Impact, "Arial Black", sans-serif;
  font-size: clamp(44px, 11vw, 104px);
  line-height: 1;
  letter-spacing: 2px;
  color: #ff8ed0;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 45% 80%, #fff7b0 0 1px, transparent 2px),
    linear-gradient(100deg, #ff3ea5 0%, #ffd23e 20%, #3ef2ff 40%, #b6ff3b 55%, #ff72ff 75%, #ff3ea5 100%);
  background-size: 9px 9px, 13px 13px, 11px 11px, 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 0 10px rgba(255, 62, 165, 0.6)) drop-shadow(3px 4px 0 #2a0a6e);
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 45px 27px, -39px 52px, 33px -44px, 300% 0;
  }
}

.hero-sub {
  margin: 10px 0 0;
  color: var(--gold);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: clamp(9px, 2.2vw, 12px);
  text-shadow: 0 0 6px rgba(255, 210, 62, 0.7);
}

.spark {
  position: absolute;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 0 8px #fff, 0 0 16px var(--hot);
  animation: twinkle 1.8s ease-in-out infinite;
  pointer-events: none;
}

.s1 { top: 14px; left: 8%; animation-delay: 0s; }
.s2 { top: 60%; left: 3%; font-size: 16px; animation-delay: 0.5s; color: var(--cyan); }
.s3 { top: 10px; right: 10%; animation-delay: 0.9s; color: var(--gold); }
.s4 { top: 58%; right: 4%; font-size: 28px; animation-delay: 1.3s; }
.s5 { top: 4px; left: 44%; font-size: 14px; animation-delay: 0.3s; color: var(--lime); }
.s6 { bottom: 0; left: 30%; font-size: 12px; animation-delay: 1.1s; color: var(--hot); }

@keyframes twinkle {
  0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1.15) rotate(90deg); opacity: 1; }
}

/* ---------- boxes ---------- */
.box {
  margin: 0 0 14px;
  background: var(--panel);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px #000, 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.box-head {
  margin: 0;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--head-a), var(--head-b));
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #3a0050;
}

.box-head.orange {
  background: linear-gradient(90deg, #ff9a2e, #ff3e6b);
}

.box-body {
  padding: 8px 10px 10px;
}

.box-body h3 {
  margin: 10px 0 2px;
  color: var(--hot);
  font-size: 13px;
}

.box-body p {
  margin: 0 0 8px;
}

.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  background: var(--lime);
  color: #200050;
  font-size: 10px;
  transform: rotate(-6deg);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- the game ---------- */
.game-box {
  padding-bottom: 10px;
  border-color: var(--hot);
  box-shadow: 0 0 0 1px #000, 0 0 24px rgba(255, 62, 165, 0.35), 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.bezel {
  margin: 12px 12px 0;
  padding: 14px 14px 8px;
  border-radius: 22px 22px 34px 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #29c7d6, #0d7f99 55%, #0a5f78);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 12px rgba(0, 0, 0, 0.35), 0 6px 0 #063646;
}

.terminal {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--t-bg);
  box-shadow: inset 0 0 0 3px #0b2a33, inset 0 0 30px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.terminal:focus,
.terminal:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--lime), inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.terminal:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.screen {
  margin: 0 auto;
  width: max-content;
  color: var(--t-fg);
  font-family: "Lucida Console", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
  font-variant-ligatures: none;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
}

.screen .b { color: var(--t-bold); font-weight: bold; }
.screen .d { color: var(--t-dim); }
.screen .u { text-decoration: underline; }
/* Livery cells: a real '_' in the car's paint colour (cars are always drawn
   bold) sits behind each char, so the panel edge matches the rest of the body
   exactly -- a CSS underline is thinner and sits at a different height. */
.screen .e { position: relative; }
.screen .e::after { content: attr(data-e); position: absolute; left: 0; top: 0; }
.screen .ul1::after { color: var(--t-white-b); }
.screen .ul2::after { color: var(--t-red-b); }
.screen .ul3::after { color: var(--t-green-b); }
.screen .ul4::after { color: var(--t-yellow-b); }
.screen .ul5::after { color: var(--t-blue-b); }
.screen .ul6::after { color: var(--t-magenta-b); }
.screen .ul7::after { color: var(--t-cyan-b); }
.screen .p1 { color: var(--t-white); }
.screen .p2 { color: var(--t-red); }
.screen .p3 { color: var(--t-green); }
.screen .p4 { color: var(--t-yellow); }
.screen .p5 { color: var(--t-blue); }
.screen .p6 { color: var(--t-magenta); }
.screen .p7 { color: var(--t-cyan); }
.screen .p1.b { color: var(--t-white-b); }
.screen .p2.b { color: var(--t-red-b); }
.screen .p3.b { color: var(--t-green-b); }
.screen .p4.b { color: var(--t-yellow-b); }
.screen .p5.b { color: var(--t-blue-b); }
.screen .p6.b { color: var(--t-magenta-b); }
.screen .p7.b { color: var(--t-cyan-b); }
.screen .p8 { color: #000; background: var(--t-yellow); }
.screen .p9 { color: #000; background: var(--t-green); }
.screen .r { filter: invert(1); }
/* Light sources.  g: the text glows.  h: brighter, with a thin soft band of
   light through the middle of the row, like a neon tube lighting the road. */
.screen .g { text-shadow: 0 0 3px currentColor, 0 0 8px currentColor; }
/* The screen is rebuilt every frame, so the neon's slow pulse is driven by a
   property animated on the (persistent) screen and inherited by the spans. */
@property --pulse {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@keyframes pulse {
  0%, 100% { --pulse: 0.7; }
  50% { --pulse: 1.25; }
}
.screen { animation: pulse 1.6s ease-in-out infinite; }
.screen .h {
  text-shadow: 0 0 2px currentColor, 0 0 calc(7px * var(--pulse)) currentColor,
    0 0 calc(16px * var(--pulse)) currentColor;
  background: linear-gradient(180deg, transparent 32%,
    color-mix(in srgb, currentColor calc(38% * var(--pulse)), transparent) 55%, transparent 78%);
}
/* The flashing SHIFT lamp is black on green: its light is the green. */
.screen .p9.h {
  text-shadow: none;
  background: var(--t-green);
  box-shadow: 0 0 8px var(--t-green);
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.focus-hint {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(10, 0, 38, 0.85);
  border: 2px solid var(--lime);
  color: var(--lime);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  animation: blink 1.1s steps(1) infinite;
}

.terminal.focused .focus-hint {
  display: none;
}

.bezel-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 2px;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7dff5a;
  box-shadow: 0 0 6px #7dff5a;
}

.terminal.focused ~ .bezel-foot .led,
.bezel:focus-within .led {
  animation: blink 0.6s steps(1) infinite;
}

.bezel-label {
  flex: 1;
  color: #e9fdff;
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #064456;
}

.chrome-btn {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #c9c9d9 45%, #8d8da6 55%, #e3e3f0);
  color: #1a0a4a;
  font: bold 11px Verdana, Tahoma, sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.chrome-btn:hover {
  background: linear-gradient(180deg, #ffffff, #ffd6f0 45%, #ff8ed0 55%, #ffe6f6);
}

.keys-hint {
  margin: 10px 12px 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.keys-hint b {
  color: var(--lime);
}

/* touch pad: shown on touch screens */
.touchpad {
  display: none;
  position: relative;
  margin: 12px 12px 0;
}

@media (pointer: coarse) {
  .touchpad {
    display: block;
  }
  .keys-hint {
    display: none;
  }
}

.touchpad button {
  border: 1px solid #fff;
  border-radius: 10px;
  background: linear-gradient(180deg, #5b3cff, #2a0f9a);
  color: #fff;
  font: bold 13px Verdana, Tahoma, sans-serif;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 3px 0 #120550;
}

.touchpad button.pressed {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #120550;
  background: linear-gradient(180deg, #ff3ea5, #a0126a);
}

.pad-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pad-small {
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pad-small button {
  flex: 1;
  min-width: 42px;
  height: 36px;
}

.dpad {
  display: grid;
  grid-template: 48px 48px / 48px 48px 48px;
  gap: 4px;
}

.dpad .up { grid-area: 1 / 2; }
.dpad .left { grid-area: 2 / 1; }
.dpad .down { grid-area: 2 / 2; }
.dpad .right { grid-area: 2 / 3; }

.bigkeys {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  max-width: 220px;
}

.bigkeys .space {
  height: 58px;
  background: linear-gradient(180deg, #43d63b, #177a12);
  font-size: 16px;
}

.bigkeys .enter {
  height: 38px;
}

.typer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  font-size: 16px;
}

/* ---------- two columns ---------- */
.columns {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .bezel {
    margin: 10px 6px 0;
    padding: 8px 8px 6px;
    border-radius: 14px 14px 22px 22px;
  }
  .terminal {
    padding: 6px;
  }
}

/* ---------- profile column ---------- */
.profile {
  padding: 10px;
}

.profile-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  text-shadow: 0 0 8px var(--hot);
}

.profile-top {
  display: flex;
  gap: 10px;
}

.pic-frame {
  flex: none;
  padding: 4px;
  background: repeating-linear-gradient(45deg, var(--hot) 0 6px, var(--gold) 6px 12px, var(--cyan) 12px 18px);
  animation: frame 2s linear infinite;
  background-size: 200% 200%;
  align-self: flex-start;
}

@keyframes frame {
  to { background-position: 100% 100%; }
}

.pic {
  margin: 0;
  padding: 18px 6px;
  background: #000;
  color: var(--t-red-b);
  font-family: "Lucida Console", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 8px;
  line-height: 1.2;
}

.profile-facts p {
  margin: 0 0 6px;
}

.quote {
  color: var(--gold);
  font-style: italic;
}

.online {
  color: #7dff5a;
  font-weight: bold;
  animation: blink 1.2s steps(1) infinite;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dff5a;
}

.viewmy {
  margin: 8px 0 0;
  font-weight: bold;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--edge);
}

.contact-grid a {
  display: block;
  padding: 6px 8px;
  background: var(--panel-2);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

/* Odd count: let the last link fill the row instead of leaving a gap. */
.contact-grid a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.contact-grid a span {
  display: inline-block;
  width: 1.6em;
  color: var(--lime);
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  background: #3a1fa0;
  color: var(--lime);
}

.url-box p {
  margin: 0;
  padding: 8px 10px;
  word-break: break-all;
}

.kv {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
}

.kv th,
.kv td {
  padding: 4px 6px;
  vertical-align: top;
  text-align: left;
}

.kv th {
  width: 36%;
  background: #3b1fb0;
  color: #d9d0ff;
  font-size: 12px;
}

.kv td {
  background: var(--panel-2);
}

.save-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-btn:focus-within {
  outline: 2px dashed var(--lime);
  outline-offset: 2px;
}

.counter-box {
  padding: 8px;
  text-align: center;
}

.counter-box p {
  margin: 0;
}

.counter {
  display: inline-block;
  margin: 4px 0 !important;
  padding: 2px 6px;
  background: #000;
  border: 2px inset #777;
  color: #ff4040;
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 16px;
  letter-spacing: 3px;
  text-shadow: 0 0 6px #ff0000;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  outline: 1px solid rgba(255, 255, 255, 0.6);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 6px;
  line-height: 1.5;
  text-align: center;
}

.b1 { background: linear-gradient(180deg, #fff, #9ab); color: #003; }
.b2 { background: linear-gradient(180deg, #333, #000); color: var(--lime); }
.b3 { background: #000; color: #fff; border-color: var(--cyan); }
.b4 { background: linear-gradient(90deg, #ff3ea5, #7a3cff); color: #fff; }
.b5 { background: linear-gradient(180deg, #ffd23e, #ff7a00); color: #300; }
.b6 { background: repeating-linear-gradient(45deg, #1a0035 0 4px, #300060 4px 8px); color: #ff8ed0; }

/* ---------- right column ---------- */
.song {
  padding: 8px 10px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b6ff3b 30%, #2e8f00);
  color: #0a2a00;
  font-size: 15px;
  cursor: pointer;
}

.song-info p {
  margin: 0;
}

.song-label {
  color: var(--hot);
  font-weight: bold;
}

.song-title {
  font-size: 12px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 3px;
}

.eq i {
  width: 5px;
  height: 3px;
  background: linear-gradient(0deg, var(--lime), var(--gold), var(--hot));
}

.song.playing .eq i {
  animation: eq 0.5s ease-in-out infinite alternate;
}

.song.playing .eq i:nth-child(2n) { animation-duration: 0.35s; }
.song.playing .eq i:nth-child(3n) { animation-duration: 0.6s; }

@keyframes eq {
  from { height: 2px; }
  to { height: 14px; }
}

.network {
  padding: 14px 10px;
  text-align: center;
}

.network p {
  margin: 0;
  font-size: 18px;
}

.network b {
  color: var(--gold);
}

.keys {
  width: 100%;
  margin-bottom: 10px;
  border-collapse: collapse;
}

.keys th,
.keys td {
  padding: 5px 6px;
  border: 1px solid #3b2a8a;
  text-align: left;
}

.keys th {
  background: #2a1480;
}

.steps,
.stars {
  margin: 0 0 8px;
  padding-left: 22px;
}

.steps li,
.stars li {
  margin-bottom: 6px;
}

.stars {
  list-style: none;
  padding-left: 4px;
}

.stars li::before {
  content: "\2605  ";
  color: var(--gold);
}

.friend-count {
  margin-bottom: 8px;
}

.hot {
  color: var(--hot);
}

.top8 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

@media (max-width: 520px) {
  .top8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.friend {
  text-align: center;
}

.friend-name {
  display: block;
  margin-bottom: 3px;
  color: var(--link);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.25;
  min-height: 2.5em;
}

.friend-pic {
  display: block;
  margin: 0;
  padding: 10px 2px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--edge);
  font-family: "Lucida Console", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 5px;
  line-height: 1.2;
  white-space: pre;
}

.friend-pic.boss {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(255, 210, 62, 0.7);
}

.friend-tier {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  background: var(--panel-2);
  border: 1px solid #3b2a8a;
}

.c-who {
  padding: 8px;
  background: #2a1480;
  color: var(--link);
  font-size: 11px;
  font-weight: bold;
  text-align: center;
}

.c-body {
  padding: 6px 10px;
}

.c-body p {
  margin: 0 0 4px;
}

.c-date {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: bold;
}

.king {
  color: var(--gold);
  font-weight: bold;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 18px;
  text-align: center;
}

.footer p {
  margin: 6px 0;
}

.construction {
  height: 14px;
  margin-bottom: 8px;
  background: repeating-linear-gradient(-45deg, #ffd23e 0 12px, #000 12px 24px);
  border: 1px solid #ffd23e;
}

/* cursor sparkle trail */
.trail {
  position: fixed;
  z-index: 50;
  font-size: 14px;
  pointer-events: none;
  text-shadow: 0 0 6px currentColor;
  animation: trail 0.8s ease-out forwards;
}

@keyframes trail {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, 20px) scale(0.3) rotate(120deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .ticker-track {
    animation: none;
  }
  .ticker {
    white-space: normal;
  }
  .ticker-track span + span {
    display: none;
  }
}
