@font-face {
	font-family: "Tajawal";
	src: url("assets/fonts/tajawal/Tajawal-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url("assets/fonts/tajawal/Tajawal-Medium.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url("assets/fonts/tajawal/Tajawal-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url("assets/fonts/tajawal/Tajawal-ExtraBold.ttf") format("truetype");
	font-style: normal;
	font-weight: 800;
	font-display: swap;
}

:root {
	font-family: "Tajawal", Tahoma, Arial, "Segoe UI", sans-serif;
	color-scheme: light;
	background: #071f2a;
	--hospital-blue: #0a3d52;
	--hospital-blue-deep: #062e40;
	--hospital-teal: #07858a;
	--hospital-teal-soft: #e7f5f4;
	--success-green: #21865e;
	--page-background: #edf5f5;
	--muted-text: #58707a;
	--line-color: #d4e2e4;
	--panel-shadow: 0 -10px 30px rgba(5, 43, 57, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body {
	position: relative;
	width: 100%;
	height: var(--app-height, 100svh);
	min-height: 0;
	direction: rtl;
	color: var(--hospital-blue);
	background: var(--page-background);
}

button {
	font: inherit;
}

[hidden] {
	display: none !important;
}

.tour-interface {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	width: 100%;
	height: auto;
	min-height: 0;
	background: var(--page-background);
}

.tour-interface.is-waiting,
.tour-interface.is-invalid {
	visibility: hidden;
}

.tour-interface.is-free-exploration .floating-instruction {
	display: none;
}

.hospital-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: calc(env(safe-area-inset-top, 0px) + 7px)
		max(16px, env(safe-area-inset-right, 0px)) 7px
		max(16px, env(safe-area-inset-left, 0px));
	background: #fff;
	border-bottom: 1px solid rgba(7, 133, 138, 0.12);
	pointer-events: none;
}

.hospital-logo {
	flex: 0 0 auto;
	width: clamp(112px, 30vw, 148px);
	height: 34px;
	object-fit: contain;
}

.hospital-name {
	margin: 0;
	font-size: clamp(0.96rem, 3.8vw, 1.16rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--hospital-blue);
}

.destination-banner {
	width: calc(100% - max(28px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
	max-width: 760px;
	margin: 7px auto 8px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: linear-gradient(135deg, var(--hospital-blue), #076b73);
	box-shadow: 0 7px 18px rgba(6, 46, 64, 0.16);
	text-align: right;
	pointer-events: none;
}

.destination-name,
.route-meta {
	margin: 0;
}

.destination-name {
	font-size: clamp(1rem, 4.15vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}

.route-meta {
	margin-top: 2px;
	font-size: clamp(0.76rem, 3.15vw, 0.88rem);
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.8);
}

.panorama-region {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: #071f2a;
}

#pano {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: auto;
	touch-action: none;
}

.floating-instruction {
	position: absolute;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: 13px;
	left: max(16px, env(safe-area-inset-left, 0px));
	z-index: 10;
	width: max-content;
	max-width: min(88%, 430px);
	margin-inline: auto;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 6px 22px rgba(2, 29, 40, 0.24);
	-webkit-backdrop-filter: blur(9px) saturate(115%);
	backdrop-filter: blur(9px) saturate(115%);
	text-align: center;
	pointer-events: none;
}

.floating-instruction p {
	margin: 0;
	font-size: clamp(0.9rem, 3.7vw, 1.05rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--hospital-blue-deep);
}

.floating-instruction[data-arrived="true"] {
	border-color: rgba(33, 134, 94, 0.38);
	background: rgba(239, 251, 246, 0.94);
}

.floating-instruction[data-arrived="true"] p {
	color: var(--success-green);
}

.floor-emphasis {
	display: inline-block;
	margin-inline: 0.16em;
	padding: 0.08em 0.48em;
	border-radius: 999px;
	background: var(--hospital-teal);
	box-shadow: 0 3px 9px rgba(7, 133, 138, 0.2);
	color: #fff;
	font-weight: 800;
}

.guidance-panel {
	position: relative;
	z-index: 20;
	align-self: end;
	justify-self: center;
	width: 100%;
	max-width: 760px;
	min-height: min(32dvh, 298px);
	max-height: 39dvh;
	padding: 11px max(16px, env(safe-area-inset-right, 0px))
		calc(9px + env(safe-area-inset-bottom, 0px))
		max(16px, env(safe-area-inset-left, 0px));
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: 25px 25px 0 0;
	background: #fff;
	box-shadow: var(--panel-shadow);
	text-align: right;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	pointer-events: none;
}

.guidance-panel[data-arrived="true"] {
	box-shadow: 0 -10px 30px rgba(25, 112, 81, 0.15);
}

.guidance-panel[data-arrived="true"]::before {
	position: absolute;
	top: 0;
	right: 28px;
	left: 28px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--success-green);
	content: "";
}

.guidance-progress {
	margin: 0 0 6px;
	font-size: 0.73rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	color: var(--hospital-teal);
}

.progress-tracker {
	display: flex;
	direction: rtl;
	align-items: center;
	width: 100%;
	max-width: 470px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.progress-step {
	display: flex;
	direction: rtl;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

.progress-step:last-child {
	flex: 0 0 auto;
}

.progress-step::after {
	flex: 1 1 auto;
	height: 2px;
	margin-inline: 4px;
	background: var(--line-color);
	content: "";
}

.progress-step:last-child::after {
	display: none;
}

.progress-marker {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	border: 2px solid #c9d9dc;
	border-radius: 50%;
	background: #fff;
	font-size: 0.67rem;
	font-weight: 700;
	line-height: 1;
	color: #789097;
}

.progress-step.is-complete::after,
.progress-step.is-complete .progress-marker {
	border-color: var(--hospital-teal);
	background: var(--hospital-teal-soft);
	color: var(--hospital-teal);
}

.progress-step.is-current .progress-marker {
	border-color: var(--hospital-teal);
	background: var(--hospital-teal);
	box-shadow: 0 0 0 4px rgba(7, 133, 138, 0.11);
	color: #fff;
}

.guidance-panel[data-arrived="true"] .progress-step.is-current .progress-marker {
	border-color: var(--success-green);
	background: var(--success-green);
	box-shadow: 0 0 0 4px rgba(33, 134, 94, 0.11);
}

.step-copy {
	margin-top: 8px;
	text-align: center;
	pointer-events: none;
}

.step-description {
	margin: 0;
}

.step-description {
	max-width: 520px;
	margin: 0 auto;
	font-size: clamp(0.78rem, 3.2vw, 0.91rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--hospital-blue-deep);
}

.guidance-panel[data-arrived="true"] .step-description {
	color: var(--success-green);
}

.route-information {
	display: grid;
	grid-template-columns: minmax(0, 260px);
	justify-content: center;
	gap: 8px;
	margin-top: 9px;
	pointer-events: none;
}

.information-item {
	min-width: 0;
	padding: 7px 9px;
	border: 1px solid #e1ebed;
	border-radius: 11px;
	background: #f7fafb;
	text-align: center;
}

.information-item span,
.information-item strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.information-item span {
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.3;
	color: #71868e;
}

.information-item strong {
	margin-top: 2px;
	font-size: clamp(0.72rem, 2.95vw, 0.86rem);
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	color: var(--hospital-blue);
}

.navigation-controls {
	margin-top: 9px;
	text-align: center;
	pointer-events: none;
}

.step-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.navigation-button,
.restart-button,
.start-tour-button {
	border: 0;
	cursor: pointer;
	touch-action: manipulation;
	pointer-events: auto;
}

.navigation-button {
	min-height: 38px;
	padding: 7px 14px;
	border-radius: 11px;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
}

.navigation-button-primary {
	background: var(--hospital-teal);
	box-shadow: 0 5px 12px rgba(7, 133, 138, 0.2);
	color: #fff;
}

.navigation-button-secondary {
	border: 1px solid #cbdcdf;
	background: #fff;
	color: var(--hospital-blue);
}

.navigation-button:focus-visible,
.restart-button:focus-visible,
.start-tour-button:focus-visible {
	outline: 3px solid rgba(7, 133, 138, 0.3);
	outline-offset: 2px;
}

.navigation-button:disabled,
.restart-button:disabled {
	cursor: default;
	opacity: 0.42;
}

.restart-button {
	margin-top: 5px;
	padding: 2px 12px;
	background: transparent;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hospital-teal);
}

.welcome-screen {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	height: auto;
	min-height: 0;
	padding: calc(env(safe-area-inset-top, 0px) + 16px)
		max(16px, env(safe-area-inset-right, 0px))
		calc(env(safe-area-inset-bottom, 0px) + 16px)
		max(16px, env(safe-area-inset-left, 0px));
	overflow: auto;
	background:
		radial-gradient(circle at 15% 12%, rgba(7, 133, 138, 0.11), transparent 32%),
		linear-gradient(180deg, #f8fcfc 0%, #edf6f5 100%);
	pointer-events: auto;
}

.welcome-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 430px;
	margin-block: auto;
	min-height: min(680px, calc(var(--app-height, 100svh) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	padding: clamp(18px, 5vw, 28px);
	border: 1px solid rgba(7, 133, 138, 0.11);
	border-radius: 27px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 20px 55px rgba(6, 46, 64, 0.13);
	text-align: right;
}

.welcome-hospital {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.welcome-logo {
	width: clamp(160px, 48vw, 210px);
	height: 48px;
	object-fit: contain;
}

.welcome-hospital-name {
	margin: 0;
	font-size: clamp(1rem, 4.2vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--hospital-blue);
}

.welcome-introduction {
	margin-top: clamp(24px, 7vh, 55px);
	text-align: center;
}

.welcome-eyebrow {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--hospital-teal);
}

.welcome-title {
	margin: 8px 0 0;
	font-size: clamp(1.05rem, 4.6vw, 1.28rem);
	font-weight: 600;
	line-height: 1.5;
	color: var(--hospital-blue);
}

.welcome-title span,
.welcome-title strong {
	display: block;
}

.welcome-title strong {
	margin-top: 2px;
	font-size: clamp(1.35rem, 6vw, 1.75rem);
	font-weight: 800;
	color: var(--hospital-blue-deep);
}

.welcome-route-meta {
	margin: 5px 0 0;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--muted-text);
}

.tutorial-list {
	display: grid;
	gap: 10px;
	margin: clamp(24px, 6vh, 48px) 0 0;
	padding: 0;
	list-style: none;
}

.tutorial-list li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 10px 12px;
	border: 1px solid #cfe1e2;
	border-radius: 13px;
	background: #eef7f6;
	font-size: clamp(0.88rem, 3.5vw, 1rem);
	font-weight: 600;
	line-height: 1.45;
	color: #405e69;
}

.tutorial-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hospital-teal-soft);
	font-size: 0.71rem;
	font-weight: 800;
	line-height: 1;
	color: var(--hospital-teal);
}

.tutorial-icon-hotspot {
	font-size: 1.15rem;
	transform: scaleX(-1);
}

.tutorial-icon-controls {
	font-size: 0.95rem;
	letter-spacing: 2px;
}

.start-tour-button {
	width: 100%;
	min-height: 48px;
	margin-top: auto;
	padding: 10px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--hospital-teal), #066b73);
	box-shadow: 0 9px 22px rgba(7, 133, 138, 0.24);
	font-size: 0.98rem;
	font-weight: 800;
	color: #fff;
}

.guidance-error {
	position: fixed;
	top: 50%;
	right: max(16px, env(safe-area-inset-right, 0px));
	left: max(16px, env(safe-area-inset-left, 0px));
	z-index: 200;
	max-width: 390px;
	margin: 0 auto;
	padding: 16px 20px;
	transform: translateY(-50%);
	border: 1px solid rgba(7, 133, 138, 0.18);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(6, 46, 64, 0.16);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	color: var(--hospital-blue);
	pointer-events: none;
}

.noscript-message {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	transform: translate(-50%, -50%);
	color: #fff;
	font: 600 1rem/1.5 "Tajawal", Tahoma, Arial, sans-serif;
	text-align: center;
}

@media (min-width: 761px) {
	.guidance-panel {
		margin-inline: auto;
		border-radius: 25px 25px 0 0;
	}

	.destination-banner {
		text-align: center;
	}
}

@media (orientation: landscape) and (max-height: 540px) {
	.hospital-header {
		justify-content: flex-start;
		min-height: 38px;
		padding-top: calc(env(safe-area-inset-top, 0px) + 3px);
		padding-bottom: 3px;
	}

	.hospital-logo {
		width: 106px;
		height: 29px;
	}

	.hospital-name {
		font-size: 0.86rem;
	}

	.destination-banner {
		max-width: none;
		margin-block: 4px;
		padding: 5px 14px;
		border-radius: 11px;
	}

	.destination-name {
		font-size: 0.88rem;
	}

	.route-meta {
		margin-top: 0;
		font-size: 0.68rem;
	}

	.floating-instruction {
		bottom: 8px;
		padding: 6px 13px;
	}

	.floating-instruction p {
		font-size: 0.8rem;
	}

	.guidance-panel {
		display: grid;
		grid-template-areas:
			"progress copy information"
			"tracker copy controls";
		grid-template-columns: minmax(190px, 0.85fr) minmax(210px, 1.15fr) minmax(210px, 1fr);
		gap: 5px 14px;
		max-width: none;
		min-height: 0;
		max-height: 34dvh;
		padding-top: 8px;
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
		border-radius: 18px 18px 0 0;
	}

	.guidance-progress {
		grid-area: progress;
		align-self: end;
		margin-bottom: 2px;
		font-size: 0.66rem;
	}

	.progress-tracker {
		grid-area: tracker;
		align-self: start;
	}

	.progress-marker {
		width: 21px;
		height: 21px;
		font-size: 0.58rem;
	}

	.step-copy {
		grid-area: copy;
		align-self: center;
		margin-top: 0;
	}

	.step-description {
		font-size: 0.78rem;
		line-height: 1.35;
	}

	.route-information {
		grid-area: information;
		align-self: end;
		margin-top: 0;
	}

	.information-item {
		padding: 5px 7px;
	}

	.information-item span {
		font-size: 0.57rem;
	}

	.information-item strong {
		font-size: 0.67rem;
	}

	.navigation-controls {
		grid-area: controls;
		align-self: start;
		margin-top: 0;
	}

	.navigation-button {
		min-height: 30px;
		padding-block: 4px;
		font-size: 0.72rem;
	}

	.restart-button {
		margin-top: 2px;
		font-size: 0.62rem;
	}

	.welcome-screen {
		padding-top: calc(env(safe-area-inset-top, 0px) + 9px);
		padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 9px);
	}

	.welcome-card {
		display: grid;
		grid-template-areas:
			"hospital introduction"
			"tutorial tutorial"
			"button button";
		grid-template-columns: 0.9fr 1.1fr;
		gap: 8px 18px;
		max-width: 760px;
		min-height: calc(var(--app-height, 100svh) - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
		padding: 12px 18px;
		border-radius: 20px;
	}

	.welcome-hospital {
		grid-area: hospital;
		justify-content: flex-start;
	}

	.welcome-logo {
		width: 148px;
		height: 38px;
	}

	.welcome-hospital-name {
		font-size: 0.9rem;
	}

	.welcome-introduction {
		grid-area: introduction;
		align-self: center;
		margin-top: 0;
		text-align: right;
	}

	.welcome-eyebrow {
		font-size: 0.72rem;
	}

	.welcome-title {
		margin-top: 2px;
		font-size: 0.8rem;
		line-height: 1.3;
	}

	.welcome-title span,
	.welcome-title strong {
		display: inline;
	}

	.welcome-title strong {
		margin-inline-start: 4px;
		font-size: 1rem;
	}

	.welcome-route-meta {
		margin-top: 1px;
		font-size: 0.68rem;
	}

	.tutorial-list {
		grid-area: tutorial;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 0;
	}

	.tutorial-list li {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 7px;
		min-height: 42px;
		padding: 5px 7px;
		font-size: 0.7rem;
		line-height: 1.3;
	}

	.tutorial-icon {
		width: 30px;
		height: 30px;
		font-size: 0.58rem;
	}

	.start-tour-button {
		grid-area: button;
		min-height: 36px;
		margin-top: 0;
		padding-block: 6px;
		font-size: 0.8rem;
	}
}

@media (max-width: 360px) {
	.hospital-header {
		padding-inline: 11px;
	}

	.hospital-logo {
		width: 102px;
		height: 34px;
	}

	.destination-banner {
		width: calc(100% - 22px);
	}

	.guidance-panel {
		padding-inline: 12px;
	}

	.progress-marker {
		width: 23px;
		height: 23px;
	}

	.information-item {
		padding-inline: 7px;
	}

	.welcome-screen {
		padding-inline: 11px;
	}

	.welcome-card {
		padding-inline: 15px;
	}
}

/* FINAL-WELCOME-TOP-ANCHOR-V3 */
@media (orientation:portrait){
.welcome-screen{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;padding-top:clamp(16px,4svh,32px)!important;overflow-x:hidden!important;overflow-y:auto!important}
.welcome-card{margin-top:0!important;margin-bottom:auto!important}
}

/* FINAL-HIDDEN-SCREEN-FIX */
.welcome-screen[hidden]{display:none!important}


/* ALFAKEEH CLIENT FEEDBACK 2026-11-04
   Destination clarity, accurate starting point, legible arrival guidance.
   Scope: guidance UI only; no panorama/arrow/scene changes. */
.welcome-screen[hidden]{display:none!important}
.welcome-route-meta {
  font-size:clamp(1rem,4.05vw,1.11rem);
  font-weight:800;
  line-height:1.55;
  color:#164451;
}
.route-meta {
  font-size:clamp(.88rem,3.55vw,1rem);
  font-weight:700;
  line-height:1.4;
  color:rgba(255,255,255,.95);
}
.route-start-note {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:11px 13px;
  margin:clamp(13px,2.8vh,22px) 0 15px;
  border:1px solid #84c4bc;
  border-inline-start:4px solid #07858a;
  border-radius:13px;
  background:#eaf8f5;
  color:#124650;
  text-align:start;
}
.route-start-pin {
  display:grid;
  flex:0 0 auto;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#cceee9;
  color:#056c6c;
}
.route-start-pin svg {display:block;width:22px;height:22px}
.route-start-note p {margin:0}
.route-start-label {
  font-size:clamp(.78rem,3.3vw,.88rem);
  font-weight:700;
  line-height:1.35;
  color:#087272;
}
.route-start-description {
  margin-top:3px!important;
  font-size:clamp(.95rem,3.9vw,1.07rem);
  font-weight:800;
  line-height:1.5;
  color:#123c47;
}
.floating-instruction[data-arrived="true"] {
  width:min(93%,520px);
  max-width:520px;
  padding:11px 16px;
  border:1.5px solid #69b5a0;
  border-radius:19px;
  background:rgba(239,251,246,.97);
}
.floating-instruction .arrival-confirmation {
  display:block;
  font-size:clamp(.91rem,3.8vw,1.08rem);
  font-weight:700;
  line-height:1.4;
  color:#1d7756;
}
.floating-instruction .arrival-next-action {
  display:block;
  margin-top:6px;
  font-size:clamp(1.1rem,4.65vw,1.42rem);
  font-weight:800;
  line-height:1.3;
  color:#075d49;
}
.guidance-panel[data-arrived="true"] .step-description {
  font-size:clamp(.86rem,3.35vw,1.02rem);
  line-height:1.45;
  font-weight:800;
  color:#167b55;
}
@media (max-width:600px) and (orientation:portrait) {
  .welcome-screen {
    padding:
      max(8px,env(safe-area-inset-top,0px))
      max(10px,env(safe-area-inset-right,0px))
      max(8px,env(safe-area-inset-bottom,0px))
      max(10px,env(safe-area-inset-left,0px))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    justify-content:flex-start!important;
    align-items:center!important;
  }
  .welcome-card {
    flex:0 0 auto;
    margin:auto!important;
    width:100%;
    min-height:0!important;
    height:auto!important;
    max-height:none;
    padding:clamp(12px,3.5vw,18px);
    border-radius:21px;
  }
  .welcome-hospital {min-height:39px}
  .welcome-logo{width:clamp(138px,41vw,175px);height:40px}
  .welcome-introduction{margin-top:clamp(14px,3vh,24px)}
  .welcome-eyebrow{font-size:.89rem;line-height:1.3}
  .welcome-title{margin-top:5px;line-height:1.33}
  .welcome-title strong {
    margin-top:3px;
    font-size:clamp(1.3rem,5.6vw,1.58rem);
    line-height:1.32;
  }
  .welcome-route-meta {
    margin-top:5px;
    font-size:clamp(1rem,4.05vw,1.075rem);
    font-weight:800;
    line-height:1.45;
  }
  .tutorial-list{gap:8px;margin-top:clamp(15px,2.5vh,23px)}
  .tutorial-list li{
    min-height:48px;
    grid-template-columns:36px minmax(0,1fr);
    gap:9px;
    padding:7px 10px;
    font-size:clamp(.85rem,3.5vw,.95rem);
    line-height:1.34;
    border-radius:12px;
  }
  .tutorial-icon{width:36px;height:36px}
  .route-start-note{margin:clamp(12px,2vh,19px) 0 0;padding:10px 12px;gap:10px}
  .route-start-pin{width:32px;height:32px}
  .route-start-label{font-size:.79rem;line-height:1.3}
  .route-start-description{font-size:clamp(.9rem,3.7vw,1.03rem);line-height:1.42}
  .start-tour-button{min-height:45px;margin-top:13px;padding:9px 15px}
  .guidance-panel[data-arrived="true"] .step-description{font-size:clamp(.84rem,3.3vw,1rem)}
}
@media (max-width:600px) and (orientation:portrait) and (max-height:690px) {
  .welcome-card{padding:12px}
  .welcome-introduction{margin-top:12px}
  .welcome-title{margin-top:3px}
  .welcome-route-meta{margin-top:4px}
  .tutorial-list{margin-top:11px;gap:6px}
  .tutorial-list li{min-height:44px;padding:6px 8px}
  .route-start-note{margin-top:10px;padding:8px 10px}
  .start-tour-button{min-height:43px;margin-top:10px}
}
@media (max-width:360px) and (orientation:portrait) and (max-height:640px) {
  .welcome-card{padding:10px}
  .welcome-logo{width:131px;height:35px}
  .welcome-hospital{min-height:35px}
  .welcome-introduction{margin-top:8px}
  .welcome-title strong{font-size:1.22rem;line-height:1.25}
  .welcome-route-meta{font-size:.88rem;line-height:1.34}
  .tutorial-list{margin-top:9px;gap:5px}
  .tutorial-list li{
    grid-template-columns:30px minmax(0,1fr);
    min-height:42px;
    padding:5px 7px;
    gap:7px;
    font-size:.82rem;
    line-height:1.27;
  }
  .tutorial-icon{width:30px;height:30px;font-size:.67rem}
  .route-start-note{margin-top:8px;padding:7px 9px;gap:8px}
  .route-start-pin{width:29px;height:29px}
  .route-start-description{font-size:.86rem;line-height:1.3}
  .start-tour-button{min-height:41px;margin-top:9px}
}
@media (orientation:landscape) and (max-height:540px){
  .welcome-card {
    grid-template-areas:
      "hospital introduction"
      "tutorial tutorial"
      "start start"
      "button button";
    gap:5px 11px;
  }
  .route-start-note{
    grid-area:start;
    margin:0;
    padding:5px 11px;
    gap:9px;
    min-height:0;
  }
  .route-start-pin{width:29px;height:29px}
  .route-start-label{font-size:.7rem;line-height:1.2}
  .route-start-description{font-size:.76rem;line-height:1.25;margin-top:0!important}
  .start-tour-button{min-height:34px;margin-top:0}
  .route-meta{font-size:.75rem}
  .floating-instruction[data-arrived="true"]{padding:6px 12px}
  .floating-instruction .arrival-confirmation{font-size:.77rem}
  .floating-instruction .arrival-next-action{font-size:.89rem;margin-top:3px}
}
