:root {
  color-scheme: dark;
  --iphone-screen-width: 440px;
  --iphone-screen-height: 956px;
  --iphone-bezel: 14px;
  --iphone-frame-width: calc(var(--iphone-screen-width) + (var(--iphone-bezel) * 2));
  --iphone-frame-height: calc(var(--iphone-screen-height) + (var(--iphone-bezel) * 2));
  --emulator-stage-padding: clamp(12px, 2dvh, 24px);
  --emulator-bottom-clearance: clamp(112px, 13dvh, 170px);
  --iphone-scale: 0.86;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(6, 10, 9, 0.9), rgba(20, 26, 22, 0.54)),
    url("/assets/brand/outrwild-login-photo.png") center / cover no-repeat,
    #0a0f0d;
}

.emulator-stage {
  width: 100vw;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--emulator-stage-padding);
}

.phone-scale {
  width: calc(var(--iphone-frame-width) * var(--iphone-scale));
  height: calc(var(--iphone-frame-height) * var(--iphone-scale));
  display: grid;
  place-items: start;
}

.phone-frame {
  position: relative;
  width: var(--iphone-frame-width);
  height: var(--iphone-frame-height);
  padding: var(--iphone-bezel);
  transform: scale(var(--iphone-scale));
  transform-origin: top left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 68px;
  background:
    linear-gradient(145deg, #1f2323, #060808 48%, #303433),
    #0b0d0d;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 8px #060707;
}

.phone-screen {
  position: relative;
  width: var(--iphone-screen-width);
  height: var(--iphone-screen-height);
  overflow: hidden;
  border-radius: 54px;
  background: #08100d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen,
.phone-screen * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar,
.phone-screen *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.phone-screen #root {
  display: block;
  width: var(--iphone-screen-width);
  height: var(--iphone-screen-height);
}

.phone-screen #root > * {
  height: 100%;
  min-height: 100%;
}

.phone-screen #root [data-reactroot],
.phone-screen #root > div,
.phone-screen #root > div > div {
  min-height: 100%;
}

.phone-screen [role="tablist"] {
  min-height: 92px !important;
  padding-top: 8px !important;
  padding-bottom: 30px !important;
}

.phone-screen [role="tab"] {
  min-height: 56px !important;
}

.phone-dynamic-island {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 4;
  width: 128px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050606;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

@media (max-width: 760px) {
  body {
    background: #08100d;
  }

  .emulator-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .phone-scale,
  .phone-frame,
  .phone-screen,
  .phone-screen #root {
    width: 100vw;
    height: 100dvh;
  }

  .phone-scale {
    display: block;
  }

  .phone-frame {
    padding: 0;
    transform: none;
    border: 0;
    border-radius: 0;
    background: #08100d;
    box-shadow: none;
  }

  .phone-screen {
    border-radius: 0;
    box-shadow: none;
  }

  .phone-dynamic-island {
    display: none;
  }
}
