:root {
  --bg: #12203a;
  --bg-soft: #172946;
  --surface: #1d3153;
  --text: #ebf2ff;
  --muted: #9eb0cc;
  --accent: #5cf2d6;
  --accent-2: #f6b73c;
  --danger: #ff7676;
  --success: #7ef7a9;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --space-1: 0.4rem;
  --space-2: 0.7rem;
  --space-3: 1rem;
  --space-4: 1.4rem;
  --space-5: 2rem;
  --transition: 200ms ease;
  --font-ui: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
}

html[data-theme="sunset"] {
  --bg: #1b1024;
  --bg-soft: #2a1637;
  --surface: #3b1d4d;
  --accent: #ffbc5c;
  --accent-2: #ff6b8a;
}

html[data-theme="forest"] {
  --bg: #0f1d1c;
  --bg-soft: #16322f;
  --surface: #1d4740;
  --accent: #87f0a4;
  --accent-2: #ffd966;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 10% 10%, rgba(92, 242, 214, 0.14), transparent 40%), var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}
.narrow { width: min(650px, 92vw); }
.section { padding: var(--space-5) 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 21, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: 0.8rem 0;
}
.nav-wrap nav { min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  color: var(--text);
}
.brand-name {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-mark {
  display: none !important;
}
.brand-badge,
.brand-initials,
.brand-avatar,
.brand > span:not(.brand-name) {
  display: none !important;
}
.nav-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 0.55rem;
}
.menu-block {
  position: relative;
}
.menu-block > summary {
  list-style: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
  padding: .55rem .65rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.menu-block > summary::-webkit-details-marker {
  display: none;
}
.menu-block > summary::after {
  content: "▾";
  float: right;
  opacity: .8;
}
.menu-block[open] > summary {
  border-color: rgba(92,242,214,.6);
  background: rgba(92,242,214,.12);
}
.menu-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  display: grid;
  gap: .15rem;
  z-index: 40;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(16, 27, 49, .98);
  box-shadow: var(--shadow);
  padding: .4rem;
}
.menu-dropdown a {
  display: block;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  padding: .45rem .55rem;
}
.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
  background: rgba(92,242,214,.16);
  text-decoration: none;
}
.menu-muted {
  color: var(--muted);
  font-size: .9rem;
  padding: .35rem .45rem;
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.notif-wrap {
  position: relative;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, 92vw);
  display: none;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.notif-wrap:hover .notif-dropdown,
.notif-wrap:focus-within .notif-dropdown {
  display: block;
}
.notif-dropdown a {
  display: grid;
  gap: .1rem;
  padding: .55rem .65rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}
.notif-dropdown a.new { background: rgba(92,242,214,.12); }
.notif-dropdown small { color: var(--muted); }
.user-chip {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.safe-image {
  background: rgba(255,255,255,.06);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 700;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-small { padding: 0.45rem 0.75rem; font-size: 0.92rem; }
.btn-large { padding: 0.8rem 1.1rem; font-size: 1rem; }

.hero {
  padding: 3.3rem 0 2rem;
  background: linear-gradient(180deg, rgba(92, 242, 214, 0.06), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: 1.1rem;
}
.eyebrow {
  display: inline-block;
  background: rgba(92, 242, 214, 0.18);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.86rem;
}
.hero h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.14)), var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.float-in {
  animation: floatIn 700ms ease both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.progress-demo div {
  height: 11px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.progress-demo i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.check-list { padding-left: 1.1rem; }
.stepper {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
}
.cta-row, .actions-inline, .upload-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
.card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: var(--space-3); }
.card h2, .card h3 { margin: 0 0 0.3rem; }
.card p { color: var(--muted); }
.card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.split-grid {
  display: grid;
  gap: 1rem;
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .25rem .6rem;
}

.conversation-box {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: .5rem;
  margin-bottom: .8rem;
}

.chat-row {
  max-width: 82%;
  border-radius: 12px;
  padding: .5rem .7rem;
  border: 1px solid rgba(255,255,255,.14);
}

.chat-row.me {
  justify-self: end;
  background: rgba(92,242,214,.16);
}

.chat-row.them {
  justify-self: start;
  background: rgba(255,255,255,.06);
}

.active-thread {
  border-color: rgba(92,242,214,.9) !important;
}

.role-help-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 18;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(12,18,34,.95);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.role-help-panel {
  position: fixed;
  left: 14px;
  bottom: 62px;
  z-index: 18;
  width: min(320px, 92vw);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: .8rem;
  box-shadow: var(--shadow);
}

@media (min-width: 920px) {
  .split-grid {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }

.panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.list-stack {
  display: grid;
  gap: .8rem;
}
.live-search-item small { color: var(--muted); }
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
}
.kpi-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.filter-bar {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr;
}
input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: .55rem .65rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(92,242,214,.42);
  outline-offset: 1px;
}
label { display: grid; gap: .33rem; margin: .35rem 0; }
.form-stack { display: grid; gap: .6rem; }
.compact { gap: .4rem; }
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .6rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tag, .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .8rem;
  padding: .2rem .55rem;
  background: rgba(255,255,255,.14);
}
.badge-draft { background: rgba(255,255,255,.22); }
.badge-testing { background: rgba(246,183,60,.25); }
.badge-review_required { background: rgba(246,183,60,.25); }
.badge-changes_requested { background: rgba(255,118,118,.22); }
.badge-approvable { background: rgba(92,242,214,.25); }
.badge-published { background: rgba(126,247,169,.26); color: #0e2b13; }
.badge-approved { background: rgba(126,247,169,.26); color: #0e2b13; }
.badge-pending { background: rgba(246,183,60,.28); color: #2f1f04; }
.badge-rejected { background: rgba(255,118,118,.28); color: #2f0f0f; }
.badge-spam { background: rgba(255,118,118,.36); color: #2f0f0f; }

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(92,242,214,.15), rgba(246,183,60,.14));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}

.builder-shell {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr;
}
.builder-shell-v2 .builder-editor {
  display: grid;
  gap: .8rem;
  align-content: start;
}
.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tab-btn {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: 999px;
  padding: .3rem .65rem;
  cursor: pointer;
}
.tab-btn.active {
  border-color: rgba(92,242,214,.7);
  background: rgba(92,242,214,.2);
}
.tab-panel {
  display: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .7rem;
  background: rgba(0,0,0,.1);
}
.tab-panel.active {
  display: grid;
  gap: .6rem;
}
.step-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.object-library {
  display: grid;
  gap: .6rem;
  max-height: 350px;
  overflow: auto;
}
.object-grid {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
}
.object-card {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: .35rem;
  display: grid;
  gap: .25rem;
  cursor: pointer;
  text-align: center;
}
.object-card img {
  width: 42px;
  height: 42px;
  margin: 0 auto;
}
.room-canvas-wrap {
  display: grid;
  gap: .4rem;
}
.room-canvas {
  position: relative;
  min-height: 230px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.24);
  background: radial-gradient(circle at 20% 20%, rgba(92,242,214,.14), rgba(0,0,0,.14));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.room-canvas.grid-on {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.canvas-object {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .2rem .45rem;
  font-size: .72rem;
  background: rgba(17,24,39,.85);
  color: #fff;
  cursor: grab;
  min-width: 52px;
}
.graph-map {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.12);
}
.graph-svg {
  width: 100%;
  height: 190px;
}
.graph-edge {
  fill: none;
  stroke: rgba(92,242,214,.9);
  stroke-width: 2;
}
.graph-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .75rem;
  background: rgba(23,35,63,.95);
  cursor: pointer;
  white-space: nowrap;
}
.graph-node.active {
  border-color: rgba(92,242,214,.8);
  box-shadow: 0 0 0 2px rgba(92,242,214,.2);
}
.preview-room-mini {
  position: relative;
  min-height: 130px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.15);
  margin-top: .55rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.preview-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(92,242,214,.85);
  color: #111;
  font-size: .65rem;
  padding: .12rem .38rem;
}
.media-status {
  display: inline-block;
  font-size: .68rem;
  margin-top: .2rem;
  padding: .08rem .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.media-status.pending { background: rgba(246,183,60,.3); color: #2f1f04; }
.media-status.approved { background: rgba(126,247,169,.32); color: #0f2d17; }
.media-status.rejected { background: rgba(255,118,118,.32); color: #320f0f; }
.template-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.template-card {
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.template-card:hover { transform: translateY(-2px); }
.template-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(92,242,214,.2) inset;
}
.builder-steps, .builder-editor, .builder-preview { min-height: 300px; }
.tour-active {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.step-item {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .5rem;
  background: rgba(0,0,0,.12);
  cursor: move;
}
.step-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(92,242,214,.2) inset;
}
.preview-box {
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 12px;
  padding: .9rem;
  background: rgba(0,0,0,.12);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .45rem;
  margin-top: .6rem;
}
.media-item {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.media-item.selected { border-color: var(--accent); }
.media-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.play-scene {
  --accent-play: var(--escape-accent, var(--accent));
  --bg-play: var(--escape-bg, var(--surface));
  font-family: var(--escape-font, var(--font-ui));
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border-radius: 18px;
  padding: .8rem;
}
.player-theme-light {
  --bg-play: #f4f7fb;
  --text-play: #0f172a;
}
.player-theme-dark {
  --bg-play: #101726;
  --text-play: #ebf2ff;
}
.play-layout {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr;
}
.play-head {
  display: grid;
  gap: .45rem;
  align-items: center;
}
.play-timers {
  display: inline-flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.timer-badge {
  font-size: .86rem;
  background: rgba(92,242,214,.18);
  border: 1px solid rgba(92,242,214,.35);
}
.timer-down {
  background: rgba(246,183,60,.2);
  border-color: rgba(246,183,60,.35);
}
.play-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
  margin: .4rem 0 .8rem;
}
.play-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #30f5d7, #f7b43f);
}
.room-stage-wrap {
  display: grid;
  gap: .5rem;
  margin-top: .7rem;
}
.room-stage {
  position: relative;
  min-height: 240px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.room-object {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(17,24,39,.86);
  color: #fff;
  font-size: .72rem;
  padding: .22rem .45rem;
  cursor: pointer;
}
.room-object.is-taken {
  opacity: .45;
  text-decoration: line-through;
  cursor: default;
}
.room-exits {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.hint-muted {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.object-inspector {
  margin-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: .6rem;
}
.play-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.14)), var(--bg-play);
  border-color: rgba(255,255,255,.14);
  color: var(--text-play, var(--text));
}
.play-image {
  margin-top: .7rem;
  border-radius: 10px;
}
#play-feedback { min-height: 2.2rem; }
.play-finish-banner {
  border: 1px solid rgba(126,247,169,.55);
  background: rgba(126,247,169,.18);
  border-radius: 12px;
  padding: .7rem .8rem;
  margin-bottom: .7rem;
}
.player-theme-light .play-panel,
.player-theme-light .panel {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15,23,42,.14);
}
.player-theme-light input,
.player-theme-light select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15,23,42,.2);
}
.player-theme-light .btn-ghost {
  border-color: rgba(15,23,42,.3);
  color: #0f172a;
}

.pagination {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pagination a {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: .35rem .6rem;
}
.pagination a.active {
  background: rgba(92,242,214,.2);
  border-color: rgba(92,242,214,.6);
}

.moderation-messages-page .panel {
  background: rgba(255,255,255,.08);
}

.acl-form {
  display: grid;
  gap: .8rem;
}
.acl-table-wrap {
  overflow: auto;
}
.acl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
.acl-table th, .acl-table td {
  border: 1px solid rgba(255,255,255,.12);
  padding: .45rem .5rem;
  vertical-align: middle;
}
.acl-table th {
  position: sticky;
  top: 0;
  background: rgba(17,30,52,.96);
  z-index: 1;
}
.acl-col-head {
  display: grid;
  gap: .35rem;
  justify-items: center;
}
.acl-cell {
  text-align: center;
}
.acl-table small {
  display: block;
  color: var(--muted);
}

.toast {
  width: min(540px, 92vw);
  margin: .65rem auto 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  padding: .65rem .8rem;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  background: rgba(0,0,0,.32);
  animation: toastIn 180ms ease;
}
.toast-success { border-color: rgba(126,247,169,.7); }
.toast-error { border-color: rgba(255,118,118,.8); }
.toast-info { border-color: rgba(92,242,214,.8); }
.toast-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.collection-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stepper-rail {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.stepper-rail a {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .2rem .55rem;
}
.stepper-rail a.active {
  background: rgba(92,242,214,.2);
  border-color: rgba(92,242,214,.6);
}
.setup-checks {
  margin: .4rem 0 1rem;
  padding-left: 1.2rem;
}
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.confetti-host {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.confetti-host i {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 16px;
  opacity: .85;
  border-radius: 2px;
  animation: confettiFall 1.1s ease forwards;
}
@keyframes confettiFall {
  to {
    transform: translateY(85vh) rotate(280deg);
    opacity: 0;
  }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-grid {
  display: grid;
  gap: .9rem;
}
.detail-cover {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.breadcrumbs {
  font-size: .86rem;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: 1rem 0;
}

@media (min-width: 720px) {
  .user-chip { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .play-layout { grid-template-columns: 1.2fr .8fr; }
  .play-head {
    grid-template-columns: 1fr auto auto;
  }
  .builder-shell { grid-template-columns: 220px 1fr 290px; }
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .nav-wrap nav {
    grid-column: 1 / -1;
    order: 3;
  }
  .nav-blocks {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
  .menu-dropdown {
    min-width: 190px;
  }
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { grid-template-columns: 2fr repeat(5, 1fr) auto; }
}

@media (max-width: 719px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .nav-wrap nav { order: 2; }
  .nav-actions { order: 3; }
  .nav-blocks {
    grid-template-columns: 1fr;
  }
  .menu-dropdown {
    position: static;
    min-width: 0;
    margin-top: .4rem;
  }
  .menu-block > summary::after {
    content: "";
  }
  .builder-steps, .builder-editor, .builder-preview {
    min-height: auto;
  }
  .panel.collapsed > *:not(h2) {
    display: none;
  }
  .play-head .btn {
    width: 100%;
  }
}
