:root{
  --red:#d42020;
  --red-glow:rgba(212,32,32,.45);
  --blue:#1a7ac4;
  --blue-deep:#0a4f8c;
  --ink:#111111;
  --panel:#141414;
  --gold:#c9a86a;
  --paper:#ffffff;
  --font-display:"Oswald",sans-serif;
  --font-body:"Barlow Semi Condensed",sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:#0d1216;
  font-family:var(--font-body);
  color:var(--ink);
  overflow:hidden;
}

/* ---------- Scenes & stage (16:9 letterbox-fit, markers stay aligned) ---------- */
.scene{
  position:fixed;inset:0;
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity .5s ease;
}
.scene.is-active{opacity:1;pointer-events:auto}
.stage{
  position:relative;
  width:min(100vw,177.78vh);
  aspect-ratio:16/9;
  transform-origin:center center;
  transition:transform 1.1s cubic-bezier(.55,.06,.35,1),opacity .9s ease;
  will-change:transform;
}
.stage-img{
  position:absolute;inset:0;width:100%;height:100%;
  user-select:none;-webkit-user-drag:none;
  display:block;
}
#hotel-view{background:#fff}
#hotel-view .stage{transition:transform 1.1s cubic-bezier(.16,.68,.32,1),opacity .9s ease}

/* fly-in states */
.stage.fly-out{transform:scale(3.2);opacity:0}
.stage.fly-in-start{transform:scale(.72);opacity:0}
.scene.fade-fast{transition:opacity .55s ease}

/* ---------- Hotspots ---------- */
.hotspot{
  position:absolute;left:var(--x);top:var(--y);
  transform:translate(-50%,-50%);
  width:44px;height:44px;
  background:none;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  z-index:5;
}
.hotspot-dot{
  width:17px;height:17px;
  background:var(--red);
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 0 0 0 var(--red-glow),0 2px 6px rgba(0,0,0,.45);
  transition:transform .25s ease;
}
.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot{
  animation:pulse 1.4s ease-out infinite;
  transform:scale(1.25);
}
.hotspot:focus-visible{outline:2px solid #fff;outline-offset:4px}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 var(--red-glow),0 2px 6px rgba(0,0,0,.45)}
  70%{box-shadow:0 0 0 16px rgba(212,32,32,0),0 2px 6px rgba(0,0,0,.45)}
  100%{box-shadow:0 0 0 0 rgba(212,32,32,0),0 2px 6px rgba(0,0,0,.45)}
}
.hotspot--active .hotspot-dot{animation:breathe 2.6s ease-in-out infinite}
@keyframes breathe{
  0%,100%{box-shadow:0 0 0 0 var(--red-glow),0 2px 6px rgba(0,0,0,.45)}
  50%{box-shadow:0 0 0 9px rgba(212,32,32,0),0 2px 6px rgba(0,0,0,.45)}
}
.hotspot--soon .hotspot-dot{
  background:#8a8a8a;border-color:rgba(255,255,255,.75);
  opacity:.85;
}
.hotspot--soon:hover .hotspot-dot,
.hotspot--soon:focus-visible .hotspot-dot{
  animation:none;transform:scale(1.15);
  box-shadow:0 0 0 7px rgba(255,255,255,.18),0 2px 6px rgba(0,0,0,.45);
}
/* labels */
.hotspot-label{
  position:absolute;bottom:calc(100% + 6px);left:50%;
  transform:translateX(-50%) translateY(4px);
  background:var(--panel);color:#fff;
  padding:7px 14px 8px;
  white-space:nowrap;text-align:left;
  opacity:0;pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.4);
  border-left:3px solid var(--red);
}
.hotspot-label strong{
  display:block;font-family:var(--font-display);
  font-weight:600;font-size:15px;letter-spacing:.06em;text-transform:uppercase;
}
.hotspot-label em{
  display:block;font-style:normal;font-size:11.5px;
  letter-spacing:.05em;color:var(--gold);
}
.hotspot--soon .hotspot-label{border-left-color:#8a8a8a}
.hotspot--soon .hotspot-label em{color:#b9b9b9}
.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label{
  opacity:1;transform:translateX(-50%) translateY(0);
}
.hotspot--equip .hotspot-label{border-left-color:var(--blue)}

/* ---------- City hint ---------- */
.city-hint{
  position:absolute;right:2.4%;bottom:4.5%;
  font-family:var(--font-display);
  font-size:clamp(11px,1.05vw,15px);
  font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:#fff;background:rgba(13,18,22,.62);
  padding:9px 18px;border-left:3px solid var(--red);
  backdrop-filter:blur(3px);
  animation:hintIn 1s .6s ease both;
}
@keyframes hintIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- Back button (sits over the baked-in deck button) ---------- */
.back-btn{
  position:absolute;left:5.2%;bottom:4%;
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.92);border:none;cursor:pointer;
  padding:6px 14px 6px 6px;border-radius:40px;
  font-family:var(--font-body);
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  transition:transform .2s ease,box-shadow .2s ease;
  z-index:6;
}
.back-btn:hover,.back-btn:focus-visible{transform:translateX(-3px);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.back-btn:focus-visible{outline:2px solid var(--blue)}
.back-btn-circle{
  width:38px;height:38px;border-radius:50%;
  background:#efefef;border:1px solid #d3d3d3;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;line-height:1;color:#4a4a4a;padding-bottom:3px;
}
.back-btn-text{font-size:13px;font-weight:600;line-height:1.25;text-align:left;color:#1a1a1a}

/* ---------- Equipment card ---------- */
.card-overlay{
  position:fixed;inset:0;z-index:50;
  background:rgba(10,14,18,.55);
  display:flex;align-items:center;justify-content:center;
  padding:4vmin;
  opacity:0;transition:opacity .3s ease;
}
.card-overlay.show{opacity:1}
.card{
  display:flex;flex-direction:row;
  width:min(880px,94vw);max-height:88vh;
  background:var(--panel);color:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  border-top:4px solid var(--red);
  position:relative;
  transform:translateY(18px);opacity:0;
  transition:transform .38s cubic-bezier(.2,.8,.3,1),opacity .3s ease;
  overflow:hidden;
}
.card-overlay.show .card{transform:none;opacity:1}
.card-media{
  flex:0 0 46%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  padding:14px;
}
.card-media img{max-width:100%;max-height:100%;display:block}
.card-body{padding:30px 30px 26px;overflow-y:auto}
.card-kicker{
  font-family:var(--font-display);font-size:11.5px;font-weight:500;
  letter-spacing:.22em;color:var(--gold);margin-bottom:8px;
}
.card-title{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(22px,2.6vw,32px);
  text-transform:uppercase;letter-spacing:.02em;line-height:1.08;
  margin-bottom:14px;
}
.card-desc{font-size:15.5px;line-height:1.55;color:#e4e4e4}
.card-apps{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14)}
.card-apps-label{
  display:block;font-family:var(--font-display);font-size:11px;
  letter-spacing:.2em;text-transform:uppercase;color:#9ec5e8;margin-bottom:5px;
}
.card-apps p{font-size:14px;line-height:1.5;color:#c9c9c9}
.card-close{
  position:absolute;top:8px;right:10px;
  background:none;border:none;color:#fff;
  font-size:30px;line-height:1;cursor:pointer;opacity:.75;z-index:2;
  transition:opacity .2s ease,transform .2s ease;
}
.card-close:hover,.card-close:focus-visible{opacity:1;transform:rotate(90deg)}
.card-close:focus-visible{outline:2px solid var(--gold)}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:6vh;transform:translateX(-50%) translateY(14px);
  background:var(--panel);color:#fff;
  padding:13px 26px;z-index:60;
  font-family:var(--font-display);font-size:14px;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;
  border-left:3px solid var(--gold);
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  opacity:0;transition:opacity .3s ease,transform .3s ease;
  pointer-events:none;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- Narrow screens ---------- */
@media (max-width:760px){
  .card{flex-direction:column;width:min(480px,94vw)}
  .card-media{flex:0 0 auto;max-height:34vh}
  .card-body{padding:22px 22px 20px}
  .hotspot-label strong{font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .stage,.scene,.card,.card-overlay{transition:none!important}
  .hotspot-dot{animation:none!important}
}
