/* iPhone-style Simulator — public Kid Arcade (not affiliated with Apple) */
:root {
  --phone-w: 390px;
  --phone-h: 844px;
  --r-outer: 55px;
  --r-screen: 47px;
  --bezel: 12px;
  --island-w: 126px;
  --island-h: 37px;
  --safe-top: 54px;
  --dock-h: 96px;
  --tint: #0a84ff;
  --ios-bg: #000;
  --glass: rgba(30, 30, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #8e8e93;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", system-ui, sans-serif;
  --fit-scale: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #0a0a0c;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===== Stage ===== */
.stage {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px;
  position: relative;
}

.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, #1a2438 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 75% 70%, #2a1830 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, #0d1520 0%, #050506 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Side panel ===== */
.chrome-panel {
  position: relative;
  z-index: 2;
  width: min(280px, 30vw);
  color: #c8c8d0;
}
.chrome-panel h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.chrome-panel .sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 20px;
}
.panel-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.panel-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.panel-card .val {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.panel-card.tips ul {
  list-style: none;
  font-size: 12px;
  line-height: 1.55;
  color: #b0b0b8;
}
.panel-card.tips b {
  color: #fff;
  font-weight: 600;
}
.chrome-panel .fine {
  font-size: 11px;
  color: #666;
  margin-top: 14px;
  line-height: 1.4;
}
.chrome-panel code {
  font-size: 10px;
  background: #1a1a1e;
  padding: 1px 5px;
  border-radius: 4px;
  color: #9ad;
}

@media (max-width: 780px) {
  .chrome-panel {
    display: none;
  }
  .stage {
    padding: 12px;
  }
}

/* ===== Phone frame — titanium Pro ===== */
.phone {
  position: relative;
  z-index: 2;
  width: var(--phone-w);
  height: var(--phone-h);
  flex-shrink: 0;
  transform: scale(var(--fit-scale));
  transform-origin: center center;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s;
}
.phone.locked-dim {
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65)) brightness(0.35);
}
.phone.flash-on {
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 60px rgba(255, 240, 180, 0.55));
}

.phone-bezel {
  width: 100%;
  height: 100%;
  border-radius: var(--r-outer);
  background: linear-gradient(
    145deg,
    #8a8680 0%,
    #5c5854 18%,
    #3a3836 40%,
    #6a6660 62%,
    #2e2c2a 85%,
    #7a7670 100%
  );
  padding: var(--bezel);
  position: relative;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.side-btn {
  position: absolute;
  background: linear-gradient(90deg, #4a4844, #6a6660 40%, #3a3834);
  border-radius: 3px;
  z-index: 5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.side-btn.silent {
  left: -3px;
  top: 120px;
  width: 4px;
  height: 28px;
}
.side-btn.vol-up {
  left: -3px;
  top: 170px;
  width: 4px;
  height: 52px;
}
.side-btn.vol-down {
  left: -3px;
  top: 234px;
  width: 4px;
  height: 52px;
}
.side-btn.power {
  right: -3px;
  top: 190px;
  width: 4px;
  height: 90px;
  background: linear-gradient(270deg, #4a4844, #6a6660 40%, #3a3834);
  cursor: pointer;
}
.side-btn:active {
  filter: brightness(0.85);
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: var(--r-screen);
  background: #000;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Dynamic Island */
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--island-w);
  height: var(--island-h);
  background: #000;
  border-radius: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  transition: width 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    border-radius 0.35s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}
.island.expanded {
  width: 220px;
  height: 42px;
}
.island-cam {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1a2a40, #050810 70%);
  box-shadow: inset 0 0 2px #3a5a80, 0 0 0 1px #111;
}
.island-cam::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a7ab0, #0a1525 70%);
}
.island-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 70%;
  overflow: hidden;
}
.island-label {
  font-size: 11px;
  font-weight: 600;
  color: #30d158;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.island.expanded .island-label {
  opacity: 1;
}

/* Status bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px 32px;
  pointer-events: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.sb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
}
.sb-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 12px;
}
.sb-signal i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}
.sb-signal i:nth-child(1) {
  height: 4px;
}
.sb-signal i:nth-child(2) {
  height: 6px;
}
.sb-signal i:nth-child(3) {
  height: 8px;
}
.sb-signal i:nth-child(4) {
  height: 11px;
  opacity: 0.35;
}
.sb-wifi {
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: relative;
  opacity: 0.95;
  transform: translateY(-1px);
}
.sb-wifi::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}
.sb-battery {
  display: flex;
  align-items: center;
  gap: 1px;
}
.sb-battery .bat-level {
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.sb-battery .bat-level::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--bat, 78%);
  background: currentColor;
  border-radius: 1px;
}
.sb-battery .bat-cap {
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.6;
}

.screens {
  position: absolute;
  inset: 0;
}
.scr {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.scr.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  z-index: 30;
  cursor: pointer;
  touch-action: none;
}
.home-indicator.dark {
  background: rgba(0, 0, 0, 0.35);
}

/* Lock / Home wallpapers */
.lock-wallpaper,
.home-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 15%, #ff6b9d 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 85% 25%, #5b8cff 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, #c77dff 0%, transparent 55%),
    linear-gradient(165deg, #1a1030 0%, #0c1a2e 40%, #0a0e18 100%);
}
.home-wallpaper {
  filter: saturate(1.05) brightness(0.92);
}
.lock-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 30%,
    transparent 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
}
.lock-content {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.lock-date {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.lock-time {
  font-size: 86px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.lock-notifs {
  margin: 28px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: hidden;
}
.lock-notif {
  background: rgba(40, 40, 45, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 22px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  width: 100%;
}
.lock-notif .ni {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.lock-notif .nt b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.lock-notif .nt span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}
.lock-notif .ago {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.lock-bottom {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.lock-flash,
.lock-cam {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(40, 40, 45, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lock-flash.on {
  background: rgba(255, 214, 10, 0.85);
  color: #1a1a00;
}
.lock-hint {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.home-page {
  position: absolute;
  inset: 0 0 var(--dock-h) 0;
  padding: calc(var(--safe-top) + 12px) 22px 8px;
  z-index: 2;
  overflow: hidden;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  justify-items: center;
}
.app-icon {
  width: 100%;
  max-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.app-icon:active .app-glyph {
  transform: scale(0.88);
  filter: brightness(0.9);
}
.app-glyph {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.12s;
  position: relative;
  overflow: hidden;
}
.app-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.app-icon span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-dots {
  position: absolute;
  bottom: calc(var(--dock-h) + 6px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.page-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.page-dots i.on {
  background: #fff;
}
.phone-dock {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  height: 88px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.phone-dock .app-icon {
  max-width: 64px;
}
.phone-dock .app-icon span {
  display: none;
}
.phone-dock .app-glyph {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.g-phone { background: linear-gradient(160deg, #64e07a, #30d158); }
.g-safari { background: linear-gradient(160deg, #5ac8fa, #0a84ff 55%, #0066d6); }
.g-messages { background: linear-gradient(160deg, #64e07a, #34c759); }
.g-mail { background: linear-gradient(160deg, #7ec8ff, #0a84ff); }
.g-music { background: linear-gradient(160deg, #ff6b9d, #ff2d55); }
.g-photos {
  background: conic-gradient(from 200deg, #ff375f, #ff9f0a, #ffd60a, #30d158, #64d2ff, #bf5af2, #ff375f);
}
.g-camera { background: linear-gradient(160deg, #8e8e93, #3a3a3c); }
.g-maps { background: linear-gradient(160deg, #64d2ff, #30d158 50%, #ffd60a); }
.g-weather { background: linear-gradient(180deg, #5ac8fa, #0a84ff); }
.g-clock { background: #1c1c1e; color: #fff; border: 1px solid #333; }
.g-notes { background: linear-gradient(180deg, #fff 0 28%, #ffd60a 28%); color: #333; }
.g-calc { background: #1c1c1e; }
.g-settings { background: linear-gradient(160deg, #b0b0b5, #636366); }
.g-wallet { background: linear-gradient(160deg, #000, #1c1c1e); }
.g-appstore { background: linear-gradient(160deg, #5ac8fa, #0a84ff); }
.g-games { background: linear-gradient(145deg, #bf5af2, #5e5ce6); }
.g-facetime { background: linear-gradient(160deg, #64e07a, #30d158); }
.g-kinito { background: linear-gradient(145deg, #5b8cff, #ff6bcb); }
.g-health { background: #fff; color: #ff2d55; }
.g-youtube {
  background: #fff;
  color: #ff0000;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.g-roblox {
  background: linear-gradient(160deg, #e2231a, #a01010 55%, #5a0808);
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: -0.06em;
}

/* App chrome */
.scr.app {
  background: #000;
  display: flex;
  flex-direction: column;
}
.app-chrome {
  flex-shrink: 0;
  height: calc(var(--safe-top) + 44px);
  padding: var(--safe-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1e;
  border-bottom: 1px solid #2c2c2e;
  z-index: 5;
}
.app-chrome.hidden-bar {
  display: none;
}
.app-back {
  width: 44px;
  height: 36px;
  font-size: 32px;
  line-height: 1;
  color: var(--tint);
  font-weight: 300;
  display: grid;
  place-items: center;
}
.app-title {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.app-chrome-r {
  width: 44px;
}
.app-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #000;
  position: relative;
  padding-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}

/* Messages */
.im {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #000;
}
.im-list,
.im-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.im-search {
  margin: 8px 16px 12px;
  background: #1c1c1e;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 16px;
}
.im-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1e;
  width: 100%;
  text-align: left;
}
.im-row:active {
  background: #1c1c1e;
}
.im-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.im-av.kinito { background: linear-gradient(145deg, #5b8cff, #3a60c0); }
.im-av.chonks { background: linear-gradient(145deg, #ffb0d0, #ff6bcb); }
.im-av.boss { background: linear-gradient(145deg, #ffd60a, #ff9f0a); }
.im-av.mom { background: linear-gradient(145deg, #ff6b9d, #bf5af2); }
.im-av.assistant { background: linear-gradient(145deg, #64d2ff, #5e5ce6); }
.im-meta {
  flex: 1;
  min-width: 0;
}
.im-meta b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.im-meta i {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-time {
  font-size: 13px;
  color: var(--muted);
  align-self: flex-start;
  padding-top: 2px;
}
.im-status {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
  border-top: 1px solid #1c1c1e;
}
.im-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.bubble-row {
  display: flex;
}
.bubble-row.me {
  justify-content: flex-end;
}
.bubble-row.them {
  justify-content: flex-start;
}
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.3;
  word-wrap: break-word;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
}
.bubble-row.me .bubble {
  background: #0a84ff;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble-row.them .bubble {
  background: #2c2c2e;
  color: #f0f0f0;
  border-bottom-left-radius: 5px;
}
.bubble.typing {
  color: #888;
  letter-spacing: 0.15em;
}
.im-compose {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
  align-items: center;
  flex-shrink: 0;
  border-top: 1px solid #1c1c1e;
}
.im-compose input {
  flex: 1;
  border: 1px solid #3a3a3c;
  border-radius: 20px;
  background: #1c1c1e;
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
  min-width: 0;
}
.im-compose input:focus {
  border-color: #0a84ff;
}
.im-compose button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.im-compose button:disabled {
  opacity: 0.4;
}

/* Phone / Safari / Camera / etc. */
.phone-app {
  background: #000;
  min-height: 100%;
  padding: 8px 0 40px;
}
.phone-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 280px;
  margin: 0 auto;
  padding: 20px 0;
}
.pk {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #1c1c1e;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
}
.pk:active {
  background: #3a3a3c;
}
.pk small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: -2px;
}
.phone-num {
  text-align: center;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 12px;
  font-variant-numeric: tabular-nums;
}
.phone-call-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #30d158;
  margin: 8px auto 0;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 0;
  border-top: 1px solid #1c1c1e;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.phone-tabs .on {
  color: var(--tint);
}

.safari {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1c1c1e;
}
.safari-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
}
.safari-url {
  flex: 1;
  background: #2c2c2e;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  color: #fff;
  border: none;
  outline: none;
  text-align: center;
}
.safari-frame {
  flex: 1;
  background: #fff;
  color: #111;
  overflow: auto;
  padding: 24px 20px 40px;
  min-height: 0;
}
.safari-frame h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.safari-frame p {
  color: #444;
  line-height: 1.5;
  margin: 10px 0;
  font-size: 15px;
}
.safari-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.safari-links button {
  text-align: left;
  padding: 14px 16px;
  background: #f2f2f7;
  border-radius: 14px;
  font-size: 15px;
  color: #0a84ff;
  font-weight: 500;
}

.camera {
  background: #000;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.camera-view {
  flex: 1;
  background:
    radial-gradient(ellipse at 40% 40%, #3a2a50 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, #1a3050 0%, transparent 45%),
    linear-gradient(180deg, #1a1525, #0a0a10);
  display: grid;
  place-items: center;
}
.camera-view .preview-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
}
.camera-shutter-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 24px 36px;
  background: #000;
}
.cam-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
}
.cam-shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  display: grid;
  place-items: center;
}
.cam-shutter i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
}
.cam-shutter:active i {
  transform: scale(0.88);
}
.cam-flip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2c2c2e;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.cam-modes {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.cam-modes .on {
  color: #ffd60a;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
.photos-grid div {
  aspect-ratio: 1;
}

.music-now {
  padding: 24px 28px 40px;
  text-align: center;
}
.music-art {
  width: 240px;
  height: 240px;
  margin: 12px auto 28px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff6b9d, #5b8cff 50%, #c77dff);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.music-now h3 {
  font-size: 22px;
  font-weight: 700;
}
.music-now p {
  color: var(--muted);
  margin-top: 4px;
}
.music-prog {
  height: 4px;
  background: #3a3a3c;
  border-radius: 2px;
  margin: 28px 0 8px;
  overflow: hidden;
}
.music-prog i {
  display: block;
  height: 100%;
  width: 35%;
  background: #fff;
  border-radius: 2px;
}
.music-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 28px;
}
.music-controls .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.weather {
  min-height: 100%;
  background: linear-gradient(180deg, #1a4a8a, #5ac8fa 60%, #87ceeb);
  padding: 20px 24px 48px;
  text-align: center;
  color: #fff;
}
.weather .city {
  font-size: 34px;
  font-weight: 400;
}
.weather .temp {
  font-size: 96px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 4px 0;
}
.weather .cond {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.95;
}
.weather .hi-lo {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 4px;
}
.weather-card {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}
.weather-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 10px;
}
.weather-hours {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}
.weather-hours div {
  text-align: center;
  min-width: 48px;
  font-size: 14px;
}
.weather-hours b {
  display: block;
  font-size: 20px;
  margin: 6px 0;
}

.clock-face {
  min-height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}
.clock-digital {
  font-size: 72px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.clock-date-sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 16px;
}
.world-clocks {
  width: 100%;
  margin-top: 40px;
  padding: 0 20px;
}
.wc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #1c1c1e;
}
.wc-row b {
  font-size: 18px;
}
.wc-row span {
  color: var(--muted);
  font-size: 13px;
  display: block;
}
.wc-row .t {
  font-size: 36px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.calc {
  background: #000;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 36px;
}
.calc-display {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: 64px;
  font-weight: 300;
  padding: 16px 12px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  min-height: 100px;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ck {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #333;
  font-size: 28px;
  font-weight: 400;
  display: grid;
  place-items: center;
}
.ck:active {
  filter: brightness(1.3);
}
.ck.fn {
  background: #a5a5a5;
  color: #000;
}
.ck.op {
  background: #ff9f0a;
  color: #fff;
}
.ck.zero {
  grid-column: span 2;
  border-radius: 40px;
  aspect-ratio: auto;
  height: 100%;
}

.settings {
  background: #000;
  min-height: 100%;
  padding: 8px 16px 40px;
}
.set-group {
  background: #1c1c1e;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #2c2c2e;
  font-size: 16px;
}
.set-row:last-child {
  border-bottom: none;
}
.set-ico {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.set-row .chev {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}
.set-row .val {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  margin-right: 4px;
}
.set-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #1c1c1e;
  border-radius: 12px;
  margin-bottom: 24px;
}
.set-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b8cff, #c77dff);
}
.set-profile b {
  font-size: 20px;
  display: block;
}
.set-profile span {
  color: var(--muted);
  font-size: 14px;
}

.notes {
  background: #1c1c1e;
  min-height: 100%;
  padding: 8px 16px 40px;
}
.note-item {
  background: #2c2c2e;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
}
.note-item b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.note-item span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.note-editor {
  width: 100%;
  min-height: 320px;
  background: transparent;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  outline: none;
  resize: none;
  padding: 8px 4px;
}

.maps {
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255, 159, 10, 0.15) 40%, rgba(255, 159, 10, 0.15) 48%, transparent 48%),
    linear-gradient(160deg, #1a3a50 0%, #1a4a3a 45%, #2a3a20 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}
.maps-search {
  margin: 12px 16px;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.maps-pin {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -100%);
  font-size: 40px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.maps-card {
  margin: auto 16px 40px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.maps-card b {
  font-size: 18px;
  display: block;
}
.maps-card span {
  color: var(--muted);
  font-size: 14px;
}

.wallet {
  padding: 20px 16px 40px;
  background: #000;
  min-height: 100%;
}
.wallet-card {
  height: 180px;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.wallet-card.apple-cash {
  background: linear-gradient(135deg, #30d158, #0a84ff);
}
.wallet-card.transit {
  background: linear-gradient(135deg, #1c1c1e, #3a3a3c);
  border: 1px solid #444;
}
.wallet-card .brand {
  font-size: 18px;
  font-weight: 700;
}
.wallet-card .num {
  font-size: 15px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.games-list {
  padding: 12px 16px 40px;
}
.game-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1c1c1e;
  width: 100%;
  text-align: left;
}
.game-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
.game-row b {
  display: block;
  font-size: 16px;
}
.game-row span {
  font-size: 13px;
  color: var(--muted);
}
.game-row .get {
  margin-left: auto;
  background: #1c1c1e;
  color: var(--tint);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 16px;
}

/* Control Center / NC / Toast */
.cc,
.nc {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  padding: calc(var(--safe-top) + 12px) 16px 40px;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cc.hidden,
.nc.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12%);
}
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cc-card {
  background: rgba(40, 40, 45, 0.55);
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-card.connectivity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 148px;
}
.cc-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(80, 80, 85, 0.7);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin: 0 auto;
}
.cc-orb.on {
  background: var(--tint);
}
.cc-card.music {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 148px;
}
.cc-music-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff6b9d, #5b8cff);
  flex-shrink: 0;
}
.cc-music-meta b {
  display: block;
  font-size: 14px;
}
.cc-music-meta span {
  font-size: 12px;
  color: var(--muted);
}
.cc-card.orient {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  min-height: 72px;
}
.cc-card.focus {
  display: grid;
  place-items: center;
  min-height: 72px;
}
.cc-slider {
  grid-column: span 1;
  background: rgba(40, 40, 45, 0.55);
  border-radius: 22px;
  height: 148px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
}
.cc-slider input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 40px;
  height: 100px;
  appearance: none;
  background: transparent;
  position: absolute;
  top: 16px;
}
.cc-slider input::-webkit-slider-runnable-track {
  width: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}
.cc-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #fff;
}
.cc-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cc-tile {
  background: rgba(40, 40, 45, 0.55);
  border-radius: 18px;
  padding: 14px 6px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-tile span {
  font-size: 20px;
}
.nc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.nc-date {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nc-clear {
  color: var(--tint);
  font-size: 16px;
  font-weight: 500;
}
.nc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-toast {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(40, 40, 45, 0.92);
  backdrop-filter: blur(20px);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
}
.phone-toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.mail-list {
  padding: 0 0 40px;
}
.mail-row {
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1e;
  text-align: left;
  width: 100%;
}
.mail-row b {
  display: block;
  font-size: 16px;
}
.mail-row .from {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.mail-row .snip {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.center-stub {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  gap: 12px;
}
.center-stub .big {
  font-size: 56px;
  margin-bottom: 8px;
}
.center-stub h2 {
  font-size: 24px;
  font-weight: 700;
}
.center-stub p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  max-width: 260px;
}
.center-stub .primary {
  margin-top: 16px;
  background: var(--tint);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 22px;
  font-size: 16px;
}

/* Roblox */
.rbx {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #121215;
  color: #f5f5f5;
}
.rbx-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
  background: #1b1b1e;
  border-bottom: 1px solid #2a2a2e;
}
.rbx-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.rbx-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, #e2231a, #8a0e0e);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  font-family: "Arial Black", Impact, sans-serif;
}
.rbx-mark.big {
  width: 64px;
  height: 64px;
  font-size: 36px;
  border-radius: 16px;
  margin: 0 auto 12px;
}
.rbx-search-wrap {
  flex: 1;
  min-width: 0;
}
.rbx-search {
  width: 100%;
  background: #2a2a2e;
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.rbx-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.rbx-banner {
  margin: 4px 12px 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2231a 0%, #5a1020 55%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.rbx-banner b {
  display: block;
  font-size: 16px;
}
.rbx-banner span {
  font-size: 11px;
  opacity: 0.9;
}
.rbx-banner-btn {
  flex-shrink: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}
.rbx-status {
  padding: 0 14px 8px;
  font-size: 11px;
  color: #888;
}
.rbx-section {
  margin-bottom: 14px;
}
.rbx-section h3,
.rbx-local h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 4px 14px 8px;
}
.rbx-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 6px;
  scrollbar-width: none;
}
.rbx-grid::-webkit-scrollbar {
  display: none;
}
.rbx-grid.list {
  flex-direction: column;
  overflow-x: hidden;
}
.rbx-card {
  flex: 0 0 148px;
  width: 148px;
  text-align: left;
  color: inherit;
  background: #1b1b1e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2e;
  display: flex;
  flex-direction: column;
}
.rbx-grid.list .rbx-card {
  flex: none;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.rbx-grid.list .rbx-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
}
.rbx-grid.list .rbx-meta {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.rbx-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #2a2a2e center / cover no-repeat;
}
.rbx-meta {
  padding: 8px 8px 4px;
}
.rbx-meta b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  min-height: 2.5em;
}
.rbx-grid.list .rbx-meta b {
  min-height: 0;
  -webkit-line-clamp: 1;
  font-size: 14px;
}
.rbx-meta span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rbx-play {
  margin: 4px 8px 8px;
  text-align: center;
  background: #00b06f;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px;
  border-radius: 8px;
}
.rbx-grid.list .rbx-play {
  margin: 0;
  padding: 8px 12px;
  flex-shrink: 0;
}
.rbx-empty {
  padding: 28px 18px;
  text-align: center;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
.rbx-local {
  margin-top: 8px;
  padding-bottom: 12px;
}
.rbx-local .rbx-card {
  width: auto;
  margin: 0 12px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.rbx-local .rbx-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
}
.rbx-local .rbx-meta {
  flex: 1;
  padding: 0;
}
.rbx-local .rbx-meta b {
  min-height: 0;
}
.rbx-tabs {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  padding: 6px 4px 16px;
  border-top: 1px solid #2a2a2e;
  background: #1b1b1e;
}
.rbx-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #888;
  min-width: 56px;
  padding: 4px;
}
.rbx-tab.on {
  color: #fff;
}
.rbx-tab span {
  font-size: 16px;
}
.rbx-play-hub {
  padding: 20px 18px 28px;
  text-align: center;
}
.rbx-hero h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.rbx-hero p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 18px;
}
.rbx-cta {
  display: block;
  width: 100%;
  background: #00b06f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.rbx-cta.secondary {
  background: #2a2a2e;
}
.rbx-cta.ghost {
  background: transparent;
  border: 1px solid #3a3a3e;
  color: #ccc;
}
.rbx-fine {
  margin-top: 14px;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}
.rbx-more {
  padding: 16px 16px 28px;
}
.rbx-more h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.rbx-more p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.45;
  margin-bottom: 10px;
}
.rbx-more code {
  font-size: 11px;
  background: #2a2a2e;
  padding: 1px 5px;
  border-radius: 4px;
  color: #9cf;
}

/* YouTube */
.yt {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #0f0f0f;
  color: #f1f1f1;
}
.yt-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}
.yt-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.yt-logo .play {
  width: 28px;
  height: 20px;
  background: #f00;
  border-radius: 6px;
  display: grid;
  place-items: center;
  position: relative;
}
.yt-logo .play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.yt-search-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
}
.yt-search {
  flex: 1;
  min-width: 0;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 20px;
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.yt-search:focus {
  border-color: #3ea6ff;
}
.yt-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.yt-chips {
  display: flex;
  gap: 8px;
  padding: 10px 12px 6px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.yt-chips::-webkit-scrollbar {
  display: none;
}
.yt-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 8px;
  background: #272727;
  font-size: 13px;
  font-weight: 500;
  color: #f1f1f1;
  white-space: nowrap;
}
.yt-chip.on {
  background: #f1f1f1;
  color: #0f0f0f;
}
.yt-feed {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.yt-status {
  padding: 6px 14px 10px;
  font-size: 11px;
  color: #aaa;
}
.yt-card {
  width: 100%;
  text-align: left;
  padding: 0 0 16px;
  color: inherit;
  display: block;
}
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222 center / cover no-repeat;
  overflow: hidden;
}
.yt-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.yt-meta {
  display: flex;
  gap: 12px;
  padding: 10px 12px 0;
  align-items: flex-start;
}
.yt-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #f00, #900);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.yt-meta-text {
  min-width: 0;
  flex: 1;
}
.yt-meta-text b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.yt-meta-text span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-empty {
  padding: 40px 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
  line-height: 1.45;
}
.yt-tabs {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 4px 18px;
  border-top: 1px solid #222;
  background: #0f0f0f;
}
.yt-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #aaa;
  min-width: 52px;
  padding: 4px 2px;
}
.yt-tab.on {
  color: #fff;
}
.yt-tab .ico {
  font-size: 18px;
  line-height: 1.2;
}
.yt-tab-create .yt-create-fab {
  width: 36px;
  height: 28px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
}
.yt-tab-create.on .yt-create-fab {
  background: #ff0000;
  color: #fff;
}
.yt-create-top {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #272727;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}
.yt-priv-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #7ec8ff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
}
.yt-fx-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}
.yt-priv-pill {
  font-size: 10px;
  font-weight: 600;
  color: #7ec8ff;
  background: rgba(62, 166, 255, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.yt-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.35;
}
.yt-local-frame {
  position: relative;
  overflow: hidden;
}
.yt-local-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.yt-fx {
  position: relative;
}
.yt-fx-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}
.yt-fx-none { filter: none; }
.yt-fx-vintage { filter: sepia(0.5) contrast(1.1) saturate(0.8) brightness(1.05); }
.yt-fx-vhs { filter: contrast(1.25) saturate(1.4) hue-rotate(-8deg) brightness(1.05); }
.yt-fx-neon { filter: contrast(1.3) saturate(1.9) brightness(1.08); }
.yt-fx-noir { filter: grayscale(1) contrast(1.25) brightness(0.95); }
.yt-fx-dream { filter: blur(0.3px) saturate(1.3) brightness(1.1) contrast(0.95); }
.yt-fx-chrome { filter: contrast(1.4) saturate(0.3) brightness(1.15); }
.yt-fx-heat { filter: sepia(0.35) hue-rotate(-25deg) saturate(1.6) contrast(1.15); }
.yt-fx-glitch { filter: contrast(1.5) saturate(1.6) hue-rotate(20deg); }
.yt-fx-cinema { filter: contrast(1.15) saturate(0.9) brightness(0.95); }
.yt-fx-overlay-vhs {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.06) 2px, rgba(0, 0, 0, 0.06) 4px);
  mix-blend-mode: multiply;
}
.yt-fx-overlay-glitch {
  background: linear-gradient(120deg, rgba(255, 0, 80, 0.08), transparent 40%, rgba(0, 255, 200, 0.08));
  mix-blend-mode: screen;
}
.yt-fx-overlay-cinema {
  box-shadow: inset 0 12% 0 #000, inset 0 -12% 0 #000;
}
.yt-fx-overlay-neon {
  box-shadow: inset 0 0 40px rgba(255, 0, 180, 0.25);
}

.yt-create {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 20px;
  background: #0f0f0f;
}
.yt-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.yt-create-head h2 {
  font-size: 22px;
  font-weight: 700;
}
.yt-create-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #2a2a2a;
}
.yt-create-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
}
.yt-create-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
  z-index: 1;
}
.yt-create-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.yt-file-btn {
  flex: 1;
  text-align: center;
  background: #272727;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.yt-file-btn.secondary {
  background: #1c1c1e;
  border: 1px solid #333;
}
.yt-create-field {
  margin-bottom: 12px;
}
.yt-create-field label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 600;
}
.yt-create-field input,
.yt-create-field textarea {
  width: 100%;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.yt-create-field input:focus,
.yt-create-field textarea:focus {
  border-color: #3ea6ff;
}
.yt-fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.yt-fx-chip {
  padding: 7px 11px;
  border-radius: 16px;
  background: #272727;
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
}
.yt-fx-chip.on {
  background: #f1f1f1;
  color: #0f0f0f;
}
.yt-create-note {
  font-size: 11px;
  color: #666;
  margin: 4px 0 12px;
  line-height: 1.35;
}
.yt-post-btn {
  width: 100%;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
}
.yt-post-btn:disabled {
  opacity: 0.5;
}
.yt-post-btn-inline {
  width: auto;
  display: block;
  margin: 0 14px 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.yt-create-status {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.yt-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #0f0f0f;
}
.yt-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}
.yt-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-player-info {
  padding: 12px 14px 8px;
  flex-shrink: 0;
}
.yt-player-info h2 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}
.yt-player-info .sub {
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
}
.yt-player-actions {
  display: flex;
  gap: 8px;
  padding: 4px 12px 12px;
  flex-shrink: 0;
  overflow-x: auto;
}
.yt-act {
  flex-shrink: 0;
  background: #272727;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}
.yt-related {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 12px;
  border-top: 1px solid #222;
}
.yt-related-h {
  padding: 10px 14px 6px;
  font-size: 14px;
  font-weight: 650;
}
.yt-mini {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  width: 100%;
  text-align: left;
  color: inherit;
  align-items: flex-start;
}
.yt-mini-thumb {
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #222 center / cover no-repeat;
  flex-shrink: 0;
  position: relative;
}
.yt-mini b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.yt-mini span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}
.yt-web {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #0f0f0f;
}
.yt-web-bar {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  align-items: center;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}
.yt-web-bar input {
  flex: 1;
  min-width: 0;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 10px;
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
}
.yt-web-frame {
  flex: 1;
  min-height: 0;
  border: 0;
  width: 100%;
  background: #000;
}
.yt-web-note {
  padding: 10px 14px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
  border-top: 1px solid #222;
}
.yt-web-note a {
  color: #3ea6ff;
}

.yt-account-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  background: #121212;
  flex-shrink: 0;
}
.yt-account-bar-page {
  margin: 0 12px 8px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
}
.yt-acc-av,
.yt-c-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #5b8cff;
}
.yt-acc-meta {
  flex: 1;
  min-width: 0;
}
.yt-acc-meta b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.yt-acc-meta span {
  font-size: 11px;
  color: #aaa;
}
.yt-acc-pill {
  font-size: 11px;
  font-weight: 600;
  color: #3ddc84;
  flex-shrink: 0;
}
.yt-acc-blurb {
  padding: 0 16px 12px;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}
.yt-acc-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 16px;
}
.yt-acc-edit input {
  background: #121212;
  border: 1px solid #303030;
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.yt-comments {
  border-top: 1px solid #222;
  padding: 0 0 8px;
  flex-shrink: 0;
}
.yt-comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 6px;
}
.yt-comments-head h3 {
  font-size: 15px;
  font-weight: 700;
}
.yt-comments-head h3 span {
  font-weight: 500;
  color: #aaa;
  margin-left: 4px;
}
.yt-comments-note {
  font-size: 10px;
  color: #777;
  text-align: right;
  max-width: 48%;
  line-height: 1.25;
}
.yt-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 4px;
}
.yt-compose .yt-c-av {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.yt-compose-in {
  flex: 1;
  min-width: 0;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 18px;
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.yt-compose-send {
  flex-shrink: 0;
  background: #3ea6ff;
  color: #0f0f0f;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 16px;
}
.yt-compose-hint {
  padding: 2px 14px 10px;
  font-size: 10px;
  color: #666;
  line-height: 1.3;
}
.yt-comment-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0 4px 8px;
  -webkit-overflow-scrolling: touch;
}
.yt-comment {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  align-items: flex-start;
}
.yt-comment.is-local {
  background: rgba(62, 166, 255, 0.06);
}
.yt-c-body {
  flex: 1;
  min-width: 0;
}
.yt-c-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
}
.yt-c-head b {
  font-size: 13px;
  font-weight: 650;
}
.yt-c-handle {
  color: #3ea6ff;
  font-size: 11px;
}
.yt-c-time {
  color: #777;
  font-size: 11px;
}
.yt-c-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}
.yt-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #272727;
  color: #ccc;
}
.yt-badge.local {
  background: rgba(62, 166, 255, 0.2);
  color: #7ec8ff;
}
.yt-c-text {
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 2px;
  user-select: text;
  -webkit-user-select: text;
}
.yt-c-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: #888;
}
.yt-c-sim {
  color: #3ea6ff;
  font-weight: 600;
}

.app-body::-webkit-scrollbar,
.im-log::-webkit-scrollbar,
.yt-feed::-webkit-scrollbar,
.yt-related::-webkit-scrollbar,
.yt-comment-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ===== Public: fit real phones / iPads (fullscreen phone) ===== */
@media (max-width: 520px), (max-height: 720px) {
  .chrome-panel {
    display: none !important;
  }
  .stage {
    padding: 0;
    gap: 0;
  }
  .stage.fullscreen-phone,
  body.real-device .stage {
    padding: 0;
  }
  body.real-device .phone,
  .stage.fullscreen-phone .phone {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    transform: none !important;
    filter: none;
    --phone-w: 100vw;
    --phone-h: 100dvh;
  }
  body.real-device .phone-bezel,
  .stage.fullscreen-phone .phone-bezel {
    border-radius: 0;
    padding: 0;
    background: #000;
    box-shadow: none;
  }
  body.real-device .side-btn,
  .stage.fullscreen-phone .side-btn {
    display: none;
  }
  body.real-device .screen,
  .stage.fullscreen-phone .screen {
    border-radius: 0;
  }
  body.real-device .home-indicator,
  .stage.fullscreen-phone .home-indicator {
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
  }
  body.real-device .status-bar,
  .stage.fullscreen-phone .status-bar {
    padding-top: env(safe-area-inset-top, 0);
    height: calc(var(--safe-top) + env(safe-area-inset-top, 0px));
  }
}

/* Desktop small heights: still scale phone */
@media (min-width: 521px) and (max-height: 900px) {
  .phone {
    transform: scale(min(1, var(--fit-scale, 0.85)));
  }
}
