html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ai {
  display: contents;
}

.ai__phone {
  width: 100%;
  max-width: 300px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff7e6;
  display: flex;
  flex-direction: column;
}

.ai__screen {
  flex: 0 0 64px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai__row {
  flex: 0 0 auto;
  height: 18px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.16);
}

.ai__nav {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 4px;
  background: #fff7e6;
  border-top: 1px solid rgba(23, 20, 26, 0.12);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  will-change: height;
}

.ai__tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 12px;
  color: rgba(23, 20, 26, 0.72);
}

.ai__tab.is-active {
  color: #0a4fe8;
}

.ai__icon {
  width: 18px;
  height: 18px;
}

.ai__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ai__inset {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: height;
  overflow: hidden;
}

.ai__homeIndicator {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.55);
  margin-bottom: 4px;
}

.ai__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff7e6;
  font-size: 12px;
  text-align: center;
}

.ai__toggle {
  border: none;
  border-radius: 12px;
  background: #0a4fe8;
  color: #fff7e6;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 340px) {
  .ai__phone {
    max-width: 230px;
  }
  .ai__screen {
    flex: 0 0 auto;
    padding: 0;
    gap: 0;
  }
  .ai__row {
    height: 8px;
  }
  .ai__info {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    gap: 4px;
    font-size: 10px;
  }
  .ai__toggle {
    padding: 4px 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai__nav, .ai__inset, .ai__homeIndicator {
    transition: none;
  }
}
