/* Acrylux – instant AI preview */
.alxai { margin: 1.4rem 0 1.6rem; }
.alxai-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.15rem 1.4rem; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 1.55rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #ef233c 0%, #b5172a 100%);
  box-shadow: 0 6px 22px rgba(239, 35, 60, .35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.alxai-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(239, 35, 60, .45); }
.alxai-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.alxai-btn.is-stale { background: #111; box-shadow: inset 0 0 0 2px #ef233c; }
.alxai-spark { font-size: 1.3em; line-height: 1; }
.alxai-note { margin: .6rem 0 0; font-size: 1.2rem; opacity: .7; text-align: center; }

.alxai-stage { margin-top: 1.2rem; }
.alxai-scene {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 12px; background: #0d0d0f;
}
.alxai-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.alxai-art { position: absolute; overflow: hidden; background: #050505; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transition: box-shadow .35s ease; }
/* Artwork always fills the poster exactly, centred */
.alxai-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity .35s ease, filter .35s ease; }
.alxai-art .alxai-off { opacity: 0; }
.alxai-art.is-off .alxai-on { opacity: 0; }
.alxai-art.is-off .alxai-off { opacity: 1; }
/* No readable photo (e.g. HEIC outside Safari): dim the AI art instead */
.alxai-art.is-off.no-photo .alxai-on { opacity: 1; filter: brightness(.92); }
/* Acrylic face: faint diagonal sheen + soft inner edge */
.alxai-sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 26%, rgba(255,255,255,0) 44%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 8px rgba(0,0,0,.28); }
.alxai-art:not(.is-off) .alxai-sheen { opacity: .55; }

/* Artwork-only view */
.alxai-scene.is-art { background: radial-gradient(120% 95% at 50% 38%, #26262b 0%, #121215 55%, #09090a 100%); }
.alxai-scene.is-art .alxai-bg { display: none; }
.alxai-scene.is-art .alxai-art { left: 50%; top: 47%; transform: translate(-50%, -50%); height: 78%; width: auto; aspect-ratio: 2 / 3; }
.alxai-scene.is-art.is-h .alxai-art { width: 80%; height: auto; aspect-ratio: 3 / 2; }
.alxai-scene.is-art .alxai-art.is-drawn { filter: drop-shadow(0 2.6cqw 3cqw rgba(0,0,0,.7)); }

.alxai-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); text-align: center;
}
.alxai-loading[hidden] { display: none; }
.alxai-loading p { margin: 0; font-size: 1.35rem; letter-spacing: .03em; }
.alxai-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: #ef233c;
  animation: alxai-spin .9s linear infinite;
}
@keyframes alxai-spin { to { transform: rotate(360deg); } }

/* Room chips */
.alxai-rooms { display: flex; gap: .5rem; margin-top: .8rem; overflow-x: auto; scrollbar-width: none; }
.alxai-rooms[hidden] { display: none; }
.alxai-rooms button {
  flex: 1 0 auto; padding: .7rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: 1.25rem;
  white-space: nowrap; background: transparent; color: inherit; border: 1px solid rgba(127, 127, 127, .35);
}
.alxai-rooms button.is-active { background: #ef233c; border-color: #ef233c; color: #fff; font-weight: 700; }

/* Poster drawn to match the edition (rooms and artwork-only view) */
.alxai-scene { container-type: inline-size; }
/* Legacy: frameless acrylic, thin bright edge */
.alxai-art.is-drawn.ed-legacy { box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 1.2cqw 2.6cqw rgba(0,0,0,.45); }
/* Premiere: slim black frame */
.alxai-art.is-drawn.ed-premiere,
.alxai-art.is-drawn.ed-backglow { box-shadow: 0 0 0 max(3px, .9cqw) #0c0c0d, 0 0 0 calc(max(3px, .9cqw) + 1px) rgba(255,255,255,.07), 0 1.4cqw 3cqw rgba(0,0,0,.5); }
/* Lit: faint light spill on the wall */
.alxai-art.is-drawn.is-lit.ed-premiere { box-shadow: 0 0 0 max(3px, .9cqw) #0c0c0d, 0 0 4cqw .4cqw rgba(255,255,255,.07), 0 1.4cqw 3cqw rgba(0,0,0,.5); }
.alxai-art.is-drawn.is-lit.ed-legacy { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 4cqw .4cqw rgba(255,255,255,.07), 0 1.2cqw 2.6cqw rgba(0,0,0,.45); }
/* Backglow lit: halo behind the frame in the car's light colour (white headlights / red taillights) */
.alxai-art.is-drawn.is-lit.ed-backglow { box-shadow: 0 0 0 max(3px, .9cqw) #0c0c0d; }
.alxai-glow { position: absolute; pointer-events: none; display: block;
  box-shadow: 0 0 2.4cqw .9cqw rgba(var(--glow-rgb), .62), 0 0 8cqw 2.6cqw rgba(var(--glow-rgb), .26); }
.alxai-glow[hidden] { display: none; }
/* Artwork-only view has no glow element, so put the halo on the poster itself */
.alxai-scene.is-art .alxai-art.is-drawn.is-lit.ed-backglow { box-shadow: 0 0 0 max(3px, .9cqw) #0c0c0d, 0 0 3cqw 1.2cqw rgba(var(--glow-rgb), .55), 0 0 9cqw 3cqw rgba(var(--glow-rgb), .22); }

.alxai-dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .5rem; border-radius: 50%; background: #666; vertical-align: middle; }
.alxai-tabs button.is-active .alxai-dot { background: #ef233c; box-shadow: 0 0 8px #ef233c; }
.alxai-tabs button:disabled { opacity: .4; cursor: default; }
.alxai-rooms.is-dim button.is-active { background: transparent; color: #ef233c; }

.alxai-tabs { display: flex; gap: .5rem; margin-top: .8rem; }
.alxai-tabs button {
  flex: 1; padding: .75rem .5rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: 1.25rem;
  background: transparent; color: inherit; border: 1px solid rgba(127, 127, 127, .35);
}
.alxai-tabs button.is-active { border-color: #ef233c; color: #ef233c; font-weight: 700; }
.alxai-scene.is-loading ~ .alxai-tabs { opacity: .4; pointer-events: none; }
.alxai-caption { margin: .6rem 0 0; font-size: 1.2rem; opacity: .7; text-align: center; }
.alxai-error {
  margin: .9rem 0 0; padding: .9rem 1.1rem; border-radius: 8px; font-size: 1.3rem;
  background: rgba(239, 35, 60, .08); border: 1px solid rgba(239, 35, 60, .35);
}
/* "couldn't detect the LEDs" popup */
.alxai-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.6)}
.alxai-modal[hidden]{display:none}
.alxai-modal-card{width:100%;max-width:420px;padding:28px 24px 22px;border-radius:18px;background:#141414;color:#fff;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.5);font-family:inherit}
.alxai-modal-card h3{margin:0 0 10px;font-size:20px;line-height:1.25;color:#fff}
.alxai-modal-card p{margin:0 0 20px;font-size:15px;line-height:1.5;color:#c9c9c9}
.alxai-modal-go{display:block;width:100%;padding:14px 18px;border:0;border-radius:10px;background:#fff;color:#000;font:inherit;font-weight:700;cursor:pointer}
.alxai-modal-go:disabled{opacity:.6;cursor:wait}
.alxai-modal-alt{margin-top:12px;padding:6px;border:0;background:none;color:#c9c9c9;font:inherit;text-decoration:underline;cursor:pointer}
.alxai-modal-err{margin:12px 0 0!important;color:#ff8a8a!important;font-size:14px!important}
