/* Network Collage – global styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0d0d12;
  color: #e0e0e8;
  min-height: 100vh;
}

a {
  color: #7eb8da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: rgba(255,255,255,0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Home page */
body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.header-hero {
  margin-bottom: 1.5rem;
}

.site-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-headline {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: lowercase;
  color: #f0f0f5;
}

.home .header-hero .site-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2.35rem, 9vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: none;
  color: #c9a86c;
  opacity: 1;
}

.home .header-hero .hero-headline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: lowercase;
  color: rgba(224, 224, 232, 0.88);
}

.tagline {
  margin: 0.75rem auto 0;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 28rem;
}

.tagline strong {
  color: #c9a86c;
  font-weight: 600;
}

.hub-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
}

.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 52px;
  max-width: 100px;
  height: 52px;
  padding: 0 0.35rem;
  border-radius: 26px;
  background: linear-gradient(145deg, #c9a86c, #8f7350);
  color: #1a1510;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(201, 168, 108, 0.35);
  z-index: 2;
  text-align: center;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hub-ring-1 {
  width: 90px;
  height: 90px;
}

.hub-ring-2 {
  width: 130px;
  height: 130px;
  border-style: dashed;
  opacity: 0.6;
}

.hub-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(126, 184, 218, 0.55);
  box-shadow: 0 0 8px rgba(126, 184, 218, 0.25);
}

.hub-node-1 { left: 50%; top: 4px; transform: translateX(-50%); }
.hub-node-2 { right: 8px; top: 28px; }
.hub-node-3 { right: 4px; bottom: 36px; }
.hub-node-4 { left: 50%; bottom: 4px; transform: translateX(-50%); }
.hub-node-5 { left: 4px; bottom: 36px; }
.hub-node-6 { left: 8px; top: 28px; }

.home-main {
  max-width: 440px;
  width: 100%;
}

.main {
  max-width: 440px;
  width: 100%;
}

.card-account {
  margin-bottom: 1rem;
  text-align: left;
}

.card-account-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card-account-desc {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.88;
}

.central-account-form {
  margin: 0;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.field-hint {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.62;
}

.username-field-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.username-field-row .input-with-prefix-username {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.username-field-row .btn-save-username {
  flex-shrink: 0;
  align-self: stretch;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.input-prefix {
  padding: 0.65rem 0 0.65rem 0.85rem;
  opacity: 0.65;
  font-weight: 600;
}

.input-with-prefix input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e0e0e8;
  font-size: 1rem;
  padding: 0.65rem 0.85rem 0.65rem 0.25rem;
  outline: none;
}

.input-with-prefix input::placeholder {
  color: rgba(224, 224, 232, 0.35);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-actions-hub {
  margin-bottom: 0;
}

.account-or {
  margin: 2rem 0 1.5rem;
  padding: 0.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  user-select: none;
}

.account-actions .btn {
  width: 100%;
  text-align: center;
}

.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-weight: 600;
  border: none;
}

.btn-instagram:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, #934ac4, #ff2d2d, #fdc055);
}

/* Simulated Instagram / Meta OAuth dialog (landing page) */
body.ig-oauth-open {
  overflow: hidden;
}

.ig-oauth-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
}

.ig-oauth-dialog {
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 36rem);
  overflow-y: auto;
  background: #fff;
  color: #262626;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.ig-oauth-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  border-bottom: 1px solid #efefef;
}

.ig-oauth-header-instagram {
  justify-content: center;
  padding: 1.25rem 1.25rem 0.75rem;
}

.ig-oauth-instagram-wordmark {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-oauth-login-form {
  margin: 0 0 0.75rem;
}

.ig-oauth-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8e8e8e;
}

.ig-oauth-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  background: #fafafa;
  color: #262626;
  outline: none;
}

.ig-oauth-input:focus {
  border-color: #a8a8a8;
  background: #fff;
}

.ig-oauth-login-error {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: #ed4956;
}

.ig-oauth-btn-login {
  width: 100%;
  margin-bottom: 0.25rem;
}

.ig-oauth-actions-secondary .ig-oauth-btn {
  width: 100%;
}

.ig-oauth-step[data-ig-step="login"] {
  padding-top: 0;
}

.ig-oauth-meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #385898;
}

.ig-oauth-app-name {
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-oauth-step {
  padding: 0 1.25rem 1.25rem;
}

.ig-oauth-step[data-ig-step="consent"] {
  padding-top: 0.75rem;
}

.ig-oauth-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #262626;
}

.ig-oauth-lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ig-oauth-permissions {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ig-oauth-permissions li {
  margin-bottom: 0.35rem;
}

.ig-oauth-disclosure {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #363636;
}

.ig-oauth-disclosure p {
  margin: 0 0 0.65rem;
}

.ig-oauth-disclosure p:last-child {
  margin-bottom: 0;
}

.ig-oauth-disclosure a {
  color: #385898;
}

.ig-oauth-actions {
  display: flex;
  gap: 0.5rem;
}

.ig-oauth-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.ig-oauth-btn-cancel {
  background: #efefef;
  color: #262626;
}

.ig-oauth-btn-cancel:hover {
  background: #dbdbdb;
}

.ig-oauth-btn-continue {
  background: #0095f6;
  color: #fff;
}

.ig-oauth-btn-continue:hover {
  background: #1877f2;
}

.ig-oauth-connecting,
.ig-oauth-done {
  padding: 2rem 0 1rem;
  text-align: center;
}

.ig-oauth-connecting p,
.ig-oauth-done p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #363636;
}

.ig-oauth-connecting-sub {
  font-size: 0.82rem !important;
  color: #8e8e8e !important;
}

.ig-oauth-spinner {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #efefef;
  border-top-color: #0095f6;
  border-radius: 50%;
  animation: ig-oauth-spin 0.8s linear infinite;
}

@keyframes ig-oauth-spin {
  to {
    transform: rotate(360deg);
  }
}

.ig-oauth-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: #00c853;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.ig-oauth-done .ig-oauth-btn-continue {
  margin-top: 1.25rem;
  max-width: 10rem;
  width: 100%;
}

.card-prototype {
  text-align: left;
}

.card-prototype-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card-prototype-desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.88;
}

.prototype-auth-form {
  margin: 0 0 0.5rem;
}

.prototype-auth-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #e0e0e8;
  outline: none;
}

.prototype-auth-form input[type="password"]:focus {
  border-color: rgba(201, 168, 108, 0.55);
}

.prototype-auth-submit {
  width: 100%;
}

.prototype-app-gated {
  display: none;
}

.prototype-app-gated.is-unlocked {
  display: block;
}

.prototype-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 8, 14, 0.92);
}

.prototype-gate-card {
  width: 100%;
  max-width: 22rem;
}

.prototype-gate-cancel {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(224, 224, 232, 0.65);
  text-decoration: none;
}

.prototype-gate-cancel:hover {
  color: #e0e0e8;
}

.prototype-gated-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.prototype-gated-links .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.prototype-footer-kiosk:not(.is-unlocked) {
  opacity: 0.45;
  cursor: pointer;
}

.card-invite {
  text-align: center;
}

.invite-lead {
  font-size: 1.05rem;
  margin-bottom: 1.25rem !important;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.home-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.home-actions .btn:hover {
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.invite-hint {
  margin: 1rem 0 0 !important;
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.45;
}

.invite-kiosk-line {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.82;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.home-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  max-width: 440px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.footer-legal a {
  color: rgba(224, 224, 232, 0.75);
}

.footer-legal a:hover {
  color: #e0e0e8;
}

.footer-sep {
  opacity: 0.4;
  user-select: none;
}

.footer-kiosk {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: #c9a86c;
  cursor: pointer;
  text-align: center;
}

.footer-kiosk:hover {
  color: #dfc99a;
}

.footer-credit {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.65;
  color: rgba(224, 224, 232, 0.9);
}

.footer-credit a {
  color: #c9a86c;
}

.footer-credit a:hover {
  color: #dfc99a;
}

.legal-consent {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.72;
}

.card-account .legal-consent {
  margin-top: 1.75rem;
}

.account-sync-row {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.account-sync-row .btn {
  width: 100%;
  text-align: center;
}

/* Empty status lines would still reserve .sync-status min-height — hide until there is a message */
.card-account .sync-status:empty {
  display: none;
  margin: 0 !important;
  min-height: 0 !important;
}

.card-account .account-sync-row + .sync-status:not(:empty) {
  margin-top: 0.5rem;
}

/* Sync line hidden when empty — space from button to hub-save messages */
.card-account .account-sync-row + .sync-status:empty + .sync-status:not(:empty) {
  margin-top: 0.5rem;
}

.card-account .sync-status:not(:empty) + .sync-status:not(:empty) {
  margin-top: 0.5rem;
}

.card-account .sync-status:not(:empty) {
  margin-bottom: 0;
}

.legal-consent a {
  color: #9ec4de;
}

/* Legal pages */
body.legal-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
}

.legal-main {
  max-width: 720px;
  width: 100%;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

.legal-nav a {
  color: #9ec4de;
}

.legal-nav a[aria-current="page"] {
  color: #e0e0e8;
  font-weight: 600;
  text-decoration: none;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.legal-meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: #c9a86c;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.65;
  font-size: 0.98rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-notice {
  padding: 1rem 1.1rem;
  background: rgba(201, 168, 108, 0.12);
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.legal-doc a.legal-email-link {
  color: #9ec4de;
  cursor: pointer;
  text-decoration: underline;
}

.legal-doc a.legal-email-link:hover {
  color: #b8daf0;
}

/* Kiosk page */
body.kiosk-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 2.5rem;
}

.kiosk-main {
  max-width: 480px;
}

.kiosk-form {
  margin: 0;
}

.kiosk-field {
  margin-bottom: 1.35rem;
}

.kiosk-field input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #e0e0e8;
  outline: none;
}

.kiosk-field input[type="text"]:focus {
  border-color: rgba(201, 168, 108, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 168, 108, 0.15);
}

.kiosk-field .input-with-prefix {
  margin-bottom: 0.35rem;
}

.kiosk-field .input-with-prefix input {
  font-size: 1.1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.kiosk-field-hint {
  margin: 0.35rem 0 0 !important;
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1.4;
}

.kiosk-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.kiosk-success-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #c9a86c;
}

.kiosk-success-msg {
  margin: 0 0 1.25rem !important;
  font-size: 1.05rem;
  line-height: 1.5;
}

.kiosk-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kiosk-success-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.kiosk-footer-link {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

.sync-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  opacity: 0.9;
  min-height: 1.4em;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.card p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #e0e0e8;
  transition: background 0.2s;
}

.btn:hover {
  background: rgba(255,255,255,0.18);
}

.btn-primary {
  background: #3a7ca5;
  color: #fff;
}

.btn-primary:hover {
  background: #4a8cb5;
}


/* Collage page – full-screen 3D */
body.collage-page,
body.swarm-page {
  overflow: hidden;
  height: 100vh;
}

#collage-container,
#swarm-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.back-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.back-link:hover {
  background: rgba(0,0,0,0.7);
  text-decoration: none;
}

.collage-title-card {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 5rem);
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(201, 168, 108, 0.22);
  border-radius: 8px;
  pointer-events: none;
  box-sizing: border-box;
}

.collage-title-line {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(224, 224, 232, 0.92);
  white-space: nowrap;
}

.collage-title-line + .collage-title-line {
  margin-top: 0.2rem;
}

.collage-title-line strong {
  color: #c9a86c;
  font-weight: 600;
}

.collage-title-line-event {
  padding-left: 0.15rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .collage-title-line,
  .collage-title-line-event {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.collage-links-warning {
  position: fixed;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #f5e6c8;
  background: rgba(120, 48, 32, 0.92);
  border: 1px solid rgba(201, 168, 108, 0.45);
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
}

.collage-kiosk-join-overlay {
  position: fixed;
  inset: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 8, 14, 0.72);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.collage-kiosk-join-overlay.visible {
  opacity: 1;
}

.collage-kiosk-join-overlay.fading {
  opacity: 0;
}

.collage-kiosk-join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0;
  text-align: center;
  color: #fff8e8;
  background: transparent;
  border: none;
  box-shadow: none;
}

.collage-kiosk-join-portrait-wrap {
  flex-shrink: 0;
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ee08a, #2db86a 45%, #1a9a52);
  box-shadow:
    0 0 0 3px rgba(94, 224, 138, 0.35),
    0 8px 36px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(61, 204, 122, 0.45);
  animation: collage-kiosk-join-ring-pulse 1.1s ease-in-out infinite;
}

.collage-kiosk-join-portrait {
  display: block;
  width: clamp(160px, 32vw, 280px);
  height: clamp(160px, 32vw, 280px);
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.collage-kiosk-join-portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff8e8;
  background: linear-gradient(145deg, rgba(42, 48, 56, 0.98), rgba(24, 28, 34, 0.99));
}

.collage-kiosk-join-message {
  margin: 0;
  font-size: clamp(1.2rem, 3.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.65);
}

.collage-kiosk-join-message strong {
  font-weight: 800;
}

@keyframes collage-kiosk-join-ring-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(94, 224, 138, 0.35),
      0 8px 36px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(61, 204, 122, 0.38);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(94, 224, 138, 0.55),
      0 10px 42px rgba(0, 0, 0, 0.6),
      0 0 64px rgba(94, 224, 138, 0.62);
    transform: scale(1.02);
  }
}

.year-indicator {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 12;
  pointer-events: none;
  text-align: right;
  min-width: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(201, 168, 108, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.year-indicator.visible {
  opacity: 1;
}

.collage-fs-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(224, 224, 232, 0.85);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.collage-fs-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.65);
}

.collage-fs-btn .fs-icon {
  width: 13px;
  height: 13px;
  display: block;
}

.collage-fs-btn .fs-exit[hidden] {
  display: none;
}

/* Node image curation */
body.curate-page {
  align-items: stretch;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.curate-main {
  width: 100%;
}

.curate-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.curate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.curate-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.curate-section-title {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c9a86c;
  letter-spacing: 0.02em;
}

.curate-section-title:first-child {
  margin-top: 0;
}

.curate-card-linked {
  opacity: 0.85;
}

.curate-entity-type-select {
  width: 100%;
  max-width: 280px;
  margin-bottom: 0.75rem;
}

.curate-card {
  margin-bottom: 0;
}

.curate-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.curate-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0f0f5;
}

.curate-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9a86c;
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.curate-badge-hidden {
  color: rgba(224, 180, 140, 0.92);
  border-color: rgba(160, 96, 72, 0.45);
}

.curate-card--hidden {
  opacity: 0.72;
  border-color: rgba(120, 72, 56, 0.45);
}

.curate-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.curate-muted {
  opacity: 0.55;
}

.curate-preview-row {
  margin-bottom: 1rem;
}

.curate-preview-wrap-round {
  border-radius: 50%;
}

.curate-card-kiosk .curate-preview-wrap-round {
  max-width: 160px;
}

.curate-preview-wrap {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.curate-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curate-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.6;
  padding: 0.75rem;
  text-align: center;
}

.curate-title-input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.curate-image-input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #e0e0e8;
  font-size: 0.95rem;
}

.curate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.curate-row-status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
}

.curate-status-error {
  color: #e8a0a0;
}

.curate-link-card {
  max-width: 520px;
}

.curate-link-row-custom {
  border-color: rgba(201, 168, 108, 0.45);
}

.curate-link-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f0f0f5;
}

.curate-link-hint {
  margin-top: 0;
}

.curate-link-slider-row {
  margin: 1rem 0;
}

.curate-link-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.curate-hub-pad-slider {
  flex: 1;
  accent-color: #c9a86c;
}

.curate-hub-pad-value {
  min-width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #c9a86c;
  font-weight: 600;
}

.curate-links-list {
  display: grid;
  gap: 1rem;
}

#curate-nodes-link-btn {
  margin-top: 0.5rem;
}
