#scene {height:100vh;height:100dvh;height:var(--app-height)}
@media (min-width:1101px) and (max-height:760px) {
  .caption,footer {display:none}
  .toolbar {bottom:19px}
  .explore>button {padding-block:7px}
}
@media (max-width:1100px), (max-height:639px) {
  :root {--gutter:clamp(12px,3vw,28px);--bottom:max(10px,env(safe-area-inset-bottom))}
  header {top:max(12px,env(safe-area-inset-top))}
  .intro,.caption,footer,.edition {display:none}
  #mobile-settings {display:inline-flex}
  body:not(.mobile-settings-open) .environment-panel,
  body:not(.mobile-settings-open) .explore {display:none}
  body.mobile-settings-open #mobile-settings-backdrop {
    display:block;position:fixed;inset:0;z-index:4;background:#172a4345
  }
  .environment-panel,.explore {
    top:76px;z-index:8;width:min(42vw,280px);max-height:calc(100dvh - 160px);
    overscroll-behavior:contain
  }
  .toolbar {bottom:var(--bottom);max-width:calc(100vw - 2 * var(--gutter));overflow-x:auto;scrollbar-width:none}
  #scene-status {bottom:calc(var(--bottom) + 60px)}
}
@media (max-width:700px) {
  header {gap:6px}
  .brand-icon {width:34px;height:34px;font-size:22px}
  .brand {gap:6px;font-size:12px}
  .brand small {font-size:8px}
  .header-actions {gap:4px}
  .header-actions .about-button {font-size:11px;padding:0 8px}
  .round {width:34px}
  .about-button,.round {height:36px}
  .toolbar {width:max-content;max-width:calc(100vw - 2 * var(--gutter));gap:0;padding:4px;border-radius:18px}
  .toolbar button {padding:0 7px;min-height:40px}
  .toolbar .square {width:34px;min-width:34px}
  .divider {margin:0 1px}
  .appearance-panel {right:var(--gutter);width:min(320px,calc(100vw - 2 * var(--gutter)))}
}
@media (max-width:480px) {
  .toolbar {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:min(390px,calc(100vw - 2 * var(--gutter)));overflow:visible}
  .toolbar .divider {display:none}
  .toolbar button {gap:3px;padding:0 2px;min-height:37px;font-size:10px}
  .toolbar .square {width:auto}
  #scene-status {bottom:calc(var(--bottom) + 92px)}
  .environment-panel,.explore {width:auto;left:var(--gutter);right:var(--gutter)}
  .explore {top:66px;max-height:calc(48dvh - 71px);padding:10px}
  .explore .eyebrow,.explore small,.guide-foot {display:none}
  .explore h2 {margin:0 0 5px;font-size:14px}
  .explore>button {display:inline-flex;width:49%;padding:4px 3px;font-size:11px;min-height:30px}
  .activity-links {margin:3px 0 0}
  .activity-links button {min-height:30px}
  .environment-panel {top:auto;bottom:calc(84px + var(--bottom));max-height:calc(51dvh - 88px);padding:11px}
  .environment-heading {font-size:13px}
  .setting-grid,.environment-presets {margin-top:7px}
}
@media (max-width:700px) and (max-height:560px) {
  .environment-panel,.explore {top:64px;bottom:auto;left:auto;right:var(--gutter);width:min(41vw,240px);max-height:calc(100dvh - 127px)}
  .explore {left:var(--gutter);right:auto}
}
@media (hover:none) and (pointer:coarse) {
  button,select,input {touch-action:manipulation}
  .toolbar button {min-height:39px}
}

@media (max-width:480px) {
  :root[lang="en"] .toolbar button:not(.square) {flex-direction:column;gap:2px;white-space:normal;line-height:1.1}
  :root[lang="en"] .toolbar button:not(.square)>[aria-hidden="true"] {font-size:13px}
}
@media (max-width:365px) {
  .brand small {display:none}
  .header-actions .about-button {padding-inline:6px}
}
