/* Lone Fir kiosk layout R1. Shared rows keep controls outside guest content. */
#kioskApp.kiosk-layout-r1 {
  --kiosk-header-height: 88px;
  --kiosk-nav-height: 86px;
  position: relative;
  width: 100%; max-width: none; min-width: 0; min-height: 0;
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--kiosk-header-height) minmax(0, 1fr) var(--kiosk-nav-height) 28px;
  gap: 0; margin: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #f6eedb url('forest-parchment.png') center / cover;
}
#kioskApp.kiosk-layout-r1::before { display: none; }
#kioskApp.kiosk-layout-r1 .kiosk-header {
  position: relative !important; inset: auto !important; transform: none !important;
  grid-row: 1; display: grid !important;
  grid-template-columns: 126px minmax(0, 1fr); align-items: center;
  width: 100% !important; max-width: 1180px; height: 100%; min-height: 0 !important;
  margin: 0 auto; padding: 8px 20px !important; gap: 18px;
  background: transparent; border: 0; box-shadow: none; z-index: 2;
}
#kioskApp.kiosk-layout-r1 .kiosk-brand { justify-content: flex-start; min-width: 0; }
#kioskApp.kiosk-layout-r1 .kiosk-brand > span { display: none; }
#kioskApp.kiosk-layout-r1 .lone-fir-logo {
  width: 126px !important; height: 68px !important; max-width: 100%; object-fit: contain;
  margin: 0; padding: 0; background: transparent; border: 0; filter: none;
}
#kioskApp.kiosk-layout-r1 .trail-wrap {
  width: 100%; max-width: none; min-width: 0; margin: 0; padding: 8px 10px;
  background: rgba(255, 253, 241, .7); border: 1px solid #d1ccb4;
  border-radius: 13px; box-shadow: none;
}
#kioskApp.kiosk-layout-r1 .trail-steps { gap: 0; width: 100%; align-items: flex-start; }
#kioskApp.kiosk-layout-r1 .trail-dot {
  flex: 1 1 0; min-width: 0; width: auto; height: auto;
  grid-template-rows: 24px auto; gap: 4px;
}
#kioskApp.kiosk-layout-r1 .trail-dot b::after { font-size: 20px; }
#kioskApp.kiosk-layout-r1 .trail-dot small {
  max-width: 100%; white-space: normal; overflow-wrap: normal;
  font: 800 10px/1.15 Arial, sans-serif; letter-spacing: 0;
}
#kioskApp.kiosk-layout-r1 .trail-line { flex: 0 1 12px; min-width: 4px; margin-top: 11px; }
#kioskApp.kiosk-layout-r1 .parchment-stage {
  position: relative; grid-row: 2; min-height: 0; min-width: 0;
  width: 100%; max-width: 1180px; height: 100%; margin: 0 auto;
  padding: 4px 16px 8px !important; display: block;
}
#kioskApp.kiosk-layout-r1 #screen {
  position: relative; inset: auto; width: 100% !important; max-width: none !important;
  height: 100% !important; min-height: 0 !important; max-height: none !important;
  margin: 0; padding: 0 !important; overflow: hidden;
  border: 3px solid #244b32; border-radius: 24px;
  box-shadow: 0 0 0 2px #d7bc72, 0 3px 10px #153a241c;
}
#kioskApp.kiosk-layout-r1 #screen > .screen-content {
  position: relative !important; inset: auto !important; transform: none !important;
  display: block !important; width: 100%; height: 100% !important;
  min-height: 0 !important; max-height: none !important;
  padding: 22px 26px !important; overflow-y: auto !important; overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-padding: 18px;
}
#kioskApp.kiosk-layout-r1 #screen .screen-content h1 {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin: 6px auto 10px;
}
#kioskApp.kiosk-layout-r1 #screen .screen-content .lead {
  font-size: 18px; line-height: 1.35; margin: 0 auto 18px;
}
#kioskApp.kiosk-layout-r1 #screen .screen-kicker { font-size: 12px; line-height: 1.2; }
#kioskApp.kiosk-layout-r1 #screen .button-row { flex-wrap: wrap; }
#kioskApp.kiosk-layout-r1 .kiosk-navigation {
  grid-row: 3; display: grid; grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center; gap: 16px; width: 100%; max-width: 1180px;
  min-width: 0; margin: 0 auto; padding: 4px 22px 10px;
}
#kioskApp.kiosk-layout-r1 .kiosk-navigation > button {
  position: static !important; inset: auto !important; transform: none !important;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  min-height: 64px !important; height: 64px; margin: 0 !important; padding: 9px 12px !important;
  border: 2px solid #fff9e7; border-radius: 14px;
  background: linear-gradient(#2c603a, #103e28); color: #fff8e5;
  box-shadow: 0 3px 8px #0b362329;
  font: 800 16px/1.2 Arial, sans-serif; white-space: normal;
  cursor: pointer; touch-action: manipulation;
}
#kioskApp.kiosk-layout-r1 #backButton { grid-column: 1; grid-row: 1; justify-self: start; }
#kioskApp.kiosk-layout-r1 #backButton:not(.hidden) { display: block !important; }
#kioskApp.kiosk-layout-r1 #guideButton { grid-column: 2; grid-row: 1; justify-self: center; }
#kioskApp.kiosk-layout-r1 #guestExit { grid-column: 3; grid-row: 1; justify-self: end; }
#kioskApp.kiosk-layout-r1 #guideButton:not(.hidden) { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
#kioskApp.kiosk-layout-r1 #guideButton img { width: 100%; max-width: 205px; height: 30px !important; object-fit: contain; }
#kioskApp.kiosk-layout-r1 #guideButton span { font: 800 10px/1.1 Arial, sans-serif; letter-spacing: .02em; margin: 0; }
#kioskApp.kiosk-layout-r1 .kiosk-navigation > button:focus-visible { outline: 3px solid #d86b11; outline-offset: 2px; }
#kioskApp.kiosk-layout-r1 .kiosk-footer {
  position: relative; inset: auto; grid-row: 4; height: 28px; min-height: 0;
  padding: 4px 20px; gap: 10px; font-size: 10px; line-height: 1.2;
}
/* The guest form uses four input rows on a portrait tablet. */
#kioskApp.kiosk-layout-r1 #screen .guest-details-screen {
  height: auto !important; min-height: 0 !important; justify-content: flex-start !important;
}
#kioskApp.kiosk-layout-r1 #screen .new-guest-form {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px 16px !important; margin-top: 16px !important;
}
#kioskApp.kiosk-layout-r1 #screen .new-guest-form > .field { grid-column: span 3; gap: 6px; font-size: 12px; line-height: 1.2; }
#kioskApp.kiosk-layout-r1 #screen .new-guest-form > .field.full { grid-column: 1 / -1 !important; }
#kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(4),
#kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(5),
#kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(6) { grid-column: span 2; }
#kioskApp.kiosk-layout-r1 #screen .new-guest-form input { height: 52px; padding: 10px 12px; font-size: 20px; }
#kioskApp.kiosk-layout-r1 #screen .guest-contact-heading { margin: 2px 0 0; padding-top: 12px; font-size: 19px !important; }
#kioskApp.kiosk-layout-r1 #screen .guest-details-actions {
  position: static !important; inset: auto !important; transform: none !important;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  width: 100%; gap: 12px; margin: 6px 0 8px !important; padding: 0 !important;
}
#kioskApp.kiosk-layout-r1 #screen .guest-details-actions > button {
  position: static !important; min-width: 0 !important; min-height: 58px !important;
  padding: 12px; font-size: 16px; line-height: 1.25; white-space: normal;
}
/* Scanner steps retain their illustrations while using the available area. */
#kioskApp.kiosk-layout-r1 #screen .id-only-screen { min-height: 0; }
#kioskApp.kiosk-layout-r1 #screen .guest-scan-screen .id-scanner-panel { margin-top: 16px; gap: 14px; padding: 16px; }
#kioskApp.kiosk-layout-r1 #screen .guest-scan-screen .scan-id-button { min-height: 72px; font-size: 23px; }
/* Scene artwork stays behind choice screens; content starts below the real header. */
#kioskApp.kiosk-layout-r1 #screen[data-layout="guest-count"] > .screen-content,
#kioskApp.kiosk-layout-r1 #screen[data-layout="instant-choice"] > .screen-content { padding-left: 42% !important; }
#kioskApp.kiosk-layout-r1 #screen .guest-count-screen,
#kioskApp.kiosk-layout-r1 #screen .instant-choice-screen { padding-top: 0; padding-bottom: 0; }
#kioskApp.kiosk-layout-r1 #screen .guest-count-screen h1,
#kioskApp.kiosk-layout-r1 #screen .instant-choice-screen h1 { font-size: clamp(28px, 3.8vw, 40px); }
/* Long rules, availability lists, and small viewports may scroll inside the card. */
#kioskApp.kiosk-layout-r1 #screen .review-card { margin: 10px auto; padding: 14px 18px; }
#kioskApp.kiosk-layout-r1 #screen .review-row { padding-top: 8px; padding-bottom: 8px; }
#kioskApp.kiosk-layout-r1 #screen .agreement-screen { min-height: 0; height: 100%; }
#kioskApp.kiosk-layout-r1 #screen .signature-wrap { min-height: 0; }
/* The keyboard occupies space within the content card, above the navigation. */
#kioskApp.kiosk-layout-r1.keyboard-open { --kiosk-header-height: 76px; }
#kioskApp.kiosk-layout-r1 #screen.keyboard-open > .screen-content {
  height: calc(100% - var(--active-keyboard-height, 380px)) !important;
  padding: 16px 24px 24px !important;
}
#kioskApp.kiosk-layout-r1 #screen #touchKeyboard {
  position: absolute; bottom: 0 !important; max-height: 70%;
  padding: 8px 10px 10px; border-radius: 18px 18px 0 0;
}
#kioskApp.kiosk-layout-r1 #screen #touchKeyboard .keyboard-heading { min-height: 56px; }
#kioskApp.kiosk-layout-r1 #screen #touchKeyboard .keyboard-entry-preview { min-height: 52px; padding: 6px 12px; }
#kioskApp.kiosk-layout-r1 #screen #touchKeyboard .keyboard-key { height: 46px; min-height: 44px; }
#kioskApp.kiosk-layout-r1 #screen #keyboardPreview { font-size: 21px; max-height: 60px; }
/* Existing home artwork and completion artwork use the same outer frame. */
#kioskApp.kiosk-layout-r1 #screen[data-layout="home"] > .screen-content { padding: 0 !important; overflow: hidden !important; }
#kioskApp.kiosk-layout-r1 #screen[data-layout="home"] .home-logo-space { display: none; }
/* The welcome menu has its own artwork and actions; it is not a journey step. */
#kioskApp.kiosk-layout-r1.home-menu { --kiosk-header-height: 0px; --kiosk-nav-height: 0px; }
#kioskApp.kiosk-layout-r1.home-menu .kiosk-header,
#kioskApp.kiosk-layout-r1.home-menu .kiosk-navigation { display: none !important; }
#kioskApp.kiosk-layout-r1.home-menu .parchment-stage { padding-top: 14px !important; }
#kioskApp.kiosk-layout-r1.home-menu #screen .home-logo-space { display: flex; }
#kioskApp.kiosk-layout-r1.farewell-screen #screen > .screen-content { padding: 0 !important; }
#kioskApp.kiosk-layout-r1.farewell-screen #guestExit:not(.hidden) { display: block !important; }
#kioskApp.kiosk-layout-r1 #lf-farewell-39 .farewell-content { min-height: 0; height: 100%; padding: 18px 24px; gap: 12px; }
#kioskApp.kiosk-layout-r1 #lf-farewell-39 .resort-screen { min-height: 100%; }
#kioskApp.kiosk-layout-r1 #lf-farewell-39 .map-row { min-height: 180px; }
@media (max-width: 650px) {
  #kioskApp.kiosk-layout-r1 { --kiosk-header-height: 82px; --kiosk-nav-height: 82px; }
  #kioskApp.kiosk-layout-r1 .kiosk-header { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 6px 12px !important; }
  #kioskApp.kiosk-layout-r1 .lone-fir-logo { width: 92px !important; height: 60px !important; }
  #kioskApp.kiosk-layout-r1 .trail-wrap { padding: 7px 4px; }
  #kioskApp.kiosk-layout-r1 .trail-dot small { font-size: 8px; }
  #kioskApp.kiosk-layout-r1 .trail-line { flex-basis: 5px; min-width: 2px; }
  #kioskApp.kiosk-layout-r1 .parchment-stage { padding: 4px 10px 8px !important; }
  #kioskApp.kiosk-layout-r1 #screen > .screen-content { padding: 18px !important; }
  #kioskApp.kiosk-layout-r1 .kiosk-navigation { padding: 4px 12px 10px; gap: 8px; grid-template-columns: 1fr 1.4fr 1fr; }
  #kioskApp.kiosk-layout-r1 .kiosk-navigation > button { font-size: 12px; padding: 8px !important; }
  #kioskApp.kiosk-layout-r1 #guideButton span { font-size: 8px; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form { gap: 12px 10px !important; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(4) { grid-column: 1 / -1; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(5),
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form > label:nth-child(6) { grid-column: span 3; }
  #kioskApp.kiosk-layout-r1 #screen .guest-details-actions { grid-template-columns: 1fr; }
  #kioskApp.kiosk-layout-r1 .kiosk-footer { padding-inline: 12px; font-size: 8px; }
}
@media (max-width: 420px) {
  #kioskApp.kiosk-layout-r1 .kiosk-header { grid-template-columns: 70px minmax(0, 1fr); }
  #kioskApp.kiosk-layout-r1 .lone-fir-logo { width: 70px !important; }
  #kioskApp.kiosk-layout-r1 .trail-dot b::after { font-size: 17px; }
  #kioskApp.kiosk-layout-r1 .trail-dot small { font-size: 7px; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form > label { grid-column: 1 / -1 !important; }
  #kioskApp.kiosk-layout-r1 #screen[data-layout="guest-count"] > .screen-content,
  #kioskApp.kiosk-layout-r1 #screen[data-layout="instant-choice"] > .screen-content { padding-left: 18px !important; }
  #kioskApp.kiosk-layout-r1 #screen[data-layout="guest-count"] > .bigfoot-scene,
  #kioskApp.kiosk-layout-r1 #screen[data-layout="instant-choice"] > .bigfoot-scene { opacity: .15; }
}
@media (max-height: 800px) {
  #kioskApp.kiosk-layout-r1 { --kiosk-header-height: 76px; --kiosk-nav-height: 76px; }
  #kioskApp.kiosk-layout-r1 #screen > .screen-content { padding: 16px 22px !important; }
  #kioskApp.kiosk-layout-r1 #screen .guest-details-screen .lead { font-size: 16px; margin-bottom: 12px; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form { gap: 9px 14px !important; margin-top: 10px !important; }
  #kioskApp.kiosk-layout-r1 #screen .new-guest-form input { height: 46px; font-size: 18px; }
  #kioskApp.kiosk-layout-r1 #screen .guest-contact-heading { padding-top: 9px; font-size: 18px !important; }
}
