/* ============================================================
   07 — APPLE iOS
   Konsep: undangan sebagai iPhone. Lock screen → home screen →
   app sheet. Sistem warna iOS, kaca, dan tipografi SF.
   ============================================================ */
:root {
  --ios-blue: #0a84ff;
  --ios-green: #30d158;
  --ios-red: #ff453a;
  --ios-yellow: #ffd60a;
  --ios-text: #000;
  --ios-muted: #8e8e93;
  --ios-line: rgba(60, 60, 67, 0.16);
  --ios-fill: rgba(118, 118, 128, 0.12);
  --ios-card: #ffffff;
  --ios-sheet: #f2f2f7;
  --ios-chat: #f2f2f7;
  --ios-in: #e9e9eb;
  --ios-out: #0a84ff;
  --ios-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-radius: 58px;
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.ios {
  background: #101014;
  color: var(--ios-text);
  font-family: var(--ios-font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.ios.ios-dark {
  --ios-text: #fff;
  --ios-muted: #98989f;
  --ios-line: rgba(255, 255, 255, 0.16);
  --ios-fill: rgba(120, 120, 128, 0.28);
  --ios-card: #1c1c1e;
  --ios-sheet: #1c1c1e;
  --ios-chat: #000;
  --ios-in: #26262a;
}

.ios-stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 16px;
  background:
    radial-gradient(70% 60% at 50% 0%, #2a2a33 0%, transparent 65%),
    radial-gradient(60% 50% at 80% 100%, #1b2433 0%, transparent 60%),
    #101014;
}
.ios-stage__note {
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- PHONE SHELL ---------- */
.ios-phone {
  position: relative;
  width: min(404px, 100%);
  height: min(880px, 94svh);
  background: #000;
  border: 11px solid #17171a;
  border-radius: var(--ios-radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 90px rgba(40, 80, 160, 0.12);
  color: #fff;
}
.ios-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 200;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.18);
}

/* ---------- STATUS BAR ---------- */
.ios-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 52px;
  padding: 15px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
}
.ios-statusbar__time { font-variant-numeric: tabular-nums; padding-top: 1px; }
.ios-statusbar__icons { display: flex; align-items: center; gap: 6px; position: relative; }
.ios-sig { width: 17px; height: 12px; fill: currentColor; }
.ios-wifi { width: 16px; height: 12px; fill: currentColor; }
.ios-battery { width: 25px; height: 12px; fill: currentColor; }
.ios-cc-trigger {
  position: absolute;
  inset: -14px -12px -14px -14px;
  background: transparent;
  border: 0;
  border-radius: 20px;
  pointer-events: auto;
  cursor: pointer;
}

/* ---------- DYNAMIC ISLAND ---------- */
.ios-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 124px;
  height: 35px;
  border: 0;
  border-radius: 20px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: width 0.5s var(--ios-ease), height 0.5s var(--ios-ease),
    border-radius 0.5s var(--ios-ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ios-island__compact {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.25s;
}
.ios-island__compact i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 8px var(--ios-green);
}
.ios-island__expanded {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  white-space: nowrap;
}
.ios-island__avatars { display: flex; }
.ios-island__avatars img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #000;
}
.ios-island__avatars img + img { margin-left: -8px; }
.ios-island__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.ios-island__text strong { font-size: 12px; font-weight: 600; }
.ios-island__text em { font-size: 9px; font-style: normal; color: rgba(255, 255, 255, 0.6); }
.ios-island.is-expanded {
  width: min(310px, 82%);
  height: 54px;
  border-radius: 28px;
}
.ios-island.is-expanded .ios-island__compact { opacity: 0; }
.ios-island.is-expanded .ios-island__expanded { opacity: 1; }
.ios-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: auto; }
.ios-eq i {
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: var(--ios-green);
  animation: iosEq 1.1s ease-in-out infinite;
}
.ios-eq i:nth-child(2) { animation-delay: 0.18s; height: 9px; }
.ios-eq i:nth-child(3) { animation-delay: 0.36s; height: 13px; }
.ios-eq i:nth-child(4) { animation-delay: 0.52s; height: 7px; }
@keyframes iosEq {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ---------- LOCK SCREEN ---------- */
.ios-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  transition: transform 0.9s var(--ios-ease), opacity 0.7s ease,
    visibility 0.9s;
}
.ios-lock__bg { position: absolute; inset: 0; }
.ios-lock__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.04);
  animation: iosKen 22s ease-in-out infinite alternate;
}
@keyframes iosKen {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.12) translateY(-1.5%); }
}
.ios-lock__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(80% 55% at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.28) 100%);
}
.ios-lock__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 76px 18px 26px;
  color: #fff;
}
.ios-lock__date {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.ios-lock__clock {
  text-align: center;
  font-size: clamp(72px, 21vw, 92px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}
.ios-lock__notifs {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 22px;
}
.ios-lock__notif-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-left: 6px;
  margin-bottom: 1px;
}
.ios-notif {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  padding: 11px 12px;
  transition: background 0.25s, transform 0.25s var(--ios-ease);
}
.ios-notif:hover, .ios-notif:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.ios-notif__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.ios-notif__icon svg { width: 22px; fill: #fff; }
.ios-notif__icon--heart { background: linear-gradient(160deg, #ff6b81, #e11d48); }
.ios-notif__icon--cal { background: #fff; color: #ff3b30; flex-direction: column; gap: 0; }
.ios-notif__icon--cal span { font-size: 17px; font-weight: 600; line-height: 1; padding-top: 3px; }
.ios-notif__icon--cal::before {
  content: "DES";
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #ff3b30;
  padding-top: 5px;
  font-weight: 700;
}
.ios-notif__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ios-notif__meta {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
}
.ios-notif__body strong { font-size: 12.5px; font-weight: 600; }
.ios-notif__body > span:last-child {
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.86;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ios-notif__body b { font-weight: 600; }
.ios-lock__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
}
.ios-unlock {
  background: transparent;
  border: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.ios-unlock__chev {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  animation: iosChev 2.4s ease-in-out infinite;
}
.ios-unlock__chev svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes iosChev {
  0%, 100% { transform: translateY(3px); opacity: 0.6; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.ios-lock__credit {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 4px 8px;
}
.ios-lock__credit:hover { color: #fff; }
.ios-phone.is-unlocked .ios-lock {
  transform: translateY(-14%) scale(1.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- HOME SCREEN ---------- */
.ios-home {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.75s ease 0.1s, transform 0.9s var(--ios-ease) 0.1s,
    visibility 0.75s;
  overflow: hidden;
}
.ios-phone.is-unlocked .ios-home {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.ios-home__bg { position: absolute; inset: 0; }
.ios-home__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(1.05);
  transform: scale(1.1);
}
.ios-home__blur {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}
.ios-home__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 10, 18, 0.34), rgba(8, 10, 18, 0.58)),
    radial-gradient(90% 60% at 50% 0%, rgba(80, 110, 180, 0.26), transparent 70%);
  transition: background 0.4s;
}
body.ios-dark .ios-home__tint {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8)),
    radial-gradient(90% 60% at 50% 0%, rgba(30, 50, 90, 0.3), transparent 70%);
}
.ios-home__scroll {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 66px 20px 128px;
  scrollbar-width: none;
}
.ios-home__scroll::-webkit-scrollbar { display: none; }
.ios-home__heading { padding: 0 4px 16px; color: #fff; }
.ios-home__eyebrow {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 3px;
}
.ios-home__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.ios-home__title span { font-weight: 400; opacity: 0.7; }

/* Widget */
.ios-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 15px 17px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(20, 24, 34, 0.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ios-ease), background 0.3s;
}
.ios-widget:hover, .ios-widget:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.ios-widget__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.ios-widget__live { display: inline-flex; align-items: center; gap: 4px; color: #7dffa4; letter-spacing: 0.1em; }
.ios-widget__live i { width: 5px; height: 5px; border-radius: 50%; background: #7dffa4; box-shadow: 0 0 6px #7dffa4; }
.ios-widget__count { display: flex; align-items: flex-end; gap: 14px; margin-top: 2px; }
.ios-widget__days { display: flex; align-items: baseline; gap: 5px; }
.ios-widget__days b {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.ios-widget__days em,
.ios-widget__sm em { font-style: normal; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.ios-widget__sm { display: flex; gap: 10px; padding-bottom: 4px; }
.ios-widget__sm span { display: flex; flex-direction: column; line-height: 1.1; }
.ios-widget__sm b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ios-widget__meta { font-size: 10px; letter-spacing: 0.02em; opacity: 0.68; }

/* Apps */
.ios-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  margin-top: 22px;
  padding: 0 2px;
}
.ios-app {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.ios-app__label {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.ios-app__badge {
  position: absolute;
  top: -4px;
  right: calc(50% - 33px);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
}
.ios-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s var(--ios-ease), filter 0.25s;
}
.ios-app:hover .ios-icon,
.ios-app:focus-visible .ios-icon,
.ios-dock__app:hover .ios-icon,
.ios-dock__app:focus-visible .ios-icon { transform: scale(1.07); filter: brightness(1.05); }
.ios-app:active .ios-icon, .ios-dock__app:active .ios-icon { transform: scale(0.94); }
.ios-icon svg { width: 34px; height: 34px; fill: #fff; }
.ios-icon--photos {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    conic-gradient(from 20deg, #ffd60a, #ff9f0a, #ff453a, #bf5af2, #0a84ff, #30d158, #ffd60a);
}
.ios-icon--photos svg { fill: rgba(255, 255, 255, 0.92); width: 40px; height: 40px; }
.ios-icon--maps { background: linear-gradient(155deg, #8ed6ff, #0a84ff 62%, #0060df); }
.ios-icon--calendar { background: #fff; display: flex; flex-direction: column; justify-content: flex-start; }
.ios-icon__cal-top {
  width: 100%;
  background: #ff3b30;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 5px 0 4px;
}
.ios-icon__cal-day { color: #1c1c1e; font-size: 26px; font-weight: 300; line-height: 1; margin-top: 2px; }
.ios-icon--messages { background: linear-gradient(160deg, #6bfd8a, #0fbe3e 55%, #00a832); }
.ios-icon--messages svg { width: 36px; height: 36px; }
.ios-icon--music { background: linear-gradient(160deg, #ff7a9c, #f0325b 55%, #d61c46); }
.ios-icon--notes { background: linear-gradient(180deg, #fff 0 22%, #fff 22%); }
.ios-icon--notes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13px;
  background: #ffd60a;
}
.ios-icon__notes-line {
  display: block;
  width: 32px;
  height: 2px;
  background: #d1d1d6;
  border-radius: 2px;
  margin: 3.5px 0;
  position: relative;
  top: 5px;
}
.ios-icon--letter { background: linear-gradient(150deg, #fbf6ec, #efe3cf); }
.ios-icon__mono {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #7a5c3e;
}
.ios-icon__mono span { font-size: 11px; vertical-align: 0.12em; padding: 0 1px; }
.ios-icon--settings { background: linear-gradient(160deg, #8e8e93, #48484a); }
.ios-app--ghost .ios-icon { opacity: 0.92; }

/* Dock */
.ios-dock {
  position: absolute;
  z-index: 30;
  left: 14px;
  right: 14px;
  bottom: 20px;
  height: 74px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.ios-dock__app {
  background: none;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.ios-dock__app .ios-icon { width: 54px; height: 54px; border-radius: 14px; }

.ios-home__foot {
  margin-top: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ios-home__foot a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.ios-home__foot a:hover { color: #fff; }

.ios-homebar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  z-index: 45;
}
.ios-homebar--light { background: rgba(255, 255, 255, 0.75); }

/* ---------- SHEET ---------- */
.ios-sheet {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--ios-sheet);
  color: var(--ios-text);
  border-radius: 42px 42px 0 0;
  overflow: hidden;
  transform: translateY(103%);
  visibility: hidden;
  transition: transform 0.62s var(--ios-ease), visibility 0.62s;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.45);
}
.ios-sheet.is-open { transform: translateY(0); visibility: visible; }
.ios-sheet__head {
  position: relative;
  z-index: 3;
  padding: 7px 18px 0;
  background: var(--ios-sheet);
  flex: 0 0 auto;
  touch-action: none;
}
.ios-sheet__grab {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--ios-line);
  margin: 0 auto 5px;
}
.ios-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 10px;
}
.ios-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--ios-fill);
  color: var(--ios-text);
  display: grid;
  place-items: center;
}
.ios-sheet__close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ios-sheet__app {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ios-muted);
}
.ios-sheet__done {
  border: 0;
  background: none;
  color: var(--ios-blue);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
}
.ios-sheet__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 2px 4px 12px;
  line-height: 1.1;
}
.ios-sheet__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px calc(44px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.ios-sheet__body::-webkit-scrollbar { display: none; }
.ios-panel { display: none; }
.ios-panel.is-active { display: block; animation: iosPanel 0.42s var(--ios-ease); }
@keyframes iosPanel {
  from { opacity: 0; transform: translateY(10px); }
}
.ios-kicker {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ios-muted);
  margin-bottom: 3px;
}
.ios-kicker--section { margin: 22px 4px 10px; }

/* Segmented */
.ios-segment {
  display: flex;
  gap: 2px;
  background: var(--ios-fill);
  border-radius: 9px;
  padding: 2px;
  margin-bottom: 14px;
}
.ios-segment button {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ios-text);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}
.ios-segment button.is-active {
  background: var(--ios-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

/* Photos */
.ios-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
}
.ios-photo {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ios-fill);
  padding: 0;
  border: 0;
}
.ios-photo:first-child { grid-column: span 2; grid-row: span 2; }
.ios-photos.is-filtered .ios-photo:first-child { grid-column: auto; grid-row: auto; }
.ios-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ios-ease), filter 0.3s;
}
.ios-photo:hover img { transform: scale(1.05); filter: brightness(0.86); }
.ios-photo__cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(4px);
  transition: 0.25s;
}
.ios-photo:hover .ios-photo__cap { opacity: 1; transform: none; }
.ios-photos__hint {
  font-size: 11px;
  color: var(--ios-muted);
  text-align: center;
  margin-top: 14px;
}

/* Buttons */
.ios-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  border: 0;
  background: var(--ios-fill);
  color: var(--ios-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ios-ease), background 0.2s, opacity 0.2s;
}
.ios-btn:hover { transform: translateY(-1px); background: var(--ios-line); }
.ios-btn--primary { background: var(--ios-blue); color: #fff; }
.ios-btn--primary:hover { background: #0070e0; }
.ios-btn--quiet { background: transparent; color: var(--ios-blue); padding: 0 8px; }
.ios-btn--full { width: 100%; }
.ios-linkbtn {
  border: 0;
  background: none;
  color: var(--ios-blue);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0 0;
  text-align: left;
}

/* Maps */
.ios-map { position: relative; border-radius: 20px; overflow: hidden; background: #e8eadf; }
.ios-map__art { width: 100%; height: 258px; display: block; }
.ios-map__pin-label {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-20%);
  background: #fff;
  color: #1c1c1e;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.ios-map__pin-label::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
}
.ios-map__card {
  position: relative;
  margin: -22px 10px 10px;
  background: var(--ios-card);
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.35);
}
.ios-map__card-top { display: flex; gap: 11px; align-items: center; }
.ios-map__thumb { width: 54px; height: 54px; border-radius: 11px; overflow: hidden; flex: 0 0 auto; }
.ios-map__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ios-map__card h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ios-map__rating { font-size: 10px; color: #f5a623; letter-spacing: 0.02em; }
.ios-map__rating span { color: var(--ios-muted); }
.ios-map__open { font-size: 10.5px; color: var(--ios-green); }
.ios-map__addr { font-size: 11.5px; line-height: 1.45; color: var(--ios-muted); margin: 9px 0 10px; }
.ios-map__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ios-listcard {
  margin-top: 12px;
  background: var(--ios-card);
  border-radius: 16px;
  padding: 13px 15px;
}
.ios-listcard__venue { font-size: 14px; font-weight: 600; }
.ios-listcard__meta { font-size: 11px; color: var(--ios-muted); line-height: 1.5; }

/* Calendar */
.ios-cal { background: var(--ios-card); border-radius: 18px; padding: 14px 12px 10px; }
.ios-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 10px;
  font-size: 14px;
  font-weight: 600;
}
.ios-cal__badge {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ios-blue);
  background: rgba(10, 132, 255, 0.12);
  border-radius: 6px;
  padding: 3px 6px;
}
.ios-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ios-cal__dow {
  text-align: center;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ios-muted);
  padding: 4px 0 6px;
}
.ios-cal__day {
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
}
.ios-cal__day--empty { opacity: 0; }
.ios-cal__day--event {
  background: var(--ios-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.4);
}
.ios-countdown {
  margin: 12px 0;
  border-radius: 18px;
  padding: 14px 14px 13px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #0a84ff, #0057c2);
}
.ios-countdown__label {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 6px;
}
.ios-countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ios-countdown__row span { display: flex; flex-direction: column; line-height: 1.1; }
.ios-countdown__row b { font-size: 23px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ios-countdown__row em { font-style: normal; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
.ios-event {
  display: flex;
  gap: 12px;
  background: var(--ios-card);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.ios-event__bar { width: 4px; border-radius: 3px; flex: 0 0 auto; }
.ios-event__bar--red { background: #ff453a; }
.ios-event__bar--blue { background: #0a84ff; }
.ios-event__tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ios-muted);
  margin-bottom: 2px;
}
.ios-event h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ios-event__time { font-size: 11.5px; color: var(--ios-text); margin-top: 3px; }
.ios-event__addr { font-size: 10.5px; color: var(--ios-muted); line-height: 1.45; margin-top: 4px; }

/* Chat / RSVP */
.ios-chat {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ios-chat);
  border: 1px solid var(--ios-line);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.ios-chat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: var(--ios-card);
  border-bottom: 1px solid var(--ios-line);
}
.ios-chat__avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.ios-chat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ios-chat__head strong { display: block; font-size: 12.5px; }
.ios-chat__head em { font-size: 9px; font-style: normal; color: var(--ios-green); }
.ios-chat__dots { margin-left: auto; color: var(--ios-muted); letter-spacing: 1px; font-size: 12px; }
.ios-chat__body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  overflow-y: auto;
  max-height: 540px;
}
.ios-chat__time { text-align: center; font-size: 8.5px; letter-spacing: 0.08em; color: var(--ios-muted); margin-bottom: 3px; }
.ios-bubble {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--ios-text);
}
.ios-bubble--in { background: var(--ios-in); align-self: flex-start; border-bottom-left-radius: 5px; }
.ios-bubble--out { background: var(--ios-out); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.ios-bubble b { font-weight: 600; }
.ios-rsvp {
  background: var(--ios-card);
  border: 1px solid var(--ios-line);
  border-radius: 16px;
  padding: 13px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ios-rsvp__title { font-size: 13px; font-weight: 600; }
.ios-field { display: flex; flex-direction: column; gap: 3px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ios-muted); }
.ios-field input, .ios-field select, .ios-field textarea {
  width: 100%;
  border: 1px solid var(--ios-line);
  background: var(--ios-sheet);
  color: var(--ios-text);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s, background 0.2s;
}
.ios-field input:focus, .ios-field select:focus, .ios-field textarea:focus {
  outline: none;
  border-color: var(--ios-blue);
  background: var(--ios-card);
}
.ios-rsvp__note { font-size: 9px; color: var(--ios-muted); text-align: center; }
.ios-chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: var(--ios-card);
  border-top: 1px solid var(--ios-line);
  color: var(--ios-muted);
  font-size: 11px;
}
.ios-chat__plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ios-fill);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.ios-chat__fake {
  flex: 1;
  border: 1px solid var(--ios-line);
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 10.5px;
}
.ios-chat__send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ios-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* Music */
.ios-now {
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(145deg, #2b2b31, #151518);
  color: #fff;
  border-radius: 20px;
  padding: 15px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  align-items: center;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.8);
}
.ios-now__art { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px -10px #000; }
.ios-now__art img { width: 100%; height: 100%; object-fit: cover; }
.ios-now__meta .ios-kicker { color: rgba(255, 255, 255, 0.5); }
.ios-now__meta h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.ios-now__meta p:last-child { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); }
.ios-now__story {
  grid-column: 1 / -1;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 2px;
  max-height: 76px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ios-now__progress {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-top: 2px;
}
.ios-now__progress span { display: block; height: 100%; width: 18%; background: rgba(255, 255, 255, 0.85); border-radius: 2px; transition: width 0.4s linear; }
.ios-now__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: -2px;
}
.ios-now__controls button {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  padding: 4px;
}
.ios-now__play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111 !important;
  font-size: 13px !important;
}
.ios-tracks { display: flex; flex-direction: column; gap: 1px; background: var(--ios-card); border-radius: 16px; overflow: hidden; }
.ios-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--ios-card);
  color: var(--ios-text);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ios-line);
  transition: background 0.2s;
}
.ios-track:last-child { border-bottom: 0; }
.ios-track:hover, .ios-track:focus-visible { background: var(--ios-fill); }
.ios-track.is-active { background: rgba(10, 132, 255, 0.09); }
.ios-track__num { font-size: 10px; color: var(--ios-muted); width: 16px; font-variant-numeric: tabular-nums; }
.ios-track__body { flex: 1; min-width: 0; }
.ios-track__body strong { display: block; font-size: 12.5px; font-weight: 500; }
.ios-track__body em { font-style: normal; font-size: 9.5px; color: var(--ios-muted); }
.ios-track__dur { font-size: 10px; color: var(--ios-muted); }
.ios-track__eq { display: flex; gap: 1.5px; align-items: flex-end; height: 11px; }
.ios-track__eq i { width: 2px; background: var(--ios-blue); animation: iosEq 1s ease-in-out infinite; }
.ios-track__eq i:nth-child(2) { animation-delay: .2s; }
.ios-track__eq i:nth-child(3) { animation-delay: .4s; }
.ios-music__quote {
  margin: 16px 4px 0;
  font-size: 11.5px;
  line-height: 1.6;
  font-style: italic;
  color: var(--ios-muted);
  text-align: center;
}

/* Notes */
.ios-notes__date { font-size: 10px; color: var(--ios-muted); text-align: center; margin-bottom: 12px; }
.ios-notes__quote {
  position: relative;
  background: linear-gradient(160deg, #fff7d6, #ffefad);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  color: #4a3c12;
}
.ios-notes__quote span {
  position: absolute;
  top: 4px;
  left: 12px;
  font-family: Georgia, serif;
  font-size: 38px;
  opacity: 0.25;
  line-height: 1;
}
.ios-notes__quote p { font-size: 14px; line-height: 1.55; font-style: italic; }
.ios-person {
  display: flex;
  gap: 13px;
  background: var(--ios-card);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
}
.ios-person__photo { width: 88px; height: 112px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.ios-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ios-person__body { min-width: 0; }
.ios-person__role { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ios-muted); }
.ios-person h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 1px 0 3px; }
.ios-person__parents { font-size: 9.5px; line-height: 1.45; color: var(--ios-muted); }
.ios-person__bio { font-size: 10.5px; line-height: 1.5; margin-top: 6px; }
.ios-person__ig { display: inline-block; margin-top: 6px; font-size: 10.5px; color: var(--ios-blue); text-decoration: none; }
.ios-notes__foot {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ios-muted);
  padding: 8px 4px 0;
}

/* Closing */
.ios-closing {
  text-align: center;
  padding: 26px 20px 20px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(165deg, #fbf6ec, #efe3cf);
  color: #4a3a26;
}
body.ios-dark .ios-closing {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(165deg, #2a2620, #1d1a16);
  color: #efe3cf;
}
.ios-closing__eyebrow { font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.6; }
.ios-closing__mono {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 30px;
  letter-spacing: 0.06em;
  margin: 8px 0 2px;
}
.ios-closing__mono span { font-size: 17px; padding: 0 3px; opacity: 0.6; }
.ios-closing h3 { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }
.ios-closing__date { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 2px; }
.ios-closing__guest { font-size: 10.5px; margin-top: 14px; opacity: 0.8; }
.ios-closing blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.65;
  font-style: italic;
  margin: 16px 0 12px;
  padding: 0 4px;
}
.ios-closing__msg { font-size: 10.5px; line-height: 1.65; opacity: 0.8; }
.ios-closing__thanks { font-size: 10.5px; line-height: 1.6; margin-top: 8px; opacity: 0.65; }
.ios-closing__hash { font-size: 10px; letter-spacing: 0.2em; margin: 16px 0; color: #a07a44; }
body.ios-dark .ios-closing__hash { color: #d8b98a; }
.ios-closing__actions { display: flex; flex-direction: column; gap: 7px; }
.ios-closing__back {
  display: inline-block;
  margin-top: 15px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  text-decoration: none;
}
.ios-closing__back:hover { opacity: 1; }

/* ---------- CONTROL CENTER ---------- */
.ios-cc {
  position: absolute;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.55s var(--ios-ease), visibility 0.55s;
}
.ios-cc.is-open { transform: translateY(0); visibility: visible; }
.ios-cc__panel {
  padding: 58px 14px 24px;
  background: rgba(30, 30, 34, 0.76);
  -webkit-backdrop-filter: blur(34px) saturate(1.5);
  backdrop-filter: blur(34px) saturate(1.5);
  border-radius: 0 0 38px 38px;
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.ios-cc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ios-cc__tile {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: left;
  transition: background 0.2s;
}
.ios-cc__tile--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; }
.ios-cc__tile[aria-pressed="true"] { background: var(--ios-blue); border-color: transparent; }
.ios-cc__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.ios-cc__tile strong { display: block; font-size: 12px; font-weight: 600; }
.ios-cc__tile em { display: block; font-style: normal; font-size: 9.5px; opacity: 0.7; }
.ios-cc__tile > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ios-cc__slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.ios-cc__slider input { width: 100%; accent-color: #fff; }
.ios-cc__music {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ios-cc__art { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; }
.ios-cc__art img { width: 100%; height: 100%; object-fit: cover; }
.ios-cc__music strong { display: block; font-size: 11.5px; }
.ios-cc__music em { font-style: normal; font-size: 9px; opacity: 0.6; }
.ios-cc__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 0 4px;
}
.ios-cc__foot a, .ios-cc__foot button {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 0;
}
.ios-cc__foot a:hover, .ios-cc__foot button:hover { color: #fff; }

/* ---------- GALLERY LINK ---------- */
.ios-gallery-link {
  position: absolute;
  left: 14px;
  bottom: 104px;
  z-index: 40;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 4px 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.2s, background 0.2s;
}
.ios-gallery-link:hover { color: #fff; background: rgba(0, 0, 0, 0.4); }
.ios-phone.is-unlocked .ios-gallery-link { opacity: 0.5; }
.ios-phone.is-unlocked .ios-gallery-link:hover { opacity: 1; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 560px) {
  .ios-stage { padding: 0; gap: 0; display: block; }
  .ios-stage__note { display: none; }
  .ios-phone {
    width: 100%;
    height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ios-phone::after { display: none; }
  .ios-statusbar { padding-top: calc(12px + env(safe-area-inset-top)); }
  .ios-lock__inner { padding-top: calc(70px + env(safe-area-inset-top)); }
  .ios-home__scroll { padding-top: calc(62px + env(safe-area-inset-top)); }
  .ios-dock { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .ios-homebar { bottom: calc(6px + env(safe-area-inset-bottom)); }
  .ios-gallery-link { bottom: calc(102px + env(safe-area-inset-bottom)); }
  .ios-sheet { border-radius: 34px 34px 0 0; top: 6px; }
}
@media (max-width: 380px) {
  .ios-icon { width: 52px; height: 52px; border-radius: 13px; }
  .ios-app__label { font-size: 9.5px; }
  .ios-dock { height: 68px; }
  .ios-dock__app .ios-icon { width: 48px; height: 48px; }
  .ios-widget__days b { font-size: 44px; }
  .ios-sheet__title { font-size: 26px; }
  .ios-now { grid-template-columns: 64px 1fr; }
  .ios-now__art { width: 64px; height: 64px; }
  .ios-person__photo { width: 74px; height: 96px; }
  .ios-bubble { font-size: 12px; }
}
@media (min-width: 900px) {
  .ios-stage { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ios-lock__bg img,
  .ios-unlock__chev,
  .ios-eq i,
  .ios-track__eq i { animation: none !important; }
  .ios-lock, .ios-home, .ios-sheet, .ios-cc, .ios-island { transition-duration: 0.01ms !important; }
}
