:root {
  --brown: #4b2a16;
  --lime: #c7f23a;
}

* { box-sizing: border-box; }
html { background: #121110; }
body { margin: 0; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.phone-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 12%, rgba(199, 242, 58, .16), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(115, 69, 35, .32), transparent 30rem),
    linear-gradient(135deg, #151311, #29231e 55%, #121110);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.phone-device {
  position: relative;
  height: min(852px, calc(100svh - 52px), 203vw);
  aspect-ratio: 393 / 852;
  flex: none;
  padding: 9px;
  border: 1px solid #3d3b39;
  border-radius: 58px;
  background: linear-gradient(145deg, #575451 0%, #161514 16%, #050505 48%, #393735 100%);
  box-shadow: 0 34px 85px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 3px #070707 inset;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 49px;
  background: #100e0d;
  color: #fff;
  touch-action: manipulation;
  user-select: none;
}
.phone-view-lock { touch-action: none; }
.phone-view-app { touch-action: pan-y; user-select: auto; }

.phone-side-button {
  position: absolute;
  z-index: -1;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(#5c5956, #171615, #494643);
}
.phone-mute { top: 112px; left: -4px; height: 29px; }
.phone-volume-up { top: 163px; left: -4px; height: 59px; }
.phone-volume-down { top: 235px; left: -4px; height: 59px; }
.phone-power { top: 183px; right: -4px; height: 84px; }

.dynamic-island {
  position: absolute;
  z-index: 50;
  top: 10px;
  left: 50%;
  width: 112px;
  height: 31px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 1px 1px rgba(255, 255, 255, .08) inset;
}
.dynamic-island i {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #293b50, #0d1520 65%, #000);
}

.phone-status-bar {
  position: absolute;
  z-index: 45;
  top: 0;
  left: 0;
  right: 0;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  color: currentColor;
  font-size: 12px;
  font-weight: 750;
}
.status-symbols { display: flex; align-items: center; gap: 6px; }
.signal-bars { height: 11px; display: flex; align-items: flex-end; gap: 1.5px; }
.signal-bars i { width: 2.5px; border-radius: 1px; background: currentColor; }
.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 10px; }
.wifi-symbol { font-size: 15px; line-height: 1; transform: rotate(-18deg); }
.battery-symbol { position: relative; width: 21px; height: 10px; padding: 1.5px; border: 1px solid currentColor; border-radius: 3px; }
.battery-symbol::after { content: ""; position: absolute; right: -3px; top: 3px; width: 1.5px; height: 4px; background: currentColor; }
.battery-symbol i { display: block; width: 75%; height: 100%; border-radius: 1px; background: currentColor; }

.lock-screen, .home-screen, .hoju-splash, .hoju-app-window { position: absolute; inset: 0; }
.lock-screen, .home-screen {
  background:
    radial-gradient(circle at 25% 7%, rgba(214, 255, 75, .78), transparent 17%),
    radial-gradient(circle at 83% 31%, rgba(125, 81, 43, .74), transparent 31%),
    radial-gradient(circle at 23% 80%, rgba(34, 84, 58, .8), transparent 34%),
    linear-gradient(150deg, #2f1a10 4%, #795031 39%, #172b20 76%, #0d120f);
}
.lock-screen::before, .home-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.19)); backdrop-filter: saturate(115%); }

.lock-content { position: relative; z-index: 2; padding-top: 78px; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.22); }
.lock-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 5px; font-size: 20px; transform: rotate(90deg); }
.lock-content p { margin: 0; font-size: 16px; font-weight: 550; }
.lock-content h1 { margin: -3px 0 0; font-size: clamp(68px, 9vh, 87px); font-weight: 270; letter-spacing: -.065em; }

.lock-shortcuts { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 55px; display: flex; justify-content: space-between; }
.lock-shortcuts span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(15,15,15,.55); backdrop-filter: blur(14px); font-size: 20px; }
.unlock-control {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  display: grid;
  justify-items: center;
  min-width: 160px;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  animation: unlock-pulse 2.4s ease-in-out infinite;
}
.unlock-control span { font-size: 23px; line-height: .85; }

.home-screen { padding: 58px 20px 22px; }
.home-widget {
  position: relative;
  z-index: 2;
  min-height: 118px;
  display: grid;
  align-content: end;
  gap: 3px;
  margin-bottom: 21px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(35, 27, 21, .32);
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(25px);
}
.home-widget span { color: #dfff4f; font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.home-widget strong { max-width: 250px; font-size: 18px; line-height: 1.08; letter-spacing: -.025em; }
.home-widget small { margin-top: 3px; color: rgba(255,255,255,.75); font-size: 11px; }

.app-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; column-gap: 11px; row-gap: 18px; }
.phone-app { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.phone-app:active .app-icon { transform: scale(.88); filter: brightness(.86); }
.app-icon {
  width: clamp(50px, 7vh, 59px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(224,224,224,.91));
  box-shadow: 0 3px 10px rgba(0,0,0,.17), 0 0 0 .5px rgba(255,255,255,.45) inset;
  font-size: 28px;
  line-height: 1;
  transition: transform 130ms ease, filter 130ms ease;
}
.app-label { max-width: 72px; overflow: hidden; color: #fff; font-size: 10px; font-weight: 550; text-align: center; text-overflow: ellipsis; text-shadow: 0 1px 5px rgba(0,0,0,.75); white-space: nowrap; }
.hoju-app-icon { background: #4b2a16; }
.hoju-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-photos { background: linear-gradient(145deg, #fff, #f2f2f2); }
.app-icon-camera { background: linear-gradient(145deg, #e8e8e8, #8d8d8d); }
.app-icon-maps { background: linear-gradient(145deg, #eaffd8, #76bf69); }
.app-icon-weather { background: linear-gradient(145deg, #2e9df4, #82d6ff); }
.app-icon-clock { background: linear-gradient(145deg, #161616, #454545); }
.app-icon-notes { background: linear-gradient(180deg, #ffd83f 0 22%, #fff 22%); }
.app-icon-settings { background: linear-gradient(145deg, #bdbdbd, #626262); }
.app-icon-phone { background: linear-gradient(145deg, #60db72, #19a544); }
.app-icon-messages { background: linear-gradient(145deg, #67e97b, #20b850); }
.app-icon-browser { background: linear-gradient(145deg, #fff, #dff3ff); color: #168fdb; }
.app-icon-music { background: linear-gradient(145deg, #ff6880, #f02c55); }

.home-page-dots { position: absolute; z-index: 2; left: 50%; bottom: 111px; display: flex; gap: 5px; transform: translateX(-50%); }
.home-page-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.38); }
.home-page-dots i:first-child { background: rgba(255,255,255,.92); }
.phone-dock { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 19px; height: 84px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(238, 230, 222, .24); backdrop-filter: blur(29px) saturate(140%); }
.dock-app .app-icon { width: clamp(49px, 6.5vh, 57px); }

.dummy-notice { position: absolute; z-index: 20; left: 50%; bottom: 119px; max-width: 80%; margin: 0; padding: 9px 13px; transform: translate(-50%, 9px); border-radius: 999px; background: rgba(21,19,18,.78); opacity: 0; color: #fff; font-size: 10px; text-align: center; pointer-events: none; backdrop-filter: blur(18px); transition: opacity 180ms ease, transform 180ms ease; }
.dummy-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }

.hoju-splash { background: radial-gradient(circle at 50% 43%, rgba(199,242,58,.11), transparent 34%), linear-gradient(150deg, #25150c, #4b2a16 54%, #17100b); }
.splash-lockup { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 10%; }
.splash-lockup img { width: 112px; height: 112px; border-radius: 29px; box-shadow: 0 23px 46px rgba(0,0,0,.3); animation: hoju-logo-intro 1.25s cubic-bezier(.2,.8,.2,1) both; }
.splash-lockup strong { margin-top: 18px; color: #dfff4f; font-size: 31px; letter-spacing: .15em; text-indent: .15em; animation: hoju-word-intro 1.1s .14s ease both; }
.splash-lockup span { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .04em; animation: hoju-word-intro 1.1s .24s ease both; }

.hoju-app-window { background: #f7f2e9; }
.app-status-overlay { position: absolute; z-index: 22; top: 0; left: 0; right: 0; height: 44px; color: #fff; pointer-events: none; }
.hoju-iframe { position: absolute; top: 0; left: 0; width: 375px; height: 100%; padding-top: 34px; transform-origin: top left; border: 0; background: #f7f2e9; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.home-indicator-button { position: absolute; z-index: 30; left: 50%; bottom: 4px; width: 132px; height: 21px; padding: 8px 0; transform: translateX(-50%); border: 0; background: transparent; cursor: pointer; }
.home-indicator-button span { display: block; width: 100%; height: 4px; border-radius: 999px; background: rgba(15,15,15,.83); box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.phone-help { margin: 0; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .025em; }

@keyframes unlock-pulse {
  0%, 100% { opacity: .65; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}
@keyframes hoju-logo-intro {
  0% { opacity: 0; transform: scale(.82); filter: blur(7px); }
  46% { opacity: 1; transform: scale(1.04); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hoju-word-intro {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 690px) {
  .home-widget { min-height: 92px; margin-bottom: 13px; }
  .app-grid { row-gap: 12px; }
  .app-icon { width: 47px; }
  .phone-dock { height: 70px; bottom: 14px; }
  .home-page-dots { bottom: 93px; }
  .dummy-notice { bottom: 98px; }
}

@media (max-width: 430px) {
  .phone-stage { padding: 7px; }
  .phone-device { height: min(852px, calc(100svh - 26px), 211vw); padding: 7px; border-radius: 52px; }
  .phone-screen { border-radius: 44px; }
  .phone-help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .unlock-control, .splash-lockup img, .splash-lockup strong, .splash-lockup span { animation: none; }
}
