:root { color-scheme: light; color: #272f24; background: #36533c; font: 16px system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow: hidden; position: fixed; inset: 0; overscroll-behavior: none; }
[hidden] { display: none !important; }
#stage {
  position: fixed;
  width: var(--view-width, 100%);
  height: var(--view-height, 100dvh);
  top: var(--view-top, 0px);
  left: var(--view-left, 0px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: grid;
  place-items: stretch center;
}
#unity-canvas { display: block; width: 100%; height: 100%; background: #222; touch-action: none; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgb(30 35 23 / 72%); }
.paper { width: min(100%, 25rem); max-height: 100%; overflow: auto; background: #fffcf3; padding: 1.25rem; border: 2px solid #c6a35b; border-radius: .5rem; text-align: center; }
h1, h2 { margin: .4rem 0; }
button { display: block; width: 100%; min-height: 44px; padding: .5rem; color: #fff; background: #36533c; border: 0; border-radius: .3rem; font: inherit; touch-action: manipulation; }
button:disabled { opacity: .6; }
progress, input { display: block; width: 100%; margin: .6rem auto; }
progress { accent-color: #36533c; }
input { font: inherit; font-size: 17px; line-height: 2; }
.actions { display: flex; gap: .5rem; }
#storage-status { position: absolute; pointer-events: none; top: calc(env(safe-area-inset-top) + .25rem); right: .5rem; background: #fffcf3; padding: .25rem .5rem; border-radius: .25rem; font-size: .75rem; }
#landscape { display: none; z-index: 10; }
#name { z-index: 11; }
@media (orientation: landscape) and (hover: none) {
  #landscape { display: grid; }
}
@media (hover: hover) and (pointer: fine) {
  #unity-canvas { max-width: calc(var(--view-height, 100dvh) * .56); }
}

#export-save { margin-top: .5rem; }
