*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}

html, body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #fff;
  background: #0a0a0a;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, ul, ol {
  margin: 0;
  padding: 0;
  font-weight: normal;
  text-decoration: none;
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* === LOADER === */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-icon {
  width: 80px;
  height: 80px;
  animation: loader-pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.22, 0.9, 0.32, 1);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.loader-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

/* === SCREEN-READER / SEO ONLY (visually hidden, indexable) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === MATERIAL VIEWER === */
.material-viewer {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.page {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

.pages {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.page.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

.page img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* === NAVIGATION ARROWS === */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  opacity: 0;
}

.material-viewer:hover .nav-btn {
  opacity: 1;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.nav-btn:disabled {
  opacity: 0.2 !important;
  cursor: not-allowed;
}

.nav-prev {
  left: calc(28px + env(safe-area-inset-left));
}

.nav-next {
  right: calc(28px + env(safe-area-inset-right));
}

/* === COUNTER === */
.counter {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  right: calc(24px + env(safe-area-inset-right));
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#currentPage {
  font-weight: 700;
  color: #fff;
}

/* === FULLSCREEN === */
.fullscreen-btn {
  position: absolute;
  top: calc(80px + env(safe-area-inset-top));
  left: calc(24px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
}

.material-viewer:hover .fullscreen-btn {
  opacity: 1;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-btn::after,
.fullscreen-btn::after,
.helper-btn::after,
.audio-btn::after,
.tour-btn::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  min-width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.home-btn::before,
.fullscreen-btn::before,
.helper-btn::before,
.audio-btn::before,
.tour-btn::before {
  content: "";
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(15, 15, 15, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.home-btn:hover::after,
.home-btn:focus-visible::after,
.fullscreen-btn:hover::after,
.fullscreen-btn:focus-visible::after,
.helper-btn:hover::after,
.helper-btn:focus-visible::after,
.audio-btn:hover::after,
.audio-btn:focus-visible::after,
.tour-btn:hover::after,
.tour-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition-delay: 0s;
}

.home-btn:hover::before,
.home-btn:focus-visible::before,
.fullscreen-btn:hover::before,
.fullscreen-btn:focus-visible::before,
.helper-btn:hover::before,
.helper-btn:focus-visible::before,
.audio-btn:hover::before,
.audio-btn:focus-visible::before,
.tour-btn:hover::before,
.tour-btn:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* === PROGRESS BAR === */
.progress-bar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* === DOTS === */
.dots {
  position: absolute;
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 99px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.material-viewer:hover .dots {
  opacity: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.dot.active {
  background: #4ade80;
  width: 24px;
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* === HELPER BUTTON === */
.helper-btn {
  position: absolute;
  top: calc(136px + env(safe-area-inset-top));
  left: calc(24px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
}

.material-viewer:hover .helper-btn {
  opacity: 1;
}

.helper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.helper-btn svg {
  width: 20px;
  height: 20px;
}

/* === AUDIO BUTTON === */
.audio-btn {
  position: absolute;
  top: calc(192px + env(safe-area-inset-top));
  left: calc(24px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
}

.material-viewer:hover .audio-btn {
  opacity: 1;
}

.audio-btn:hover,
.audio-btn[aria-pressed="true"] {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.38);
}

.audio-btn svg {
  width: 20px;
  height: 20px;
}

.audio-icon-stop {
  display: none;
}

.audio-btn[aria-pressed="true"] .audio-icon-play {
  display: none;
}

.audio-btn[aria-pressed="true"] .audio-icon-stop {
  display: block;
}

.audio-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35 !important;
}

/* === TOUR BUTTON === */
.tour-btn {
  position: absolute;
  top: calc(248px + env(safe-area-inset-top));
  left: calc(24px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
}

.material-viewer:hover .tour-btn {
  opacity: 1;
}

.tour-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tour-btn svg {
  width: 20px;
  height: 20px;
}

/* === HOME BUTTON === */
.home-btn {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  left: calc(24px + env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
  text-decoration: none;
}

.material-viewer:hover .home-btn {
  opacity: 1;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-btn svg {
  width: 20px;
  height: 20px;
}

/* === SVG sizing for nav-btn / modal-close / rotate-hint-close / tour-prev === */
.nav-btn svg { width: 20px; height: 20px; }
.modal-close svg { width: 16px; height: 16px; }
.rotate-hint-close svg { width: 12px; height: 12px; }

/* === TOUR === */
.tour {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tour.open {
  opacity: 1;
  pointer-events: auto;
}

.tour-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.78);
  pointer-events: none;
  transition: top 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              left 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              width 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              height 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              border-radius 0.3s ease;
}

.tour-spotlight.no-target {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 0;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85);
}

.tour-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: #fff;
  padding: 24px 26px;
  border-radius: 14px;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: top 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              left 0.45s cubic-bezier(0.22, 0.9, 0.32, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.tour.open .tour-tooltip {
  opacity: 1;
}

.tour-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.tour-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
}

.tour-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-skip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  background: transparent;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.tour-skip:hover {
  color: rgba(255, 255, 255, 0.85);
}

.tour-nav-group {
  display: flex;
  gap: 6px;
}

.tour-prev,
.tour-next {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.tour-prev {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 16px;
}

.tour-prev:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tour-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tour-next {
  background: #4ade80;
  color: #0a0a0a;
  padding: 8px 16px;
}

.tour-next:hover {
  background: #6ee69b;
  transform: translateY(-1px);
}

/* Force-show UI elements while tour is active */
.material-viewer.tour-active .nav-btn,
.material-viewer.tour-active .dots,
.material-viewer.tour-active .fullscreen-btn,
.material-viewer.tour-active .helper-btn,
.material-viewer.tour-active .audio-btn,
.material-viewer.tour-active .tour-btn,
.material-viewer.tour-active .home-btn {
  opacity: 1 !important;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  border-radius: 18px;
  padding: 40px 44px;
  width: min(720px, calc(100% - 48px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.32, 1);
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-panel::-webkit-scrollbar {
  width: 8px;
}
.modal-panel::-webkit-scrollbar-track {
  background: transparent;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.modal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #fff;
}

.modal-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
  margin: 22px 0 10px;
  letter-spacing: 0.2px;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.modal-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.modal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.modal-body strong {
  color: #fff;
  font-weight: 700;
}

.modal-body em {
  font-style: italic;
  color: #a5d4b6;
}

/* === ROTATE HINT (banner) === */
.rotate-hint {
  display: none;
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 50;
  background: rgba(20, 54, 38, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 10px 14px 10px 16px;
  border-radius: 99px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  max-width: calc(100% - 32px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rotate-hint.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rotate-hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #4ade80;
  animation: rotate-anim 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes rotate-anim {
  0%, 20% { transform: rotate(0deg); }
  50%, 70% { transform: rotate(-90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.rotate-hint-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rotate-hint-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.rotate-hint-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* === FOOTER === */
.site-footer {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  padding: 14px env(safe-area-inset-right) calc(14px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.55);
  z-index: 10;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #4ade80;
}

.footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
    opacity: 0.6;
  }
  .nav-prev { left: calc(12px + env(safe-area-inset-left)); }
  .nav-next { right: calc(12px + env(safe-area-inset-right)); }
  .counter { top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); padding: 8px 14px; font-size: 13px; }
  .fullscreen-btn { top: calc(68px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .dots { opacity: 0.6; bottom: calc(52px + env(safe-area-inset-bottom)); }
  .helper-btn { top: calc(120px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .audio-btn { top: calc(172px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .tour-btn { top: calc(224px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .home-btn { top: calc(16px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .site-footer {
    font-size: 10px;
    padding: 10px env(safe-area-inset-right) calc(10px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  .modal-panel { padding: 32px 24px; }
  .modal-title { font-size: 22px; }
}

@media (max-width: 900px) and (orientation: portrait) {
  .rotate-hint {
    display: flex;
  }
}
