/* phone.css — photoreal iPhone home screen for Love Tile */

.lt-phone-wrap { transform-origin: top center; }

/* ---- device body ---- */
.lt-phone {
  width: 300px;
  height: 648px;
  border-radius: 54px;
  padding: 11px;
  background:
    linear-gradient(150deg, #3a3a3c, #1c1c1e 40%, #2c2c2e 70%, #48484a);
  box-shadow:
    0 0 0 2px #0a0a0a,
    0 2px 3px rgba(255,255,255,.18) inset,
    0 40px 80px -28px rgba(45,20,30,.55),
    0 14px 30px -18px rgba(0,0,0,.5);
  position: relative;
}
/* side buttons */
.lt-phone::before, .lt-phone::after {
  content: ''; position: absolute; left: -2px; width: 3px; border-radius: 3px;
  background: linear-gradient(#3a3a3c, #1c1c1e);
}
.lt-phone::before { top: 132px; height: 30px; box-shadow: 0 46px 0 #2a2a2c, 0 92px 0 #2a2a2c; }
.lt-phone::after  { top: 96px; height: 22px; }

/* ---- screen ---- */
.lt-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, #FFE7D6 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, #FFD9E6 0%, transparent 50%),
    linear-gradient(165deg, #FFF3EA 0%, #FBE7DD 45%, #F4DCE6 100%);
  display: flex; flex-direction: column;
}

/* dynamic island */
.lt-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 26px; border-radius: 16px; background: #000;
  z-index: 6;
}

/* status bar */
.lt-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 0; height: 44px; flex: 0 0 auto;
  font-weight: 700; color: #2D2D2D;
}
.lt-status__time { font-size: 15px; letter-spacing: .2px; }
.lt-status__right { display: flex; align-items: center; gap: 6px; }
.lt-signal { width: 17px; height: 11px; border-radius: 2px;
  background:
    linear-gradient(#2D2D2D,#2D2D2D) left bottom/3px 4px no-repeat,
    linear-gradient(#2D2D2D,#2D2D2D) 4.6px bottom/3px 7px no-repeat,
    linear-gradient(#2D2D2D,#2D2D2D) 9.3px bottom/3px 9px no-repeat,
    linear-gradient(#2D2D2D,#2D2D2D) right bottom/3px 11px no-repeat; }
.lt-wifi { width: 16px; height: 12px; -webkit-mask: radial-gradient(circle at 50% 100%, #000 31%, transparent 33%) bottom/100% 100% no-repeat; mask: radial-gradient(circle at 50% 100%, #000 31%, transparent 33%); background:#2D2D2D; clip-path: polygon(50% 0,100% 45%,50% 100%,0 45%); }
.lt-batt { width: 24px; height: 12px; border-radius: 3px; border: 1.5px solid #2D2D2D88; position: relative; }
.lt-batt::before { content:''; position:absolute; inset:1.5px; right: 6px; border-radius:1px; background:#2D2D2D; }
.lt-batt::after  { content:''; position:absolute; right:-3px; top:3.5px; width:2px; height:4px; border-radius:2px; background:#2D2D2D88; }

/* home content */
.lt-home { flex: 1 1 auto; padding: 8px 18px 0; display: flex; flex-direction: column; gap: 18px; }

/* ---- the note tile (widget) ---- */
.lt-tile-zone { transition: transform .42s cubic-bezier(.2,1.3,.35,1); transform-origin: center; }
.lt-tile-zone.is-settle { animation: lt-settle .46s cubic-bezier(.2,1.4,.4,1); }
@keyframes lt-settle {
  0% { transform: scale(.985); }
  55% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
.lt-tile {
  position: relative; border-radius: 22px; padding: 14px 15px 13px;
  min-height: 118px; overflow: hidden;
  display: flex; flex-direction: column;
}
.lt-tile__glow { position: absolute; inset: 0; pointer-events: none; }
.lt-tile__head { display: flex; align-items: center; gap: 8px; position: relative; }
.lt-ava {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 6px -1px rgba(0,0,0,.18);
}
.lt-tile__from { font-size: 13.5px; font-weight: 800; color: #2D2D2D; }
.lt-tile__ago { font-size: 11.5px; font-weight: 600; color: #2D2D2D66; }
.lt-tile__mark { margin-left: auto; font-size: 14px; }
.lt-tile__note {
  position: relative; margin-top: 10px; font-size: 16.5px; line-height: 1.32;
  font-weight: 700; letter-spacing: -.01em; flex: 1 1 auto;
  text-wrap: pretty;
}
.lt-caret { display: inline-block; width: 2px; height: 1em; vertical-align: -2px; margin-left: 1px; border-radius: 2px; animation: lt-blink 1s step-end infinite; }
@keyframes lt-blink { 50% { opacity: 0; } }
.lt-tile__react {
  position: relative; align-self: flex-start; margin-top: 9px;
  background: rgba(255,255,255,.78); border: 1px solid; border-radius: 999px;
  padding: 2px 9px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 2px 6px -3px rgba(0,0,0,.2);
}

/* ---- app grid ---- */
.lt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 16px; }
.lt-app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lt-app__icon {
  width: 50px; height: 50px; border-radius: 13px; position: relative;
  box-shadow: 0 4px 10px -5px rgba(45,20,30,.4), 0 1px 0 rgba(255,255,255,.4) inset;
  display: flex; align-items: center; justify-content: center;
}
.lt-app__label { font-size: 10.5px; font-weight: 600; color: #4a3a40; letter-spacing: .1px; }
.lt-app--dock .lt-app__icon { width: 52px; height: 52px; }

/* minimalist white glyphs */
.lt-glyph { width: 22px; height: 22px; position: relative; }
.lt-glyph::before, .lt-glyph::after { content: ''; position: absolute; }
.lt-glyph--phone::before { inset: 4px; border: 2.4px solid #fff; border-radius: 7px 7px 6px 6px; transform: rotate(0deg); }
.lt-glyph--phone::after { left: 7px; top: 11px; width: 8px; height: 6px; border-bottom: 2.4px solid #fff; border-radius: 0 0 6px 6px; }
.lt-glyph--msg::before { inset: 3px 3px 6px 3px; border: 2.4px solid #fff; border-radius: 8px; }
.lt-glyph--msg::after { left: 7px; bottom: 2px; width: 6px; height: 6px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.lt-glyph--cam::before { inset: 5px 3px; border: 2.4px solid #fff; border-radius: 5px; }
.lt-glyph--cam::after { left: 8px; top: 8px; width: 6px; height: 6px; border: 2.2px solid #fff; border-radius: 50%; }
.lt-glyph--pho::before { inset: 4px; border: 2.4px solid #fff; border-radius: 4px; }
.lt-glyph--pho::after { left: 6px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; box-shadow: 6px -4px 0 #fff; background: #fff; }
.lt-glyph--mus::before { left: 7px; top: 4px; width: 2.4px; height: 12px; background: #fff; }
.lt-glyph--mus::after { left: 5px; top: 13px; width: 6px; height: 5px; border-radius: 50%; background: #fff; }
.lt-glyph--cal::before { inset: 4px; border: 2.4px solid #fff; border-radius: 4px; }
.lt-glyph--cal::after { left: 7px; top: 9px; width: 8px; height: 2.4px; background: #fff; box-shadow: 0 4px 0 #fff; }
.lt-glyph--note::before { inset: 4px; border: 2.4px solid #fff; border-radius: 4px; }
.lt-glyph--note::after { left: 7px; top: 8px; width: 8px; height: 2.2px; background: #fff; box-shadow: 0 3.5px 0 #fff, 0 7px 0 #fff; }
.lt-glyph--map::before { inset: 4px; border: 2.4px solid #fff; border-radius: 4px; }
.lt-glyph--map::after { left: 9px; top: 6px; width: 4px; height: 4px; border-radius: 50% 50% 50% 0; background: #fff; transform: rotate(45deg); }

/* dock */
.lt-dock {
  margin: 6px 12px 0; padding: 12px; border-radius: 30px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5);
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; justify-items: center;
  flex: 0 0 auto;
}
.lt-homebar {
  height: 26px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.lt-homebar::after { content:''; width: 120px; height: 5px; border-radius: 3px; background: #2D2D2D55; }

@media (prefers-reduced-motion: reduce) {
  .lt-caret { display: none; }
  .lt-tile-zone.is-settle { animation: none; }
}
