:root {
  --bg: #0a0d18;
  --bg-soft: #10162a;
  --panel: rgba(13, 21, 40, 0.8);
  --panel-strong: rgba(17, 26, 48, 0.94);
  --text: #f8f3e8;
  --muted: #9ea9c3;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f8b84e;
  --coral: #ff6b57;
  --lime: #d4ff63;
  --cyan: #79d8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 87, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(121, 216, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #080b14 0%, #0d1220 48%, #121625 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

main {
  display: flex;
  flex-direction: column;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #ff7d40);
  color: #151515;
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  box-shadow: 0 14px 40px rgba(248, 184, 78, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.site-nav a,
.status-chip,
.eyebrow,
.section-heading p,
.sidebar-label,
.online-pill,
.chat-time,
.chat-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.status-chip {
  border: 1px solid rgba(212, 255, 99, 0.24);
  background: rgba(212, 255, 99, 0.08);
  color: var(--lime);
  padding: 11px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100svh - 92px);
  padding: 24px 0 36px;
}

.eyebrow,
.section-heading p,
.sidebar-label,
.chat-head p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.access-copy h3 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  max-width: 9ch;
}

.hero h1 span {
  color: var(--gold);
}

.hero-text {
  max-width: 48ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-actions a,
.chat-form button,
.access-form button,
#story-submit,
.ghost-button {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-actions a:hover,
.chat-form button:hover,
.access-form button:hover,
#story-submit:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-link,
.chat-form button,
.access-form button,
#story-submit {
  background: linear-gradient(135deg, var(--gold), #ff7d40);
  color: #191919;
}

.secondary-link {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.hero-art {
  position: relative;
  min-height: 680px;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.glow-a {
  width: 180px;
  height: 180px;
  top: 90px;
  right: 20px;
  background: rgba(255, 107, 87, 0.35);
}

.glow-b {
  width: 220px;
  height: 220px;
  left: 30px;
  bottom: 80px;
  background: rgba(121, 216, 255, 0.25);
}

.dojo-card,
.panel,
.sidebar-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.dojo-card {
  position: absolute;
  inset: 24px 0 24px 28px;
  border-radius: 34px;
  overflow: hidden;
  padding: 24px;
}

.dojo-topline,
.dojo-metrics,
.chat-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dojo-topline {
  color: var(--muted);
  font-size: 0.82rem;
}

.ninja-scene {
  position: relative;
  min-height: 470px;
  margin: 16px 0 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.65), rgba(5, 7, 14, 0.95));
}

.moon {
  position: absolute;
  top: 42px;
  right: 44px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(248, 184, 78, 0.7) 42%, rgba(248, 184, 78, 0.1) 68%, transparent 70%);
  box-shadow: 0 0 60px rgba(248, 184, 78, 0.26);
}

.ninja {
  position: absolute;
  inset: auto auto 54px 50%;
  width: 240px;
  height: 340px;
  transform: translateX(-50%);
  animation: floatNinja 4.6s ease-in-out infinite;
}

.ninja span {
  position: absolute;
  display: block;
}

.head {
  top: 36px;
  left: 74px;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(180deg, #161822, #07080b);
  border: 6px solid #262b38;
}

.eyes {
  top: 72px;
  left: 84px;
  width: 72px;
  height: 20px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 50%, var(--gold), transparent 18%),
    radial-gradient(circle at 80% 50%, var(--gold), transparent 18%),
    linear-gradient(180deg, #303847, #11161f);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.36);
}

.body {
  top: 132px;
  left: 62px;
  width: 118px;
  height: 128px;
  border-radius: 28px;
  background: linear-gradient(180deg, #eb503d, #8d2318);
  border: 8px solid #202434;
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, 0.22);
}

.arm,
.leg {
  background: linear-gradient(180deg, #212735, #07090f);
  border: 6px solid #2b3140;
}

.arm {
  top: 150px;
  width: 36px;
  height: 110px;
  border-radius: 22px;
}

.arm-left {
  left: 24px;
  transform: rotate(16deg);
}

.arm-right {
  right: 24px;
  transform: rotate(-18deg);
}

.leg {
  top: 252px;
  width: 42px;
  height: 88px;
  border-radius: 20px;
}

.leg-left {
  left: 72px;
}

.leg-right {
  right: 72px;
}

.brick-stack {
  position: absolute;
  bottom: 0;
  width: 184px;
  height: 110px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 10%),
    repeating-linear-gradient(
      90deg,
      rgba(248, 184, 78, 0.16),
      rgba(248, 184, 78, 0.16) 28px,
      rgba(255, 255, 255, 0.04) 28px,
      rgba(255, 255, 255, 0.04) 56px
    ),
    linear-gradient(180deg, #1d2741, #0a1020);
}

.stack-a {
  left: 0;
}

.stack-b {
  right: 0;
}

.dojo-metrics article {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dojo-metrics strong {
  font-family: "Russo One", sans-serif;
  font-size: 1.24rem;
}

.dojo-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

.community-panels {
  display: grid;
  gap: 18px;
}

.sidebar-card span,
.chat-time,
.member-note,
.access-feedback,
label,
input,
select,
textarea {
  color: var(--muted);
}

.community-panels {
  order: 1;
  margin-top: 22px;
  grid-template-columns: 0.9fr 1.1fr;
}

.hero {
  order: 2;
  margin-top: 64px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.sidebar-card,
.panel {
  border-radius: 28px;
  padding: 24px;
}
.chat-head h2 {
  margin: 10px 0 12px;
  font-size: 1.4rem;
}

.chat-label {
  color: var(--text);
  font-size: 0.78rem;
}

.member-panel,
.access-form {
  display: grid;
  gap: 14px;
}

.member-note,
.chat-welcome,
.member-summary span,
.notification-box span {
  line-height: 1.7;
}

.member-summary,
.notification-box {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.install-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.member-role {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 184, 78, 0.24);
  background: rgba(248, 184, 78, 0.1);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-summary h3,
.notification-box h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.member-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "Russo One", sans-serif;
  font-size: 1.2rem;
  color: #f8f3e8;
  background: linear-gradient(180deg, #f29b4b, #cf4d2f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16);
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(248, 184, 78, 0.54);
  box-shadow: 0 0 0 4px rgba(248, 184, 78, 0.08);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-head p,
.chat-head h2 {
  margin-top: 0;
}

.hero-notice-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(248, 184, 78, 0.22);
  background:
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.16), transparent 35%),
    rgba(255, 255, 255, 0.04);
}

.hero-notice-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
}

.hero-notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.announcement-rack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.story-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(121, 216, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(121, 216, 255, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.story-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.story-panel-head h3 {
  margin: 6px 0 0;
  font-size: 1.12rem;
}

.story-rail {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.story-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-height: 126px;
}

.story-card {
  min-width: 168px;
  min-height: 120px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 31, 58, 0.78), rgba(8, 13, 24, 0.96)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(121, 216, 255, 0.14), transparent 42%);
  pointer-events: none;
}

.story-card > * {
  position: relative;
  z-index: 1;
}

.story-card-add {
  border-style: dashed;
  align-content: center;
  justify-items: start;
}

.story-card-plus {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #ff7d40);
  color: #161616;
  font-family: "Russo One", sans-serif;
  font-size: 1.3rem;
}

.story-card strong {
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
}

.story-card small,
.story-card span {
  color: var(--muted);
  line-height: 1.45;
}

.story-card.story-unseen {
  border-color: rgba(212, 255, 99, 0.28);
  box-shadow: 0 0 0 2px rgba(212, 255, 99, 0.08);
}

.story-card.story-own {
  border-color: rgba(248, 184, 78, 0.2);
}

.story-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  padding: 2px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold), var(--coral));
}

.story-avatar-ring.is-seen {
  background: rgba(255, 255, 255, 0.1);
}

.story-avatar-ring .chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  font-size: 0.92rem;
}

.story-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.story-card-copy strong,
.story-card-copy small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  margin-top: 14px;
}

.story-form input {
  min-width: 0;
}

.story-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.announcement-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.announcement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.announcement-top strong {
  font-family: "Russo One", sans-serif;
  font-size: 0.96rem;
}

.announcement-top span,
.announcement-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.announcement-card p {
  margin: 0 0 8px;
  line-height: 1.65;
}

.tone-info {
  border-color: rgba(121, 216, 255, 0.24);
  background: rgba(121, 216, 255, 0.08);
}

.tone-urgent {
  border-color: rgba(255, 107, 87, 0.3);
  background: rgba(255, 107, 87, 0.1);
}

.tone-success {
  border-color: rgba(212, 255, 99, 0.26);
  background: rgba(212, 255, 99, 0.08);
}

.chat-welcome {
  display: inline-block;
  color: var(--muted);
  max-width: 38ch;
}

.online-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(212, 255, 99, 0.1);
  border: 1px solid rgba(212, 255, 99, 0.22);
  color: var(--lime);
  font-size: 0.76rem;
}

.chat-stream {
  display: grid;
  gap: 12px;
  min-height: 420px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.chat-recipient-bar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.chat-recipient-field {
  margin: 0;
}

.chat-recipient-field select {
  margin-top: 8px;
}

.chat-bubble {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-bubble-private {
  border-color: rgba(248, 184, 78, 0.24);
  background:
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.chat-bubble-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.chat-bubble-main {
  min-width: 0;
}

.chat-bubble p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.chat-route {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 184, 78, 0.22);
  background: rgba(248, 184, 78, 0.08);
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  color: #f8f3e8;
  background: linear-gradient(180deg, #f29b4b, #cf4d2f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.14);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.chat-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.file-button {
  cursor: pointer;
}

.chat-media {
  margin-top: 12px;
}

.chat-media video {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070f;
}

.call-panel {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.call-head h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

.call-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.call-video-card {
  display: grid;
  gap: 10px;
}

.call-video-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.call-video-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #05070f;
  object-fit: contain;
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.call-actions button {
  flex: 1 1 180px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.online-status-panel {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.online-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.online-status-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: "Russo One", sans-serif;
}

.online-status-stats {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.online-status-stats strong {
  font-family: "Russo One", sans-serif;
  font-size: 1.16rem;
}

.online-status-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.online-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.online-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.online-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(121, 216, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.online-card.is-live {
  border-color: rgba(212, 255, 99, 0.26);
  background:
    radial-gradient(circle at top right, rgba(212, 255, 99, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.online-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.online-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.online-card-user .chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0.82rem;
}

.online-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.online-card-copy strong,
.online-card-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-card-copy span,
.online-card-time,
.online-card-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.online-card-note {
  margin: 0;
  line-height: 1.55;
  min-height: 1.55em;
}

.feature-card {
  display: grid;
  gap: 14px;
}

.feature-header {
  display: grid;
  gap: 8px;
}

.feature-header strong {
  font-family: "Russo One", sans-serif;
  font-size: 1.08rem;
}

.feature-big {
  margin: 0;
  font-size: 1.45rem;
  color: var(--text);
}

.feature-meta,
.feature-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.16), transparent 34%),
    var(--panel);
}

.poll-options {
  display: grid;
  gap: 10px;
}

.poll-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 14px 16px;
}

.poll-option strong {
  color: var(--gold);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li {
  line-height: 1.5;
}

.feature-empty {
  color: var(--muted);
}

.link-list,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.link-chip {
  color: var(--text);
}

.tag-chip {
  color: var(--gold);
  border-color: rgba(248, 184, 78, 0.2);
  background: rgba(248, 184, 78, 0.08);
}

.access-feedback strong {
  color: var(--gold);
}

.story-viewer[hidden] {
  display: none;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.story-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 10, 0.8);
}

.story-viewer-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.16), transparent 28%),
    rgba(7, 11, 20, 0.97);
  box-shadow: var(--shadow);
}

.story-progress {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  margin-bottom: 14px;
}

.story-progress span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.story-progress span::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ff7d40);
}

.story-progress span.is-done::after,
.story-progress span.is-active::after {
  width: 100%;
}

.story-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.story-viewer-user,
.story-viewer-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-viewer-top-actions .ghost-button {
  width: auto;
}

.story-viewer-copy {
  display: grid;
  gap: 4px;
}

.story-viewer-copy strong {
  font-family: "Russo One", sans-serif;
}

.story-viewer-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.story-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.story-stage video {
  width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #04060c;
}

.story-nav-button {
  min-width: 88px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.story-caption-output {
  margin: 14px 0 8px;
  color: var(--text);
  line-height: 1.65;
  min-height: 1.4em;
}

@keyframes floatNinja {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .community-panels,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .online-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 8px;
  }

  .hero-art {
    min-height: 560px;
  }

  .dojo-card {
    inset: 0;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .story-rail {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .hero-art {
    min-height: 480px;
  }

  .ninja {
    transform: translateX(-50%) scale(0.84);
  }

  .dojo-metrics,
  .chat-form,
  .chat-recipient-bar,
  .hero-actions,
  .call-videos,
  .install-actions,
  .story-form,
  .story-stage {
    grid-template-columns: 1fr;
  }

  .chat-bubble-shell {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .dojo-metrics {
    display: grid;
  }

  .hero-points {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-viewer {
    padding: 14px;
  }

  .online-status-head {
    flex-direction: column;
  }

  .online-status-stats {
    justify-items: start;
    text-align: left;
  }

  .story-viewer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-viewer-top-actions {
    width: 100%;
  }

  .story-viewer-top-actions .ghost-button {
    flex: 1 1 0;
  }

  .online-list {
    grid-template-columns: 1fr;
  }

}
