/* =====================================================================
   Expoverse — Glassmorphism hall welcome / help screen
   ---------------------------------------------------------------------
   Shown once per hall (per session) when a hall scene becomes live, and
   re-openable via the floating "?" help button. Presents: hall name +
   description, the hall sponsor (from hall-sponsors.json), and the
   navigation controls. Top-level overlay in index.php; reuses accent
   vars + spinner from app/expoverse/poi.css.
   ===================================================================== */

/* ---- floating help (?) button -------------------------------------- */
.expo-help-fab {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 2147481500;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--expo-font);
	font-size: 20px;
	font-weight: 700;
	color: #f4f7ff;
	cursor: pointer;
	background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 50%;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	transition: transform .16s ease, background .16s ease;
}
.expo-help-fab:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.expo-help-fab:active { transform: scale(.95); }

/* ---- backdrop + card ----------------------------------------------- */
.expo-hw-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147482200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 40px);
	background: radial-gradient(120% 120% at 50% 0%, rgba(20, 24, 45, .4), rgba(6, 8, 16, .66));
	-webkit-backdrop-filter: blur(10px) saturate(120%);
	backdrop-filter: blur(10px) saturate(120%);
	opacity: 0;
	transition: opacity .3s cubic-bezier(.22, 1, .36, 1);
	font-family: var(--expo-font);
}
.expo-hw-backdrop.is-open { opacity: 1; }

.expo-hw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(640px, 100%);
	max-height: min(900px, 92vh);
	overflow: hidden;
	color: #f4f7ff;
	background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 24px;
	box-shadow: 0 32px 84px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(28px) saturate(170%);
	backdrop-filter: blur(28px) saturate(170%);
	transform: translateY(24px) scale(.92);
	opacity: 0;
	transition: transform .46s var(--expo-elastic), opacity .3s var(--expo-ease);
}
.expo-hw-backdrop.is-open .expo-hw-card { transform: none; opacity: 1; }
.expo-hw-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8));
	z-index: 2;
}

/* ---- pinned top loading bar (always visible, never scrolled past) --- */
.expo-hw-top {
	flex: 0 0 auto;
	padding: 15px clamp(22px, 4vw, 34px) 13px;
	padding-right: 58px;                         /* clear the close (X) at top-right */
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .04);
}
.expo-hw-top .expo-hw-loading { max-width: none; }

.expo-hw-scroll { overflow-y: auto; padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; }

/* ---- expoverse logo (top) ------------------------------------------ */
.expo-hw-brand { display: flex; justify-content: center; margin-bottom: -2px; }
.expo-hw-brand img { height: 28px; width: auto; opacity: .95; }

/* ---- header --------------------------------------------------------- */
.expo-hw-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.expo-hw-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--expo-accent-1, #5eead4); }
.expo-hw-title { margin: 0; font-family: var(--expo-font-display); font-size: clamp(22px, 4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
/* reception hero headline — Wales logo + big red "WALES" */
.expo-hw-title--xl {
	font-size: clamp(44px, 11vw, 78px);
	font-weight: 800;
	letter-spacing: .07em;
	line-height: .98;
}
.expo-hw-wales {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 2.2vw, 20px);
}
.expo-hw-wales__logo {
	height: clamp(44px, 10vw, 72px);
	width: auto;
	display: block;
	flex: 0 0 auto;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .42));
}
.expo-hw-wales__text {
	background: linear-gradient(135deg, #e30917 0%, #ad0610 100%); /* #e30917 -> slightly darker red */
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	text-shadow: 0 8px 26px rgba(227, 9, 23, .26);
}
.expo-hw-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(244, 247, 255, .82); max-width: 48ch; }

.expo-hw-rule { height: 1px; background: rgba(255, 255, 255, .12); margin: 2px 0; }

/* ---- sponsor -------------------------------------------------------- */
.expo-hw-sponsor {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
}
.expo-hw-sponsor__top { display: flex; align-items: center; gap: 16px; }
.expo-hw-sponsor__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.expo-hw-insights, .expo-hw-website {
	-webkit-appearance: none; appearance: none; cursor: pointer; text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	height: 44px; padding: 0 22px;
	font: inherit; font-size: 14px; font-weight: 700;
	border-radius: 999px;
	transition: filter .16s ease, transform .16s ease, background .16s ease, border-color .16s ease;
}
.expo-hw-insights svg, .expo-hw-website svg { width: 17px; height: 17px; }
.expo-hw-insights:active, .expo-hw-website:active { transform: scale(.97); }
/* primary */
.expo-hw-insights {
	color: #0a1020; border: 0;
	background: linear-gradient(135deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8));
	box-shadow: 0 10px 26px rgba(94, 234, 212, .28);
}
.expo-hw-insights:hover { filter: brightness(1.07); transform: translateY(-1px); }
/* secondary (glass) */
.expo-hw-website {
	color: #f4f7ff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .24);
}
.expo-hw-website:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); transform: translateY(-1px); }
.expo-hw-sponsor__logo {
	flex: 0 0 auto;
	width: 84px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	padding: 8px;
}
.expo-hw-sponsor__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.expo-hw-sponsor__txt { min-width: 0; }
.expo-hw-sponsor__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 247, 255, .6); }
.expo-hw-sponsor__name { font-size: 18px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.expo-hw-sponsor__tag {
	font-size: 13.5px;
	line-height: 1.65;
	white-space: pre-line;          /* keep the paragraph breaks from the description */
	color: rgba(244, 247, 255, .8);
	margin: 0;
}
.expo-hw-sponsor__link { font-size: 13px; color: var(--expo-accent-1, #5eead4); text-decoration: none; margin-top: 4px; display: inline-block; }
.expo-hw-sponsor__link:hover { text-decoration: underline; }

/* ---- controls / help ----------------------------------------------- */
.expo-hw-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.expo-hw-ctrl {
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
}
.expo-hw-ctrl h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.expo-hw-ctrl h4 svg { width: 18px; height: 18px; color: var(--expo-accent-1, #5eead4); }
.expo-hw-ctrl ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.expo-hw-ctrl li { font-size: 12.5px; line-height: 1.45; color: rgba(244, 247, 255, .82); }
.expo-hw-ctrl b { color: #fff; font-weight: 600; }

/* ---- close X (only once the hall has loaded) ------------------------ */
.expo-hw-x {
	position: absolute; top: 14px; right: 14px; z-index: 3;
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	color: #f4f7ff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	transition: background .15s ease, opacity .2s ease, transform .2s ease;
}
.expo-hw-x:hover { background: rgba(255, 255, 255, .2); }
.expo-hw-x svg { width: 18px; height: 18px; }
/* hidden / non-interactive until the scene is live */
.expo-hw-backdrop:not(.is-live) .expo-hw-x { opacity: 0; pointer-events: none; transform: scale(.6); }

/* ---- footer --------------------------------------------------------- */
.expo-hw-foot { display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 4px; min-height: 48px; }
.expo-hw-loading { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 380px; }
.expo-hw-loading__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: rgba(244, 247, 255, .82); }
.expo-hw-loading__pct { font-weight: 700; color: var(--expo-accent-1, #5eead4); font-variant-numeric: tabular-nums; }
.expo-hw-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.expo-hw-progress > i { display: block; position: relative; overflow: hidden; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8)); transition: width .28s var(--expo-ease, ease); }
.expo-hw-progress > i::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
	transform: translateX(-100%);
	animation: expo-hw-sheen 1.3s ease-in-out infinite;
}
.expo-hw-backdrop.is-live .expo-hw-progress > i::after { animation: none; opacity: 0; }
@keyframes expo-hw-sheen { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.expo-hw-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: var(--expo-accent-1, #5eead4); animation: expo-hw-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes expo-hw-spin { to { transform: rotate(360deg); } }
/* swap loading <-> close button on the live state */
.expo-hw-backdrop:not(.is-live) .expo-hw-foot .expo-hw-start { display: none; }
.expo-hw-backdrop.is-live .expo-hw-foot .expo-hw-loading { display: none; }
.expo-hw-start {
	-webkit-appearance: none; appearance: none;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 9px;
	height: 48px;
	padding: 0 28px;
	font: inherit; font-size: 15px; font-weight: 700;
	color: #0a1020;
	background: linear-gradient(135deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(94, 234, 212, .25);
	transition: filter .16s ease, transform .16s ease;
}
.expo-hw-start:hover { filter: brightness(1.07); transform: translateY(-1px); }
.expo-hw-start:active { transform: scale(.97); }

/* touch controls show on touch / narrow devices; mouse + keyboard on desktop */
.expo-hw-ctrl--touch { display: none; }
@media (max-width: 760px), (pointer: coarse) {
	.expo-hw-ctrl--desktop { display: none; }
	.expo-hw-ctrl--touch { display: block; }
	.expo-hw-controls { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.expo-hw-controls { grid-template-columns: 1fr; }
	.expo-hw-card { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.expo-hw-backdrop, .expo-hw-card { transition: opacity .01s; }
	.expo-hw-card { transform: none; }
}

/* ---- sponsor "Industry Insights" modal (sandboxed HTML) ------------- */
.expo-hw-ins-backdrop {
	position: fixed; inset: 0; z-index: 2147482400;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(10px, 3vw, 40px);
	background: rgba(6, 8, 16, .72);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transition: opacity .26s var(--expo-ease, ease);
	font-family: var(--expo-font);
}
.expo-hw-ins-backdrop.is-open { opacity: 1; }
.expo-hw-ins-modal {
	display: flex; flex-direction: column;
	width: min(1000px, 100%); height: min(820px, 92vh);
	background: #0e1018;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px; overflow: hidden;
	box-shadow: 0 36px 90px rgba(0, 0, 0, .6);
	transform: translateY(18px) scale(.96); opacity: 0;
	transition: transform .4s var(--expo-elastic, ease), opacity .26s var(--expo-ease, ease);
}
.expo-hw-ins-backdrop.is-open .expo-hw-ins-modal { transform: none; opacity: 1; }
.expo-hw-ins-head {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 16px; flex: 0 0 auto;
	background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: #f4f7ff;
}
.expo-hw-ins-title { font-family: var(--expo-font-display); font-weight: 700; font-size: 15px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expo-hw-ins-close {
	width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
	display: grid; place-items: center; cursor: pointer; color: #f4f7ff;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.expo-hw-ins-close:hover { background: rgba(255, 255, 255, .2); }
.expo-hw-ins-close svg { width: 17px; height: 17px; }
.expo-hw-ins-body { position: relative; flex: 1 1 auto; min-height: 0; background: #fff; }
.expo-hw-ins-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.expo-hw-ins-spin { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }

@media (max-width: 560px) {
	.expo-hw-ins-backdrop { padding: 0; }
	.expo-hw-ins-modal { width: 100%; height: 100%; border-radius: 0; }
}
