:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18283b;
  background: #edf1f6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.toolbar {
  min-height: 80px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffffed;
  border-bottom: 1px solid #dbe2eb;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #ef2545;
  color: white;
  border-radius: 12px;
  font-size: 29px;
  line-height: 1;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand div > span {
  display: block;
  font-size: 12px;
  color: #5c6b7c;
  margin-top: 2px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #edf1f6;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: #40536a;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 19px;
  border-radius: 10px;
  min-height: 42px;
  cursor: pointer;
}
button:hover {
  background: #e2e8f1;
}
button[aria-pressed="true"] {
  color: #cf1737;
  background: white;
  box-shadow: 0 2px 5px #192c4512;
}
button:focus-visible {
  outline: 3px solid #1c79d5;
  outline-offset: 3px;
}
#rotate {
  background: white;
  border-color: #d7dfe9;
}
#rotate > span:first-child {
  font-size: 20px;
  vertical-align: -1px;
  margin-right: 3px;
}
.stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #f9fbff, #e7edf5 85%);
}
.device-holder {
  position: relative;
  width: 417px;
  height: 876px;
  flex-shrink: 0;
}
.device {
  --screen-width: 393px;
  --screen-height: 852px;
  --safe-top: 59px;
  --safe-right: 0px;
  --safe-bottom: 34px;
  --safe-left: 0px;
  --bezel: 12px;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--screen-width) + 2 * var(--bezel));
  height: calc(var(--screen-height) + 2 * var(--bezel));
  padding: var(--bezel);
  border-radius: 57px;
  background: #191c22;
  box-shadow:
    inset 0 0 0 2px #657080,
    inset 0 0 0 6px #101217,
    0 18px 40px #20334c30;
  transform-origin: top left;
}
.screen {
  position: relative;
  width: var(--screen-width);
  height: var(--screen-height);
  overflow: hidden;
  border-radius: 45px;
  background: var(--screen-bg, white);
  color: var(--system-ink, #152538);
}
.device[data-device="ipad"] {
  --bezel: 18px;
  border-radius: 36px;
}
.device[data-device="ipad"] .screen {
  border-radius: 20px;
}
.status-bar {
  height: var(--safe-top);
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 30px 0;
  font-size: 16px;
  font-weight: 650;
}
.device[data-device="ipad"] .status-bar {
  padding: 0 18px;
  font-size: 12px;
}
.island {
  position: absolute;
  top: 11px;
  left: calc(50% - 60px);
  width: 120px;
  height: 33px;
  border-radius: 20px;
  background: #080a0e;
  z-index: 2;
  pointer-events: none;
}
.device[data-device="ipad"] .island {
  display: none;
}
.device[data-device="iphone"][data-orientation="landscape"] .island {
  top: calc(50% - 60px);
  left: 11px;
  width: 33px;
  height: 120px;
}
.device[data-device="iphone"][data-orientation="landscape"] .status-bar {
  display: none;
}
iframe {
  position: absolute;
  top: var(--safe-top);
  left: var(--safe-left);
  width: calc(var(--screen-width) - var(--safe-left) - var(--safe-right));
  height: calc(var(--screen-height) - var(--safe-top) - var(--safe-bottom));
  border: 0;
  background: var(--screen-bg, white);
}
.home-indicator {
  position: absolute;
  bottom: 9px;
  left: calc(50% - 62px);
  width: 124px;
  height: 5px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.9;
  pointer-events: none;
}
.details {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 14px;
  color: #53647a;
  font-size: 12px;
  text-align: center;
}
.details span + span {
  color: #53647a;
}
@media (max-width: 620px) {
  .toolbar {
    padding: 10px 12px;
    min-height: 110px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .brand {
    display: none;
  }
  .controls {
    gap: 8px;
  }
  button {
    padding: 10px 15px;
  }
  .details {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s ease;
  }
}
