@import url('https://fonts.googleapis.com/css2?family=VT323&family=Nunito:wght@300;400;600&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Nunito', sans-serif;
  background-color: #fce4f0;
  background-image: url('images/image1.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 32px 0;
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 272px;
  margin: 0 auto;
}

.charm {
  position: absolute;
  right: -22px;
  top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}
.cstr {
  width: 2px;
  background: #f0b0d0;
  border-radius: 1px;
}

.phone-ring {
  width: 100%;
  border-radius: 46px;
  background: #d4d4d4;
  padding: 5px;
  box-shadow: none;
  position: relative;
}

.btn-mute, .btn-volu, .btn-vold, .btn-pwr {
  position: absolute;
  background: linear-gradient(90deg, #a8a8a8, #e8e8e8, #a8a8a8);
  border: 1px solid #909090;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.6);
  z-index: 10;
}
.btn-mute  { left: -5px; top: 84px;  width: 5px; height: 18px; border-radius: 3px; }
.btn-volu  { left: -5px; top: 114px; width: 5px; height: 32px; border-radius: 3px; }
.btn-vold  { left: -5px; top: 156px; width: 5px; height: 32px; border-radius: 3px; }
.btn-pwr   { right: -5px; top: 106px; width: 5px; height: 44px; border-radius: 3px; }

.phone {
  width: 100%;
  border-radius: 42px;
  background: #ffffff;
  box-shadow:
    inset 0 3px 10px rgba(255,255,255,0.95),
    inset 0 -4px 10px rgba(180,160,165,0.2);
  padding: 18px 12px 28px;
  position: relative;
}

.phone-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(180,155,165,0.35);
  margin-bottom: 10px;
}
.top-sensors { display: flex; align-items: center; gap: 7px; }
.dot-sensor  { width: 6px; height: 6px; border-radius: 50%; background: #2a1028; opacity: 0.7; }
.earpiece-bar {
  width: 54px; height: 7px; border-radius: 4px;
  background: #1a0820;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.dot-cam {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #3a1848, #0e0818);
  border: 1.5px solid #3a1848;
}

.bezel {
  background: #e8e8e8;
  border-radius: 10px;
  padding: 4px;
  box-shadow: inset 0 2px 10px rgba(152, 152, 152, 152);
  height: 376px;
  display: flex;
  flex-direction: column;
}
.screen {
  background: #fff8fb;
  border-radius: 7px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.sbar {
  background: #fef0f4;
  border-bottom: 1px solid #f5d8e2;
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.sbar-l {
  font-family: 'RainyHearts';
  font-size: 13px;
  color: #c4687e;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sbar-t {
  font-family: 'RainyHearts';
  font-size: 13px;
  color: #c4687e;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sbar-r { display: flex; align-items: center; gap: 4px; }
.sigbars { display: flex; gap: 1px; align-items: flex-end; }
.sigbars span { background: #c4687e; border-radius: 1px; width: 2px; }
.batt {
  width: 18px; height: 9px;
  border: 1.5px solid #c4687e;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1px;
}
.batt::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 5px;
  background: #c4687e;
  border-radius: 0 1px 1px 0;
}
.batt-fill { height: 100%; width: 72%; border-radius: 1px; background: #dea0b0; }

.ticker {
  background: #fde8ef;
  border-bottom: 1px solid #f5d8e2;
  overflow: hidden;
  flex-shrink: 0;
}
.ticker-t {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: tck 18s linear infinite;
  font-size: 9px;
  color: #c4909a;
}
@keyframes tck {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroller {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 16px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #e8b8c8 transparent;
}
.scroller::-webkit-scrollbar { width: 2px; }
.scroller::-webkit-scrollbar-thumb { background: #e8b8c8; border-radius: 2px; }

.avi-row { display: flex; gap: 9px; align-items: center; margin-bottom: 9px; }
.avi-img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 20%;
}
.avi-box {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid #e8c0cc;
  background: #fff5f7;
  display: flex; align-items: center; justify-content: center;
}
.avi-box svg { width: 44px; height: 44px; }
.avi-name   { font-family: 'RainyHearts';; font-size: 22px; color: #c4687e; line-height: 1; }
.avi-handle { font-size: 9px; color: #c4909a; margin-top: 1px; }
.pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f0faf6;
  border: 1px solid #a8e0c4;
  border-radius: 20px;
  padding: 2px 7px;
  margin-top: 3px;
}
.pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4dcca0;
  animation: bl 1.8s ease-in-out infinite;
}
@keyframes bl {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.pill-txt { font-size: 9px; color: #38a87a; }

.bio {
  background: #fff;
  border: 1px solid #f5d8e2;
  border-radius: 9px;
  padding: 7px 9px;
  margin-bottom: 7px;
  font-size: 10px;
  color: #c4687e;
  line-height: 1.65;
}
.tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 7px; }
.tag {
  font-size: 9px; padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #e8c0cc;
  background: #fff8fa;
  color: #c4687e;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 7px; }
.stat {
  background: #fff;
  border: 1px solid #f5d8e2;
  border-radius: 9px;
  text-align: center;
  padding: 8px 4px;
}
.stat-n { font-family: 'RainyHearts';; font-size: 22px; color: #c4687e; display: block; }
.stat-l { font-size: 8px; color: #c4909a; }
.fdiv   { text-align: center; font-size: 10px; color: #e8b0c0; letter-spacing: 3px; margin: 5px 0; user-select: none; }

.sec { font-family: 'RainyHearts';; font-size: 13px; color: #c4687e; margin-bottom: 3px; letter-spacing: 1px; }
.mlist { background: #fff; border: 1px solid #f5d8e2; border-radius: 9px; overflow: hidden; margin-bottom: 7px; }
.mitem {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px;
  border-bottom: 1px dotted #f5d8e2;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.mitem:last-child { border-bottom: none; }
.mitem:hover      { background: #fff8fa; }
.mico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #fff5f7;
  border: 1px solid #f5d8e2;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mico svg { width: 12px; height: 12px; }
.mname { font-size: 10px; font-weight: 600; color: #c4687e; }
.msub  { font-size: 9px; color: #c4909a; }
.marr  { font-size: 12px; color: #e0b8c4; margin-left: auto; }

.ulist { background: #fff; border: 1px solid #fad0ea; border-radius: 9px; overflow: hidden; margin-bottom: 7px; }
.uitem { display: flex; gap: 7px; align-items: flex-start; padding: 5px 9px; border-bottom: 1px dotted #fad0ea; }
.uitem:last-child { border-bottom: none; }
.udate  { font-family: 'RainyHearts';; font-size: 12px; color: #d4538e; white-space: nowrap; flex-shrink: 0; padding-top: 1px; }
.utxt   { font-size: 10px; color: #4a2035; line-height: 1.45; }
.nbadge { font-size: 8px; background: #d4538e; color: #fff; border-radius: 2px; padding: 1px 4px; margin-left: 2px; vertical-align: middle; }

.clist { background: #fff; border: 1px solid #f5d8e2; border-radius: 9px; overflow: hidden; margin-bottom: 7px; }
.citem { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-bottom: 1px dotted #f5d8e2; }
.citem:last-child { border-bottom: none; }
.cico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #fff5f7;
  border: 1px solid #f5d8e2;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cico svg { width: 12px; height: 12px; }
.cname { font-size: 10px; font-weight: 600; color: #c4687e; }
.csub  { font-size: 9px; color: #c4909a; }
.footer {
  text-align: center;
  font-size: 9px;
  color: #d8a8b8;
  border-top: 1px dotted #f5d8e2;
  padding-top: 6px;
  margin-top: 4px;
}

.phone-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px solid rgba(180,155,165,0.35);
  margin-top: 10px;
}
.home-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  background: #efefef;
  border: 2px solid #a0a0a0;
  box-shadow:
    0 0 0 2.5px #e8e8e8,
    0 0 0 4.5px #b0b0b0,
    inset 0 2px 5px #ffffff,
    inset 0 -2px 5px #ffffff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s, box-shadow .1s;
  user-select: none;
}
.home-btn:active {
  transform: scale(0.93);
  box-shadow:
    0 0 0 2.5px #e8e8e8,
    0 0 0 4.5px #b0b0b0,
    inset 0 3px 8px rgba(100,100,100,0.35);
}
.home-sq {
  width: 13px; height: 13px;
  border-radius: 3.5px;
  border: 2px solid #888888;
  background: transparent;
}

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: sparkPop 0.55s ease forwards;
  font-size: 14px;
}
@keyframes sparkPop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@font-face {
  font-family: 'RainyHearts';
  src: url('./fonts/rainyhearts.ttf') format('truetype');
}

