:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #0d0e10;
  --panel-2: #111214;
  --ink: #c9c7bf;
  --muted: #777a77;
  --line: #292b2d;
  --red: #c84b55;
  --cyan: #4ea7a7;
  --gold: #c6a25d;
  --green: #69a77a;
  --violet: #8a75c9;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body:not(.entered) .app-shell {
  filter: blur(18px);
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition:
    opacity 1200ms ease-out,
    filter 1200ms ease-out,
    transform 1200ms ease-out;
}

body.entering .gate {
  animation: gateDepart 1400ms ease forwards;
}

body.entered .gate {
  display: none;
}

body.entry-ash-active .app-shell {
  opacity: 0;
  pointer-events: none;
  filter: blur(12px) brightness(0.42);
}

body.entered .app-shell {
  transition: opacity 1100ms ease, filter 1100ms ease;
}

.entry-ash {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: #020304;
  opacity: 0;
  transition: opacity 320ms ease;
}

.entry-ash.active {
  opacity: 1;
}

.entry-ash p {
  max-width: min(680px, calc(100vw - 48px));
  margin: 0;
  color: #d8d0b9;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 0 22px rgba(198, 162, 93, 0.22), 0 0 34px rgba(78, 167, 167, 0.16);
}

.entry-ash .ash-text span {
  animation-duration: 2200ms;
}

/* 子要素を少しずつ遅らせて浮かび上がらせる */
body.entering .rail {
  animation: panelRise 900ms ease-out 200ms both;
}

body.entering .workspace {
  animation: panelRise 900ms ease-out 350ms both;
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(85, 72, 54, 0.16), transparent 11rem),
    radial-gradient(circle at 50% 64%, rgba(30, 82, 78, 0.16), transparent 28rem),
    #030405;
  overflow: hidden;
}

.gate::after {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(134, 103, 69, 0.08), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(44, 96, 91, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.42)),
    url("./assets/charon-voyage-bg-subtle.png") center / cover no-repeat;
  transform: scale(1);
  animation: imageVoyage 8.2s linear forwards;
}

.gate::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, transparent 0 18%, rgba(0, 0, 0, 0.14) 38%, rgba(0, 0, 0, 0.72) 86%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 17px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 31%, rgba(0, 0, 0, 0.48));
}

.gate-noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.34;
  background:
    radial-gradient(circle at 24% 38%, rgba(255, 255, 255, 0.03), transparent 11rem),
    linear-gradient(90deg, transparent 0 48%, rgba(70, 130, 124, 0.06) 49%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.036) 8px, transparent 9px),
    repeating-linear-gradient(117deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 23px);
  animation: noiseDrift 2.6s steps(4) infinite;
  mix-blend-mode: screen;
}

.voyage-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
}

.cinematic-props {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.22;
  pointer-events: none;
  overflow: hidden;
}

.css-water span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: calc(90px + var(--i) * 28px);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(111, 59, 38, 0.16), rgba(62, 126, 121, 0.32), rgba(112, 62, 40, 0.1), transparent);
  transform: translateX(-50%) translateY(calc(var(--i) * 28px)) scaleX(0.28);
  opacity: 0;
  animation: waterCharge 2.2s linear infinite;
  animation-delay: calc(var(--i) * -0.18s);
  filter: drop-shadow(0 0 8px rgba(50, 116, 111, 0.22));
}

.torch-lane span {
  display: none;
}

.torch-lane.left span {
  --side: -1;
}

.torch-lane.right span {
  --side: 1;
}

.torch-lane span::before,
.torch-lane span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 88%;
  border-radius: 50% 50% 46% 46%;
  transform: translateX(-50%);
}

.torch-lane span::before {
  width: 96px;
  height: 116px;
  background:
    radial-gradient(circle at 50% 70%, rgba(236, 204, 132, 0.58) 0 5%, rgba(145, 70, 39, 0.62) 18%, rgba(100, 34, 32, 0.38) 42%, transparent 72%),
    radial-gradient(circle at 50% 58%, rgba(168, 92, 49, 0.18), transparent 76%);
  animation: flamePulse 920ms ease-in-out infinite alternate;
  filter: blur(1.2px) drop-shadow(0 0 36px rgba(128, 62, 38, 0.72));
}

.torch-lane span::after {
  width: 28px;
  height: 58px;
  background: linear-gradient(180deg, rgba(238, 197, 121, 0.88), rgba(154, 64, 38, 0.62) 56%, rgba(69, 20, 22, 0.08));
  animation: flamePulse 720ms ease-in-out infinite alternate-reverse;
  clip-path: polygon(50% 0, 68% 42%, 58% 100%, 38% 100%, 28% 44%);
}

.torch-lane span {
  --glow: rgba(114, 55, 36, 0.34);
}

.torch-lane span {
  filter: drop-shadow(0 0 42px var(--glow));
}

.css-boat {
  display: none;
}

.css-boat::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 88% 38%, 100% 100%, 0 100%, 12% 38%);
  background:
    radial-gradient(ellipse at 50% 24%, rgba(112, 76, 48, 0.14), transparent 22%),
    repeating-linear-gradient(88deg, transparent 0 46px, rgba(118, 83, 50, 0.08) 48px 51px, transparent 53px 92px),
    linear-gradient(90deg, transparent 0 49.4%, rgba(127, 91, 54, 0.42) 49.8% 50.2%, transparent 50.6%),
    linear-gradient(180deg, rgba(52, 35, 26, 0.98), #1a100e 38%, #040506 100%);
  border: 1px solid rgba(112, 83, 55, 0.35);
}

.boat-ribs {
  position: absolute;
  inset: 76px 82px 46px;
  background:
    repeating-linear-gradient(92deg, transparent 0 58px, rgba(255, 220, 149, 0.13) 60px 64px, transparent 66px 118px),
    radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 0.42), transparent 36%);
  clip-path: polygon(50% 0, 91% 42%, 100% 100%, 0 100%, 9% 42%);
}

.boat-mouth {
  position: absolute;
  left: 50%;
  top: 188px;
  width: 236px;
  height: 58px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.82), 0 0 28px rgba(198, 162, 93, 0.16);
}

.gate-hud,
.gate-progress,
.terminal,
.skip-button {
  display: none;
}

.gate-hud {
  position: absolute;
  left: 50%;
  top: 8vh;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.gate-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
}

.gate .terminal {
  width: min(420px, 100%);
  margin: 20px 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  backdrop-filter: blur(10px);
  opacity: 0.78;
}

.terminal p {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: terminalReveal 480ms ease forwards;
}

.terminal p + p {
  margin-top: 8px;
}

.terminal p:nth-child(2) { animation-delay: 450ms; }
.terminal p:nth-child(3) { animation-delay: 900ms; }
.terminal p:nth-child(4) { animation-delay: 1350ms; }

.terminal span {
  color: var(--gold);
  margin-right: 10px;
}

.gate-progress {
  width: min(420px, 100%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b0d12;
  opacity: 0.36;
}

.gate-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan));
  animation: gateLoad 7.8s ease forwards;
}

.skip-button {
  pointer-events: auto;
  height: 28px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 100vh;
}

.avatar {
  display: grid;
  place-items: center;
}

.workspace {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px 24px 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.board-links {
  display: flex;
  gap: 12px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.board-links a {
  color: #747b72;
  text-decoration: none;
}

.board-links a:hover {
  color: #b8b2a4;
  text-decoration: underline;
}

.kicker {
  margin: 0 0 5px;
  color: #69706a;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: lowercase;
}

.invite-console {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.prompt-mark {
  color: #8b6a42;
}

.invite-console input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d9d6ca;
  font-family: inherit;
}

.invite-console input::placeholder {
  color: #4f5860;
}

.post.ephemeral {
  animation: postVanish var(--vanish-duration, 6500ms) ease-in forwards;
  animation-delay: var(--vanish-delay, 29500ms);
}

.post.ephemeral::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, rgba(78, 167, 167, 0.58), transparent);
  animation: postVanishLine var(--vanish-duration, 6500ms) linear forwards;
  animation-delay: var(--vanish-delay, 29500ms);
}

.ash-text {
  display: block;
}

.ash-text span {
  display: inline-block;
  animation: glyphAsh 1350ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
  animation-delay: var(--delay);
  will-change: transform, opacity, filter;
}

.post-text {
  margin: 9px 0 0;
  color: #d6d1c3;
  line-height: 1.72;
  transition: color 180ms ease, text-shadow 180ms ease;
  word-break: break-word;
  white-space: pre-line;
}

@keyframes terminalReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gateLoad {
  to {
    transform: scaleX(1);
  }
}

@keyframes postVanish {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  36% {
    opacity: 0.92;
    filter: contrast(1.24) saturate(0.72);
    transform: translateY(-1px) skewX(-0.4deg);
  }
  66% {
    opacity: 0.54;
    filter: contrast(1.5) saturate(0.42) blur(0.7px);
    transform: translateY(-6px) skewX(0.8deg);
  }
  100% {
    opacity: 0;
    filter: contrast(1.9) saturate(0.12) blur(6px);
    transform: translateY(-18px) skewX(-1.4deg) scale(0.985);
  }
}

@keyframes postVanishLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  38% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes glyphAsh {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  28% {
    opacity: 0.92;
    filter: blur(0.2px) contrast(1.4);
    transform: translate(calc(var(--dx) * 0.18), -2px) rotate(calc(var(--r) * 0.18)) scale(1.02);
  }
  64% {
    opacity: 0.44;
    filter: blur(1.1px) contrast(1.8) saturate(0.38);
    transform: translate(calc(var(--dx) * 0.72), calc(var(--dy) * 0.72)) rotate(calc(var(--r) * 0.72)) scale(0.72);
  }
  100% {
    opacity: 0;
    filter: blur(4px) contrast(2) saturate(0.08);
    transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(0.28);
  }
}

@keyframes ashVeil {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  28% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-38px);
  }
}

@keyframes ashFurniture {
  0% {
    opacity: 1;
    filter: none;
  }
  42% {
    opacity: 0.34;
    filter: grayscale(0.7) blur(0.3px);
  }
  100% {
    opacity: 0;
    filter: grayscale(1) blur(2px);
  }
}

@keyframes softFurnitureFade {
  to {
    opacity: 0;
  }
}

@keyframes softCardFade {
  0% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ashCardSettle {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
  68% {
    opacity: 1;
    transform: translateY(-2px);
    filter: saturate(0.5);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px) saturate(0.1);
  }
}

@keyframes cardWeatherAway {
  0% {
    opacity: 1;
    filter: none;
    transform: translateY(0);
  }
  42% {
    opacity: 1;
    filter: contrast(1.2) saturate(0.72);
    transform: translateY(-1px);
  }
  76% {
    opacity: 0.74;
    filter: contrast(1.45) saturate(0.38) blur(0.2px);
    transform: translateY(-7px) skewX(-0.6deg);
  }
  100% {
    opacity: 0;
    filter: contrast(1.9) saturate(0.08) blur(7px);
    transform: translateY(-22px) skewX(1deg) scale(0.98);
  }
}

@keyframes weatheringDust {
  0% {
    opacity: 0;
    transform: translate(0, 20px) rotate(0deg);
    clip-path: inset(86% 0 0 0);
  }
  18% {
    opacity: 0.82;
    clip-path: inset(58% 0 0 0);
  }
  48% {
    opacity: 0.92;
    transform: translate(-8px, -10px) rotate(-0.8deg);
    clip-path: inset(18% 0 8% 0);
  }
  74% {
    opacity: 0.62;
    transform: translate(-18px, -26px) rotate(-1.5deg);
    clip-path: inset(0 0 44% 0);
  }
  100% {
    opacity: 0;
    transform: translate(-34px, -54px) rotate(-2.2deg);
    clip-path: inset(0 0 82% 0);
  }
}

@keyframes crackLift {
  0% {
    opacity: 0;
    transform: translateY(0);
    clip-path: inset(0 0 100% 0);
  }
  20% {
    opacity: 0.82;
    clip-path: inset(0 0 18% 0);
  }
  62% {
    opacity: 0.55;
    transform: translateY(-8px);
    clip-path: polygon(0 0, 100% 0, 100% 54%, 94% 54%, 94% 66%, 80% 66%, 80% 52%, 62% 52%, 62% 72%, 41% 72%, 41% 58%, 24% 58%, 24% 76%, 0 76%);
  }
  100% {
    opacity: 0;
    transform: translateY(-34px);
    clip-path: polygon(0 0, 100% 0, 100% 16%, 88% 16%, 88% 24%, 72% 24%, 72% 12%, 49% 12%, 49% 28%, 31% 28%, 31% 18%, 0 18%);
  }
}

@keyframes surfacePeel {
  0% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
  34% {
    opacity: 0.86;
    transform: translateY(-1px);
    clip-path: polygon(0 0, 100% 0, 100% 82%, 88% 82%, 88% 100%, 66% 100%, 66% 88%, 41% 88%, 41% 100%, 0 100%);
  }
  68% {
    opacity: 0.48;
    transform: translateY(-7px);
    clip-path: polygon(0 0, 100% 0, 100% 54%, 92% 54%, 92% 72%, 78% 72%, 78% 60%, 58% 60%, 58% 80%, 34% 80%, 34% 64%, 0 64%);
  }
  100% {
    opacity: 0;
    transform: translateY(-22px);
    clip-path: polygon(0 0, 100% 0, 100% 18%, 84% 18%, 84% 29%, 62% 29%, 62% 16%, 38% 16%, 38% 34%, 18% 34%, 18% 22%, 0 22%);
  }
}

@keyframes textFlake {
  0% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
  18% {
    opacity: 1;
    transform: translate(1px, -1px);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 91% 92%, 91% 100%, 70% 100%, 70% 94%, 42% 94%, 42% 100%, 0 100%);
  }
  46% {
    opacity: 0.78;
    transform: translate(-2px, -5px);
    clip-path: polygon(0 0, 100% 0, 100% 67%, 86% 67%, 86% 78%, 68% 78%, 68% 60%, 47% 60%, 47% 82%, 23% 82%, 23% 70%, 0 70%);
  }
  72% {
    opacity: 0.38;
    transform: translate(3px, -13px);
    clip-path: polygon(0 0, 100% 0, 100% 38%, 92% 38%, 92% 49%, 75% 49%, 75% 33%, 55% 33%, 55% 54%, 30% 54%, 30% 41%, 0 41%);
  }
  100% {
    opacity: 0;
    transform: translate(-6px, -28px);
    clip-path: inset(0 0 88% 0);
  }
}

@keyframes imageVoyage {
  0% {
    transform: scale(1);
    filter: contrast(1.05) brightness(1.04) saturate(0.78);
  }
  70% {
    transform: scale(1.06) translateY(0.8vh);
    filter: contrast(1.1) brightness(0.98) saturate(0.74);
  }
  100% {
    transform: scale(1.13) translateY(1.8vh);
    filter: contrast(1.18) brightness(0.82) saturate(0.68) blur(0.4px);
  }
}

@keyframes waterCharge {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-46px) scaleX(0.18);
  }
  18% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(420px) scaleX(2.8);
  }
}

@keyframes torchAdvance {
  0% {
    opacity: 0;
    filter: blur(1.8px) drop-shadow(0 0 18px var(--glow));
    transform: translateX(calc(var(--side) * 64px)) translateY(-18px) scale(0.18);
  }
  14% {
    opacity: 0.72;
    filter: blur(0.8px) drop-shadow(0 0 34px var(--glow));
    transform: translateX(calc(var(--side) * 170px)) translateY(18vh) scale(0.72);
  }
  42% {
    opacity: 0.86;
    filter: blur(0.2px) drop-shadow(0 0 52px var(--glow));
    transform: translateX(calc(var(--side) * 382px)) translateY(48vh) scale(1.54);
  }
  72% {
    opacity: 0.58;
    filter: blur(2px) drop-shadow(0 0 68px var(--glow));
    transform: translateX(calc(var(--side) * 704px)) translateY(82vh) scale(2.34);
  }
  100% {
    opacity: 0;
    filter: blur(7px) drop-shadow(0 0 78px var(--glow));
    transform: translateX(calc(var(--side) * 1000px)) translateY(118vh) scale(3.18);
  }
}

@keyframes flamePulse {
  to {
    transform: translateX(-50%) translateY(-7px) scaleX(0.84) scaleY(1.18);
  }
}

@keyframes boatHeave {
  50% {
    transform: translateX(-50%) translateY(16px) rotate(0.7deg);
  }
}

@keyframes reverseSpin {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(-315deg);
  }
}

@keyframes pulseLine {
  50% {
    opacity: 0.32;
    box-shadow: 0 0 26px rgba(198, 162, 93, 0.4);
  }
}

@keyframes noiseDrift {
  50% {
    transform: translate(9px, -5px);
  }
}

@keyframes gateDepart {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  64% {
    opacity: 1;
    transform: scale(1.04);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
    filter: blur(18px);
    visibility: hidden;
  }
}

/* Quiet board surface. The cinematic entry above intentionally keeps its own styling. */
.app-shell {
  display: block;
  min-height: 100vh;
}

.workspace {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px 22px 56px;
}

.topbar {
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin-bottom: 3px;
  color: #626561;
  font-size: 11px;
  text-transform: none;
}

h1 {
  color: #b8b6af;
  font-size: 16px;
  font-weight: 400;
}

.board-links {
  font-size: 11px;
}

.board-links a,
.board-links a:hover {
  color: #737671;
  text-shadow: none;
}

.invite-console {
  margin-top: 16px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.prompt-mark {
  color: #868278;
}

.composer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.composer textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0c0d0f;
  color: var(--ink);
  box-shadow: none;
}

.composer textarea::placeholder {
  color: #555854;
}

.composer-tools {
  justify-content: flex-end;
  margin-top: 0;
}

.primary-button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #a5a39c;
  box-shadow: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: #50534f;
  color: #d0cec6;
}

.feed {
  display: grid;
  gap: 0;
  border-top: 0;
}

.post {
  position: relative;
  overflow: hidden;
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.post-number {
  color: #929089;
}

.post-author {
  color: #aaa8a1;
}

.post-author.charon {
  color: #cf3f36;
}

.post-time {
  margin-left: auto;
  color: #646763;
}

.post-text {
  margin: 8px 0 0;
  color: #bbb9b1;
  font-size: 14px;
  line-height: 1.75;
  text-shadow: none;
}

@keyframes postVanishReduced {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 640px) {
  .workspace {
    padding: 22px 14px 40px;
  }

  .post-time {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.entered) .app-shell,
  .entry-ash {
    transition: none;
  }

  body.entering .workspace,
  body.entering .gate,
  .css-water span,
  .torch-lane span,
  .css-boat,
  .gate-noise,
  .ash-text span {
    animation: none;
  }

  .post.ephemeral {
    animation-name: postVanishReduced;
  }

  .post.ephemeral::after {
    animation: none;
  }
}

.title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hidden-mark {
  display: none;
  height: 1.5em;
  width: auto;
  image-rendering: pixelated;
  opacity: 0;
  filter: brightness(0.85) saturate(0.75);
  pointer-events: none;
}

body.hidden-board .hidden-mark {
  display: block;
  animation: hiddenMarkIn 1400ms ease-out forwards;
}

@keyframes hiddenMarkIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hidden-board .hidden-mark {
    animation: none;
    opacity: 0.75;
  }
}
