@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap");

:root {
  --ink: #14201c;
  --muted: #5a6b63;
  --line: rgba(20, 32, 28, 0.12);
  --paper: #f3f6f2;
  --card: #ffffff;
  --acc: #0d8a6a;
  --acc-deep: #066b52;
  --live: #e85d04;
  --warn: #9a6700;
  --err: #b42318;
  --soon: #8a9590;
  --glow: radial-gradient(1200px 600px at 10% -10%, rgba(13, 138, 106, 0.22), transparent 55%),
          radial-gradient(900px 500px at 90% 0%, rgba(232, 93, 4, 0.14), transparent 50%),
          linear-gradient(180deg, #e8f0ea 0%, #f3f6f2 40%, #eef2ec 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--glow);
  min-height: 100vh;
}
a { color: var(--acc-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0 0.4rem;
}
.brand {
  font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand i {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.18);
  display: inline-block;
}
.nav { display: flex; gap: 0.85rem; align-items: center; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--acc-deep); }

.hero {
  min-height: calc(100vh - 5rem);
  display: grid; align-content: center; gap: 1rem;
  padding: 2.5rem 0 4rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 8% -4% auto auto; width: min(52vw, 520px); height: min(52vw, 520px);
  background:
    radial-gradient(circle at 30% 30%, rgba(232,93,4,.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(13,138,106,.28), transparent 50%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; max-width: 34rem; }
.hero .brand { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 0.95; margin: 0; }
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0.2rem 0 0; letter-spacing: -0.02em;
}
.hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.5; margin: 0.35rem 0 0; max-width: 30rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.1rem; }

.btn {
  border: 0; border-radius: 999px; padding: 0.72rem 1.15rem;
  font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-deep); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #fee4e2; color: var(--err); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  margin: 1rem 0 1.25rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.panel h2 {
  margin: 0 0 0.35rem; font-size: 1.2rem; letter-spacing: -0.02em;
}
.panel .sub { color: var(--muted); margin: 0 0 1rem; line-height: 1.4; font-size: 0.95rem; }

.grid-nets {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.net {
  border: 1px solid var(--line); border-radius: 14px; padding: 0.95rem 1rem;
  background: #fbfcfb; display: flex; flex-direction: column; gap: 0.45rem; min-height: 150px;
}
.net.soon { background: #f0f2f0; color: var(--soon); }
.net strong { font-size: 1.02rem; color: inherit; }
.net p { margin: 0; font-size: 0.86rem; line-height: 1.35; flex: 1; }
.net .badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--acc-deep);
}
.net.soon .badge { color: var(--soon); }
.net .meta { font-size: 0.82rem; color: var(--muted); }
.net-actions { margin-top: 0.75rem; }
.net-actions .btn { font-size: 0.86rem; padding: 0.45rem 0.85rem; }
.dest-card .net-actions { margin-top: 0.85rem; }

label.field { display: block; font-weight: 700; font-size: 0.85rem; margin: 0.7rem 0 0.3rem; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; border: 1px solid #c9d4ce; border-radius: 12px;
  padding: 0.7rem 0.8rem; font: inherit; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; line-height: 1.35; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84rem; word-break: break-all; }

.flash {
  border-radius: 12px; padding: 0.75rem 0.9rem; margin: 0.8rem 0; font-weight: 600; font-size: 0.95rem;
}
.flash.ok { background: #e5f6ef; color: var(--acc-deep); }
.flash.err { background: #fee4e2; color: var(--err); }

.auth-box { width: min(420px, 100%); margin: 3rem auto 4rem; }
.auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 0 3rem;
  position: relative;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 12% auto auto 50%;
  transform: translateX(-50%);
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  background:
    radial-gradient(circle at 35% 35%, rgba(13,138,106,.22), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(232,93,4,.16), transparent 50%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.auth-shell > * { position: relative; z-index: 1; }
.auth-panel {
  width: min(440px, 100%);
  margin: 0;
  padding: 1.6rem 1.5rem 1.45rem;
  box-shadow: 0 18px 50px rgba(20, 32, 28, 0.08);
  animation: auth-rise 0.55s ease both;
}
.auth-kicker {
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 0.92rem;
  color: var(--acc-deep);
}
.auth-panel h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  margin: 0 0 0.4rem;
}
.auth-form { margin-top: 0.15rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-ttwrite {
  justify-content: center;
  background: linear-gradient(135deg, #12352c 0%, #0d8a6a 55%, #0a6f56 100%);
  color: #fff;
  border: 1px solid rgba(8, 40, 32, 0.35);
  box-shadow: 0 10px 24px rgba(13, 138, 106, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.auth-panel .btn-ttwrite { width: 100%; }
.btn-ttwrite:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13, 138, 106, 0.28);
  text-decoration: none;
  color: #fff;
}
.tt-mark {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: rgba(255,255,255,.14);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.foot { color: var(--muted); font-size: 0.8rem; padding: 2rem 0 2.5rem; text-align: center; }

.mode-row { display: grid; gap: 0.65rem; grid-template-columns: 1fr 1fr; }
.mode-opt {
  display: flex; gap: 0.65rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 0.9rem;
  cursor: pointer; background: #fbfcfb;
}
.mode-opt.on { border-color: rgba(13,138,106,.45); background: #eef8f4; }
.mode-opt strong { display: block; }
.mode-opt small { display: block; color: var(--muted); margin-top: 0.2rem; line-height: 1.35; }
.img-cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.img-head { margin: 0 0 0.55rem; font-size: 1rem; display: flex; justify-content: space-between; }
.img-head span { color: var(--muted); font-weight: 600; }
.room-status { display: inline-block; margin: 0 0 0.75rem; font-size: 0.92rem; }
.room-status.is-online { color: #1f6b3a; font-weight: 700; }
.room-status.is-offline { color: var(--muted); }
.admin-users { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-user {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.admin-user:first-child { border-top: 0; }
.admin-user .meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.admin-user .cta { margin-top: 0; }
.upload-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.7rem; }
.upload-pick { cursor: pointer; display: inline-flex; align-items: center; margin: 0; }
.upload-pick input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.upload-row.is-uploading .upload-pick { opacity: 0.65; pointer-events: none; }
.img-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.img-card {
  margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.img-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.img-card.nsfw img { filter: saturate(1.05); }
.img-card form { padding: 0.35rem; }
.img-card .btn { width: 100%; justify-content: center; padding: 0.4rem; font-size: 0.8rem; }
.attach-preview {
  margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
}
.attach-preview img {
  display: block; margin-top: 0.55rem; max-width: 180px; border-radius: 12px;
  border: 1px solid var(--line);
}
.badge-soft {
  display: inline-block; margin-left: 0.4rem; font-size: 0.75rem; font-weight: 700;
  color: var(--acc-deep); background: #e5f6ef; padding: 0.15rem 0.5rem; border-radius: 999px;
}
label.check { display: flex; gap: 0.45rem; align-items: center; margin: 0.75rem 0; font-weight: 600; font-size: 0.92rem; }

.toggle-row {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1rem; margin: 0.65rem 0; background: #fbfcfb;
  cursor: pointer;
}
.toggle-row input { margin-top: 0.25rem; }
.toggle-row strong { display: block; }
.toggle-row small { display: block; color: var(--muted); margin-top: 0.25rem; line-height: 1.35; }
.log-tail {
  margin: 0; max-height: 22rem; overflow: auto;
  background: #14201c; color: #d7ebe2;
  border-radius: 12px; padding: 0.85rem 1rem;
  font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}

/* Mobile shell + burger */
.burger {
  display: none; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255,255,255,.75); padding: 0.55rem;
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(20,32,28,.35); z-index: 40;
}
body.nav-open { overflow: hidden; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Marketing home */
.home-hero {
  position: relative;
  min-height: min(78vh, 640px);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  display: grid;
  align-items: end;
  background:
    var(--hero-img, none) center 18% / cover no-repeat,
    linear-gradient(135deg, #1a2e28, #0d8a6a);
  color: #fff;
  overflow: hidden;
}
.home-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,18,14,.88) 0%, rgba(8,18,14,.55) 48%, rgba(8,18,14,.25) 100%);
}
.home-hero__copy {
  position: relative; z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 2.75rem;
  max-width: 34rem;
  animation: auth-rise .55s ease both;
}
.home-hero__brand { color: #fff; font-size: clamp(2.4rem, 7vw, 3.8rem); }
.home-hero__brand i { box-shadow: 0 0 0 4px rgba(232,93,4,.35); }
.home-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  margin: 0.35rem 0 0; font-weight: 700; letter-spacing: -0.02em;
}
.home-hero__lead {
  margin: 0.65rem 0 0; color: rgba(255,255,255,.88);
  font-size: 1.05rem; line-height: 1.45;
}
.home-hero .btn-ghost {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35);
}

.home-section { padding: 2.25rem 0 0.5rem; }
.home-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.home-section__sub { color: var(--muted); margin: 0.4rem 0 1rem; max-width: 36rem; line-height: 1.45; }

.cadence {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cadence__item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.05rem;
}
.cadence__item strong {
  display: block; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--acc-deep);
}
.cadence__item span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

.dest-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.dest-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 0.95rem 1rem;
  background: #fbfcfb; min-height: 8.5rem;
}
.dest-card--soon { opacity: 0.72; background: #f0f2f0; }
.dest-card__badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--acc-deep);
  margin-bottom: 0.35rem;
}
.dest-card--soon .dest-card__badge { color: var(--soon); }
.dest-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.dest-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.home-band {
  display: grid; gap: 1.25rem; align-items: stretch;
  grid-template-columns: 1.15fr 0.85fr;
  margin: 2rem 0 0.5rem;
}
.home-band--flip { grid-template-columns: 0.85fr 1.15fr; }
.home-band__text {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.35rem 1.4rem;
}
.home-band__text h2 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0 0 0.45rem; font-size: 1.45rem;
}
.home-band__text p { margin: 0; color: var(--muted); line-height: 1.5; }
.home-band__photo {
  border-radius: 18px; min-height: 240px;
  background: #1a2420 center 15% / cover no-repeat;
  box-shadow: 0 14px 32px rgba(20,32,28,.12);
}

.steps {
  margin: 0.75rem 0 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 0.65rem;
}
.steps li {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 3rem; position: relative; line-height: 1.4;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0.85rem; top: 0.85rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 0.8rem; font-weight: 800;
  display: grid; place-items: center;
}

.tag-board { display: grid; gap: 1rem; }
.tag-cat h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  max-height: 14rem; overflow: auto; padding: 0.15rem;
}
.tag-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.35rem 0.65rem; font-size: 0.8rem; font-weight: 650; cursor: pointer;
}
.tag-chip:has(input:checked) {
  background: #e8f7f1; border-color: rgba(13,138,106,.45); color: var(--acc-deep);
}
.tag-chip.is-capped {
  opacity: 0.45; cursor: not-allowed;
}
.tag-chip input { margin: 0; }
.tag-cat h3 .count-pill { margin-left: 0.35rem; vertical-align: middle; }
.count-pill {
  display: inline-block; font-weight: 800; font-size: 0.85rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.count-pill.is-over { color: var(--err); border-color: #f3b4ae; }

.status-slot {
  border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem;
  background: #fbfcfb; margin: 0.65rem 0;
}
.status-slot label { display: flex; justify-content: space-between; align-items: baseline; }
.status-slot textarea {
  min-height: 70px; margin-top: 0.35rem;
  font-size: 0.95rem;
}
.ph-help code {
  display: inline-block; background: #e8f0ea; border-radius: 6px;
  padding: 0.1rem 0.35rem; margin: 0.1rem 0.15rem 0.1rem 0; font-size: 0.8rem;
}

.fab-everywhere {
  position: sticky; bottom: 0.85rem; z-index: 30;
  display: flex; justify-content: center; margin: 1.5rem 0 0.5rem;
  pointer-events: none;
}
.btn-blast {
  pointer-events: auto;
  background: linear-gradient(135deg, #e85d04, #c2410c);
  color: #fff; border: 0; border-radius: 999px;
  padding: 0.95rem 1.35rem; font-weight: 800; font-size: 0.98rem;
  box-shadow: 0 14px 34px rgba(232, 93, 4, 0.35);
  letter-spacing: -0.01em;
}
.btn-blast:hover { filter: brightness(1.05); }

@media (max-width: 860px) {
  .home-band, .home-band--flip { grid-template-columns: 1fr; }
  .home-band__photo { min-height: 200px; order: -1; }
  .cadence { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 300px);
    background: #f7faf7; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 1.1rem 1.5rem; z-index: 50;
    transform: translateX(104%); transition: transform .25s ease;
    box-shadow: -12px 0 40px rgba(20,32,28,.12);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a {
    padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  body { padding-bottom: 4.5rem; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 1.5rem; }
  .mode-row, .img-cols { grid-template-columns: 1fr; }
  .home-hero { min-height: 70vh; }
  .dest-grid { grid-template-columns: 1fr; }
}
