/* Main Hall B — a 3D hall you open, then step into its rooms. CSS 3D, no libraries. */
.hb { --rx: 46deg; --rz: -90deg; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hb__stage { position: relative; min-height: 640px; border-radius: 16px; border: 1px solid rgba(10,26,40,.14); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #1c3a55 0%, #0a1a28 70%); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.hb__stage:active { cursor: grabbing; }
.hb__scene { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 30%; }
.hb__world { position: absolute; left: 50%; top: 56%; width: 640px; height: 400px; margin: -200px 0 0 -320px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)) scale(calc(var(--sc, 1) * var(--base, 1))); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.hb[data-dragging] .hb__world { transition: none; }
.hb[data-state="room"] .hb__world { --sc: 1.12; }
.hb * { transform-style: preserve-3d; }

/* floor + shadow */
.hb__floor { position: absolute; inset: -28px; background: #e9eff5; border-radius: 8px; transform: translateZ(-1px); box-shadow: 0 60px 80px rgba(0,0,0,.5); }
.hb__grid { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(10,26,40,.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(10,26,40,.05) 0 1px, transparent 1px 24px), #f4e9c8; border: 3px solid #0a1a28; }

/* boxes: .hb__box has w/d/h as custom props; faces are positioned in 3D */
.hb__box { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--d); transform: translateZ(var(--z, 0px)); transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.hb__box > i { position: absolute; display: block; backface-visibility: visible; }
.hb__box .t { left: 0; top: 0; width: var(--w); height: var(--d); transform: translateZ(var(--h)); background: var(--c); }
.hb__box .f { left: 0; top: 0; width: var(--w); height: var(--h); transform: translate3d(0, var(--d), 0) rotateX(90deg); transform-origin: 0 0; background: var(--c); filter: brightness(.82); }
.hb__box .r { left: 0; top: 0; width: var(--d); height: var(--h); transform: translate3d(var(--w), 0, 0) rotateZ(90deg) rotateX(90deg); transform-origin: 0 0; background: var(--c); filter: brightness(.62); }

/* walls and roof */
.hb__wall { position: absolute; left: 0; top: 0; background: linear-gradient(#37546c, #1b3248); opacity: .94; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s; transform-origin: 0 0; }
.hb__wall--n { width: 640px; height: 70px; transform: rotateX(90deg); }
.hb__wall--w { width: 400px; height: 70px; transform: rotateZ(90deg) rotateX(90deg); }
.hb__wall--s { width: 640px; height: 70px; transform: translate3d(0, 400px, 0) rotateX(90deg); }
.hb__wall--e { width: 400px; height: 70px; transform: translate3d(640px, 0, 0) rotateZ(90deg) rotateX(90deg); }
.hb__wall--s, .hb__wall--e { background: linear-gradient(#4b6d8a, #27445c); }
.hb[data-state="open"] .hb__wall, .hb[data-state="room"] .hb__wall { opacity: .55; }
.hb[data-state="open"] .hb__wall--s, .hb[data-state="room"] .hb__wall--s { transform: translate3d(0, 400px, 0) rotateX(90deg) scaleY(.35); }
.hb[data-state="open"] .hb__wall--e, .hb[data-state="room"] .hb__wall--e { transform: translate3d(640px, 0, 0) rotateZ(90deg) rotateX(90deg) scaleY(.35); }
.hb__roof { position: absolute; left: -10px; top: -10px; width: 660px; height: 420px; transform: translateZ(74px); background: linear-gradient(135deg, #5f86a6, #2f5373); border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s; cursor: pointer; }
.hb[data-state="open"] .hb__roof, .hb[data-state="room"] .hb__roof { transform: translateZ(330px); opacity: 0; pointer-events: none; }

/* rooms */
.hb__room { cursor: pointer; --c: rgba(82,136,176,.85); }
.hb__room:hover, .hb__room:focus-visible { --c: #7fb0d4; outline: none; }
.hb__room.is-on { --z: 0px; --c: #7fb0d4; }
.hb[data-state="room"] .hb__room:not(.is-on) { opacity: .45; }
.hb[data-state="closed"] .hb__room, .hb[data-state="closed"] .hb__lab:not(.hb__lab--hall), .hb[data-state="closed"] .hb__stand { opacity: 0; pointer-events: none; }
.hb__room--stage { --c: rgba(47,102,147,.9); } .hb__room--stage:hover { --c: #5288b0; } .hb__room--stage.is-on { --c: #5288b0; }
.hb__room--aisle { --c: rgba(245,154,12,.55); } .hb__room--aisle:hover, .hb__room--aisle.is-on { --c: #f5b13d; }
.hb__room--reg { --c: rgba(138,28,28,.9); } .hb__room--reg:hover, .hb__room--reg.is-on { --c: #c33a3a; }
.hb__stand { --c: #f59a0c; --h: 14px; transition: opacity .5s; }
.hb__seat { --c: #17324a; --h: 5px; }
.hb__stage-p { --c: #0a1a28; --h: 14px; }

/* labels stay facing the viewer */
.hb__lab { position: absolute; left: var(--x); top: var(--y); transform: translateZ(var(--z, 40px)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)); transform-origin: 0 100%; transition: opacity .5s; pointer-events: none; }
.hb__lab span { display: block; transform: translate(-50%, -100%); padding: 8px 12px; border-radius: 8px; background: #fff; color: #0a1a28; font: 600 13px/1.2 "Outfit", sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.hb__lab small { display: block; font-weight: 400; font-size: 11px; color: #4a5a6a; margin-top: 2px; }
.hb__lab--hall span { background: #0a1a28; color: #fff; font-size: 15px; padding: 12px 16px; }
.hb__lab--hall small { color: rgba(255,255,255,.7); }
.hb[data-state="open"] .hb__lab--hall, .hb[data-state="room"] .hb__lab--hall { opacity: 0; }

/* controls */
.hb__ui { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; }
.hb__ui > * { pointer-events: auto; }
.hb__crumb { display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 9999px; background: rgba(255,255,255,.12); color: #fff; font: 500 13px/1.2 "Outfit", sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hb__crumb button { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.hb__rot { display: flex; gap: 4px; }
.hb__rot button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.hb__rot button:hover { background: #fff; color: #0a1a28; }
.hb__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 8px 16px; border-radius: 9999px; background: #fff; color: #0a1a28; font: 500 13px/1.2 "Outfit", sans-serif; white-space: nowrap; }

/* detail popup */
.hb__panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid rgba(10,26,40,.14); color: #0a1a28; min-height: 640px; max-height: 760px; overflow-y: auto; }
.hb__panel h3 { margin: 0; font: 700 24px/1.2 "Outfit", sans-serif; }
.hb__k { margin: 0; font: 600 12px/1.4 "Outfit", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #2f6693; }
.hb__p { margin: 0; font: 400 14px/1.5 "Outfit", sans-serif; color: #4a5a6a; }
.hb__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hb__tabs button { padding: 8px 16px; border-radius: 9999px; border: 1px solid rgba(10,26,40,.16); background: #fff; font: 500 13px/1.2 "Outfit", sans-serif; color: #0a1a28; cursor: pointer; }
.hb__tabs button[aria-selected="true"] { background: #0a1a28; color: #fff; border-color: #0a1a28; }
.hb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hb__ses { padding: 16px; border-radius: 12px; background: #f3f6fb; display: grid; gap: 8px; }
.hb__ses summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.hb__ses summary::-webkit-details-marker { display: none; }
.hb__time { font: 600 12px/1.3 "Outfit", sans-serif; color: #2f6693; }
.hb__ses b { font: 600 15px/1.35 "Outfit", sans-serif; }
.hb__ses small { font: 400 13px/1.4 "Outfit", sans-serif; color: #4a5a6a; }
.hb__talks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hb__talks li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font: 400 13px/1.4 "Outfit", sans-serif; }
.hb__talks time { color: #2f6693; font-weight: 600; }
.hb__talks em { display: block; font-style: normal; color: #4a5a6a; }
.hb__ppl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 8px; }
.hb__ppl a { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; color: inherit; font: 500 12px/1.3 "Outfit", sans-serif; }
.hb__ppl img, .hb__ppl .ini { width: 56px; height: 56px; border-radius: 9999px; object-fit: cover; background: #dfe8f1; display: grid; place-items: center; font-weight: 600; color: #2f6693; }
.hb__crs { padding: 16px; border-radius: 12px; border: 1px solid rgba(10,26,40,.12); display: grid; gap: 4px; }
.hb__crs b { font: 600 15px/1.35 "Outfit", sans-serif; }
.hb__ex { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(10,26,40,.12); }
.hb__ex img { width: 56px; height: 36px; object-fit: contain; }
.hb__ex b { font: 600 14px/1.3 "Outfit", sans-serif; } .hb__ex small { display: block; font: 400 12px/1.3 "Outfit", sans-serif; color: #4a5a6a; }
.hb__rooms { display: grid; gap: 8px; }
.hb__rooms button { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(10,26,40,.14); background: #fff; font: inherit; cursor: pointer; display: grid; gap: 2px; color: #0a1a28; }
.hb__rooms button:hover { border-color: #5288b0; background: #f2f6fa; }
.hb__rooms b { font: 600 15px/1.3 "Outfit", sans-serif; } .hb__rooms small { font: 400 12px/1.3 "Outfit", sans-serif; color: #4a5a6a; }

@media (max-width: 960px) {
  .hb[data-state="room"] .hb__world { --sc: 1; }
  .hb { grid-template-columns: 1fr; }
  .hb__stage { min-height: 460px; }
  .hb__world { top: 52%; }
  .hb__panel { min-height: 0; max-height: none; }
  .hb__hint { white-space: normal; text-align: center; width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { .hb__world, .hb__roof, .hb__box, .hb__wall { transition: none; } }

/* the floor plan is the first view; only Main Hall B is live */
.hb__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: #fff; transition: opacity .6s ease; }
.hb[data-state="map"] .hb__stage { background: #fff; cursor: default; }
.hb[data-state]:not([data-state="map"]) .hb__map { opacity: 0; pointer-events: none; }
.hb[data-state="map"] .hb__scene { opacity: 0; pointer-events: none; }
.hb__scene { transition: opacity .7s ease .2s; }
.hb__zone { fill: rgba(47,102,147,.14); stroke: #2f6693; stroke-width: 5; stroke-dasharray: 18 12; cursor: pointer; transition: fill .2s; outline: none; animation: hbpulse 2.4s ease-in-out infinite; }
.hb__zone:hover, .hb__zone:focus-visible { fill: rgba(47,102,147,.32); stroke-dasharray: none; animation: none; }
@keyframes hbpulse { 50% { fill: rgba(47,102,147,.28); } }
.hb__zlab { pointer-events: none; }
.hb__zlab rect { fill: #0a1a28; }
.hb__zlab text { fill: #fff; font: 600 30px "Outfit", system-ui, sans-serif; }
.hb[data-state="map"] .hb__crumb { background: #0a1a28; }
.hb[data-state="map"] .hb__rot { display: none; }
.hb[data-state="map"] .hb__hint { background: #0a1a28; color: #fff; }
.hb__ui, .hb__hint { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .hb__zone { animation: none; } }

/* floor plan view: the plan takes the full width, the note sits under it */
@media (min-width: 961px) {
  .hb[data-state="map"] { grid-template-columns: minmax(0, 1fr); }
  .hb[data-state="map"] .hb__stage { min-height: 600px; }
  .hb[data-state="map"] .hb__panel { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
  .hb[data-state="map"] .hb__panel h3 { flex: 1 1 100%; }
  .hb[data-state="map"] .hb__panel .hb__p { flex: 1 1 420px; }
}

/* ---- exhibition area in 3D (client, 25 Nov): booths, not a hall ---- */
html body .hb__zlab { pointer-events: auto; cursor: pointer; outline: none; }
html body .hb__zlab:hover rect, html body .hb__zlab:focus-visible rect { fill: #2F6693; }
html body .hb__zone { fill: rgba(47,102,147,.08); stroke-width: 4; }
html body .hb__glass { pointer-events: none; }
html body .hb__desk { pointer-events: none; }
html body .hb__lab--n { pointer-events: none; }
html body .hb__lab--zone span { padding: 4px 10px; font-size: 12px; background: #0a1a28; color: #fff; }
html body .hb__tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html body .hb__tiers li { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 12px; background: #f3f6fb; }
html body .hb__tiers li b { font-size: 16px; font-weight: 600; }
html body .hb__tiers li > span:last-child { grid-column: 1 / -1; font-size: 13px; color: #4a5a6a; }
html body .hb__h4 { margin: 8px 0 0; font: 600 18px/1.3 "Outfit", sans-serif; }
html body .hb__booth-card { display: grid; gap: 12px; }
html body .hb__booth-card .bmtip__k { margin: 0; }
html body .hb__booth-card .bmtip__price { font-size: 32px; }
html body .bmtip__facts { margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
html body .bmtip__facts div { display: grid; gap: 2px; }
html body .bmtip__facts dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7a8a; }
html body .bmtip__facts dd { margin: 0; font-size: 14px; font-weight: 500; color: #0A1A28; }

@media (min-width: 961px) {
  html body .hb[data-state="map"] .hb__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; flex-direction: unset; }
  html body .hb[data-state="map"] .hb__panel .hb__pcol { display: grid; gap: 12px; align-content: start; }
  html body .hb[data-state="map"] .hb__panel h3 { flex: none; }
}
html body .hb__pcol { display: grid; gap: 12px; align-content: start; }
html body .hb__pcol:empty { display: none; }

/* ---- 3D exhibition area v2: booth stands, tier filter, booth finder ---- */
html body .hb__world { transform: rotateX(var(--rx)) rotateZ(var(--rz)) scale(calc(var(--zm, 1) * var(--base, 1))) translate(var(--tx, 0px), var(--ty, 0px)); }
html body .hb__box .t { filter: brightness(var(--br, 1)); }
html body .hb__box .f { filter: brightness(calc(.82 * var(--br, 1))); }
html body .hb__box .r { filter: brightness(calc(.62 * var(--br, 1))); }
html body .hb__stand { position: absolute; width: 34px; height: 19px; cursor: pointer; outline: none; transform: translateZ(var(--z, 0px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
html body .hb__pf { --c: color-mix(in srgb, var(--tc) 32%, #fffdf5); }
html body .hb__bw { --c: var(--tc); }
html body .hb__ct { --c: color-mix(in srgb, var(--tc) 70%, #fff); }
html body .hb__stand.is-hot, html body .hb__stand:focus-visible { --z: 12px; --br: 1.22; }
html body .hb__stand.is-on { --z: 18px; --br: 1.3; }
html body .hb__stand.is-on .hb__pf, html body .hb__stand.is-hot .hb__pf { --c: #fff3c4; }
html body .hb__stand.is-dim { pointer-events: none; }
html body .hb__stand.is-dim .hb__box > i { opacity: .16; }
html body .hb__stand.is-dim .hb__lab { opacity: 0; }
html body .hb[data-state="room"] .hb__stand:not(.is-on) .hb__box > i { opacity: .38; }
html body .hb[data-state="room"] .hb__stand:not(.is-on) .hb__lab { opacity: .25; }
/* number badge; it opens into the booth's name + price on hover */
html body .hb__lab--n { pointer-events: none; z-index: 5; }
html body .hb__lab--n span { display: inline-grid; justify-items: center; gap: 0; padding: 0; min-width: 26px; height: 26px; align-content: center; border-radius: 9999px; background: #fff; color: #0a1a28; box-shadow: 0 3px 10px rgba(0,0,0,.35); font: 600 12px/1 "Outfit", sans-serif; border: 2px solid var(--tc); }
html body .hb__lab--n b { font-weight: 700; padding-inline: 4px; }
html body .hb__lab--n em { display: none; font-style: normal; font-weight: 500; font-size: 11px; white-space: nowrap; padding: 4px 10px 6px; color: #33414f; }
html body .hb__stand.is-hot .hb__lab--n span, html body .hb__stand.is-on .hb__lab--n span { border-radius: 12px; height: auto; background: #0a1a28; color: #fff; padding-top: 4px; }
html body .hb__stand.is-hot .hb__lab--n em, html body .hb__stand.is-on .hb__lab--n em { display: block; color: rgba(255,255,255,.82); }
html body .hb__stand.is-hot { z-index: 6; }
/* tier filter on the stage */
html body .hb__filters { position: absolute; z-index: 3; left: 16px; top: 64px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 32px); }
html body .hb__filters button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,26,40,.62); color: #fff; font: 500 13px/1.2 "Outfit", sans-serif; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html body .hb__filters button i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
html body .hb__filters button:hover { background: rgba(255,255,255,.2); }
html body .hb__filters button[aria-pressed="true"] { background: #fff; color: #0a1a28; border-color: #fff; }
html body .hb[data-state="map"] .hb__filters { display: none; }
/* booth finder */
html body .hb__find { display: grid; gap: 16px; overflow-y: auto; }
html body .hb__fgh { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font: 500 13px/1.3 "Outfit", sans-serif; color: #4a5a6a; }
html body .hb__fgh i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
html body .hb__fgh b { color: #0a1a28; font-weight: 600; }
html body .hb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body .hb__chip { min-width: 44px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(10,26,40,.16); border-bottom: 3px solid var(--tc); background: #fff; color: #0a1a28; font: 600 14px/1 "Outfit", sans-serif; cursor: pointer; transition: background .15s, color .15s; }
html body .hb__chip:hover, html body .hb__chip:focus-visible { background: #0a1a28; color: #fff; outline: none; }
html body .hb__pair { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff7e0; color: #7a5a10; font: 500 13px/1.4 "Outfit", sans-serif; }
/* the 3D view gets more of the width */
@media (min-width: 961px) {
  html body .hb:not([data-state="map"]) { grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); }
  html body .hb:not([data-state="map"]) .hb__stage { min-height: 720px; }
  html body .hb:not([data-state="map"]) .hb__panel { min-height: 720px; max-height: 720px; }
}
@media (max-width: 960px) { html body .hb__stage { min-height: 520px; } html body .hb__filters { top: 60px; } }

html body .hb__world { top: calc(50% + 24px); }

@media (max-width: 720px) {
  html body .hb__ui { left: 12px; right: 12px; top: 12px; }
  html body .hb__crumb { padding: 8px 12px; font-size: 12px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html body .hb__rot button { width: 36px; height: 36px; border-radius: 10px; }
  html body .hb__rot [data-rot="l"], html body .hb__rot [data-rot="r"] { display: none; }
  html body .hb__filters { left: 12px; right: 12px; top: 58px; flex-wrap: nowrap; overflow-x: auto; max-width: none; scrollbar-width: none; padding-bottom: 2px; }
  html body .hb__filters::-webkit-scrollbar { display: none; }
  html body .hb__filters button { flex: none; padding: 6px 10px; font-size: 12px; }
  html body .hb__hint { font-size: 12px; padding: 6px 12px; bottom: 12px; }
  html body .hb__stage { min-height: 560px; }
}
