:root {
  --ink: #1f1c1a;
  --ink-soft: #5b554d;
  --paper: #fffdf4;
  --yellow: #f0e428;
  --yellow-deep: #d9c70f;
  --yellow-soft: #fff6a8;
  --yellow-mist: #fff9d2;
  --hibot: #9b7cff;
  --hibot-mist: #e6dcff;
  --chisei: #2f9e6e;
  --chisei-mist: #cfead9;
  --neoki: #c4a484;
  --neoki-mist: #f0e2d2;
  --newki: #7a848c;
  --newki-mist: #e2e6ea;
  --umi: #3aa8d4;
  --umi-mist: #c8e8f5;
  --wandow: #f0c428;
  --wandow-mist: #ffe9a3;
  --tsutsuki: #e891b0;
  --tsutsuki-mist: #fad4e2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 28, 26, 0.12);
  --radius: 28px;
  --btn-radius: 14px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  /* logo-img width * aspect + header vertical padding + border */
  --header-height: calc(min(210px, 48vw) * 511 / 991 + 1.7rem + 1px + env(safe-area-inset-top));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 90% 8%, rgba(240, 228, 40, 0.14), transparent 55%),
    linear-gradient(180deg, #fffef8 0%, var(--paper) 48%, #fff9e8 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 244, 0.78);
  border-bottom: 1px solid rgba(31, 28, 26, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  width: min(210px, 48vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white) !important;
}

.hero {
  position: relative;
  /* Explicit height so absolute maze-stage can resolve % sizes on desktop. */
  height: 100svh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    calc(5.8rem + env(safe-area-inset-top))
    clamp(1rem, 3vw, 2rem)
    0;
  overflow: visible;
  isolation: isolate;
}

.maze-stage {
  position: absolute;
  /* PC: start below the fixed header */
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
}

.maze-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 10;
  width: min(100%, 34rem);
  text-align: center;
  display: grid;
  justify-items: center;
  padding: 1.2rem 1rem;
  background: transparent;
  /* Let pointer events reach the particle stage except on real controls. */
  pointer-events: none;
}

.hero-copy a,
.hero-copy .btn,
.hero-copy .brand-mark {
  pointer-events: auto;
}

.brand-title {
  margin: 0;
}

.brand-title img,
.brand-mark {
  width: min(42vw, 168px);
  height: auto;
  margin-inline: auto;
  cursor: pointer;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.brand-mark.is-faded {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.hero-copy.is-faded .brand-mark,
.hero-copy.is-faded .hero-lead,
.hero-copy.is-faded .hero-support,
.hero-copy.is-faded .hero-actions {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
}

/* Children with pointer-events:auto stay clickable unless also disabled */
.hero-copy.is-faded a,
.hero-copy.is-faded .btn,
.hero-copy.is-faded .brand-mark {
  pointer-events: none;
}

.hero-copy .brand-mark,
.hero-copy .hero-lead,
.hero-copy .hero-support,
.hero-copy .hero-actions {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-lead {
  margin: 0.9rem 0 0.65rem;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
}

.hero-support {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--btn-radius);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 10px 24px rgba(217, 199, 15, 0.35);
}

.btn-primary:hover {
  background: var(--yellow-deep);
  box-shadow: 0 14px 30px rgba(217, 199, 15, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(31, 28, 26, 0.14);
  color: var(--ink);
}

.btn-large {
  min-height: 3.4rem;
  padding-inline: 1.8rem;
  font-size: 1.05rem;
}

.section {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.1rem, 4vw, 3rem);
}

.section-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.3;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact robot profile cards (interaction → modal) */
.robots {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.robots-root {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vw, 2.6rem);
}

.robot-group-head {
  margin: 0 0 0.85rem;
}

.robot-group-head h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 900;
  line-height: 1.3;
}

.robot-group-head p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.robot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.85rem;
}

.robot-card {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 0.7rem 0.95rem;
  border: 0;
  outline: none;
  border-radius: 18px;
  background: var(--yellow-mist);
  color: inherit;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 28, 26, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.robot-card[data-robot-id="chisei"] {
  background: var(--chisei-mist);
  box-shadow: 0 12px 28px rgba(47, 158, 110, 0.22);
}

.robot-card[data-robot-id="hibot"] {
  background: var(--hibot-mist);
  box-shadow: 0 12px 28px rgba(155, 124, 255, 0.22);
}

.robot-card[data-robot-id="neoki"] {
  background: var(--neoki-mist);
  box-shadow: 0 12px 28px rgba(196, 164, 132, 0.28);
}

.robot-card[data-robot-id="newki"] {
  background: var(--newki-mist);
  box-shadow: 0 12px 28px rgba(122, 132, 140, 0.22);
}

.robot-card[data-robot-id="umi"] {
  background: var(--umi-mist);
  box-shadow: 0 12px 28px rgba(58, 168, 212, 0.22);
}

.robot-card[data-robot-id="wandow"] {
  background: var(--wandow-mist);
  box-shadow: 0 12px 28px rgba(240, 196, 40, 0.28);
}

.robot-card[data-robot-id="tsutsuki"] {
  background: var(--tsutsuki-mist);
  box-shadow: 0 12px 28px rgba(232, 145, 176, 0.24);
}

.robot-card:hover,
.robot-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(31, 28, 26, 0.2);
}

.robot-card[data-robot-id="chisei"]:hover,
.robot-card[data-robot-id="chisei"]:focus-visible {
  box-shadow: 0 16px 34px rgba(47, 158, 110, 0.3);
}

.robot-card[data-robot-id="hibot"]:hover,
.robot-card[data-robot-id="hibot"]:focus-visible {
  box-shadow: 0 16px 34px rgba(155, 124, 255, 0.3);
}

.robot-card[data-robot-id="neoki"]:hover,
.robot-card[data-robot-id="neoki"]:focus-visible {
  box-shadow: 0 16px 34px rgba(196, 164, 132, 0.34);
}

.robot-card[data-robot-id="newki"]:hover,
.robot-card[data-robot-id="newki"]:focus-visible {
  box-shadow: 0 16px 34px rgba(122, 132, 140, 0.3);
}

.robot-card[data-robot-id="umi"]:hover,
.robot-card[data-robot-id="umi"]:focus-visible {
  box-shadow: 0 16px 34px rgba(58, 168, 212, 0.3);
}

.robot-card[data-robot-id="wandow"]:hover,
.robot-card[data-robot-id="wandow"]:focus-visible {
  box-shadow: 0 16px 34px rgba(240, 196, 40, 0.34);
}

.robot-card[data-robot-id="tsutsuki"]:hover,
.robot-card[data-robot-id="tsutsuki"]:focus-visible {
  box-shadow: 0 16px 34px rgba(232, 145, 176, 0.32);
}

.robot-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(240, 228, 40, 0.55),
    0 16px 34px rgba(31, 28, 26, 0.2);
}

.robot-card-img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 6px 8px rgba(31, 28, 26, 0.12));
}

.robot-card-img.is-round {
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
}

.robot-card-name {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

.robot-card-blurb {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .robot-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .robot-card {
    padding: 0.75rem 0.55rem 0.85rem;
  }

  .robot-card-img {
    width: 3.8rem;
    height: 3.8rem;
  }

  .robot-card-blurb {
    font-size: 0.68rem;
    -webkit-line-clamp: 4;
  }
}

.lab {
  background:
    linear-gradient(180deg, transparent, rgba(255, 249, 210, 0.7) 20%, rgba(255, 246, 168, 0.45) 100%);
}

.lab-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .lab-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.lab-points li {
  padding-top: 1rem;
  border-top: 3px solid var(--yellow);
}

.lab-points h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.lab-points p {
  margin: 0;
  color: var(--ink-soft);
}

.join {
  padding-top: 2rem;
}

.join-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 246, 168, 0.95), transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(240, 228, 40, 0.55), transparent 45%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 28, 26, 0.08);
  box-shadow: var(--shadow);
}

.join-inner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
}

.join-inner p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 2.5rem clamp(1.1rem, 4vw, 3rem) 3rem;
  color: var(--ink-soft);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

.footer-note {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  font-weight: 700;
}

.footer-links a:hover {
  color: #8a7400;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

@media (max-width: 899px) {
  :root {
    --header-height: calc(min(105px, 24vw) * 511 / 991 + 0.8rem + 1px + env(safe-area-inset-top));
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  /* Float the logo over the dog run (no frosted bar). */
  .site-header {
    padding: 0.4rem 1rem;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
  }

  .logo-img {
    width: min(105px, 24vw);
  }

  .nav-cta {
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(31, 28, 26, 0.18);
  }

  /* Keep logo-over-dogrun, but leave a little room below so the page can scroll. */
  .hero {
    display: grid;
    place-items: center;
    height: calc(100svh - 5.5rem);
    min-height: calc(100svh - 5.5rem);
    overflow: visible;
    gap: 0;
    padding:
      calc(var(--header-height) + 0.4rem)
      1rem
      0;
  }

  .maze-stage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    flex: none;
    order: unset;
    overflow: hidden;
  }

  .hero-copy {
    order: unset;
    width: min(100%, 22rem);
    margin-inline: auto;
    padding: 0.8rem 0.6rem;
    background: none;
  }

  .brand-mark {
    width: min(28vw, 120px);
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .hero-support {
    font-size: 0.95rem;
  }

  .hero-support br {
    display: none;
  }
}

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

  .btn,
  .robot-card,
  .brand-mark {
    animation: none !important;
    transition: none !important;
  }
}

/* Robot detail modal */
body.modal-open {
  overflow: hidden;
}

.robot-modal[hidden] {
  display: none !important;
}

.robot-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.robot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 28, 26, 0.45);
}

.robot-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(90svh, 52rem);
  overflow: auto;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 253, 244, 0.97);
  box-shadow: var(--shadow);
  text-align: left;
}

.robot-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.robot-modal-visual {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.robot-modal-visual img {
  width: min(42%, 140px);
  height: auto;
}

.robot-modal-visual img.is-round {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  clip-path: circle(50% at 50% 50%);
}

.robot-modal-title {
  margin: 0.85rem 0 0.9rem;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.robot-modal-section {
  margin: 0 0 0.85rem;
}

.robot-modal-section h4 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9a7a00;
}

.robot-modal-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.robot-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  justify-content: center;
}

.robot-modal-links .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 8rem;
  border: 0;
  outline: none;
  box-shadow: 0 10px 22px rgba(31, 28, 26, 0.14);
}

.robot-modal-links .btn-primary {
  border: 0;
}

.robot-modal-links .btn-ghost {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(31, 28, 26, 0.12);
}

.robot-modal[data-robot-id="chisei"] .robot-modal-links .btn-primary {
  background: var(--chisei-mist);
  box-shadow: 0 10px 22px rgba(47, 158, 110, 0.28);
}

.robot-modal[data-robot-id="hibot"] .robot-modal-links .btn-primary {
  background: var(--hibot-mist);
  box-shadow: 0 10px 22px rgba(155, 124, 255, 0.28);
}

.robot-modal[data-robot-id="neoki"] .robot-modal-links .btn-primary {
  background: var(--neoki-mist);
  box-shadow: 0 10px 22px rgba(196, 164, 132, 0.3);
}

.robot-modal[data-robot-id="newki"] .robot-modal-links .btn-primary {
  background: var(--newki-mist);
  box-shadow: 0 10px 22px rgba(122, 132, 140, 0.28);
}

.robot-modal[data-robot-id="umi"] .robot-modal-links .btn-primary {
  background: var(--umi-mist);
  box-shadow: 0 10px 22px rgba(58, 168, 212, 0.28);
}

.robot-modal[data-robot-id="wandow"] .robot-modal-links .btn-primary {
  background: var(--wandow-mist);
  box-shadow: 0 10px 22px rgba(240, 196, 40, 0.32);
}

.robot-modal[data-robot-id="tsutsuki"] .robot-modal-links .btn-primary {
  background: var(--tsutsuki-mist);
  box-shadow: 0 10px 22px rgba(232, 145, 176, 0.3);
}

.robot-modal-link {
  display: inline-flex;
}

/* Discord-style conversation sample */
.robot-modal-chat {
  margin: 0 0 0.85rem;
}

.robot-modal-chat[hidden] {
  display: none !important;
}

.discord-chat {
  --discord-bg: #313338;
  --discord-bar: #2b2d31;
  --discord-text: #dbdee1;
  --discord-muted: #949ba4;
  --discord-accent: #5865f2;
  --discord-green: #23a559;
  display: flex;
  flex-direction: column;
  height: 17.5rem;
  overflow: hidden;
  border-radius: 14px;
  background: var(--discord-bg);
  color: var(--discord-text);
  box-shadow: 0 14px 30px rgba(31, 28, 26, 0.22);
  font-family: "gg sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.discord-chat-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: var(--discord-bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  font-weight: 700;
}

.discord-chat-hash {
  color: var(--discord-muted);
  font-weight: 800;
}

.discord-chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 0.85rem 1rem;
}

.discord-msg {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
}

.discord-msg.is-enter {
  animation: discord-msg-in 0.38s ease forwards;
}

@keyframes discord-msg-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.discord-msg-system {
  grid-template-columns: 1fr;
  justify-items: stretch;
  text-align: center;
  padding: 0.45rem 0.4rem;
}

.discord-msg-system-text {
  margin: 0;
  color: var(--discord-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.discord-msg-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.discord-msg-avatar.is-round {
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
}

.discord-msg-main {
  min-width: 0;
}

.discord-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.12rem;
}

.discord-msg-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-msg-role {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--discord-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.discord-msg-user .discord-msg-role {
  background: var(--discord-green);
}

.discord-msg-text,
.discord-msg-reply {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.discord-msg-reply {
  color: #b5bac1;
  border-left: 3px solid #4e5058;
  padding-left: 0.55rem;
}

.discord-msg-attach {
  margin-top: 0.35rem;
  max-width: 14rem;
}

.discord-msg-file {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--discord-muted);
  font-size: 0.75rem;
}

.discord-msg-attach img {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #1e1f22;
}

.discord-msg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  justify-content: center;
}

.discord-msg-bot .discord-msg-buttons,
.discord-msg-user .discord-msg-buttons {
  justify-content: flex-start;
}

.discord-action-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  background: var(--discord-accent);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.discord-action-btn:hover:not(:disabled):not(.is-static) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.discord-action-btn.is-static {
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.discord-action-btn.is-static:hover,
.discord-action-btn.is-static:focus {
  filter: none;
  transform: none;
  outline: none;
}

.discord-action-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.discord-action-btn.is-selected {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .discord-msg.is-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
