.restored-page {
  --pointer-x: 50%;
  --pointer-y: 50%;
  min-height: 100vh;
  color: #fffafc;
  background:
    radial-gradient(ellipse at var(--pointer-x) var(--pointer-y), rgba(226, 151, 221, .095), transparent 24rem),
    radial-gradient(ellipse at 50% 48%, rgba(119, 62, 120, .16), transparent 30rem),
    radial-gradient(circle at 18% 20%, rgba(216, 79, 147, .10), transparent 24rem),
    #100817;
}

.restored-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(239, 157, 193, .18) 59%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 42px 42px;
  mask-image: radial-gradient(ellipse at center, black, transparent 76%);
}

.restored-page .profile-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px 16px;
}

.restored-iphone {
  position: relative;
  width: min(350px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  aspect-ratio: 393 / 852;
  padding: 10px;
  border: 7px solid transparent;
  border-radius: 58px;
  background:
    linear-gradient(145deg, #f8cfe0, #dc91b4 48%, #f6c3d8) padding-box,
    linear-gradient(135deg, #fff4f8, #e59bc4 20%, #8e55a6 42%, #f4c7e9 59%, #d57da9 76%, #fff2dd) border-box;
  background-size: 100% 100%, 100% 100%;
  box-shadow:
    0 34px 90px rgba(0,0,0,.54),
    inset 0 0 0 2px rgba(255,255,255,.82),
    inset 0 0 0 6px rgba(154,62,111,.18),
    0 0 0 1px #a85a80,
    0 0 34px rgba(244,199,233,.22);
  isolation: isolate;
}

.restored-iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 48px 14px 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 45px;
  background:
    radial-gradient(circle at 50% 4%, rgba(216,79,147,.18), transparent 180px),
    linear-gradient(145deg, #321932, #1d1028 72%);
  box-shadow: inset 0 0 22px rgba(255,255,255,.04);
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(239,157,193,.45) transparent;
}

.restored-dynamic-island {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 12px;
  width: 104px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: #070609;
  box-shadow: 0 2px 8px rgba(0,0,0,.38);
}

.restored-dynamic-island i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid #15121c;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4d6d91, #10131a 70%);
}

.restored-iphone-screen .brand-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 13px;
  border: 3px double rgba(255,241,189,.86);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--profile-accent, #d84f93), #9a67db);
  color: white;
  font: 800 30px Georgia, serif;
  box-shadow: 0 8px 26px rgba(216,79,147,.28), 0 0 0 5px rgba(255,196,122,.045), 0 0 30px rgba(226,151,221,.22);
  animation: coquette-pulse 4s ease-in-out infinite;
}

@keyframes coquette-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.restored-iphone-screen .eyebrow {
  margin: 0 0 4px;
  color: #eabbd0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.restored-iphone-screen h1 {
  margin: 0;
  color: #fffafc;
  font: 700 34px/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.restored-iphone-screen .profile-handle {
  margin: 9px 0 15px;
  color: #ddb3cc;
  font-size: 11px;
  font-weight: 800;
}

.restored-iphone-screen .link-list {
  display: grid;
  gap: 8px;
  padding: 0;
}

.restored-iphone-screen .profile-link {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255,241,189,.30);
  border-radius: 17px 25px 16px 23px / 22px 15px 21px 16px;
  color: #fffafc;
  background: linear-gradient(115deg, var(--profile-accent, rgba(216,79,147,.86)), rgba(133,91,191,.78) 70%, rgba(239,196,217,.80));
  backdrop-filter: blur(7px);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.09), 0 5px 13px rgba(4,2,9,.17);
  text-align: left;
  text-decoration: none;
  font: inherit;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), filter .2s ease, box-shadow .2s ease;
}

.restored-iphone-screen .profile-link::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 35%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), rgba(207,239,255,.16), transparent);
  transition: left .5s ease;
  pointer-events: none;
}

.restored-iphone-screen .profile-link:nth-child(3n + 1) {
  background: linear-gradient(115deg, var(--profile-accent, #d84f93), #8b5dc6 72%, #e8adc7);
}

.restored-iphone-screen .profile-link:hover,
.restored-iphone-screen .profile-link:focus-visible {
  transform: translateY(-3px) scale(1.025) rotate(-.5deg);
  filter: brightness(1.13) saturate(1.12);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.12), 0 9px 23px rgba(216,79,147,.22), 0 0 18px rgba(214,190,255,.14);
}

.restored-iphone-screen .profile-link:hover::after,
.restored-iphone-screen .profile-link:focus-visible::after {
  left: 125%;
}

.restored-page .phone-widget {
  position: absolute;
  z-index: 8;
  inset: 8px;
  overflow: auto;
  padding: 78px 18px 22px;
  border: 1px solid rgba(255,241,249,.42);
  border-radius: 38px;
  color: #fffafc;
  background:
    radial-gradient(circle at 50% 0, rgba(226,151,221,.24), transparent 55%),
    linear-gradient(145deg, rgba(57,30,58,.98), rgba(27,14,39,.99));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.045), 0 12px 32px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  text-align: center;
}

.restored-page .phone-widget.is-hidden { display: none !important; }

.restored-page .phone-widget-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,241,249,.35);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, rgba(216,79,147,.88), rgba(128,97,187,.9));
  font-size: 24px;
  cursor: pointer;
}

.restored-page .phone-widget-eyebrow {
  margin: 0 0 6px;
  color: #efb6d1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.restored-page .phone-widget h2 {
  margin: 0;
  color: #fffafc;
  font: 700 34px/.98 Georgia, "Times New Roman", serif;
}

.restored-page .phone-widget-prompt {
  margin: 10px 0 18px;
  color: #d9bdd5;
  font-size: 11px;
}

.restored-page .phone-widget-links {
  display: grid;
  gap: 10px;
}

.restored-page .phone-widget-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255,241,249,.3);
  border-radius: 18px 26px 16px 23px;
  color: white;
  background: linear-gradient(115deg, rgba(216,79,147,.8), rgba(133,91,191,.82) 70%, rgba(239,196,217,.76));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.055), 0 6px 16px rgba(4,2,9,.2);
  text-decoration: none;
  font: 800 13px Georgia, serif;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.restored-page .phone-widget-link:hover,
.restored-page .phone-widget-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.1), 0 9px 22px rgba(216,79,147,.24);
}

.restored-page .phone-widget-link span:last-child {
  color: #fff1bd;
  font: 700 18px Georgia, serif;
}

.restored-iphone-screen .link-icon {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.13);
  font-size: 10px;
  font-weight: 900;
}

.restored-iphone-screen .link-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.restored-iphone-screen .link-copy strong {
  overflow: hidden;
  color: white;
  font: 800 12px Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restored-iphone-screen .link-copy small {
  overflow: hidden;
  color: rgba(255,241,249,.78);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restored-iphone-screen .link-arrow {
  margin-left: auto;
  color: white;
  font-size: 14px;
}

.restored-iphone-screen .adult-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255,241,189,.36);
  border-radius: 16px 24px 14px 22px;
  color: white;
  background: linear-gradient(120deg, #7d3470, #cf4f91 58%, #805db9);
  text-align: left;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.07);
}

.restored-iphone-screen .adult-link small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,.76);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.restored-iphone-screen footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #cbbfd1;
  font-size: 9px;
}

.restored-iphone-screen footer a { color: inherit; }

.restored-side-button {
  position: absolute;
  top: 146px;
  right: -11px;
  width: 5px;
  height: 67px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #a85a80, #f2b8d0);
}

.restored-page .held-mirror {
  display: block !important;
}

.restored-page .held-mirror {
  position: fixed;
  z-index: 20;
  left: 42px;
  top: 50%;
  bottom: auto;
  width: 242px;
  height: 242px;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 24px rgba(5,2,9,.5));
  pointer-events: none;
}

.restored-page .mirror-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: path("M121 236 C104 216 12 175 12 92 C12 40 54 16 96 40 C112 50 121 68 121 68 C121 68 130 50 146 40 C188 16 230 40 230 92 C230 175 138 216 121 236 Z");
  border: 0;
  background: linear-gradient(135deg, #d2a25e, #fff1bd, #b84d7d);
  box-shadow: 0 0 18px rgba(231,188,255,.2), 0 0 36px rgba(255,221,238,.12);
}

.restored-page .mirror-glass img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
}

.restored-page .mirror-shine {
  position: absolute;
  inset: 0;
  clip-path: path("M121 236 C104 216 12 175 12 92 C12 40 54 16 96 40 C112 50 121 68 121 68 C121 68 130 50 146 40 C188 16 230 40 230 92 C230 175 138 216 121 236 Z");
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.32) 42%, rgba(222,194,255,.19) 49%, transparent 58%);
  animation: restored-mirror-shine 8s cubic-bezier(.45,0,.55,1) infinite;
  mix-blend-mode: screen;
}

@keyframes restored-mirror-shine {
  0%, 62% { opacity: 0; transform: translateX(-100%); }
  70% { opacity: .85; }
  84% { opacity: .85; transform: translateX(120%); }
  92%, 100% { opacity: 0; transform: translateX(120%); }
}

.restored-page .phone-twitch-panel {
  width: 100%;
  margin: 12px 0 0;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255,196,122,.38);
  border-radius: 18px 26px 16px 23px;
  background: linear-gradient(145deg, rgba(57,35,67,.86), rgba(35,21,51,.86));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.035), 0 8px 20px rgba(4,2,9,.22);
  backdrop-filter: blur(8px);
}

.restored-page .twitch-header {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 1px 3px 6px;
}

.restored-page .twitch-header div { display: grid; gap: 2px; }
.restored-page .twitch-header small { color: #efc69e; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.restored-page .twitch-header strong { color: white; font: 700 11px Georgia, serif; }
.restored-page .twitch-header a {
  width: 26px;
  height: 26px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,196,122,.28);
  border-radius: 50%;
  color: white;
  text-decoration: none;
}
.restored-page .twitch-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #d84f93;
  box-shadow: 0 0 8px rgba(216,79,147,.65);
}
.restored-page .twitch-embed {
  display: block !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px 15px 9px 14px;
  background: #120918;
}

@media (max-width: 900px) {
  .restored-page .held-mirror { display: none !important; }
}

@media (max-width: 520px) {
  .restored-page .phone-twitch-panel { margin-top: 10px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .restored-page *,
  .restored-page *::before,
  .restored-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


